/*
 * Oncotics design system v5 — light "Porcelain" and dark "Deep tide".
 * Dark-first, light paper interludes, large light-weight grotesk headlines, mono labels, serif italic accents,
 * visible layout guides and fine grain. Self-hosted fonts (SIL OFL 1.1): Geist, Geist Mono, Instrument Serif.
 * Shell components use the o- prefix so they can sit next to the imaging / scenario engines. © 2026 Oncotics™.
 */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ------------------------------------------------------------------ tokens v5: light "Porcelain" (default) and dark "Deep tide" */
:root {
  --paper: #F6F5F1; --paper-2: #EDEBE4; --card: #FFFFFF; --card-2: #FAF9F6;
  --ink: #0E1726; --ink-2: #2C3647; --muted: #5A6475; --subtle: #7D8696;
  --line: rgba(14, 23, 38, .12); --line-2: rgba(14, 23, 38, .06);
  --teal: #12B5A0; --teal-ink: #0A7566; --teal-wash: rgba(18, 181, 160, .11);
  --coral: #E85D3A; --coral-ink: #B8411F; --coral-wash: rgba(232, 93, 58, .10);
  --violet: #5D4BD8; --lilac: rgba(93, 75, 216, .09); --sky: rgba(33, 110, 200, .09); --sand: rgba(190, 130, 40, .10);
  --accent: #0A7566; --accent-hover: #085E52; --on-accent: #FFFFFF; --accent-text: #0A7566;
  --band: #E8F1EE; --band-card: #FFFFFF;
  --night: #0B1424; --night-ink: #E9EEF6; --night-muted: #94A1B6;
  --warn-bg: #FBF0D5; --warn-ink: #8A5300; --focus: #0A7566;
  --glow-1: rgba(18, 181, 160, .16); --glow-2: rgba(93, 75, 216, .10); --glow-3: rgba(232, 93, 58, .10);
  --grain: .03; --grain-blend: multiply;
  --helix-a: 10, 117, 102; --helix-b: 93, 75, 216; --helix-c: 232, 93, 58; --helix-rung: 14, 23, 38;
  --shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 18px 40px -26px rgba(14, 23, 38, .28);
  --shadow-l: 0 40px 90px -40px rgba(14, 23, 38, .35);
  --f-sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-ui: var(--f-sans); --f-display: var(--f-sans);
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --r-s: 6px; --r: 12px; --r-l: 18px; --r-xl: 26px;
  --max: 1320px; --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
:root[data-theme="dark"], .o-footer, .night, .force-dark {
  --paper: #0B1322; --paper-2: #0F1A2D; --card: #13203A; --card-2: #0F1A2E;
  --ink: #E9EEF6; --ink-2: #C2CBDA; --muted: #94A1B6; --subtle: #6F7D94;
  --line: rgba(233, 238, 246, .11); --line-2: rgba(233, 238, 246, .06);
  --teal: #3DDCC4; --teal-ink: #6EEAD6; --teal-wash: rgba(61, 220, 196, .13);
  --coral: #FF7A59; --coral-ink: #FF9A80; --coral-wash: rgba(255, 122, 89, .14);
  --violet: #A193FF; --lilac: rgba(161, 147, 255, .14); --sky: rgba(110, 170, 255, .14); --sand: rgba(230, 190, 120, .12);
  --accent: #3DDCC4; --accent-hover: #6EEAD6; --on-accent: #062019; --accent-text: #3DDCC4;
  --band: #111D33; --band-card: #172645;
  --night: #070D19; --warn-bg: rgba(251, 191, 36, .12); --warn-ink: #FCD34D; --focus: #6EEAD6;
  --glow-1: rgba(61, 220, 196, .14); --glow-2: rgba(161, 147, 255, .12); --glow-3: rgba(255, 122, 89, .10);
  --grain: .05; --grain-blend: overlay;
  --helix-a: 61, 220, 196; --helix-b: 161, 147, 255; --helix-c: 255, 122, 89; --helix-rung: 233, 238, 246;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 50px -30px rgba(0, 0, 0, .7);
  --shadow-l: 0 40px 100px -40px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1322; --paper-2: #0F1A2D; --card: #13203A; --card-2: #0F1A2E;
    --ink: #E9EEF6; --ink-2: #C2CBDA; --muted: #94A1B6; --subtle: #6F7D94;
    --line: rgba(233, 238, 246, .11); --line-2: rgba(233, 238, 246, .06);
    --teal: #3DDCC4; --teal-ink: #6EEAD6; --teal-wash: rgba(61, 220, 196, .13);
    --coral: #FF7A59; --coral-ink: #FF9A80; --coral-wash: rgba(255, 122, 89, .14);
    --violet: #A193FF; --lilac: rgba(161, 147, 255, .14); --sky: rgba(110, 170, 255, .14); --sand: rgba(230, 190, 120, .12);
    --accent: #3DDCC4; --accent-hover: #6EEAD6; --on-accent: #062019; --accent-text: #3DDCC4;
    --band: #111D33; --band-card: #172645;
    --night: #070D19; --warn-bg: rgba(251, 191, 36, .12); --warn-ink: #FCD34D; --focus: #6EEAD6;
    --glow-1: rgba(61, 220, 196, .14); --glow-2: rgba(161, 147, 255, .12); --glow-3: rgba(255, 122, 89, .10);
    --grain: .05; --grain-blend: overlay;
    --helix-a: 61, 220, 196; --helix-b: 161, 147, 255; --helix-c: 255, 122, 89; --helix-rung: 233, 238, 246;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 50px -30px rgba(0, 0, 0, .7);
    --shadow-l: 0 40px 100px -40px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
/* Tinted band sections (were light "paper" interludes in v4) */
.paper { --paper: var(--band); --card: var(--band-card); background: var(--band); color: var(--ink); }
.o-footer, .night { color: var(--ink); }
/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { font-family: var(--f-sans); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 7.4vw, 7.2rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); font-weight: 300; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 450; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
em.serif, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 6px; z-index: 400; text-decoration: none; font: 500 .85rem/1 var(--f-mono); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }

/* Layout guides (visible column lines, a hallmark of the references) */
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.guides::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; max-width: var(--max); margin: 0 auto; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  background: linear-gradient(90deg, transparent calc(25% - .5px), var(--line-2) calc(25% - .5px), var(--line-2) calc(25% + .5px), transparent calc(25% + .5px), transparent calc(50% - .5px), var(--line-2) calc(50% - .5px), var(--line-2) calc(50% + .5px), transparent calc(50% + .5px), transparent calc(75% - .5px), var(--line-2) calc(75% - .5px), var(--line-2) calc(75% + .5px), transparent calc(75% + .5px)); }

/* ------------------------------------------------------------------ labels */
.idx { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.idx::before { content: ""; width: 7px; height: 7px; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.idx b { color: var(--ink); font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 7px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; background: transparent; }
.tag.teal { color: var(--teal-ink); border-color: color-mix(in srgb, var(--teal) 40%, transparent); background: var(--teal-wash); }
.tag.coral { color: var(--coral-ink); border-color: color-mix(in srgb, var(--coral) 40%, transparent); background: var(--coral-wash); }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------------ buttons */
.btn { --bh: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: var(--bh); padding: 0 6px 0 20px; border-radius: var(--r-s); border: 1px solid transparent; font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn .arr { width: calc(var(--bh) - 14px); height: calc(var(--bh) - 14px); border-radius: 4px; display: inline-grid; place-items: center; background: rgba(0,0,0,.16); flex: none; }
.btn .arr svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform .45s var(--ease); }
.btn:hover .arr svg { transform: rotate(0deg); }
.btn:not(:has(.arr)) { padding: 0 20px; }
.btn:hover { text-decoration: none; }
.btn-ink, .btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ink:hover, .btn-primary:hover { background: var(--accent-hover); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-line .arr { background: var(--line-2); }
.btn-glass { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-glass:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.btn-light { background: var(--ink); color: var(--paper); }
.btn-light .arr { background: rgba(0,0,0,.1); }
.btn-sm { --bh: 40px; font-size: .7rem; padding-left: 14px; }
.btn-sm:not(:has(.arr)) { padding: 0 14px; }
.btn-li { background: #0A66C2; color: #fff; }
.btn-li:hover { background: #0B5AAB; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .76rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--teal-ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ------------------------------------------------------------------ header (shared) */
.o-header { position: sticky; top: 0; z-index: 100; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.o-header .o-in { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); min-height: 72px; display: flex; align-items: center; gap: 24px; }
.o-header[data-scrolled], .o-header.is-solid { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); border-bottom-color: var(--line); }
.o-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 1.22rem/1 var(--f-sans); letter-spacing: -.03em; flex: none; }
.o-brand svg { width: 30px; height: 30px; flex: none; }
.o-brand:hover { text-decoration: none; }
.o-nav { margin: 0 auto; display: flex; align-items: center; gap: 0; }
.o-nav a { position: relative; padding: 10px 14px; text-decoration: none; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .2s; }
.o-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.o-nav a:hover { color: var(--ink); }
.o-nav a:hover::after, .o-nav a[aria-current="page"]::after { transform: scaleX(1); }
.o-nav a[aria-current="page"] { color: var(--ink); }
.o-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.o-menu { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.o-menu svg { width: 22px; height: 22px; }
.o-menu-close { display: none; }
.o-mobile-cta { display: none; }
@media (max-width: 1080px) { .o-nav a { padding: 10px 10px; } .o-nav a::after { left: 10px; right: 10px; } .o-actions .btn-line { display: none; } }
@media (max-width: 1160px) {
  .o-menu { display: inline-flex; }
  .o-actions { margin-left: auto; }
  .o-actions .btn { display: none; }
  .o-nav { position: fixed; inset: 0; margin: 0; z-index: 150; padding: 100px var(--gutter) 40px; background: var(--night); flex-direction: column; align-items: stretch; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; overflow-y: auto; }
  .o-nav a { font: 300 clamp(2rem, 9vw, 2.8rem)/1.1 var(--f-sans); letter-spacing: -.03em; text-transform: none; color: #fff; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .o-nav a::after { display: none; }
  .o-nav a[aria-current="page"] { color: var(--teal); }
  .o-nav .o-mobile-cta { display: flex; margin-top: 28px; justify-content: space-between; font: 500 .8rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 0 6px 0 20px; color: var(--on-accent); background: var(--accent); border: 0; }
  .o-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .o-header.is-open .o-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .o-header.is-open .o-menu { position: relative; z-index: 160; background: #fff; color: #07090D; border-color: transparent; }
  .o-header.is-open .o-menu-open { display: none; }
  .o-header.is-open .o-menu-close { display: block; }
}

/* ------------------------------------------------------------------ hero (home) */
.hero { position: relative; isolation: isolate; margin-top: -73px; min-height: min(100svh, 1060px); display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(1100px 700px at 78% 30%, var(--glow-1), transparent 60%), radial-gradient(800px 600px at 10% 90%, var(--glow-2), transparent 60%), var(--paper); }
.hero .helix { position: absolute; right: -4vw; top: 0; width: min(62vw, 900px); height: 100%; z-index: 0; opacity: .95; pointer-events: none; }
.hero-in { position: relative; z-index: 1; padding-top: clamp(150px, 22vh, 230px); }
.hero h1 { max-width: 12ch; margin: 26px 0 0; font-size: clamp(3.2rem, 8.6vw, 8.6rem); line-height: .93; letter-spacing: -.055em; font-weight: 300; }
.hero h1 .serif { color: var(--accent-text); letter-spacing: -.035em; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 30px; align-items: end; justify-content: space-between; margin-top: 42px; }
.hero-sub p { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 60px; padding-bottom: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.ticker { display: flex; align-items: center; gap: 14px; font: 400 .9rem/1 var(--f-mono); color: var(--muted); min-height: 46px; }
.ticker .lbl { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); }
.ticker .q { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); min-width: 300px; text-decoration: none; }
.ticker .q:hover { border-color: var(--teal); text-decoration: none; }
.ticker .q .k { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; background: var(--teal-wash); color: var(--teal-ink); }
.ticker .caret { width: 7px; height: 16px; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font: 500 .66rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue .line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--teal); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.sec-tight { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.sec > .wrap, .sec-tight > .wrap { position: relative; z-index: 1; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 60px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head h2 { margin: 20px 0 0; max-width: 15ch; }
.sec-head p { color: var(--muted); font-size: 1.06rem; margin: 0; max-width: 460px; justify-self: end; }
.sec-head.stack { grid-template-columns: minmax(0, 1fr); }
.sec-head.stack p { justify-self: start; }
.surface { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Statement that lights up word by word */
.lede-block { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.lede-block .big, .poem { font: 300 clamp(1.7rem, 3.6vw, 3.3rem)/1.16 var(--f-sans); letter-spacing: -.035em; margin: 0; }
.lede-block .big strong { font-weight: 450; }
.lede-block .big .hl { color: var(--teal-ink); }
.lede-block .answer { color: var(--muted); max-width: 64ch; margin-top: 26px; }
.poem span { color: color-mix(in srgb, var(--ink) 22%, transparent); transition: color .7s var(--ease); }
.poem span.on { color: var(--ink); }
.poem .serif, .poem .serif.on { color: var(--accent-text); }

/* Module chapters: sticky stacked cards */
.stack { display: grid; gap: 0; }
.tool { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: min(76vh, 640px); margin-bottom: 28px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 -30px 60px -30px rgba(0,0,0,.7); }
.tool:nth-child(2) { top: 116px; }
.tool:nth-child(3) { top: 136px; }
.tool:nth-child(4) { top: 156px; }
.tool:nth-child(5) { top: 176px; }
.tool:hover { text-decoration: none; }
.tool .body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.tool .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: auto; }
.tool .num { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tool h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 300; letter-spacing: -.045em; line-height: 1; margin: 40px 0 18px; }
.tool p { color: var(--muted); margin: 0 0 24px; max-width: 46ch; }
.tool .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tool .art { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.tool .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tool:hover .art img { transform: scale(1.035); }
.tool .go { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 6px; background: rgba(7,9,13,.6); border: 1px solid rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.tool .go svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .45s var(--ease); }
.tool:hover .go svg { transform: rotate(0); }

/* Bento grid of evidence layers */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.bento .cell { background: var(--paper); padding: 28px; min-height: 260px; display: flex; flex-direction: column; position: relative; transition: background-color .3s; }
.bento .cell:hover { background: var(--card); }
.bento .cell.w2 { grid-column: span 2; }
.bento .ic { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line); }
.bento .ic svg { width: 20px; height: 20px; }
.bento h3 { margin: auto 0 10px; padding-top: 40px; }
.bento p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.bento .src { font: 400 .66rem/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); margin: 0; }
.bento .cell.feature { background: radial-gradient(500px 300px at 80% 0%, var(--glow-1), transparent 70%), var(--card); }
.bento .cell.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 300; letter-spacing: -.035em; }
.c-teal { color: var(--teal-ink); } .c-coral { color: var(--coral-ink); } .c-lilac { color: var(--violet); } .c-sky { color: #8EC1FF; } .c-sand { color: #E9C27A; }

/* How it works: connected steps */
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; position: relative; }
.flow-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--teal), var(--violet), var(--coral)); opacity: .6; }
.flow-steps li { position: relative; padding: 0 28px 0 0; }
.flow-steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font: 500 .74rem/1 var(--f-mono); color: var(--teal-ink); margin-bottom: 34px; }
.flow-steps h3 { margin-bottom: 10px; }
.flow-steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Dark cinematic band */
.night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 520px at 85% 10%, var(--glow-1), transparent 60%), radial-gradient(700px 480px at 0% 100%, var(--glow-3), transparent 60%); }
.stars { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 68% 14%, rgba(255,255,255,.35), transparent), radial-gradient(1px 1px at 84% 62%, rgba(255,255,255,.4), transparent), radial-gradient(1px 1px at 32% 78%, rgba(255,255,255,.3), transparent), radial-gradient(1.4px 1.4px at 52% 44%, rgba(255,255,255,.45), transparent), radial-gradient(1px 1px at 92% 88%, rgba(255,255,255,.3), transparent); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.trace { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); padding: 26px; }
.trace svg { width: 100%; height: auto; display: block; }
.trace ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; }
.trace li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: .95rem; color: var(--ink-2); }
.trace li svg { width: 18px; height: 18px; flex: none; color: var(--teal-ink); margin-top: 3px; }

/* Audience rows */
.roles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.roles li::after { content: "↗"; font: 400 1.2rem/1 var(--f-mono); color: var(--subtle); justify-self: end; transition: color .3s, transform .4s var(--ease); }
.roles li:hover { padding-left: 16px; }
.roles li:hover::after { color: var(--teal-ink); transform: rotate(45deg); }
.roles h3 { font-size: clamp(1.6rem, 3.4vw, 2.9rem); font-weight: 300; letter-spacing: -.04em; margin: 0; transition: color .3s; }
.roles li:hover h3 { color: var(--teal-ink); }
.roles p { margin: 0; color: var(--muted); }

/* Sources marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; width: max-content; gap: 56px; animation: marquee 52s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font: 300 clamp(1.6rem, 3vw, 2.6rem)/1 var(--f-sans); letter-spacing: -.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; color: var(--ink-2); }
.marquee span::after { content: ""; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
.source-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; margin: 40px 0 0; }
.source-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.source-list a, .source-list b { font-weight: 500; text-decoration: none; }
.source-list a:hover { color: var(--teal-ink); }
.source-list span { color: var(--muted); text-align: right; font: 400 .72rem/1.5 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }

/* Statement */
.statement { font: 300 clamp(2rem, 5vw, 4.6rem)/1.05 var(--f-sans); letter-spacing: -.045em; max-width: 20ch; margin: 0; }
.statement .serif { color: var(--coral-ink); }
.statement-by { margin-top: 30px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .95rem; max-width: 640px; }
.statement-by .bar { width: 46px; height: 1px; background: var(--ink); flex: none; }

/* Panels */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.split > .panel { border: 0; border-radius: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(26px, 4vw, 48px); }
.panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -.035em; margin: 20px 0 20px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 9px; height: 9px; border: 1px solid var(--teal-ink); background: var(--teal-wash); transform: rotate(45deg); }
.notice { background: var(--warn-bg); border-radius: var(--r); padding: 20px 22px; color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn-ink) 30%, transparent); }
.notice strong { color: var(--warn-ink); }
.notice p:last-child { margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq-grid .sticky { position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 1.14rem/1.35 var(--f-sans); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--line); position: relative; transition: background-color .3s, border-color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary .pm { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .a { padding: 0 60px 24px 0; color: var(--muted); }
.faq .a p:last-child { margin: 0; }
.faq .a a { color: var(--teal-ink); }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--card); padding: clamp(44px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; }
.cta::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 210deg at 70% 40%, var(--glow-1), var(--glow-2), var(--glow-3), var(--glow-1)); filter: blur(90px); opacity: .7; animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta h2 { color: var(--ink); font-size: clamp(2.6rem, 6.6vw, 6.4rem); letter-spacing: -.055em; margin: 0; max-width: 11ch; line-height: .95; }
.cta p { color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.cta .acts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* ------------------------------------------------------------------ inner page hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -73px; padding: clamp(170px, 24vh, 240px) 0 clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line); background: radial-gradient(900px 500px at 85% 0%, var(--glow-1), transparent 60%), var(--paper); }
.page-hero .orbs, .app-head .orbs { display: none; }
.page-hero h1 { font-size: clamp(3rem, 7.6vw, 7.4rem); letter-spacing: -.055em; line-height: .94; margin: 24px 0 0; max-width: 14ch; }
.page-hero h1 .serif, .app-head h1 .serif { color: var(--accent-text); }
.page-hero .lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 620px; margin: 30px 0 0; }
.page-hero .hero-actions { margin-top: 30px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs a:hover { color: var(--teal-ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--subtle); }
.meta-line { font: 400 .72rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta-line a { color: var(--teal-ink); }

/* Prose (privacy / legal) */
.prose-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 110px; list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--muted); font: 400 .74rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.toc a:hover { color: var(--ink); border-left-color: var(--teal); }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin: 72px 0 20px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--teal-ink); }
.prose .answer { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--teal); border-radius: var(--r); padding: 18px 22px; margin-bottom: 18px; }
.prose .answer p { margin: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 22px; width: 7px; height: 7px; background: var(--teal); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--card); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

/* About */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.founder figure { margin: 0; position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.founder figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease); }
.founder figure:hover img { filter: grayscale(0); }
.founder .role { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 22px; }
.founder h2 { margin: 22px 0 10px; }
.creds { list-style: none; padding: 0; margin: 28px 0 32px; }
.creds li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds strong { font-weight: 500; }
.creds span { color: var(--muted); font-size: .94rem; }
.principles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; list-style: none; padding: 0; margin: 0; }
.principles li { background: var(--paper); padding: 26px; display: flex; flex-direction: column; min-height: 260px; }
.principles .k { font: 300 1.9rem/1 var(--f-sans); letter-spacing: -.04em; margin: auto 0 12px; }
.principles p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Contact */
.contact-card { border-radius: var(--r-xl); padding: clamp(30px, 5vw, 60px); background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.contact-card h2 { margin: 16px 0 8px; font-size: clamp(2rem, 3.8vw, 3.2rem); }

/* ------------------------------------------------------------------ footer (shared) */
.o-footer { background: var(--night); color: var(--muted); padding: clamp(70px, 9vw, 120px) 0 30px; position: relative; overflow: hidden; isolation: isolate; font-size: .95rem; border-top: 1px solid var(--line); }
.o-footer a { color: var(--ink-2); text-decoration: none; }
.o-footer a:hover { color: var(--teal-ink); }
.o-foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.o-foot-top h2 { font: 500 .68rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--subtle); margin: 0 0 20px; }
.o-foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.o-foot-top p { max-width: 38ch; margin: 20px 0 0; }
.o-footer .o-brand { color: var(--ink); }
.o-wordmark { display: block; font: 300 clamp(5rem, 21vw, 19rem)/.85 var(--f-sans); letter-spacing: -.08em; margin: clamp(60px, 8vw, 100px) 0 34px; user-select: none; white-space: nowrap; background: linear-gradient(180deg, rgba(236,239,244,.22), rgba(236,239,244,0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.o-legal { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 6px; font-size: .82rem; color: var(--subtle); }
.o-legal p { margin: 0; }
.o-legal strong { color: var(--ink-2); font-weight: 500; }

/* ------------------------------------------------------------------ app pages (Imaging, Decision Studio, AI) */
.app-head { position: relative; isolation: isolate; overflow: hidden; margin-top: -73px; padding: clamp(150px, 20vh, 200px) 0 44px; background: radial-gradient(900px 500px at 90% 0%, var(--glow-1), transparent 60%), var(--paper); }
.app-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.app-head h1 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.055em; line-height: .94; margin: 22px 0 0; }
.app-head .lead { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 680px; margin: 24px 0 0; }
.app-steps { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; list-style: none; padding: 0; counter-reset: as; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; width: max-content; max-width: 100%; }
.app-steps li { counter-increment: as; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-right: 1px solid var(--line); }
.app-steps li:last-child { border-right: 0; }
.app-steps li::before { content: counter(as, decimal-leading-zero); color: var(--teal-ink); }
.app-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.app-shell { padding: 0 0 clamp(70px, 9vw, 120px); }
.jumpbar { position: sticky; top: 73px; z-index: 40; display: flex; gap: 4px; align-items: center; padding: 8px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.jumpbar a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; color: var(--muted); font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.jumpbar a:hover { background: var(--line-2); color: var(--ink); }
.jumpbar a.is-on { background: var(--teal-wash); color: var(--teal-ink); }
.jumpbar a::before { content: attr(data-n); color: var(--subtle); }
.jumpbar .sp { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); padding: 0 8px; white-space: nowrap; }
.app-frame { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(14px, 2vw, 26px); }
.app-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; border-radius: var(--r); padding: 16px 20px; background: var(--teal-wash); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); color: var(--ink); margin-bottom: 18px; font-size: .95rem; }
.app-note svg { width: 20px; height: 20px; color: var(--teal-ink); margin-top: 2px; }
.app-note p { margin: 0; }
.app-note a { color: var(--teal-ink); }
.about-tool { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.about-grid .panel { border: 0; border-radius: 0; background: var(--paper); }
.about-grid .panel h3 { margin-top: 0; font-size: 1.5rem; }
.about-tool .sec-head .answer { color: var(--muted); }

/* AI page */
.prov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; list-style: none; padding: 0; margin: 0; }
.prov-grid li { background: var(--paper); padding: 26px; min-height: 170px; display: flex; flex-direction: column; }
.prov-grid b { font: 400 1.4rem/1.1 var(--f-sans); letter-spacing: -.03em; }
.prov-grid span { margin-top: auto; color: var(--muted); font: 400 .72rem/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.prov-grid a { text-decoration: none; }
.prov-grid a:hover b { color: var(--teal-ink); }
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--card); text-decoration: none; color: inherit; transition: border-color .3s; }
.mod:hover { border-color: color-mix(in srgb, var(--teal) 50%, transparent); text-decoration: none; }
.mod img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.mod div { padding: 26px; }
.mod h3 { margin: 12px 0 8px; }
.mod p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ 404 */
.lost { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.lost .code { font: 200 clamp(8rem, 28vw, 22rem)/.8 var(--f-sans); letter-spacing: -.08em; background: linear-gradient(120deg, var(--teal), var(--violet) 55%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ reveal motion (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.js .hero h1 .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .hero.is-live h1 .ln > span { transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-list, .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sec-head, .privacy-grid, .faq-grid, .lede-block, .founder, .prose-grid, .cta, .contact-card, .app-head-grid, .hero-sub { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sec-head p { justify-self: start; }
  .hero .helix { right: -40vw; width: 120vw; opacity: .4; }
  .tool { position: relative; top: auto !important; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tool .art { order: -1; border-left: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
  .tool h3 { margin-top: 22px; }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .flow-steps::before { display: none; }
  .roles li { grid-template-columns: minmax(0, 1fr) 30px; }
  .roles p { grid-column: 1; }
  .faq-grid .sticky, .toc { position: static; }
  .toc { display: none; }
  .o-foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-foot-top > div:first-child { grid-column: 1 / -1; }
  .about-grid, .mods { grid-template-columns: minmax(0, 1fr); }
  .app-badges { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .guides::before { background: linear-gradient(90deg, transparent calc(50% - .5px), var(--line-2) calc(50% - .5px), var(--line-2) calc(50% + .5px), transparent calc(50% + .5px)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-in { padding-top: 130px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .scroll-cue { display: none; }
  .ticker .q { min-width: 0; flex: 1; }
  .ticker .lbl { display: none; }
  .flow-steps, .source-list, .principles, .bento, .prov-grid { grid-template-columns: minmax(0, 1fr); }
  .bento .cell.w2 { grid-column: auto; }
  .hero-actions .btn, .cta .btn { width: 100%; justify-content: space-between; }
  .creds li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .faq .a { padding-right: 0; }
  .o-foot-top { grid-template-columns: minmax(0, 1fr); }
  .jumpbar { overflow-x: auto; }
  .jumpbar .sp { display: none; }
  .app-steps { width: 100%; }
  .app-steps li { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js [data-reveal], .js .hero h1 .ln > span { opacity: 1; transform: none; }
}
@media print {
  .o-header, .o-footer, .hero .helix, .scroll-cue, .marquee, .jumpbar, body::after { display: none !important; }
  html, body { background: #fff; color: #000; }
  .js [data-reveal], .js .hero h1 .ln > span { opacity: 1 !important; transform: none !important; }
}
/* App pages: the AI pill takes the place of the Workspace button when space is tight */
@media (max-width: 1040px) { .o-actions span[data-rgxai] ~ .btn-ink { display: none; } }

/* ------------------------------------------------------------------ v5: theme toggle */
.o-theme { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; flex: none; transition: border-color .2s, background-color .2s; }
.o-theme:hover { border-color: var(--ink); }
.o-theme svg { width: 18px; height: 18px; }
.o-theme .i-sun { display: none; }
:root[data-theme="dark"] .o-theme .i-sun { display: block; }
:root[data-theme="dark"] .o-theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .o-theme .i-sun { display: block; } :root:not([data-theme="light"]) .o-theme .i-moon { display: none; } }
@media (max-width: 900px) { .o-header.is-open .o-theme { visibility: hidden; } }
.vr-pin { margin-top: 8px; }

/* ------------------------------------------------------------------ v8: home search and tool guide */
.hero-search { min-height: 0; padding-bottom: clamp(48px, 8vh, 90px); }
.hero-search .hero-in { padding-top: clamp(120px, 15vh, 170px); }
.hero-search h1 { font-size: clamp(2.9rem, 6.6vw, 6.4rem); }
.hero-lede { max-width: 620px; margin: 28px 0 0; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.ws-search { display: flex; gap: 8px; max-width: 720px; margin-top: 30px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 14px 44px rgba(11, 20, 36, .1); }
.ws-search:focus-within { border-color: var(--teal); }
.ws-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 400 1.05rem/1.2 var(--f-sans); outline: none; }
.ws-search input::placeholder { color: var(--subtle); }
.ws-search .btn { flex: none; }
.ws-search-note { margin: 10px 0 0; color: var(--muted); font-size: .84rem; }
.ws-try { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; max-width: 720px; }
.ws-try a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink-2); font-size: .84rem; text-decoration: none; }
.ws-try a:hover { border-color: var(--teal); color: var(--ink); }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); color: inherit; text-decoration: none; transition: border-color .25s, transform .25s; }
.q-card:hover { border-color: color-mix(in srgb, var(--teal) 55%, transparent); text-decoration: none; transform: translateY(-2px); }
.q-name { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.q-card h3 { margin: 14px 0 8px; font-size: 1.28rem; line-height: 1.22; font-weight: 500; letter-spacing: -.015em; }
.q-card p { margin: 0 0 18px; color: var(--muted); }
.q-meta { margin-top: auto; font: 400 .72rem/1 var(--f-mono); letter-spacing: .06em; color: var(--subtle); }
@media (max-width: 960px) { .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .q-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-search { flex-direction: column; }
  .ws-search .btn { justify-content: space-between; }
}
.js .hero-search h1 .ln > span { transition-duration: .7s; }
.hero-search .helix { right: -9vw; width: min(52vw, 780px); }
.hero-search .hero-in { width: 100%; padding-top: clamp(96px, 11vh, 128px); }
.hero-search h1 { font-size: clamp(2.7rem, 5.6vw, 5.3rem); }
.ws-try a { background: var(--card); }
@media (max-width: 760px) { .hero-search .helix { opacity: .35; } }
body { overflow-x: clip; }
@media (max-width: 620px) { a.rgx-btn.rgx-btn-sm { white-space: normal; max-width: 100%; height: auto; } }
.q-card-wide { grid-column: 1 / -1; }
