/* TeeBox — site styles
   Layout idea: a T-account. A ruled crossbar opens each section and a spine splits the claim
   (left, lime ticks) from the evidence (right, violet ticks), as in the TeeBox mark.
   Built with cascade layers, color-mix(), linear() spring easing, container queries,
   scroll-driven animation (progressive), view transitions and native <dialog>. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

@layer reset, tokens, base, layout, components, sections, polish, motion, responsive;

/* ───────────────────────── reset ───────────────────────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg, canvas { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
}

/* ───────────────────────── tokens ───────────────────────── */
@layer tokens {
  :root {
    --paper: #F4F4F8;
    --paper-2: #ECECF3;
    --surface: #FFFFFF;
    --ink: #1D2033;
    --ink-2: #4E5270;
    --ink-3: #7B7F99;
    --rule: #D9DAE6;
    --rule-2: #E8E8F0;
    --violet: #807AF8;
    --violet-ink: #5149E0;
    --lime: #B0FF00;
    --lime-ink: #4C7300;
    --night: #121427;
    --night-2: #1B1E39;
    --alert: #C23B4A;
    --app-bg: #F6F6FA;

    --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --wrap: 1720px;
    --gutter: clamp(16px, 4vw, 64px);
    --card-w: clamp(480px, 36vw, 680px);
    --space-section: clamp(96px, 12.5vw, 232px);
    --space-head: clamp(48px, 6vw, 112px);
    --space-block: clamp(40px, 4.6vw, 88px);
    --radius: 14px;
    --radius-lg: 22px;

    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.077 24.2%, 1.067 26.8%, 1.003 33.9%, .993 37.4%, 1 46%);

    --shadow-sm: 0 1px 0 rgba(29,32,51,.04), 0 8px 24px -16px rgba(29,32,51,.28);
    --shadow: 0 1px 0 rgba(29,32,51,.04), 0 24px 60px -28px rgba(29,32,51,.35);
    --shadow-lg: 0 0 0 1px rgba(29,32,51,.07), 0 50px 100px -40px rgba(29,32,51,.45);
    color-scheme: light;
    interpolate-size: allow-keywords;
  }
}

/* ───────────────────────── base ───────────────────────── */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 104px; scrollbar-gutter: stable; }
  body { background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--body); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
  h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
  h1 { font-size: clamp(40px, calc(2.4vw + 24px), 78px); line-height: 1.01; font-weight: 780; letter-spacing: -.032em; }
  h2 { font-size: clamp(32px, calc(1.9vw + 22px), 66px); line-height: 1.03; font-weight: 760; letter-spacing: -.032em; }
  h1 em, h2 em, h3 em { font-style: italic; font-weight: 420; letter-spacing: -.02em; color: var(--ink-2); }
  .dark h2 em { color: #A9ACCB; }
  h3 { font-size: clamp(22px, calc(.5vw + 17px), 28px); line-height: 1.18; font-weight: 700; letter-spacing: -.014em; }
  h4 { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.006em; }
  p, li, dd { text-wrap: pretty; }
  a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  ::selection { background: color-mix(in oklab, var(--lime) 75%, white); color: var(--ink); }
  :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
  .skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top .3s var(--spring); }
  .skip:focus { top: 16px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mono { font-family: var(--mono); }
}

/* ───────────────────────── layout ───────────────────────── */
@layer layout {
  .wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: 0 var(--space-section); position: relative; }
  .ticker + .section, .dark + .section { padding-top: var(--space-section); }
  .section-head { --g: clamp(28px, 4vw, 80px); position: relative; padding-top: 30px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px var(--g); align-items: start; margin-bottom: var(--space-head); }
  .section-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--ink); transform-origin: 0 50%; }
  .section-head::after { content: ""; position: absolute; top: 0; left: calc((100% - var(--g)) * 3 / 12 + var(--g) / 2 - 1px); width: 2px; height: clamp(72px, 7vw, 128px); background: var(--ink); transform-origin: 50% 0; }
  .dark .section-head::before, .dark .section-head::after { background: #fff; }
  .section-head .lede { margin-top: clamp(24px, 2.6vw, 44px); }
}

/* ───────────────────────── components ───────────────────────── */
@layer components {
  .eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
  .eyebrow::before { content: ""; width: 22px; height: 10px; flex: none;
    background: linear-gradient(var(--lime), var(--lime)) 0 0 / 9px 3px no-repeat, linear-gradient(var(--lime), var(--lime)) 0 7px / 9px 3px no-repeat,
                linear-gradient(var(--violet), var(--violet)) 13px 0 / 9px 3px no-repeat, linear-gradient(var(--violet), var(--violet)) 13px 7px / 9px 3px no-repeat; }
  .eyebrow:has(.folio)::before { display: none; }
  .folio { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid currentColor; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink); }
  .dark .folio { color: #fff; }
  .tm { display: inline-block; width: .5em; height: .44em; margin-left: .12em; vertical-align: .05em; overflow: visible; }
  .tm path { fill: none; stroke: var(--violet-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out) .5s; }
  .tm-x { width: .42em; height: .42em; }
  .tm-x path { stroke: var(--alert); stroke-width: 2.4; }
  .same .tm, .zero .tm { width: 18px; height: 15px; margin: 0 6px 0 0; vertical-align: -2px; }
  .zero .tm { margin: 0 0 0 6px; }
  .same .tm path, .zero .tm path { stroke: currentColor; }
  s.strike { text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 100% 1.5px; transition: background-size .9s var(--ease-in-out); transition-delay: calc(var(--d, 0s) + .45s); }
  .lede { font-size: clamp(18px, calc(.45vw + 12.5px), 22px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
  .muted { color: var(--ink-2); }

  /* Buttons */
  .btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .5s var(--spring), background-color .2s ease, color .2s ease, box-shadow .3s ease; }
  .btn:active { transform: scale(.97); }
  .btn .arrow { display: inline-block; transition: transform .45s var(--spring); }
  .btn:hover .arrow { transform: translateX(4px); }
  .btn-primary { background: var(--ink); color: #fff; }
  .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
  .btn-primary:hover { background: var(--violet-ink); box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--violet-ink) 80%, transparent); }
  .btn-primary:hover::after { transform: translateX(120%); }
  .btn-ghost { border-color: color-mix(in oklab, var(--ink) 85%, transparent); color: var(--ink); background: color-mix(in oklab, var(--surface) 40%, transparent); }
  .btn-ghost:hover { background: var(--ink); color: #fff; }
  .btn-lime { background: var(--lime); color: var(--night); }
  .btn-lime:hover { background: #c4ff4a; box-shadow: 0 0 0 6px rgba(176,255,0,.15); }
  .btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

  /* Live dot */
  .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px #8FCB00; flex: none; animation: pulse 2.4s ease-out infinite; }

  /* Product window card */
  .shot { position: relative; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
  .shot-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--rule-2); font: 500 12px/1 var(--mono); color: var(--ink-2); background: #FBFBFD; }
  .shot-bar b { color: var(--ink); font-weight: 500; }
  .shot-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
  .shot-bar .dots { margin-left: auto; display: flex; gap: 6px; }
  .shot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }

  button.zoom { all: unset; position: relative; display: block; width: 100%; cursor: zoom-in; }
  button.zoom:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
  .zoom .enlarge { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: color-mix(in oklab, var(--night) 82%, transparent); backdrop-filter: blur(8px); color: #fff; font: 500 12px/1 var(--mono); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .4s var(--spring); }
  .zoom:hover .enlarge, .zoom:focus-visible .enlarge { opacity: 1; transform: none; }

  .frame { position: relative; border-radius: var(--radius); background: var(--app-bg); box-shadow: 0 0 0 1px rgba(29,32,51,.08), var(--shadow); overflow: hidden; }
  .frame img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: contain; object-position: top center; background: var(--app-bg); }
  .screen-cap { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 80ch; }
  .screen-cap b { color: var(--ink); font-weight: 600; }

  /* Glass chip */
  .chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; width: max-content; max-width: 360px;
    background: color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(29,32,51,.06), 0 24px 48px -22px rgba(29,32,51,.5); font-size: 14px; line-height: 1.3; color: var(--ink); }
  .chip small { display: block; font: 400 12.5px/1.3 var(--body); color: var(--ink-2); margin-top: 3px; }
  .chip .ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; }
  .chip-ok .ic { background: #EEFFCC; color: #3D5A00; box-shadow: inset 0 0 0 1px #CDEB8A; }
  .chip-ledger .ic { background: #ECEBFF; color: var(--violet-ink); box-shadow: inset 0 0 0 1px #D6D3FD; }

  /* Spotlight surface (pointer-tracked glow + border) */
  .spot { position: relative; isolation: isolate; }
  .spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
    background: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), color-mix(in oklab, var(--violet) 85%, transparent), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .35s ease; }
  .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(520px circle at var(--mx, -400px) var(--my, -400px), color-mix(in oklab, var(--violet) 9%, transparent), transparent 45%); opacity: 0; transition: opacity .35s ease; }
  .spot:hover::before, .spot:hover::after { opacity: 1; }

  .swipe-hint { display: none; }

  /* Pills */
  .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 500 12.5px/1.3 var(--mono); border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); white-space: nowrap; }
  .status { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 500 12px/1.4 var(--body); border: 1px solid; white-space: nowrap; }
  .status.settled { color: #2F6B2C; border-color: #BFDDB9; background: #F0F8EE; }
  .status.sim { color: var(--violet-ink); border-color: #CFCCFB; background: #F3F2FF; }
  .status.super { color: #6C6F86; border-color: #DADBE6; background: #F6F6FA; }
  .status.rev { color: #8A5A00; border-color: #EBD7AE; background: #FFF8EA; }
  .status.fail { color: var(--alert); border-color: #F0C4CA; background: #FDF1F3; }
}

/* ───────────────────────── sections ───────────────────────── */
@layer sections {
  /* Scroll progress */
  .progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--lime), var(--violet)); pointer-events: none; }

  /* Floating navigation */
  .nav { position: fixed; top: 12px; inset-inline: 0; z-index: 60; pointer-events: none; }
  .nav-inner { pointer-events: auto; margin-inline: auto; width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 8px 0 18px; border-radius: 999px;
    background: color-mix(in oklab, var(--paper) 70%, transparent); backdrop-filter: blur(18px) saturate(1.7); -webkit-backdrop-filter: blur(18px) saturate(1.7);
    border: 1px solid color-mix(in oklab, var(--ink) 7%, transparent); box-shadow: 0 12px 32px -20px rgba(29,32,51,.35);
    transition: width .7s var(--spring), background-color .3s ease, box-shadow .3s ease; }
  .nav.scrolled .nav-inner { width: min(calc(100% - 2 * var(--gutter)), 1180px); background: color-mix(in oklab, var(--surface) 78%, transparent); box-shadow: 0 18px 40px -22px rgba(29,32,51,.45); }
  .brand { display: flex; align-items: center; flex: none; }
  .brand img { height: 32px; width: auto; }
  .nav-links { display: flex; gap: 2px; margin-left: auto; }
  .nav-links a { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 14px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
  .nav-links a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
  .nav-links a.is-active { background: var(--ink); color: #fff; }
  .nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
  .nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }

  /* Hero */
  .hero { position: relative; isolation: isolate; padding-top: 92px; overflow: clip; }
  .hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 62% 78% at 74% 48%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 62% 78% at 74% 48%, #000 25%, transparent 78%); }
  .hero-bar { height: 3px; background: var(--ink); transform-origin: left center; animation: drawX .9s var(--ease-in-out) .1s both; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, min(800px, calc(25vw + 260px))) 3px minmax(0, 1fr); column-gap: clamp(28px, 3.4vw, 64px);
    padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
  .hero-copy { padding: 56px 0 80px; }
  .live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); font: 500 13px/1 var(--mono); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .5s var(--spring); }
  .live-pill:hover { border-color: var(--violet); transform: translateY(-1px); }
  .live-pill .go { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
  .hero h1 { margin: 26px 0 26px; }
  .total { background-image: linear-gradient(var(--violet), var(--violet)), linear-gradient(var(--violet), var(--violet)); background-repeat: no-repeat; background-size: 0% 4px, 0% 4px; background-position: 0 calc(100% - 1px), 0 calc(100% - 10px); padding-bottom: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: totalIn 1.1s var(--ease-in-out) 1.15s forwards; }
  .hero .lede { margin-bottom: 36px; max-width: 54ch; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; margin-top: 52px; border-top: 1px solid var(--rule); }
  .proof li { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rule); font: 500 15px/1.35 var(--body); display: flex; gap: 10px; align-items: baseline; }
  .proof li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .proof li:nth-child(even) { padding-left: 16px; }
  .proof li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--violet); border-radius: 2px; transform: translateY(-1px); }
  .hero-spine { position: relative; background: var(--ink); transform-origin: top center; animation: drawY .8s var(--ease-in-out) .75s both; }
  .hero-spine::before, .hero-spine::after { content: ""; position: absolute; top: 34px; width: 24px; height: 14px; }
  .hero-spine::before { right: 14px; background: linear-gradient(var(--lime), var(--lime)) 0 0 / 100% 4px no-repeat, linear-gradient(var(--lime), var(--lime)) 0 10px / 100% 4px no-repeat; transform-origin: right; animation: tick .45s var(--ease-out) 1.35s both; }
  .hero-spine::after { left: 14px; background: linear-gradient(var(--violet), var(--violet)) 0 0 / 100% 4px no-repeat, linear-gradient(var(--violet), var(--violet)) 0 10px / 100% 4px no-repeat; transform-origin: left; animation: tick .45s var(--ease-out) 1.45s both; }
  .hero-visual { position: relative; padding: 48px 0 96px; min-width: 0; }
  .stage { position: relative; perspective: 1800px; }
  .stage-3d { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -7deg)); transition: transform .9s var(--ease-out); }
  .shot-back { position: absolute; top: 0; left: 26%; right: 0; border-radius: var(--radius); overflow: hidden; opacity: .5; box-shadow: 0 0 0 1px rgba(29,32,51,.1), var(--shadow); transform: translateZ(-90px); pointer-events: none; }
  .shot-back img { width: 100%; }
  .shot-hero { margin-top: 76px; width: min(100%, var(--card-w)); transform: translateZ(30px); }
  .shot-hero::after { content: ""; position: absolute; inset: 40px 0 auto 0; height: 130px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(176,255,0,0), rgba(176,255,0,.3) 50%, rgba(176,255,0,0)); mix-blend-mode: multiply; opacity: 0; animation: scan 9s var(--ease-in-out) 2s infinite; }
  .chip-ok { top: -10px; right: 0; transform: translateZ(110px); }
  .chip-ledger { bottom: 44px; right: 0; transform: translateZ(130px); }

  /* Ticker: a ledger tape */
  .ticker { display: flex; align-items: stretch; border-block: 1px solid var(--rule); color: var(--ink-2); }
  .ticker-label { flex: none; display: flex; align-items: center; padding: 0 28px 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); border-right: 1px solid var(--rule); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
  .ticker-viewport { flex: 1; 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; animation: ticker 90s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .ticker.is-off .ticker-track { animation-play-state: paused; }
  .ticker ul { display: flex; }
  .ticker li { display: inline-flex; align-items: center; gap: 12px; padding: 24px 34px; font: 500 13px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; }
  .ticker li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--violet-ink); border-bottom: 2px solid var(--violet-ink); transform: translateY(-3px) rotate(-45deg); }

  /* Manifesto (scroll-linked word reveal) */
  .manifesto { padding-block: clamp(90px, 10vw, 170px); }
  .manifesto .statement { font: 700 clamp(34px, calc(3.3vw + 10px), 96px)/1.05 var(--display); letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; margin-top: 26px; }
  .manifesto .statement .w { color: color-mix(in oklab, var(--ink) var(--a, 100%), var(--paper)); transition: color .25s linear; }
  .manifesto .statement em { font-style: normal; }
  .manifesto .statement em .w { color: color-mix(in oklab, var(--violet-ink) var(--a, 100%), var(--paper)); }
  .manifesto-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }

  /* Posting Trace statement */
  .trace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--card-w)); gap: clamp(28px, 4vw, 72px); align-items: start; }
  .trace-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-bottom: 30px; }
  .trace-stats > div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); }
  .trace-stats > div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
  .trace-stats b { display: block; font: 760 clamp(38px, calc(1.8vw + 18px), 60px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
  .trace-stats > div > span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
  .points-list { display: grid; border-top: 2px solid var(--ink); }
  .points-list li { padding: 18px 0 18px 24px; border-bottom: 1px solid var(--rule); position: relative; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
  .points-list li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 11px; height: 3px; background: var(--violet); }
  .points-list li:nth-child(odd)::before { background: var(--lime); box-shadow: 0 0 0 1px #8FCB00 inset; }
  .points-list b { display: block; color: var(--ink); font: 650 17.5px/1.3 var(--display); margin-bottom: 4px; }
  .shot-static { width: min(100%, var(--card-w)); }
  .trace-grid > div:last-child { position: sticky; top: 104px; }
  .hl { position: absolute; z-index: 2; left: 1.4%; right: 1.4%; top: var(--t, 46%); height: var(--h, 13%); border-radius: 10px; border: 2px solid var(--violet); box-shadow: 0 0 0 100vmax rgba(18,20,39,.09), 0 0 0 6px color-mix(in oklab, var(--violet) 18%, transparent); pointer-events: none; transition: top .7s var(--spring), height .7s var(--spring); }
  .hl[data-step="0"] { --t: 25.3%; --h: 9.8%; }
  .hl[data-step="1"] { --t: 45.8%; --h: 13.2%; }
  .hl[data-step="2"] { --t: 59.4%; --h: 40.2%; }
  .steps li { transition: color .4s ease; }
  .steps li::before { transition: transform .5s var(--spring), background-color .3s ease; }
  .steps.live li { color: var(--ink-3); }
  .steps.live li b { color: var(--ink-3); transition: color .4s ease; }
  .steps.live li.is-active { color: var(--ink-2); }
  .steps.live li.is-active b { color: var(--ink); }
  .steps.live li.is-active::before { transform: scaleX(1.8); transform-origin: left; }
  @media (min-width: 961px) { .steps li { min-height: 30vh; padding-top: 22px; font-size: 17px; } .steps li b { font-size: 21px; margin-bottom: 8px; } .steps li::before { top: 2.05em; } }

  /* T-account comparison */
  .taccount { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
  .taccount-head { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 3px solid var(--ink); }
  .taccount-head div { padding: 24px 30px 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .taccount-head div + div { border-left: 3px solid var(--ink); background: linear-gradient(180deg, color-mix(in oklab, var(--violet) 6%, white), white); }
  .taccount-head h3 { font-size: 22px; }
  .taccount-head .tag { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .trow { display: grid; grid-template-columns: 1fr 1fr; }
  .trow + .trow > div { border-top: 1px solid var(--rule-2); }
  .trow > div { padding: 18px 30px; display: flex; gap: 14px; align-items: baseline; font-size: 16.5px; line-height: 1.45; }
  .trow > div + div { border-left: 3px solid var(--ink); }
  .trow .was { color: var(--ink-2); }
  .trow .was::before, .trow .now::before { content: ""; width: 12px; height: 3px; flex: none; transform: translateY(-4px); }
  .trow .was::before { background: #B9BBCC; }
  .trow .now::before { background: var(--violet); }
  .trow .now strong { font-weight: 600; }
  .trow:hover > div { background: color-mix(in oklab, var(--violet) 4%, transparent); }
  .iface { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font: 500 11px/1.4 var(--mono); color: var(--ink-2); white-space: nowrap; vertical-align: 1px;
    background: linear-gradient(90deg, #B9BBCC 50%, transparent 0) repeat-x 0 0 / 8px 1px, linear-gradient(90deg, #B9BBCC 50%, transparent 0) repeat-x 0 100% / 8px 1px,
                linear-gradient(0deg, #B9BBCC 50%, transparent 0) repeat-y 0 0 / 1px 8px, linear-gradient(0deg, #B9BBCC 50%, transparent 0) repeat-y 100% 0 / 1px 8px;
    }
  .taccount-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--ink); background: #FAFAFC; }
  .taccount-foot div { padding: 20px 30px; font: 500 14px/1.45 var(--mono); color: var(--ink-2); }
  .taccount-foot div + div { border-left: 3px solid var(--ink); color: var(--violet-ink); }
  .erp-band { position: relative; margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 40px; align-items: center; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--night); color: #E9EAF5; overflow: hidden; isolation: isolate; }
  .erp-band .q { font: 740 clamp(26px, calc(1.6vw + 12px), 48px)/1.02 var(--display); letter-spacing: -.03em; color: #fff; max-width: 8em; }
  .erp-band p { max-width: 64ch; }
  .erp-band strong { color: #fff; }

  /* Product tour */
  .tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
  .tablist { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 2px; }
  .tab-ind { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--rule-2); transition: transform .55s var(--spring), height .55s var(--spring), width .55s var(--spring); pointer-events: none; }
  .tab-ind::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px #8FCB00 inset; }
  .tab { all: unset; box-sizing: border-box; position: relative; z-index: 1; cursor: pointer; display: block; padding: 14px 16px 14px 28px; border-radius: 14px; }
  .tab .t-name, .tab .t-desc { display: block; }
  .tab .t-name { font: 650 17px/1.25 var(--display); color: var(--ink-2); transition: color .2s ease; }
  .tab .t-desc { font-size: 14px; line-height: 1.4; color: var(--ink-3); margin-top: 3px; }
  .tab:hover .t-name, .tab[aria-selected="true"] .t-name { color: var(--ink); }
  .tab:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
  .panel[hidden] { display: none; }
  .panel:not([hidden]) .frame { view-transition-name: tour-screen; }
  .panel:not([hidden]) .panel-text { view-transition-name: tour-text; }
  .panel-text { display: grid; gap: 18px; margin-bottom: 28px; }
  .panel-text .kicker { font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--violet-ink); }
  .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); padding-top: 18px; }
  .points li { font-size: 15.5px; line-height: 1.5; padding-left: 16px; position: relative; }
  .points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; background: var(--violet); }
  .thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--paper-2); width: max-content; max-width: 100%; }
  .thumb { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 500 13.5px/1 var(--body); color: var(--ink-2); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
  .thumb:hover { color: var(--ink); }
  .thumb[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--rule-2); }
  .thumb:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
  .tour-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

  /* Coverage index */
  .coverage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px clamp(20px, 2.4vw, 36px); }
  .domain { border-top: 3px solid var(--ink); padding-top: 16px; }
  .domain summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; pointer-events: none; }
  .domain summary::-webkit-details-marker { display: none; }
  .domain summary h4 { margin: 0; }
  .domain .count { font: 500 12px/1 var(--mono); color: var(--ink-3); }
  details.domain::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
  details.domain[open]::details-content { block-size: auto; }
  .domain h4 { display: flex; align-items: center; gap: 10px; }
  .domain h4::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--violet); flex: none; transition: transform .5s var(--spring); }
  .domain:nth-child(odd) h4::before { background: var(--lime); box-shadow: 0 0 0 1px #8FCB00 inset; }
  .domain:hover h4::before { transform: scale(1.5) rotate(45deg); }
  .domain li { font-size: 15px; line-height: 1.45; padding: 8px 0; border-bottom: 1px solid var(--rule); transition: transform .4s var(--spring), color .2s ease; }
  .domain li:last-child { border-bottom: 0; }
  .domain li:hover { transform: translateX(4px); color: var(--violet-ink); }

  /* Bento (how it works) */
  .bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "kernel kernel register" "controls knowledge register" "ledgers ledgers register"; gap: 18px; }
  .card { container-type: inline-size; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--rule-2); box-shadow: var(--shadow-sm); padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; gap: 24px; overflow: hidden; transition: border-color .3s ease, box-shadow .4s ease, transform .6s var(--spring); }
  .card:hover { border-color: color-mix(in oklab, var(--ink) 22%, transparent); box-shadow: var(--shadow); transform: translateY(-3px); }
  .card .viz { flex: 1; min-height: 130px; display: grid; align-content: center; }
  .card h4 { margin-bottom: 8px; }
  .card p { font-size: 15.5px; color: var(--ink-2); max-width: 56ch; }
  .card-kernel { grid-area: kernel; }
  .card-register { grid-area: register; }
  .card-register .viz { align-content: start; }
  .card-controls { grid-area: controls; }
  .card-knowledge { grid-area: knowledge; }
  .card-ledgers { grid-area: ledgers; }
  .runs-compare { display: grid; gap: 10px; }
  .runs-compare .row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--app-bg); border: 1px solid var(--rule-2); font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
  @container (max-width: 520px) { .runs-compare .row { grid-template-columns: 1fr auto; } .runs-compare .row span:nth-child(2) { display: none; } }
  .runs-compare .num { font: 600 clamp(20px, 5cqi, 30px)/1 var(--mono); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right; }
  .runs-compare .same { justify-self: start; display: inline-flex; gap: 2px; align-items: center; padding: 6px 12px; border-radius: 999px; background: #EEFFCC; color: #3D5A00; font: 500 12.5px/1 var(--mono); box-shadow: inset 0 0 0 1px #CDEB8A; }
  .bands { display: grid; gap: 12px; }
  .bands .bar { position: relative; height: 14px; border-radius: 999px; display: grid; grid-template-columns: 90fr 10fr 10fr 30fr; overflow: hidden; }
  .bands .bar i:nth-child(1) { background: #CFEFC4; }
  .bands .bar i:nth-child(2) { background: #FBE7B7; }
  .bands .bar i:nth-child(3) { background: #D7E7F7; }
  .bands .bar i:nth-child(4) { background: #F6CDD3; }
  .bands .marker { position: absolute; top: -6px; width: 3px; height: 26px; border-radius: 2px; background: var(--ink); left: var(--pos, 97%); transition: left 1.8s var(--ease-in-out); }
  .bands .legend { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
  .bands .reading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 13px/1.3 var(--mono); }
  .bands .reading b { font-weight: 600; }
  .next-card { border-radius: 14px; border: 1px solid #DCD9FE; background: linear-gradient(180deg, #F7F6FF, #fff); padding: 16px 18px; border-left: 3px solid var(--violet); }
  .next-card .k { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; color: var(--violet-ink); }
  .next-card b { display: block; margin: 8px 0 6px; font: 650 16px/1.3 var(--display); }
  .next-card span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: block; }
  .books { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .book { border-radius: 12px; border: 1px solid var(--rule-2); background: var(--app-bg); overflow: hidden; }
  .book-head { padding: 10px 14px; font: 500 12px/1.2 var(--mono); color: var(--ink); border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 8px; }
  .book-head span { color: var(--ink-3); }
  .book-t { display: grid; grid-template-columns: 1fr 1fr; font: 400 12px/1.4 var(--mono); }
  .book-t div { padding: 10px 14px; color: var(--ink-2); }
  .book-t div + div { border-left: 2px solid var(--ink); }
  .book-t b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
  .register table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
  .register th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 10px 0; border-bottom: 1px solid var(--rule-2); }
  .register td { padding: 12px 10px 12px 0; border-bottom: 1px solid #EFEFF5; }
  .register tr:last-child td { border-bottom: 0; }
  .register td.run { font-family: var(--mono); color: var(--ink-3); width: 1%; white-space: nowrap; padding-right: 16px; }
  .register .foot { font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); border-top: 1px solid var(--rule-2); padding-top: 14px; }

  /* Agents (dark) */
  .dark { background: var(--night); color: #E4E5F2; overflow: clip; }
  .dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(700px circle at var(--mx, 70%) var(--my, 10%), rgba(128,122,248,.16), transparent 60%),
                linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
                linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
  .dark .wrap { position: relative; }
  .dark h2, .dark h3, .dark h4 { color: #fff; }
  .dark .eyebrow { color: #A9ACCB; }
  .dark .lede { color: #B9BBD6; }
  .dark .section-head { border-top-color: #fff; }
  .flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin-bottom: 64px; }
  .flow::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--lime), var(--violet)); transform-origin: left center; }
  .step { position: relative; padding-right: 24px; }
  .step .n { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid var(--lime); font: 500 14px/1 var(--mono); color: var(--lime); margin-bottom: 20px; }
  .step:nth-child(n+3) .n { border-color: var(--violet); color: #C9C6FF; }
  .step h4 { margin-bottom: 8px; }
  .step p { font-size: 15.5px; line-height: 1.5; color: #B9BBD6; }
  .agent-demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
  .agent-demo .copy p { color: #B9BBD6; margin-top: 14px; max-width: 52ch; }
  .kbd { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid #44486F; border-bottom-width: 2px; background: var(--night-2); font: 500 13px/1.4 var(--mono); color: #fff; }
  .mail { background: color-mix(in oklab, var(--night-2) 92%, transparent); border: 1px solid #33375C; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); backdrop-filter: blur(6px); }
  .mail-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 22px; border-bottom: 1px solid #33375C; font: 500 12px/1.3 var(--mono); color: #A9ACCB; }
  .mail-top .badge { padding: 5px 10px; border-radius: 999px; background: rgba(176,255,0,.12); color: var(--lime); }
  .mail-meta { padding: 18px 22px 6px; display: grid; grid-template-columns: 74px 1fr; gap: 7px 12px; font-size: 14px; }
  .mail-meta dt { font: 500 12px/1.6 var(--mono); color: #8E91B4; text-transform: uppercase; letter-spacing: .06em; }
  .mail-meta dd { color: #E4E5F2; }
  .mail-body { padding: 12px 22px 20px; font-size: 15.5px; line-height: 1.6; color: #E9EAF5; border-bottom: 1px solid #33375C; min-height: 128px; }
  .mail-body p + p { margin-top: 10px; }
  .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--lime); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
  .mail-status { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 15px 22px; font: 500 12.5px/1.4 var(--mono); color: #A9ACCB; }
  .mail-status span { display: inline-flex; align-items: center; gap: 8px; }
  .mail-status span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
  .mail-status span.done::before { background: var(--lime); }
  .caption-dark { margin-top: 12px; font-size: 13.5px; color: #8E91B4; }

  /* Implementation */
  .impl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
  .runstrip { margin-top: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--rule-2); box-shadow: var(--shadow-sm); padding: 22px 24px; }
  .runstrip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font: 500 12.5px/1.3 var(--mono); color: var(--ink-2); margin-bottom: 14px; }
  .runstrip-head b { color: var(--ink); font-weight: 500; }
  .daybar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-bottom: 18px; }
  .daybar i { display: block; height: 100%; width: var(--day, 100%); background: linear-gradient(90deg, var(--lime), var(--violet)); border-radius: inherit; transition: width .35s linear; }
  .cycles { display: flex; flex-wrap: wrap; gap: 8px; }
  .cycles span { padding: 7px 12px; border-radius: 999px; font: 500 12.5px/1 var(--body); border: 1px solid var(--rule); color: var(--ink-3); background: var(--surface); transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .5s var(--spring); }
  .cycles span.on { background: var(--violet); border-color: var(--violet); color: #fff; transform: translateY(-1px); }
  .runstrip-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-2); font: 500 12.5px/1.3 var(--mono); color: var(--ink-2); }
  .runstrip-foot .zero { color: var(--lime-ink); }

  /* Roles: ruled columns */
  .roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
  .role { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 2.8vw, 48px) clamp(20px, 2.4vw, 44px) 8px; }
  .role:first-child { padding-left: 0; }
  .role:last-child { padding-right: 0; }
  .role + .role { border-left: 1px solid var(--rule); }
  .role::before { content: ""; position: absolute; inset: -2px 0 auto 0; height: 4px; background: var(--violet); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
  .role:hover::before, .role:focus-within::before { transform: scaleX(1); }
  .role .who { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
  .role h3 { font-size: clamp(22px, calc(.9vw + 13px), 32px); line-height: 1.12; margin: 18px 0 clamp(24px, 2.4vw, 40px); }
  .role ul { margin-bottom: clamp(28px, 2.6vw, 44px); border-bottom: 1px solid var(--rule); }
  .role li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
  .role a.more { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
  .role a.more .arrow { transition: transform .45s var(--spring); }
  .role a.more:hover { color: var(--violet-ink); }
  .role a.more:hover .arrow { transform: translateX(5px); }

  /* Company */
  .company { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .company p.body { font-size: clamp(18px, calc(.3vw + 14px), 21px); line-height: 1.65; max-width: 62ch; }
  .company p.body + p.body { margin-top: 16px; }
  .stats { display: grid; border-top: 2px solid var(--ink); }
  .stat { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .stat b { font: 760 clamp(40px, calc(1.8vw + 22px), 64px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
  .stat > span { color: var(--ink-2); font-size: 16px; }
  .byline { display: flex; align-items: baseline; align-items: last baseline; gap: 14px; margin-top: 28px; font: 500 13px/1.3 var(--mono); color: var(--ink-2); }
  .byline img { height: 34px; width: auto; position: relative; top: 1.34px; }
  .embed { position: relative; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--ink); }
  .embed-col { padding: 20px 24px 6px 0; }
  .embed-col + .embed-col { padding-left: 24px; border-left: 3px solid var(--ink); }
  .embed h4 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
  .embed h4::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px #8FCB00 inset; }
  .embed-col + .embed-col h4::before { background: var(--violet); box-shadow: none; }
  .embed li { position: relative; padding: 8px 0 8px 16px; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
  .embed li:last-child { border-bottom: 0; }
  .embed li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 8px; height: 3px; background: var(--ink); }
  .mission { --g: clamp(28px, 4vw, 72px); position: relative; margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--g); padding-top: 28px; }
  .mission::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--ink); }
  .mission::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc((100% - var(--g)) * 5 / 12 + var(--g) / 2 - 1.5px); width: 3px; background: var(--ink); }
  .mission-lead { margin-top: 16px; font: 760 clamp(30px, calc(1.6vw + 20px), 56px)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; max-width: 14ch; }
  .mission-lead em { font-style: italic; font-weight: 420; color: var(--ink-2); }
  .mission-list { display: grid; }
  .mission-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: clamp(18px, 1.8vw, 28px) 0; border-bottom: 1px solid var(--rule); }
  .mission-list li:first-child { padding-top: 6px; }
  .mission-list .mn { font: 500 13px/1 var(--mono); color: var(--violet-ink); }
  .mission-list p { font: 500 clamp(22px, calc(1vw + 14px), 36px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink-2); }
  .mission-list strong { font-weight: 760; color: var(--ink); }
  .mission-list .tm { width: clamp(26px, 2vw, 36px); height: auto; margin: 0; }
  .mission-list li:nth-child(2) .tm path { transition-delay: .8s; }
  .mission-list li:nth-child(3) .tm path { transition-delay: 1.1s; }

  /* Partners: an open block between rules */
  .partners { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px clamp(32px, 6vw, 120px); align-items: end; padding-block: clamp(48px, 6vw, 112px); border-block: 2px solid var(--ink); }
  .partners h2 { font-size: clamp(34px, calc(2.9vw + 16px), 88px); line-height: 1; letter-spacing: -.036em; margin: clamp(20px, 2vw, 32px) 0 clamp(20px, 2vw, 32px); }
  .partners .muted { max-width: 62ch; font-size: clamp(18px, calc(.4vw + 13px), 22px); line-height: 1.55; }

  /* Demo */
  .demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .next-steps { margin-top: 34px; display: grid; border-top: 1px solid var(--rule); counter-reset: s; }
  .next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 16px; counter-increment: s; }
  .next-steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1.7 var(--mono); color: var(--violet-ink); }
  .direct { margin-top: 26px; font-size: 15px; color: var(--ink-2); }
  .direct a { font-weight: 600; }
  form.card-form { border-top: 2px solid var(--ink); padding-top: clamp(28px, 3vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 2.4vw, 36px) clamp(20px, 2.4vw, 40px); accent-color: var(--violet); }
  .field { display: grid; gap: 10px; align-content: start; }
  .field.full, fieldset { grid-column: 1 / -1; }
  label, legend { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
  label .opt, legend .opt { color: var(--ink-3); }
  legend .opt { font-weight: 400; color: var(--ink-2); }
  .nowrap { white-space: nowrap; }
  .check, .check span { font-family: var(--body); letter-spacing: 0; text-transform: none; }
  input[type="text"], input[type="email"], select, textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--surface); border: 0; border-bottom: 1.5px solid var(--ink-3); border-radius: 10px 10px 0 0; padding: 16px 16px 14px; transition: border-color .2s ease, box-shadow .25s ease; }
  select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%231D2033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
  input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px var(--surface) inset; }
  textarea { min-height: 120px; resize: vertical; field-sizing: content; max-height: 320px; }
  input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--violet-ink); box-shadow: 0 1.5px 0 var(--violet-ink), 0 14px 28px -18px color-mix(in oklab, var(--violet-ink) 55%, transparent); }
  input:user-invalid { border-color: var(--alert); }
  fieldset { border: 0; padding: 0; margin: 0; }
  legend { margin-bottom: 14px; padding: 0; }
  .checks { display: flex; flex-wrap: wrap; gap: 10px; }
  .check { position: relative; }
  .check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
  .check span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--rule); font-size: 15px; font-weight: 500; color: var(--ink-2); background: var(--surface); transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .4s var(--spring); }
  .check:active span { transform: scale(.96); }
  .check span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid #B9BBCC; transition: all .2s ease; }
  .check input:checked + span { border-color: var(--violet); color: var(--ink); background: #F3F2FF; }
  .check input:checked + span::before { background: var(--violet); border-color: var(--violet); box-shadow: inset 0 0 0 2px #F3F2FF; }
  .check input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
  .form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: clamp(20px, 2vw, 32px); }
  .form-foot p { font-size: 14px; color: var(--ink-2); max-width: 36ch; }
  .error { color: var(--alert); font-size: 13.5px; display: none; }
  .field.invalid .error { display: block; }
  .field.invalid input { border-bottom-color: var(--alert); box-shadow: 0 1.5px 0 var(--alert); }
  .status-box { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: 12px; background: #F3F2FF; border: 1px solid #CFCCFB; font-size: 15px; }
  .status-box.show { display: block; }
  .status-box .btn { margin-top: 12px; }

  /* Footer */
  .site-foot { position: relative; overflow: hidden; border-top: 2px solid var(--ink); padding: 48px 0 40px; }
  .foot { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
  .foot-brand { display: flex; flex-direction: column; gap: 14px; }
  .foot-brand img { height: 32px; width: auto; align-self: flex-start; }
  .foot-brand p { font-size: 14.5px; color: var(--ink-2); max-width: 46ch; }
  .foot-links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; }
  .foot-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
  .foot-links a:hover { color: var(--violet-ink); }
  .foot-mark { margin-top: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .foot-mark svg { width: clamp(110px, 14vw, 230px); height: auto; color: var(--ink); flex: none; }
  .foot-statement { font: 760 clamp(44px, calc(5vw + 8px), 132px)/.98 var(--display); letter-spacing: -.04em; }
  .foot-statement .acc { color: var(--violet-ink); }
  .foot-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); }
  .powered { display: inline-flex; align-items: baseline; align-items: last baseline; gap: 10px; }
  .powered img { height: 24px; width: auto; position: relative; top: .95px; }

  .mcta { display: none; }

  /* Lightbox (native dialog) */
  dialog.lightbox { width: min(96vw, 1880px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: var(--night); color: #E4E5F2; box-shadow: 0 40px 120px -20px rgba(0,0,0,.6); overflow: hidden; }
  dialog.lightbox::backdrop { background: rgba(13,14,28,.72); backdrop-filter: blur(6px); }
  .lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; font: 500 13px/1.3 var(--mono); }
  .lb-close { all: unset; cursor: pointer; padding: 10px 14px; border-radius: 999px; border: 1px solid #44486F; color: #fff; font: 500 13px/1 var(--mono); }
  .lb-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
  .lb-scroll { overflow: auto; max-height: calc(94vh - 60px); padding: 0 18px 18px; }
  .lb-scroll img { margin: 0 auto; border-radius: 10px; background: #fff; }
}

/* ───────────────────────── polish: type scale, air, quieter surfaces ───────────────────────── */
@layer polish {
  html { scrollbar-color: #B9BBCC transparent; }
  body { line-height: 1.66; }
  @media (min-width: 1200px) { body { font-size: 18px; } }
  .eyebrow { font-size: 12px; letter-spacing: .14em; }

  /* Chapter heads: number in the margin, headline large, intro beneath */
  .section-head h2 { font-size: clamp(34px, calc(2.9vw + 16px), 88px); line-height: 1; letter-spacing: -.036em; max-width: 21ch; }
  .section-head h2 em { letter-spacing: -.028em; }
  .section-head .lede { font-size: clamp(19px, calc(.55vw + 13px), 26px); line-height: 1.5; max-width: 54ch; }
  @media (min-width: 961px) {
    .section-head .eyebrow { display: grid; gap: 18px; justify-items: start; align-content: start; }
    .section-head .folio { display: block; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; font: 400 clamp(52px, 5vw, 104px)/.82 var(--display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--ink); }
    .dark .section-head .folio { color: #fff; }
  }

  /* The page arrives over the film as a sheet of paper */
  .story + .manifesto { --sheet: clamp(24px, 3.2vw, 56px); position: relative; z-index: 4; margin-top: calc(-1 * var(--sheet)); border-radius: var(--sheet) var(--sheet) 0 0; background: var(--paper); box-shadow: 0 -30px 60px -30px rgba(18,20,39,.35); scroll-margin-top: -104px; }

  /* Statement */
  .manifesto { padding-block: clamp(120px, 17vw, 300px) clamp(112px, 15vw, 264px); }
  .manifesto .statement { margin-top: clamp(28px, 3vw, 48px); line-height: 1.03; }
  .manifesto-foot { margin-top: clamp(40px, 4.5vw, 80px); gap: 12px; }
  .pill { padding: 9px 16px; font-size: 12.5px; background: transparent; border-color: var(--rule); }

  /* Posting Trace */
  .trace-grid { gap: clamp(40px, 6.5vw, 128px); }
  .trace-stats { margin-bottom: clamp(32px, 4vw, 72px); }
  .trace-stats > div { padding-block: clamp(22px, 2.4vw, 40px); }
  .trace-stats b { font-size: clamp(44px, calc(3.8vw + 14px), 112px); letter-spacing: -.05em; line-height: .9; white-space: nowrap; }
  .trace-stats > div > span { margin-top: 14px; font-size: 15px; max-width: 18ch; }
  .points-list li { padding: 24px 0 24px 30px; font-size: 16.5px; }
  .points-list li::before { top: 35px; }
  .points-list b { font-size: 19px; margin-bottom: 6px; }
  .steps li:last-child { min-height: 0; }
  .screen-cap { margin-top: 20px; }

  /* T-account */
  .taccount { border-radius: 28px; box-shadow: 0 0 0 1px var(--rule-2), 0 40px 80px -50px rgba(29,32,51,.35); }
  .taccount-head div { padding: clamp(24px, 2.4vw, 36px) clamp(24px, 2.8vw, 44px) clamp(20px, 2vw, 30px); }
  .taccount-head h3 { font-size: clamp(20px, calc(.6vw + 14px), 28px); }
  .trow > div { padding: clamp(18px, 1.7vw, 26px) clamp(24px, 2.8vw, 44px); font-size: 17px; }
  .taccount-foot div { padding: clamp(20px, 2vw, 30px) clamp(24px, 2.8vw, 44px); }
  .erp-band { margin-top: var(--space-block); padding: clamp(32px, 3.6vw, 64px) clamp(28px, 3.8vw, 72px); border-radius: 28px; gap: 20px clamp(32px, 4vw, 72px); }

  /* Tour */
  .tour { gap: clamp(32px, 4.6vw, 96px); }
  .panel-text { gap: clamp(18px, 1.8vw, 28px); margin-bottom: clamp(32px, 3.4vw, 56px); }
  .panel-text h3 { font-size: clamp(24px, calc(1vw + 15px), 40px); letter-spacing: -.022em; line-height: 1.1; max-width: 26ch; }
  .points { gap: clamp(20px, 3vw, 56px); padding-top: clamp(18px, 2vw, 28px); }
  .points li { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
  .tab { padding-block: 16px; }
  .frame { border-radius: 18px; }

  /* Coverage */
  .coverage { gap: clamp(56px, 6vw, 112px) clamp(24px, 3vw, 56px); }
  .domain { padding-top: 22px; border-top-width: 2px; }
  .domain summary { margin-bottom: 18px; }
  .domain h4 { font-size: clamp(18px, calc(.3vw + 15px), 22px); }
  .domain li { padding: 12px 0; font-size: 16px; color: var(--ink-2); }

  /* Bento */
  .bento { gap: clamp(16px, 1.8vw, 32px); }
  .card { padding: clamp(24px, 2.6vw, 44px); gap: clamp(24px, 2.6vw, 44px); border-radius: 28px; box-shadow: none; }
  .card h4 { font-size: clamp(19px, calc(.4vw + 15px), 24px); margin-bottom: 10px; }
  .card p { font-size: 16px; line-height: 1.55; }

  /* Agents: an inset night sheet */
  .section.dark { --inset: clamp(8px, 1.2vw, 24px); margin-inline: var(--inset); border-radius: clamp(24px, 3.2vw, 56px); padding-block: clamp(88px, 10vw, 184px); }
  .dark .wrap { max-width: calc(var(--wrap) + 2 * (var(--gutter) - var(--inset))); padding-inline: calc(var(--gutter) - var(--inset)); }
  .flow { margin-bottom: clamp(64px, 7.5vw, 136px); }
  .step h4 { font-size: clamp(19px, calc(.4vw + 15px), 24px); }
  .step p { font-size: 16px; max-width: 24ch; }
  .agent-demo { gap: clamp(32px, 6vw, 120px); }
  .agent-demo .copy h3 { font-size: clamp(24px, calc(1vw + 15px), 40px); letter-spacing: -.022em; }
  .agent-demo .copy p { margin-top: 20px; }
  .mail { border-radius: 28px; }

  /* Implementation */
  .impl { gap: clamp(40px, 6vw, 120px); }
  .runstrip { margin-top: var(--space-block); padding: clamp(24px, 2.8vw, 44px); border-radius: 28px; box-shadow: none; }
  .cycles { gap: 10px; }
  .cycles span { padding: 9px 14px; }

  /* Company */
  .company { gap: clamp(48px, 7vw, 136px); }
  .company p.body { font-size: clamp(19px, calc(.45vw + 13.5px), 24px); line-height: 1.6; }
  .company p.body + p.body { margin-top: 24px; }
  .embed { margin-top: clamp(40px, 4.4vw, 72px); }
  .embed-col { padding-top: 26px; }
  .embed li { padding: 12px 0 12px 18px; font-size: 16px; }
  .embed li::before { top: 1.35em; }
  .byline { margin-top: clamp(32px, 3.4vw, 56px); }
  .stat { padding: clamp(24px, 2.6vw, 44px) 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stat b { font-size: clamp(64px, calc(5vw + 20px), 152px); letter-spacing: -.055em; line-height: .86; }
  .stat > span { font-size: 16.5px; max-width: 30ch; }
  .mission { margin-top: clamp(88px, 10vw, 184px); padding-top: clamp(32px, 3.4vw, 56px); }
  .mission-lead { font-size: clamp(32px, calc(2vw + 18px), 68px); }
  .mission-list li { padding-block: clamp(22px, 2.4vw, 40px); }
  .mission-list li:first-child { padding-top: 6px; }
  .mission-list p { font-size: clamp(22px, calc(1.3vw + 13px), 44px); }

  /* Demo */
  .demo { gap: clamp(48px, 7vw, 136px); }
  .demo h3 { font-size: clamp(22px, calc(.8vw + 15px), 34px); }
  .next-steps { margin-top: clamp(28px, 3vw, 48px); }
  .next-steps li { padding: 22px 0; font-size: 17px; }
  .direct { margin-top: 32px; font-size: 16px; }

  /* Footer */
  .site-foot { padding: clamp(72px, 8vw, 136px) 0 48px; }
  .foot-links { gap: 14px clamp(32px, 4vw, 72px); }
  .foot-links a, .direct a, .role a.more { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1.5px; padding-bottom: 3px; text-decoration: none; transition: background-size .5s var(--ease-out), color .2s ease; }
  .foot-links a:hover, .direct a:hover, .role a.more:hover { background-size: 100% 1.5px; }
  .direct a { background-size: 100% 1.5px; }
  .direct a:hover { background-position: 100% 100%; background-size: 0% 1.5px; }
  .foot-mark { margin-top: clamp(88px, 11vw, 200px); }
  .foot-base { margin-top: clamp(32px, 4vw, 64px); padding-top: 24px; }
}

/* ───────────────────────── motion ───────────────────────── */
@layer motion {
  @property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
  @keyframes drawX { from { transform: scaleX(0); } }
  @keyframes drawY { from { transform: scaleY(0); } }
  @keyframes tick { from { transform: scaleX(0); } }
  @keyframes float { 50% { transform: translateY(-7px); } }
  @keyframes pulse { 0% { box-shadow: 0 0 0 1px #8FCB00, 0 0 0 0 rgba(143,203,0,.55); } 70%, 100% { box-shadow: 0 0 0 1px #8FCB00, 0 0 0 10px rgba(143,203,0,0); } }
  @keyframes scan { 0% { top: 40px; opacity: 0; } 5% { opacity: 1; } 32% { top: calc(100% - 130px); opacity: 1; } 37%, 100% { top: calc(100% - 130px); opacity: 0; } }
  @keyframes ticker { to { transform: translateX(-50%); } }
  @keyframes ants { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; } }
  @keyframes spin { to { --angle: 360deg; } }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes totalIn { to { background-size: 100% 4px, 100% 4px; } }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } }
  @keyframes weightIn { from { opacity: 0; font-weight: 420; letter-spacing: -.012em; transform: translateY(16px); } }
  @keyframes stageIn { from { opacity: 0; transform: translateX(48px); } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes settle { from { transform: scale(1.07); } }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

  /* Page-load choreography */
  .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .hero-copy > h1 { animation: weightIn 1.2s var(--ease-out) .12s both; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-copy > :nth-child(4) { animation-delay: .4s; }
  .hero-copy > :nth-child(5) { animation-delay: .5s; }
  .stage { animation: stageIn 1.3s var(--ease-out) .25s both; }

  /* Scroll progress: native scroll-driven where supported (JS fallback otherwise) */
  @supports (animation-timeline: scroll()) {
    .progress { transform: none; animation: grow linear both; animation-timeline: scroll(root); }
  }

  /* Scroll reveals, armed only for content below the fold at load */
  [data-reveal="up"] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .section-head::before { transition: transform 1.1s var(--ease-in-out); }
  .section-head::after { transition: transform .7s var(--ease-out) .75s; }
  .armed.section-head:not(.in)::before { transform: scaleX(0); }
  .armed.section-head:not(.in)::after { transform: scaleY(0); }
  .armed.section-head:not(.in) { opacity: 1; transform: none; }
  .section-head .eyebrow, .section-head h2, .section-head .lede { transition: opacity .9s var(--ease-out) .2s, transform .9s var(--ease-out) .2s; }
  .section-head .lede { transition-delay: .6s; }
  .armed.section-head:not(.in) .eyebrow, .armed.section-head:not(.in) .lede, .armed.section-head:not(.in) h2:not(.split) { opacity: 0; transform: translateY(24px); }
  .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .09em .06em .17em; margin: -.09em -.06em -.17em; }
  .wi { display: inline-block; transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + .15s); }
  .armed:not(.in) .wi { transform: translateY(120%); }
  .foot-mark svg rect { transition: transform .9s var(--spring) .5s, opacity .5s ease .5s; }
  .armed.foot-mark:not(.in) svg rect:nth-of-type(4), .armed.foot-mark:not(.in) svg rect:nth-of-type(5) { transform: translateX(-16px); opacity: 0; }
  .armed.foot-mark:not(.in) svg rect:nth-of-type(6), .armed.foot-mark:not(.in) svg rect:nth-of-type(7) { transform: translateX(16px); opacity: 0; }
  @supports (animation-timeline: view()) {
    .frame img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
  .armed:not(.in) .tm path { stroke-dashoffset: 1; }
  .armed[data-reveal="rows"]:not(.in) s.strike { background-size: 0% 1.5px; }
  .armed[data-reveal="up"]:not(.in) { opacity: 0; transform: translateY(40px); }
  [data-reveal="stagger"] > * { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
  .armed[data-reveal="stagger"]:not(.in) > * { opacity: 0; transform: translateY(30px); }
  [data-reveal="rows"] .trow > div { transition: opacity .6s ease, transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
  .armed[data-reveal="rows"]:not(.in) .trow > div { opacity: 0; }
  .armed[data-reveal="rows"]:not(.in) .trow > .was { transform: translateX(-34px); }
  .armed[data-reveal="rows"]:not(.in) .trow > .now { transform: translateX(34px); }
  [data-reveal="agents"] .flow::before { transition: transform 1.9s var(--ease-in-out) .2s; }
  .armed[data-reveal="agents"]:not(.in) .flow::before { transform: scaleX(0); }
  [data-reveal="agents"] .step { transition: opacity .6s ease, transform .7s var(--ease-out); transition-delay: calc(var(--d, 0s) + .25s); }
  .armed[data-reveal="agents"]:not(.in) .step { opacity: 0; transform: translateY(18px); }
  [data-reveal="agents"] .agent-demo { transition: opacity .9s ease 1.5s, transform .9s var(--ease-out) 1.5s; }
  .armed[data-reveal="agents"]:not(.in) .agent-demo { opacity: 0; transform: translateY(30px); }
  [data-reveal="agents"] .mail-status span { transition: opacity .4s ease; transition-delay: calc(var(--d, 0s) + .1s); }
  .typing .mail-status span { opacity: 0; transition-delay: 0s; }

  /* Tour view transitions */
  ::view-transition-old(tour-screen) { animation: vtOut .22s ease both; }
  ::view-transition-new(tour-screen) { animation: vtIn .55s var(--ease-out) both; }
  ::view-transition-old(tour-text) { animation: vtOut .18s ease both; }
  ::view-transition-new(tour-text) { animation: vtIn .45s var(--ease-out) .05s both; }
  @keyframes vtOut { to { opacity: 0; filter: blur(4px); transform: scale(.99); } }
  @keyframes vtIn { from { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(.99); } }
  .panel.fallback-in { animation: vtIn .45s var(--ease-out) both; }
  .frame img.swap { opacity: 0; }
  .frame img { transition: opacity .25s ease; }

  /* Dialog entry using @starting-style */
  dialog.lightbox { transition: opacity .3s ease, transform .45s var(--spring), overlay .3s allow-discrete, display .3s allow-discrete; }
  dialog.lightbox[open] { opacity: 1; transform: none; }
  @starting-style { dialog.lightbox[open] { opacity: 0; transform: translateY(16px) scale(.97); } }
  dialog.lightbox:not([open]) { opacity: 0; transform: scale(.98); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .total { background-size: 100% 4px, 100% 4px; }
    .tm path { stroke-dashoffset: 0 !important; }
    .progress { display: none; }
  }
}

/* ───────────────────────── responsive ───────────────────────── */
@layer responsive {
  @media (min-width: 1800px) {
    body { font-size: 18px; }
    .points li, .role li, .points-list li, .domain li { font-size: 16.5px; }
  }
  @media (max-width: 1280px) {
    .nav-links a { padding: 9px 10px; font-size: 14.5px; }
    .coverage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(40px, 5vw, 72px); border-top: 0; }
    .role { border-top: 2px solid var(--ink); }
    .role:nth-child(odd) { padding-left: 0; border-left: 0; }
    .role:nth-child(even) { padding-right: 0; }
  }
  @media (max-width: 1120px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "kernel kernel" "controls knowledge" "ledgers ledgers" "register register"; }
    .chip-ok { display: none; }
  }
  @media (max-width: 1100px) {
    .tour { grid-template-columns: minmax(0, 1fr); }
    .tablist { position: relative; top: 0; flex-direction: row; overflow-x: auto; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); scrollbar-width: none; scroll-snap-type: x mandatory; }
    .tablist::-webkit-scrollbar { display: none; }
    .tab { padding: 10px 16px; border-radius: 999px; flex: none; scroll-snap-align: center; }
    .tab .t-desc { display: none; }
    .tab .t-name { font-size: 15px; white-space: nowrap; }
    .tab[aria-selected="true"] .t-name { color: #fff; }
    .tab-ind { border-radius: 999px; background: var(--ink); box-shadow: none; }
    .tab-ind::before { display: none; }
    .tablist { padding-right: 44px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
    .trace-stats b { font-size: clamp(40px, 5vw, 52px); }
    #f-org, .field:has(#role) { grid-column: 1 / -1; }
  }
  @media (max-width: 960px) {
    .shot-static { max-width: 680px; }
    .partners .btn, .erp-band .btn { justify-self: start; }
    .step { padding-right: 16px; }
    .step p { font-size: 14.5px; }
    .nav-links { display: none; position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow); border: 1px solid var(--rule-2); }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 17px; padding: 12px 14px; }
    .nav-toggle { display: inline-flex; }
    .nav-inner > .btn { display: none; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-spine { display: none; }
    .hero-copy { padding: 40px 0 8px; }
    .hero-visual { padding: 28px 0 64px; }
    .stage, .stage-3d { animation: none; transform: none; perspective: none; }
    .shot-hero { width: 100%; margin-top: 0; transform: none; }
    .shot-back { display: none; }
    .chip { position: static; transform: none; margin-top: 10px; max-width: none; width: auto; }
    .chip > * { animation: none; }
    .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .section-head::after { display: none; }
    .section-head .lede { padding-top: 0; }
    .trace-grid > div:last-child { position: static; }
    .mcta { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border: 1px solid var(--rule-2); box-shadow: 0 18px 40px -16px rgba(29,32,51,.45); transform: translateY(150%); transition: transform .6s var(--spring); }
    .mcta.show { transform: none; }
    .mcta { max-width: 560px; margin-inline: auto; }
    .mcta .btn { min-height: 46px; }
    .site-foot { padding-bottom: 110px; }
    .nav-links { top: 74px; padding: 12px; }
    .nav-links a { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; padding: 14px 16px; }
    .nav-links.open { animation: sheetIn .45s var(--spring) both; }
    .trace-grid, .impl, .company, .demo, .agent-demo { grid-template-columns: minmax(0, 1fr); }
    .mission { grid-template-columns: minmax(0, 1fr); }
    .embed { grid-template-columns: minmax(0, 1fr); }
    .embed-col, .embed-col + .embed-col { padding: 18px 0 4px; border-left: 0; }
    .embed-col + .embed-col { border-top: 1px solid var(--rule); }
    .mission::after { display: none; }
    .mission-list li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
    .shot-static { width: 100%; }
    .erp-band { grid-template-columns: minmax(0, 1fr); }
    .partners { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ticker-label { padding-left: var(--gutter); font-size: 11px; }
    .hero-canvas { display: none; }
  }
  @media (max-width: 640px) {
    .domain summary { pointer-events: auto; cursor: pointer; margin-bottom: 0; padding: 4px 0 14px; }
    .domain[open] summary { margin-bottom: 4px; }
    .domain .count::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform .4s var(--spring); }
    .domain[open] .count::after { transform: translateY(1px) rotate(-135deg); }
    .coverage { gap: 0 24px; }
    .domain { padding-top: 14px; }
    .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .flow::before { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--lime), var(--violet)); transform-origin: top center; }
    .armed[data-reveal="agents"]:not(.in) .flow::before { transform: scaleY(0); }
    .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding-right: 0; }
    .step .n { grid-row: 1 / span 2; margin-bottom: 0; }
    .points { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    body { font-size: 16px; }
    .proof { grid-template-columns: minmax(0, 1fr); }
    .proof li:nth-child(odd) { border-right: 0; }
    .proof li:nth-child(even) { padding-left: 0; }
    .taccount-head h3 { font-size: 17px; }
    .taccount-head .tag, .iface { display: none; }
    .taccount-head { grid-template-columns: auto auto; justify-content: start; gap: 0; }
    .taccount-head div { padding: 14px 16px; }
    .taccount-head div + div { border-left: 2px solid var(--ink); background: none; }
    .taccount-head div:first-child h3 { color: var(--ink-3); font-weight: 600; }
    .trow { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
    .trow > div { padding: 0; font-size: 15px; gap: 10px; }
    .trow > div + div { border-left: 0; margin-top: 6px; }
    .trow + .trow > div { border-top: 0; }
    .trow + .trow { border-top: 1px solid var(--rule-2); }
    .trow .was { font-size: 14px; }
    .taccount-foot { grid-template-columns: minmax(0, 1fr); }
    .taccount-foot div { padding: 14px 16px; }
    .taccount-foot div + div { border-left: 0; border-top: 1px solid var(--rule-2); }
    .thumb { padding: 12px 14px; }
    .trace-stats b { font-size: 34px; }
    .coverage { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-areas: "kernel" "controls" "knowledge" "ledgers" "register"; }
    .books { grid-template-columns: minmax(0, 1fr); }
    .facts .row { grid-template-columns: minmax(0, 1fr); }
    .facts dt { border-right: 0; padding: 14px 20px 0; }
    .facts dd { padding: 4px 20px 14px; }
    form.card-form { grid-template-columns: minmax(0, 1fr); }
    .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .check span { width: 100%; min-height: 52px; padding: 8px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.25; }
    .form-foot .btn { width: 100%; }
    .foot { grid-template-columns: minmax(0, 1fr); }
    .foot-links { grid-template-columns: repeat(2, auto); }
    .ticker-label { display: none; }
    .live-pill .go { display: none; }
  }
  @media (max-width: 760px) {
    .bento, .roles { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px; scrollbar-width: none; border-top: 0; }
    .bento::-webkit-scrollbar, .roles::-webkit-scrollbar { display: none; }
    .bento > .card, .roles > .role { flex: 0 0 86%; scroll-snap-align: start; }
    .roles > .role, .roles > .role:nth-child(odd), .roles > .role:nth-child(even) { padding: 24px 22px 22px; border: 1px solid var(--rule-2); border-top: 3px solid var(--ink); border-radius: 0 0 22px 22px; background: var(--surface); }
    .role::before { display: none; }
    .swipe-hint { display: flex; align-items: center; gap: 10px; margin-top: 4px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
    .swipe-hint i { flex: 1; height: 2px; border-radius: 2px; background: var(--rule); position: relative; overflow: hidden; }
    .swipe-hint i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, .2)); transition: transform .2s linear; }
    .register tr:nth-child(n+5), .register .foot { display: none; }
    .bento > .card { justify-content: flex-start; }
    .card .viz { min-height: 0; flex: 0 0 auto; }
    .stat b { font-size: 72px; }
    .mission-list p { font-size: 21px; }
    .next-steps li { font-size: 16px; padding: 18px 0; }
    .trow > div { font-size: 15px; }
    .domain li { font-size: 15.5px; }
    .points-list li { padding-left: 24px; }
    .foot-links { gap: 16px 32px; }
    .foot-links a { padding-block: 6px 5px; }
  }
}

/* ───────────────── small-screen fixes (Nov 2026 visual pass) ───────────────── */
@layer responsive {
  @media (max-width: 640px) {
    /* the dark section is inset 8px; keep its text off the rounded edge */
    .dark .wrap { padding-inline: 20px; }
    /* the breadcrumb may wrap to two lines on phones; the window dots make room for it */
    .shot-bar { height: auto; min-height: 40px; padding-block: 11px; line-height: 1.4; }
    .shot-bar .dots { display: none; }
  }
  @media (max-width: 420px) {
    .trace-stats > div { padding-right: 10px; }
    .trace-stats > div + div { padding-left: 12px; }
    .trace-stats > div > span { font-size: 13px; line-height: 1.35; }
    .trace-stats b { font-size: 30px; }
    .mcta .btn { white-space: nowrap; padding-inline: 18px; font-size: 15px; }
  }
}
