/* Palette & type mirror the reference site: warm paper, deep signal blue, solar amber.
   Fraunces for headings, Public Sans for body, Inconsolata for mono. */
:root {
  --paper: #f8f7f3;
  --paper-2: #f0efeb;
  --card: #ffffff;
  --ink: #1b1818;
  --ink-2: #4a4643;
  --muted: #8b857b;
  --border: #d6d1c7;
  --signal: #0b2672;
  --signal-soft: #e6ebf7;
  --solar: #da8a14;
  --lilac: #5656b9;
  --dark: #1b1818;
  --dark-2: #262222;
  --border-dark: rgba(255,255,255,.1);
  --radius: 16px;
  --max: 1180px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "Inconsolata", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.7; letter-spacing: -.01em;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: .82rem; }
.small { font-size: .78rem; color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.015em;
  font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0;
}
h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 18px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
h4 { font-family: var(--sans); }
p { color: var(--ink-2); }
.lead { font-size: 1.12rem; max-width: 640px; margin-bottom: 26px; }
.lead.center { margin: 0 auto 32px; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--solar); margin-bottom: 14px; display: block; }
.eyebrow.light { color: var(--solar); }
.section-intro { margin-bottom: 52px; }
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: #b8b1a6; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s; position: relative; overflow: hidden; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,38,114,.28); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { border-color: var(--border); background: var(--card); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-2); }
.link-arrow { color: var(--signal); font-weight: 600; display: inline-flex; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(248,247,243,.8); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.logo-mark { width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.logo-mark i { border-radius: 3px; background: var(--signal); animation: markPulse 3.2s infinite var(--ease); }
.logo-mark i:nth-child(2) { background: var(--solar); animation-delay: .3s; }
.logo-mark i:nth-child(3) { background: var(--lilac); animation-delay: .6s; }
.logo-mark i:nth-child(4) { background: var(--ink); animation-delay: .9s; }
@keyframes markPulse { 50% { transform: scale(.75); } }
.nav-links { display: flex; gap: 30px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--signal); transition: width .3s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* Hero */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero-noise { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(800px 400px at 50% -10%, rgba(11,38,114,.08), transparent 70%), radial-gradient(600px 300px at 80% 60%, rgba(218,138,20,.08), transparent 70%); }
.hero-inner { text-align: center; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 30px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--solar); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--solar); animation: ping 1.6s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.hero-title { font-size: clamp(2.7rem, 6vw, 4.8rem); margin: 0 auto 26px; max-width: 900px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; transform: translateY(110%); animation: riseIn .9s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) span { animation-delay: .14s; }
@keyframes riseIn { to { transform: translateY(0); } }
.hero-title em { font-style: italic; color: var(--signal); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-sub { font-size: 1.18rem; max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: .84rem; color: var(--muted); font-family: var(--mono); }
.hero-badges li::before { content: "◆ "; color: var(--solar); font-size: .6rem; vertical-align: 2px; }
.backed { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); text-align: left; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.backed::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(218,138,20,.12), transparent); transform: translateX(-100%); animation: shine 4s var(--ease) infinite; }
@keyframes shine { 40%, 100% { transform: translateX(100%); } }
.backed:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(27,24,24,.4); border-color: var(--solar); }
.backed-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--solar); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.backed-icon svg { width: 18px; height: 18px; }
.backed-text { display: grid; line-height: 1.25; }
.backed-text b { font-size: .9rem; }
.backed-text span { font-size: .78rem; color: var(--muted); }
.backed-arrow { color: var(--signal); font-weight: 700; transition: transform .3s var(--ease); }
.backed:hover .backed-arrow { transform: translateX(4px); }

/* Hero network */
.network { margin: 56px auto 0; max-width: 1100px; padding: 0 24px; position: relative; z-index: 1; }
.network svg { width: 100%; height: auto; display: block; }
.net-core .ring { opacity: 0; animation: ringOut 3s infinite ease-out; }
.net-core .ring-2 { animation-delay: 1.5s; }
@keyframes ringOut { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
.net-core circle { transform-box: fill-box; transform-origin: center; }

/* Marquee */
.marquee-wrap { padding: 50px 0 60px; }
.marquee-label { text-align: center; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-size: 1.35rem; color: var(--muted); white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: var(--ink); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- PRODUCT TOUR ---------- */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 10px; }
.tour-tab { text-align: left; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; transition: border-color .3s, transform .3s var(--ease); position: relative; overflow: hidden; }
.tour-tab:hover { transform: translateX(4px); }
.tour-tab.active { border-color: var(--signal); }
.tour-tab-num { font-family: var(--mono); font-size: .78rem; color: var(--solar); grid-row: 1 / 3; padding-top: 3px; }
.tour-tab-title { font-family: var(--serif); font-size: 1.15rem; }
.tour-tab-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.tour-tab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.tour-tab-bar i { display: block; height: 100%; width: 0; background: var(--signal); }
.tour-tab.active .tour-tab-bar i { animation: tabProgress var(--tab-dur, 9s) linear forwards; }
@keyframes tabProgress { to { width: 100%; } }
.tour-stage { position: relative; min-height: 440px; }
.tour-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tour-panel.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.screen { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(27,24,24,.3); height: 100%; min-height: 440px; display: flex; flex-direction: column; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--paper); color: var(--muted); }
.badge { font-family: var(--mono); font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--border); }
.badge-live { background: #fdf1e0; color: #9a5d05; border-color: #f2d5a6; }

/* voice */
.voice-layout { display: grid; grid-template-rows: auto 1fr; flex: 1; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 4px; height: 90px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.waveform i { width: 4px; height: 8px; border-radius: 2px; background: var(--signal); opacity: .8; transition: height .12s ease; }
.waveform.them i { background: var(--solar); }
.transcript { padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.t-line { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); min-height: 20px; }
.t-line.show { opacity: 1; transform: none; }
.t-line.them { background: var(--paper-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.t-line.us { background: var(--signal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.t-line.sys { font-family: var(--mono); font-size: .8rem; color: #2d7a4f; background: #eaf6ee; align-self: stretch; max-width: 100%; text-align: center; }
.t-line::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; opacity: 0; }
.t-line.typing::after { opacity: 1; animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* document reader */
.reader { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 20px; flex: 1; align-items: start; }
.doc-page { position: relative; background: #fffdf7; border: 1px solid var(--border); border-radius: 6px; padding: 22px 20px 18px; font-family: "Courier New", ui-monospace, monospace; font-size: .78rem; line-height: 1.7; color: #2a2623; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(27,24,24,.4); }
.doc-page::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.015) 2px 3px); pointer-events: none; }
.doc-head { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 8px; margin-bottom: 10px; font-size: .7rem; color: var(--muted); }
.doc-head b { color: var(--ink); letter-spacing: .08em; }
.doc-text { margin: 0 0 8px; color: #2a2623; }
.doc-hand { font-family: "Segoe Print", "Bradley Hand", cursive; font-size: .82rem; color: #1f3a8a; transform: rotate(-.6deg); }
.doc-sig { text-align: right; font-family: "Segoe Script", "Brush Script MT", cursive; color: #1f3a8a; margin-top: 8px; font-size: .9rem; }
.doc-page mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; transition: background .3s, box-shadow .3s; }
.doc-page mark.lit { background: #fde8b8; box-shadow: 0 0 0 3px #fde8b8; }
.doc-page mark.seen { background: #e3f7f4; }
.doc-page mark.low.seen { background: #fdf1e0; }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--signal), transparent); box-shadow: 0 0 18px 4px rgba(11,38,114,.35); opacity: 0; transition: top 1.4s linear, opacity .3s; z-index: 2; }
.doc-page.scanning .scan-line { opacity: 1; }
.doc-page.scanning::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,38,114,.06), transparent 40%); animation: scanTint 1.4s linear; }
@keyframes scanTint { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.fields { display: grid; gap: 6px; align-content: start; }
.fld { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; background: var(--paper); border: 1px solid var(--border); border-radius: 8px; font-size: .82rem; opacity: 0; transform: translateX(12px); transition: all .45s var(--ease); }
.fld.show { opacity: 1; transform: none; }
.fld-k { font-family: var(--mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fld-v { font-weight: 600; }
.fld-v .code, .fld-v .flag { display: block; font-style: normal; font-family: var(--mono); font-size: .68rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.fld-v .flag { color: #9a5d05; }
.fld.low.show { border-color: #f2d5a6; background: #fdf7ec; }
.conf { font-family: var(--mono); font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: conic-gradient(#2d7a4f calc(var(--c) * 1%), var(--paper-2) 0); color: transparent; position: relative; width: 26px; height: 26px; }
.conf::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.fld.low .conf { background: conic-gradient(var(--solar) calc(var(--c) * 1%), var(--paper-2) 0); }
.fld-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--muted); padding: 8px 4px 0; }
.fld-foot b { color: var(--ink); }
@media (max-width: 720px) { .reader { grid-template-columns: 1fr; } }

/* assembly */
.asm { display: grid; grid-template-columns: 1fr 80px 1.3fr; gap: 16px; padding: 24px; flex: 1; align-items: center; }
.asm-col { display: grid; gap: 8px; }
.asm-chip { font-family: var(--mono); font-size: .78rem; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); opacity: .35; transition: all .5s var(--ease); }
.asm-chip.fly { opacity: 1; border-color: var(--signal); transform: translateX(10px); }
.asm-chip.done { opacity: .5; transform: none; }
.asm-core { width: 80px; height: 80px; border-radius: 50%; background: var(--signal); position: relative; display: grid; place-items: center; }
.asm-core::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed var(--signal); opacity: .5; animation: spin 14s linear infinite; }
.asm-core span { width: 24px; height: 24px; border-radius: 50%; background: var(--solar); transition: transform .3s var(--ease); }
.asm-core.pulse span { transform: scale(1.5); }
@keyframes spin { to { transform: rotate(360deg); } }
.asm-field { display: grid; grid-template-columns: 110px 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid transparent; font-size: .85rem; opacity: 0; transform: translateX(-10px); transition: all .5s var(--ease); }
.asm-field.show { opacity: 1; transform: none; border-color: var(--border); }
.asm-field b { font-weight: 600; grid-row: 1 / 3; }
.asm-field s { color: var(--muted); margin-left: 6px; }
.asm-field.conflict.show { border-color: #f2d5a6; background: #fdf7ec; }
.asm-field .src { font-family: var(--mono); font-style: normal; font-size: .7rem; color: var(--muted); }

/* ---------- FILM PLAYER ---------- */
.player { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-dark); background: var(--dark-2); box-shadow: 0 40px 100px -40px rgba(0,0,0,.6); }
.player-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(800px 400px at 50% 120%, rgba(11,38,114,.5), transparent 70%), var(--dark-2); }
.scene { position: absolute; inset: 0; padding: 48px 56px; display: grid; grid-template-rows: auto auto 1fr; gap: 8px 0; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.scene.active { opacity: 1; transform: none; pointer-events: auto; }
.scene-kicker { color: var(--solar); }
.scene-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--paper); margin-bottom: 20px; }
.scene.active .scene-title { animation: riseFade .8s var(--ease); }
@keyframes riseFade { from { opacity: 0; transform: translateY(12px); } }
.player-big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; z-index: 10; transition: transform .3s var(--ease), opacity .3s; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.player-big:hover { transform: scale(1.06); }
.player.playing .player-big { opacity: 0; pointer-events: none; transform: scale(.8); }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--border-dark); }
.player-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--paper); display: grid; place-items: center; }
.player-btn .ico-pause { display: none; }
.player.playing .player-btn .ico-play { display: none; }
.player.playing .player-btn .ico-pause { display: block; }
.player-track { flex: 1; height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; position: relative; cursor: pointer; }
.player-track span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--signal), var(--solar)); border-radius: 3px; }
.chapter { position: absolute; top: -3px; width: 2px; height: 12px; background: rgba(255,255,255,.3); }
.player-time { color: #b8b1a6; }

/* film scenes */
.consent-card { align-self: center; width: min(420px, 100%); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 22px 24px; display: grid; gap: 10px; }
.consent-row { display: flex; justify-content: space-between; font-size: .9rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.consent-row span { color: var(--muted); }
.consent-sign { position: relative; height: 54px; display: flex; align-items: flex-end; }
.sig { font-family: var(--serif); font-style: italic; font-size: 1.6rem; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--signal); clip-path: inset(0 100% 0 0); }
.scene.active .sig { animation: sign 1.8s var(--ease) .4s forwards; }
@keyframes sign { to { clip-path: inset(0 0 0 0); } }
.map { position: relative; align-self: stretch; border: 1px dashed var(--border-dark); border-radius: 12px; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.pin { position: absolute; left: var(--x); top: var(--y); font-family: var(--mono); font-size: .75rem; color: var(--paper); padding: 4px 10px 4px 22px; background: rgba(0,0,0,.4); border-radius: 999px; opacity: 0; transform: translateY(6px); }
.pin::before { content: ""; position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--solar); box-shadow: 0 0 0 0 rgba(218,138,20,.6); }
.scene.active .pin { animation: pinIn .5s var(--ease) forwards; }
.scene.active .pin::before { animation: pinPulse 1.8s infinite; }
.scene.active .pin:nth-child(1) { animation-delay: .3s; } .scene.active .pin:nth-child(2) { animation-delay: .6s; } .scene.active .pin:nth-child(3) { animation-delay: .9s; } .scene.active .pin:nth-child(4) { animation-delay: 1.2s; } .scene.active .pin:nth-child(5) { animation-delay: 1.5s; }
@keyframes pinIn { to { opacity: 1; transform: none; } }
@keyframes pinPulse { to { box-shadow: 0 0 0 10px rgba(218,138,20,0); } }
.lanes { align-self: center; display: grid; gap: 12px; width: 100%; }
.lane { display: grid; grid-template-columns: 70px 1fr 90px; gap: 12px; align-items: center; font-family: var(--mono); font-size: .78rem; color: #b8b1a6; }
.lane i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--signal), var(--solar)); width: 0; }
.scene.active .lane i { animation: laneGrow 2.4s var(--ease) forwards; }
.scene.active .lane:nth-child(2) i { animation-delay: .15s; } .scene.active .lane:nth-child(3) i { animation-delay: .3s; } .scene.active .lane:nth-child(4) i { animation-delay: .45s; } .scene.active .lane:nth-child(5) i { animation-delay: .6s; }
@keyframes laneGrow { to { width: var(--w); } }
.lane em { font-style: normal; color: var(--paper); text-align: right; }
.doc-stack { align-self: center; position: relative; height: 180px; width: min(380px, 100%); margin: 0 auto; }
.doc { position: absolute; left: 50%; top: 0; width: 200px; height: 130px; margin-left: -100px; background: var(--paper); border-radius: 8px; opacity: .8; }
.scene.active .doc:nth-child(1) { animation: stack 1.6s var(--ease) .2s forwards; --r: -14deg; --x: -120px; }
.scene.active .doc:nth-child(2) { animation: stack 1.6s var(--ease) .35s forwards; --r: -5deg; --x: -50px; }
.scene.active .doc:nth-child(3) { animation: stack 1.6s var(--ease) .5s forwards; --r: 6deg; --x: 50px; }
.scene.active .doc:nth-child(4) { animation: stack 1.6s var(--ease) .65s forwards; --r: 14deg; --x: 120px; }
@keyframes stack { 0% { transform: translate(var(--x), 40px) rotate(var(--r)); } 100% { transform: translate(0, 0) rotate(0); opacity: 0; } }
.doc.final { opacity: 0; background: var(--signal); color: #fff; display: grid; place-content: center; text-align: center; gap: 6px; padding: 16px; width: 260px; margin-left: -130px; height: 140px; }
.doc.final b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.doc.final span { font-family: var(--mono); font-size: .75rem; color: #c9d3f5; }
.scene.active .doc.final { animation: finalIn .6s var(--ease) 1.8s forwards; }
@keyframes finalIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.delivered { align-self: center; text-align: center; display: grid; justify-items: center; gap: 18px; }
.delivered-check { width: 84px; height: 84px; border-radius: 50%; background: var(--solar); color: var(--ink); display: grid; place-items: center; }
.delivered-check svg { width: 40px; height: 40px; }
.scene.active .delivered-check { animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.1); } }
.delivered p { color: #b8b1a6; max-width: 420px; font-size: .95rem; }

/* Intelligence */
.stat-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 26px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--signal), var(--solar)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.stat.in::after { transform: scaleX(1); }
.stat-value { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.pillar { padding: 26px; border-top: 2px solid var(--ink); transition: border-color .3s, transform .3s var(--ease); }
.pillar:hover { border-color: var(--solar); transform: translateY(-4px); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { font-size: .92rem; }

/* Use cases */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usecase { display: flex; flex-direction: column; padding: 30px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.usecase::before { content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--signal-soft); transform: scale(0); transition: transform .5s var(--ease); }
.usecase:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(27,24,24,.3); }
.usecase:hover::before { transform: scale(1); }
.usecase > * { position: relative; }
.usecase h3 { font-size: 1.3rem; }
.usecase p { font-size: .93rem; flex: 1; margin-bottom: 16px; }
.usecase-cta { font-size: .85rem; font-weight: 600; color: var(--signal); opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.usecase:hover .usecase-cta { opacity: 1; transform: none; }

/* Trust */
.trust-list li { display: grid; gap: 4px; padding: 22px 0 22px 26px; border-top: 1px solid var(--border); position: relative; }
.trust-list li:last-child { border-bottom: 1px solid var(--border); }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 32px; width: 9px; height: 9px; background: var(--solar); transform: rotate(45deg); }
.trust-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.trust-list span { font-size: .95rem; color: var(--ink-2); }

/* Founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.founder { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.founder:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(27,24,24,.3); }
.founder-photo { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(160deg, var(--signal), var(--lilac)); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 2rem; }
.founder-photo.alt { background: linear-gradient(160deg, var(--ink), var(--solar)); }
.role { color: var(--solar); font-family: var(--mono); font-size: .8rem; margin-bottom: 10px; }
.founder p:not(.role) { font-size: .93rem; margin-bottom: 12px; }
.founder-link { font-size: .85rem; font-weight: 600; color: var(--muted); }
.founder-link:hover { color: var(--ink); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--serif); font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex-shrink: 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -6px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { padding: 0 0 22px; max-width: 700px; animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* CTA */
.cta { text-align: center; background: var(--signal); color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(218,138,20,.35), transparent 65%); animation: breathe 6s infinite alternate ease-in-out; }
@keyframes breathe { to { transform: translateX(-50%) scale(1.15); opacity: .7; } }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.cta .lead { color: #c9d3f5; }
.cta-form { display: flex; gap: 10px; justify-content: center; max-width: 560px; margin: 0 auto 14px; position: relative; }
.cta-form input { flex: 1; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, background .2s; }
.cta-form input::placeholder { color: #8fa0d6; }
.cta-form input:focus { border-color: var(--solar); background: rgba(255,255,255,.14); }
.cta .btn-primary { background: var(--solar); color: var(--ink); }
.cta-note { font-size: .85rem; color: #8fa0d6; position: relative; }

/* Footer */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--border); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.footer h4 { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; color: var(--muted); font-weight: 500; }
.footer-grid a:not(.logo) { display: block; color: var(--ink-2); margin-bottom: 10px; transition: transform .2s var(--ease), color .2s; }
.footer-grid a:not(.logo):hover { color: var(--signal); transform: translateX(4px); }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; }
.footer-contact address { font-style: normal; font-size: .85rem; color: var(--ink-2); line-height: 1.55; margin: 12px 0; }
.footer-contact address b { color: var(--ink); }
.social { display: flex; gap: 8px; margin-top: 14px; }
.footer .social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--ink-2); margin: 0; transition: all .25s var(--ease); }
.footer .social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-3px); }
.social svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 56px; padding: 22px 0 0; border-top: 1px solid var(--border); color: var(--muted); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; font-size: .8rem; }
.footer-bottom p { color: var(--muted); margin: 0; }
.footer-bottom p:last-child { justify-self: end; }
.footer-legal { display: flex; gap: 4px; }
.footer-legal a { color: var(--ink-2); font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.footer-legal a:hover { background: var(--paper-2); color: var(--ink); }
.badges { display: flex; gap: 6px; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }
.badges span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink-2); background: var(--card); }
.badges span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #2d7a4f; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; z-index: 60; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), background .2s; box-shadow: 0 14px 30px -12px rgba(27,24,24,.5); }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--signal); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-bottom { grid-template-columns: 1fr; } .footer-bottom p:last-child, .badges { justify-self: start; justify-content: flex-start; } }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- DEMO MODAL & FORM ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(27,24,24,.55); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--paper); border-radius: 20px; padding: 40px; transform: translateY(24px) scale(.97); transition: transform .4s var(--ease); box-shadow: 0 50px 120px -30px rgba(0,0,0,.5); }
.modal.open .modal-card { transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--muted); display: grid; place-items: center; }
.modal-x:hover { background: var(--paper-2); color: var(--ink); }
.demo-form h2 { font-size: 2rem; margin-bottom: 6px; }
.demo-form .sub { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 600; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: .95rem; background: var(--card); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.field.err input, .field.err select { border-color: #c95c5c; box-shadow: 0 0 0 3px #fbe9e9; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; padding: 10px; font-size: .9rem; border-right: 1px solid var(--border); transition: background .2s, color .2s; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 18px 0; }
.consent input { margin-top: 4px; accent-color: var(--signal); }
.consent a { color: var(--signal); font-weight: 600; }
.consent.err span { color: #a33a3a; }
.demo-form .btn-lg { width: 100%; }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.demo-done { display: none; text-align: center; padding: 20px 0; }
.demo-done.show { display: grid; justify-items: center; gap: 12px; animation: fadeDown .5s var(--ease); }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: var(--solar); color: var(--ink); display: grid; place-items: center; animation: pop .7s var(--ease); }
.done-check svg { width: 34px; height: 34px; }
.demo-done p { max-width: 420px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .modal-card { padding: 28px 20px; } }

/* Contact page: inline form (not modal) */
.contact-page .modal-card { transform: none; box-shadow: none; border: 1px solid var(--border); background: var(--card); max-height: none; }

/* ---------- SCROLL MOTION ---------- */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Reveal: opacity + 16px rise. Fast enough to never block reading. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; }
/* Media settles from a hair larger, like a photo coming into focus. */
.reveal .post-art img, .reveal .founder-photo, .reveal .screen, .reveal .player-screen { transform: scale(1.02); transition: transform 1s var(--ease-out); }
.reveal.visible .post-art img, .reveal.visible .founder-photo, .reveal.visible .screen, .reveal.visible .player-screen { transform: none; }

/* Hero: subtle scroll-linked drift */
.hero .orb, .hero .hero-noise, .hero .network, .hero-inner { translate: 0 var(--py, 0px); }
.hero-inner { will-change: opacity, translate; }

/* Nav adapts over dark sections */
.nav { transition: background .35s var(--ease-out), border-color .35s, color .35s; }
body.on-dark .nav { background: rgba(27,24,24,.72); border-bottom-color: var(--border-dark); }
body.on-dark .nav .nav-links a, body.on-dark .nav .logo { color: var(--paper); }
body.on-dark .nav .nav-links a::after { background: var(--solar); }
body.on-dark .nav .nav-toggle span { background: var(--paper); }
body.on-dark .nav .btn-primary { background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .two-col, .founders { grid-template-columns: 1fr; gap: 40px; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; }
  .tour-tab { min-width: 240px; }
  .pillars, .usecases { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-toggle { display: flex; }
  .btn-ghost { display: none; }
  .hero { padding: 56px 0 30px; }
  .section { padding: 70px 0; }
  .pillars, .usecases, .stat-board { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 110px; }
  .cta-form { flex-direction: column; }
  .scene { padding: 24px; }
  .asm { grid-template-columns: 1fr; }
  .asm-core { margin: 0 auto; }
  .player-screen { aspect-ratio: 4 / 5; }
}
