
  :root {
    /* Dx Graphite tokens — re-declared verbatim */
    --color-canvas: #ffffff;
    --color-raised: #ffffff;
    --color-fill: #f7f7f7;
    --color-fill-selected: #f5f5f5;
    --color-border: #f2f2f2;
    --color-overlay-hover: rgba(0, 0, 0, 0.03);
    --color-overlay-pressed: rgba(0, 0, 0, 0.05);
    --color-ink-strong: #292929;
    --color-ink: #5d5d5d;
    --color-ink-subtle: #7f7f7f;
    --color-accent: #1677d2;
    --color-accent-hover: #1268be;
    --color-accent-subtle-bg: #e8f1fb;
    --color-on-accent: #ffffff;
    --color-focus: #1677d2;
    --color-success: #1c8c5b;
    --color-success-bg: #e6f5ee;
    --color-warning: #9a6a12;
    --color-warning-bg: #fbf1dc;
    --color-danger: #c8362e;
    --color-danger-hover: #b33028;
    --color-danger-bg: #fceae8;
    --color-running: #2c6fb8;
    --color-running-bg: #e8f0f9;
    --space-xxs: 2px;
    --space-xs: 4px;
    --space-sm: 6px;
    --space-md: 8px;
    --space-lg: 12px;
    --space-xl: 16px;
    --space-xxl: 24px;
    --space-xxxl: 32px;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 20px;
    --radius-control: 10px;
    --radius-composer: 16px;
    --radius-pill: 999px;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    --font-size-caption: 12px;
    --font-size-body: 13.5px;
    --font-size-body-strong: 13px;
    --font-size-title: 14px;
    --font-size-heading: 16px;
    --font-size-heading-lg: 18px;
    --font-size-display: 24px;
    --line-compact: 1.25;
    --line-heading: 1.3;
    --line-body: 1.45;
    --weight-base: 400;
    --weight-emphasis: 510;
    --weight-strong: 600;
    --control-height: 30px;
    --control-height-compact: 28px;
    --control-height-large: 36px;
    --focus-ring-width: 1.5px;
    --focus-ring-offset: 1.5px;
    --disabled-opacity: 0.5;
    --motion-quick: 120ms;
    --motion-standard: 180ms;
    --motion-slow: 260ms;
    --motion-press: 250ms;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-swift-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
    --shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.06);
    --shadow-overlay: 0 2px 8px rgba(0, 0, 0, 0.06), 0 -6px 12px rgba(0, 0, 0, 0.03), 0 14px 28px rgba(0, 0, 0, 0.08);

    /* Atlas page tokens */
    --at-paper: #f7f3ea;
    --at-ink: #171511;
    --at-ink-soft: #45413a;
    --at-ink-subtle: #6d6960;
    --at-ink-faint: #9d9789;
    --at-hairline: #e5dfd0;
    --at-card: #ffffff;
    --at-scrim: rgba(255, 255, 255, 0.86);
    --at-scrim-ink: #171511;
    --at-veil: rgba(247, 243, 234, 0.26);
    --at-font-mono: "SF Mono", Menlo, ui-monospace, monospace;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --color-canvas: #171717;
      --color-raised: #1f1f1f;
      --color-fill: #232323;
      --color-fill-selected: #282828;
      --color-border: #2c2c2c;
      --color-overlay-hover: rgba(255, 255, 255, 0.04);
      --color-overlay-pressed: rgba(255, 255, 255, 0.07);
      --color-ink-strong: #ededed;
      --color-ink: #b8b8b8;
      --color-ink-subtle: #8a8a8a;
      --color-accent: #3d9aff;
      --color-accent-hover: #5fa9ff;
      --color-accent-subtle-bg: #12283e;
      --color-on-accent: #08121e;
      --color-focus: #3d9aff;
      --color-success: #3cb583;
      --color-success-bg: #123324;
      --shadow-raised: 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.3);
      --shadow-overlay: 0 2px 8px rgba(0, 0, 0, 0.3), 0 14px 28px rgba(0, 0, 0, 0.4);

      --at-paper: #171512;
      --at-ink: #efece4;
      --at-ink-soft: #c8c3b8;
      --at-ink-subtle: #a09b8f;
      --at-ink-faint: #6e695f;
      --at-hairline: #2b2822;
      --at-card: #201e1a;
      --at-scrim: rgba(23, 21, 18, 0.82);
      --at-scrim-ink: #efece4;
      --at-veil: rgba(23, 21, 18, 0.32);
    }
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    background: var(--at-paper);
    color: var(--at-ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: var(--line-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--at-ink); color: var(--at-paper); }
  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-focus);
    outline-offset: var(--focus-ring-offset);
    border-radius: var(--radius-xs);
  }
  img { display: block; max-width: 100%; height: auto; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

  .mono {
    font-family: var(--at-font-mono);
    font-size: 11.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--at-ink-faint);
  }

  /* Icon plumbing (designex icons embed) */
  .dx-icon {
    width: 1em;
    height: 1em;
    color: currentColor;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -0.125em;
  }
  .dx-icon[data-dx-icon-role="ui"] { stroke: currentColor; fill: none; }
  .dx-icon[data-dx-icon-role="brand"]:not([data-dx-brand-color="original"]) { fill: currentColor; stroke: none; }
  .dx-icon-size-sm { font-size: 16px; }
  .dx-icon-size-md { font-size: 18px; }

  /* ---------- Header ---------- */
  header.site { padding: var(--space-xxl) 0; }
  .site-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xxl);
  }
  .wordmark { font-size: 15px; font-weight: var(--weight-strong); letter-spacing: -0.01em; }
  nav.top { display: flex; gap: clamp(14px, 2.5vw, 32px); align-items: center; }
  nav.top a {
    font-size: 13.5px;
    color: var(--at-ink-subtle);
    transition: color var(--motion-quick) var(--ease-out);
  }
  nav.top a:hover { color: var(--at-ink); }
  .btn-ink {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    background: var(--at-ink);
    color: var(--at-paper);
    font-size: 13.5px;
    font-weight: var(--weight-emphasis);
    border: none;
    cursor: pointer;
    transition: opacity var(--motion-quick) var(--ease-out), transform var(--motion-quick) var(--ease-out);
  }
  .btn-ink:hover { opacity: 0.85; }
  .btn-ink:active { transform: scale(0.98); }
  /* The header CTA is a link, so it must out-specify the nav link colours. */
  nav.top a.btn-ink,
  nav.top a.btn-ink:hover { color: var(--at-paper); }
  /* The shared focus rule squares corners; keep the pill a pill while focused. */
  .btn-ink:focus-visible { border-radius: var(--radius-pill); }

  /* ---------- Hero ---------- */
  .hero { padding: clamp(48px, 9vh, 104px) 0 clamp(28px, 4vh, 44px); }
  .hero h1 {
    font-size: clamp(44px, 7vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: var(--weight-strong);
    max-width: 20ch;
  }
  .hero h1 em { font-style: normal; color: var(--at-ink-faint); }
  .hero-foot {
    margin-top: clamp(24px, 4vh, 40px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xxxl);
    flex-wrap: wrap;
  }
  .hero .lede {
    max-width: 46ch;
    font-size: 17px;
    line-height: 1.55;
    color: var(--at-ink-soft);
  }
  .index {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  .index a {
    display: flex;
    align-items: baseline;
    gap: var(--space-xl);
    font-family: var(--at-font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--at-ink-subtle);
    transition: color var(--motion-quick) var(--ease-out);
  }
  .index a:hover { color: var(--at-ink); }
  .index a .n { color: var(--at-ink-faint); width: 30px; }
  .index a:hover .n { color: var(--at-ink); }

  /* ---------- Panels ---------- */
  .chapter { padding: clamp(40px, 7vh, 88px) 0 0; }
  .chapter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
  }
  .chapter-head .num {
    font-family: var(--at-font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--at-ink-faint);
  }
  .chapter-head h2 {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: var(--weight-strong);
    letter-spacing: -0.025em;
    line-height: 1.08;
  }
  .chapter-head .num { flex: 0 0 auto; }
  .chapter-head-left { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); }

  .panel {
    position: relative;
    border-radius: var(--radius-xxl);
    overflow: hidden;
    min-height: clamp(400px, 56vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 56px);
  }
  .panel > img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.5px) saturate(0.9);
    transform: scale(1.02);
  }
  .hero-panel > img.bg { filter: saturate(0.94); transform: none; }
  .panel > .veil {
    position: absolute;
    inset: 0;
    background: var(--at-veil);
    pointer-events: none;
  }
  .panel > .grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.22;
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .panel .tag {
    position: absolute;
    top: var(--space-xl);
    left: var(--space-xl);
    background: var(--at-scrim);
    color: var(--at-scrim-ink);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-family: var(--at-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-xxxl);
    padding: var(--space-xxl) var(--space-xs) 0;
    flex-wrap: wrap;
  }
  .caption p { font-size: 15.5px; color: var(--at-ink-subtle); max-width: 58ch; }
  .caption p b { color: var(--at-ink); font-weight: var(--weight-emphasis); }
  .caption p em { font-style: normal; color: var(--at-ink); }

  /* Artifact cards (shared) */
  .artifact {
    position: relative;
    background: var(--at-card);
    border-radius: var(--radius-composer);
    box-shadow: var(--shadow-overlay);
    padding: var(--space-xl) var(--space-xxl);
    width: min(560px, 100%);
  }
  .artifact .a-label {
    font-family: var(--at-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--at-ink-faint);
    display: block;
    margin-bottom: var(--space-lg);
  }

  /* Hero panel */
  .hero-panel .artifact { width: min(600px, 100%); }
  .composer-text { font-size: 16px; line-height: 1.5; color: var(--at-ink); }
  .composer-text .caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--color-accent);
    vertical-align: -0.18em;
    margin-left: 1px;
    animation: caret-blink 1.1s steps(1) infinite;
  }
  @keyframes caret-blink { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .composer-text .caret { animation: none; } }
  .composer-row {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    height: var(--control-height);
    padding: 0 var(--space-lg);
    border-radius: var(--radius-pill);
    background: var(--color-fill);
    color: var(--at-ink-soft);
    font-size: var(--font-size-body-strong);
    font-weight: var(--weight-emphasis);
    white-space: nowrap;
  }
  .pill.ghost { background: transparent; color: var(--at-ink-faint); padding: 0; }
  .composer-row .send {
    margin-left: auto;
    width: var(--control-height-large);
    height: var(--control-height-large);
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-on-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .chip-row {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + var(--space-lg));
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    height: var(--control-height);
    padding: 0 var(--space-lg);
    border-radius: var(--radius-pill);
    background: var(--at-scrim);
    color: var(--at-scrim-ink);
    font-size: var(--font-size-body-strong);
    font-weight: var(--weight-emphasis);
    white-space: nowrap;
  }
  .hero-panel { margin-bottom: calc(var(--control-height) + var(--space-xxl)); }

  /* Chapter 1 artifact: source card */
  .src-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--at-hairline);
    font-size: var(--font-size-body);
    color: var(--at-ink-soft);
  }
  .src-row:first-of-type { border-top: none; padding-top: 0; }
  .src-row .ic { color: var(--at-ink-subtle); display: inline-flex; }
  .src-row b { font-weight: var(--weight-emphasis); color: var(--at-ink); }
  .src-row .st {
    margin-left: auto;
    font-family: var(--at-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-success);
    white-space: nowrap;
  }
  .swatch-strip { display: flex; align-items: center; gap: var(--space-sm); }
  .swatch-strip i { width: 16px; height: 16px; border-radius: 999px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }

  /* Chapter 1: source switcher stage */
  .source-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(560px, 100%);
  }
  .source-stage .artifact { width: 100%; }
  .src-tabs {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-xl);
  }
  button.src-tab { border: none; cursor: pointer; font-family: var(--font-sans); font-size: var(--font-size-body-strong); font-weight: var(--weight-emphasis); }
  .src-tabs-break { flex-basis: 100%; height: 0; }
  button.src-tab[aria-selected="true"] { background: var(--at-scrim-ink); color: var(--at-paper); }
  .src-note { color: var(--at-ink-subtle); font-size: var(--font-size-caption); }
  .src-card[hidden] { display: none; }
  .src-card .src-row { transition: opacity var(--motion-standard) var(--ease-out), transform var(--motion-standard) var(--ease-out); }
  .src-card.playing .src-row { opacity: 0; transform: translateY(6px); }
  .src-card.playing .src-row.show { opacity: 1; transform: none; }
  .src-row .swatch-strip i { transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-fluid); }
  .src-card.playing .src-row:not(.show) .swatch-strip i { opacity: 0; transform: scale(0.5); }
  .src-card.playing .src-row.show .swatch-strip i:nth-child(1) { transition-delay: 0ms; }
  .src-card.playing .src-row.show .swatch-strip i:nth-child(2) { transition-delay: 60ms; }
  .src-card.playing .src-row.show .swatch-strip i:nth-child(3) { transition-delay: 120ms; }
  .src-card.playing .src-row.show .swatch-strip i:nth-child(4) { transition-delay: 180ms; }
  .src-card.playing .src-row.show .swatch-strip i:nth-child(5) { transition-delay: 240ms; }
  .src-row .st.busy { color: var(--color-running); }
  /* Extracted palettes: one five-swatch strip per source card. */
  .src-card[data-src="codebase"] .swatch-strip i:nth-child(1) { background: #1d5c8a; }
  .src-card[data-src="codebase"] .swatch-strip i:nth-child(2) { background: #e8eef3; }
  .src-card[data-src="codebase"] .swatch-strip i:nth-child(3) { background: #26292c; }
  .src-card[data-src="codebase"] .swatch-strip i:nth-child(4) { background: #c96f2e; }
  .src-card[data-src="codebase"] .swatch-strip i:nth-child(5) { background: #f6f4ef; }
  .src-card[data-src="figma"] .swatch-strip i:nth-child(1) { background: #5b4bc4; }
  .src-card[data-src="figma"] .swatch-strip i:nth-child(2) { background: #efeaff; }
  .src-card[data-src="figma"] .swatch-strip i:nth-child(3) { background: #221f33; }
  .src-card[data-src="figma"] .swatch-strip i:nth-child(4) { background: #e0b64a; }
  .src-card[data-src="figma"] .swatch-strip i:nth-child(5) { background: #fbfaff; }
  .src-card[data-src="image"] .swatch-strip i:nth-child(1) { background: #2e6e6a; }
  .src-card[data-src="image"] .swatch-strip i:nth-child(2) { background: #eaf4f2; }
  .src-card[data-src="image"] .swatch-strip i:nth-child(3) { background: #1f2b2a; }
  .src-card[data-src="image"] .swatch-strip i:nth-child(4) { background: #d98e5f; }
  .src-card[data-src="image"] .swatch-strip i:nth-child(5) { background: #fbfffe; }
  .src-card[data-src="designmd"] .swatch-strip i:nth-child(1) { background: #7a3b2e; }
  .src-card[data-src="designmd"] .swatch-strip i:nth-child(2) { background: #f7f0e6; }
  .src-card[data-src="designmd"] .swatch-strip i:nth-child(3) { background: #2e2a24; }
  .src-card[data-src="designmd"] .swatch-strip i:nth-child(4) { background: #3f6f4f; }
  .src-card[data-src="designmd"] .swatch-strip i:nth-child(5) { background: #fffdf8; }
  .src-card[data-src="catalog"] .swatch-strip i:nth-child(1) { background: #1677d2; }
  .src-card[data-src="catalog"] .swatch-strip i:nth-child(2) { background: #f7f7f7; }
  .src-card[data-src="catalog"] .swatch-strip i:nth-child(3) { background: #292929; }
  .src-card[data-src="catalog"] .swatch-strip i:nth-child(4) { background: #7f7f7f; }
  .src-card[data-src="catalog"] .swatch-strip i:nth-child(5) { background: #ffffff; }
  @media (prefers-reduced-motion: reduce) {
    .src-card.playing .src-row { opacity: 1; transform: none; }
    .src-card.playing .src-row:not(.show) .swatch-strip i { opacity: 1; transform: none; }
  }

  /* Chapter 2 artifact: model picker */
  .model-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    height: var(--control-height);
    padding: 0 var(--space-md) 0 var(--space-lg);
    border-radius: var(--radius-pill);
    background: var(--color-fill);
    color: var(--at-ink);
    font-size: var(--font-size-body-strong);
    font-weight: var(--weight-emphasis);
  }
  .model-alts {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--at-hairline);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  .model-alts .mono { letter-spacing: 0.07em; }

  /* Chapter 3 artifact: handoff receipt */
  .ship-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--at-hairline);
    font-size: var(--font-size-body);
    color: var(--at-ink-soft);
  }
  .ship-row:first-of-type { border-top: none; padding-top: 0; }
  .ship-row .ck { color: var(--color-success); display: inline-flex; }
  .src-row .st.avail { color: var(--at-ink-faint); }
  /* Chapter 3: handoff timeline */
  .ho-steps { display: flex; flex-direction: column; }
  .ho-step {
    position: relative;
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
  }
  .ho-step + .ho-step { border-top: 1px solid var(--at-hairline); }
  .ho-step .dot {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-pill);
    background: var(--color-fill);
    color: var(--at-ink-subtle);
    font-family: var(--at-font-mono);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
  }
  .ho-step .body { min-width: 0; flex: 1; }
  .ho-step .t {
    font-size: var(--font-size-title);
    font-weight: var(--weight-emphasis);
    letter-spacing: -0.01em;
    color: var(--at-ink);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  .ho-step .d { margin-top: var(--space-xs); font-size: var(--font-size-body); color: var(--at-ink-subtle); }
  .ho-step .d .mono-inline { font-family: var(--at-font-mono); font-size: 12px; color: var(--at-ink-soft); }
  .agent-stack { display: inline-flex; align-items: center; margin-right: var(--space-xs); }
  .agent-stack .a {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--color-fill);
    box-shadow: 0 0 0 2px var(--at-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .agent-stack .a .dx-icon, .agent-stack .a .dx-icon-adaptive { font-size: 13px; }
  .agent-stack .a + .a { margin-left: -7px; }
  .ho-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 56px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-raised);
    background: #f4efe4;
    position: relative;
    overflow: hidden;
    margin-left: auto;
  }
  .ho-thumb i { position: absolute; border-radius: 2px; }
  .ho-thumb i.t1 { top: 8px; left: 6px; width: 18px; height: 4px; background: #2b3a2f; opacity: 0.85; }
  .ho-thumb i.t2 { top: 16px; left: 6px; width: 13px; height: 2px; background: #2b3a2f; opacity: 0.3; }
  .ho-thumb i.t3 { top: 8px; right: 6px; bottom: 7px; width: 12px; background: linear-gradient(160deg, #8aa681, #43594a); }
  .ship-row .note {
    margin-left: auto;
    font-family: var(--at-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--at-ink-faint);
    white-space: nowrap;
  }

  /* Chapter 4: skills wall (flat, no photo) */
  .skills-frame {
    border: 1px solid var(--at-hairline);
    border-radius: var(--radius-xxl);
    padding: clamp(24px, 4vw, 56px);
  }
  .skills-wall { display: flex; flex-wrap: wrap; gap: var(--space-md); }
  .skill-chip {
    display: inline-flex;
    align-items: center;
    height: var(--control-height);
    padding: 0 var(--space-xl);
    border-radius: var(--radius-pill);
    background: var(--at-card);
    box-shadow: var(--shadow-raised);
    font-size: var(--font-size-body);
    color: var(--at-ink-soft);
    white-space: nowrap;
  }
  .skill-chip.more { background: transparent; box-shadow: none; color: var(--at-ink-faint); font-family: var(--at-font-mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; }
  .integrations {
    margin-top: var(--space-xxxl);
    padding-top: var(--space-xxl);
    border-top: 1px solid var(--at-hairline);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
  }
  .integrations .int {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-title);
    font-weight: var(--weight-emphasis);
    color: var(--at-ink-soft);
  }
  .integrations .int { line-height: 1; }
  .integrations .int.quiet { color: var(--at-ink-faint); font-weight: var(--weight-base); }
  .integrations .int .dx-icon,
  .integrations .int .dx-icon-adaptive {
    font-size: 20px;
    color: var(--at-ink);
    vertical-align: 0;
    transform: translateY(1px);
  }
  .integrations .int .mobbin-mark {
    height: 15px;
    width: auto;
    display: block;
    color: var(--at-ink);
    transform: translateY(1px);
  }

  /* Chapter 5: companion — mobile surface over night sky */
  .phone-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
  }
  .ios-tabbar {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    border-radius: 999px;
    background: rgba(30, 30, 33, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 0.5px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 25;
    transition: opacity 200ms var(--ease-out);
  }
  .ios-tabbar.hide { opacity: 0; visibility: hidden; pointer-events: none; }
  .itab {
    background: none;
    border: none;
    color: #9a9aa0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-sans);
    font-size: 8.5px;
    letter-spacing: 0.01em;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 999px;
    flex: 1 1 0;
    min-width: 0;
  }
  .itab.on { color: #ffffff; }
  .tab-lens {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
    transition: transform 340ms var(--ease-fluid), width 340ms var(--ease-fluid);
    pointer-events: none;
  }
  @media (prefers-reduced-motion: reduce) { .tab-lens { transition: none; } }
  .itab svg { width: 19px; height: 19px; display: block; }
  .home-bar { z-index: 26; }
  .phone-card {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 300 / 612;
    background: linear-gradient(155deg, #3c3c40, #232326 40%, #4a4a4f 90%);
    border-radius: 52px;
    padding: 4px;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.25),
      inset 0 -1px 1px rgba(0, 0, 0, 0.4),
      0 2px 6px rgba(0, 0, 0, 0.25),
      0 24px 48px rgba(0, 0, 0, 0.35),
      0 48px 90px rgba(0, 0, 0, 0.22);
  }
  .phone-bezel {
    position: absolute;
    inset: 4px;
    border-radius: 48px;
    background: #08080a;
    padding: 8px;
  }
  .phone-screen {
    position: absolute;
    inset: 8px;
    border-radius: 40px;
    overflow: hidden;
    background: #131313;
  }
  .side-btn {
    position: absolute;
    background: linear-gradient(90deg, #55555a, #2c2c30);
    border-radius: 2px;
  }
  .side-btn.mute { left: -2.5px; top: 108px; width: 3px; height: 22px; }
  .side-btn.volu { left: -2.5px; top: 148px; width: 3px; height: 42px; }
  .side-btn.vold { left: -2.5px; top: 200px; width: 3px; height: 42px; }
  .side-btn.power { right: -2.5px; top: 168px; width: 3px; height: 66px; }
  .dyn-island {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 25px;
    border-radius: 999px;
    background: #000;
    z-index: 30;
  }
  .ph-statusbar {
    position: absolute;
    top: 12px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    color: #f5f5f5;
    pointer-events: none;
  }
  .ph-statusbar .sb-time { font-size: 12px; font-weight: 650; letter-spacing: 0; }
  .ph-statusbar .sb-icons { width: 46px; height: 12px; display: block; }
  .ph-screen[data-screen="test"] .ph-statusbar { color: #1d1d1f; }
  .home-bar {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    z-index: 20;
  }
  .ph-screen[data-screen="test"] .home-bar { background: rgba(29, 29, 31, 0.75); }
  .phone-glare {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 44%);
    z-index: 40;
    pointer-events: none;
  }
  .ph-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 44px 16px 92px;
    gap: 10px;
    opacity: 0;
    transition: opacity 260ms var(--ease-out);
    pointer-events: none;
  }
  .ph-screen.on { opacity: 1; pointer-events: auto; }
  /* Prototype library screen */
  .pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; flex: 1; }
  .pl-card {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 7px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    font-family: var(--font-sans);
  }
  .pl-thumb { position: relative; border-radius: 8px; aspect-ratio: 3 / 4; overflow: hidden; display: block; }
  .pl-thumb i { position: absolute; border-radius: 1.5px; display: block; }
  .pl-name { color: #ececec; font-size: 9.5px; font-weight: 600; }
  .pl-meta { color: #8a8a8a; font-size: 8px; }
  /* Prototype-thumbnail miniatures: four hand-placed abstractions of real pages. */
  .pl-thumb.t-fern { background: #f4efe4; }
  .pl-thumb.t-fern i:nth-child(1) { top: 9px; left: 8px; width: 30px; height: 4.5px; background: #2b3a2f; opacity: 0.85; }
  .pl-thumb.t-fern i:nth-child(2) { top: 17px; left: 8px; width: 20px; height: 2.5px; background: #2b3a2f; opacity: 0.3; }
  .pl-thumb.t-fern i:nth-child(3) { top: 9px; right: 8px; bottom: 9px; width: 36%; background: linear-gradient(160deg, #8aa681, #43594a); border-radius: 4px; }
  .pl-thumb.t-checkout { background: #eef2f7; }
  .pl-thumb.t-checkout i:nth-child(1) { top: 9px; left: 8px; right: 8px; height: 5px; background: #1d5c8a; opacity: 0.9; }
  .pl-thumb.t-checkout i:nth-child(2) { top: 19px; left: 8px; width: 24px; height: 2.5px; background: #26292c; opacity: 0.35; }
  .pl-thumb.t-checkout i:nth-child(3) { bottom: 9px; left: 8px; right: 8px; height: 22px; background: #d9e2ec; border-radius: 4px; }
  .pl-thumb.t-dark { background: #1d241f; }
  .pl-thumb.t-dark i:nth-child(1) { top: 10px; left: 8px; width: 34px; height: 5px; background: #edf3ea; opacity: 0.9; }
  .pl-thumb.t-dark i:nth-child(2) { top: 19px; left: 8px; width: 22px; height: 3px; background: #a4d9a6; }
  .pl-thumb.t-dark i:nth-child(3) { bottom: 9px; left: 8px; right: 8px; height: 20px; background: #29332b; border-radius: 4px; }
  .pl-thumb.t-plants { background: #ffffff; }
  .pl-thumb.t-plants i:nth-child(1) { top: 10px; left: 50%; transform: translateX(-50%); width: 26px; height: 4.5px; background: #24312a; opacity: 0.85; }
  .pl-thumb.t-plants i:nth-child(2) { top: 18px; left: 50%; transform: translateX(-50%); width: 18px; height: 2.5px; background: #24312a; opacity: 0.3; }
  .pl-thumb.t-plants i:nth-child(3) { bottom: 9px; left: 10px; width: 14px; height: 16px; background: #cfdccf; }
  .pl-thumb.t-plants i:nth-child(4) { bottom: 9px; left: 28px; width: 14px; height: 16px; background: #cfdccf; }
  .pl-thumb.t-plants i:nth-child(5) { bottom: 9px; left: 46px; width: 14px; height: 16px; background: #cfdccf; }
  @media (prefers-reduced-motion: reduce) { .ph-screen { transition: none; } }
  .ph-nav { display: flex; align-items: center; justify-content: space-between; }
  .ph-title { color: #f2f2f2; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; }
  .ph-title.sm { font-size: 12px; font-weight: 600; }
  .ph-title .run { width: 7px; height: 7px; border-radius: 999px; background: #34c77b; display: inline-block; }
  .ph-back { color: #8a8a8a; font-size: 16px; }
  .ph-screen[data-screen="chat"] .ph-nav { justify-content: center; position: relative; }
  .ph-screen[data-screen="chat"] .ph-back { position: absolute; left: 0; }
  .ph-capsule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #242424;
    border-radius: 999px;
    padding: 4px 10px;
    color: #cfcfcf;
    font-size: 12px;
  }
  .ph-capsule i { font-style: normal; }
  .ph-capsule i.lines { width: 10px; height: 7px; border-top: 1.5px solid #cfcfcf; border-bottom: 1.5px solid #cfcfcf; }
  .ph-sync {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(36, 36, 36, 0.9);
    border-radius: 999px;
    padding: 3px 9px;
    color: #a5a5a5;
    font-size: 8.5px;
    letter-spacing: 0.02em;
  }
  .ph-sync i { width: 5px; height: 5px; border-radius: 999px; background: #34c77b; }
  .ph-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
  .ph-col { display: flex; flex-direction: column; gap: 8px; }
  .ph-tile {
    border-radius: 10px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-fluid);
  }
  .ph-grid.tiles-hidden .ph-tile { opacity: 0; transform: translateY(12px) scale(0.94); }
  /* Tile heights are the mosaic's composition, so they live with the stagger. */
  .ph-col:nth-child(1) .ph-tile:nth-child(1) { height: 74px; transition-delay: 0ms; }
  .ph-col:nth-child(2) .ph-tile:nth-child(1) { height: 52px; transition-delay: 70ms; }
  .ph-col:nth-child(1) .ph-tile:nth-child(2) { height: 48px; transition-delay: 140ms; }
  .ph-col:nth-child(2) .ph-tile:nth-child(2) { height: 78px; transition-delay: 210ms; }
  .ph-col:nth-child(1) .ph-tile:nth-child(3) { height: 64px; transition-delay: 280ms; }
  .ph-col:nth-child(2) .ph-tile:nth-child(3) { height: 46px; transition-delay: 350ms; }
  .ph-col:nth-child(1) .ph-tile:nth-child(4) { height: 56px; transition-delay: 420ms; }
  .ph-col:nth-child(2) .ph-tile:nth-child(4) { height: 72px; transition-delay: 490ms; }
  .ph-col:nth-child(1) .ph-tile:nth-child(5) { height: 68px; transition-delay: 560ms; }
  .ph-col:nth-child(2) .ph-tile:nth-child(5) { height: 50px; transition-delay: 630ms; }
  /* Test screen: full-bleed prototype, dock chip + close chip only */
  .ph-screen[data-screen="test"] { padding: 0; }
  .ph-proto {
    position: absolute;
    inset: 0;
    background: #f4efe4;
    color: #2b3a2f;
    padding: 44px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .ph-proto .pp-nav { display: flex; justify-content: space-between; align-items: center; }
  .ph-proto .pp-dot { width: 6px; height: 6px; border-radius: 999px; background: #6a5a37; }
  .ph-proto .pp-links { display: flex; gap: 6px; }
  .ph-proto .pp-links i { width: 14px; height: 2.5px; border-radius: 2px; background: #2b3a2f; opacity: 0.35; }
  .ph-proto .pp-title { font-size: 21px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.05; margin-top: 8px; }
  .ph-proto .pp-rule { height: 1px; background: #ddd4bf; }
  .ph-proto .pp-lines i { display: block; height: 2.5px; border-radius: 2px; background: #2b3a2f; opacity: 0.35; margin-bottom: 5px; }
  .ph-proto .pp-lines i:nth-child(1) { width: 88%; }
  .ph-proto .pp-lines i:nth-child(2) { width: 72%; }
  .ph-proto .pp-lines i:nth-child(3) { width: 80%; }
  .ph-proto .pp-photo { flex: 1; border-radius: 8px; background: linear-gradient(160deg, #8aa681, #43594a); }
  .ph-proto .pp-tag { font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; color: #6a5a37; }
  .ph-close {
    position: absolute;
    top: 44px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(19, 19, 19, 0.55);
    color: #f2f2f2;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
  }
  .ph-dock {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(19, 19, 19, 0.8);
    color: #f2f2f2;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 9px;
    font-weight: 600;
  }
  /* Chat screen */
  .ph-chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
  .ph-chat .msg { max-width: 82%; border-radius: 12px; padding: 7px 10px; font-size: 10px; line-height: 1.4; }
  .ph-chat .msg.me { align-self: flex-end; background: #2f2f2f; color: #ececec; border-bottom-right-radius: 4px; }
  .ph-chat .msg.them { align-self: flex-start; background: transparent; color: #b8b8b8; padding-left: 2px; }
  .ph-chat .tool-group {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 11px;
    background: #1a1a1c;
    border-radius: 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.07);
  }
  .ph-chat .tool-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #9a9a9f;
  }
  .ph-chat .tool-row .tk { width: 10px; height: 10px; flex: 0 0 auto; }
  .ph-chat .tool-row .tk.done { color: #34c77b; }
  .ph-chat .tool-row .tfile { font-family: var(--at-font-mono); font-size: 8.5px; color: #c9c9ce; }
  .ph-chat .tool-row.run { color: #8ab8ef; }
  .ph-chat .tspin {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--color-accent);
    flex: 0 0 auto;
    margin: 2px;
    animation: tool-pulse 1.1s ease-in-out infinite;
  }
  @keyframes tool-pulse { 50% { opacity: 0.25; } }
  .ph-chat .s-caret {
    display: inline-block;
    width: 1.5px;
    height: 1em;
    background: var(--color-accent);
    margin-left: 2px;
    vertical-align: -0.15em;
    animation: caret-blink 1.1s steps(1) infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .ph-chat .tspin, .ph-chat .s-caret { animation: none; }
  }
  .ph-chat .msg-card {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1f1f1f;
    border-radius: 10px;
    padding: 7px 9px;
  }
  .ph-chat .mc-thumb { position: relative; width: 26px; height: 34px; border-radius: 4px; background: #f4efe4; overflow: hidden; flex: 0 0 auto; }
  .ph-chat .mc-thumb i { position: absolute; border-radius: 1px; }
  .ph-chat .mc-thumb i.t1 { top: 5px; left: 4px; width: 11px; height: 2.5px; background: #2b3a2f; opacity: 0.85; }
  .ph-chat .mc-thumb i.t2 { top: 10px; left: 4px; width: 8px; height: 1.5px; background: #2b3a2f; opacity: 0.3; }
  .ph-chat .mc-thumb i.t3 { top: 5px; right: 4px; bottom: 4px; width: 7px; background: linear-gradient(160deg, #8aa681, #43594a); }
  .ph-chat .mc-label { color: #ececec; font-size: 9px; line-height: 1.35; }
  .ph-chat .mc-label em { font-style: normal; color: #8a8a8a; font-size: 8px; }
  .ph-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #242424;
    border-radius: 999px;
    padding: 6px 6px 6px 12px;
  }
  .ph-composer .plus { color: #8a8a8a; font-size: 13px; }
  .ph-composer .field { flex: 1; color: #8a8a8a; font-size: 10px; }
  .ph-composer .go {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-on-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }

  /* Chapter 6: comparison (flat, no photo) */
  .compare-frame {
    border: 1px solid var(--at-hairline);
    border-radius: var(--radius-xxl);
    padding: clamp(24px, 4vw, 56px);
  }
  .compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
  }
  .compare-col .col-label {
    display: block;
    margin-bottom: var(--space-md);
  }
  .compare-col.ours .col-label { color: var(--at-ink); }
  .compare-row {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--at-hairline);
    font-size: 15px;
    line-height: 1.5;
    color: var(--at-ink-subtle);
  }
  .compare-col.ours .compare-row { color: var(--at-ink-soft); }
  .compare-col.ours .compare-row b { color: var(--at-ink); font-weight: var(--weight-emphasis); }
  .compare-synthesis {
    margin-top: clamp(24px, 4vh, 40px);
    padding-top: clamp(24px, 4vh, 40px);
    border-top: 1px solid var(--at-hairline);
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-weight: var(--weight-emphasis);
    max-width: 44ch;
  }
  .compare-synthesis em { font-style: normal; color: var(--at-ink-faint); }
  .aud-rows { margin-top: clamp(28px, 5vh, 44px); }
  .aud-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: clamp(16px, 3vw, 48px);
    align-items: baseline;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--at-hairline);
  }
  .aud-row:last-child { border-bottom: 1px solid var(--at-hairline); }
  .aud-row .who {
    font-size: var(--font-size-title);
    font-weight: var(--weight-strong);
    letter-spacing: -0.01em;
  }
  .aud-row p { font-size: 15px; color: var(--at-ink-subtle); max-width: 52ch; }

  /* ---------- Closing ---------- */
  .closing {
    border-top: 1px solid var(--at-hairline);
    padding: clamp(88px, 16vh, 184px) 0;
  }
  .close-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(28px, 5vh, 44px);
  }
  .close-line {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: var(--weight-strong);
    letter-spacing: -0.028em;
    line-height: 1.12;
    color: var(--at-ink);
    max-width: 18ch;
  }
  .close-line em { font-style: normal; color: var(--at-ink-faint); }
  .btn-ink.btn-large {
    height: 48px;
    padding: 0 30px;
    font-size: 15px;
  }

  /* Download area: the CTA plus the facts a Mac user needs before clicking. */
  .get {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }
  .get-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
  }
  /* These two are load-bearing facts, not a byline, so they sit a step above
     the decorative .mono labels elsewhere on the page. */
  .get-meta .mono { color: var(--at-ink-subtle); }
  .get-sep { width: 1px; height: 9px; background: var(--at-ink-faint); opacity: 0.5; display: block; flex: 0 0 auto; }
  a.mono {
    color: var(--at-ink-subtle);
    text-decoration: underline;
    text-decoration-color: var(--at-hairline);
    text-underline-offset: 4px;
    transition: color var(--motion-quick) var(--ease-out), text-decoration-color var(--motion-quick) var(--ease-out);
  }
  a.mono:hover { color: var(--at-ink); text-decoration-color: currentColor; }
  /* The disclosure is quieter than the CTA but must stay comfortably readable,
     so it uses the page's secondary body colour, not the decorative faint one. */
  .get-note {
    max-width: 64ch;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--at-ink-subtle);
  }
  .get-note a {
    color: var(--at-ink);
    text-decoration: underline;
    text-decoration-color: var(--at-hairline);
    text-underline-offset: 3px;
    transition: color var(--motion-quick) var(--ease-out), text-decoration-color var(--motion-quick) var(--ease-out);
  }
  .get-note a:hover { text-decoration-color: currentColor; }

  footer.site { border-top: 1px solid var(--at-hairline); padding: var(--space-xxl) 0 var(--space-xxxl); }
  footer.site .site-row { flex-wrap: wrap; row-gap: var(--space-lg); }
  .fine { font-size: 12.5px; color: var(--at-ink-faint); }
  .foot-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-xxl);
    flex-wrap: wrap;
    row-gap: var(--space-md);
    margin-top: clamp(20px, 3vh, 30px);
  }
  .foot-links { display: flex; gap: clamp(14px, 2.5vw, 32px); flex-wrap: wrap; }
  .foot-links a {
    font-size: 13.5px;
    color: var(--at-ink-subtle);
    transition: color var(--motion-quick) var(--ease-out);
  }
  .foot-links a:hover { color: var(--at-ink); }

  /* Model select menu (hero composer) */
  .model-anchor { position: relative; display: inline-flex; }
  button.model-trigger { border: none; cursor: pointer; font: inherit; font-size: var(--font-size-body-strong); font-weight: var(--weight-emphasis); }
  button.model-trigger:hover { background: var(--color-fill-selected); }
  .model-menu {
    position: absolute;
    bottom: calc(100% + var(--space-md));
    left: 0;
    width: 264px;
    background: var(--at-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-overlay);
    padding: var(--space-sm);
    z-index: 40;
    text-align: left;
  }
  .menu-label {
    font-family: var(--at-font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--at-ink-faint);
    padding: var(--space-sm) var(--space-md) var(--space-xs);
  }
  .menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    height: var(--control-height);
    padding: 0 var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    background: none;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    color: var(--at-ink);
    cursor: pointer;
    text-align: left;
  }
  .menu-item:hover { background: var(--color-fill); }
  .menu-item .dx-icon { font-size: 16px; }
  .menu-item .chev { margin-left: auto; color: var(--at-ink-faint); display: inline-flex; }
  .sub-anchor { position: relative; }
  .submenu {
    display: none;
    position: absolute;
    left: calc(100% + var(--space-xs));
    top: calc(-1 * var(--space-sm));
    width: 248px;
    background: var(--at-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-overlay);
    padding: var(--space-sm);
    z-index: 41;
  }
  .sub-anchor:hover > .submenu,
  .sub-anchor.open > .submenu { display: block; }
  .sub-anchor:hover > .menu-item,
  .sub-anchor.open > .menu-item { background: var(--color-fill); }
  @media (max-width: 900px) {
    .submenu {
      position: static;
      width: auto;
      box-shadow: none;
      padding: 0 0 var(--space-xs) var(--space-xl);
    }
  }
  .meter { margin-left: auto; display: inline-flex; gap: 2px; align-items: center; }
  .meter i { width: 3px; height: 10px; border-radius: 2px; background: var(--color-fill-selected); display: block; }
  .meter.tone-success i.on { background: var(--color-success); }
  .meter.tone-running i.on { background: var(--color-running); }
  .meter.tone-warning i.on { background: var(--color-warning); }

  /* ---------- Responsive ---------- */
  @media (max-width: 860px) {
    .hero-foot { flex-direction: column; align-items: flex-start; }
    .compare-grid { grid-template-columns: 1fr; gap: var(--space-xxl); }
    .aud-row { grid-template-columns: 1fr; gap: var(--space-xs); }
    .chapter-head { flex-direction: column; gap: var(--space-md); }
    .caption { flex-direction: column; gap: var(--space-lg); }
    .panel { min-height: 440px; padding: var(--space-xl); align-items: flex-end; }
    .hero-panel.panel { align-items: center; padding-bottom: 130px; }
    .chapter-5 .panel { flex-direction: column; align-items: center; gap: var(--space-xl); padding-top: 64px; }
    .phone-stage { flex-direction: column; }
    nav.top a:not(.btn-ink) { display: none; }
  }
  /* Only stack the download facts once they genuinely cannot share a line. */
  @media (max-width: 460px) {
    .get-meta { flex-direction: column; gap: var(--space-sm); }
    .get-sep { display: none; }
  }

.dx-icon {
  width: 1em;
  height: 1em;
  color: currentColor;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.125em;
}
.dx-icon[data-dx-icon-role="ui"] {
  stroke: currentColor;
  fill: none;
}
.dx-icon[data-dx-icon-role="brand"]:not([data-dx-brand-color="original"]) {
  fill: currentColor;
  stroke: none;
}
.dx-brand-wordmark {
  width: auto;
  height: 1em;
}
.dx-icon-adaptive {
  display: inline-block;
  width: auto;
  height: 1em;
  line-height: 0;
  vertical-align: -0.125em;
}
.dx-icon-adaptive > .dx-icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .dx-icon-adaptive > .dx-icon-light { display: none; }
  .dx-icon-adaptive > .dx-icon-dark { display: inline-block; }
}
