/* ═══════════════════════════════════════════════════════════════
   JKRLZ APEX — Carbon system (from the Grok workspace design)
   paper #f2f1ed · ink #111013 · blue #2f63f2 · up #0f7a45 · down #c0392b
   Anton (display) + Archivo (body)
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700&display=swap");

:root {
  --paper: #f2f1ed;
  --ink: #111013;
  --ink-soft: #1b1a1e;
  --gray: #77747c;
  --line: rgba(17, 16, 19, 0.14);
  --blue: #2f63f2;
  --blue-deep: #1d47c4;
  --up: #0f7a45;
  --down: #c0392b;
  --card: #ffffff;
  --radius-card: 22px;
  --font-disp: "Anton", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(20px, 4vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.disp {
  font-family: var(--font-disp);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow::before { content: "+"; color: var(--blue); font-weight: 700; }

.lead {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-pad { padding: clamp(70px, 9vw, 140px) var(--gut); position: relative; }
.section-pad.tight-top { padding-top: clamp(20px, 3vw, 40px); }

.tabular { font-variant-numeric: tabular-nums; }

/* reveal on scroll */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.25, 1),
              transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.js .rv.in { opacity: 1; transform: none; }
.rv2 { transition-delay: 0.1s; }
.rv3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header.solid {
  background: rgba(242, 241, 237, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--font-disp); font-size: 22px; letter-spacing: 0.04em; line-height: 1; }
.brand i { font-style: normal; color: var(--blue); }
.navlinks {
  display: flex; gap: 1.6em;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.navlinks a { position: relative; padding: 0.3em 0; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blue);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1);
}
.navlinks a:hover::after, .navlinks a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (max-width: 900px) { .navlinks { display: none; } }

.pill {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 99px;
  padding: 1.05em 2.1em;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.pill.blue { background: var(--blue); }
.pill.warn { background: var(--down); }
.pill.mid { background: var(--gray); }
.pill:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gut) clamp(28px, 4vw, 54px);
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: clamp(30px, 5vh, 64px); gap: 1.5rem;
}
.hero-note { max-width: 360px; font-size: 13px; color: var(--gray); line-height: 1.7; word-break: keep-all; }
.hero-ko-title {
  margin-top: 1rem;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600; letter-spacing: 0.04em; color: var(--gray);
}
.h1 { font-size: clamp(34px, 8.2vw, 128px); }
.h1 .ln { display: flex; align-items: center; gap: 0.18em; flex-wrap: wrap; overflow: hidden; padding: 0.03em 0; }
.h1 .accent { color: var(--blue); }
.h1 .chip {
  flex: 0 0 auto; height: 0.55em; aspect-ratio: 16 / 10; border-radius: 0.28em; overflow: hidden;
  background: var(--blue); display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-body); font-size: 0.14em; font-weight: 700;
  letter-spacing: 0.12em; padding: 0 0.4em; position: relative; top: 0.04em;
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: clamp(26px, 4vh, 50px); gap: 2rem; flex-wrap: wrap;
}
.scroll-cue { font-size: 11px; letter-spacing: 0.14em; color: var(--gray); display: flex; align-items: center; gap: 0.8em; }
.scroll-cue i {
  display: inline-block; width: 1px; height: 34px; background: var(--ink);
  animation: drip 1.8s ease-in-out infinite; transform-origin: 50% 0;
}
@keyframes drip {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }

.live-dot {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--gray);
}
.live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(47, 99, 242, 0.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 99, 242, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(47, 99, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 99, 242, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }

.update-chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 0.55em 1em;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink-soft); word-break: keep-all;
  font-family: var(--font-body);
}
button.update-chip:hover { border-color: var(--blue); }
button.update-chip.on { background: var(--blue); color: #fff; border-color: transparent; }
button.update-chip.on.off-regime { background: var(--down); }
button.update-chip.on.mid-regime { background: var(--gray); }
button.update-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ── marquee ────────────────────────────────────────────────── */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.mq-row { display: flex; white-space: nowrap; width: max-content; padding: 0.35em 0; }
.mq-row.rev { border-top: 1px solid var(--line); }
.mq-track { display: flex; align-items: center; animation: mq 32s linear infinite; will-change: transform; }
.mq-row.rev .mq-track { animation: mqr 36s linear infinite; }
.marquee.is-offscreen .mq-track { animation-play-state: paused; will-change: auto; }
.mq-item {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4.4vw, 64px);
  text-transform: uppercase; line-height: 1.1; padding: 0 0.55em;
  display: flex; align-items: center; gap: 0.75em;
}
.mq-item em { font-style: normal; -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.mq-item::after {
  content: ""; width: 0.38em; height: 0.38em; border-radius: 50%;
  background: var(--blue); margin-left: 0.75em; flex-shrink: 0;
}
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes mqr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; will-change: auto; } }

/* ── section heads ──────────────────────────────────────────── */
.board-head { margin-bottom: clamp(36px, 5vw, 64px); }
.board-title {
  font-size: clamp(28px, 4.2vw, 52px);
  margin-top: 0.45em;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.board-sub { margin-top: 1rem; max-width: 44rem; color: var(--gray); word-break: keep-all; }
.en-sub { margin-top: 0.65rem; font-size: 14px; color: var(--gray); opacity: 0.75; max-width: 42rem; line-height: 1.45; }
.en-line { display: block; margin-top: 0.65rem; font-size: 13px; color: var(--gray); opacity: 0.72; line-height: 1.45; font-weight: 400; }
.ko-strong { display: block; color: var(--ink-soft); font-weight: 500; word-break: keep-all; }
.ko-title-sub { margin-top: 0.5rem; font-size: 15px; font-weight: 600; color: var(--gray); letter-spacing: 0.02em; }
.do-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: clamp(40px, 5vw, 70px); align-items: end;
}
@media (max-width: 760px) {
  .do-head { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; }
}
.mt-block { margin-top: clamp(28px, 3.5vw, 40px); }

/* ── stats wall ─────────────────────────────────────────────── */
.wall {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.5vw, 48px);
  box-shadow: 0 1px 0 var(--line);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-tile {
  background: var(--paper);
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 28px);
  min-height: 120px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1), background 0.35s;
}
.stat-tile:hover { transform: translateY(-4px); background: #ecebe6; }
.stat-tile b {
  font-family: var(--font-disp);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.stat-tile span { font-size: 11px; letter-spacing: 0.04em; color: var(--gray); margin-top: 0.8em; word-break: keep-all; }
.stat-tile .slash { font-style: normal; color: var(--blue); }
.stat-tile input {
  font-family: var(--font-disp);
  font-size: clamp(28px, 3.5vw, 44px);
  width: 100%;
  background: transparent; color: var(--ink);
  border: none; border-bottom: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}
.stat-tile input:focus { outline: none; border-bottom-color: var(--blue); }
.c-up { color: var(--up); }
.c-down { color: var(--down); }

/* ── DJT policy flow cards ──────────────────────────────────── */
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .policy-grid { grid-template-columns: 1fr; } }
.policy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}
.policy-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.tier-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.2em 0.7em; border-radius: 99px;
  border: 1px solid var(--line); color: var(--gray); background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.tier-badge.tier-hi { border-color: var(--blue); color: var(--blue); }
.policy-date { margin-left: auto; font-size: 11px; color: var(--gray); font-variant-numeric: tabular-nums; }
.policy-title { margin: 0.55rem 0 0.75rem; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; word-break: keep-all; }

/* signature: half-life decay bar (blue on paper) */
.decay-row { display: flex; align-items: center; gap: 10px; }
.decay-track { flex: 1; height: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.decay-fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width 0.6s ease; }
.decay-fill.stale { background: var(--gray); }
.decay-label { font-size: 10.5px; color: var(--gray); white-space: nowrap; font-variant-numeric: tabular-nums; }
.decay-label b { color: var(--ink-soft); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .decay-fill { transition: none; } }

.policy-tickers { margin-top: 0.65rem; display: flex; flex-wrap: wrap; gap: 5px; }
.tk {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.15em 0.7em; border-radius: 99px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ── APEX board: ink-fill rows ──────────────────────────────── */
.do-rows { border-top: 1px solid var(--line); }
.do-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 30px) 0;
  overflow: hidden;
  gap: 1rem;
  cursor: pointer;
}
.do-row .fill {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.do-row:hover .fill, .do-row:focus-visible .fill, .do-row.selected .fill { transform: scaleY(1); }
.do-row > * { position: relative; z-index: 1; }
.do-row:focus-visible { outline: none; }
.do-row .nm {
  font-family: var(--font-disp);
  font-size: clamp(28px, 5vw, 72px);
  text-transform: uppercase; line-height: 1;
  transition: color 0.35s, transform 0.45s cubic-bezier(0.2, 0.65, 0.25, 1);
  display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
}
.do-row:hover .nm, .do-row:focus-visible .nm, .do-row.selected .nm {
  color: var(--paper);
  transform: translateX(clamp(8px, 1.5vw, 24px));
}
.action-chip {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--blue); text-transform: none;
}
.action-chip.a-buy { color: var(--up); }
.action-chip.a-frozen { color: var(--down); }
.action-chip.a-watch { color: var(--gray); }
.do-row:hover .action-chip, .do-row:focus-visible .action-chip, .do-row.selected .action-chip { color: #7ea0ff; }
.apex-no {
  font-family: var(--font-disp);
  font-size: 0.5em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.do-row:hover .apex-no, .do-row:focus-visible .apex-no, .do-row.selected .apex-no { color: #7ea0ff; }
.do-row .meta {
  font-size: 12px; letter-spacing: 0.02em; color: var(--gray);
  text-align: right; max-width: 420px;
  transition: color 0.35s;
  font-variant-numeric: tabular-nums;
}
.do-row:hover .meta, .do-row:focus-visible .meta, .do-row.selected .meta { color: rgba(242, 241, 237, 0.78); }
.do-row .meta .up { color: var(--up); }
.do-row .meta .down { color: var(--down); }
.do-row:hover .meta .up, .do-row:hover .meta .down,
.do-row:focus-visible .meta .up, .do-row:focus-visible .meta .down,
.do-row.selected .meta .up, .do-row.selected .meta .down { color: inherit; opacity: 0.95; }
.meta-line { margin-top: 0.35rem; opacity: 0.9; letter-spacing: 0.01em; word-break: keep-all; }
.meta-src { margin-top: 0.35rem; font-size: 10px; opacity: 0.65; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .do-row { grid-template-columns: 1fr; }
  .do-row .meta { text-align: left; }
}

/* ── fire mission card ──────────────────────────────────────── */
.mission-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }
.brief-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  min-height: 220px;
}
.brief-card.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.brief-card h3 {
  font-family: var(--font-disp);
  font-size: clamp(26px, 3vw, 40px);
  text-transform: uppercase; line-height: 1;
  margin: 0.4em 0 0.7em;
  font-weight: 400;
}
.brief-card p { color: var(--gray); font-size: 15px; line-height: 1.65; margin: 0; word-break: keep-all; }
.brief-card.dark p { color: rgba(242, 241, 237, 0.72); }
.brief-card.dark .tag { color: #7ea0ff; }
.brief-card.dark .en-line { color: rgba(242, 241, 237, 0.5); }

.mission-empty { color: var(--gray); font-size: 15px; word-break: keep-all; }

.stack-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 0.9rem 0 0.6rem; background: rgba(242,241,237,0.14); }
.stack-seg { height: 100%; }
.seg-fund { background: var(--blue); }
.seg-djt { background: #7ea0ff; }
.seg-cat { background: rgba(242, 241, 237, 0.75); }
.seg-tech { background: rgba(242, 241, 237, 0.35); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 11.5px; color: rgba(242, 241, 237, 0.6); }
.stack-legend .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.stack-legend b { color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--gray); word-break: keep-all; }
.kv .v { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; }
.kv .v.blue { color: var(--blue); }
.kv .v.up { color: var(--up); }
.kv .v.down { color: var(--down); }

.rule-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border-radius: 12px;
  font-size: 12.5px; color: var(--gray); line-height: 1.6; word-break: keep-all;
}
.rule-note b { color: var(--blue); font-weight: 700; }

/* ── tranche plan ───────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: clamp(16px, 1.8vw, 20px); word-break: keep-all;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .ans { margin-top: 0.75rem; color: var(--gray); max-width: 58ch; word-break: keep-all; line-height: 1.7; }

/* ── footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 110px) var(--gut) 0;
  position: relative; overflow: hidden;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: clamp(40px, 5vw, 70px); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 241, 237, 0.45); margin: 0 0 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; font-size: 14px; }
.site-footer a:hover { color: #7ea0ff; }
.foot-lead { color: var(--paper); word-break: keep-all; }
.foot-meta { margin-top: 1rem; font-size: 13px; color: rgba(242, 241, 237, 0.5); word-break: keep-all; }
.foot-bar {
  border-top: 1px solid rgba(242, 241, 237, 0.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem 0 1.4rem;
  font-size: 12px; color: rgba(242, 241, 237, 0.45); letter-spacing: 0.03em;
}
.wordmark {
  font-family: var(--font-disp);
  font-size: clamp(48px, 12vw, 140px);
  line-height: 0.85; letter-spacing: 0.02em; text-transform: uppercase;
  color: rgba(242, 241, 237, 0.06);
  pointer-events: none; display: block; white-space: nowrap; padding-bottom: 0.15em;
}
.wordmark i { font-style: normal; color: rgba(47, 99, 242, 0.2); }
