/*
  ================================================================
  NIRMAAN — design system
  One hand-written stylesheet for every page (no utility framework).

  Visual language comes straight from the logo: a 5x5 pixel grid,
  a heavy grotesk wordmark, a monospaced descriptor. Square corners,
  hairline structure, one accent (blueprint blue) spent sparingly.

  Layers, lowest to highest precedence:
    tokens → reset → base → layout → components → pages → motion
  ================================================================
*/
@layer reset, base, layout, components, pages, motion;

/* ---------------------------------------------------------------
   FONTS: self-hosted (Latin subset, variable), so the first paint never
   waits on a third party. Licenses: assets/fonts/OFL-*.txt (SIL Open Font License).
--------------------------------------------------------------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; src: url("/assets/fonts/archivo.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ----------------------------------------------------------------
   TOKENS
   Light is the default. Dark applies from the OS setting unless the
   visitor picked "light", or from an explicit "dark" choice.
---------------------------------------------------------------- */
:root {
  --paper:    #F1F1EC;   /* page ground */
  --paper-2:  #E8E8E2;   /* recessed panel */
  --paper-3:  #DEDED7;   /* pressed / hover panel */
  --ink:      #131313;   /* text, primary fills */
  --ink-2:    #4F4F4A;   /* secondary text  (7.3:1 on paper, 6.7:1 on paper-2) */
  --ink-3:    #62625C;   /* meta, mono labels (5.4:1 on paper, 5.0:1 on paper-2, 4.5:1 on paper-3) */
  --line:     rgb(19 19 19 / 0.11);
  --line-2:   rgb(19 19 19 / 0.22);
  --blue:     #2E43F5;   /* blueprint accent (5.7:1 on paper) */
  --blue-ink: #FFFFFF;   /* text on blue */
  --blue-wash: rgb(46 67 245 / 0.09);
  --blue-on-ink: #8190FF; /* blue used on --ink panels (6.5:1 on ink) */
  --danger:   #C2261B;   /* invalid fields, error notice (5.2:1 on paper, 4.8:1 on paper-2) */
  --grid:     rgb(19 19 19 / 0.055);
  color-scheme: light;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale — fluid between 360px and 1440px viewports */
  --fs-hero:  clamp(3rem, 1.6rem + 6.2vw, 8.25rem);
  --fs-h1:    clamp(2.75rem, 1.7rem + 4.6vw, 6.25rem);
  --fs-h2:    clamp(2.25rem, 1.5rem + 3.3vw, 4.5rem);
  --fs-h3:    clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --fs-lede:  clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono:  0.75rem;

  /* Space — everything sits on an 8px module */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);
  --max: 82.5rem;
  --nav-h: 4.25rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0E0F; --paper-2: #17171A; --paper-3: #202024;
    --ink: #EDEDE7; --ink-2: #B2B2AA; --ink-3: #8C8C85;
    --line: rgb(237 237 231 / 0.10); --line-2: rgb(237 237 231 / 0.2);
    --blue: #8190FF; --blue-ink: #0B0B14; --blue-wash: rgb(129 144 255 / 0.12); --blue-on-ink: #2E43F5;
    --danger: #EC5F52; /* 5.8:1 on paper, 5.4:1 on paper-2 */
    --grid: rgb(237 237 231 / 0.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E0E0F; --paper-2: #17171A; --paper-3: #202024;
  --ink: #EDEDE7; --ink-2: #B2B2AA; --ink-3: #8C8C85;
  --line: rgb(237 237 231 / 0.10); --line-2: rgb(237 237 231 / 0.2);
  --blue: #8190FF; --blue-ink: #0B0B14; --blue-wash: rgb(129 144 255 / 0.12); --blue-on-ink: #2E43F5;
  --danger: #EC5F52;
  --grid: rgb(237 237 231 / 0.05);
  color-scheme: dark;
}

/* ----------------------------------------------------------------
   RESET
---------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, canvas, video { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
}

/* ----------------------------------------------------------------
   BASE
---------------------------------------------------------------- */
@layer base {
  html {
    background: var(--paper);
    scroll-padding-top: calc(var(--nav-h) + var(--s3));
  }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

  body {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  html.menu-open body { overflow: hidden; }

  main:focus { outline: none; }

  h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; text-wrap: balance; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

  ::selection { background: var(--blue); color: var(--blue-ink); }

  :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

  .display {
    font-family: var(--display);
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.03em;
    line-height: 0.94;
  }
  .accent { color: var(--blue); }

  .mono {
    font-family: var(--mono);
    font-size: var(--fs-mono);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .eyebrow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem;
    font-family: var(--mono); font-size: var(--fs-mono);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  }
  .eyebrow::before {
    content: ""; width: 0.5rem; height: 0.5rem; background: var(--blue); flex: none;
  }
  @media (max-width: 30rem) { .eyebrow__sep { display: none; } }
  .eyebrow--inverse { color: color-mix(in srgb, var(--paper) 65%, transparent); }

  .lede {
    font-size: var(--fs-lede);
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 44ch;
  }

  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  .skip-link {
    position: fixed; left: var(--s2); top: var(--s2); z-index: 100;
    padding: 0.75rem 1rem; background: var(--ink); color: var(--paper);
    font-weight: 600; text-decoration: none;
    transform: translateY(-200%);
  }
  .skip-link:focus-visible { transform: none; }

  .tabular { font-variant-numeric: tabular-nums; }
}

/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */
@layer layout {
  .wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  }

  .section { padding-block: var(--section); }
  .section + .section { border-top: 1px solid var(--line); }
  .section--tight { padding-block: calc(var(--section) * 0.6); }
  .section--tint { background: var(--paper-2); }

  .section__head {
    display: grid; gap: var(--s3);
    margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  }
  .section__head--split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end; gap: var(--s4) var(--s6);
  }
  .section__title { font-size: var(--fs-h2); }
  .eyebrow + .section__title, .eyebrow + .statement__title, .eyebrow + .proof__title { margin-top: var(--s3); }
  .stack__intro > .section__title { margin-top: 0; } /* grid gap already spaces it */
  .section__text { color: var(--ink-2); max-width: 52ch; }

  @media (max-width: 56rem) {
    .section__head--split { grid-template-columns: 1fr; }
  }

  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
}

/* ----------------------------------------------------------------
   COMPONENTS
---------------------------------------------------------------- */
@layer components {

  /* ---- Glyphs & logo (see .eleventy.js shortcodes) ---- */
  .glyph, .logo { fill: currentColor; flex: none; }
  .glyph { width: 1.5rem; height: 1.5rem; }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    min-height: 3.25rem; padding: 0 1.4rem;
    background: var(--ink); color: var(--paper);
    font-family: var(--body); font-weight: 600; font-size: 0.975rem; letter-spacing: -0.005em;
    text-decoration: none; white-space: nowrap;
    border: 1px solid var(--ink);
    transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  }
  .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
  .btn:active { transform: translateY(1px); }
  .btn--sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; gap: 0.6rem; }
  .btn--inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .btn--inverse:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
  .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
  .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .btn[disabled] { opacity: 0.55; pointer-events: none; }

  .btn__arrow { width: 0.8rem; height: 0.8rem; transition: transform 0.35s var(--ease-out); }
  .btn:hover .btn__arrow { transform: translateX(0.25rem); }

  .link-arrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 2.75rem;
    font-weight: 600; font-size: 0.975rem; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left calc(100% - 0.55rem) / 100% 1px no-repeat;
    transition: color 0.2s, background-size 0.3s var(--ease-out);
  }
  .link-arrow span { transition: transform 0.3s var(--ease-out); }
  .link-arrow:hover { color: var(--blue); }
  .link-arrow:hover span { transform: translateX(0.25rem); }
  .link-arrow--inverse { color: var(--paper); }
  .link-arrow--inverse:hover { color: var(--paper); opacity: 0.8; }

  /* ---- Navigation ---- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    view-transition-name: site-nav;
  }
  .nav.is-scrolled { border-bottom-color: var(--line); }
  .nav__inner {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    height: var(--nav-h);
  }
  .nav__links ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
  .nav__links a {
    position: relative; display: inline-block; padding-block: 0.5rem;
    font-size: 0.9rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: color 0.2s;
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease-out);
  }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
  .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

  .nav__actions { display: flex; align-items: center; gap: 0.625rem; }

  .nav__progress {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--blue);
    transform: scaleX(var(--progress, 0)); transform-origin: left;
  }

  .brand {
    display: inline-flex; align-items: center; gap: 0.625rem;
    color: var(--ink); text-decoration: none;
  }
  .brand__mark { width: 1.375rem; height: 1.375rem; }
  .brand__word {
    font-family: var(--display); font-weight: 800; font-stretch: 100%;
    font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1;
  }
  .brand:hover .brand__mark { color: var(--blue); }
  .brand--lockup { gap: 0.9rem; }
  .brand--lockup .brand__mark { width: 2.75rem; height: 2.75rem; }
  .brand--lockup .brand__word { font-size: 1.75rem; }
  .brand__stack { display: grid; gap: 0.35rem; }
  .brand__descriptor {
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ink-3);
  }

  .theme-toggle {
    display: inline-grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    color: var(--ink-2); border: 1px solid var(--line);
    transition: color 0.2s, border-color 0.2s;
  }
  .theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
  .theme-toggle__icon { width: 0.9rem; height: 0.9rem; grid-area: 1 / 1; display: none; }
  .theme-toggle[data-mode="system"] .theme-toggle__icon--system,
  .theme-toggle[data-mode="light"]  .theme-toggle__icon--light,
  .theme-toggle[data-mode="dark"]   .theme-toggle__icon--dark { display: block; }
  html:not(.js) .theme-toggle { display: none; }

  .nav__burger {
    display: none; position: relative;
    width: 2.75rem; height: 2.75rem; border: 1px solid var(--line);
  }
  .nav__burger-bar {
    position: absolute; left: 50%; top: 50%; width: 1.125rem; height: 2px;
    margin-left: -0.5625rem; background: var(--ink);
    transition: transform 0.35s var(--ease-out);
  }
  .nav__burger-bar:first-of-type { transform: translateY(-4px); }
  .nav__burger-bar:last-of-type  { transform: translateY(3px); }
  .nav__burger[aria-expanded="true"] .nav__burger-bar:first-of-type { transform: translateY(0) rotate(45deg); }
  .nav__burger[aria-expanded="true"] .nav__burger-bar:last-of-type  { transform: translateY(0) rotate(-45deg); }

  @media (max-width: 64rem) {
    .nav__links { display: none; }
    .nav__burger { display: inline-block; }
  }
  @media (max-width: 30rem) {
    .nav__cta { display: none; }
  }

  /* Mobile menu: full-height sheet under the bar */
  .menu {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .menu__inner {
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5);
    min-height: 100%;
    padding-block: var(--s4) calc(var(--s4) + env(safe-area-inset-bottom, 0px));
  }
  .menu__links { display: grid; }
  .menu__links a {
    display: block; padding-block: 0.6rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--display); font-weight: 800; font-stretch: 108%;
    font-size: clamp(2rem, 1.2rem + 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.1;
    text-decoration: none;
  }
  .menu__links a[aria-current="page"] { color: var(--blue); }
  .menu.is-open .menu__links li { animation: menu-in 0.5s var(--ease-out) both; }
  .menu.is-open .menu__links li:nth-child(2) { animation-delay: 30ms; }
  .menu.is-open .menu__links li:nth-child(3) { animation-delay: 60ms; }
  .menu.is-open .menu__links li:nth-child(4) { animation-delay: 90ms; }
  .menu.is-open .menu__links li:nth-child(5) { animation-delay: 120ms; }
  .menu.is-open .menu__links li:nth-child(6) { animation-delay: 150ms; }
  .menu.is-open .menu__links li:nth-child(7) { animation-delay: 180ms; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(0.75rem); } }

  /* ---- Page head (inner pages) ---- */
  .page-head {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .page-head__grid, .hero__grid-fallback {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 2rem 2rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
  }
  .page-head__inner {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: end; gap: var(--s5);
    padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 6rem);
  }
  .page-head__copy { display: grid; gap: var(--s3); justify-items: start; }
  .page-head__title { font-size: var(--fs-h1); margin-block: var(--s1); }
  .page-head__copy .actions { margin-top: var(--s1); }
  .page-head__mark { color: var(--ink); }
  .page-head__glyph { width: clamp(7rem, 4rem + 10vw, 15rem); height: auto; aspect-ratio: 1; }
  /* Cells are emitted bottom row first, so the last one is the block still being laid. */
  .page-head__glyph rect:last-child { fill: var(--blue); }
  @media (max-width: 48rem) {
    .page-head__inner { grid-template-columns: 1fr; }
    .page-head__mark { order: -1; }
    .page-head__glyph { width: 4.5rem; }
  }

  .crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-2); }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { color: var(--ink); }
  .crumbs [aria-current] { color: var(--ink); }

  /* Headline lines that rise into place on load (masked) */
  .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
  .line > span { display: inline-block; }

  /* ---- Closing CTA band ---- */
  .cta-band {
    position: relative; overflow: hidden;
    background: var(--ink); color: var(--paper);
  }
  .cta-band__inner {
    position: relative; display: grid; justify-items: start; gap: var(--s4);
    padding-block: clamp(5rem, 3rem + 8vw, 10rem);
  }
  .cta-band__title { font-size: clamp(2.75rem, 1.5rem + 5.2vw, 6.5rem); }
  .cta-band__text { max-width: 46ch; font-size: var(--fs-lede); color: color-mix(in srgb, var(--paper) 72%, transparent); }
  .cta-band__blocks span {
    position: absolute; top: -3rem; width: 1.5rem; height: 1.5rem;
    background: var(--paper); opacity: 0.07;
  }
  .cta-band__blocks span:nth-child(1)  { left: 4%;  animation-duration: 19s; animation-delay: -3s; }
  .cta-band__blocks span:nth-child(2)  { left: 12%; animation-duration: 24s; animation-delay: -11s; }
  .cta-band__blocks span:nth-child(3)  { left: 21%; animation-duration: 17s; animation-delay: -6s; }
  .cta-band__blocks span:nth-child(4)  { left: 29%; animation-duration: 28s; animation-delay: -15s; }
  .cta-band__blocks span:nth-child(5)  { left: 38%; animation-duration: 21s; animation-delay: -1s; }
  .cta-band__blocks span:nth-child(6)  { left: 46%; animation-duration: 26s; animation-delay: -19s; }
  .cta-band__blocks span:nth-child(7)  { left: 55%; animation-duration: 18s; animation-delay: -8s; }
  .cta-band__blocks span:nth-child(8)  { left: 63%; animation-duration: 23s; animation-delay: -13s; }
  .cta-band__blocks span:nth-child(9)  { left: 71%; animation-duration: 20s; animation-delay: -4s; background: var(--blue); opacity: 0.5; }
  .cta-band__blocks span:nth-child(10) { left: 78%; animation-duration: 27s; animation-delay: -21s; }
  .cta-band__blocks span:nth-child(11) { left: 84%; animation-duration: 16s; animation-delay: -9s; }
  .cta-band__blocks span:nth-child(12) { left: 90%; animation-duration: 25s; animation-delay: -2s; }
  .cta-band__blocks span:nth-child(13) { left: 95%; animation-duration: 22s; animation-delay: -17s; }
  .cta-band__blocks span:nth-child(14) { left: 33%; animation-duration: 30s; animation-delay: -24s; background: var(--blue); opacity: 0.5; }

  /* ---- Footer ---- */
  .footer { padding-block: var(--s6) var(--s4); border-top: 1px solid var(--line); }
  .footer__grid {
    display: grid; gap: var(--s5) var(--s4);
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }
  .footer__brand { display: grid; gap: var(--s3); align-content: start; justify-items: start; }
  .footer__blurb { color: var(--ink-2); font-size: var(--fs-small); max-width: 34ch; }
  .footer__social { display: flex; gap: var(--s3); font-size: var(--fs-small); font-weight: 500; }
  .footer__social:empty { display: none; }
  .footer__col { display: grid; gap: var(--s2); align-content: start; }
  .footer__col ul { display: grid; gap: 0.5rem; }
  .footer__col a, .footer__social a {
    font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; transition: color 0.2s;
  }
  .footer__col a:hover, .footer__social a:hover { color: var(--blue); }
  .footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4);
    margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line);
  }
  .footer__top { text-decoration: none; }
  .footer__legal { display: inline-flex; gap: var(--s3); }
  .footer__legal a { color: inherit; text-decoration: none; padding-block: 0.6rem; margin-block: -0.6rem; }
  .footer__legal a:hover { color: var(--blue); }
  .footer__top:hover { color: var(--ink); }
  @media (max-width: 60rem) {
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__brand { grid-column: 1 / -1; }
  }

  /* ---- Tag list ---- */
  .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .tags li {
    padding: 0.4rem 0.7rem; border: 1px solid var(--line-2);
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-2);
  }

  /* ---- Square-bullet list ---- */
  .ticks { display: grid; gap: 0.55rem; align-content: start; }
  .ticks li {
    display: grid; grid-template-columns: 0.4rem 1fr; gap: 0.75rem; align-items: baseline;
    font-size: var(--fs-small); color: var(--ink-2);
  }
  .ticks li::before {
    content: ""; width: 0.4rem; height: 0.4rem; background: currentColor; opacity: 0.6;
    transform: translateY(-0.1em);
  }
}

/* ----------------------------------------------------------------
   PAGES
---------------------------------------------------------------- */
@layer pages {

  /* ============ HOME: hero ============ */
  .hero {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--line);
    --cell: 1.5rem;
  }
  .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero__grid-fallback { background-size: var(--cell) var(--cell); -webkit-mask-image: none; mask-image: none; }
  .js .hero__grid-fallback { display: none; }
  .hero__inner {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center; gap: var(--s5) clamp(2rem, 5vw, 5rem);
    padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(3.5rem, 2rem + 5vw, 7rem);
    pointer-events: none;
  }
  .hero__inner a, .hero__inner button { pointer-events: auto; }
  .hero__copy { display: grid; gap: var(--s4); justify-items: start; container-type: inline-size; }
  /* Sized to its column so each line always fits on one line: the longest
     ("the problem.") is ~6.2em wide in Archivo 800 at 112% width. */
  /* The mark leads; the headline supports it. */
  .hero__title { font-size: min(clamp(2.4rem, 1.2rem + 3.4vw, 5rem), 15.5cqi); }
  .hero__title .line { white-space: nowrap; }
  .hero__title .accent { color: var(--blue); }
  .hero__lede { max-width: 38ch; }
  .hero__lede strong { color: var(--ink); font-weight: 600; }

  /* The studio line above the headline */
  .hero__meaning {
    font-family: var(--mono); font-size: clamp(0.8125rem, 0.75rem + 0.25vw, 0.9375rem);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  }

  .hero__side { min-width: 0; align-self: stretch; display: grid; }
  /* The canvas draws the pixel N inside this box; CSS owns the layout. */
  .hero__slot { min-height: clamp(20rem, 44vw, 42rem); --mark-align: end; }
  .hero__mark-fallback { width: clamp(18rem, 36vw, 34rem); height: auto; color: var(--ink); align-self: center; justify-self: end; }
  .js .hero__mark-fallback { display: none; }

  /* Tablets and phones: one screen, mark first and big, headline set to the
     column's full width, actions within thumb reach. */
  @media (max-width: 60rem) {
    /* A finer grid on small screens, so the mark can be drawn larger. */
    .hero { --cell: 1.25rem; }
    .hero__inner {
      grid-template-columns: 1fr; align-content: space-between; gap: var(--s4);
      min-height: calc(100svh - var(--nav-h) - 3.4rem);
      padding-block: clamp(1.5rem, 1rem + 3vw, 3rem) 2rem;
    }
    .hero__side { order: -1; }
    .hero__slot { min-height: min(56vw, 30svh); --mark-align: start; }
    .hero__mark-fallback { width: min(64vw, 36svh); justify-self: start; }
    .hero__copy { gap: var(--s3); }
    .hero__title { font-size: min(15.5cqi, 5rem); }
  }
  @media (max-width: 40rem) {
    .hero__copy .actions { display: grid; width: 100%; gap: 0.5rem; }
    .hero__copy .actions .btn { width: 100%; min-height: 3.5rem; }
    .hero__copy .actions .link-arrow { justify-self: center; }
    .hero__meaning { font-size: 0.75rem; }
  }

  /* Capability ticker */
  .ticker {
    position: relative; display: flex;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .ticker__viewport {
    flex: 1 1 auto; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .ticker__track { display: flex; width: max-content; }
  /* Pause/play for the moving list (WCAG 2.2.2). Only shown when it moves. */
  .ticker__toggle {
    display: none; flex: none; align-items: center; justify-content: center;
    min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--gutter) 0 1.25rem; border-left: 1px solid var(--line);
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-2); transition: color 0.2s;
  }
  .ticker__toggle:hover { color: var(--blue); }
  .ticker__list { display: flex; flex: none; }
  .ticker__list li {
    display: flex; align-items: center; gap: 1.25rem; padding: 1.05rem 1.25rem;
    font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-2); white-space: nowrap;
  }
  .ticker__list li::after { content: ""; width: 0.375rem; height: 0.375rem; background: var(--blue); }

  /* ============ HOME: layer stack (pinned) ============ */
  .stack { position: relative; }
  .stack__sticky { padding-block: var(--section); }
  .stack__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--s5) clamp(2rem, 6vw, 6rem); align-items: center;
  }
  .stack__intro { display: grid; gap: var(--s3); align-content: center; }
  .stack__meter { display: flex; gap: 0.375rem; margin-top: var(--s2); }
  .stack__meter span { width: 2rem; height: 0.375rem; background: var(--line-2); transition: background-color 0.3s; }
  .stack__meter span.is-on { background: var(--blue); }
  .stack__count { font-variant-numeric: tabular-nums; }
  /* Progress readouts only mean something while the section is pinned. */
  .stack:not(.is-pinned) .stack__meter, .stack:not(.is-pinned) .stack__count { display: none; }

  .tower { display: flex; flex-direction: column-reverse; gap: 0.5rem; }
  .layer {
    border: 1px solid var(--line-2);
    background: var(--paper-2);
    transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s,
                transform 0.7s var(--ease-out), opacity 0.6s var(--ease-out);
  }
  .layer__head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
    padding: 1.1rem 1.25rem;
  }
  .layer__name { font-family: var(--display); font-weight: 750; font-stretch: 105%; font-size: 1.2rem; letter-spacing: -0.015em; }
  .layer__tech { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; text-align: right; }
  @media (max-width: 36rem) {
    .layer__head { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .layer__tech { text-align: left; }
  }
  .layer__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s var(--ease-out); }
  .layer__body > p { overflow: hidden; min-height: 0; padding: 0 1.25rem; font-size: var(--fs-small); max-width: 46ch; }
  .layer__body > p::after { content: ""; display: block; height: 1.1rem; }

  /* Pinned mode: only on wide, motion-enabled screens (set by site.js) */
  .stack.is-pinned { height: calc(100vh + 300vh); }
  .stack.is-pinned .stack__sticky {
    position: sticky; top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    display: flex; align-items: center; padding-block: var(--s4);
  }
  .stack.is-pinned .stack__grid { width: 100%; }
  .stack.is-pinned .layer { opacity: 0.28; transform: translateY(-1.25rem); }
  .stack.is-pinned .layer.is-placed { opacity: 1; transform: none; }
  .stack.is-pinned .layer:not(.is-current) .layer__body { grid-template-rows: 0fr; }
  .stack.is-pinned .layer.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .stack.is-pinned .layer.is-current .layer__tech { color: var(--blue-on-ink); opacity: 1; }

  @media (max-width: 60rem) {
    .stack__grid { grid-template-columns: 1fr; }
  }

  /* ============ HOME: services rail (horizontal on vertical scroll) ============ */
  .rail { position: relative; border-top: 1px solid var(--line); }
  .rail__sticky { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); overflow: hidden; }
  .rail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); }
  .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rail__viewport::-webkit-scrollbar { display: none; }
  .rail__track {
    display: flex; gap: 1rem; width: max-content;
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .rail__progress { height: 2px; background: var(--line); }
  .rail__progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--rail, 0)); }

  .rail.is-pinned .rail__sticky {
    position: sticky; top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h)); /* phones: the screen without the browser bars */
    align-content: center; padding-block: var(--s4);
  }
  .rail.is-pinned .rail__viewport { overflow: visible; }
  /* Phones: keep the cards clear of the dock at the bottom of the screen. */
  @media (max-width: 48rem) {
    .rail.is-pinned .rail__sticky { padding-bottom: calc(var(--s4) + 4.5rem); gap: var(--s4); }
    .rail.is-pinned .svc-card { min-height: min(20rem, 42svh); }
  }
  .rail.is-pinned .rail__track { transform: translate3d(calc(var(--rail, 0) * var(--rail-distance, 0px) * -1), 0, 0); will-change: transform; }

  .svc-card {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5);
    width: clamp(16.5rem, 24vw, 22rem); min-height: clamp(20rem, 30vw, 26rem);
    padding: 1.5rem;
    background: var(--paper-2); border: 1px solid var(--line);
    text-decoration: none; scroll-snap-align: start;
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s;
  }
  .svc-card__glyph { width: 3rem; height: 3rem; }
  .svc-card__glyph rect { transition: transform 0.5s var(--ease-out); transform-box: fill-box; transform-origin: center; }
  .svc-card__title { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); letter-spacing: -0.025em; line-height: 1; }
  .svc-card__text { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--ink-2); transition: color 0.3s; }
  .svc-card__more { margin-top: 1.25rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); transition: color 0.3s; }
  .svc-card:hover, .svc-card:focus-visible { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
  .svc-card:hover .svc-card__text, .svc-card:hover .svc-card__more,
  .svc-card:focus-visible .svc-card__text, .svc-card:focus-visible .svc-card__more { color: inherit; }
  .svc-card:hover .svc-card__glyph rect:nth-child(odd) { transform: scale(0.6); }
  .svc-card--all { background: var(--ink); color: var(--paper); border-color: var(--ink); justify-content: flex-end; }
  .svc-card--all .svc-card__text { color: color-mix(in srgb, var(--paper) 70%, transparent); }

  /* ============ HOME: case study ============ */
  .case__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); }
  .case__intro { display: grid; gap: var(--s3); align-content: start; }
  .case__title { font-size: var(--fs-h2); }
  .case__actions { margin-top: var(--s2); }
  .case__body { display: grid; gap: var(--s3); align-content: start; }
  .case__body > p { color: var(--ink-2); max-width: 58ch; }
  .case__body > p:first-child { font-size: var(--fs-lede); color: var(--ink); line-height: 1.5; }
  @media (max-width: 56rem) { .case__grid { grid-template-columns: 1fr; } }

  .scope {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; background: var(--line-2); border: 1px solid var(--line-2);
    margin-block: var(--s2);
  }
  .scope li { display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem; background: var(--paper); }
  .scope__name { font-family: var(--display); font-weight: 750; font-stretch: 104%; font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.2; }
  .scope__text { font-size: var(--fs-small); color: var(--ink-2); }
  @media (max-width: 30rem) { .scope { grid-template-columns: 1fr; } }

  /* ============ HOME: principles grid ============ */
  .principles {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2);
  }
  .principles li {
    display: grid; gap: 0.75rem; align-content: start;
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
    transition: background-color 0.3s;
  }
  .principles li:hover { background: var(--paper-2); }
  .principles .glyph { width: 1.75rem; height: 1.75rem; color: var(--blue); margin-bottom: var(--s2); }
  .principles h3 { font-family: var(--display); font-weight: 750; font-stretch: 104%; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
  .principles p { font-size: var(--fs-small); color: var(--ink-2); }
  .principles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 60rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 36rem) { .principles { grid-template-columns: 1fr; } }

  .toolbelt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s5); }
  .toolbelt .tags { gap: 0.4rem; }
  @media (max-width: 56rem) { .toolbelt { grid-template-columns: 1fr; } }

  /* ============ Process timeline (home) ============ */
  .timeline { position: relative; }
  .timeline__bar { position: absolute; left: 0; top: -1px; z-index: 1; width: 100%; height: 3px; background: var(--blue); transform-origin: left; transform: scaleX(var(--progress-line, 1)); }
  .timeline__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
  .timeline__list li { position: relative; display: grid; gap: 0.5rem; align-content: start; padding: 2.25rem 1.5rem 0 0; }
  .timeline__list li::before { content: ""; position: absolute; left: 0; top: -0.45rem; z-index: 2; width: 0.75rem; height: 0.75rem; background: var(--paper); border: 2px solid var(--ink); }
  .timeline__list h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
  .timeline__list p { font-size: var(--fs-small); color: var(--ink-2); }
  @media (max-width: 56rem) {
    .timeline { padding-left: 1.5rem; }
    .timeline__bar { width: 3px; height: 100%; top: 0; left: -1px; transform-origin: top; transform: scaleY(var(--progress-line, 1)); }
    .timeline__list { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); margin-left: -1.5rem; padding-left: 1.5rem; }
    .timeline__list li { padding: 0 0 2rem; }
    .timeline__list li::before { left: calc(-1.5rem - 0.4rem); top: 0.3rem; }
  }

  /* ============ HOME: problem → system journey ============ */
  /* Problem → system scene. Resting state (no motion): a before-and-after,
     the chat beside the finished orders system. */
  .build { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
  .build__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .build__beats { display: grid; gap: var(--s4); }
  .build__beats li { display: grid; gap: var(--s1); padding-left: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); border-left: 0.375rem solid var(--line-2); }
  .build__beats li:first-child { border-left-color: var(--blue); }
  .build__beats .mono { font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .build__beats p { color: var(--ink-2); }
  .build__beats .journey__quote { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.75rem); color: var(--ink); }
  .build__stage { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: var(--s3); align-items: start; margin: 0; }
  .build__label { margin-bottom: var(--s1); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .build__stage figcaption { grid-column: 1 / -1; font-size: var(--fs-mono); color: var(--ink-3); }
  .chat { padding: var(--s2); border: 1px solid var(--line-2); background: var(--paper-2); }
  .chat__list { display: grid; gap: 0.5rem; }
  .msg { display: grid; gap: 0.15rem; max-width: 92%; padding: 0.5rem 0.7rem; background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-small); }
  .msg:nth-child(odd) { justify-self: start; }
  .msg:nth-child(even) { justify-self: end; }
  .msg__who { font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
  .msg__who time { font-weight: 400; font-size: 0.6875rem; color: var(--ink-3); margin-left: 0.35rem; }
  .msg mark { background: var(--blue-wash); color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); padding: 0 0.1em; }
  .msg--lost { border-style: dashed; border-color: var(--ink-3); }
  .msg__flag { justify-self: start; margin-top: 0.2rem; padding: 0.05rem 0.4rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--paper); background: var(--ink); }
  .sys { display: grid; gap: var(--s2); min-width: 0; }
  .orders { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--paper); border: 1px solid var(--line-2); }
  .orders th { text-align: left; font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line-2); }
  .orders td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .orders tr:last-child td { border-bottom: 0; }
  .order__state { display: inline-block; white-space: nowrap; padding: 0.05rem 0.45rem; font-family: var(--mono); font-size: 0.75rem; border: 1px solid var(--line-2); color: var(--ink-3); }
  .order__state[data-state="confirmed"] { color: var(--blue); border-color: var(--blue); background: var(--blue-wash); }
  .order__state[data-state="follow up"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
  .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); }
  .tiles li { padding: var(--s2); border: 1px solid var(--line-2); background: var(--paper); font-size: var(--fs-small); color: var(--ink-2); }
  .tiles b { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ink); }
  .tiles li:last-child b { color: var(--blue); }
  @media (max-width: 60rem) {
    .build__grid, .build__stage { grid-template-columns: 1fr; }
    .orders td:nth-child(1), .orders th:nth-child(1) { display: none; }
  }
  .journey__quote { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.75rem); max-width: 22ch; color: var(--ink); }
  .timeline--journey .timeline__list li::before { transition: background-color 0.4s, border-color 0.4s; }
  .timeline--journey .timeline__list li.is-reached::before { background: var(--blue); border-color: var(--blue); }
  .stamp {
    justify-self: start; display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem;
    padding: 0.35rem 0.6rem; border: 1px solid var(--line-2); transform-origin: left center;
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
    transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
  }
  .is-reached .stamp { background: var(--blue-wash); border-color: var(--blue); color: var(--blue); }
  .stamp--approve::after { content: "you approve"; margin-left: 0.2rem; padding-left: 0.5rem; border-left: 1px solid currentColor; }
  .journey__to { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: var(--s2) var(--s4); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); padding-top: var(--s4); border-top: 1px solid var(--line-2); font-size: var(--fs-lede); color: var(--ink-2); }
  .journey__to b { color: var(--ink); font-weight: 600; }
  @media (max-width: 40rem) { .journey__to { grid-template-columns: 1fr; } }

  /* ============ HOME: packages ============ */
  .packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .package { display: flex; flex-direction: column; gap: var(--s3); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--paper); }
  .package__name { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.025em; line-height: 1; }
  .package__for { margin-top: 0.6rem; color: var(--ink-2); font-size: var(--fs-small); }
  .package .ticks { flex: 1; }
  .package .btn { align-self: stretch; }
  .package__glyph { width: 2.25rem; height: 2.25rem; }
  .packages--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  @media (max-width: 70rem) { .packages--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 56rem) { .packages { grid-template-columns: 1fr; } }

  /* ============ PRICING ============ */
  .price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .price-card { display: flex; flex-direction: column; gap: var(--s3); padding: clamp(1.5rem, 1rem + 1vw, 2rem); background: var(--paper); transition: background-color 0.3s; }
  .price-card:hover { background: var(--paper-2); }
  .price-card__top { display: grid; gap: 0.6rem; }
  .price-card__glyph { width: 2rem; height: 2rem; }
  .price-card__name { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1; }
  .price-card__for { color: var(--ink-2); font-size: var(--fs-small); min-height: 2.9em; }
  .price-card__price { display: grid; gap: 0.1rem; padding-top: var(--s2); border-top: 1px solid var(--line); }
  .price-card__from { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
  .price-card__amount { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 1.5rem + 1.3vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
  .price-card__meta { line-height: 1.5; }
  .price-card .ticks { flex: 1; }
  .price-card__cta { align-self: stretch; }
  .price-card--featured { background: var(--ink); color: var(--paper); position: relative; }
  /* The inverted card is the recommended one; say so, so it never reads as a glitch. */
  .price-card--featured::before, .package--featured::before {
    content: "Recommended"; position: absolute; top: 0; right: 0; padding: 0.3rem 0.6rem;
    background: var(--blue); color: var(--blue-ink);
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  }
  .price-card--featured:hover { background: var(--ink); }
  .price-card--featured .price-card__glyph { color: var(--blue-on-ink); }
  .price-card--featured .price-card__for, .price-card--featured .ticks li { color: color-mix(in srgb, var(--paper) 75%, transparent); }
  .price-card--featured .price-card__from, .price-card--featured .price-card__meta { color: color-mix(in srgb, var(--paper) 60%, transparent); }
  .price-card--featured .price-card__price { border-top-color: color-mix(in srgb, var(--paper) 18%, transparent); }
  .price-card--featured .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .price-card--featured .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
  .price-note { margin-top: var(--s3); font-size: var(--fs-small); color: var(--ink-3); }
  @media (max-width: 70rem) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 36rem) { .price-grid { grid-template-columns: 1fr; } .price-card__for { min-height: 0; } }

  .price-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); counter-reset: none; }
  .price-steps li { display: grid; gap: 0.6rem; align-content: start; padding-top: var(--s3); border-top: 3px solid var(--ink); }
  .price-steps li:first-child { border-top-color: var(--blue); }
  .price-steps h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
  .price-steps p { color: var(--ink-2); font-size: var(--fs-small); }
  @media (max-width: 60rem) { .price-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 36rem) { .price-steps { grid-template-columns: 1fr; } }

  .care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .care-card { display: flex; flex-direction: column; gap: var(--s3); padding: clamp(1.5rem, 1rem + 1vw, 2rem); border: 1px solid var(--line-2); background: var(--paper); }
  .care-card__name { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.4rem; letter-spacing: -0.02em; }
  .care-card__for { color: var(--ink-2); font-size: var(--fs-small); }
  .care-card__price { display: flex; align-items: baseline; gap: 0.4rem; }
  .care-card__per { color: var(--ink-3); font-size: var(--fs-small); }
  .care-card--featured { border: 2px solid var(--blue); position: relative; }
  .care-card--featured::before {
    content: "Recommended"; position: absolute; top: -0.75rem; left: 1.5rem; padding: 0.15rem 0.55rem;
    background: var(--blue); color: var(--blue-ink); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  }
  @media (max-width: 56rem) { .care-grid { grid-template-columns: 1fr; } }

  .package__price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem; }
  .package__price b { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.75rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .package__price span { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

  /* ============ SERVICES page ============ */
  .svc-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); }
  .svc-group + .svc-group { margin-top: var(--section); }
  .svc-group__head { position: sticky; top: calc(var(--nav-h) + var(--s4)); align-self: start; display: grid; gap: var(--s2); }
  .svc-group__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
  .svc-group__summary { color: var(--ink-2); max-width: 32ch; }
  .svc-list { border-top: 1px solid var(--line-2); }
  .svc-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.85fr);
    gap: var(--s2) var(--s4); padding-block: var(--s4);
    border-bottom: 1px solid var(--line-2);
  }
  .svc-row__glyph { width: 2.25rem; height: 2.25rem; transition: color 0.3s; }
  .svc-row:hover .svc-row__glyph, .svc-row:target .svc-row__glyph { color: var(--blue); }
  .svc-row:target { background: linear-gradient(90deg, var(--blue-wash), transparent 70%); }
  .svc-row__title { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.6rem; }
  .svc-row__text { color: var(--ink-2); font-size: var(--fs-small); max-width: 44ch; }
  @media (max-width: 60rem) {
    .svc-group { grid-template-columns: 1fr; }
    .svc-group__head { position: static; }
  }
  @media (max-width: 40rem) {
    .svc-row { grid-template-columns: auto minmax(0, 1fr); }
    .svc-row .ticks { grid-column: 2; }
  }

  .includes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .includes li { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: var(--paper); }
  .includes b { font-family: var(--display); font-weight: 750; font-stretch: 104%; font-size: 1.15rem; letter-spacing: -0.015em; }
  .includes span { font-size: var(--fs-small); color: var(--ink-2); }
  @media (max-width: 60rem) { .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 30rem) { .includes { grid-template-columns: 1fr; } }

  /* ============ PROJECTS page ============ */
  .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
  .facts div { display: grid; gap: 0.4rem; padding: 1.25rem 1.25rem 1.25rem 0; }
  .facts div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .facts dd { font-family: var(--display); font-weight: 750; font-stretch: 104%; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.25; }
  @media (max-width: 48rem) {
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  }

  .story { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) clamp(2rem, 6vw, 6rem); align-items: start; }
  .story__chapters { display: grid; gap: var(--s5); }
  .story__chapter { display: grid; gap: var(--s2); }
  .story__chapter h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; }
  .story__chapter p { color: var(--ink-2); max-width: 52ch; }
  .story__chapter strong { color: var(--ink); font-weight: 600; }
  .story__chapter .actions { margin-top: var(--s1); }
  @media (max-width: 60rem) { .story { grid-template-columns: 1fr; } }

  /* Architecture diagram: the system as stacked blocks */
  .arch { position: sticky; top: calc(var(--nav-h) + var(--s4)); display: grid; gap: 0; padding: var(--s4); border: 1px solid var(--line-2); background: var(--paper-2); }
  .arch__caption { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: var(--s3); }
  .arch__node {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
    padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line-2);
  }
  .arch__node b { font-family: var(--display); font-weight: 750; font-stretch: 104%; font-size: 1.05rem; letter-spacing: -0.01em; }
  .arch__node span { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
  .arch__node--public { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .arch__node--public span { color: color-mix(in srgb, var(--paper) 65%, transparent); }
  .arch__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .arch__pair .arch__node { flex-direction: column; align-items: flex-start; }
  .arch__pair .arch__node span { text-align: left; }
  .arch__link { position: relative; height: 1.75rem; }
  .arch__link::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
    background: repeating-linear-gradient(to bottom, var(--blue) 0 4px, transparent 4px 8px);
  }
  .motion .arch__link::before { animation: arch-flow 0.9s linear infinite; background-size: 100% 16px; }
  @keyframes arch-flow { to { background-position: 0 16px; } }
  @media (max-width: 60rem) { .arch { position: static; } }

  /* ============ PROCESS page ============ */
  .steps { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); }
  .steps__index { position: sticky; top: calc(var(--nav-h) + var(--s4)); align-self: start; display: grid; gap: 0.25rem; }
  .steps__index a {
    display: grid; grid-template-columns: 2.25rem 1fr; align-items: center;
    padding: 0.7rem 0; border-bottom: 1px solid var(--line);
    font-weight: 600; text-decoration: none; color: var(--ink-3);
    transition: color 0.25s;
  }
  .steps__index a span { font-family: var(--mono); font-size: var(--fs-mono); font-weight: 400; }
  .steps__index a:hover { color: var(--ink); }
  .steps__index a.is-active { color: var(--ink); }
  .steps__index a.is-active span { color: var(--blue); }
  .step { display: grid; gap: var(--s3); padding-block: var(--s5); border-top: 1px solid var(--line-2); }
  .step:first-child { padding-top: 0; border-top: 0; }
  .step__num { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(4rem, 2.5rem + 5vw, 7.5rem); line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
  .step__title { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); }
  .step__text { color: var(--ink-2); font-size: var(--fs-lede); line-height: 1.55; max-width: 56ch; }
  .step__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s2); }
  .step__list-label { margin-bottom: var(--s2); }
  .step__layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: var(--s2); }
  .step__layers li { display: grid; gap: 0.35rem; padding: 1.1rem; background: var(--paper-2); border: 1px solid var(--line); }
  .step__layers b { font-family: var(--display); font-weight: 750; font-stretch: 104%; font-size: 1.1rem; }
  .step__layers span { font-size: var(--fs-small); color: var(--ink-2); }
  @media (max-width: 60rem) {
    .steps { grid-template-columns: 1fr; }
    .steps__index { display: none; }
  }
  @media (max-width: 36rem) {
    .step__lists, .step__layers { grid-template-columns: 1fr; }
  }

  /* FAQ */
  .faq { border-top: 1px solid var(--line-2); }
  .faq details { border-bottom: 1px solid var(--line-2); }
  .faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    padding-block: 1.4rem; cursor: pointer; list-style: none;
    font-family: var(--display); font-weight: 750; font-stretch: 104%;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.25;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary:hover { color: var(--blue); }
  .faq__icon { position: relative; flex: none; width: 1.25rem; height: 1.25rem; }
  .faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 0.25rem; margin-top: -0.125rem; background: currentColor; transition: transform 0.35s var(--ease-out); }
  .faq__icon::after { transform: rotate(90deg); }
  .faq details[open] .faq__icon::after { transform: rotate(0deg); }
  .faq__answer { padding-bottom: 1.5rem; color: var(--ink-2); max-width: 64ch; }
  .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); }
  @media (max-width: 60rem) { .faq-layout { grid-template-columns: 1fr; } }

  /* ============ TECHNOLOGY page ============ */
  .stacks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) clamp(2rem, 5vw, 5rem); }
  .spec { display: grid; gap: var(--s3); align-content: start; }
  .spec__head { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; }
  .spec__head .glyph { grid-row: span 2; width: 2.5rem; height: 2.5rem; color: var(--blue); }
  .spec__title { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: -0.025em; line-height: 1; }
  .spec__sub { color: var(--ink-2); font-size: var(--fs-small); }
  .spec dl { border-top: 1px solid var(--line-2); }
  .spec dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s2); padding-block: 0.95rem; border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
  .spec dl div:hover { background: linear-gradient(90deg, var(--blue-wash), transparent); }
  .spec dt { font-weight: 600; }
  .spec dd { color: var(--ink-2); font-size: var(--fs-small); }
  @media (max-width: 56rem) { .stacks { grid-template-columns: 1fr; } }

  .statement { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: start; }
  .statement .glyph { width: clamp(3rem, 2rem + 3vw, 5rem); height: auto; aspect-ratio: 1; color: var(--blue); }
  .statement__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 4rem); max-width: 18ch; }
  .statement p { color: var(--ink-2); font-size: var(--fs-lede); max-width: 56ch; margin-top: var(--s3); }
  @media (max-width: 40rem) { .statement { grid-template-columns: 1fr; } }

  /* ============ AGENCY OS page ============ */
  .roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .roles li { display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem; background: var(--paper); }
  .roles li:last-child { background: var(--ink); color: var(--paper); }
  .roles li:last-child p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
  .roles h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
  .roles p { font-size: var(--fs-small); color: var(--ink-2); }
  .roles .glyph { width: 1.5rem; height: 1.5rem; margin-bottom: 0.4rem; }
  @media (max-width: 36rem) { .roles { grid-template-columns: 1fr; } }

  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); align-items: start; }
  .split__copy { display: grid; gap: var(--s3); }
  .split__copy p { color: var(--ink-2); max-width: 54ch; }
  @media (max-width: 60rem) { .split { grid-template-columns: 1fr; } }

  .pipeline { display: grid; gap: 0; }
  .stage { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4); border-top: 1px solid var(--line-2); }
  .stage__num { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 3rem; line-height: 0.9; letter-spacing: -0.04em; }
  .stage h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.6rem; }
  .stage p { color: var(--ink-2); max-width: 60ch; }
  .gate {
    display: flex; align-items: center; gap: 0.9rem;
    margin-left: calc(4.5rem + var(--s4)); margin-bottom: var(--s4);
    padding: 0.6rem 0.9rem; width: fit-content; max-width: calc(100% - 4.5rem - var(--s4));
    background: var(--blue); color: var(--blue-ink);
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
    position: relative; z-index: 1;
  }
  .gate .glyph { width: 0.85rem; height: 0.85rem; }
  @media (max-width: 36rem) {
    .stage { grid-template-columns: 1fr; gap: var(--s2); }
    .gate { margin-left: 0; max-width: 100%; }
  }

  .proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: end; padding: clamp(2rem, 1rem + 4vw, 4.5rem); background: var(--paper-2); border: 1px solid var(--line-2); }
  .proof__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem); }
  .proof__text { margin-top: var(--s3); color: var(--ink-2); max-width: 52ch; }
  .proof__roster { display: grid; gap: 0.5rem; }
  .proof__roster li { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); font-weight: 600; }
  .proof__roster li::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--blue); }
  @media (max-width: 56rem) { .proof { grid-template-columns: 1fr; } }

  /* ============ CONTACT page ============ */
  .contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5) clamp(2rem, 5vw, 5rem); align-items: start; }
  .contact__aside { display: grid; gap: var(--s5); position: sticky; top: calc(var(--nav-h) + var(--s4)); }
  @media (max-width: 60rem) {
    .contact { grid-template-columns: 1fr; }
    .contact__aside { position: static; }
  }

  .form { display: grid; gap: var(--s3); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: var(--paper-2); border: 1px solid var(--line-2); }
  .form__title { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: -0.025em; line-height: 1; }
  .form__intro { color: var(--ink-2); font-size: var(--fs-small); margin-top: 0.6rem; }
  .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  @media (max-width: 36rem) { .form__row { grid-template-columns: 1fr; } }
  .field { display: grid; gap: 0.5rem; }
  .field label, .field legend { font-size: 0.8125rem; font-weight: 600; color: var(--ink); padding: 0; }
  .field label .req { color: var(--blue); }
  .field label .opt { font-weight: 400; color: var(--ink-3); }
  .input {
    width: 100%; min-height: 3.1rem; padding: 0.8rem 0.95rem;
    background: var(--paper); color: var(--ink);
    border: 1px solid var(--line-2); border-radius: 0;
    font-size: 1rem; line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
  }
  .input::placeholder { color: var(--ink-3); opacity: 1; }
  .input:hover { border-color: var(--ink-3); }
  .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
  .input[aria-invalid="true"] { border-color: var(--danger); }
  textarea.input { min-height: 8rem; resize: vertical; }
  select.input {
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
    background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
  }
  /* Problem-first intake: steps shown one at a time once contact-form.js runs */
  .intake__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s3); }
  .intake__legend {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; padding: 0;
    font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: 1.25rem; letter-spacing: -0.015em;
  }
  .intake__legend:focus { outline: none; }
  .intake__legend .opt { font-family: var(--body); font-weight: 400; font-size: 0.875rem; color: var(--ink-3); letter-spacing: 0; }
  .intake__count { color: var(--blue); }
  .intake__nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
  .intake__nav .btn--ghost { order: -1; }
  .field__hint { font-size: 0.8125rem; color: var(--ink-3); }
  .intake:not(.is-stepped) [data-next], .intake:not(.is-stepped) [data-back] { display: none; }
  .intake:not(.is-stepped) .intake__step + .intake__step { padding-top: var(--s3); border-top: 1px solid var(--line); }
  .intake [aria-invalid="true"] { border-color: var(--danger); }

  .form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding-top: var(--s1); }
  .form__note { font-size: 0.8125rem; color: var(--ink-3); }
  .notice { display: grid; gap: 0.25rem; padding: 1rem 1.1rem; border: 1px solid; font-size: var(--fs-small); }
  .notice b { font-weight: 600; }
  .notice--ok { border-color: var(--blue); background: var(--blue-wash); }
  .notice--error { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); }
  .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

  .next-steps { display: grid; gap: 0; counter-reset: next; border-top: 1px solid var(--line-2); }
  .next-steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.25rem 0.75rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
  .next-steps li::before { counter-increment: next; content: counter(next, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: var(--fs-mono); color: var(--blue); padding-top: 0.25rem; }
  .next-steps b { font-weight: 600; }
  .next-steps span { font-size: var(--fs-small); color: var(--ink-2); }

  .channels { display: grid; gap: 0.5rem; }
  .contact__aside .eyebrow + * { margin-top: var(--s3); }
  .channel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line-2); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
  .channel:hover { background: var(--ink); color: var(--paper); }
  .channel b { font-weight: 600; overflow-wrap: anywhere; }

  /* Estimator */
  .estimator { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .estimator__inputs, .estimator__result { background: var(--paper); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
  .estimator__inputs { display: grid; gap: var(--s4); border: 0; }
  .estimator__inputs fieldset { border: 0; padding: 0; display: grid; gap: 0.75rem; min-width: 0; }
  .estimator__inputs legend { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.75rem; }
  .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 36rem) { .choice-grid, .choice-grid--3 { grid-template-columns: 1fr; } }
  .choice { position: relative; display: block; cursor: pointer; }
  .choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .choice__box { display: grid; gap: 0.2rem; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line-2); background: var(--paper); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
  .choice__box b { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
  .choice__box span { font-size: 0.8125rem; color: var(--ink-3); }
  .choice:hover .choice__box { border-color: var(--ink-3); }
  .choice input:checked + .choice__box { border-color: var(--ink); background: var(--ink); color: var(--paper); }
  .choice input:checked + .choice__box span { color: color-mix(in srgb, var(--paper) 70%, transparent); }
  .choice input:focus-visible + .choice__box { outline: 2px solid var(--blue); outline-offset: 2px; }
  .chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .chip .choice__box { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; }
  .chip .choice__box::before { content: ""; width: 0.7rem; height: 0.7rem; border: 1.5px solid currentColor; flex: none; }
  .chip input:checked + .choice__box::before { background: var(--blue-on-ink); border-color: var(--blue-on-ink); }

  .estimator__result { display: grid; gap: var(--s3); align-content: start; background: var(--ink); color: var(--paper); }
  .estimator__result .mono { color: color-mix(in srgb, var(--paper) 60%, transparent); }
  .estimator__price { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
  .estimator__weeks { font-weight: 600; font-variant-numeric: tabular-nums; }
  .weeks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 0.75rem; }
  .weeks i { width: 0.875rem; height: 0.875rem; background: var(--paper); }
  .weeks i.is-range { background: var(--blue-on-ink); }
  .weeks-legend { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.8125rem; color: color-mix(in srgb, var(--paper) 70%, transparent); }
  .weeks-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
  .weeks-legend span::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--paper); }
  .weeks-legend span + span::before { background: var(--blue-on-ink); }
  html:not(.js) .estimator__result .btn, html:not(.js) .estimator__fine { display: none; }
  .estimator__fine { font-size: 0.8125rem; color: color-mix(in srgb, var(--paper) 60%, transparent); }
  @media (max-width: 60rem) { .estimator { grid-template-columns: 1fr; } }
}

/* ----------------------------------------------------------------
   DETAIL PAGES
   One page per package (/pricing/<id>.html), care plan
   (/pricing/care/<id>.html) and service (/services/<id>.html), plus
   the links into them from cards elsewhere.
---------------------------------------------------------------- */
@layer pages {

  /* Legal pages (privacy, terms): one readable column of prose. */
  .legal { max-width: 46rem; }
  .legal__meta { font-size: var(--fs-mono); color: var(--ink-3); }
  .legal h2 { font-family: var(--display); font-size: var(--fs-h3); margin: var(--s5) 0 var(--s2); }
  .legal p, .legal li { color: var(--ink-2); }
  .legal p + p, .legal ul + p, .legal p + ul { margin-top: var(--s2); }
  .legal ul { display: grid; gap: var(--s1); padding-left: 1.2rem; }
  .legal strong { color: var(--ink); font-weight: 600; }
  .legal a { color: var(--blue); }

  /* A title that can morph into the next page's heading (page-transitions.js). */
  a[data-morph], b[data-morph], span[data-morph] { display: inline-block; }

  /* Card titles that are links: the card stays one object, the title takes the click. */
  .price-card__name a, .package__name a, .care-card__name a, .svc-row__title a {
    color: inherit; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left 100% / 0 2px no-repeat;
    transition: background-size 0.35s var(--ease-out), color 0.2s;
  }
  .price-card__name a:hover, .package__name a:hover, .care-card__name a:hover, .svc-row__title a:hover { background-size: 100% 2px; }
  .price-card__actions { display: grid; gap: 0.35rem; justify-items: center; }
  .price-card__actions .btn { width: 100%; }
  .price-card__start {
    display: inline-flex; align-items: center; min-height: 2.5rem; gap: 0.4rem;
    font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
  }
  .price-card__start:hover { color: var(--blue); }
  .price-card--featured .price-card__start { color: color-mix(in srgb, var(--paper) 75%, transparent); }
  .price-card--featured .price-card__start:hover { color: var(--paper); }
  .care-card .ticks { flex: 1; }
  .care-card__cta { align-self: stretch; }
  .package--featured { background: var(--ink); color: var(--paper); position: relative; }
  .package--featured .package__for, .package--featured .ticks li { color: color-mix(in srgb, var(--paper) 75%, transparent); }
  .package--featured .package__price span { color: color-mix(in srgb, var(--paper) 60%, transparent); }
  .package--featured .package__glyph { color: var(--blue-on-ink); }
  .package--featured .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .package--featured .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
  .svc-row__more {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; margin-top: 0.25rem;
    font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-3); text-decoration: none; transition: color 0.2s;
  }
  .svc-row__more span { transition: transform 0.3s var(--ease-out); }
  .svc-row:hover .svc-row__more, .svc-row__more:hover { color: var(--blue); }
  .svc-row:hover .svc-row__more span { transform: translateX(0.25rem); }
  .estimator__plan { justify-self: start; }

  .section__title--sm { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }

  /* At a glance */
  .facts--plan dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; color: var(--ink-2); font-size: var(--fs-small); font-family: var(--body); font-weight: 500; letter-spacing: 0; }
  .facts__big { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
  .facts--plan div { padding-block: 1.5rem; align-content: start; }

  /* Is it right for you? */
  .fit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); align-items: start; }
  .fit__body { display: grid; gap: var(--s4); }
  .fit__list { display: grid; border-top: 1px solid var(--line-2); }
  .fit__list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s2); align-items: baseline; padding-block: 1.35rem; border-bottom: 1px solid var(--line-2); }
  .fit__list .mono { color: var(--blue); }
  .fit__list p { font-family: var(--display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); letter-spacing: -0.015em; line-height: 1.25; }
  .fit__aside { color: var(--ink-2); max-width: 52ch; }
  .fit__other {
    display: grid; gap: 0.4rem; padding: 1.4rem 1.5rem;
    background: var(--paper-2); border: 1px solid var(--line-2); text-decoration: none;
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s;
  }
  .fit__q { font-weight: 600; font-size: 1.05rem; }
  .fit__plan { color: var(--ink-2); transition: color 0.3s; }
  .fit__plan b { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); margin-right: 0.35rem; transition: color 0.3s; }
  .fit__other:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .fit__other:hover .fit__plan, .fit__other:hover .fit__plan b, .fit__other:hover .mono { color: inherit; }
  @media (max-width: 60rem) { .fit { grid-template-columns: 1fr; } }

  /* What's included / not included */
  .included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
  .included__group { display: grid; gap: var(--s3); align-content: start; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); background: var(--paper); }
  .included__group h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
  .included__group:first-child h3::before { content: ""; display: block; width: 1.5rem; height: 0.375rem; margin-bottom: 1rem; background: var(--blue); }
  .excluded { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s2) var(--s4); margin-top: var(--s4); padding: 1.35rem 1.5rem; border: 1px dashed var(--line-2); }
  .excluded ul { display: grid; gap: 0.5rem; }
  .excluded li { display: grid; grid-template-columns: 1rem 1fr; gap: 0.5rem; color: var(--ink-2); font-size: var(--fs-small); }
  .excluded li::before { content: "–"; color: var(--ink-3); }
  @media (max-width: 60rem) { .included { grid-template-columns: 1fr; } .excluded { grid-template-columns: 1fr; } }

  /* How the weeks run */
  .plan-steps { position: relative; }
  .plan-steps__bar { position: absolute; left: 0; top: -1px; z-index: 1; width: 100%; height: 3px; background: var(--blue); transform-origin: left; transform: scaleX(var(--progress-line, 1)); }
  .plan-steps__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
  .plan-steps__list li { position: relative; display: grid; gap: 0.6rem; align-content: start; padding: 2.25rem 1.75rem 0 0; }
  .plan-steps__list li::before { content: ""; position: absolute; left: 0; top: -0.45rem; z-index: 2; width: 0.75rem; height: 0.75rem; background: var(--paper); border: 2px solid var(--ink); }
  .plan-steps__list .mono { color: var(--blue); }
  .plan-steps__list h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
  .plan-steps__list p { font-size: var(--fs-small); color: var(--ink-2); max-width: 34ch; }
  @media (max-width: 56rem) {
    .plan-steps { padding-left: 1.5rem; }
    .plan-steps__bar { width: 3px; height: 100%; top: 0; left: -1px; transform-origin: top; transform: scaleY(var(--progress-line, 1)); }
    .plan-steps__list { grid-auto-flow: row; border-top: 0; border-left: 1px solid var(--line-2); margin-left: -1.5rem; padding-left: 1.5rem; }
    .plan-steps__list li { padding: 0 0 2rem; }
    .plan-steps__list li::before { left: calc(-1.5rem - 0.4rem); top: 0.3rem; }
  }

  /* What you'll pay */
  .pay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); align-items: start; }
  .pay__note { margin-top: var(--s3); }
  .pay__body { display: grid; gap: var(--s4); }
  .paybar { display: flex; gap: 0.5rem; }
  .paybar li { position: relative; flex: 1 1 0; min-width: 0; display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem 1.1rem 1.1rem; border: 1px solid var(--line-2); overflow: hidden; }
  /* The bar's length is the share: 40% fills the box, 20% half of it. */
  .paybar__fill { position: absolute; left: 0; top: 0; height: 0.375rem; width: calc(var(--w) * 2.5%); background: var(--ink); transform-origin: left; }
  .paybar li:first-child .paybar__fill { background: var(--blue); }
  .paybar .mono { line-height: 1.4; }
  .paybar__amount { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
  .paybar__text { font-size: 0.875rem; color: var(--ink-2); }
  .pay__extras { display: grid; gap: var(--s2); }
  @media (max-width: 60rem) { .pay { grid-template-columns: 1fr; } }
  @media (max-width: 36rem) { .paybar { flex-direction: column; } }

  /* After launch: the recommended care plan / typical package */
  .after { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5) clamp(2rem, 6vw, 6rem); align-items: center; }
  .after .section__text { margin-top: var(--s3); }
  .care-link {
    display: grid; gap: var(--s2); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    background: var(--ink); color: var(--paper); text-decoration: none; border: 1px solid var(--ink);
    transition: background-color 0.35s var(--ease-out), border-color 0.35s;
  }
  .care-link .mono { color: color-mix(in srgb, var(--paper) 60%, transparent); }
  .care-link__name { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; justify-self: start; }
  .care-link__price { color: color-mix(in srgb, var(--paper) 75%, transparent); }
  .care-link__price b { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--paper); font-variant-numeric: tabular-nums; }
  .care-link__price .mono { color: inherit; }
  .care-link .ticks li { color: color-mix(in srgb, var(--paper) 75%, transparent); }
  .care-link__more { font-weight: 600; margin-top: var(--s1); }
  .care-link__more span { display: inline-block; transition: transform 0.3s var(--ease-out); }
  .care-link:hover { background: var(--blue); border-color: var(--blue); }
  .care-link:hover .care-link__more span { transform: translateX(0.3rem); }
  .care-links { display: grid; gap: 0.5rem; }
  .care-link--compact { gap: 0.4rem; padding: 1.25rem 1.4rem; }
  .care-link--compact .care-link__name { font-size: 1.6rem; }
  .care-link--compact .care-link__more { font-weight: 500; font-size: var(--fs-small); margin: 0; color: color-mix(in srgb, var(--paper) 75%, transparent); }
  @media (max-width: 60rem) { .after { grid-template-columns: 1fr; } }

  /* Services that start at a plan */
  .svc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .svc-chips a {
    display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.6rem 1.1rem;
    border: 1px solid var(--line-2); text-decoration: none; font-weight: 600;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  }
  .svc-chips__glyph { width: 1.25rem; height: 1.25rem; color: var(--blue); transition: color 0.25s; }
  .svc-chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .svc-chips a:hover .svc-chips__glyph { color: var(--blue-on-ink); }

  /* Every plan, side by side */
  .plan-switch { background: var(--paper-2); }
  .plan-switch__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
  .plan-switch__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
  .plan-switch__item {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.9rem; align-items: center;
    height: 100%; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line-2);
    text-decoration: none; transition: border-color 0.25s, background-color 0.25s;
  }
  .plan-switch__glyph { grid-row: span 3; width: 2rem; height: 2rem; }
  .plan-switch__item b { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.3rem; letter-spacing: -0.02em; justify-self: start; }
  .plan-switch__price { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .plan-switch__here { color: var(--ink-3); }
  .plan-switch__item:hover { border-color: var(--ink); }
  .plan-switch__item:hover .plan-switch__here { color: var(--blue); }
  .plan-switch__item[aria-current="page"] { border: 2px solid var(--blue); }
  .plan-switch__item[aria-current="page"] .plan-switch__here { color: var(--blue); }
  .plan-switch__item[aria-current="page"] .plan-switch__glyph { color: var(--blue); }
  @media (max-width: 70rem) { .plan-switch__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 30rem) { .plan-switch__list { grid-template-columns: 1fr; } }

  /* Care plans compared */
  .compare-wrap { overflow-x: auto; border: 1px solid var(--line-2); }
  .compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--fs-small); }
  .compare th, .compare td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  .compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
  .compare thead th { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.2rem; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-2); }
  .compare thead a { text-decoration: none; }
  .compare thead a:hover { color: var(--blue); }
  .compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
  .compare td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .compare td b { color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
  .compare .is-current { background: var(--blue-wash); }
  .compare__here { display: block; margin-top: 0.3rem; color: var(--blue); }

  /* What you get (service pages) */
  .gets { display: grid; gap: var(--s4); }
  .gets__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .gets__list li { display: flex; align-items: center; gap: 0.9rem; padding: 1.15rem 1.25rem; background: var(--paper-2); border: 1px solid var(--line); font-weight: 600; }
  .gets__mark { width: 1rem; height: 1rem; color: var(--blue); }
  @media (max-width: 40rem) { .gets__list { grid-template-columns: 1fr; } }

  /* Related services */
  .related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: var(--s4); }
  .svc-card--flat { width: auto; min-height: 17rem; height: 100%; }
  @media (max-width: 60rem) { .related { grid-template-columns: 1fr; } .svc-card--flat { min-height: 0; } }

  /* Contact: what the visitor is asking about */
  .interest {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3);
    padding: 1rem 1.15rem; background: var(--paper); border: 1px solid var(--line-2); border-left: 0.375rem solid var(--blue);
  }
  .interest__copy { display: grid; gap: 0.2rem; min-width: 0; }
  .interest__name { font-family: var(--display); font-weight: 800; font-stretch: 106%; font-size: 1.2rem; letter-spacing: -0.015em; text-decoration: none; }
  .interest__name:hover { color: var(--blue); }
  .interest__detail { font-size: 0.875rem; color: var(--ink-2); }
  .interest__clear { min-height: 2.5rem; padding: 0 0.9rem; border: 1px solid var(--line-2); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); transition: color 0.2s, border-color 0.2s; }
  .interest__clear:hover { color: var(--ink); border-color: var(--ink); }
}

/* ----------------------------------------------------------------
   PHONES
   Long card lists become swipeable rows, the next step stays within
   thumb reach (the dock), and everything tappable answers the touch.
---------------------------------------------------------------- */
@layer pages {

  /* Swipe rows: [data-swipe] lists scroll sideways on phones, one card and
     a peek of the next, with dots underneath (site.js adds them). */
  .swipe-dots { display: none; }
  @media (max-width: 40rem) {
    [data-swipe] {
      /* overflow-y: hidden, not the auto that overflow-x: auto implies, so a
         vertical swipe that starts on a card always scrolls the page. */
      display: flex; gap: 0.75rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory; scrollbar-width: none;
      margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
      scroll-padding-inline: var(--gutter);
      background: none; border: 0;
    }
    [data-swipe]::-webkit-scrollbar { display: none; }
    /* position: relative keeps anything absolutely positioned inside a card
       (screen-reader text, badges) inside the row. Without it, once a card's
       reveal transform is gone, that text is placed against the page at the
       card's sideways offset and widens the page, so phones zoom out. */
    [data-swipe] > * { position: relative; flex: 0 0 84%; scroll-snap-align: start; border: 1px solid var(--line-2); }
    [data-swipe] > .price-card--featured, [data-swipe] > .package--featured { border-color: var(--ink); }
    .principles[data-swipe] > li { border: 1px solid var(--line-2); }
    .care-grid[data-swipe] > .care-card--featured { border: 2px solid var(--blue); margin-top: 0.75rem; }
    .care-grid[data-swipe] > * { margin-top: 0.75rem; }
    .plan-switch__list[data-swipe] > * { flex-basis: 70%; border: 0; }
    .related[data-swipe] > * { border: 0; }

    .swipe-dots { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s3); }
    .swipe-dots__track { display: flex; gap: 0.375rem; }
    .swipe-dots button {
      width: 1.5rem; height: 0.375rem; padding: 0; background: var(--line-2);
      transition: background-color 0.3s, width 0.35s var(--ease-out);
    }
    .swipe-dots button[aria-current="true"] { width: 2.5rem; background: var(--blue); }
    /* A 44px touch target around each small dot. */
    .swipe-dots button { position: relative; }
    .swipe-dots button::after { content: ""; position: absolute; inset: -1.2rem -0.2rem; }
    .swipe-dots__count { font-variant-numeric: tabular-nums; }
  }

  /* The dock */
  .dock { display: none; }
  @media (max-width: 48rem) {
    .dock {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
      display: flex; align-items: center; gap: 0.5rem;
      padding: 0.6rem max(var(--gutter), env(safe-area-inset-left, 0px)) calc(0.6rem + env(safe-area-inset-bottom, 0px));
      background: color-mix(in srgb, var(--paper) 88%, transparent);
      -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
      border-top: 1px solid var(--line);
      transform: translateY(110%); transition: transform 0.45s var(--ease-out);
      view-transition-name: dock;
    }
    .dock.is-shown { transform: none; }
    /* No frosted blur on phones: re-blurring what's underneath on every
       scroll frame made scrolling stutter. A near-solid bar instead. */
    .nav, .dock {
      -webkit-backdrop-filter: none; backdrop-filter: none;
      background: color-mix(in srgb, var(--paper) 97%, transparent);
    }
    .dock__cta { flex: 1; min-height: 3.25rem; }
    .dock__link {
      display: inline-grid; place-items: center; min-height: 3.25rem; padding: 0 1.1rem;
      border: 1px solid var(--line-2); font-weight: 600; font-size: 0.95rem; text-decoration: none;
    }
    html.menu-open .dock { transform: translateY(110%); }
    /* Room at the end of the page so the dock never covers the footer's last line. */
    .footer { padding-bottom: calc(var(--s4) + 4.5rem + env(safe-area-inset-bottom, 0px)); }
  }

  /* The menu: built from the top a row at a time, with the next step in it. */
  .menu__foot { display: grid; gap: 0.75rem; }
  .menu__cta { justify-self: stretch; min-height: 3.5rem; }
  .motion .menu.is-open { animation: menu-build 0.5s steps(6, jump-none) both; }
  @keyframes menu-build { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  .motion .menu.is-open .menu__foot { animation: menu-in 0.6s var(--ease-out) 0.25s both; }

  /* Press feedback on touch: things you tap give a little under your thumb. */
  @media (hover: none) {
    .btn, .svc-card, .price-card, .package, .care-card, .care-link, .plan-switch__item, .fit__other, .svc-chips a, .channel, .dock__link, .menu__links a {
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.18s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
    }
    .btn:active, .dock__link:active, .svc-chips a:active, .channel:active { transform: scale(0.97); }
    .svc-card:active, .price-card:active, .package:active, .care-card:active, .care-link:active, .plan-switch__item:active, .fit__other:active { transform: scale(0.985); }
    .menu__links a:active { color: var(--blue); transform: translateX(0.35rem); }
  }

  /* Footer: two columns of links on phones instead of one long list. */
  @media (max-width: 26rem) {
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid > .footer__col:last-child { grid-column: 1 / -1; }
  }

  /* Small phones (320–360px). Anything wider than the screen makes phones
     zoom the whole page out, so: headline sizes that fit a long word
     ("accountable.", "conversation."), a last-resort break for any word that
     still can't fit, the system map's pair stacked, and a dock that fits. */
  @media (max-width: 22.5rem) {
    .section__title, .case__title { font-size: 2rem; }
    .cta-band__title { font-size: 2.1rem; }
    .display, .display .line > span { overflow-wrap: break-word; max-width: 100%; }
    .arch { padding: var(--s3); }
    .arch__pair { grid-template-columns: minmax(0, 1fr); }
    .dock__cta { min-width: 0; padding-inline: 0.9rem; }
    .dock__link { padding: 0 0.8rem; }
  }
}

/* ----------------------------------------------------------------
   MOTION
   Everything here is enhancement. Hidden start states only exist
   under html.motion (set in <head> when IntersectionObserver is
   available and the visitor hasn't asked for reduced motion).
---------------------------------------------------------------- */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    /* Headlines rise line by line on load */
    .hero__title .line > span,
    .page-head__title .line > span {
      animation: line-up 1s var(--ease-out) both;
    }
    .hero__title .line:nth-child(2) > span, .page-head__title .line:nth-child(2) > span { animation-delay: 90ms; }
    .hero__title .line:nth-child(3) > span, .page-head__title .line:nth-child(3) > span { animation-delay: 180ms; }
    @keyframes line-up { from { transform: translateY(105%); } }

    .hero__copy > :not(.hero__title), .page-head__copy > :not(.page-head__title) {
      animation: fade-up 0.9s var(--ease-out) both; animation-delay: 320ms;
    }
    @keyframes fade-up { from { opacity: 0; transform: translateY(0.75rem); } }

    /* 5x5 glyphs assemble cell by cell, bottom row first */
    .glyph--assemble rect {
      animation: cell-drop 0.7s var(--ease-out) both;
      animation-delay: calc(250ms + var(--i) * 45ms);
    }
    @keyframes cell-drop { from { opacity: 0; transform: translateY(-3px); } }


    /* The ticker moves until paused (its button, or hover). */
    .motion .ticker__toggle { display: inline-flex; }
    .motion .ticker__track { animation: ticker 48s linear infinite; }
    .motion .ticker:hover .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
    @keyframes ticker { to { transform: translateX(-50%); } }

    /* The CTA blocks fall for 5 s after the band comes into view, then stop
       where they are (site.js adds .is-still). */
    .motion .cta-band__blocks span { animation-name: block-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
    .cta-band.is-still .cta-band__blocks span { animation-play-state: paused; }
    @keyframes block-fall { to { transform: translateY(calc(100vh + 6rem)); } }
    /* A card title that morphs into this page's heading arrives with it, instead of rising. */
    .vt-morph .page-head__title .line > span { animation: none; }
    /* Phones: a page's entrance plays while it slides in, instead of waiting
       until after, so it never arrives empty. */
    .vt-slide :is(.page-head__copy > :not(.page-head__title), .hero__copy > :not(.hero__title)) { animation-delay: 60ms; animation-duration: 0.6s; }

    /* Page heads: the mark drifts off and the blueprint grid thins as you scroll away. */
    @supports (animation-timeline: scroll()) {
      .page-head__mark { animation: head-drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
      .page-head__grid { animation: grid-thin linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
      @keyframes head-drift { to { transform: translateY(5rem) rotate(-6deg); opacity: 0.25; } }
      @keyframes grid-thin { to { opacity: 0.2; } }
    }
  }

  /* ---- Scroll reveal ----
     [data-reveal] blocks rise in once. Inside them, headings are uncovered
     from the baseline, the eyebrow's block drops into place, lists cascade
     and payment bars fill, each a beat after the block itself. */
  .motion [data-reveal] {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
  }
  .motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.75rem); }

  .motion [data-reveal] :is(.section__title, .svc-group__title, .case__title, .statement__title, .proof__title) {
    transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms + 90ms);
    clip-path: inset(-0.3em -100vw -0.35em -100vw);
  }
  .motion [data-reveal]:not(.is-in) :is(.section__title, .svc-group__title, .case__title, .statement__title, .proof__title) {
    clip-path: inset(100% -100vw -0.35em -100vw); transform: translateY(0.4em);
  }

  .motion [data-reveal] .eyebrow::before { transition: transform 0.7s var(--ease-out) 0.3s; }
  .motion [data-reveal]:not(.is-in) .eyebrow::before { transform: translateY(-0.75rem) scale(0.3); }

  .motion [data-reveal] .ticks li { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .motion [data-reveal] .ticks li:nth-child(2) { transition-delay: 60ms; }
  .motion [data-reveal] .ticks li:nth-child(3) { transition-delay: 120ms; }
  .motion [data-reveal] .ticks li:nth-child(4) { transition-delay: 180ms; }
  .motion [data-reveal] .ticks li:nth-child(5) { transition-delay: 240ms; }
  .motion [data-reveal] .ticks li:nth-child(n+6) { transition-delay: 300ms; }
  .motion [data-reveal]:not(.is-in) .ticks li { opacity: 0; transform: translateX(-0.5rem); }

  .motion [data-reveal] .paybar__fill { transition: transform 1s var(--ease-out) 0.35s; }
  .motion [data-reveal] .paybar li:nth-child(2) .paybar__fill { transition-delay: 0.6s; }
  .motion [data-reveal] .paybar li:nth-child(3) .paybar__fill { transition-delay: 0.85s; }
  .motion [data-reveal]:not(.is-in) .paybar__fill { transform: scaleX(0); }

  /* Journey stamps press in as the line reaches each step. */
  /* Scale only: dimming the text would drop it below AA contrast
     (--ink-3 at 55% opacity is 2.1:1 in light, 2.5:1 in dark). */
  .motion .timeline--journey li:not(.is-reached) .stamp { transform: scale(0.92); }

  /* Problem → system scene, pinned and scrubbed by scroll (site.js sets
     .is-pinned, --t on each [data-at] element, and each order's status). */
  .build.is-pinned { height: 420vh; }
  .build.is-pinned .build__sticky {
    position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h));
    display: grid; align-items: center; overflow: hidden; padding-bottom: var(--dock-h, 0px);
  }
  .build.is-pinned .build__grid { zoom: var(--fit, 1); }
  .build.is-pinned [data-at] { opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 0.75rem)); }
  .build.is-pinned .msg[data-at] { transform: translateY(calc((1 - var(--t, 0)) * 1.25rem)) scale(calc(0.94 + var(--t, 0) * 0.06)); }
  .build.is-pinned mark[data-at] { opacity: 1; transform: none; background: rgb(0 0 0 / 0); box-shadow: inset 0 calc(-2px * var(--t, 0)) 0 var(--blue); }
  .build.is-pinned tr[data-at] { transform: translateX(calc((1 - var(--t, 0)) * -2rem)); }
  .build.is-pinned .chat { transition: opacity 0.4s var(--ease-out); }
  /* The system appears only once it is being built (--swap: 0 to 1 around p = 0.5). */
  .build.is-pinned .sys { opacity: var(--swap, 0); transform: translateY(calc((1 - var(--swap, 0)) * 1rem)); }
  .build.is-pinned.is-built .chat { opacity: 0.45; }
  .build.is-pinned .order__state { transition: color 0.3s, background-color 0.3s, border-color 0.3s; }
  .build.is-pinned .order__state.is-changed { animation: chip-stamp 0.4s var(--ease-out); }
  @keyframes chip-stamp { from { transform: scale(1.18); opacity: 0.4; } }
  .build.is-pinned .build__beats li { opacity: 0.3; transition: opacity 0.35s var(--ease-out), border-color 0.35s; }
  .build.is-pinned .build__beats li:first-child { border-left-color: var(--line-2); }
  .build.is-pinned .build__beats li.is-done { opacity: 0.55; }
  .build.is-pinned .build__beats li.is-current { opacity: 1; border-left-color: var(--blue); }
  @media (max-width: 60rem) {
    /* Phones: one beat at a time, and the chat hands over to the system in place. */
    .build.is-pinned .build__beats li:not(.is-current) { display: none; }
    .build.is-pinned .build__stage { grid-template-columns: 1fr; }
    /* The caption leads, so it is never below the fold or under the dock. */
    .build.is-pinned .chat, .build.is-pinned .sys { grid-area: 2 / 1; }
    .build.is-pinned .build__stage figcaption { grid-area: 1 / 1; }
    .build.is-pinned .chat { opacity: calc(1 - var(--swap, 0)); }
    .build.is-pinned.is-built .chat { opacity: calc(1 - var(--swap, 0)); }
  }

  /* Section rules are drawn across as each section arrives, like a line on a drawing. */
  .motion .section { position: relative; }
  .motion .section + .section { border-top-color: transparent; }
  .motion .section + .section::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: var(--line); transform-origin: left; transition: transform 1.4s var(--ease-in-out);
  }
  .motion .section + .section:not(.is-seen)::before { transform: scaleX(0); }

  /* Layer stack below the pinning width: the layer being read is highlighted. */
  .stack:not(.is-pinned) .layer.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .stack:not(.is-pinned) .layer.is-current .layer__tech { color: var(--blue-on-ink); opacity: 1; }

  /* Pointer spotlight on cards (site.js adds .has-spot and tracks --mx / --my). */
  @media (hover: hover) and (pointer: fine) {
    .has-spot { position: relative; isolation: isolate; }
    .has-spot::after {
      content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
      background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 50%), var(--blue-wash), transparent 62%);
      opacity: 0; transition: opacity 0.35s;
    }
    .has-spot:hover::after { opacity: 1; }
  }

  /* ---- PAGE TRANSITIONS ----
     Cross-document view transitions (Chrome / Edge / Safari 18.2+). The new
     page is laid over the old one a block at a time: a sprite mask
     (assets/motion/build-*.svg, from scripts/build-mask.mjs) is stepped
     through its 12 frames. The old page steps back and slides the way you're
     going (data-vt-dir, from page-transitions.js). The nav stays put, and a
     card's title can fly into the next page's heading (the "morph" group). */
  ::view-transition-group(root) { animation-duration: 0.8s; }
  ::view-transition-old(root) { animation: 0.8s var(--ease-out) both vt-old; }
  ::view-transition-new(root) {
    animation: 0.75s steps(12, jump-none) both vt-build;
    -webkit-mask-image: url("/assets/motion/build-landscape.svg"); mask-image: url("/assets/motion/build-landscape.svg");
    -webkit-mask-size: 1200% 100%; mask-size: 1200% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  }
  @media (orientation: portrait) {
    ::view-transition-new(root) { -webkit-mask-image: url("/assets/motion/build-portrait.svg"); mask-image: url("/assets/motion/build-portrait.svg"); }
  }
  @keyframes vt-build {
    from { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
    to   { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  }
  /* The old page dims early, so each block of the new one visibly lands. */
  @keyframes vt-old { 35% { opacity: 0.35; } to { opacity: 0.15; transform: scale(0.95); } }
  :root[data-vt-dir="forward"]::view-transition-old(root) { animation-name: vt-old-forward; }
  :root[data-vt-dir="back"]::view-transition-old(root)    { animation-name: vt-old-back; }
  @keyframes vt-old-forward { 35% { opacity: 0.35; } to { opacity: 0.15; transform: translateX(-5%) scale(0.95); } }
  @keyframes vt-old-back    { 35% { opacity: 0.35; } to { opacity: 0.15; transform: translateX(5%) scale(0.95); } }
  /* Phones: pages slide like a native app instead of building. Forward, the
     new page slides in from the right over the old one, which eases left and
     dims; back, the page slides off to the right, revealing the one before.
     The nav and the dock stay put. */
  @media (max-width: 40rem) {
    ::view-transition-group(root) { animation-duration: 0.5s; }
    ::view-transition-old(root), :root[data-vt-dir]::view-transition-old(root) {
      animation: 0.5s cubic-bezier(0.32, 0.72, 0, 1) both vt-push-out;
    }
    ::view-transition-new(root) {
      animation: 0.5s cubic-bezier(0.32, 0.72, 0, 1) both vt-push-in;
      -webkit-mask-image: none; mask-image: none;
      box-shadow: -1.25rem 0 2.5rem rgb(0 0 0 / 0.28);
    }
    :root[data-vt-dir="back"]::view-transition-old(root) { animation-name: vt-pop-out; z-index: 1; box-shadow: -1.25rem 0 2.5rem rgb(0 0 0 / 0.28); }
    :root[data-vt-dir="back"]::view-transition-new(root) { animation-name: vt-pop-in; box-shadow: none; }
    @keyframes vt-push-out { to { transform: translateX(-28%); opacity: 0.45; } }
    @keyframes vt-push-in  { from { transform: translateX(100%); } }
    @keyframes vt-pop-out  { to { transform: translateX(100%); } }
    @keyframes vt-pop-in   { from { transform: translateX(-28%); opacity: 0.45; } }
  }

  ::view-transition-group(morph) { animation-duration: 0.7s; animation-timing-function: var(--ease-out); z-index: 2; }
  ::view-transition-old(morph), ::view-transition-new(morph) { animation-duration: 0.45s; height: 100%; }

  /* ---- Fallback block curtain (browsers without view transitions) ---- */
  .pt-curtain {
    position: fixed; inset: 0; z-index: 300; pointer-events: none;
    display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr);
  }
  .pt-curtain i { background: var(--ink); transition: transform 0.24s var(--ease-out); transition-delay: calc(var(--o) * 36ms); }
  .pt-curtain i:nth-child(11n + 4) { background: var(--blue); }
  .pt-curtain[data-state="open"] i, .pt-curtain[data-state="clearing"] i { transform: scale(0); }
  .pt-curtain[data-state="building"] i, .pt-curtain[data-state="covered"] i { transform: scale(1.02); }
  .pt-curtain[data-state="covered"] i { transition: none; }
  html.pt-arriving body::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--ink); }
  /* Phone fallback slide (no view transitions): out to the left, in from the right. */
  html.pt-slide-out body { transform: translateX(-28%); opacity: 0; transition: transform 0.26s cubic-bezier(0.4, 0, 1, 1), opacity 0.26s; }
  html.pt-slide-in body { animation: pt-slide-in 0.45s cubic-bezier(0.32, 0.72, 0, 1) both; }
  @keyframes pt-slide-in { from { transform: translateX(40%); opacity: 0; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  }
}

/* ============ PRODUCTS: hub and Nirmaan Outreach ============ */
@layer pages {
  /* Products hub: one card per product; the whole card is the link. */
  .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--s3); }
  .product-card {
    position: relative; display: grid; align-content: start; gap: var(--s2);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 1px solid var(--line); background: var(--paper);
    transition: border-color 0.3s var(--ease-out);
  }
  .product-card:hover { border-color: var(--ink); }
  .product-card:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
  .product-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
  .product-card__top .eyebrow { margin: 0; }
  .product-card__glyph { width: 3rem; height: 3rem; }
  .product-card__name { font-size: var(--fs-h2); margin-top: var(--s3); }
  .product-card__name a { color: inherit; text-decoration: none; }
  .product-card__name a:focus-visible { outline: none; }
  .product-card__name a::before { content: ""; position: absolute; inset: 0; }
  .product-card__tagline { font-weight: 600; font-size: var(--fs-lede); line-height: 1.35; }
  .product-card__text { color: var(--ink-2); }
  .product-card__more { margin-top: var(--s2); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

  /* Shared bits on the product page */
  .mk-split {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s5) clamp(2rem, 6vw, 6rem); align-items: start;
  }
  .mk-split .section__text { margin-top: var(--s3); color: var(--ink-2); }
  @media (max-width: 60rem) { .mk-split { grid-template-columns: 1fr; } }

  /* The problem */
  .mk-problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
  .mk-problem { display: grid; gap: var(--s1); align-content: start; padding-top: var(--s3); border-top: 2px solid var(--ink); }
  .mk-problem__title { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.02em; }
  .mk-problem p:last-child { color: var(--ink-2); }
  .mk-answer { margin-top: var(--s6); max-width: 24ch; font-size: var(--fs-h2); line-height: 1.05; }
  .mk-answer .accent { color: var(--blue); }
  @media (max-width: 48rem) { .mk-problems { grid-template-columns: 1fr; } }

  /* The demo: a scripted "campaign console" with seven beats. Without JS every
     beat renders, one after another; tour.js stacks them and plays them. */
  .tour { margin-top: var(--s5); border: 1px solid var(--line); background: var(--paper); }
  .tour__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s1); border-bottom: 1px solid var(--line); }
  html:not(.js) .tour__bar, html:not(.js) .tour__progress { display: none; }
  .tour__steps { display: flex; gap: 0.25rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tour__steps::-webkit-scrollbar { display: none; }
  @media (max-width: 48rem) {
    .tour__steps { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  }
  .tour__controls { display: flex; flex: none; gap: 0.25rem; }
  .tour__step, .tour__ctrl {
    flex: none; min-height: 2.75rem; padding: 0 0.9rem;
    border: 1px solid transparent; background: none; color: var(--ink-2);
    font: 500 var(--fs-small)/1 var(--body); white-space: nowrap; cursor: pointer;
  }
  .tour__step .mono { margin-right: 0.35rem; font-size: var(--fs-mono); color: var(--ink-3); }
  .tour__step:hover, .tour__ctrl:hover { color: var(--ink); }
  .tour__step[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
  .tour__step[aria-selected="true"] .mono { color: var(--blue); }
  .tour__step:focus-visible, .tour__ctrl:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .tour__ctrl { min-width: 5.5rem; border-color: var(--line-2); font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; }
  .tour__progress { height: 2px; background: var(--line); }
  .tour__progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.6s var(--ease-out); }
  .tour__stage { display: grid; gap: var(--s6); padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem); }
  .tour.is-ready .tour__stage { grid-template-areas: "beat"; }
  .tour.is-ready .tour__beat { grid-area: beat; }
  .tour.is-ready .tour__beat:not(.is-active) { visibility: hidden; }
  .tour__beat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4) var(--s5); align-items: center; }
  .tour__caption { display: grid; gap: var(--s2); align-content: start; }
  .tour__title { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; }
  .tour__title .mono { display: block; margin-bottom: 0.6rem; font-weight: 400; font-size: var(--fs-mono); letter-spacing: 0.12em; color: var(--blue); }
  .tour__caption p { color: var(--ink-2); }
  .tour__note { margin-top: var(--s4); font-size: var(--fs-mono); letter-spacing: 0.08em; color: var(--ink-2); }
  .tour__note + .tour { margin-top: var(--s2); }
  @media (max-width: 60rem) { .tour__beat { grid-template-columns: 1fr; align-items: start; align-content: start; } }

  .console { min-width: 0; border: 1px solid var(--line-2); background: var(--paper-2); font-size: var(--fs-small); }
  .console__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
  .console__bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-size: var(--fs-mono); letter-spacing: 0.08em; color: var(--ink-2); }
  .console__body { display: grid; gap: 0.7rem; padding: 1.1rem 1.2rem 1.3rem; }
  .console__label { font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
  .console__input { padding: 0.8rem 0.9rem; border: 1px solid var(--ink); background: var(--paper); }
  .console__rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 0.55rem 0; border-top: 1px solid var(--line); }
  .console__rows li:first-child { border-top: 0; }
  .console__rows .mono { font-size: var(--fs-mono); color: var(--ink-2); white-space: nowrap; }
  .console__rows--queue li:has(.console__sub) { padding-top: 0; border-top: 0; }
  .console__sub { font-size: 0.8125rem; color: var(--ink-2); }
  .console__note, .console__verdict { color: var(--ink-2); }
  .console__note b, .console__verdict b { color: var(--ink); }
  .console__signals { display: grid; gap: 0.45rem; }
  .console__signals li { display: flex; align-items: center; gap: 0.6rem; }
  .console__signals li::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; background: var(--blue); }
  .console__signals li.is-no { color: var(--ink-2); }
  .console__signals li.is-no::before { background: var(--line-2); }
  .console__mail p { line-height: 1.5; }
  .console__meta { overflow-wrap: anywhere; font-size: var(--fs-mono); color: var(--ink-2); }
  .console__subject { font-weight: 700; }
  .console__mail mark { padding: 0.05em 0.15em; background: var(--blue-wash); color: inherit; }
  .console__optout { font-size: 0.8125rem; color: var(--ink-2); }
  .console__chip { padding: 0.3rem 0.5rem; border: 1px solid var(--ink); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
  .console__chip.is-done { border-color: var(--blue); background: var(--blue); color: var(--blue-ink); }
  .console__reply { display: grid; gap: 0.3rem; padding: 0.8rem 0.9rem; border-left: 3px solid var(--ink); background: var(--paper); }
  .console__events { display: grid; gap: 0.35rem; padding-left: 1rem; }
  .console__events li { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-2); }
  .console__events li::before { content: "→"; color: var(--ink-2); }
  .console__events li.is-blue { color: var(--blue); }
  .console__bars { display: grid; gap: 0.6rem; }
  .console__bars li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: center; gap: var(--s2); }
  .console__bars i { display: block; height: 0.8rem; background: var(--blue); transform-origin: left; transform: scaleX(var(--w)); }
  @media (max-width: 30rem) { .console__rows li { flex-wrap: wrap; gap: 0.25rem var(--s2); } .console__bars li { grid-template-columns: 6.5rem minmax(0, 1fr); } }

  /* What it does */
  .mk-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: var(--s5); border: 1px solid var(--line); background: var(--line); }
  .mk-feature { display: grid; gap: 0.6rem; align-content: start; padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); background: var(--paper); }
  .mk-feature__glyph { width: 2.25rem; height: 2.25rem; margin-bottom: 0.6rem; }
  .mk-feature__title { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
  .mk-feature p { font-size: var(--fs-small); color: var(--ink-2); }
  @media (max-width: 60rem) { .mk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 40rem) { .mk-features { grid-template-columns: 1fr; } }

  /* Price */
  .mk-price .care-card__price + .care-card__price { margin-top: calc(var(--s2) * -1); }
  .mk-price__early { font-weight: 600; color: var(--blue); }
  .mk-price .btn { align-self: start; }
  .section--tint .price-note { color: var(--ink-2); }

  /* Guard rails and audience */
  .mk-guards { border-top: 1px solid var(--line); }
  .mk-guards li { position: relative; padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--line); }
  .mk-guards li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: 0.75rem; height: 0.75rem; background: var(--blue); }
  .mk-audience { display: flex; flex-wrap: wrap; align-content: start; gap: 0.6rem; }
  .mk-audience li { padding: 0.8rem 1.1rem; border: 1px solid var(--ink); font-weight: 600; }

  /* Getting started */
  .mk-setup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
  .mk-step { display: grid; gap: var(--s1); align-content: start; padding: var(--s3); border: 1px solid var(--line); background: var(--paper); }
  .mk-step__n { font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
  .mk-step__title { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }
  .mk-step p:last-child { font-size: var(--fs-small); color: var(--ink-2); }
  @media (max-width: 60rem) { .mk-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 40rem) { .mk-setup { grid-template-columns: 1fr; } }
}

/* The demo's entrance motion: only with html.motion (JS on, no reduced motion). */
@layer motion {
  .motion .tour.is-ready .tour__beat.is-active [data-i] { animation: tour-in 0.55s var(--ease-out) both; animation-delay: calc(var(--i) * 0.32s); }
  .motion .tour.is-ready .tour__beat.is-active .console__bars i { animation: tour-bar 0.9s var(--ease-out) both; animation-delay: 0.6s; }
  @keyframes tour-in { from { opacity: 0; transform: translateY(0.5rem); } }
  @keyframes tour-bar { from { transform: scaleX(0); } }
}

/* Touch: small text links get an invisible hit area of at least 44px, so they
   are easy to tap without changing how the page looks. */
@layer components {
  @media (pointer: coarse) {
    .brand, .crumbs a, .footer__col a, .footer__social a, .footer__top { position: relative; }
    .brand::after, .crumbs a::after, .footer__col a::after, .footer__social a::after, .footer__top::after {
      content: ""; position: absolute; inset: -0.75rem -0.5rem;
    }
    .footer__col ul { gap: 0.75rem; }
    .footer__social { gap: var(--s4); }
  }
}

/* Cross-document View Transitions opt-in. Must be a top-level rule. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
