/* ───────────────────────────────────────────────────────────
   Sinergia AI — design system
   Dark, warm, technical. Display: Unbounded. Labels: Martian Mono.
   Body: Schibsted Grotesk.
   ─────────────────────────────────────────────────────────── */
:root {
  --bg: #040302;
  --surface: rgba(13, 10, 8, 0.78);
  --surface-solid: #0b0907;
  --surface-2: rgba(24, 18, 13, 0.82);
  --ink: #f7efe2;
  --ink-2: #b8ad9d;
  --ink-3: #7c7265;
  --line: rgba(255, 232, 196, 0.11);
  --line-2: rgba(255, 232, 196, 0.2);

  --cream: #fff3c4;
  --amber: #ffbe3d;
  --orange: #ff7a1a;
  --red: #ff3d1f;
  --ember: #7a0f08;
  --blue: #4f7dff;
  --violet: #8a6bff;

  /* chart series (validated for dark surface + colour-vision deficiency) */
  --s1: #d08c10;
  --s2: #5b8cff;
  --s3: #f2472b;
  --s4: #9b7bea;

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --w: min(1240px, calc(100vw - 48px));
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; }
::selection { background: var(--orange); color: #120800; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ── background layers ─────────────────────────────────────── */
#flow {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0;
  opacity: 0.5;
  transition: opacity 0.5s linear;
  pointer-events: none;
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 0%, transparent 0%, rgba(4, 3, 2, 0.2) 60%, rgba(4, 3, 2, 0.75) 100%);
}

/* ── header ────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: linear-gradient(180deg, rgba(4, 3, 2, 0.92), rgba(4, 3, 2, 0.6) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; }
.brand-mark { width: 26px; height: 26px; position: relative; }
.brand-mark::before, .brand-mark::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--red); filter: drop-shadow(0 0 6px rgba(255, 61, 31, 0.8));
}
.brand-mark::after { inset: 4px; border-color: var(--blue); filter: drop-shadow(0 0 6px rgba(79, 125, 255, 0.9)); border-right-color: transparent; animation: spin 8s linear infinite; }
.brand em { font-style: normal; color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); background: rgba(255, 232, 196, 0.08); }
.nav a.active::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); margin-right: 8px; vertical-align: 1px; }
.nav a.cta { color: #140900; background: linear-gradient(120deg, var(--amber), var(--orange)); margin-left: 8px; font-weight: 600; }
.nav a.cta.active::before { background: #140900; box-shadow: none; }
.nav a.cta:hover { filter: brightness(1.1); }

.blockclock {
  display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; white-space: nowrap;
}
.blockclock b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.blockclock .ring { width: 18px; height: 18px; transform: rotate(-90deg); }
.blockclock .ring circle { fill: none; stroke-width: 2.5; }
.blockclock .ring .tr { stroke: rgba(255, 232, 196, 0.15); }
.blockclock .ring .pr { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 44; }

.menu-btn { display: none; }

/* ── pages & transitions ───────────────────────────────────── */
main { position: relative; z-index: 2; }
.page { display: none; min-height: 100vh; padding-top: var(--header-h); }
.page.current { display: block; animation: pageIn 0.9s var(--ease) both; }
.page.leaving { display: block; animation: pageOut 0.38s var(--ease-io) both; pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-18px); filter: blur(6px); } }

.sweep {
  position: fixed; left: 0; right: 0; top: 0; height: 100vh; z-index: 40; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0, rgba(255, 122, 26, 0.0) 40%, rgba(255, 122, 26, 0.16) 49%, rgba(255, 243, 196, 0.9) 50%, rgba(79, 125, 255, 0.2) 51%, transparent 62%);
  transform: translateY(-60%);
}
.sweep.run { animation: sweep 0.8s var(--ease-io) both; }
@keyframes sweep { 0% { opacity: 0; transform: translateY(-60%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(60%); } }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── type ──────────────────────────────────────────────────── */
.wrap { width: var(--w); margin: 0 auto; }
.eyebrow { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.plain::before { display: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.h-xl { font-size: clamp(34px, 5.2vw, 72px); font-weight: 700; }
.h-lg { font-size: clamp(26px, 3.4vw, 46px); }
.h-md { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.2; }
.h-sm { font-size: 15px; letter-spacing: 0.02em; line-height: 1.3; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.lede strong, p strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.grad { background: linear-gradient(100deg, var(--cream) 0%, var(--amber) 35%, var(--orange) 65%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line-2); background: rgba(10, 8, 6, 0.6); transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, filter 0.3s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--amber); }
.btn.primary { background: linear-gradient(120deg, var(--amber), var(--orange) 60%, var(--red)); color: #140900; border-color: transparent; font-weight: 600; box-shadow: 0 8px 40px -8px rgba(255, 122, 26, 0.6); }
.btn.primary:hover { filter: brightness(1.08); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card.glow::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 150, 40, 0.14), transparent 60%);
}
.card.glow:hover::after { opacity: 1; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.tag.hot { color: var(--amber); border-color: rgba(255, 190, 61, 0.4); }
.tag.blue { color: #9db5ff; border-color: rgba(79, 125, 255, 0.45); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); display: inline-block; }
.dot.live { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── HOME: hero ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 96px; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
#blob { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-phase {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); z-index: 1; opacity: 0;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(8px, 0.8vw, 11.5px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); white-space: nowrap; pointer-events: none;
  text-shadow: 0 0 24px rgba(255, 122, 26, 0.5);
}
.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; width: var(--w); }
.wordmark {
  font-family: var(--f-display); font-weight: 800; line-height: 0.86; letter-spacing: -0.035em;
  font-size: clamp(52px, 13.2vw, 204px); display: flex; align-items: baseline; justify-content: center; gap: 0.12em;
  text-shadow: 0 0 80px rgba(4, 3, 2, 0.9);
}
.wordmark .ch { display: inline-block; opacity: 0; transform: translateY(0.5em) rotateX(-60deg); transform-origin: 50% 100%; animation: chIn 1.1s var(--ease) both; animation-delay: calc(0.25s + var(--i) * 60ms); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.wordmark .ai { font-size: 0.3em; font-weight: 600; letter-spacing: 0.02em; color: var(--amber); align-self: flex-start; margin-top: 0.42em; text-shadow: 0 0 30px rgba(255, 150, 40, 0.7); }
.hero .tagline { font-size: clamp(17px, 1.7vw, 23px); color: var(--ink); max-width: 46ch; line-height: 1.45; text-wrap: balance; text-shadow: 0 2px 30px #000, 0 0 60px #000; }
.hero .tagline em { font-style: normal; color: var(--amber); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-eyebrow { position: absolute; z-index: 2; top: calc(var(--header-h) + 18px); left: 0; right: 0; justify-content: center; text-shadow: 0 0 20px #000; color: var(--ink-2); font-size: 10.5px; }

.ticker { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; border-top: 1px solid var(--line); background: rgba(4, 3, 2, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; height: 44px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 48s linear infinite; padding-left: 48px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-2); }
.ticker-track span b { color: var(--ink); font-weight: 500; }
.ticker-track .up { color: #ffb38a; } .ticker-track .dn { color: #9db5ff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── HOME: who / how ───────────────────────────────────────── */
.statement { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.015em; max-width: 21ch; text-wrap: balance; }
.who-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.zeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); backdrop-filter: blur(14px); margin-top: 36px; }
.zeros > div { padding: 22px 20px; border-right: 1px solid var(--line); }
.zeros > div:last-child { border-right: 0; }
.zeros .n { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.zeros .l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }

.role .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line-2); }
.role .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role.sell .ico { color: var(--amber); background: rgba(255, 190, 61, 0.08); }
.role.buy .ico { color: #9db5ff; background: rgba(79, 125, 255, 0.1); }
.role.grid .ico { color: #ff8a70; background: rgba(255, 61, 31, 0.08); }
.role p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px 28px 30px; }
.step .num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--amber); }
.step h3 { margin: 16px 0 12px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .viz { height: 132px; margin: -4px -8px 18px; position: relative; }
.quote { font-family: var(--f-mono); font-size: 12px; color: var(--ink); background: rgba(255, 232, 196, 0.06); border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; display: inline-block; margin: 3px 4px 0 0; }

/* step visuals */
.viz-agent .bubble { position: absolute; font-family: var(--f-mono); font-size: 11px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(20, 15, 11, 0.9); white-space: nowrap; opacity: 0; animation: bub 7s var(--ease) infinite; }
.viz-agent .bubble.me { right: 10px; top: 14px; border-bottom-right-radius: 3px; color: var(--ink); }
.viz-agent .bubble.ag { left: 10px; top: 62px; border-bottom-left-radius: 3px; color: var(--amber); animation-delay: 1.2s; border-color: rgba(255, 190, 61, 0.35); }
.viz-agent .bubble.ag2 { left: 10px; top: 98px; border-bottom-left-radius: 3px; color: var(--ink-2); animation-delay: 2.2s; }
@keyframes bub { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.viz-match svg, .viz-settle svg { width: 100%; height: 100%; overflow: visible; }
.viz-match .o { fill: var(--amber); } .viz-match .b { fill: var(--blue); }
.viz-match .lnk { stroke: var(--line-2); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.viz-match .pk { fill: var(--cream); filter: drop-shadow(0 0 6px var(--orange)); }
.viz-match .core { fill: none; stroke: var(--orange); stroke-width: 1.5; }
.viz-match .core2 { fill: none; stroke: var(--red); stroke-width: 1; opacity: 0.5; transform-origin: 150px 66px; animation: ringpulse 3s ease-out infinite; }
@keyframes ringpulse { from { transform: scale(0.7); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
.viz-settle .bar { fill: rgba(255, 232, 196, 0.1); }
.viz-settle .fill { fill: var(--amber); transform-origin: left; animation: fillbar 5s var(--ease) infinite; }
.viz-settle .fill.b { fill: var(--blue); animation-delay: 0.4s; }
.viz-settle text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-2); }
.viz-settle .ok { stroke: var(--amber); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; animation: tick 5s var(--ease) infinite; }
@keyframes fillbar { 0% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
@keyframes tick { 0%, 45% { stroke-dashoffset: 20; } 60%, 100% { stroke-dashoffset: 0; } }

.traded { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); backdrop-filter: blur(14px); }
.traded > div { padding: 26px 24px 28px; border-right: 1px solid var(--line); position: relative; transition: background 0.4s; }
.traded > div:last-child { border-right: 0; }
.traded > div:hover { background: rgba(255, 150, 40, 0.06); }
.traded .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--ink-3); }
.traded h3 { margin: 28px 0 10px; }
.traded p { font-size: 14.5px; color: var(--ink-2); }

/* one home's day */
.day { padding: 32px; }
.day-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.day-clock { font-family: var(--f-display); font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.day-state { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); text-align: right; line-height: 1.8; }
.day-state b { color: var(--ink); font-weight: 500; }
.day-chart { width: 100%; height: 250px; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.day-chart text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-3); }
.day-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.day-ev { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease); cursor: pointer; text-align: left; }
.day-ev .t { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; transition: color 0.3s; }
.day-ev .h { font-weight: 600; margin: 6px 0 4px; font-size: 16px; }
.day-ev .p { font-size: 14px; color: var(--ink-2); }
.day-ev.on { border-color: rgba(255, 190, 61, 0.6); background: rgba(255, 150, 40, 0.08); transform: translateY(-3px); }
.day-ev.on .t { color: var(--amber); }

.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ── HISTORY ───────────────────────────────────────────────── */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.problem { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 3.5vw, 50px); line-height: 1.16; letter-spacing: -0.015em; max-width: 25ch; text-wrap: balance; margin-top: 28px; }
.problem .n { color: var(--amber); }
.problem .dim { color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.facts > div { padding: 22px 20px 22px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.facts .v { font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 1.7vw, 22px); margin-top: 8px; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 148px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2) 6%, var(--line-2) 94%, transparent); }
.tl-progress { position: absolute; left: 147px; top: 8px; width: 3px; height: 0; background: linear-gradient(180deg, var(--amber), var(--orange), var(--red)); box-shadow: 0 0 16px var(--orange); border-radius: 3px; }
.tl { display: grid; grid-template-columns: 124px 48px 1fr; align-items: start; padding: 20px 0; }
.tl .when { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); text-align: right; padding-top: 3px; letter-spacing: 0.04em; }
.tl .node { justify-self: center; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--bg); margin-top: 6px; position: relative; z-index: 1; transition: border-color 0.5s, background 0.5s, box-shadow 0.5s; }
.tl.in .node { border-color: var(--orange); }
.tl.us .node { width: 15px; height: 15px; margin-top: 4px; }
.tl.us.in .node { background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.tl .what { max-width: 720px; }
.tl .what h3 { font-family: var(--f-body); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.tl .what p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.tl .what .tag { margin-bottom: 10px; }
.tl.us .what { background: var(--surface); border: 1px solid rgba(255, 150, 40, 0.28); border-radius: 16px; padding: 18px 22px; backdrop-filter: blur(14px); }
.tl-legend { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; }
.tl-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink-3); margin-right: 8px; vertical-align: -1px; }
.tl-legend i.us { background: var(--orange); border-color: var(--orange); }

.musts .card { padding: 26px; display: grid; gap: 14px; align-content: start; }
.musts .then { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.7; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.musts .then b { color: var(--ink-2); font-weight: 500; }
.musts .check { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; }
.musts .check svg { width: 18px; height: 18px; stroke: var(--amber); fill: none; stroke-width: 2; }

.journal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.entry { padding: 28px 28px 30px; }
.entry.wide { grid-column: 1 / -1; }
.entry header { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.entry header b { color: var(--amber); font-weight: 500; }
.entry p { font-size: 16.5px; line-height: 1.65; color: #e6dccd; }
.entry p + p { margin-top: 12px; }
.entry .n { font-family: var(--f-mono); font-size: 0.9em; color: var(--amber); }
.entry.wide p { font-size: clamp(18px, 1.7vw, 22px); max-width: 60ch; }

/* ── PLACE ─────────────────────────────────────────────────── */
.live { display: grid; gap: 18px; }
.live-n { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 10.5vw, 150px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; }
.live-n .d { display: inline-block; position: relative; overflow: hidden; height: 0.95em; }
.live-n .d span { display: block; transition: transform 0.7s var(--ease); }
.live-n .sep { color: var(--ink-3); }
.live-sub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
.live-sub > div { padding: 18px 20px 18px 0; }
.live-sub > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.live-sub .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.live-sub .v { font-family: var(--f-mono); font-size: clamp(18px, 2vw, 26px); margin-top: 6px; font-variant-numeric: tabular-nums; }

.mapwrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.mapbox { padding: 12px; position: relative; }
.mapbox canvas { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; }
.mapbox svg.hit { position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: auto; aspect-ratio: 1/1; }
.mapbox svg.hit path { fill: transparent; stroke: none; cursor: crosshair; pointer-events: all; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 210px; background: rgba(12, 9, 7, 0.96); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6); }
.map-tip.on { opacity: 1; transform: none; }
.map-tip h4 { font-family: var(--f-display); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.map-tip dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; font-family: var(--f-mono); font-size: 11px; }
.map-tip dt { color: var(--ink-2); } .map-tip dd { color: var(--ink); text-align: right; }
.mapside { display: grid; gap: 20px; align-content: start; }
.layers { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: all 0.25s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); transition: all 0.25s; }
.chip[aria-pressed='true'] { color: var(--ink); border-color: rgba(255, 190, 61, 0.5); background: rgba(255, 150, 40, 0.08); }
.chip[aria-pressed='true'] i { background: var(--c, var(--amber)); box-shadow: 0 0 10px var(--c, var(--amber)); }
.share { display: grid; gap: 14px; }
.share .big { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; }
.share .big small { display: block; font-family: var(--f-body); font-size: 16px; line-height: 1.4; color: var(--ink-2); font-weight: 500; letter-spacing: 0; margin-top: 10px; }
.meter { height: 10px; border-radius: 10px; background: rgba(255, 190, 61, 0.14); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--amber), var(--orange)); transition: width 1.6s var(--ease); }
.meter.b { background: rgba(79, 125, 255, 0.16); } .meter.b i { background: linear-gradient(90deg, #7fa0ff, var(--blue)); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-family: var(--f-mono); font-size: 12px; }
.kv dt { color: var(--ink-2); } .kv dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.scale { display: grid; gap: 6px; }
.scale .bar { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #602c14 0%, #964212 25%, #d9731a 50%, #ffab2e 70%, #ffd76a 85%, #fff3c4 100%); }
.scale .ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); }

.market { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: stretch; }
.bigstats { display: grid; gap: 20px; }
.bigstat { padding: 28px; display: grid; gap: 10px; }
.bigstat .lab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bigstat .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bigstat .num small { font-size: 0.3em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 10px; }
.bigstat p { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.calc { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); line-height: 1.9; border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: 4px; }
.calc b { color: var(--ink); font-weight: 500; }
.nest { padding: 24px; display: grid; align-content: center; }
.nest svg { width: 100%; height: auto; overflow: visible; }
.nest text { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-2); }
.nest text.v { font-family: var(--f-display); font-weight: 700; font-size: 20px; fill: var(--ink); }
.nest circle { transform-origin: center; transform-box: fill-box; transform: scale(0); transition: transform 1.4s var(--ease); }
.nest.in circle { transform: scale(1); }
.nest.in circle.c2 { transition-delay: 0.2s; } .nest.in circle.c3 { transition-delay: 0.4s; } .nest.in circle.c4 { transition-delay: 0.6s; }
.nest .lead { stroke: var(--line-2); stroke-width: 1; fill: none; }

.chart-card { padding: 26px 26px 20px; display: grid; gap: 14px; align-content: start; }
.chart-card h3 { font-size: 17px; }
.chart-card .sub { font-size: 14px; color: var(--ink-2); margin-top: -6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.legend i.sq { width: 10px; height: 10px; border-radius: 3px; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--ink-2) 0 4px, transparent 4px 7px); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-mono); font-size: 10.5px; fill: var(--ink-3); }
.chart text.lbl { fill: var(--ink); font-size: 11.5px; }
.chart .gridl { stroke: rgba(255, 232, 196, 0.08); stroke-width: 1; }
.chart .axis { stroke: rgba(255, 232, 196, 0.2); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .proj { stroke-dasharray: 2 6; }
.chart .cross { stroke: rgba(255, 232, 196, 0.35); stroke-width: 1; opacity: 0; }
.chart .now { stroke: rgba(255, 232, 196, 0.25); stroke-width: 1; }
.chart-tip { position: absolute; top: 0; left: 0; pointer-events: none; background: rgba(12, 9, 7, 0.96); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font-family: var(--f-mono); font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity 0.15s; z-index: 4; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.chart-tip.on { opacity: 1; }
.chart-tip .y { color: var(--ink-2); margin-bottom: 4px; }
.chart-tip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chart-tip .r i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; margin-right: 6px; }
.chart-tip .r b { font-weight: 500; color: var(--ink); margin-left: 14px; }

.mix-bar { display: flex; gap: 2px; height: 46px; border-radius: 8px; overflow: hidden; }
.mix-bar > div { background: var(--c); width: 0; transition: width 1.4s var(--ease); position: relative; cursor: default; }
.mix-bar > div:hover { filter: brightness(1.15); }
.mix-rows { display: grid; gap: 0; margin-top: 6px; }
.mix-rows > div { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mix-rows i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); align-self: center; }
.mix-rows .f { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }
.mix-rows .a { font-family: var(--f-mono); font-size: 13px; }
.mix-rows .pc { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); width: 42px; text-align: right; }

.drivers .card { padding: 24px; }
.drivers .n { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; margin: 16px 0 10px; font-variant-numeric: tabular-nums; }
.drivers .n small { font-size: 0.4em; color: var(--ink-2); font-weight: 500; margin-left: 6px; }
.drivers p { font-size: 14px; color: var(--ink-2); }

/* ── DEMO ──────────────────────────────────────────────────── */
.player { border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: #070504; box-shadow: 0 40px 120px -20px rgba(255, 90, 20, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background:
  radial-gradient(80% 60% at 75% 10%, rgba(255, 122, 26, 0.1), transparent 60%),
  radial-gradient(60% 60% at 10% 90%, rgba(79, 125, 255, 0.1), transparent 60%), #070504; container-type: size; font-size: 1.32cqw; }
.stage * { transition-timing-function: var(--ease); }
.st-top { position: absolute; left: 3%; right: 3%; top: 4%; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 0.85em; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; }
.st-top .clock { font-family: var(--f-display); font-weight: 700; font-size: 2.1em; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.st-top .chap { color: var(--amber); }
.phone { position: absolute; left: 4%; top: 15%; bottom: 7%; aspect-ratio: 9 / 18.2; border-radius: 2.6em; border: 0.14em solid rgba(255, 232, 196, 0.28); background: #0c0907; padding: 1.3em 1em 1em; display: flex; flex-direction: column; gap: 0.7em; overflow: hidden; box-shadow: 0 2em 5em rgba(0, 0, 0, 0.6); }
.phone::before { content: ''; position: absolute; top: 0.6em; left: 50%; width: 28%; height: 0.5em; background: #1b1511; border-radius: 1em; transform: translateX(-50%); }
.ph-head { display: flex; align-items: center; gap: 0.6em; margin-top: 0.9em; font-family: var(--f-display); font-size: 0.85em; font-weight: 600; }
.ph-head .av { width: 2em; height: 2em; border-radius: 50%; background: conic-gradient(from 40deg, var(--red), var(--amber), var(--blue), var(--red)); filter: blur(0.5px); animation: spin 6s linear infinite; }
.ph-head small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.72em; color: var(--ink-3); letter-spacing: 0.06em; }
.ph-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55em; overflow: hidden; }
.msg { font-size: 0.86em; line-height: 1.4; padding: 0.6em 0.8em; border-radius: 1em; max-width: 92%; opacity: 0; transform: translateY(0.8em) scale(0.97); transition: opacity 0.5s, transform 0.5s, max-height 0.5s, margin 0.5s, padding 0.5s; max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.msg.on { opacity: 1; transform: none; max-height: 12em; padding: 0.6em 0.8em; }
.msg.me { align-self: flex-end; background: rgba(255, 232, 196, 0.1); border-bottom-right-radius: 0.25em; }
.msg.ag { align-self: flex-start; background: rgba(255, 150, 40, 0.12); border: 0.06em solid rgba(255, 190, 61, 0.3); border-bottom-left-radius: 0.25em; }
.msg.ag b { color: var(--amber); font-weight: 600; }
.msg .mono { font-size: 0.86em; }
.msg.sys { align-self: center; font-family: var(--f-mono); font-size: 0.68em; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; background: none; }
.ph-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; font-family: var(--f-mono); font-size: 0.66em; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; border-top: 0.06em solid var(--line); padding-top: 0.7em; }
.ph-foot b { display: block; color: var(--ink); font-size: 1.4em; font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

.panels { position: absolute; left: 31%; right: 3%; top: 15%; bottom: 7%; }
.panel { position: absolute; inset: 0; border: 0.07em solid var(--line-2); border-radius: 1.2em; background: rgba(13, 10, 8, 0.86); padding: 1.6em 1.8em; opacity: 0; transform: translateX(2.4em) scale(0.985); transition: opacity 0.6s, transform 0.7s; pointer-events: none; display: flex; flex-direction: column; gap: 1em; overflow: hidden; }
.panel.on { opacity: 1; transform: none; }
.panel.past { transform: translateX(-2.4em) scale(0.985); }
.panel h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.25em; line-height: 1.2; }
.panel .cap { font-family: var(--f-mono); font-size: 0.72em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.panel .row { display: flex; gap: 1.2em; flex: 1; min-height: 0; }
.fade { opacity: 0; transform: translateY(0.8em); transition: opacity 0.5s, transform 0.6s; }
.fade.on { opacity: 1; transform: none; }

.prof { flex: 1; display: grid; gap: 0.8em; align-content: center; }
.prof .it { display: grid; grid-template-columns: 9em 1fr 5.5em; gap: 1em; align-items: center; font-size: 0.9em; }
.prof .it span:first-child { color: var(--ink-2); }
.prof .it span:last-child { font-family: var(--f-mono); font-size: 0.85em; text-align: right; }
.prof .tr { height: 0.5em; border-radius: 1em; background: rgba(255, 232, 196, 0.08); overflow: hidden; }
.prof .tr i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: linear-gradient(90deg, var(--amber), var(--orange)); border-radius: 1em; }
.rules { display: flex; gap: 0.6em; flex-wrap: wrap; }
.rule { font-family: var(--f-mono); font-size: 0.74em; padding: 0.5em 0.9em; border-radius: 2em; border: 0.07em solid rgba(255, 190, 61, 0.45); color: var(--amber); background: rgba(255, 150, 40, 0.08); }

.book { flex: 1.25; display: grid; grid-template-rows: auto 1fr; gap: 0.5em; min-width: 0; }
.book table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 0.76em; }
.book th { text-align: left; font-weight: 400; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.86em; padding: 0.3em 0.4em; border-bottom: 0.07em solid var(--line); }
.book td { padding: 0.42em 0.4em; border-bottom: 0.07em solid rgba(255, 232, 196, 0.05); white-space: nowrap; transition: background 0.5s, color 0.5s, opacity 0.5s; }
.book td:last-child, .book th:last-child { text-align: right; }
.book tr.sell td:first-child { color: var(--amber); } .book tr.buy td:first-child { color: #9db5ff; }
.book tr.mine td { background: rgba(255, 190, 61, 0.1); color: var(--ink); }
.book tr.hit td { background: rgba(255, 122, 26, 0.26); }
.book tr.out td { opacity: 0.3; }
.clear { flex: 1; display: grid; justify-items: center; align-content: center; gap: 0.8em; text-align: center; min-width: 0; }
.clear .ringbox { position: relative; width: 11em; height: 11em; }
.clear svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.clear circle { fill: none; stroke-width: 3; }
.clear .t1 { stroke: rgba(255, 232, 196, 0.1); }
.clear .p1 { stroke: var(--red); stroke-linecap: round; filter: drop-shadow(0 0 6px var(--red)); }
.clear .p2 { stroke: var(--blue); stroke-linecap: round; stroke-width: 2; filter: drop-shadow(0 0 6px var(--blue)); }
.clear .mid { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--f-mono); }
.clear .mid small { font-size: 0.66em; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.clear .mid b { font-family: var(--f-display); font-size: 1.7em; font-weight: 700; font-variant-numeric: tabular-nums; }
.clear .res { font-family: var(--f-mono); font-size: 0.8em; color: var(--ink-2); }
.clear .res b { color: var(--amber); font-weight: 500; }

.pricechart { flex: 1; min-height: 0; position: relative; }
.pricechart svg { width: 100%; height: 100%; overflow: visible; }
.pricechart text { font-family: var(--f-mono); font-size: 9px; fill: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.kpi { border: 0.07em solid var(--line); border-radius: 0.9em; padding: 0.8em 1em; }
.kpi small { font-family: var(--f-mono); font-size: 0.66em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: block; }
.kpi b { font-family: var(--f-display); font-size: 1.3em; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi b small { display: inline; font-size: 0.5em; color: var(--ink-2); font-family: var(--f-mono); text-transform: none; letter-spacing: 0; margin-left: 0.3em; }

.route { flex: 1; position: relative; min-height: 0; }
.route svg { width: 100%; height: 100%; overflow: visible; }
.route text { font-family: var(--f-mono); font-size: 9px; fill: var(--ink-2); }
.route .wire { fill: none; stroke: rgba(255, 232, 196, 0.16); stroke-width: 1.5; }
.route .flowl { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--orange)); }
.route .nodebox { fill: rgba(20, 15, 11, 0.95); stroke: var(--line-2); stroke-width: 1; }
.cert { border: 0.07em dashed rgba(79, 125, 255, 0.6); border-radius: 0.9em; padding: 0.8em 1em; font-family: var(--f-mono); font-size: 0.74em; color: #b9c9ff; display: flex; justify-content: space-between; gap: 1em; background: rgba(79, 125, 255, 0.07); }

.stmt { flex: 1; display: grid; align-content: center; gap: 0; font-size: 0.95em; }
.stmt .ln { display: flex; justify-content: space-between; padding: 0.55em 0; border-bottom: 0.07em solid var(--line); }
.stmt .ln span:first-child { color: var(--ink-2); }
.stmt .ln span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.stmt .ln.pos span:last-child { color: var(--amber); }
.stmt .ln.tot { border-bottom: 0; padding-top: 0.9em; font-family: var(--f-display); font-weight: 700; font-size: 1.35em; }
.stmt .ln.tot span:first-child { color: var(--ink); }
.endcard { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1em; text-align: center; background: rgba(5, 4, 3, 0.9); opacity: 0; pointer-events: none; transition: opacity 0.8s; z-index: 5; }
.endcard.on { opacity: 1; pointer-events: auto; }
.endcard h4 { font-family: var(--f-display); font-size: 2.2em; font-weight: 700; max-width: 18ch; line-height: 1.1; }
.endcard .btn { font-size: 0.8em; padding: 1em 1.6em; }
.caption { position: absolute; left: 50%; bottom: 1.6%; transform: translateX(-50%); font-size: 0.92em; color: var(--ink); background: rgba(0, 0, 0, 0.72); padding: 0.35em 1em; border-radius: 0.5em; white-space: nowrap; z-index: 4; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }

.controls { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: #0a0806; }
.pp { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(120deg, var(--amber), var(--orange)); color: #140900; transition: transform 0.2s; }
.pp:hover { transform: scale(1.06); }
.pp svg { width: 16px; height: 16px; fill: currentColor; }
.time { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scrub { position: relative; height: 28px; cursor: pointer; touch-action: none; }
.scrub .track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: rgba(255, 232, 196, 0.12); }
.scrub .prog { position: absolute; left: 0; top: 12px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber), var(--orange), var(--red)); width: 0; }
.scrub .knob { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 12px var(--orange); left: 0; }
.scrub .mk { position: absolute; top: 9px; width: 2px; height: 10px; background: #0a0806; }
.speed { font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.chapbtn { text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.3s, background 0.3s; }
.chapbtn .t { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-3); }
.chapbtn .h { font-weight: 600; font-size: 14.5px; margin-top: 4px; line-height: 1.3; }
.chapbtn.on { border-color: rgba(255, 190, 61, 0.6); background: rgba(255, 150, 40, 0.08); }
.chapbtn.on .t { color: var(--amber); }

/* ── JOIN ──────────────────────────────────────────────────── */
.access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); backdrop-filter: blur(14px); }
.access > div { padding: 28px; border-right: 1px solid var(--line); position: relative; }
.access > div:last-child { border-right: 0; }
.access .t { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; }
.access h3 { margin: 14px 0 10px; }
.access p { color: var(--ink-2); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.feat { border-color: rgba(255, 150, 40, 0.5); background: linear-gradient(180deg, rgba(255, 122, 26, 0.1), var(--surface) 55%); }
.plan .price { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.plan .price small { display: block; font-family: var(--f-body); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); letter-spacing: 0; margin-top: 10px; }
.plan .tag { align-self: flex-start; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); flex: 1; align-content: start; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1.5px; background: var(--amber); }
.plan li b { color: var(--ink); font-weight: 600; }
.example { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px 28px; }
.example .math { font-family: var(--f-mono); font-size: clamp(13px, 1.3vw, 16px); line-height: 2; color: var(--ink-2); }
.example .math b { color: var(--ink); font-weight: 500; }
.example .res { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; text-align: right; }
.example .res small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }

.signup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 56px); border-color: rgba(255, 150, 40, 0.35); background: radial-gradient(90% 120% at 100% 0%, rgba(255, 122, 26, 0.16), transparent 55%), radial-gradient(70% 100% at 0% 100%, rgba(79, 125, 255, 0.12), transparent 60%), var(--surface); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select { font: inherit; color: var(--ink); background: rgba(4, 3, 2, 0.7); border: 1px solid var(--line-2); border-radius: 12px; padding: 15px 16px; width: 100%; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none; }
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 190, 61, 0.14); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); transition: all 0.25s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label { color: #140900; background: var(--amber); border-color: var(--amber); }
.seg input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
.form .btn { justify-content: center; width: 100%; padding: 16px; }
.form-msg { font-family: var(--f-mono); font-size: 12px; min-height: 18px; color: var(--ink-2); }
.form-msg.err { color: #ff9c85; } .form-msg.ok { color: var(--amber); }
.done { display: none; gap: 14px; justify-items: start; }
.signup.sent .form { display: none; } .signup.sent .done { display: grid; }
.done .ok-ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--red); box-shadow: 0 0 24px rgba(255, 61, 31, 0.6), inset 0 0 0 5px var(--bg), inset 0 0 0 7px var(--blue); display: grid; place-items: center; animation: pop 0.8s var(--ease) both; }
.done .ok-ring svg { width: 24px; height: 24px; stroke: var(--cream); stroke-width: 2.5; fill: none; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ── footer ────────────────────────────────────────────────── */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 48px 0 40px; background: rgba(4, 3, 2, 0.85); }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer .fine { font-size: 13px; color: var(--ink-3); max-width: 62ch; line-height: 1.7; }
.footer .fine b { color: var(--ink-2); font-weight: 500; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: start; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.footer nav a:hover { color: var(--amber); }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .blockclock { display: none; }
  .mapwrap, .market, .who-grid, .signup { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .traded { grid-template-columns: repeat(2, 1fr); }
  .traded > div:nth-child(2) { border-right: 0; }
  .traded > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .chapters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; }
  .menu-btn span { width: 18px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
  .nav { position: fixed; top: var(--header-h); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: rgba(10, 8, 6, 0.97); border: 1px solid var(--line-2); border-radius: 18px; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 13px; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
  .header { mask-image: none; -webkit-mask-image: none; background: rgba(4, 3, 2, 0.9); }
  .grid-3, .grid-2, .steps, .journal, .plans, .day-events, .access, .zeros, .facts, .live-sub { grid-template-columns: 1fr; }
  .access > div, .zeros > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .access > div:last-child, .zeros > div:last-child { border-bottom: 0; }
  .facts > div + div, .live-sub > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .traded { grid-template-columns: 1fr; }
  .traded > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .traded > div:last-child { border-bottom: 0; }
  .timeline::before { left: 5px; } .tl-progress { left: 4px; }
  .tl { grid-template-columns: 28px 1fr; }
  .tl .when { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 6px; }
  .tl .node { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 0; }
  .tl.us .node { margin-left: -2px; }
  .tl .what { grid-column: 2; }
  .footer .wrap { grid-template-columns: 1fr; } .footer nav { justify-content: flex-start; }
  .example { grid-template-columns: 1fr; } .example .res { text-align: left; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: auto 1fr auto; } .controls .time { display: none; }
  .hero { padding-bottom: 84px; }
  .wordmark { font-size: 11.4vw; }
  .hero-eyebrow { font-size: 8px; letter-spacing: 0.06em; white-space: nowrap; }
  .live-n { font-size: 13vw; }
  .hero-phase { top: 30%; }
  .day { padding: 20px; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .ticker-track { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .wordmark .ch { opacity: 1; transform: none; }
}

[id] { scroll-margin-top: 92px; }
.route .flowl { opacity: 0; stroke-dasharray: 14 20; transition: opacity .5s; }
.route .flowl.on { opacity: 1; }

.msg { flex-shrink: 0; }
.route { flex: 1 1 7em; min-height: 6em; }
.route text { font-size: 8.5px; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.cert { flex-direction: column; gap: 0.2em; }
.cert span:first-child { color: #dfe7ff; }
.cert.warm { border-color: rgba(255, 190, 61, 0.55); background: rgba(255, 150, 40, 0.07); color: #e9c98a; }
.cert.warm span:first-child { color: var(--amber); }
.kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wordmark > span:first-child { white-space: nowrap; }
