/* ═══════════════════════════════════════════════════════════════════════
   SKYRISS AI — design system
   Luxury fintech × biometric technology. Near-black cinema, electric green,
   one light chamber. Space Grotesk display · Inter body · JetBrains Mono data.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0b0706;
  --ink-2: #120c0a;
  --ink-3: #1b120f;
  --line: rgba(233, 199, 191, 0.12);
  --line-2: rgba(233, 199, 191, 0.20);
  --green: #e8a2a0;
  --green-2: #b96a57;
  --green-soft: rgba(232, 162, 160, 0.14);
  --green-glow: rgba(232, 162, 160, 0.38);
  --paper: #f7f1ee;
  --txt: #ffffff;
  --txt-2: #f2f6f4;
  --txt-3: #d6e0db;
  --red: #ff4d5e;
  --disp: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22,.9,.24,1);
  --rail-w: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
#gate { overflow-x: clip; }
::selection { background: var(--green); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button svg, .index__row svg, .chip svg, .pstep__ico svg {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.mono { font-family: var(--mono); letter-spacing: .08em; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #2a1c17; border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

/* faint grid over the dark world */
#gate::before, .term::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(rgba(233,199,191,.022) 1px, transparent 1px) 0 0 / 100% 88px,
    linear-gradient(90deg, rgba(233,199,191,.022) 1px, transparent 1px) 0 0 / 88px 100%;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}

/* cursor aura */
#aura {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(232,162,160,.055) 0%, transparent 62%);
  transform: translate(-50%,-50%);
}
body.aura-on #aura { opacity: 1; }
@media (hover: none) { #aura { display: none; } }

/* ─────────────────────────────────────────────────────────── boot ───── */

#boot {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; transition: opacity .7s var(--ease), visibility .7s;
}
#boot.gone { opacity: 0; visibility: hidden; }
.boot__stage { position: relative; width: clamp(170px, 48vw, 230px); aspect-ratio: 1; }
#fpBoot { width: 100%; height: 100%; }
.boot__scan {
  position: absolute; left: -12%; right: -12%; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 18px var(--green-glow);
  animation: bootscan 1.6s var(--ease) infinite;
}
@keyframes bootscan { 0% { top: 4%; opacity: 0 } 12% { opacity: 1 } 88% { opacity: 1 } 100% { top: 96%; opacity: 0 } }
.boot__word { font-family: var(--disp); font-weight: 700; font-size: clamp(17px, 5vw, 24px); letter-spacing: .22em; padding-left: .22em; color: #fff; }
.boot__word span { background: linear-gradient(95deg, #b96a57, #e8a2a0 40%, #d8948b 75%, #9b5848); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot__line { width: clamp(220px, 66vw, 300px); height: 3px; border-radius: 3px; background: rgba(233,199,191,.16); overflow: hidden; }
.boot__line i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--green); box-shadow: 0 0 14px var(--green-glow); transition: width .2s linear; }
.boot__pct { font-family: var(--disp); font-weight: 700; font-size: 17px; letter-spacing: .22em; color: var(--green); text-shadow: 0 0 16px var(--green-glow); }
.boot__tag { font-size: clamp(9px, 2.6vw, 11px); color: #ffffff; letter-spacing: .28em; text-align: center; padding: 0 16px; }

/* ─────────────────────────────────────────────────────────── bar ────── */

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px); height: 74px;
  background: linear-gradient(180deg, rgba(11,7,6,.92), rgba(11,7,6,0));
  backdrop-filter: blur(2px);
}
.bar__brand { display: flex; align-items: center; gap: 11px; }
.bar__mark svg { width: 28px; height: 28px; }
.bar__word { font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: #fff; white-space: nowrap; }
.bar__word b { background: linear-gradient(95deg, #b96a57, #e8a2a0 40%, #d8948b 75%, #9b5848); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar__mid { font-size: 10px; color: #ffffff; display: flex; gap: 8px; align-items: center; }
.bar__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.bar__right { display: flex; align-items: center; gap: 18px; }
.bar__menu { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; color: #fff; padding: 8px 4px; }
.bar__menu-ico { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bar__menu i { width: 24px; height: 2px; border-radius: 2px; background: currentColor; display: block; transition: transform .35s var(--ease), width .35s; }
.bar__menu i + i { width: 15px; }
.bar__menu:hover { color: var(--green); }
.bar__menu:hover i + i { width: 24px; }
body.mega-open .bar__menu i:first-of-type { transform: translateY(4px) rotate(45deg); width: 22px; }
body.mega-open .bar__menu i + i { transform: translateY(-4px) rotate(-45deg); width: 22px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--disp); font-weight: 600; letter-spacing: .14em; font-size: 12px;
  padding: 13px 22px; border-radius: 3px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: linear-gradient(100deg, #874233, #d8948b 30%, #9b5848 52%, #e8a2a0 78%, #874233); color: #fff; text-shadow: 0 1px 2px rgba(60,15,8,.45); box-shadow: 0 0 0 rgba(232,162,160,0); }
.btn--solid:hover { box-shadow: 0 6px 34px var(--green-glow); }
.btn--line { border: 1px solid var(--line-2); color: var(--txt); background: rgba(233,199,191,.02); }
.btn--line:hover { border-color: var(--green); color: var(--green); }
.btn--lg { padding: 17px 28px; font-size: 13px; }
.btn--xl { padding: 20px 36px; font-size: 15px; }
.btn--sm { padding: 9px 14px; font-size: 11px; }
.btn--danger { border-color: rgba(255,77,94,.4); color: var(--red); }
.btn--danger:hover { border-color: var(--red); color: var(--red); background: rgba(255,77,94,.06); }

/* ─────────────────────────────────────────────────────────── mega ───── */

#mega {
  position: fixed; inset: 0; z-index: 55; background: rgba(11,7,6,.97);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 8vw, 120px);
  clip-path: inset(0 0 100% 0); transition: clip-path .65s var(--ease);
}
body.mega-open #mega { clip-path: inset(0 0 0% 0); }
.mega__inner { display: flex; flex-direction: column; gap: 4px; }
.mega__link {
  display: flex; align-items: baseline; gap: 26px; padding: 18px 0; cursor: pointer;
  font-family: var(--disp); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(38px, 7vw, 84px); color: var(--txt);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s, padding-left .3s var(--ease);
}
body.mega-open .mega__link { opacity: 1; transform: none; }
body.mega-open .mega__link:nth-child(1) { transition-delay: .12s }
body.mega-open .mega__link:nth-child(2) { transition-delay: .2s }
body.mega-open .mega__link:nth-child(3) { transition-delay: .28s }
body.mega-open .mega__link:nth-child(4) { transition-delay: .36s }
.mega__link em { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--green); }
.mega__link span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--txt-3); margin-left: auto; text-transform: uppercase; }
.mega__link:hover { color: var(--green); padding-left: 16px; }
.mega__foot { position: absolute; bottom: 34px; left: clamp(24px,8vw,120px); font-size: 10px; color: var(--txt-3); letter-spacing: .25em; }

/* ─────────────────────────────────────────────────────────── hero ───── */

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; z-index: 2; }
.hero__grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 4vw;
  padding: 120px clamp(18px, 4vw, 44px) 20px;
  max-width: 1560px; width: 100%; margin: 0 auto;
}
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; color: var(--green); margin-bottom: 30px; }
.hero__eyebrow .tick { width: 34px; height: 1px; background: var(--green); box-shadow: 0 0 10px var(--green-glow); }
.hero__h { font-family: var(--disp); font-weight: 700; font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -.01em; }
.hero__l { display: block; }
.hero__l--green {
  background: linear-gradient(95deg, #b96a57, #e8a2a0 28%, #9b5848 52%, #d8948b 74%, #e8a2a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(232,162,160,.35));
}
.hero__sub { max-width: 500px; color: var(--txt-2); font-size: 16px; line-height: 1.65; margin-top: 28px; }
.hero__cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 14px; align-items: center; margin-top: 44px; font-size: 10px; letter-spacing: .22em; color: var(--txt-3); flex-wrap: wrap; }
.hero__meta i { color: var(--green); font-style: normal; }

.hero__stage { position: relative; aspect-ratio: 1; max-height: 72vh; margin: 0 auto; width: min(100%, 620px); }
#fpHero { width: 100%; height: 100%; cursor: crosshair; }
.hero__halo {
  position: absolute; inset: -4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,162,160,.07) 0%, transparent 60%);
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo { 0%,100% { transform: scale(1); opacity: .8 } 50% { transform: scale(1.06); opacity: 1 } }
.hero__readout {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .3em; color: var(--txt-3); white-space: nowrap;
}
.hero__base { position: relative; z-index: 2; }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(7,12,15,.6); }
.ticker__track { display: flex; gap: 0; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: flex; align-items: center; gap: 10px; padding: 13px 26px; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.tk b { color: var(--txt); font-weight: 500; }
.tk span { color: var(--txt-3); }
.tk .up { color: var(--green); }
.tk .dn { color: var(--red); }

/* ────────────────────────────────────────────────────── sections ────── */

.sect__head { max-width: 1560px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px) 60px; position: relative; z-index: 2; }
.sect__no { color: var(--green); font-size: 12px; letter-spacing: .3em; }
.sect__h { font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 5vw, 68px); letter-spacing: .01em; margin-top: 12px; }
.sect__sub { color: var(--txt-2); max-width: 560px; margin-top: 16px; line-height: 1.6; font-size: 15px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────────────────────────────────────────────── protocol ─────── */

.protocol { padding: 130px 0 150px; position: relative; z-index: 2; }
.proto__rail { max-width: 1560px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px); position: relative; }
.proto__line { position: absolute; top: 34px; left: clamp(18px,4vw,44px); right: clamp(18px,4vw,44px); height: 1px; background: var(--line); }
.proto__line i { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 14px var(--green-glow); transition: width .2s linear; }
.proto__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; position: relative; }
.pstep { padding-top: 66px; position: relative; }
.pstep::before {
  content: ''; position: absolute; top: 28px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--ink); transition: .4s;
}
.pstep.in::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 16px var(--green-glow); }
.pstep__ico { width: 52px; height: 52px; color: var(--green); margin-bottom: 20px; opacity: .9; }
.pstep__ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.pstep b { font-family: var(--disp); letter-spacing: .18em; font-size: 15px; display: block; margin-bottom: 10px; }
.pstep span { color: var(--txt-2); font-size: 13px; line-height: 1.6; display: block; max-width: 220px; }
.pstep .scanline { animation: scanmove 2.6s ease-in-out infinite; }
@keyframes scanmove { 0%,100% { transform: translateY(-8px) } 50% { transform: translateY(8px) } }

/* ───────────────────────────────────────────────────── exchange ─────── */

.exchange { padding: 120px 0 160px; position: relative; z-index: 2;
  background: radial-gradient(70% 60% at 50% 45%, rgba(232,162,160,.045), transparent 70%); }
.exchange__status { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .26em; color: var(--txt-3); }
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; animation: blink 2.2s infinite; }
.livedot.off { background: var(--txt-3); box-shadow: none; animation: none; }
.livedot.busy { background: #ffd166; box-shadow: 0 0 10px #ffd166; }

.chamber {
  max-width: 1460px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px);
  display: grid; grid-template-columns: minmax(150px,.6fr) minmax(0,1.9fr) minmax(150px,.6fr);
  gap: clamp(18px, 3vw, 54px); align-items: start; position: relative; z-index: 2;
}
.chamber__coltitle { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .3em; color: var(--txt-3); padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.chamber__coltitle span { color: var(--green); }
.assetlist { display: flex; flex-direction: column; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.asset {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 4px 12px;
  text-align: left; padding: 13px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding-left .25s var(--ease); position: relative;
}
.asset__sym {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; color: var(--txt-2); transition: .3s;
}
.asset b { font-family: var(--disp); font-size: 14px; letter-spacing: .12em; }
.asset span { font-size: 11px; color: var(--txt-3); }
.asset:hover { background: rgba(232,162,160,.03); padding-left: 14px; }
.asset.on { background: linear-gradient(90deg, rgba(232,162,160,.08), transparent); }
.asset.on .asset__sym { border-color: var(--green); color: var(--green); box-shadow: 0 0 16px rgba(232,162,160,.25); }
.asset.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--green); box-shadow: 0 0 12px var(--green-glow); }

.chamber__core, .chamber__col { min-width: 0; }
.chamber__core { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.amount { width: 100%; text-align: center; }
.amount label { font-size: 10px; letter-spacing: .32em; color: var(--txt-3); }
.amount__row { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 6px; }
.amount__sym { font-family: var(--disp); font-size: clamp(22px, 3vw, 34px); color: var(--green); }
#amountInput {
  background: none; border: 0; outline: 0; color: var(--txt);
  font-family: var(--disp); font-weight: 700; font-size: clamp(44px, 5.4vw, 76px);
  width: min(100%, 480px); text-align: center; caret-color: var(--green);
  border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s;
}
#amountInput:focus { border-color: var(--green); }

.core__visual { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; width: 100%; position: relative; margin: 6px 0; }
.core__beam { width: 100%; min-width: 0; height: 12px; overflow: visible; }
.core__beam path { fill: none; stroke-width: 1.4; }
.beam__base { stroke: var(--line-2); }
.beam__pulse {
  stroke: var(--green); stroke-dasharray: 26 94; stroke-dashoffset: 120;
  filter: drop-shadow(0 0 6px var(--green)); opacity: 0;
}
.flowing .beam__pulse { opacity: 1; animation: beam 1.1s linear infinite; }
.core__beam--r .beam__pulse { animation-delay: .18s; }
@keyframes beam { to { stroke-dashoffset: 0; } }
.core__print { position: relative; width: clamp(190px, 22vw, 280px); aspect-ratio: 1; }
#fpCore { width: 100%; height: 100%; }
.core__stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .5em; padding-left: .5em; color: var(--green);
  text-shadow: 0 0 18px var(--green-glow);
  opacity: 0; transform: scale(1.5) rotate(-8deg); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.stamped .core__stamp { opacity: 1; transform: scale(1) rotate(-8deg); }
.core__swap {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--ink-2); color: var(--txt-2); display: flex; align-items: center; justify-content: center;
  transition: .3s;
}
.core__swap svg { width: 17px; height: 17px; }
.core__swap:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 18px rgba(232,162,160,.2); }

.result { text-align: center; margin-top: 20px; width: 100%; }
.result__label { font-size: 10px; letter-spacing: .32em; color: var(--txt-3); }
.result__val { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-top: 4px; }
.result__sym { font-family: var(--disp); font-size: clamp(22px,3vw,34px); color: var(--green); }
#resultOut {
  font-family: var(--disp); font-weight: 700; font-size: clamp(48px, 6vw, 88px);
  color: var(--green); text-shadow: 0 0 44px rgba(232,162,160,.3); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.result__rate { margin-top: 10px; font-size: 11px; color: var(--txt-3); letter-spacing: .16em; }

.core__actions { margin-top: 26px; }
.insight {
  margin-top: 26px; width: min(100%, 640px); border: 1px solid var(--line-2);
  background: rgba(7,12,15,.7); padding: 20px 22px; border-radius: 4px; position: relative;
}
.insight::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--green); box-shadow: 0 0 14px var(--green-glow); }
.insight__tag { font-size: 10px; letter-spacing: .24em; color: var(--green); margin-bottom: 10px; }
.insight p { font-size: 14px; line-height: 1.7; color: var(--txt-2); min-height: 20px; }
.insight p .caret { display: inline-block; width: 8px; height: 15px; background: var(--green); vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 2px; }

/* ─────────────────────────────────────────────── intel (light) ──────── */

.intel { background: var(--paper); color: #0a1410; padding: 130px 0 150px; position: relative; z-index: 2; }
.intel .sect__no { color: var(--green-2); }
.intel .sect__sub { color: #55665e; }
.index { max-width: 1560px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px); }
.index__row {
  width: 100%; display: grid; grid-template-columns: 60px minmax(220px, .8fr) 1.4fr 40px;
  align-items: center; gap: 20px; text-align: left;
  padding: 30px 10px; border-top: 1px solid rgba(10,20,16,.14);
  transition: background .3s, padding-left .35s var(--ease); position: relative; color: inherit;
}
.index__row:last-of-type { border-bottom: 1px solid rgba(10,20,16,.14); }
.index__row em { font-style: normal; font-size: 12px; color: #7b8d84; transition: color .3s; }
.index__row b { font-family: var(--disp); font-weight: 700; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: .04em; }
.index__row span { color: #55665e; font-size: 14px; line-height: 1.55; }
.index__row svg { width: 26px; height: 26px; justify-self: end; opacity: 0; transform: translateX(-14px); transition: .35s var(--ease); color: var(--green-2); }
.index__row:hover { background: #fff; padding-left: 26px; }
.index__row:hover em { color: var(--green-2); }
.index__row:hover svg { opacity: 1; transform: none; }

.numbers {
  max-width: 1560px; margin: 90px auto 0; padding: 0 clamp(18px,4vw,44px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.num b {
  display: block; font-family: var(--disp); font-weight: 700;
  font-size: clamp(44px, 5.6vw, 84px); letter-spacing: -.02em; color: #0a1410;
  font-variant-numeric: tabular-nums;
}
.num span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .26em; color: #7b8d84; }

/* ────────────────────────────────────────────────────────── outro ───── */

.outro { position: relative; padding: 170px 0; overflow: hidden; z-index: 2; }
#fpOutro {
  position: absolute; right: -14%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 820px); height: auto; opacity: .5; pointer-events: none;
}
.outro__inner { max-width: 1560px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px); position: relative; }
.outro__h { font-family: var(--disp); font-weight: 700; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; margin-bottom: 44px; }

.foot { border-top: 1px solid var(--line); padding: 30px clamp(18px,4vw,44px) 44px; display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; position: relative; z-index: 2; }
.foot__brand { letter-spacing: .24em; font-size: 11px; color: #fff; }
.foot__brand b { color: var(--green); }
.foot__risk { max-width: 640px; color: var(--txt-3); font-size: 11.5px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════ TERMINAL ═════ */

#terminal { position: fixed; inset: 0; display: flex; background: var(--ink); z-index: 40; }

.rail {
  width: var(--rail-w); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0 16px; position: relative; z-index: 5; background: var(--ink-2);
}
.rail__logo { width: 42px; height: 42px; margin-bottom: 14px; }
.rail__logo svg, .rail__logo canvas { width: 100%; height: 100%; }
.rail__logo.thinking canvas { filter: drop-shadow(0 0 9px var(--green-glow)); }
@keyframes spin { to { transform: rotate(360deg) } }
.rail__group { display: flex; flex-direction: column; gap: 6px; }
.rail__btn {
  width: 42px; height: 42px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: var(--txt-3); transition: .25s; position: relative;
}
.rail__btn svg { width: 19px; height: 19px; }
.rail__btn:hover { color: var(--green); background: var(--green-soft); }
.rail__btn.active { color: var(--green); background: var(--green-soft); box-shadow: inset 2px 0 0 var(--green); }
.rail__spacer { flex: 1; }
.rail__btn--exit:hover { color: var(--red); background: rgba(255,77,94,.08); }

.term { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }

.hud {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; border-bottom: 1px solid var(--line); position: relative; z-index: 4;
  background: rgba(11,7,6,.8); backdrop-filter: blur(6px);
}
.hud__left { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.hud__sess { font-size: 10px; letter-spacing: .26em; color: var(--green); }
.hud__title { font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.hud__right { display: flex; align-items: center; gap: 16px; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.seg button { font-size: 10px; letter-spacing: .18em; padding: 7px 13px; color: var(--txt-3); transition: .25s; }
.seg button.on { background: linear-gradient(100deg, #874233, #d8948b 30%, #9b5848 52%, #e8a2a0 78%, #874233); color: #fff; font-weight: 700; }
.hud__btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--txt-3); border-radius: 4px; transition: .25s; }
.hud__btn svg { width: 16px; height: 16px; }
.hud__btn:hover { color: var(--green); background: var(--green-soft); }
.hud__link { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .2em; color: var(--txt-3); }

/* stream */
.stream { flex: 1; overflow-y: auto; position: relative; z-index: 2; scroll-behavior: smooth; }
.thread { max-width: 860px; margin: 0 auto; padding: 34px 22px 30px; display: flex; flex-direction: column; gap: 30px; }

.welcome { max-width: 860px; margin: 0 auto; padding: 9vh 22px 30px; }
.welcome.hide { display: none; }
.welcome__print { width: 104px; height: 104px; margin-bottom: 26px; }
.welcome__print svg, .welcome__print canvas { width: 100%; height: 100%; }
.welcome__h { font-family: var(--disp); font-weight: 700; font-size: clamp(38px, 5.5vw, 64px); line-height: .98; }
.welcome__sub { color: var(--txt-2); margin-top: 16px; max-width: 460px; line-height: 1.6; font-size: 15px; }
.welcome__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px;
  border: 1px solid var(--line-2); border-radius: 30px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; color: var(--txt-2); transition: .25s;
}
.chip svg { width: 14px; height: 14px; }
.chip:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); transform: translateY(-2px); }

/* messages — user right chips, AI full blocks with green spine */
.msg { display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.msg.user .msg__bubble {
  max-width: 78%; background: var(--ink-3); border: 1px solid var(--line);
  padding: 13px 17px; border-radius: 12px 12px 3px 12px; font-size: 14.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.msg.user .msg__who { font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: #ffffff; margin-bottom: 7px; }
.msg-media { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; justify-content: flex-end; }
.msg-media img { height: 84px; border-radius: 6px; border: 1px solid var(--line-2); cursor: zoom-in; transition: .25s; }
.msg-media img:hover { border-color: var(--green); transform: scale(1.03); }
.frame-note { display: flex; gap: 7px; align-items: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--txt-3); margin-bottom: 8px; }
.frame-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.msg.assistant .msg__block { position: relative; padding-left: 22px; }
.msg.assistant .msg__block::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--green), rgba(232,162,160,.06));
  box-shadow: 0 0 12px rgba(232,162,160,.25); border-radius: 2px;
}
.msg__who { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em; color: var(--green); margin-bottom: 12px; }
.msg__who .fpmini { width: 18px; height: 18px; filter: drop-shadow(0 0 4px rgba(232,162,160,.5)); }
.msg__who .fpmini svg { width: 100%; height: 100%; animation: spin 12s linear infinite; }

/* thinking */
.thinking { display: flex; align-items: center; gap: 12px; color: var(--txt-3); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; }
.thinking__ring { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--line-2); border-top-color: var(--green); animation: spin 1s linear infinite; }
.thinking__line { transition: opacity .2s; }
.thinking__note {
  margin-top: 12px; padding: 10px 14px; border-radius: 6px;
  border: 1px solid rgba(232,162,160,.25); background: var(--green-soft);
  color: #ffffff; font-size: 12.5px; line-height: 1.55; max-width: 460px;
  animation: toastin .4s var(--ease);
}
.insight__wait { color: #ffffff; }
.skeleton { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.skeleton i { height: 11px; border-radius: 3px; background: linear-gradient(90deg, var(--ink-3) 25%, #241713 50%, var(--ink-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton i:nth-child(1) { width: 88% } .skeleton i:nth-child(2) { width: 70% } .skeleton i:nth-child(3) { width: 55% }
@keyframes shimmer { to { background-position: -200% 0 } }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--green); vertical-align: -2px; animation: blink 1s steps(2) infinite; }

/* markdown */
.md { font-size: 14.5px; line-height: 1.7; color: var(--txt); }
.md p { margin: 10px 0; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--disp); letter-spacing: .06em; margin: 20px 0 10px; text-transform: uppercase; }
.md h3 { font-size: 15px; } .md h4 { font-size: 13.5px; color: var(--txt-2); }
.md code { font-family: var(--mono); font-size: .88em; background: var(--ink-3); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }
.md pre { background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
.md pre code { background: none; border: 0; padding: 0; }
.md ul, .md ol { padding-left: 22px; margin: 10px 0; }
.md li { margin: 5px 0; }
.md blockquote { border-left: 2px solid var(--green); padding: 4px 14px; color: var(--txt-2); margin: 12px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.md a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.md em { color: var(--txt-2); }
.twrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(7,12,15,.85); }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.md th { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-align: left; color: var(--txt-3); padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--ink-3); }
.md td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.md tr:last-child td { border-bottom: 0; }
.md td:last-child { font-family: var(--mono); font-size: 13px; }
.row-entry td { color: var(--txt); } .row-entry td:first-child { color: var(--green); }
.row-stop td:last-child { color: var(--red); }
.row-target td:last-child { color: #2fdd7d; }
.row-rr td:last-child { color: #ffd166; }

/* verdict badges */
.verdict { display: inline-flex; align-items: center; gap: 8px; font-family: var(--disp); letter-spacing: .14em; }
.verdict--lead { font-size: 17px; padding: 8px 14px; border-radius: 4px; margin: 4px 0; }
.verdict--up { color: #2fdd7d; } .verdict--lead.verdict--up { background: rgba(47,221,125,.1); box-shadow: inset 0 0 0 1px rgba(47,221,125,.35); }
.verdict--down { color: var(--red); } .verdict--lead.verdict--down { background: rgba(255,77,94,.1); box-shadow: inset 0 0 0 1px rgba(255,77,94,.35); }
.verdict--flat { color: var(--txt-2); } .verdict--lead.verdict--flat { background: rgba(157,179,168,.08); box-shadow: inset 0 0 0 1px rgba(157,179,168,.3); }

.msg__tools { display: flex; gap: 6px; margin-top: 14px; }
.tool-mini { width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--txt-3); transition: .25s; }
.tool-mini svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-mini:hover, .tool-mini.on { color: var(--green); border-color: var(--green); }

.err-box { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(255,77,94,.4); background: rgba(255,77,94,.06); color: #ffb3ba; border-radius: 6px; padding: 13px 15px; font-size: 13.5px; }
.err-box svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; }

/* deck (composer zone) */
.deck { padding: 6px 22px calc(16px + env(safe-area-inset-bottom)); position: relative; z-index: 4; max-width: 900px; width: 100%; margin: 0 auto; }
.atts { display: flex; gap: 10px; padding: 0 2px 10px; flex-wrap: wrap; }
.att { position: relative; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); }
.att img { width: 100%; height: 100%; object-fit: cover; }
.att.busy::after { content: ''; position: absolute; inset: 0; background: rgba(11,7,6,.6); }
.att__tag { position: absolute; left: 4px; bottom: 4px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; background: rgba(11,7,6,.85); color: var(--green); padding: 2px 5px; border-radius: 3px; }
.att__x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(11,7,6,.85); display: flex; align-items: center; justify-content: center; color: var(--txt-2); }
.att__x svg { width: 9px; height: 9px; }
.att__x:hover { color: var(--red); }

.composer {
  display: flex; align-items: flex-end; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(11,18,20,.85); backdrop-filter: blur(14px);
  padding: 10px 10px 10px 12px;
  transition: border-color .3s, box-shadow .3s;
}
.composer:focus-within { border-color: rgba(232,162,160,.5); box-shadow: 0 0 0 1px rgba(232,162,160,.2), 0 10px 40px rgba(0,0,0,.4); }
.composer__tools { display: flex; gap: 2px; }
.tool { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--txt-3); transition: .25s; position: relative; }
.tool svg { width: 17px; height: 17px; }
.tool:hover { color: var(--green); background: var(--green-soft); }
.tool.active { color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(232,162,160,.4); }
.tool.unavailable { opacity: .35; }
.tool-btn__pc { position: absolute; top: -4px; right: -4px; font-family: var(--mono); font-size: 7px; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 3px; color: var(--txt-3); }
#input {
  flex: 1; background: none; border: 0; outline: 0; resize: none;
  color: var(--txt); font-family: var(--body); font-size: 14.5px; line-height: 1.55;
  max-height: 210px; padding: 9px 2px;
}
#input::placeholder { color: var(--txt-3); }
.send {
  width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(100deg, #874233, #d8948b 30%, #9b5848 52%, #e8a2a0 78%, #874233); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: .25s; flex: none;
}
.send svg { width: 18px; height: 18px; }
.send:disabled { background: var(--ink-3); color: var(--txt-3); cursor: default; }
.send:not(:disabled):hover { box-shadow: 0 4px 24px var(--green-glow); }
.send__stop { display: none; width: 13px; height: 13px; border-radius: 3px; background: #fff; }
.send.streaming { background: var(--red); color: #fff; }
.send.streaming .send__arrow { display: none; }
.send.streaming .send__stop { display: block; background: #fff; animation: blink 1.2s infinite; }
.deck__hint { text-align: center; font-size: 9px; letter-spacing: .3em; color: var(--txt-3); padding-top: 9px; }

/* rec strip + call bar */
.recstrip, .callbar {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-2);
  border-radius: 12px; background: rgba(11,18,20,.9); padding: 10px 16px; margin-bottom: 10px;
}
.recstrip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.wave i { width: 3px; height: 15%; background: var(--green); border-radius: 2px; transition: height .1s; }
.recstrip__btn { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--txt-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px; transition: .25s; }
.recstrip__btn:hover { color: var(--txt); border-color: var(--txt-3); }
.recstrip__btn--go { color: var(--green); border-color: rgba(232,162,160,.4); }
.recstrip__btn--go:hover { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.callbar__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); position: relative; }
.callbar__pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--green); animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { from { transform: scale(.5); opacity: 1 } to { transform: scale(1.6); opacity: 0 } }
#callStatus { flex: 1; font-size: 11px; letter-spacing: .14em; color: var(--txt-2); }

/* panels */
.panel {
  position: fixed; top: 0; bottom: 0; width: min(340px, 88vw); z-index: 70;
  background: var(--ink-2); border-right: 1px solid var(--line-2);
  transform: translateX(-130%); visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
  display: flex; flex-direction: column;
}
.panel--left { left: var(--rail-w); }
.panel--right { right: 0; left: auto; border-right: 0; border-left: 1px solid var(--line-2); transform: translateX(130%); }
.panel.open { transform: none; visibility: visible; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.panel__head b { font-family: var(--disp); letter-spacing: .3em; font-size: 12px; }
.panel__x { color: var(--txt-3); font-size: 14px; padding: 4px 8px; }
.panel__x:hover { color: var(--txt); }
.panel__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
#panelScrim { position: fixed; inset: 0; z-index: 65; background: rgba(11,7,6,.6); backdrop-filter: blur(2px); }

.chat-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 13px 14px; border: 1px solid transparent; border-radius: 6px; transition: .25s;
}
.chat-item__t { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt-2); }
.chat-item:hover { background: var(--ink-3); }
.chat-item:hover .chat-item__t { color: var(--txt); }
.chat-item.active { border-color: rgba(232,162,160,.35); background: var(--green-soft); }
.chat-item.active .chat-item__t { color: var(--green); }
.chat-item__x { color: var(--txt-3); opacity: 0; transition: .2s; }
.chat-item__x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chat-item:hover .chat-item__x { opacity: 1; }
.chat-item__x:hover { color: var(--red); }
.panel__empty { padding: 12px; font-size: 12.5px; color: var(--txt-3); }

.set { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px; font-size: 13px; color: var(--txt-2); }
.set select {
  background: var(--ink-3); color: var(--txt); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 10px 12px; font-family: var(--mono); font-size: 12px; outline: none;
}
.set select:focus { border-color: var(--green); }
.set__note { font-size: 9.5px; letter-spacing: .12em; color: var(--txt-3); line-height: 1.7; padding: 8px 4px; }

/* dock */
.dock {
  position: fixed; right: 22px; bottom: 96px; z-index: 80; width: 300px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55); overflow: hidden;
}
.dock.pip { position: static; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.dock__head { display: flex; align-items: center; gap: 8px; padding: 9px 10px; cursor: grab; border-bottom: 1px solid var(--line); }
.dock__live { display: flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .2em; color: var(--red); }
.dock__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
.dock__label { flex: 1; font-size: 11px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__btn { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--txt-3); border-radius: 4px; }
.dock__btn svg { width: 12px; height: 12px; }
.dock__btn:hover { color: var(--txt); background: var(--ink-3); }
.dock__btn--x:hover { color: var(--red); }
#shareVideo { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.dock.min #shareVideo, .dock.min .dock__row, .dock.min .dock__next { display: none; }
.dock__row { display: flex; align-items: center; gap: 10px; padding: 10px; }
.dock__auto { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .16em; color: var(--txt-2); cursor: pointer; }
.dock__auto input { accent-color: var(--green); }
.dock__int { background: var(--ink-3); color: var(--txt); border: 1px solid var(--line-2); border-radius: 5px; padding: 6px 8px; font-size: 10px; outline: none; }
.dock__next { padding: 0 12px 10px; font-size: 9px; letter-spacing: .14em; color: var(--green); min-height: 14px; }

/* veil transition */
#veil {
  position: fixed; inset: 0; z-index: 150; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  clip-path: circle(0% at 50% 50%); pointer-events: none;
  transition: clip-path .65s var(--ease);
}
#veil.on { clip-path: circle(140% at 50% 50%); pointer-events: all; }
#veilMark { width: 130px; height: 130px; opacity: 0; transition: opacity .3s; }
#veilMark svg { width: 100%; height: 100%; animation: spin 2.6s linear infinite; }
#veil.on #veilMark { opacity: 1; }

/* dropzone / toasts / lightbox */
#dropzone {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  background: rgba(11,7,6,.82); backdrop-filter: blur(6px);
}
#dropzone.on { display: flex; }
.dropzone__in {
  border: 1px dashed var(--green); border-radius: 14px; padding: 60px 80px;
  color: var(--green); letter-spacing: .3em; font-size: 13px; box-shadow: 0 0 60px rgba(232,162,160,.15) inset;
}
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 160; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; gap: 10px; align-items: center; background: var(--ink-2); border: 1px solid var(--line-2);
  color: var(--txt); padding: 11px 16px; border-radius: 8px; font-size: 12.5px; max-width: 480px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: toastin .35s var(--ease);
}
.toast svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; }
.toast.err svg { stroke: var(--red); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px) } }
.lightbox { position: fixed; inset: 0; z-index: 170; background: rgba(11,7,6,.92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* ─────────────────────────────────────────────────────── responsive ─── */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 108px; gap: 10px; }
  .hero__stage { width: min(78vw, 420px); order: -1; margin-bottom: 6px; }
  .hero__readout { display: none; }
  .proto__steps { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .proto__line { display: none; }
  .pstep { padding-top: 0; } .pstep::before { display: none; }
  .chamber { grid-template-columns: 1fr; }
  .chamber__col:first-child { order: 1; }
  .chamber__core { order: 2; }
  .chamber__col:last-child { order: 3; }
  .assetlist { flex-direction: row; overflow-x: auto; max-height: none; gap: 8px; padding-bottom: 8px; }
  .asset { flex: none; border: 1px solid var(--line); border-radius: 8px; grid-template-columns: 34px 1fr; padding: 10px 12px; }
  .asset span { display: none; }
  .asset__sym { width: 32px; height: 32px; font-size: 12px; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .index__row { grid-template-columns: 40px 1fr 30px; }
  .index__row span { grid-column: 2; }
  .bar__mid { display: none; }
}
@media (max-width: 720px) {
  /* ── top bar: brand, menu and ENTER TERMINAL always visible ── */
  .bar { height: 60px; padding: 0 12px; gap: 8px; background: rgba(11,7,6,.94); }
  .bar__brand { gap: 8px; flex: none; }
  .bar__mark svg { width: 21px; height: 21px; }
  .bar__word { font-size: 11px; letter-spacing: .1em; }
  .bar__right { gap: 10px; flex: none; }
  .bar__menu { gap: 7px; }
  .bar__menu span { display: none; }           /* icon-only menu, always on screen */
  .bar__menu i { width: 22px; } .bar__menu i + i { width: 14px; }
  .bar__right .btn--solid { padding: 10px 13px; font-size: 10px; letter-spacing: .08em; }
  .bar__right .btn--solid svg { display: none; }

  /* ── hero ── */
  .hero__grid { padding: 84px 16px 16px; gap: 8px; }
  .hero__stage { width: min(86vw, 350px); }
  .hero__eyebrow { margin-bottom: 18px; font-size: 9.5px; letter-spacing: .22em; }
  .hero__h { font-size: clamp(38px, 11.5vw, 54px); }
  .hero__sub { font-size: 14.5px; margin-top: 20px; }
  .hero__cta { flex-direction: column; margin-top: 26px; gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { margin-top: 26px; gap: 8px; font-size: 8.5px; letter-spacing: .16em; }
  .tk { padding: 11px 16px; font-size: 10px; }

  /* ── sections ── */
  .sect__head { padding-bottom: 40px; }
  .protocol { padding: 84px 0 90px; }
  .proto__steps { grid-template-columns: 1fr; gap: 30px; }
  .pstep span { max-width: none; }
  .exchange { padding: 84px 0 100px; }
  .intel { padding: 84px 0 100px; }
  .numbers { margin-top: 56px; }
  .num b { font-size: clamp(38px, 12vw, 54px); }
  .index__row { padding: 22px 6px; gap: 10px 14px; }
  .outro { padding: 100px 0; }
  .outro__h { margin-bottom: 30px; }
  #fpOutro { right: -40%; opacity: .3; }
  .mega__link span { display: none; }
  .mega__link { font-size: clamp(32px, 10vw, 48px); gap: 16px; padding: 14px 0; }

  /* ── exchange chamber ── */
  .chamber { gap: 18px; }
  #amountInput { font-size: clamp(38px, 12vw, 56px); }
  #resultOut { font-size: clamp(40px, 13vw, 60px); }
  .core__print { width: min(52vw, 210px); }
  .core__swap { bottom: -18px; width: 38px; height: 38px; }
  .insight { padding: 16px; }
  .core__actions { margin-top: 20px; }

  /* ── terminal ── */
  .rail { position: fixed; left: 0; top: 0; bottom: 0; }
  .term { margin-left: var(--rail-w); }
  .hud { padding: 0 12px; height: 52px; }
  .hud__sess { display: none; }
  .hud__title { font-size: 12px; }
  .seg { display: none; }
  .hud__link span:last-child { display: none; }
  .welcome { padding-top: 5vh; }
  .welcome__print { width: 84px; height: 84px; margin-bottom: 18px; }
  .welcome__h { font-size: clamp(32px, 10.5vw, 44px); }
  .welcome__sub { font-size: 14px; }
  .welcome__chips { margin-top: 24px; gap: 8px; }
  .chip { padding: 10px 13px; font-size: 9.5px; }
  .thread { padding: 22px 14px 20px; gap: 24px; }
  .msg.user .msg__bubble { max-width: 92%; font-size: 14px; }
  .msg.assistant .msg__block { padding-left: 14px; }
  .deck { padding-left: 10px; padding-right: 10px; }
  .composer { padding: 8px; gap: 6px; border-radius: 12px; }
  .composer__tools { flex-wrap: nowrap; max-width: none; gap: 0; }
  .tool { width: 34px; height: 34px; border-radius: 8px; }
  .tool svg { width: 15px; height: 15px; }
  #input { font-size: 16px; padding: 7px 2px; }   /* ≥16px stops iOS auto-zoom */
  .send { width: 40px; height: 40px; border-radius: 9px; }
  .deck__hint { font-size: 8px; letter-spacing: .2em; }
  .panel--left { left: 0; }
  .panel { width: min(320px, 86vw); }
  .dock { right: 10px; left: 10px; width: auto; bottom: 108px; }
  .foot { padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
