:root {
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --raise: #EAEEF5;
  --text: #141A26;
  --muted: #5A6577;
  --border: #DBE1EC;
  --accent: #1D3A61;
  --accent-ink: #F7F9FC;
  --accent2: #0A4FD8;
  --focus: #0A4FD8;
  --shadow: 0 1px 2px rgba(19, 26, 38, .05), 0 8px 24px -16px rgba(19, 26, 38, .22);
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1080px;
}

/* Dark scheme follows the OS. Set data-scheme="light|dark" on <html> to force one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --bg: #0E1424;
    --surface: #151D30;
    --raise: #1A2337;
    --text: #E9EDF5;
    --muted: #9AA6BB;
    --border: #26314A;
    --accent: #9CBCEA;
    --accent-ink: #0D1320;
    --accent2: #7E9CFF;
    --focus: #7E9CFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .7);
  }
}
:root[data-scheme="dark"] {
  --bg: #0E1424;
  --surface: #151D30;
  --raise: #1A2337;
  --text: #E9EDF5;
  --muted: #9AA6BB;
  --border: #26314A;
  --accent: #9CBCEA;
  --accent-ink: #0D1320;
  --accent2: #7E9CFF;
  --focus: #7E9CFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -16px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, p { margin: 0; }

img { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
a:hover { color: var(--text); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.skip:focus { left: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(20px, 3vw, 32px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .04em;
  line-height: 1;
  padding-left: .04em;
}
.brand-word { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.nav { display: flex; gap: clamp(18px, 3vw, 30px); font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Main rhythm */
.main {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
section[id] { scroll-margin-top: 32px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(8px, 2vw, 16px); }
.hero > * { position: relative; }
.motif {
  position: absolute;
  top: -14%;
  right: -6%;
  width: min(460px, 58vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .75;
}
.motif span {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.motif span:nth-child(1) { inset: 0; }
.motif span:nth-child(2) { inset: 14%; }
.motif span:nth-child(3) { inset: 28%; }
.motif span:nth-child(4) { inset: 42%; }
.motif .dot {
  left: 50%;
  top: 14%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border: 0;
  background: var(--accent2);
  inset: auto auto auto 50%;
}
.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 19ch;
}
.lede {
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 54ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}
.actions { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.btn-primary { padding: 14px 22px; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--text)); color: var(--accent-ink); }
.btn-secondary {
  padding: 13px 20px;
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--raise);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.link-plain { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 2px; color: var(--text); font-size: 16px; text-decoration-color: var(--border); }

/* Labels */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }
.chip i.hollow { background: none; border: 1px solid var(--accent2); }

/* Cards */
.cards { margin-top: 20px; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  align-items: flex-start;
}
.card--ios { align-items: center; }
.card-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.card-copy p { max-width: 52ch; color: var(--muted); }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head > div { min-width: 0; }
.card-head img { width: 72px; height: 72px; border-radius: 16px; display: block; flex: 0 0 auto; }
.card--ios .card-head img { width: 56px; height: 56px; border-radius: 13px; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 3vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.card--ios .card-title { font-size: clamp(21px, 2.6vw, 26px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.note { font-size: 14px; }

.shot-col { flex: 1 1 300px; min-width: 0; }
.shot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0E1424; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: top left; }
.shot-cap { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.phones { flex: 1 1 260px; min-width: 0; display: flex; gap: clamp(12px, 2vw, 18px); max-width: 400px; }
.phones img {
  width: 50%;
  max-width: 180px;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow);
}

/* Two-column label / content sections */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(8px, 2vw, 16px);
  border-top: 1px solid var(--border);
}
.split > .eyebrow { padding-top: clamp(24px, 4vw, 40px); }
.split-body { grid-column: span 2; min-width: 0; padding-top: clamp(8px, 4vw, 40px); }
.statement { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; max-width: 44ch; }
.split-body p + p { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.email { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); word-break: break-word; }
.visually-hidden { position: absolute; left: -9999px; }

/* Footer */
.site-foot { border-top: 1px solid var(--border); background: var(--raise); }
.site-foot .wrap {
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* Minimal alternative home page */
.min-page { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.min-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .6;
}
.min-motif span { position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.min-motif span:nth-child(1) { inset: 0; }
.min-motif span:nth-child(2) { inset: 16%; }
.min-motif span:nth-child(3) { inset: 32%; }
.min-main {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 36px);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(72px, 14vh, 140px) var(--gutter) clamp(48px, 8vh, 80px);
}
.min-brand { display: flex; align-items: center; gap: 14px; }
.min-brand .brand-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; box-shadow: var(--shadow); }
.min-brand h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 30px); letter-spacing: .01em; line-height: 1.1; }
.min-lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; max-width: 40ch; }
.min-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 26px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  box-shadow: var(--shadow);
}
.min-card-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.min-card-id img { width: 48px; height: 48px; border-radius: 11px; display: block; flex: 0 0 auto; }
.min-card-id .eyebrow { font-size: 11px; }
.min-card-id .name { margin-top: 4px; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; }
.min-foot { position: relative; border-top: 1px solid var(--border); background: var(--raise); }
.min-foot .inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-head {
    align-items: center;
    gap: 16px;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
  }
  .hero {
    padding-top: 40px;
  }
  .motif {
    top: -2%;
    right: -38%;
    width: 410px;
  }
  .card {
    padding: 20px;
  }
  .card-head {
    align-items: flex-start;
    gap: 14px;
  }
  .card-title {
    overflow-wrap: break-word;
  }
  .phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }
  .phones img {
    width: 100%;
    max-width: none;
  }
  .split {
    display: block;
  }
  .split-body {
    padding-top: 16px;
  }
  .site-foot .wrap {
    align-items: flex-start;
  }
}
