/* =========================================================
   CVA Coffee Awards · Design System
   Editorial Dark (production theme)
   ========================================================= */

:root {
  /* Type */
  --ff-display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --ff-body: "Pretendard Variable", "Pretendard", -apple-system, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Editorial Dark (default) */
  --bg: oklch(0.14 0.008 60);
  --bg-elev: oklch(0.18 0.010 60);
  --bg-card: oklch(0.20 0.012 65);
  --line: oklch(0.28 0.012 65);
  --line-strong: oklch(0.38 0.014 65);
  --ink: oklch(0.94 0.018 80);
  --ink-2: oklch(0.78 0.020 75);
  --ink-3: oklch(0.58 0.018 70);
  --ink-4: oklch(0.42 0.014 65);
  --gold: oklch(0.78 0.115 85);
  --gold-soft: oklch(0.68 0.085 80);
  --gold-deep: oklch(0.58 0.105 70);
  --gold-glow: oklch(0.78 0.115 85 / 0.18);
  --silver: oklch(0.78 0.008 80);
  --bronze: oklch(0.66 0.075 50);
  --accent: var(--gold);
  --success: oklch(0.72 0.13 150);
  --live: oklch(0.72 0.18 28);
  --grid-line: oklch(0.28 0.010 60 / 0.5);
  --hero-overlay: linear-gradient(180deg, transparent 0%, rgba(20, 16, 12, 0.6) 50%, var(--bg) 100%);
  --section-pad-y: clamp(48px, 8vw, 112px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "tnum";
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }

/* === Type styles === */
.display, h1.display, h2.display {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.95;
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.kr-display { font-family: var(--ff-body); font-weight: 300; letter-spacing: -0.02em; }

/* === Containers === */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* === Top Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: var(--space-6);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 0;
  cursor: pointer;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--gold);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; gap: 10px; align-items: baseline; }
.brand-name em {
  font-style: italic;
  font-weight: 500;
}
.brand-name span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: var(--space-6);
  font-size: 13px;
  color: var(--ink-2);
}
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: var(--space-4); }
.lang-toggle {
  display: flex; gap: 2px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  letter-spacing: 0.15em;
}
.lang-toggle button.active { background: var(--ink); color: var(--bg); }

/* === Status pills === */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: color-mix(in oklch, var(--bg-elev) 60%, transparent);
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}
.status[data-state="live"] .dot { background: var(--live); box-shadow: 0 0 0 4px color-mix(in oklch, var(--live) 30%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.status[data-state="live"] { color: var(--ink); border-color: color-mix(in oklch, var(--live) 50%, var(--line)); }
.status[data-state="finals"] .dot { background: var(--gold); }
.status[data-state="finals"] { color: var(--gold); border-color: color-mix(in oklch, var(--gold) 40%, var(--line)); }
.status[data-state="closed"] .dot { background: var(--ink-3); }
.status[data-state="open"] .dot { background: var(--success); }
.status[data-state="open"] { color: var(--success); border-color: color-mix(in oklch, var(--success) 35%, var(--line)); }
.status[data-state="upcoming"] .dot { background: var(--ink-4); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* === Hero (list page) === */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-title {
  font-size: clamp(48px, 9vw, 128px);
  margin: 24px 0 0 0;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 28px;
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.hero-meta {
  display: flex; gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 6px; }
.hero-meta .num {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-meta .label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-feature {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.hero-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in oklch, var(--bg) 65%, transparent) 100%);
  pointer-events: none;
}
.hero-feature-tag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 1;
}
.hero-feature-content {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  z-index: 1;
}
.hero-feature-content h3 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  margin: 8px 0 4px 0;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-feature-content .sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* === Section header === */
.section { padding: var(--section-pad-y) 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4.5vw, 56px);
  margin: 12px 0 0 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head .count {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

/* === Competition Card Grid === */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
@media (min-width: 1100px) {
  .comp-grid.featured {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .comp-grid.featured .comp-card.feature {
    grid-row: span 2;
  }
}

.comp-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
  cursor: pointer;
  min-height: 320px;
}
.comp-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.comp-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
}
.comp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.comp-card:hover .comp-card-img img { transform: scale(1.04); }
.comp-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}
.comp-card.feature .comp-card-img { aspect-ratio: 4/5; }
.comp-card .badge-row {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: start;
  gap: 8px;
  z-index: 1;
}
.comp-card .code {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
}
.comp-card-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex-grow: 1;
}
.comp-card-body .meta {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; gap: 12px;
  align-items: center;
}
.comp-card-body .meta .dot-sep { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }
.comp-card-body h3 {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  margin: 4px 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.comp-card.feature .comp-card-body h3 { font-size: 36px; }
.comp-card-body h3 em { font-style: italic; color: var(--gold); }
.comp-card-body .host {
  font-size: 13px;
  color: var(--ink-3);
}
.comp-card-body .desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 6px;
  text-wrap: pretty;
}
.comp-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.comp-card-foot .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
  text-transform: uppercase;
}
.comp-card-foot .arrow svg { width: 14px; height: 14px; }

.progress-bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
  width: 100%;
}
.progress-bar .fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.6s ease;
}

/* === Button === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: oklch(0.15 0.02 60);
}

/* ====== DETAIL PAGE ====== */
.detail-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.detail-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.6) saturate(1.1);
}
.detail-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-overlay);
}
.detail-hero-inner { position: relative; z-index: 1; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-top: 32px;
}
.back-link:hover { color: var(--gold); }
.detail-eyebrow-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.detail-title {
  font-family: var(--ff-display);
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 0;
  text-wrap: balance;
  color: #fff;
}
.detail-title em { font-style: italic; color: var(--gold); }
.detail-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 36px;
  border-top: 1px solid color-mix(in oklch, var(--line-strong) 80%, transparent);
  max-width: 880px;
}
.detail-hero-stats > div { display: flex; flex-direction: column; gap: 8px; }
.detail-hero-stats .num {
  font-family: var(--ff-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}
.detail-hero-stats .label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
}

/* === Podium === */
.podium-section {
  padding: clamp(64px, 9vw, 128px) 0;
  background:
    radial-gradient(ellipse at 50% 30%, var(--gold-glow) 0%, transparent 55%),
    var(--bg);
}
.podium-eyebrow {
  text-align: center;
  margin-bottom: 14px;
}
.podium-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 88px);
  text-align: center;
  margin: 0 0 80px 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.podium-title em { font-style: italic; color: var(--gold); }

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: clamp(16px, 2vw, 28px);
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; gap: 24px; }
  .podium .step { aspect-ratio: auto !important; }
}

.podium .step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s;
}
.podium .step.first {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--gold) 12%, var(--bg-elev)) 0%, var(--bg-elev) 100%);
  box-shadow: 0 24px 64px -20px var(--gold-glow), inset 0 1px 0 color-mix(in oklch, var(--gold) 40%, transparent);
  transform: translateY(-32px);
  padding-top: 36px;
}
.podium .step.second { border-color: color-mix(in oklch, var(--silver) 35%, var(--line)); }
.podium .step.third { border-color: color-mix(in oklch, var(--bronze) 35%, var(--line)); }

.podium .rank-mark {
  font-family: var(--ff-display);
  font-size: 96px;
  font-style: italic;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink-4);
  margin-bottom: -8px;
}
.podium .step.first .rank-mark { color: var(--gold); font-size: 128px; }
.podium .step.second .rank-mark { color: var(--silver); }
.podium .step.third .rank-mark { color: var(--bronze); }

.podium .score-row {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.podium .score-row .score {
  font-family: var(--ff-mono);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.podium .step.first .score-row .score { color: var(--gold); font-size: 38px; }
.podium .score-row .max {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.podium .roastery {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.podium .step.first .roastery { font-size: 30px; }
.podium .roastery-en {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 2px;
}
.podium .props {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
}
.podium .props .row { display: flex; justify-content: space-between; gap: 12px; }
.podium .props .key {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
  flex-shrink: 0;
}
.podium .props .val { text-align: right; }

.medal-icon {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.podium .step.first .medal-icon { background: var(--gold); color: oklch(0.15 0.02 60); border-color: var(--gold); }
.podium .step.second .medal-icon { background: var(--silver); color: oklch(0.15 0.02 60); border-color: var(--silver); }
.podium .step.third .medal-icon { background: var(--bronze); color: #fff; border-color: var(--bronze); }

/* === Leaderboard === */
.leaderboard-section {
  padding: clamp(56px, 8vw, 112px) 0;
  background: var(--bg);
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.lb-row {
  display: grid;
  grid-template-columns: 56px 110px 1fr 200px 120px;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: background .2s;
}
.lb-row:hover { background: color-mix(in oklch, var(--bg-elev) 50%, transparent); }
.lb-row.head {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 8px;
  cursor: default;
}
.lb-row.head:hover { background: transparent; }
.lb-row .rank {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.lb-row .score-cell {
  font-family: var(--ff-mono);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lb-row .roastery-cell {
  display: flex; flex-direction: column; gap: 3px;
}
.lb-row .roastery-cell .name {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.lb-row .roastery-cell .city {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.lb-row .origin-cell {
  font-size: 13px;
  color: var(--ink-2);
}
.lb-row .process-cell {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: right;
}

@media (max-width: 760px) {
  .lb-row { grid-template-columns: 40px 1fr 80px; gap: 12px; }
  .lb-row .origin-cell, .lb-row .process-cell { display: none; }
  .lb-row.head .col-origin, .lb-row.head .col-process { display: none; }
}

/* === Radar / Descriptive === */
.cva-section {
  padding: clamp(56px, 8vw, 112px) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cva-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .cva-grid { grid-template-columns: 1fr; }
}

.radar-wrap {
  position: relative;
  background:
    radial-gradient(circle at center, color-mix(in oklch, var(--gold) 8%, transparent) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 36px);
  aspect-ratio: 1/1;
}

.entry-selector {
  display: flex; gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.entry-selector button {
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: transparent;
  transition: all .2s;
}
.entry-selector button:hover { border-color: var(--line-strong); }
.entry-selector button.active {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
}

.cva-side h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 56px);
  margin: 12px 0 8px 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.cva-side h2 em { font-style: italic; color: var(--gold); }
.cva-side .lead {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 50ch;
}

.attr-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.attr-bar {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  gap: 14px;
  align-items: center;
}
.attr-bar .name {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.attr-bar .track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.attr-bar .fill {
  position: absolute; inset-block: 0; left: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 2px;
  transition: width 0.8s ease;
}
.attr-bar .val {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink);
  text-align: right;
}

/* === Descriptors === */
.descriptor-section {
  padding: clamp(48px, 7vw, 96px) 0;
}
.descriptor-cloud {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.descriptor {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-family: var(--ff-display);
  letter-spacing: -0.005em;
  transition: all .2s;
}
.descriptor:hover { border-color: var(--gold); }
.descriptor .freq {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* === Timeline === */
.timeline-section {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%; right: 10%;
  height: 1px;
  background: var(--line);
}
.timeline .stage {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  text-align: center;
  position: relative;
  padding: 0 4px;
}
.timeline .stage .pip {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink-3);
  position: relative; z-index: 1;
  margin-top: 16px;
}
.timeline .stage.done .pip { background: var(--gold); border-color: var(--gold); }
.timeline .stage.active .pip { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 5px color-mix(in oklch, var(--live) 30%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.timeline .stage .name {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.timeline .stage.done .name { color: var(--ink); }
.timeline .stage .count {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.timeline .stage .count-label {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
}

/* === Footer === */
.footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h4 {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 16px 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 13px; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer-tag {
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  max-width: 28ch;
  line-height: 1.2;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}
.cva-stamp { display: flex; gap: 10px; align-items: center; }
.cva-stamp .dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* === State Screens === */
.state-section { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.state-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: var(--bg-elev);
  min-height: 280px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.state-card h3 {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 500;
  margin: 6px 0;
  letter-spacing: -0.01em;
}
.state-card .body {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  flex-grow: 1;
}
.state-card .accent-num {
  font-family: var(--ff-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}
.state-card .countdown {
  display: flex; gap: 14px; margin: 12px 0;
}
.state-card .countdown > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.state-card .countdown .num {
  font-family: var(--ff-mono);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.state-card .countdown .lbl {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* Live progress visualization */
.live-prog {
  position: relative;
  height: 6px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 14px;
}
.live-prog .fill {
  position: absolute;
  inset-block: 0; left: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 6px;
}
.live-prog .fill::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, transparent, var(--gold));
  filter: blur(4px);
  opacity: 0.8;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* SVG primitives */
.icon { width: 14px; height: 14px; flex-shrink: 0; }
.icon-lg { width: 20px; height: 20px; }

/* Section labels */
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 6px;
}
.section-eyebrow::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--line);
  max-width: 80px;
}
.section-eyebrow.center {
  justify-content: center;
}
.section-eyebrow.center::before {
  content: "";
  flex-grow: 0;
  width: 60px;
  height: 1px;
  background: var(--line);
}
.section-eyebrow.center::after {
  flex-grow: 0;
  width: 60px;
}
