/* Elyon homepage, "Engineered light" (redo approved by Rahul, 2026-10-24).
   All night: hero with the live system map, statement, the whole stack,
   process, first light, our own work, governance with the approval
   console, why Elyon, FAQ and the close. MOTION.md sections 0-7.
   Without JS every section shows its finished state. */

.sec-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-intro { max-width: 30em; font-size: 18px; color: var(--night-muted); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
}
.tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--hair-2); border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--light); }

/* =================================================================== 1. Hero: split grid */
.hero { position: relative; padding: calc(var(--bar) + 40px + clamp(32px, 7vh, 96px)) 0 clamp(64px, 9vw, 128px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-h1 { font: 500 clamp(46px, 5.4vw, 86px)/1.0 var(--f-d); letter-spacing: -0.035em; color: var(--light); }
.hero-h1 .hw { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-h1 .hw { animation: heroWord 900ms var(--ease) both; }
  .hero-h1 .hw:nth-child(2) { animation-delay: 60ms; }
  .hero-h1 .hw:nth-child(3) { animation-delay: 120ms; }
  .hero-h1 .hw:nth-child(4) { animation-delay: 180ms; }
  .hero-h1 .hw:nth-child(5) { animation-delay: 240ms; }
  .hero-h1 .hw:nth-child(6) { animation-delay: 300ms; }
  .hero-h1 .hw:nth-child(7) { animation-delay: 360ms; }
  .hero-h1 .hw:nth-child(8) { animation-delay: 420ms; }
  .hero-sub, .hero-ctas, .hero-proof { animation: riseIn 900ms var(--ease) 480ms both; }
  .hero .net { animation: riseIn 1100ms var(--ease) 300ms both; }
}
@keyframes heroWord { from { opacity: 0; transform: translateY(0.4em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-sub { max-width: 30em; margin-top: 28px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--night-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { max-width: 30em; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.55; color: var(--night-muted); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero-copy { grid-column: 1 / span 6; }
  .hero .net { grid-column: 7 / span 6; }
}

/* ---------- The system map ---------- */
.net { position: relative; margin: 0; padding: 16px 16px 12px; }
.net-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px 12px; border-bottom: 1px solid var(--hair); }
.net-legend { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--night-muted); }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(87, 212, 255, 0.7); }
.net-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--hair-2); border-radius: 999px; background: transparent; color: var(--night-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: color var(--hover) var(--ease), border-color var(--hover) var(--ease); }
.net-pause:hover { color: var(--bone); border-color: var(--night-muted); }
.net-pause:focus-visible { border-radius: 999px; }
.net-pause[hidden] { display: none; }
.net-pause .i-play, .paused .net-pause .i-pause { display: none; }
.paused .net-pause .i-play { display: block; }
.net-stage { position: relative; padding-top: 10px; }
.net-svg { width: 100%; height: auto; overflow: hidden; }
.net-phone { display: none; }
@media (max-width: 599.98px) {
  .net-desk { display: none; }
  .net-phone { display: block; max-width: 420px; margin: 0 auto; }
}
.net-svg pattern circle { fill: rgba(154, 168, 180, 0.13); }
.n-bg { transition: transform 600ms var(--ease); }
.n-hdr { font: 500 11px/1 var(--f-m); letter-spacing: 0.12em; fill: var(--night-muted); }
.n-wire { fill: none; stroke: rgba(154, 168, 180, 0.26); stroke-width: 1; vector-effect: non-scaling-stroke; }
.n-lane { stroke-dasharray: 2 5; stroke: rgba(154, 168, 180, 0.3); }
.n-wire { transition: stroke 700ms var(--ease); }
.n-wire.lit { stroke: rgba(87, 212, 255, 0.5); }
.n-lane-label { font: 500 10px/1 var(--f-m); letter-spacing: 0.12em; fill: rgba(154, 168, 180, 0.75); }
.n-comet { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.n-comet.halo { stroke: var(--glow); stroke-width: 7; opacity: 0; }
.n-node rect { fill: var(--night-2); stroke: rgba(154, 168, 180, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 500ms var(--ease), fill 500ms var(--ease); }
.n-node.on rect { stroke: var(--cyan); fill: #0D1B27; }
.n-lab { font: 500 14px/1 var(--f-b); fill: var(--bone); }
.n-lab-s { font-size: 11px; letter-spacing: -0.01em; }
.n-tag { font: 500 11px/1 var(--f-m); fill: var(--night-muted); transition: fill 400ms var(--ease); }
.n-node.on .n-tag { fill: var(--glow); }
.n-port { fill: var(--night); stroke: rgba(154, 168, 180, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.n-track { stroke: var(--night-line); stroke-width: 2; stroke-linecap: round; }
.n-fill { stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.mx-net .n-fill { opacity: 0; }
.n-data rect { stroke-dasharray: none; }
.n-ring { fill: rgba(7, 13, 19, 0.7); stroke: rgba(127, 222, 255, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.n-cross { stroke: rgba(127, 222, 255, 0.4); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; fill: none; }
.n-star { fill: var(--light); filter: drop-shadow(0 0 14px rgba(127, 222, 255, 0.55)); }
.n-orbit { fill: none; stroke: rgba(154, 168, 180, 0.28); stroke-width: 1; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.n-echo { fill: none; stroke: var(--cyan); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.n-glyph { fill: var(--night-muted); transition: fill 400ms var(--ease); }
.n-agent.on .n-glyph { fill: var(--cyan); }
.n-gate rect { stroke: rgba(127, 222, 255, 0.45); }
.n-gate-ring { fill: none; stroke: rgba(154, 168, 180, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 300ms var(--ease); }
.n-check { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mx-net .n-check { opacity: 0; }
.n-gate.on .n-gate-ring { stroke: var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .mx-net .n-orbit { animation: orbit 60s linear infinite; }
  .idle .n-orbit, .paused .n-orbit { animation-play-state: paused; }
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* =================================================================== 3. The whole stack
   Without the 3D engine (phones, touch, reduced motion, no WebGL): the title,
   the pre-drawn engine and the two lists. Desktop: lists either side of it. */
.stack { position: relative; }
.stack-pin { padding: var(--sec) 0; }
.stack-grid { display: grid; gap: 40px; align-items: center; }
.stack-title { font-size: clamp(40px, 5vw, 80px); }
.eng-fig { justify-self: center; width: 100%; max-width: 380px; margin: 0; }
.eng-svg { width: 100%; height: auto; overflow: visible; }
.eng-svg * { vector-effect: non-scaling-stroke; }
.eng-svg path, .eng-svg ellipse, .eng-svg circle, .eng-svg rect { stroke-width: 1; }
.e-side { fill: #09121A; stroke: rgba(154, 168, 180, 0.34); }
.e-top { fill: #0C1620; stroke: rgba(127, 222, 255, 0.62); }
.e-side.e-glass { fill: rgba(9, 18, 26, 0.9); }
.e-top.e-glass { fill: rgba(87, 212, 255, 0.07); }
.e-hole { fill: #060B10; stroke: rgba(154, 168, 180, 0.34); }
.e-d { fill: none; stroke: rgba(154, 168, 180, 0.42); }
.e-lit { fill: none; stroke: rgba(87, 212, 255, 0.85); }
.e-dash { fill: none; stroke: rgba(127, 222, 255, 0.55); stroke-dasharray: 2 4; }
.e-port { fill: #13202D; stroke: rgba(127, 222, 255, 0.6); }
.e-astar { fill: var(--glow); }
.e-core { fill: var(--light); filter: drop-shadow(0 0 10px rgba(127, 222, 255, 0.65)); }
.e-post { fill: none; stroke: rgba(154, 168, 180, 0.6); }
.e-torus { fill: none; stroke: rgba(127, 222, 255, 0.7); stroke-width: 3 !important; }
.e-torus2 { fill: none; stroke: rgba(154, 168, 180, 0.32); }
.e-gateb { fill: #13202D; stroke: var(--glow); }
.e-tick { stroke: rgba(154, 168, 180, 0.32); }
.e-tick.on { stroke: var(--cyan); }
.e-slot { fill: #060B10; stroke: rgba(154, 168, 180, 0.3); }
.e-key { fill: #2A3C4D; stroke: rgba(154, 168, 180, 0.6); }
.e-key.out { fill: none; stroke: rgba(154, 168, 180, 0.4); stroke-dasharray: 2 3; }
.e-glassd { fill: rgba(87, 212, 255, 0.05); stroke: rgba(127, 222, 255, 0.5); }
.e-lat { fill: none; stroke: rgba(87, 212, 255, 0.24); }
.e-rib { fill: none; stroke: rgba(154, 168, 180, 0.55); }
.e-tag path { stroke: rgba(154, 168, 180, 0.4); }
.e-tag text { font: 500 13px/1 var(--f-m); letter-spacing: 0.08em; fill: var(--glow); }

.scol-h { margin-bottom: 14px; font: 500 12px/1.4 var(--f-m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--glow); }
.parts { display: grid; border-top: 1px solid var(--night-line); }
.part a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 14px 0 15px; border-bottom: 1px solid var(--night-line); text-decoration: none; color: inherit; }
.pt-n { grid-row: span 2; font: 500 12px/1.9 var(--f-m); letter-spacing: 0.1em; color: var(--glow); }
.pt-t { font: 500 20px/1.25 var(--f-d); letter-spacing: -0.02em; color: var(--light); transition: color var(--hover) var(--ease); }
.pt-d { font-size: 15px; line-height: 1.5; color: var(--night-muted); }
.part a:hover .pt-t { color: var(--glow); }
.part a:focus-visible { border-radius: 6px; }
@media (min-width: 1000px) {
  .stack-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); column-gap: 40px; row-gap: 48px; }
  .stack-title { grid-column: 1 / -1; }
  .scol-build { grid-column: 1; grid-row: 2; }
  .eng-fig { grid-column: 2; grid-row: 2; }
  .scol-gov { grid-column: 3; grid-row: 2; }
}
@media (max-width: 999.98px) {
  .eng-fig { max-width: 340px; }
}

/* =================================================================== 4. Process */
.process { padding: var(--sec) 0; }
.steps-line { position: relative; display: block; height: 1px; margin-top: clamp(48px, 6vw, 88px); background: var(--hair-2); }
.steps-line > i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), var(--glow)); box-shadow: 0 0 8px rgba(87, 212, 255, 0.6); transform-origin: 0 50%; }
.mx .steps-line > i { transform: scaleX(0); }
.steps { display: grid; gap: 40px; margin-top: -6px; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 34px; }
.step-node { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--cyan); background: var(--cyan); box-shadow: 0 0 12px rgba(87, 212, 255, 0.6); transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease), border-color 500ms var(--ease); }
.mx .step:not(.on) .step-node { background: var(--night); border-color: var(--night-muted); box-shadow: none; }
.step h3 { font: 500 clamp(22px, 1.9vw, 28px)/1.15 var(--f-d); letter-spacing: -0.025em; color: var(--light); }
.step p { max-width: 24em; font-size: 16px; line-height: 1.55; color: var(--night-muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 899.98px) {
  .steps-line { display: none; }
  .steps { margin-top: 48px; border-left: 1px solid var(--hair-2); }
  .step { padding: 0 0 0 28px; }
  .step-node { left: -6px; top: 4px; }
}

/* =================================================================== 6. Our own work */
.work { position: relative; padding: var(--sec) 0; }
.works { display: grid; gap: 24px; }
.wk { display: grid; grid-template-rows: auto 1fr; gap: 28px; padding: 24px; }
.wk-render { display: grid; place-items: center; height: clamp(300px, 28vw, 360px); border-radius: 14px; background: radial-gradient(80% 70% at 50% 40%, rgba(87, 212, 255, 0.07), rgba(87, 212, 255, 0) 70%), rgba(6, 11, 16, 0.6); overflow: hidden; font-size: clamp(8.4px, 2.5vw, 10px); }
.wk-copy { display: grid; justify-items: start; align-content: start; gap: 8px; padding: 0 4px 4px; }
.wk-copy h3 { margin-top: 10px; color: var(--light); font: 500 clamp(28px, 2.4vw, 36px)/1.05 var(--f-d); letter-spacing: -0.03em; }
.wk-desc { color: var(--night-muted); }
.wk-shows { max-width: 34em; margin-top: 6px; font-size: 16px; line-height: 1.55; }
.wk-shows .label { margin-right: 6px; font-weight: 600; color: var(--glow); }
.wk-copy .more { margin-top: 4px; }
@media (min-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product renders: app screens on a faintly lit plate. Sizes in em. */
.frame { position: relative; width: var(--w); height: var(--h); overflow: hidden; border: 1px solid var(--hair-2); border-radius: 1.8em; background: var(--night-2); color: var(--bone); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(7, 13, 19, 0.6); }
.f-clef { --w: 25em; --h: 30em; }
.f-cp { --w: 28em; --h: 18.8em; }
.f-note { --w: 30em; --h: 27em; }
.ui { display: flex; flex-direction: column; gap: 0.75em; height: 100%; padding: 1.3em 1.4em; font: 500 1.3em/1.35 var(--f-b); text-align: left; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.ui-kicker { font-size: 0.74em; font-weight: 600; color: var(--night-muted); }
.ui-title { font: 600 1.15em/1.2 var(--f-d); letter-spacing: -0.02em; color: var(--light); }
.ui-state { display: inline-flex; align-items: center; font-size: 0.74em; font-weight: 600; }
.live { display: inline-block; flex: none; width: 0.5em; height: 0.5em; margin-right: 0.5em; border-radius: 50%; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .live { animation: live 2.4s ease-in-out infinite; } }
@keyframes live { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
.ui-thread { padding: 0; gap: 0; }
.ui-head { display: flex; align-items: center; gap: 0.7em; padding: 1em 1.1em; border-bottom: 1px solid var(--night-line); }
.ui-av { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--night-line); font: 600 0.72em/1 var(--f-m); }
.ui-who { display: grid; gap: 0.1em; }
.ui-who b { font-size: 0.95em; font-weight: 600; }
.ui-who small { font-size: 0.75em; color: var(--night-muted); }
.ui-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6em; padding: 1em 1em 1.1em; }
.bub { display: block; max-width: 84%; padding: 0.6em 0.9em; border-radius: 1.25em; font-size: 0.95em; line-height: 1.35; }
.bub-in { align-self: flex-start; border-bottom-left-radius: 0.4em; background: var(--night-line); color: var(--bone); }
.bub-out { align-self: flex-end; border-bottom-right-radius: 0.4em; background: var(--bone); color: var(--night); }
.by { align-self: flex-end; font-size: 0.7em; color: var(--night-muted); }
.chip-held { display: grid; gap: 0.25em; padding: 0.6em 0.8em; border: 1px dashed rgba(154, 168, 180, 0.45); border-radius: 0.9em; }
.chip-held b { display: flex; align-items: center; font-size: 0.78em; font-weight: 700; }
.chip-held > span { font-size: 0.76em; color: var(--night-muted); }
.ui-log { gap: 0.8em; }
.log { display: grid; margin-top: 0.2em; font-size: 0.82em; }
.log li { display: grid; grid-template-columns: 3.6em 1fr; gap: 0.6em; padding: 0.55em 0; border-top: 1px solid var(--night-line); color: var(--night-muted); }
.log time { font: 500 0.92em/1.4 var(--f-m); }
.log span { color: var(--bone); }
.log-yes span { color: var(--glow); }
.ui-note { gap: 0.9em; }
.ui-note .ui-title { font-size: 1.15em; }
.note-qs { display: grid; gap: 0.8em; margin: 0; padding: 0; counter-reset: q; }
.note-qs li { position: relative; padding-left: 1.6em; font-size: 0.84em; line-height: 1.45; color: var(--bone); }
.note-qs li::before { counter-increment: q; content: counter(q); position: absolute; left: 0; top: 0; font: 600 0.85em/1.6 var(--f-m); color: var(--night-muted); }
.mx .ui-thread .s1, .mx .ui-thread .s2, .mx .ui-thread .s3 { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.mx .play .ui-thread .s1 { opacity: 1; transform: none; transition-delay: 200ms; }
.mx .play .ui-thread .s2 { opacity: 1; transform: none; transition-delay: 1000ms; }
.mx .play .ui-thread .s3 { opacity: 1; transform: none; transition-delay: 1900ms; }

/* =================================================================== 7. Governance and the console */
.gov { padding: var(--sec) 0; }
.gov-grid { display: grid; gap: 56px; }
.gov-copy { display: grid; gap: 22px; align-content: start; }
.gov-copy .title { max-width: 8em; font-size: clamp(40px, 5vw, 80px); }
.gov-body { max-width: 30em; font-size: 18px; color: var(--night-muted); }
.facts { display: grid; margin-top: 8px; border-top: 1px solid var(--night-line); }
.facts li { position: relative; color: var(--bone); padding: 13px 0 13px 28px; border-bottom: 1px solid var(--night-line); font-size: 16px; font-weight: 500; }
.facts li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 11px; height: 6px; border-left: 1.6px solid var(--cyan); border-bottom: 1.6px solid var(--cyan); transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .gov-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
}

.con { position: relative; border: 1px solid var(--hair-2); border-radius: 22px; background: var(--night-2); color: var(--bone); box-shadow: 0 50px 90px -50px rgba(11, 17, 22, 0.6), 0 16px 32px -24px rgba(11, 17, 22, 0.4); overflow: hidden; }
.con :focus-visible { outline-color: var(--cyan); }
.con-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--night-line); }
.con-title { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.con-title svg { width: 16px; height: 16px; color: var(--cyan); }
.con-demo { padding: 4px 10px; border: 1px solid var(--night-line); border-radius: 999px; font: 500 11px/1.4 var(--f-m); letter-spacing: 0.06em; color: var(--night-muted); }
.con-reset { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-left: auto; padding: 0 14px; border: 1px solid var(--night-line); border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; color: var(--night-muted); cursor: pointer; transition: color var(--hover) var(--ease), border-color var(--hover) var(--ease); }
.con-reset:hover { color: var(--bone); border-color: var(--night-muted); }
.con-reset:focus-visible { border-radius: 999px; }
.con-body { display: grid; }
.con-h { font: 600 12px/1.4 var(--f-b); letter-spacing: 0.02em; color: var(--night-muted); }
.con-feed { padding: 20px 22px 22px; }
.tl { position: relative; display: grid; margin-top: 14px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--night-line); }
.tl-step { position: relative; display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 14px; padding: 7px 0; transition: opacity 400ms var(--ease); }
.tl-ic { position: relative; width: 15px; height: 15px; margin-top: 3px; border-radius: 50%; border: 1px solid rgba(154, 168, 180, 0.5); background: var(--night-2); transition: background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.tl-txt { display: grid; gap: 2px; }
.tl-txt b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.tl-txt > span { font-size: 13px; line-height: 1.45; color: var(--night-muted); }
.tl-subs { display: grid !important; gap: 2px; margin-top: 2px; }
.tl-subs span { position: relative; padding-left: 14px; }
.tl-subs span::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 1px; background: var(--night-muted); }
/* Done: a filled bone node with a tick. Running: a turning arc. Waiting: cyan, breathing. */
.tl-step.is-done .tl-ic { background: var(--bone); border-color: var(--bone); }
.tl-step.is-done .tl-ic::after { content: ""; position: absolute; left: 4px; top: 3.6px; width: 5px; height: 3px; border-left: 1.4px solid var(--night); border-bottom: 1.4px solid var(--night); transform: rotate(-45deg); }
.tl-step.is-run .tl-ic { border-color: var(--night-line); border-top-color: var(--cyan); }
.tl-step.is-wait .tl-ic { border-color: var(--cyan); background: rgba(87, 212, 255, 0.18); box-shadow: 0 0 0 4px rgba(87, 212, 255, 0.12); }
.js-demo .tl-step:not(.is-done):not(.is-run):not(.is-wait) { opacity: 0.5; }
.js-demo .tl-subs span { transition: opacity 300ms var(--ease); }
.js-demo .tl-step[data-s="2"]:not(.is-done):not(.is-run) .tl-subs span, .js-demo .tl-subs span.pending { opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .tl-step.is-run .tl-ic { animation: spin 0.9s linear infinite; }
  .tl-step.is-wait .tl-ic { animation: breathe 2.2s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 3px rgba(87, 212, 255, 0.14); } 50% { box-shadow: 0 0 0 6px rgba(87, 212, 255, 0.04); } }

.con-side { display: grid; gap: 18px; align-content: start; padding: 20px 22px 22px; border-top: 1px solid var(--night-line); background: #0A131C; }
.act { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(127, 222, 255, 0.32); border-radius: 16px; background: var(--night-2); transition: border-color 400ms var(--ease); }
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.act-state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid rgba(127, 222, 255, 0.35); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--glow); }
.act-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.act-title { font: 500 clamp(26px, 2.4vw, 32px)/1.05 var(--f-d); letter-spacing: -0.03em; color: var(--light); font-variant-numeric: tabular-nums; }
.act-dl { display: grid; margin: 0; }
.act-dl > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--night-line); font-size: 14px; }
.act-dl dt { color: var(--night-muted); }
.act-dl dd { margin: 0; color: var(--bone); }
.act-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.con .btn { background: var(--bone); color: var(--night); }
.con .btn:hover { background: var(--light); }
.con .btn-line { background: transparent; color: var(--bone); border-color: var(--hair-2); }
.con .btn-line:hover { background: rgba(154, 168, 180, 0.08); border-color: var(--night-muted); }
.con .btn[aria-disabled="true"] { cursor: default; }
.act.is-approved { border-color: rgba(241, 238, 233, 0.3); }
.act.is-approved .act-state i { background: var(--bone); }
.act.is-approved .act-yes { background: transparent; color: var(--bone); border-color: rgba(241, 238, 233, 0.35); }
.act.is-approved .act-yes .arr { display: none; }
.audit { display: grid; gap: 10px; }
.audit-list { display: grid; align-content: start; font-size: 13px; }
.audit-list li { position: relative; display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--night-line); line-height: 1.45; }
.audit-list li > span { grid-column: 2; }
.audit-list li .a-what { margin-top: -10px; }
.audit-list time { grid-row: span 2; font: 500 12px/1.6 var(--f-m); color: var(--night-muted); }
.a-who { font-weight: 600; }
.a-what { color: var(--night-muted); }
.a-tag { margin-left: 8px; padding: 1px 7px; border: 1px solid var(--night-line); border-radius: 999px; font: 500 10px/1.5 var(--f-m); letter-spacing: 0.06em; color: var(--night-muted); }
.audit-list li.new { color: var(--light); }
.audit-list li.new .a-what { color: var(--bone); }
.audit-list li.new::before { content: ""; position: absolute; left: -22px; top: 0; bottom: 0; width: 2px; background: var(--cyan); }
@media (min-width: 760px) {
  .con-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .con-side { border-top: 0; border-left: 1px solid var(--night-line); }
}

/* =================================================================== 9. FAQ */
.faq { padding: var(--sec) 0; }
.faq-grid { display: grid; gap: 40px; }
.faq-head { max-width: 7em; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--bar) + 40px); }
}

/* =================================================================== 10. Close */
.close { padding: var(--sec) 0 clamp(72px, 9vw, 128px); }
.close-grid { display: grid; justify-items: center; text-align: center; }
.close-mark { width: clamp(72px, 8vw, 104px); height: auto; margin-bottom: clamp(32px, 4vw, 48px); overflow: visible; }
.cm-ring { stroke: rgba(127, 222, 255, 0.4); stroke-width: 0.35; }
.cm-cross { stroke: rgba(127, 222, 255, 0.5); stroke-width: 0.4; stroke-linecap: round; }
.cm-star { fill: var(--light); filter: drop-shadow(0 0 6px rgba(127, 222, 255, 0.7)); }
.close-h { color: var(--light); max-width: 10em; font: 500 clamp(48px, 7vw, 112px)/1 var(--f-d); letter-spacing: -0.035em; }
.close-row { display: grid; justify-items: center; gap: 28px; margin-top: clamp(28px, 3vw, 40px); }
.close-row p { max-width: 30em; font-size: 18px; color: var(--night-muted); }

/* =================================================================== The engine (engine.js)
   The lens: the core's collar ring, four chapter segments and a demo inside.
   engine.js places the fixed copy over the 3D core; the static copy stands in
   on the governance section everywhere else. Sizes inside are in em. */
.console-sec { padding: clamp(24px, 4vw, 64px) 0 var(--sec); }
.console-sec .con { max-width: 1080px; margin-inline: auto; }
.reassemble { display: none; }
.gov-fig { margin: 0; justify-self: center; width: 100%; max-width: 520px; }
.lens-static { position: relative; width: 100%; aspect-ratio: 1; font-size: clamp(12px, 3.4vw, 18px); }
.lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lens-ring * { vector-effect: non-scaling-stroke; }
.lr-track { fill: none; stroke: rgba(154, 168, 180, 0.22); stroke-width: 1; }
.lr-ticks { fill: none; stroke: rgba(154, 168, 180, 0.34); stroke-width: 1; }
.lr-arc { fill: none; stroke: rgba(154, 168, 180, 0.26); stroke-width: 3; stroke-linecap: round; transition: stroke 600ms var(--ease); }
.lr-arc.done { stroke: rgba(87, 212, 255, 0.42); }
.lr-arc.on { stroke: var(--cyan); filter: drop-shadow(0 0 5px rgba(87, 212, 255, 0.55)); }
.lr-lab { font: 500 5px/1 var(--f-m); letter-spacing: 0.14em; fill: rgba(154, 168, 180, 0.8); transition: fill 400ms var(--ease); }
.lr-lab.on { fill: var(--glow); }
.lr-gate { fill: none; stroke: rgba(127, 222, 255, 0.5); stroke-width: 1; opacity: 0; transform: scale(0.88); transform-origin: center; transform-box: fill-box; transition: opacity 600ms var(--ease); }
.lr-gate.on { opacity: 1; }
.lens-in { position: absolute; left: 50%; top: 50%; width: 18em; height: 18em; transform: translate(-50%, -50%); }
.dm { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.7em; text-align: center; opacity: 0; transition: opacity 500ms var(--ease); }
.dm.on { opacity: 1; }
.dm-k { display: inline-flex; align-items: center; gap: 0.5em; font: 500 0.66em/1 var(--f-m); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); }
/* Find */
.dm-find svg { width: 15em; height: auto; overflow: visible; }
.dmf-path { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-dasharray: 1; stroke-linecap: round; }
.dmf-dot { fill: var(--light); filter: drop-shadow(0 0 4px rgba(127, 222, 255, 0.9)); }
.dmf-n circle { fill: #070D13; stroke: var(--glow); stroke-width: 1.2; }
.dmf-n text { font: 500 9.5px/1 var(--f-b); fill: var(--bone); }
/* Design */
.dmd-rows { display: grid; gap: 0.45em; width: 13em; }
.dmd-rows li { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.75em; border: 1px dashed rgba(127, 222, 255, 0.4); border-radius: 0.5em; font-size: 0.8em; }
.dmd-rows li:first-child { border-style: solid; border-color: rgba(127, 222, 255, 0.7); background: rgba(87, 212, 255, 0.06); }
.dmd-rows i { width: 0.5em; height: 0.5em; border-radius: 2px; background: var(--cyan); }
.dmd-rows li:not(:first-child) i { background: transparent; border: 1px solid rgba(154, 168, 180, 0.6); }
.dmd-rows b { font-weight: 600; color: var(--light); }
.dmd-rows em { margin-left: auto; font: 500 0.78em/1 var(--f-m); font-style: normal; letter-spacing: 0.06em; color: var(--glow); }
.dmd-sign, .dmb-live { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.78em; font-weight: 600; color: var(--bone); }
.dmd-sign svg, .dmg-gate svg { width: 1.3em; height: 1.3em; }
.dmd-sign circle, .dmg-gate circle { fill: none; stroke: var(--cyan); stroke-width: 1.2; }
.dmd-sign path, .dmg-gate path { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.is-static .dmg-gate path { stroke-dasharray: none; }
/* Build */
.dmb-stack { display: grid; gap: 0.3em; width: 11em; }
.dmb-stack span { padding: 0.55em 0; border: 1px solid rgba(127, 222, 255, 0.5); border-radius: 0.5em; background: #0C1620; font: 600 0.8em/1.2 var(--f-b); color: var(--light); }
.dmb-stack span[data-b="2"] { border-color: var(--cyan); box-shadow: 0 0 0.9em -0.3em rgba(87, 212, 255, 0.7); }
.dmb-live i, .dmr-rec { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0.5em rgba(87, 212, 255, 0.8); }
/* Run */
.dmr-log { display: grid; width: 16em; text-align: left; font-size: 0.78em; }
.dmr-log li { display: grid; grid-template-columns: auto 1fr; gap: 0.9em; padding: 0.42em 0; border-top: 1px solid var(--night-line); color: var(--bone); white-space: nowrap; }
.dmr-log time { font: 500 0.92em/1.5 var(--f-m); color: var(--night-muted); }
.dmr-log li:nth-child(4) { color: var(--glow); }
/* Governance: the approval */
.dm-gov { gap: 0.5em; }
.dmg-amt { font: 500 1.7em/1 var(--f-d); letter-spacing: -0.03em; color: var(--light); font-variant-numeric: tabular-nums; }
.dmg-why { font-size: 0.82em; color: var(--night-muted); }
.dmg-gate { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 0.5em; margin-top: 0.5em; padding: 0.5em 0.85em; border: 1px solid rgba(127, 222, 255, 0.4); border-radius: 999px; font-size: 0.78em; }
.dmg-gate b { grid-column: 2; grid-row: 1; font-weight: 600; color: var(--bone); white-space: nowrap; }
.dmg-y { color: var(--glow) !important; }
.dmg-star { position: absolute; left: 50%; top: 50%; width: 13em; height: 13em; transform: translate(-50%, -54%); z-index: -1; opacity: 0.5; }
.dmg-star path { fill: currentColor; }
.dm-gov .dmg-star { color: rgba(127, 222, 255, 0.16); }

/* The fixed lens (3D on): sits over the core, below the page text. */
.lens { position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.lens:not(.on) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lens .lr-arc.on { animation: arcDraw 900ms var(--ease) both; }
}
@keyframes arcDraw { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }

/* Chapter tick bar: fixed at the foot of the screen while the engine story runs. */
.scrub[hidden] { display: none; }
.scrub { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: min(520px, calc(100vw - 32px)); display: grid; gap: 6px; padding: 6px 12px 10px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(7, 13, 19, 0.86); opacity: 0; transform: translate(-50%, 14px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.scrub.on { opacity: 1; transform: translate(-50%, 0); }
.scrub:not(.on) { pointer-events: none; }
.scrub ol { display: flex; justify-content: space-between; gap: 4px; }
.scrub button { min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font: 500 11px/1 var(--f-m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-muted); cursor: pointer; transition: color var(--hover) var(--ease), background-color var(--hover) var(--ease); }
.scrub button:hover { color: var(--bone); background: rgba(154, 168, 180, 0.08); }
.scrub button[aria-current="step"] { color: var(--glow); }
.scrub-track { position: relative; display: block; height: 9px; margin: 0 8px; background: repeating-linear-gradient(90deg, rgba(154, 168, 180, 0.38) 0 1px, transparent 1px 7px); }
.scrub-track > i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--cyan) 0 1px, transparent 1px 7px); clip-path: inset(0 100% 0 0); }

/* ---------- 3D on (engine.js adds .eng-on): the pinned stack, the dive, the chapters ---------- */
@media (min-width: 1000px) {
  .eng-on .stack-track { height: 480vh; }
  .eng-on .stack-pin { position: sticky; top: 0; height: 100vh; padding: 0; }
  .eng-on .stack-grid, .eng-on .scol, .eng-on .parts { position: static; display: block; width: auto; }
  .eng-on .stack-grid { height: 100%; }
  .eng-on .stack-title { position: absolute; left: calc((100% - min(100% - 2 * var(--gut), var(--max))) / 2); top: calc(var(--bar) + 44px); font-size: min(4.2vw, 7vh); }
  .eng-on .eng-fig { display: none; }
  .eng-on .parts { border: 0; }
  .eng-on .part { position: absolute; left: 0; top: 0; z-index: 1; width: min(330px, 25vw); opacity: 0; transition: opacity 500ms var(--ease); }
  .eng-on .part.on { opacity: 1; }
  .eng-on .part:not(.on) { pointer-events: none; }
  .eng-on .part a { display: block; padding: 4px 0; border: 0; }
  .eng-on .scol-build .part a { text-align: right; }
  .eng-on .pt-n { display: inline-block; margin-right: 8px; font-size: 11px; line-height: 1; vertical-align: 3px; }
  .eng-on .pt-t { font-size: 18px; }
  .eng-on .pt-d { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; text-wrap: balance; }
  .eng-on .part.lit .pt-t { color: var(--glow); }
  .eng-on .scol-h { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; opacity: 0; transition: opacity 500ms var(--ease); white-space: nowrap; }
  .eng-on .scol-h.on { opacity: 1; }
  .eng-leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .eng-leads path { fill: none; stroke: rgba(127, 222, 255, 0.5); stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--ease), stroke 300ms var(--ease); }
  .eng-leads circle { fill: var(--glow); opacity: 0; transition: opacity 400ms var(--ease); }
  .eng-leads .ld-ring { fill: none; stroke: var(--glow); stroke-width: 1; }
  .eng-leads g.on path { stroke-dashoffset: 0; }
  .eng-leads g.on circle { opacity: 1; }
  .eng-leads g.on .ld-ring { opacity: 0.35; }

  .eng-on .process, .eng-on .gov { padding: 0; }
  .eng-on .dive { display: grid; align-content: center; min-height: 100vh; }
  .eng-on .steps-line { display: none; }
  .eng-on .steps { display: block; margin: 0; border: 0; }
  .eng-on .step, .eng-on .gov-copy { display: grid; align-content: center; gap: 12px; min-height: 100vh; max-width: min(480px, 36vw); padding: 0; opacity: 0.55; transition: opacity 600ms var(--ease); }
  .eng-on .step.on, .eng-on .gov-copy.on { opacity: 1; }
  .eng-on .step h3 { font-size: clamp(30px, 2.8vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
  .eng-on .step p { font-size: 18px; }
  .eng-on .step .label { font: 500 12px/1.4 var(--f-m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--glow); }
  .eng-on .step-node { display: none; }
  .eng-on .gov-grid { display: block; }
  .eng-on .gov-copy { min-height: 125vh; max-width: min(520px, 38vw); }
  .eng-on .gov-copy .title { font-size: clamp(40px, 4.4vw, 72px); }
  .eng-on .gov-fig { display: none; }
  .eng-on .reassemble { display: block; height: 110vh; }
}

/* =================================================================== Glass, grid, tags */
.glass { border: 1px solid var(--hair); border-radius: 20px; background: rgba(12, 22, 32, 0.62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.soon { display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1px solid var(--hair-2); border-radius: 999px; font: 500 10px/1.5 var(--f-m); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); vertical-align: 2px; }
.wk-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; font-size: 15px; color: var(--night-muted); }
.wk-soon .soon { margin-left: 0; }
.wk-soon .more { min-height: 44px; color: var(--bone); }
.checks { display: grid; gap: 6px; margin: 2px 0 4px; font-size: 13px; color: var(--night-muted); }
.checks li { position: relative; padding-left: 22px; opacity: 0.45; transition: opacity 300ms var(--ease), color 300ms var(--ease); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--night-muted); }
.checks li.ok { opacity: 1; color: var(--bone); }
.checks li.ok::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 8px rgba(87, 212, 255, 0.6); }
.act.is-approved .act-yes { background: transparent; color: var(--glow); border-color: rgba(127, 222, 255, 0.45); }

/* Swipe rows on touch phones (site.css .swipe): the four steps read as one horizontal
   timeline; the stack parts become small glass cards. */
@media (max-width: 767.98px) and (pointer: coarse) {
  html .swipe > .steps { gap: 0; border: 0; }
  html .swipe .step { padding: 30px 24px 4px 0; border-top: 1px solid var(--hair-2); }
  html .swipe .step-node { left: 0; top: -6px; }
  html .swipe > .parts { border: 0; }
  html .swipe .part a { height: 100%; padding: 16px 18px 18px; border: 1px solid rgba(154, 168, 180, 0.16); border-radius: 16px; background: rgba(12, 22, 32, 0.62); }
}
