/* =========================================================================
   Vonar AI — SIGNAL, told by scroll
   Two stocks, one principle: NIGHT is where the signal lives and the drawing
   performs; PAPER is where things are drawn, specified and signed. The film
   turns the page inside the story; after it, sections cut like print.
   ========================================================================= */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root, [data-theme="dark"] {
  --ground: #07080a;
  --raised: #0e0f12;
  --ink: #f1f2f4;
  --ink-2: rgba(241, 242, 244, 0.7);
  --ink-3: rgba(241, 242, 244, 0.56);
  --line: rgba(241, 242, 244, 0.12);
  --line-2: rgba(241, 242, 244, 0.24);
  --accent: #56ccf2;
  --slip: rgba(7, 8, 10, 0.94);
  color-scheme: dark;
}
[data-theme="light"] {
  --ground: #eeebe4;
  --raised: #e5e1d8;
  --ink: #111215;
  --ink-2: rgba(17, 18, 21, 0.74);
  --ink-3: rgba(17, 18, 21, 0.64);
  --line: rgba(17, 18, 21, 0.14);
  --line-2: rgba(17, 18, 21, 0.28);
  --accent: #16688a;
  --slip: rgba(238, 235, 228, 0.95);
  color-scheme: light;
}
:root {
  --b1: #4864f3; --b2: #56ccf2; --b3: #847bf2; --b4: #b263e4; --b5: #d72cbc;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --gutter: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .25s linear;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 560; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
h3 { letter-spacing: -0.025em; line-height: 1.15; }
p, blockquote, figure { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; }
.kicker { color: var(--ink-3); margin-bottom: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
#main:focus, .sec[tabindex="-1"]:focus, .col[tabindex="-1"]:focus, .plate[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--ink); color: var(--ground); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid currentColor; font-size: 14px; white-space: nowrap; transition: background .3s, color .3s, border-color .3s;
}
.pill:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pill-solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pill-solid:hover { background: transparent; color: var(--ink); }
.text-link { display: inline-flex; gap: 10px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s; }
.text-link:hover { border-color: var(--ink); }

/* ---------- Header (difference-blended: reads on both stocks and across an iris edge) ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gutter); mix-blend-mode: difference; color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 580; letter-spacing: -0.03em; font-size: 17px; }
.bars { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.bars i { display: block; width: 3.5px; border-radius: 2px; background: currentColor; }
.bars i:nth-child(1) { height: 10px; } .bars i:nth-child(2) { height: 18px; } .bars i:nth-child(3) { height: 8px; }
.bars i:nth-child(4) { height: 14px; } .bars i:nth-child(5) { height: 10px; }
.bars.color i:nth-child(1) { background: var(--b1); } .bars.color i:nth-child(2) { background: var(--b2); }
.bars.color i:nth-child(3) { background: var(--b3); } .bars.color i:nth-child(4) { background: var(--b4); }
.bars.color i:nth-child(5) { background: var(--b5); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { opacity: 0.78; transition: opacity .3s; }
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.hdr .pill:hover { background: #fff; color: #000; border-color: #fff; }
.menu-btn { display: none; font-size: 14px; }
.motion-btn { font-size: 11px; color: inherit; opacity: .78; border-bottom: 1px solid currentColor; padding: 4px 0; white-space: nowrap; }
.motion-btn:hover { opacity: 1; }
.plates .motion-btn { display: none; }
.plates .menu-btn { margin-left: auto; }
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ground); display: flex; flex-direction: column; justify-content: center;
  gap: 4px; padding: 0 var(--gutter);
}
.menu a { font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.05em; font-weight: 540; line-height: 1.1; }
@media (max-width: 900px) {
  .nav, .hdr > .pill { display: none; }
  .motion-btn { margin-left: auto; }
  .menu-btn { display: block; margin-left: 0; }
}
.veil { position: fixed; inset: 0; z-index: 58; background: var(--ground); opacity: 0; pointer-events: none; transition: opacity .25s linear; }
.veil.on { opacity: 1; }

/* ---------- Story track + sticky stage ---------- */
.story { position: relative; }
.js .story { height: 1200vh; } /* replaced by the measured length from stack-page.js */
.story { --safe-b: 0px; }
@supports (height: 100svh) { .story { --safe-b: calc(100lvh - 100svh); } }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; color: var(--ink); z-index: 1; }
/* the page canvas: fixed behind everything; in motion mode it paints each section's stock */
/* a part of the node is under the pointer: it is a way to its chapter */
html.node-hot, html.node-hot .stage { cursor: pointer; }
#stack-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; background: #07080a; z-index: 0; }
.plates #stack-canvas { display: none; }
main, .ftr { position: relative; z-index: 1; }
.motion .sec, .motion .ftr { background: transparent; }
.motion .close-iris { background: transparent; clip-path: none; }
.beat { position: absolute; z-index: 2; }
.motion .beat { will-change: transform, opacity; }
.motion .beat.off { opacity: 0 !important; pointer-events: none; }
html.js:not(.motion):not(.plates) .stage > .beat { visibility: hidden; }
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.fx-wi { display: inline-block; will-change: transform; }
.fx-c { display: inline-block; will-change: transform; }
.line { display: block; }

/* cover */
.cover-kicker { left: var(--gutter); top: max(96px, 17vh); color: var(--ink-3); }
.cover-title { left: var(--gutter); bottom: calc(max(96px, 13vh) + 196px + var(--safe-b)); font-size: clamp(44px, 4.7vw, 92px); width: min(52vw, 900px); }
.cover-dek { left: var(--gutter); bottom: calc(max(96px, 13vh) + var(--safe-b)); width: min(480px, 38vw); display: flex; flex-direction: column; gap: 24px; }
.cover-dek p { color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); }
.cover-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.scroll-hint { right: var(--gutter); top: 50%; writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; color: var(--ink-3); }
.scroll-hint i { width: 1px; height: 56px; background: currentColor; transform-origin: top; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* the stack opens */
.open-copy { left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(620px, 44vw); }
.open-copy h2 { font-size: clamp(42px, 5.2vw, 92px); }

/* the system: the stack settles onto its core */
.system-copy { left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(560px, 42vw); display: flex; flex-direction: column; gap: 22px; }
.system-copy .kicker { margin-bottom: 0; }
.system-copy h1 { font-size: clamp(44px, 5.6vw, 100px); }
.system-dek { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 20px); max-width: 42ch; }
.credit { color: var(--ink-3); }
.system-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }

/* reading columns (normal flow over the held film) */
.col { position: absolute; z-index: 3; width: min(520px, 38vw); color: var(--ink); }
.col-left { left: var(--gutter); }
.col-right { right: var(--gutter); }
.col h2 { font-size: clamp(36px, 3.9vw, 68px); margin-bottom: 18px; }
.col > p:not(.kicker) { color: var(--ink-2); font-size: clamp(16px, 1.15vw, 18px); max-width: 46ch; margin-bottom: 14px; }
.deliv { border-top: 1px solid var(--line-2); margin: 6px 0 16px; }
.deliv li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }


/* ---------- After the story: sections with their own stock ---------- */
.sec { position: relative; background: var(--ground); color: var(--ink); padding: clamp(64px, 10vh, 112px) var(--gutter); }
.sec-head { margin-bottom: clamp(28px, 5vh, 56px); max-width: 1100px; }
.sec-head h2, .faq h2 { font-size: clamp(36px, 4.6vw, 76px); }

.track { height: 170vh; padding: 0; }
.track-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }
.track .sec-head { margin-bottom: 4vh; }
.track-wave { position: relative; height: 120px; margin-bottom: 4vh; }
.track-wave svg { width: 100%; height: 100%; overflow: visible; }
.track-wave path { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.track-wave .marker { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.track-point { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 18px 4px rgba(241,242,244,0.35); }
.track-rail { display: flex; gap: 24px; will-change: transform; }
.step { flex: 0 0 min(420px, 78vw); min-height: 260px; padding: 28px; border: 1px solid var(--line-2); border-radius: 4px; display: flex; flex-direction: column; background: var(--raised); }
.step .mono { color: var(--ink-3); }
.step h3 { font-size: clamp(26px, 2.4vw, 38px); margin-top: auto; margin-bottom: 12px; }
.step p { color: var(--ink-2); }

/* the first screen: platforms and partners sliding past along its foot */
.logo-marquee { left: 0; right: 0; bottom: calc(26px + var(--safe-b)); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 0 var(--gutter); }
.marquee-label { color: var(--ink-3); white-space: nowrap; }
.marquee { display: flex; overflow: hidden; -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; flex: none; align-items: center; gap: 0; animation: marquee 42s linear infinite; }
.marquee-track li { white-space: nowrap; padding: 0 clamp(22px, 2.6vw, 40px); position: relative; display: flex; align-items: center; }
.marquee-track .logo-img { height: 20px; }
.marquee-track .logo-name { font-size: 15px; }
.marquee-track li::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); transform: translateY(-50%); }
.marquee:hover .marquee-track, .paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 760px) { .logo-marquee { grid-template-columns: 1fr; gap: 8px; bottom: calc(14px + var(--safe-b)); } }
/* logos: one colour, the ink, whatever the original; a card with a line about each on hover */
.logo-item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); transition: color .25s, opacity .25s; }
.logo-img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.72; transition: opacity .25s; }
[data-theme="light"] .logo-img { filter: brightness(0); }
.logo-item:hover .logo-img, .logo-item:focus-visible .logo-img { opacity: 1; }
.logo-item:hover, .logo-item:focus-visible { color: var(--ink); }
.logo-name { font-family: var(--font); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.logo-tip { position: fixed; z-index: 70; max-width: 300px; padding: 12px 14px 13px; background: var(--ground); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; pointer-events: none; display: grid; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.logo-tip strong { color: var(--ink); font-weight: 600; font-size: 14px; }
.logo-tip em { font-style: normal; color: var(--accent); font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.partner-img { height: 26px; justify-self: start; align-self: flex-start; }
.logo-img[src*="amazonwebservices"] { height: 34px; margin: -6px 0; }
.marquee-track .logo-img[src*="amazonwebservices"] { height: 32px; }
.partner-mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); }
.partner-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; }
/* platforms and partners: logos in one quiet row, partners as cards */
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.logo-row li { display: grid; place-items: center; min-height: clamp(84px, 11vh, 120px); }
.logo-row li + li { border-left: 1px solid var(--line-2); }
.wordmark { font-family: var(--display, inherit); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; color: var(--ink-2); }
.wordmark img, img.logo { display: block; height: clamp(22px, 2.6vw, 34px); width: auto; filter: grayscale(1); opacity: 0.85; }
.partner-grid { grid-template-columns: 1fr 1fr; }
.partner-grid .wordmark + h3 { margin-top: 4px; }
.partners-head { margin-top: clamp(40px, 7vh, 72px); margin-bottom: 0; }
.partner-grid .wordmark { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); }
.logo-row .wordmark { text-align: center; padding: 0 10px; }
@media (max-width: 1100px) { .logo-row { grid-template-columns: repeat(3, 1fr); } .logo-row li:nth-child(4) { border-left: 0; } .logo-row li:nth-child(n+4) { border-top: 1px solid var(--line-2); } }
@media (max-width: 760px) { .logo-row { grid-template-columns: 1fr 1fr; } .logo-row li:nth-child(4) { border-left: 1px solid var(--line-2); } .logo-row li:nth-child(odd) { border-left: 0; } .logo-row li:nth-child(n+3) { border-top: 1px solid var(--line-2); } .partner-grid { grid-template-columns: 1fr; } }
/* open systems: the integration case, without and with */
.os-lede { margin-top: 18px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); max-width: 62ch; }
.os-tag { color: var(--accent); }
.os-compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); margin-bottom: clamp(28px, 5vh, 52px); }
.os-col { padding: 24px 30px 26px 0; }
.os-col + .os-col { padding-left: 30px; border-left: 1px solid var(--line-2); }
.os-col ul { display: grid; gap: 12px; margin-top: 16px; }
.os-col li { position: relative; padding-left: 26px; color: var(--ink-2); }
.os-col li::before { content: "×"; position: absolute; left: 0; top: -1px; color: var(--ink-3); font-family: var(--mono, ui-monospace, monospace); }
.os-col.with li { color: var(--ink); }
.os-col.with li::before { content: "→"; color: var(--accent); }
.os-col:not(.with) .os-tag { color: var(--ink-3); }
.os-grid article .os-tag { margin-bottom: -6px; }
.os-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; margin-top: clamp(24px, 4vh, 44px); }
.os-who div { border-top: 1px solid var(--line-2); padding-top: 14px; }
.os-who dt { color: var(--ink-3); margin-bottom: 8px; }
.os-who dd { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .os-compare, .os-who { grid-template-columns: 1fr; } .os-col + .os-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); } .os-who { gap: 18px; } }
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.buy-grid article { padding: 26px 30px 26px 0; display: flex; flex-direction: column; gap: 16px; }
.buy-grid article + article { padding-left: 30px; border-left: 1px solid var(--line-2); }
.buy-grid h3 { font-size: clamp(24px, 2.2vw, 32px); }
.buy-grid p { color: var(--ink-2); }
.buy-grid .text-link { margin-top: auto; align-self: flex-start; }
/* registration as an engineering title block */
.titleblock { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 36px; border: 1px solid var(--line-2); }
.titleblock > div { padding: 14px 16px; border-left: 1px solid var(--line-2); }
.titleblock > div:first-child { border-left: 0; }
.titleblock dt { color: var(--ink-3); margin-bottom: 8px; }
.titleblock dd { color: var(--ink); font-size: 13px; letter-spacing: 0.08em; }
.titleblock a { border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr; }
  .buy-grid article, .buy-grid article + article { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div { border-left: 0; border-top: 1px solid var(--line-2); }
}

.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 5vw; border-top: 1px solid var(--line); padding-top: clamp(44px, 7vh, 80px); }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-size: 19px; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 300; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 44px 20px 0; max-width: 64ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* close: the one post-story iris — night opens from the centre and the point is re-acquired */
.close { padding: 0; background: transparent; }
.close-iris { --r: 150%; position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ground); clip-path: circle(var(--r) at 50% 50%); }
.close-inner { position: relative; z-index: 1; padding: 0 var(--gutter); margin-top: 22vh; }
.close h2 { font-size: clamp(46px, 7.4vw, 136px); letter-spacing: -0.06em; max-width: 14ch; margin: 0 auto; }
.close p { color: var(--ink-2); max-width: 50ch; margin: 28px auto 0; font-size: clamp(16px, 1.3vw, 19px); }
.close-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

.ftr { background: var(--ground); color: var(--ink); border-top: 1px solid var(--line); padding: 44px var(--gutter) 28px; overflow: hidden; }
.ftr-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ftr-top nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-2); }
.ftr-top nav a:hover { color: var(--ink); }
.ftr-giant { font-size: 23vw; font-weight: 600; letter-spacing: -0.07em; line-height: 0.8; margin: 4vh 0 2vh -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); pointer-events: none; user-select: none; }
.ftr-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-3); }
.ftr-bottom a { color: inherit; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ftr-bottom a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ---------- Phones + portrait tablets: subject in the top half, copy on solid slips below ---------- */
/* keep in step with NARROW in stack-page.js */
@media (max-width: 760px), (max-width: 1100px) and (max-aspect-ratio: 17/20) {
  .cover-title { bottom: auto; top: 52vh; width: auto; right: var(--gutter); font-size: clamp(40px, 11vw, 60px); }
  .cover-dek { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(76px + var(--safe-b)); gap: 18px; }
  .cover-dek p { font-size: 15px; }
  .cover-kicker { top: 84px; }
  .scroll-hint { display: none; }
  .open-copy, .system-copy { top: auto; bottom: calc(76px + var(--safe-b)); transform: none; right: var(--gutter); width: auto; }
  .open-copy h2 { font-size: clamp(36px, 10vw, 56px); }
  .system-copy { gap: 14px; bottom: calc(96px + var(--safe-b)); } /* (clear of the logo strip) */
  .system-copy h1 { font-size: clamp(38px, 11vw, 60px); }
  .col { left: 0 !important; right: 0 !important; width: auto; padding: 22px var(--gutter) 26px; background: var(--slip); border-top: 1px solid var(--line-2); }
}

/* ---------- Plates: reduced motion, ?nomotion, short viewports ---------- */
.plates .story { height: auto !important; }
.plates .stage { display: none; }
.plate { position: relative; background: var(--ground); color: var(--ink); padding: clamp(56px, 8vh, 96px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.plate canvas { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.plate .plate-copy > * + * { margin-top: 20px; }
.plate h1, .plate h2 { font-size: clamp(36px, 4.6vw, 80px); }
.plate p { color: var(--ink-2); max-width: 48ch; }
.plate .beat, .plate .col { position: static; transform: none !important; opacity: 1 !important; width: auto; background: none; border: 0; padding: 0; text-align: left; max-width: none; }
.plate .system-copy, .plate .open-copy { gap: 18px; }
.plate .deliv { max-width: 44ch; }
.plates .track { height: auto; padding: clamp(56px, 8vh, 96px) var(--gutter); }
.plates .track-sticky { position: static; height: auto; overflow: visible; padding: 0; }
.plates .track-rail { flex-wrap: wrap; }
.plates .step { flex: 1 1 min(320px, 100%); }
@media (max-width: 760px) { .plate { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i { animation: none; }
  body, .veil { transition: none; }
}
.paused .scroll-hint i { animation-play-state: paused; }

/* ---------- No JavaScript: story content in normal flow ---------- */
html:not(.js) .stage { position: static; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 28px; padding: 140px var(--gutter) 80px; }
html:not(.js) #stack-canvas, html:not(.js) .scroll-hint,
html:not(.js) .menu-btn, html:not(.js) .motion-btn { display: none; }
html:not(.js) .beat, html:not(.js) .col { position: static; transform: none; width: auto; max-width: 62rem; text-align: left; }
html:not(.js) .col { padding: 0 var(--gutter) 80px; }
html:not(.js) .track { height: auto; padding: clamp(56px, 8vh, 96px) var(--gutter); }
html:not(.js) .track-sticky { position: static; height: auto; overflow: visible; padding: 0; }
html:not(.js) .track-rail { flex-wrap: wrap; }
html:not(.js) .step { flex: 1 1 min(320px, 100%); }
html:not(.js) .close-iris { clip-path: none; }
html:not(.js) .track-wave { display: none; }
