/* Multitap tokens: the sales kit's palette, plus the night palette for the
   dark chapters. Chapter classes set the semantic tokens every section uses. */
:root {
  --ink: #1f1d1e;
  --ink-2: #2d2b2c;
  --muted: #5a6068;
  --rule: #d6dade;
  --wash: #eef4f9;
  --white: #ffffff;
  --blue: #1f8fd1;
  --blue-deep: #13699d;
  --blue-light: #7cc4f0;

  --night: #070a0f;
  --night-2: #0d1219;
  --night-3: #141b25;
  --night-line: #1d2531;
  --night-text: #f4f4f6;
  --night-muted: #a1a1a6;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.85rem, 1.4rem + 6vw, 6.75rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.75rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1240px;
  --section: clamp(96px, 11vw, 176px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

.chapter--light {
  --bg: var(--white);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --line: var(--rule);
  --surface: var(--wash);
  --accent-text: var(--blue-deep);
}

.chapter--night {
  --bg: var(--night);
  --fg: var(--night-text);
  --fg-muted: var(--night-muted);
  --line: var(--night-line);
  --surface: var(--night-2);
  --accent-text: var(--blue-light);
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2?v=2870bcb8ec") format("woff2-variations"), url("/assets/fonts/inter.woff2?v=2870bcb8ec") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-optical-sizing: auto;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }

section { background: var(--bg); color: var(--fg); position: relative; }
.container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; line-height: 1.02; font-weight: 750; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); }
.kicker { font-size: 1rem; font-weight: 600; color: var(--accent-text); letter-spacing: -0.01em; }
.note { font-size: var(--fs-tiny); color: var(--fg-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--r-pill);
  background: var(--blue-deep); color: var(--white); text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #0f5683; }
.btn:active { transform: scale(0.98); }
.btn--small { padding: 10px 16px; font-size: 0.875rem; }
.btn--large { padding: 18px 28px; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  font-weight: 600; color: var(--accent-text); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__body { margin-top: 18px; font-size: var(--fs-lead); color: var(--fg-muted); line-height: 1.5; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgb(31 29 30 / 0.06);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: block; width: 116px; }
.nav__logo .logo--dark { display: none; }
.nav__links { display: flex; gap: 30px; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__end { display: flex; align-items: center; gap: 18px; }

.leds { display: inline-flex; gap: 5px; }
.leds i { width: 9px; height: 9px; border-radius: 2px; background: currentColor; opacity: 0.16; transition: opacity 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease); }
.leds i.on { background: var(--blue); opacity: 1; }
.leds i.on:last-of-type { transform: scale(1.12); }
.no-js .leds i:first-child, html:not(.motion-ok) .leds i:first-child { background: var(--blue); opacity: 1; }

html[data-night] .nav { background: rgb(7 10 15 / 0.72); border-bottom-color: rgb(255 255 255 / 0.06); color: var(--night-text); }
html[data-night] .nav__logo .logo--light { display: none; }
html[data-night] .nav__logo .logo--dark { display: block; }
html[data-night] .nav__links a { color: var(--night-muted); }
html[data-night] .nav__links a:hover { color: var(--night-text); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__logo { width: 100px; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(72px, 12vh, 150px)) 0 clamp(80px, 10vw, 140px); }
.hero__inner { display: grid; gap: 28px; }
.hero__title {
  font-size: var(--fs-hero); font-weight: 760; line-height: 0.98; letter-spacing: -0.05em;
  max-width: 17ch;
}
.hero__row { display: grid; gap: 28px; align-items: end; margin-top: 12px; }
.hero__row .lead { max-width: 36em; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.signoff { margin-top: clamp(48px, 8vw, 96px); padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.signoff blockquote { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.02em; }
.signoff figcaption { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .hero__row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero__actions { justify-content: flex-end; }
}

/* ---------- Lights going down and coming back up ---------- */
.fade { height: clamp(140px, 26vh, 300px); }
.fade--down { background: linear-gradient(rgb(7 10 15 / 0), rgb(7 10 15 / 0.18) 30%, rgb(7 10 15 / 0.62) 62%, rgb(7 10 15 / 0.92) 85%, var(--night)), var(--white); }
.fade--up { background: linear-gradient(var(--night), rgb(7 10 15 / 0.92) 15%, rgb(7 10 15 / 0.62) 38%, rgb(7 10 15 / 0.18) 70%, rgb(7 10 15 / 0)), var(--white); }

/* ---------- Devices ---------- */
.device { margin: 0; position: relative; }
.device__body { background: #0c0d10; border-radius: 18px 18px 6px 6px; padding: 1.4% 1.4% 2.2%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 40px 90px rgb(0 0 0 / 0.55); }
.device__screen { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device__base { height: 14px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#2a2d33, #15171b); box-shadow: 0 30px 60px rgb(0 0 0 / 0.5); }
.device__base::after { content: ""; display: block; width: 16%; height: 5px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #0d0e11; }
.device--phone .device__body { border-radius: 38px; padding: 9px; background: #101114; }
.device--phone .device__screen { border-radius: 30px; aspect-ratio: 390 / 844; }

/* ---------- Lights down: the floating stage ---------- */
.lights { padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.lights__inner { text-align: center; display: grid; justify-items: center; gap: 22px; }
.lights__title { font-size: var(--fs-h2); font-weight: 750; letter-spacing: -0.04em; line-height: 1.02; max-width: 18ch; }
.lights__sub { color: var(--fg-muted); font-size: var(--fs-lead); max-width: 34em; }
.stage { position: relative; width: min(1100px, 100% - 2 * var(--gutter)); margin: clamp(56px, 8vw, 100px) auto 0; }
.glow::before {
  content: ""; position: absolute; inset: 0% 6% -6%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(31 143 209 / 0.6), rgb(31 143 209 / 0.18) 55%, transparent 78%);
  filter: blur(48px);
}
.stage__laptop { position: relative; z-index: 1; width: 82%; }
.stage__phone { position: absolute; z-index: 2; right: 0; top: 10%; width: 22%; }

/* ---------- Flagship builds ---------- */
.flagships { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.flagships__list { display: grid; gap: clamp(72px, 10vw, 140px); }
.flagship { display: grid; gap: 32px; align-items: center; }
.flagship__name { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.035em; font-weight: 740; }
.flagship__headline { font-size: var(--fs-lead); color: var(--fg); margin-top: 14px; line-height: 1.45; max-width: 26em; }
.flagship__where { color: var(--fg-muted); font-size: var(--fs-small); margin: 14px 0 22px; }
.flagship__screen { display: grid; place-items: center; padding-inline: 7%; }
@media (min-width: 900px) { .flagship__screen { padding-inline: 0; } }
.flagship__screen .device--laptop { width: 100%; }
.flagship__screen .device--phone { width: min(300px, 62%); }
@media (min-width: 900px) {
  .flagship { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

/* Pinned mode (desktop with motion): every text in the left column, every
   screen stacked in one cell on the right, and the script crossfades them. */
.flagships.is-pinned { height: 100svh; padding: 0; display: grid; align-items: center; }
.flagships.is-pinned .flagships__list {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; row-gap: 0; align-items: center;
}
.flagships.is-pinned .flagship { display: contents; }
.flagships.is-pinned .flagship__text { grid-column: 1; padding: 14px 0 14px 22px; border-left: 2px solid var(--line); transition: border-color 0.4s var(--ease), opacity 0.4s var(--ease); opacity: 0.38; }
.flagships.is-pinned .flagship__text .flagship__name { font-size: 1.375rem; }
/* Inactive steps collapse instead of disappearing, so their links stay reachable by keyboard. */
.flagships.is-pinned .flagship__text .flagship__headline,
.flagships.is-pinned .flagship__text .flagship__where,
.flagships.is-pinned .flagship__text .link {
  max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; margin-bottom: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.45s var(--ease);
}
.flagships.is-pinned .flagship__text .link { display: inline-block; vertical-align: top; }
.flagships.is-pinned .flagship.on .flagship__text { opacity: 1; border-color: var(--blue); }
.flagships.is-pinned .flagship.on .flagship__text .flagship__headline { max-height: 8em; opacity: 1; margin-top: 14px; }
.flagships.is-pinned .flagship.on .flagship__text .flagship__where { max-height: 6em; opacity: 1; margin: 14px 0 22px; }
.flagships.is-pinned .flagship.on .flagship__text .link { max-height: 3em; opacity: 1; overflow: visible; }
.flagships.is-pinned .flagship__screen { grid-column: 2; align-self: center; }
.flagships.is-pinned .flagship__screen .device--laptop { width: 100%; }
.flagships.is-pinned .flagship__screen .device--phone { width: min(280px, 46%); }

/* ---------- Wall ---------- */
.wall { padding: 0 0 var(--section); }
.wall__grid { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 48px; }
.wall__item { padding: 26px 0 30px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.wall__name { font-size: 1.125rem; letter-spacing: -0.015em; }
.wall__item p { color: var(--fg-muted); font-size: var(--fs-small); line-height: 1.55; }
.wall__claim strong { color: var(--fg); font-weight: 700; }
.wall__where { font-size: var(--fs-tiny) !important; }

/* ---------- Results ---------- */
.results { padding: clamp(48px, 6vw, 96px) 0 var(--section); }
.results__list { border-top: 1px solid var(--line); }
.result { display: grid; gap: 18px 48px; padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.result__figure { display: grid; gap: 10px; align-content: start; }
.result__num { font-size: clamp(3rem, 2rem + 4.5vw, 5.75rem); font-weight: 760; letter-spacing: -0.055em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.result__label { color: var(--fg-muted); font-size: var(--fs-small); max-width: 26em; }
.result__title { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 12px; }
.result__text p { color: var(--fg-muted); max-width: 38em; }
.result__text .note { margin-top: 12px; }
@media (min-width: 900px) {
  .result { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Build first (square bullets from the logo) ---------- */
.build-first { padding: var(--section) 0; background: var(--wash); }
.squares { display: grid; gap: 44px 48px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.squares li { position: relative; padding-top: 26px; }
.squares li::before { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 2px; background: var(--blue); }
.squares h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 10px; }
.squares p { color: var(--fg-muted); }

/* ---------- What we watch ---------- */
.watch { padding: var(--section) 0; }
.watch__inner { display: grid; gap: 48px; }
.timeline { position: relative; display: grid; gap: clamp(36px, 5vw, 56px); padding-left: 36px; }
.timeline__line { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--blue); transform-origin: top; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 12px; height: 12px; border-radius: 2px; background: var(--white); border: 2px solid var(--blue); }
.timeline__item h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 8px; }
.timeline__item p { color: var(--fg-muted); max-width: 36em; }
@media (min-width: 900px) {
  .watch__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .watch__head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}

/* ---------- Plans ---------- */
.plans { padding: var(--section) 0 0; }
.plans__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); display: grid; align-content: start; gap: 14px; }
.plan__tier { color: var(--muted); font-size: var(--fs-small); font-weight: 600; display: flex; align-items: center; gap: 12px; }
.plan__name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.035em; font-weight: 740; }
.plan ul { display: grid; gap: 12px; margin-top: 10px; }
.plan li { position: relative; padding-left: 22px; color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.plan--recommended { background: var(--ink); border-color: var(--ink); color: var(--white); }
.plan--recommended .plan__tier, .plan--recommended li { color: #c9ccd1; }
.pill { font-size: var(--fs-tiny); font-weight: 600; color: var(--white); background: var(--blue-deep); border-radius: var(--r-pill); padding: 4px 10px; }

/* ---------- Close: promises, steps, audit, about ---------- */
.close { padding: clamp(48px, 6vw, 96px) 0 clamp(80px, 8vw, 120px); }
.squares--night p { color: var(--fg-muted); }
.close__start { margin: clamp(96px, 11vw, 160px) 0 clamp(40px, 5vw, 64px); }
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: none; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.steps__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--night-3); color: var(--blue-light); font-weight: 700; font-size: 0.875rem; margin-bottom: 18px; }
.steps h3 { font-size: 1.1875rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p { color: var(--fg-muted); font-size: var(--fs-small); }

.audit-wrap { display: grid; gap: 48px; margin-top: clamp(96px, 11vw, 160px); padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg); background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line) inset; position: relative; overflow: hidden; }
.audit-wrap::before { content: ""; position: absolute; width: 60%; height: 80%; right: -20%; top: -30%; background: radial-gradient(closest-side, rgb(31 143 209 / 0.22), transparent); filter: blur(30px); pointer-events: none; }
.audit-wrap > * { position: relative; }
.audit-wrap__intro .lead { margin-top: 18px; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }
@media (min-width: 1000px) { .audit-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }

.audit { display: grid; gap: 22px; }
.audit__grid { display: grid; gap: 18px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label, .audit__help legend { font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
.field__opt { font-weight: 400; color: var(--fg-muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--night-line);
  background: var(--night); color: var(--fg); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(31 143 209 / 0.3); }
.field--error input, .field--error textarea { border-color: #ff6b6b; }
.field__error { color: #ff8f8f; font-size: var(--fs-tiny); }
.audit__help { border: 0; padding: 0; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--night-line); color: var(--fg-muted); font-size: var(--fs-small); font-weight: 500; transition: all 0.2s var(--ease); }
.chip input:checked + span { background: var(--blue-deep); border-color: var(--blue-light); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.audit__end { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.audit__status { color: var(--fg); font-weight: 500; }
.audit__status:focus { outline: none; }
.audit.is-sent > :not(.audit__end), .audit.is-sent .btn { display: none; }
.audit.is-sent .audit__status { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.02em; }

.about { margin-top: clamp(96px, 11vw, 160px); max-width: 720px; display: grid; gap: 16px; }
.about p { color: var(--fg-muted); }
.about a { color: var(--fg); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); padding: 48px 0 56px; font-size: var(--fs-small); }
.footer__inner { display: grid; gap: 24px; align-items: start; }
.footer__logo { width: 104px; display: block; }
.footer__text { display: grid; gap: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--night-text); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; gap: 48px; } }

/* ---------- Work index and stories ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(64px, 10vh, 120px)) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: var(--fs-hero); font-weight: 760; letter-spacing: -0.05em; line-height: 0.98; max-width: 14ch; }
.page-hero .lead { margin-top: 24px; max-width: 36em; }

.work-list { padding: 0 0 var(--section); }
.work-list .flagships__list { gap: clamp(72px, 9vw, 120px); }

.story-hero { padding: calc(var(--nav-h) + clamp(56px, 9vh, 110px)) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.story-hero__text { display: grid; gap: 18px; max-width: 900px; }
.story-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5.25rem); font-weight: 760; letter-spacing: -0.05em; line-height: 1; }
.story-hero .stage { margin-top: clamp(48px, 7vw, 88px); display: grid; place-items: center; }
.story-hero .stage .device--laptop { width: min(960px, 100%); position: relative; z-index: 1; }
.story-hero .stage .device--phone { width: min(320px, 70%); position: relative; z-index: 1; }

.story { padding: var(--section) 0; }
.story__body { display: grid; gap: clamp(48px, 6vw, 72px); max-width: 760px; }
.story__body h2 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 14px; }
.story__body p { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.story__body p + p { margin-top: 16px; }
.numbers { margin-top: clamp(72px, 9vw, 120px); }
.numbers__grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--rule); padding-top: 36px; }
.numbers__grid strong { display: block; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 760; letter-spacing: -0.05em; line-height: 1; margin-bottom: 10px; }
.numbers__grid span { color: var(--muted); font-size: var(--fs-small); }
.story-next { padding: clamp(72px, 9vw, 120px) 0; }
.story-next__inner { display: grid; gap: 28px; }
.story-next a.next { text-decoration: none; display: grid; gap: 8px; }
.story-next a.next span { color: var(--fg-muted); font-size: var(--fs-small); }
.story-next a.next strong { font-size: var(--fs-h2); letter-spacing: -0.045em; font-weight: 750; line-height: 1.02; }
.story-next a.next:hover strong { color: var(--blue-light); }
.story-next__actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

/* ---------- Simple pages ---------- */
.simple { padding: calc(var(--nav-h) + clamp(64px, 10vh, 120px)) 0 var(--section); min-height: 70vh; }
.simple h1 { font-size: var(--fs-h2); font-weight: 750; letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; }
.simple .prose { max-width: 720px; margin-top: 32px; display: grid; gap: 18px; }
.simple .prose h2 { font-size: var(--fs-h3); margin-top: 18px; }
.simple .prose p, .simple .prose li { color: var(--muted); }
.simple .prose ul { display: grid; gap: 8px; }
.simple .prose li { position: relative; padding-left: 20px; }
.simple .prose li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* ---------- Phone menu ---------- */
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 6px; border-radius: 10px; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease); }
.nav__menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__sheet { position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px; display: grid; padding: 10px; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / 0.18), 0 0 0 1px rgb(0 0 0 / 0.06); }
.nav__sheet a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.nav__sheet a:hover { background: var(--wash); }
@media (max-width: 860px) {
  .nav__menu { display: block; }
  .nav__end .leds { display: none; }
}

/* ---------- Local: the map grid and the AI answer ---------- */
.local { padding: clamp(40px, 6vw, 96px) 0 var(--section); }
.section-head--wide { max-width: 880px; }
.local__demos { display: grid; gap: 28px; }
@media (min-width: 960px) { .local__demos { grid-template-columns: 1fr 1fr; } }
.demo { margin: 0; display: grid; gap: 20px; align-content: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--wash); }
.demo__text h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 8px; }
.demo__text p { color: var(--muted); }
.demo figcaption { font-size: var(--fs-small); color: var(--ink-2); }
.demo figcaption .note { display: block; margin-top: 4px; }

/* A quiet street map drawn in CSS: two avenues, a block grid, a park and a bay. */
.maps {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.2;
  background-color: #e8ecef;
  background-image:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(0deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    linear-gradient(90deg, transparent 96%, #fff 96%),
    linear-gradient(0deg, transparent 95%, #fff 95%),
    radial-gradient(ellipse 22% 16% at 18% 76%, #cfe5cf 98%, transparent 100%),
    radial-gradient(ellipse 30% 14% at 86% 18%, #cfe0ee 98%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  box-shadow: 0 0 0 1px rgb(31 29 30 / 0.06) inset;
}
.maps__search { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); font-size: 0.9375rem; font-weight: 500; }
.maps__glass { width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; position: relative; flex: none; }
.maps__glass::after { content: ""; position: absolute; width: 2px; height: 7px; background: var(--muted); right: -4px; bottom: -6px; transform: rotate(-45deg); border-radius: 2px; }
.maps__grid { position: absolute; inset: 22% 12% 8%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; }
.maps__grid li { list-style: none; }
.maps__pin {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white); font-weight: 750; font-size: 1rem; font-variant-numeric: tabular-nums;
  background: var(--muted); box-shadow: 0 8px 18px rgb(0 0 0 / 0.22); position: relative;
}
.maps__pin::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.maps__pin--first { background: var(--blue-deep); }
.maps__pin--home { width: 52px; height: 52px; font-size: 1.15rem; box-shadow: 0 0 0 7px rgb(31 143 209 / 0.22), 0 10px 22px rgb(0 0 0 / 0.25); }

.ai { border-radius: 20px; background: var(--white); padding: 20px; display: grid; gap: 16px; box-shadow: 0 0 0 1px rgb(31 29 30 / 0.06) inset; }
.ai__ask { justify-self: end; max-width: 90%; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: 0.9375rem; line-height: 1.45; }
.ai__who { display: block; font-size: var(--fs-tiny); color: #b8bcc2; margin-bottom: 2px; }
.ai__answers { display: grid; gap: 10px; }
.ai__row { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--wash); }
.ai__engine { font-weight: 650; }
.ai__result { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-on { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--white); color: var(--blue-deep); font-size: var(--fs-small); font-weight: 600; box-shadow: 0 0 0 1px rgb(19 105 157 / 0.25) inset; }
.chip-on::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.local__also { margin-top: 28px; color: var(--ink-2); max-width: 70ch; }
.local__points { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 28px; }
.squares--compact { gap: 28px 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.squares--compact li { padding-top: 22px; }
.squares--compact p { color: var(--ink-2); }

/* ---------- Industries ---------- */
.industries { padding: 0 0 var(--section); }
.industries__inner { display: grid; gap: 40px; }
@media (min-width: 960px) { .industries__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.industries__list { border-top: 1px solid var(--rule); }
.industries__list li { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .industries__list li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; } }
.industries__name { font-weight: 650; font-size: 1.125rem; letter-spacing: -0.015em; }
.industries__clients { color: var(--muted); }

/* ---------- Websites we have built ---------- */
.sites { padding: 0 0 var(--section); }
.sites__grid { display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.site-card a { display: grid; gap: 6px; text-decoration: none; }
.site-card__shot { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; box-shadow: 0 0 0 1px var(--night-line), 0 24px 50px rgb(0 0 0 / 0.45); margin-bottom: 12px; transition: transform 0.35s var(--ease); }
.site-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-card a:hover .site-card__shot { transform: translateY(-4px); }
.site-card__name { font-weight: 650; font-size: 1.0625rem; color: var(--fg); }
.site-card__kind { color: var(--fg-muted); font-size: var(--fs-small); }
.site-card__phone { display: none; }
/* The lead site spans the row: the desktop shot with the phone version beside it. */
.site-card--lead { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .site-card--lead a { grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 250px); grid-template-rows: auto auto; column-gap: 28px; align-items: end; }
  .site-card--lead .site-card__shot { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .site-card--lead .site-card__phone { display: block; grid-column: 2; grid-row: 1; border-radius: 28px; overflow: hidden; aspect-ratio: 390 / 844; box-shadow: 0 0 0 6px #101114, 0 0 0 7px var(--night-line), 0 24px 50px rgb(0 0 0 / 0.5); }
  .site-card--lead .site-card__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .site-card--lead .site-card__text { grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
  .site-card--lead .site-card__name { font-size: var(--fs-h3); }
}

/* ---------- Marketing ---------- */
.marketing { padding: clamp(48px, 6vw, 96px) 0 var(--section); }
.marketing__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .marketing__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.report { margin: 0; display: grid; gap: 14px; }
.report__paper { border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px rgb(31 29 30 / 0.08), 0 30px 70px rgb(31 29 30 / 0.16); }
.report__paper img { width: 100%; height: auto; }
.marketing__watch .h3 { margin-bottom: 28px; }
.timeline__item h4 { font-size: var(--fs-h3); letter-spacing: -0.02em; margin-bottom: 8px; }
.ledger { display: grid; gap: 48px; margin-top: clamp(64px, 8vw, 104px); }
@media (min-width: 960px) { .ledger { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ledger .h3 { margin-bottom: 8px; }
.ledger__rows li { display: grid; grid-template-columns: minmax(7.5ch, auto) 1fr; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger__rows strong { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 760; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ledger__rows span { color: var(--muted); }
.ledger__client { display: block; margin-top: 2px; font-size: var(--fs-tiny); font-weight: 600; color: var(--ink-2); }

/* ---------- Ventures, each in its own colors ---------- */
.ventures { padding: var(--section) 0; }
.ventures__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.venture a { display: grid; gap: 12px; align-content: start; height: 100%; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-lg); text-decoration: none; background: var(--vbg); color: var(--vfg); transition: transform 0.3s var(--ease); }
.venture a:hover { transform: translateY(-4px); }
.venture__kind { font-size: var(--fs-small); font-weight: 600; color: var(--vaccent); }
.venture__name { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9rem); letter-spacing: -0.035em; font-weight: 740; }
.venture__body { opacity: 0.8; }
.venture__link { margin-top: 10px; font-weight: 600; color: var(--vaccent); }
.venture--1 { --vbg: #0b0b0e; --vfg: #f2efe6; --vaccent: #4fb6e8; }
.venture--2 { --vbg: #16120d; --vfg: #ece2cd; --vaccent: #c8a24a; }
.venture--3 { --vbg: #183c69; --vfg: #f3f1ea; --vaccent: #35c5e7; }

/* ---------- Pinned flagships: the screen column spans every build, however many there are ---------- */
.flagships.is-pinned .flagships__list--n3 { grid-template-rows: repeat(3, auto); }
.flagships.is-pinned .flagships__list--n4 { grid-template-rows: repeat(4, auto); }
.flagships.is-pinned .flagships__list--n5 { grid-template-rows: repeat(5, auto); }
.flagships.is-pinned .flagships__list--n6 { grid-template-rows: repeat(6, auto); }
.flagships.is-pinned .flagships__list--n7 { grid-template-rows: repeat(7, auto); }
.flagships.is-pinned .flagships__list--n8 { grid-template-rows: repeat(8, auto); }
.flagships.is-pinned .flagships__list--n9 { grid-template-rows: repeat(9, auto); }
.flagships.is-pinned .flagships__list--n10 { grid-template-rows: repeat(10, auto); }
.flagships.is-pinned .flagships__list--n11 { grid-template-rows: repeat(11, auto); }
.flagships.is-pinned .flagships__list--n12 { grid-template-rows: repeat(12, auto); }
.flagships.is-pinned .flagship__screen { grid-row: 1 / -1; }

/* Starting states for animated elements. They apply only when the script has
   confirmed motion is allowed, so no-JS and reduced-motion visitors always see
   the finished page. */
.motion-ok [data-hero] { opacity: 0; transform: translateY(28px); }
/* The headline and the line under it are the largest paints, so they never start invisible; they only rise. */
.motion-ok .hero__title[data-hero], .motion-ok .hero__row[data-hero] { opacity: 1; transform: translateY(36px); }
.motion-ok .lights .device { opacity: 0; }
.motion-ok .timeline__line { transform: scaleY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

