/* ═══════════════════════════════════════════════════════════
   ACTIVELY BLACK — FLEET OPERATIONS GUIDE
   Obsidian luxe. Black is the room; each agent brings their own light.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #070708;
  --ink-2: #0d0d10;
  --ink-3: #131318;
  --line: rgba(232, 193, 90, 0.14);
  --line-soft: rgba(244, 239, 230, 0.08);
  --gold: #e8c15a;
  --gold-deep: #c9963b;
  --gold-pale: #f5d78e;
  --paper: #f4efe6;
  --paper-dim: rgba(244, 239, 230, 0.62);
  --paper-faint: rgba(244, 239, 230, 0.38);

  /* agent accents */
  --frankie: #e8c15a;
  --shuri:   #46c9b4;
  --ava:     #ee977f;
  --spike:   #f0563c;
  --accent:  var(--gold);     /* current section accent, overridden per-agent */

  --display: "Clash Display", Georgia, serif;
  --body: "General Sans", -apple-system, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --serif-i: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--ink); }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
em { font-style: italic; font-family: var(--serif-i); }
a { color: inherit; text-decoration: none; }

/* ── Custom cursor ─────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
  .cur-dot {
    position: fixed; z-index: 300; pointer-events: none;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); left: 0; top: 0;
    transform: translate(-50%, -50%); mix-blend-mode: difference;
  }
  .cur-ring {
    position: fixed; z-index: 299; pointer-events: none;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(232, 193, 90, 0.5); left: 0; top: 0;
    transform: translate(-50%, -50%);
    transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, background .3s;
  }
  .cur-ring.is-hot { width: 56px; height: 56px; border-color: var(--gold); background: rgba(232,193,90,.08); }
}
@media not ((hover: hover) and (pointer: fine)) { .cur-dot, .cur-ring { display: none; } }

/* ── Atmosphere ────────────────────────────────────────────── */
.atmo { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.atmo-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; will-change: transform; }
.atmo-glow--a { width: 56vw; height: 56vw; top: -18vw; right: -16vw;
  background: radial-gradient(circle, rgba(201,150,59,.16), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate; }
.atmo-glow--b { width: 44vw; height: 44vw; bottom: -14vw; left: -12vw;
  background: radial-gradient(circle, rgba(70,201,180,.07), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-6vw, 8vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(7vw, -6vh) scale(1.08); } }
.atmo-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(244,239,230,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(244,239,230,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%); }
#dust { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .6; }
.grain { position: fixed; inset: 0; z-index: 280; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vignette { position: fixed; inset: 0; z-index: 270; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(0,0,0,.7); }

/* ── HUD ───────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.hud-c { position: absolute; width: 22px; height: 22px; border: 1px solid var(--line); }
.hud-c--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud-c--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud-c--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud-c--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.hud-meta { position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .18em; color: var(--paper-faint); display: flex; gap: 9px; }
.hud-sep { color: var(--gold-deep); }

/* ── Boot ──────────────────────────────────────────────────── */
.boot { position: fixed; inset: 0; z-index: 400; background: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: opacity .7s var(--ease); }
.boot.is-gone { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; width: min(440px, 84vw); }
.boot-mark { font-family: var(--display); font-weight: 700; font-size: 58px; color: var(--gold);
  letter-spacing: .04em; margin-bottom: 26px; animation: pulse-mark 2s ease-in-out infinite; }
@keyframes pulse-mark { 50% { opacity: .55; text-shadow: 0 0 28px rgba(232,193,90,.5); } }
.boot-lines { font-family: var(--mono); font-size: 11.5px; color: var(--paper-dim); text-align: left;
  min-height: 92px; letter-spacing: .04em; line-height: 1.9; }
.boot-lines .ok { color: var(--shuri); }
.boot-bar { height: 2px; background: rgba(244,239,230,.1); margin: 22px 0 10px; overflow: hidden; }
.boot-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-pale)); }
.boot-pct { font-size: 11px; color: var(--gold); letter-spacing: .2em; }
.boot-skip { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-faint); margin-top: 20px; }

/* ── Rail ──────────────────────────────────────────────────── */
.rail { position: fixed; left: 30px; top: 50%; transform: translateY(-50%); z-index: 130;
  display: flex; flex-direction: column; gap: 18px; }
.rail-line { position: absolute; left: 3px; top: -6px; bottom: -6px; width: 1px; background: rgba(244,239,230,.1); }
.rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--gold); }
.rail-dot { position: relative; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(244,239,230,.22); transition: all .3s var(--ease); }
.rail-dot span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--paper-faint);
  white-space: nowrap; opacity: 0; transition: opacity .3s; text-transform: uppercase; }
.rail-dot:hover span, .rail-dot.is-active span { opacity: 1; }
.rail-dot.is-active { background: var(--gold); box-shadow: 0 0 0 4px rgba(232,193,90,.16); }
@media (max-width: 920px) { .rail { display: none; } }

.topbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130; background: transparent; }
.topbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
@media (min-width: 921px) { .topbar { display: none; } }

.next-pill { position: fixed; right: 26px; bottom: 26px; z-index: 130;
  display: flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 40px;
  background: rgba(13,13,16,.72); border: 1px solid var(--line); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(10px); transition: all .3s var(--ease); }
.next-pill:hover { border-color: var(--gold); color: var(--gold); }
.next-pill-arrow { transition: transform .3s; }
.next-pill:hover .next-pill-arrow { transform: translateY(3px); }
@media (max-width: 700px) { .next-pill { bottom: 16px; right: 16px; padding: 9px 13px; } }

/* ── Shared chapter shell ──────────────────────────────────── */
main { position: relative; z-index: 1; }
.chapter { max-width: 1140px; margin: 0 auto; padding: 12vh 7vw; position: relative; }
.ch-head { position: relative; margin-bottom: 6vh; max-width: 760px; }
.ch-ghost { position: absolute; top: -7vh; left: -1vw; font-family: var(--display); font-weight: 700;
  font-size: clamp(120px, 22vw, 260px); color: rgba(244,239,230,.025); z-index: -1; line-height: .8; pointer-events: none; }
.ch-kicker { font-size: 11px; letter-spacing: .28em; color: var(--gold); margin-bottom: 20px; }
.ch-title { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04; letter-spacing: -.01em; }
.ch-lede { margin-top: 22px; font-size: clamp(16px, 2vw, 19px); color: var(--paper-dim); max-width: 640px; }

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

/* glow-track hover sheen */
.glow-track { position: relative; overflow: hidden; }
.glow-track::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0;
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  transition: opacity .4s; pointer-events: none; filter: blur(10px); mix-blend-mode: screen; }
.glow-track:hover::before { opacity: .1; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; max-width: 1180px; margin: 0 auto; padding: 12vh 7vw 8vh; }
.hero-inner { width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .22em; color: var(--paper-dim); margin-bottom: 26px; }
.eyebrow-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--shuri);
  box-shadow: 0 0 0 0 rgba(70,201,180,.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(70,201,180,.5); } 70% { box-shadow: 0 0 0 9px rgba(70,201,180,0); } }
.hero-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 9vw, 116px);
  line-height: .96; letter-spacing: -.02em; }
.hero-line { display: block; overflow: hidden; }
.hero-line--gold { color: var(--gold); }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 2.3vw, 22px); color: var(--paper-dim); max-width: 600px; }
.hero-meta { margin-top: 22px; font-size: 11px; letter-spacing: .14em; color: var(--paper-faint); }

.fleet-strip { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.fleet-chip { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 18px 13px;
  background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 14px; min-width: 116px;
  transition: all .35s var(--ease); }
.fleet-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--c); filter: grayscale(.3); transition: filter .35s; }
.fleet-chip-n { font-family: var(--display); font-weight: 600; font-size: 16px; }
.fleet-chip-r { font-size: 9px; letter-spacing: .14em; color: var(--paper-faint); }
.fleet-chip:hover { transform: translateY(-5px); border-color: var(--c); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.fleet-chip:hover img { filter: grayscale(0); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; }
.stat { display: flex; flex-direction: column; }
.stat-n { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 50px); color: var(--gold); line-height: 1; }
.stat-l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-faint); margin-top: 8px; }
.hero-cta { display: inline-flex; align-items: center; gap: 11px; margin-top: 46px; padding: 15px 28px;
  border: 1px solid var(--gold); border-radius: 40px; color: var(--gold); font-weight: 500; letter-spacing: .02em;
  transition: all .35s var(--ease); }
.hero-cta:hover { background: var(--gold); color: var(--ink); }
.cta-arrow { transition: transform .3s; }
.hero-cta:hover .cta-arrow { transform: translateY(3px); }

/* ── Ticker ────────────────────────────────────────────────── */
.ticker { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 16px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; align-items: center; gap: 26px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em; color: var(--paper-dim); animation: tick 32s linear infinite; }
.ticker-track i { color: var(--gold-deep); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── ORG ───────────────────────────────────────────────────── */
.org { margin-top: 2vh; }
.org-center { display: flex; flex-direction: column; align-items: center; }
.org-stem { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); margin-top: 6px; }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 6px; }
.agent-node { text-align: center; padding: 26px 20px; background: var(--ink-2);
  border: 1px solid var(--line-soft); border-radius: 16px; transition: all .4s var(--ease); --accent: var(--gold); }
.agent-node[data-agent="frankie"] { --accent: var(--frankie); }
.agent-node[data-agent="shuri"]   { --accent: var(--shuri); }
.agent-node[data-agent="ava"]     { --accent: var(--ava); }
.agent-node[data-agent="spike"]   { --accent: var(--spike); }
.agent-node img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
  border: 2px solid var(--accent); filter: grayscale(.25); transition: filter .4s; }
.agent-node h3 { font-family: var(--display); font-weight: 600; font-size: 22px; }
.agent-node-role { font-size: 9.5px; letter-spacing: .18em; color: var(--accent); margin-top: 5px; }
.agent-node-desc { font-size: 13px; color: var(--paper-dim); margin-top: 11px; line-height: 1.5; }
.agent-node-faces { font-size: 10px; letter-spacing: .06em; color: var(--paper-faint); margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--line-soft); }
.org-center .agent-node { max-width: 320px; }
.agent-node:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.agent-node:hover img { filter: grayscale(0); }
.org-foot { text-align: center; margin-top: 34px; font-size: 10px; letter-spacing: .2em; color: var(--paper-faint); }
@media (max-width: 760px) { .org-row { grid-template-columns: 1fr; } }

/* ── AGENT SELECTOR + PANELS ───────────────────────────────── */
.selector { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.sel-tab { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 40px;
  background: var(--ink-2); border: 1px solid var(--line-soft); color: var(--paper-dim);
  font-family: var(--display); font-weight: 500; font-size: 15px; transition: all .3s var(--ease); }
.sel-tab img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; filter: grayscale(.6); transition: filter .3s; }
.sel-tab[data-agent="frankie"] { --a: var(--frankie); }
.sel-tab[data-agent="shuri"]   { --a: var(--shuri); }
.sel-tab[data-agent="ava"]     { --a: var(--ava); }
.sel-tab[data-agent="spike"]   { --a: var(--spike); }
.sel-tab:hover { color: var(--paper); border-color: var(--a); }
.sel-tab:hover img { filter: grayscale(0); }
.sel-tab.is-active { background: var(--a); color: var(--ink); border-color: var(--a); }
.sel-tab.is-active img { filter: grayscale(0); border: 2px solid rgba(7,7,8,.3); }

.panels { position: relative; }
.panel { display: none; }
.panel.is-active { display: block; animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } }
.panel[data-agent="frankie"] { --accent: var(--frankie); }
.panel[data-agent="shuri"]   { --accent: var(--shuri); }
.panel[data-agent="ava"]     { --accent: var(--ava); }
.panel[data-agent="spike"]   { --accent: var(--spike); }
.panel-grid { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.panel-portrait { position: sticky; top: 80px; }
.pp-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.pp-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pp-frame::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,8,.7), transparent 55%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.pp-scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7;
  animation: scan 4.5s var(--ease) infinite; }
@keyframes scan { 0%,100% { top: 4%; } 50% { top: 96%; } }
.pp-tag { position: absolute; bottom: 14px; left: 16px; z-index: 3; font-size: 11px; letter-spacing: .12em; color: var(--paper); }
.pp-tag span { color: var(--accent); font-size: 9.5px; letter-spacing: .16em; }

.panel-role { font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.panel-name { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 66px); line-height: 1; margin: 8px 0 4px; }
.panel-vibe { font-family: var(--serif-i); font-style: italic; font-weight: 300; font-size: clamp(18px, 2.4vw, 23px);
  color: var(--paper-dim); max-width: 560px; margin-bottom: 30px; line-height: 1.5; }
.panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.pc-k { font-size: 10px; letter-spacing: .2em; color: var(--accent); margin-bottom: 12px; }
.pc-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pc-list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--paper-dim); }
.pc-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  background: var(--accent); transform: rotate(45deg); }
.pc-faces { font-size: 14.5px; color: var(--paper-dim); line-height: 1.55; }
.pc-faces strong { color: var(--paper); }
.try-rows { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.try-row { font-size: 12.5px; letter-spacing: .02em; color: var(--paper); background: var(--ink-2);
  border: 1px solid var(--line-soft); border-left: 2px solid var(--accent); border-radius: 8px; padding: 12px 15px; }
.try-tag { display: inline-block; color: var(--accent); margin-right: 10px; font-size: 10px; letter-spacing: .16em; }
.try-gate { color: var(--gold); opacity: .8; }
@media (max-width: 860px) {
  .panel-grid { grid-template-columns: 1fr; gap: 28px; }
  .panel-portrait { position: relative; top: 0; max-width: 280px; }
  .panel-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Divider ───────────────────────────────────────────────── */
.divider { padding: 16vh 7vw; text-align: center; }
.fill-line { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 6vw, 72px);
  line-height: 1.1; letter-spacing: -.01em; color: rgba(244,239,230,.12); }
.fill-line span.lit, .fill-line .lit { color: var(--paper); }

/* ── TIERS ─────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 2vh; }
.tier { padding: 32px 30px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line-soft); }
.tier--read { --accent: var(--shuri); border-top: 2px solid var(--shuri); }
.tier--write { --accent: var(--gold); border-top: 2px solid var(--gold); }
.tier-k { font-size: 10.5px; letter-spacing: .18em; color: var(--accent); margin-bottom: 16px; }
.tier h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 27px); margin-bottom: 12px; }
.tier p { font-size: 15px; color: var(--paper-dim); }
.tier-eg { margin-top: 18px; font-size: 11.5px; letter-spacing: .02em; color: var(--accent);
  background: rgba(0,0,0,.3); border-radius: 8px; padding: 12px 14px; line-height: 1.5; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* ── ROUTE DEMO ────────────────────────────────────────────── */
.route-demo { margin-top: 34px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,13,16,.5); }
.route-k { font-size: 10.5px; letter-spacing: .18em; color: var(--gold); margin-bottom: 18px; }
.route-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.route-chip { padding: 11px 16px; border-radius: 40px; background: var(--ink-3); border: 1px solid var(--line-soft);
  color: var(--paper-dim); font-size: 13px; transition: all .3s var(--ease); }
.route-chip:hover { color: var(--paper); border-color: var(--gold); }
.route-chip.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.route-chip--split { border-style: dashed; }
.route-out { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); animation: panelIn .5s var(--ease); }
.route-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.route-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; border: 1px solid var(--bc, var(--gold));
  color: var(--bc, var(--gold)); background: color-mix(in srgb, var(--bc, var(--gold)) 10%, transparent); }
.route-badge img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.route-tierline { font-size: 11.5px; letter-spacing: .04em; margin-bottom: 12px; }
.route-tierline.read { color: var(--shuri); }
.route-tierline.write { color: var(--gold); }
.route-draft { font-size: 15px; color: var(--paper); line-height: 1.55; }
.route-draft strong { color: var(--gold); }
.route-loop { margin-top: 12px; font-size: 11.5px; letter-spacing: .04em; color: var(--paper-faint); }

.bus-note { margin-top: 30px; padding: 26px 28px; border-radius: 16px; background: var(--ink-2);
  border: 1px solid var(--line-soft); --accent: var(--shuri); }
.bus-note-k { font-size: 10px; letter-spacing: .2em; color: var(--shuri); margin-bottom: 12px; }
.bus-note p { font-size: 15px; color: var(--paper-dim); }
.bus-note strong { color: var(--paper); }

/* ── A DAY / PHONE ─────────────────────────────────────────── */
.day-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.day-tabs { display: flex; flex-direction: column; gap: 10px; }
.day-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 16px 20px; border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line-soft);
  transition: all .3s var(--ease); }
.day-time { font-size: 11px; letter-spacing: .1em; color: var(--paper-faint); }
.day-label { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--paper-dim); }
.day-tab:hover { border-color: var(--gold); }
.day-tab.is-active { border-color: var(--gold); background: var(--ink-3); }
.day-tab.is-active .day-label { color: var(--paper); }
.day-tab.is-active .day-time { color: var(--gold); }
.day-tab--gold.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.phone { background: var(--ink-2); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55); position: sticky; top: 70px; }
.phone-sb { display: flex; justify-content: space-between; padding: 9px 18px 4px; font-size: 9.5px;
  letter-spacing: .06em; color: var(--paper-faint); }
.phone-head { display: flex; align-items: center; gap: 9px; padding: 10px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.phone-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--shuri); box-shadow: 0 0 8px var(--shuri); }
#phoneWho { font-family: var(--display); font-weight: 600; font-size: 15px; }
.phone-status { font-size: 9.5px; color: var(--paper-faint); letter-spacing: .1em; }
.phone-replay { margin-left: auto; font-size: 10px; letter-spacing: .08em; color: var(--paper-faint);
  border: 1px solid var(--line-soft); border-radius: 30px; padding: 5px 11px; transition: all .3s; }
.phone-replay:hover { color: var(--gold); border-color: var(--gold); }
.phone-scroll { height: 460px; overflow-y: auto; padding: 18px 16px 26px; scroll-behavior: smooth; }
.phone-scroll::-webkit-scrollbar { width: 0; }
.moment { display: none; flex-direction: column; gap: 11px; }
.moment.is-active { display: flex; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 15px; font-size: 13.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); animation: msgIn .45s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg--a { align-self: flex-start; background: var(--ink-3); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg--l { align-self: flex-end; background: var(--gold); color: var(--ink); border-bottom-right-radius: 4px; font-weight: 500; }
.msg--c { align-self: flex-start; background: #1a1622; border: 1px solid rgba(238,151,127,.25); border-bottom-left-radius: 4px; }
.msg--shuri { border-color: rgba(70,201,180,.4); }
.msg--ava   { border-color: rgba(238,151,127,.4); align-self: flex-end; background: #14201d; }
.msg--spike { border-color: rgba(240,86,60,.4); }
.msg-from { display: block; font-size: 9px; letter-spacing: .16em; margin-bottom: 5px; opacity: .8; }
.msg--shuri .msg-from { color: var(--shuri); }
.msg--ava .msg-from { color: var(--ava); }
.msg--spike .msg-from { color: var(--spike); }
.msg--c .msg-from { color: var(--ava); }
.msg-dim { color: var(--paper-faint); font-size: 11px; }
.msg--note { align-self: stretch; max-width: 100%; text-align: center; background: transparent;
  border: 1px dashed var(--line); color: var(--paper-faint); font-size: 11px; letter-spacing: .04em; line-height: 1.6; }
.msg--note strong { color: var(--gold); }
@media (max-width: 880px) {
  .day-wrap { grid-template-columns: 1fr; gap: 22px; }
  .day-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .day-tab { min-width: 130px; }
  .phone { position: relative; top: 0; max-width: 420px; margin: 0 auto; }
}

/* ── LOCKS ─────────────────────────────────────────────────── */
.locks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 2vh; }
.lock { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; border-radius: 14px;
  background: var(--ink-2); border: 1px solid var(--line-soft); --accent: var(--gold); }
.lock-icon { flex: none; width: 26px; height: 26px; margin-top: 2px; border: 1.5px solid var(--gold); border-radius: 6px;
  position: relative; }
.lock-icon::before { content: ""; position: absolute; inset: 6px 7px; border: 1.5px solid var(--gold);
  border-bottom: 0; border-radius: 5px 5px 0 0; top: -4px; width: 12px; height: 9px; left: 5px; }
.lock p { font-size: 14.5px; color: var(--paper-dim); }
.lock strong { color: var(--paper); }
@media (max-width: 760px) { .locks { grid-template-columns: 1fr; } }

/* ── CHEAT SHEET ───────────────────────────────────────────── */
.cheat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 2vh; }
.cheat-card { padding: 26px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-soft);
  border-top: 2px solid var(--c); --accent: var(--c); }
.cheat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cheat-top img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c); }
.cheat-top h3 { font-family: var(--display); font-weight: 600; font-size: 22px; }
.cheat-top p { font-size: 10px; letter-spacing: .14em; color: var(--c); text-transform: uppercase; }
.cheat-use { font-size: 14px; color: var(--paper-dim); margin-bottom: 16px; }
.cheat-use strong { color: var(--paper); }
.cheat-cmds { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cheat-cmds li { font-size: 12px; color: var(--paper-dim); padding: 9px 12px; background: rgba(0,0,0,.28);
  border-radius: 7px; border-left: 2px solid var(--c); }
.cheat-cmds .tiny { color: var(--gold); font-size: 10px; letter-spacing: .08em; }
@media (max-width: 760px) { .cheat { grid-template-columns: 1fr; } }

.approve-explainer { margin-top: 30px; padding: 34px 32px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(232,193,90,.07), rgba(13,13,16,.5)); border: 1px solid var(--line); --accent: var(--gold); }
.ae-k { font-size: 10.5px; letter-spacing: .2em; color: var(--gold); margin-bottom: 14px; }
.ae-body { font-size: clamp(16px, 2.2vw, 20px); color: var(--paper); line-height: 1.55; }
.ae-body strong { color: var(--gold); }

/* ── OUTRO ─────────────────────────────────────────────────── */
.outro { margin-top: 12vh; text-align: center; }
.outro-line { margin-bottom: 50px; }
.outro-seal { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%;
  border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--gold);
  box-shadow: 0 0 0 6px rgba(232,193,90,.08), 0 0 40px rgba(232,193,90,.18); animation: pulse-mark 3s ease-in-out infinite; }
.outro-sig { font-size: 10.5px; letter-spacing: .16em; color: var(--paper-faint); line-height: 1.9; }

/* ── Footer ────────────────────────────────────────────────── */
.foot { text-align: center; padding: 50px 7vw; border-top: 1px solid var(--line-soft); }
.foot p { font-size: 10px; letter-spacing: .18em; color: var(--paper-faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .12s !important; }
  .reveal { opacity: 1; transform: none; }
}
