/* ==========================================================================
   JUDE BRIDEWELL — layout + components
   Reads only from tokens.css. No hardcoded colors below this line.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;          /* clears the sticky nav on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.1; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }

a { color: var(--accent-hot); text-decoration: none; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   2. AMBIENT BACKGROUND
   A fixed blueprint grid + a soft accent bloom. Purely decorative.
   -------------------------------------------------------------------------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 50% -6%,  rgba(37, 99, 255, 0.30), transparent 62%),
    radial-gradient(ellipse 44% 34% at 88% 12%,  rgba(56, 189, 248, 0.14), transparent 60%);
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--pad-section);
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: var(--ls-display);
}

.section-head .lead {
  margin-top: 0.9rem;
  max-width: 56ch;
  color: var(--muted);
}

/* Section eyebrow: "01 / THE PITCH" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--accent-hot);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-strong), transparent);
}
.eyebrow .num { color: var(--muted-dim); }

/* --------------------------------------------------------------------------
   4. THE SYSTEM PANEL
   The signature motif — a HUD window with cut corner brackets.
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--accent-hot);
  border-style: solid;
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease);
}
.panel::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: var(--r);
}
.panel::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: var(--r);
}

/* --------------------------------------------------------------------------
   5. ATOMS — badge, button, rank chip
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--accent-hot);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent-hot);
  color: var(--text);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 26px -6px var(--accent-glow);
}
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-hot); }

/* Numbered chip on cards — angular, not rounded. */
.rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  background: rgba(3, 7, 18, 0.82);
  border: 1px solid var(--border-strong);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 84% 100%, 0 100%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-hot);
}

/* Live indicator dot */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-dim);
  flex: none;
}
.dot.is-live {
  background: var(--accent-hot);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* --------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav.is-stuck {
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .sigil {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  box-shadow: 0 0 20px -4px var(--accent-glow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent-hot); }
.nav-links a .note { display: none; }

/* the number key, shown so the shortcut is discoverable */
.nav-links kbd {
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--muted-dim);
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav-links a:hover kbd,
.nav-links a.is-active kbd {
  color: var(--accent-hot);
  border-color: var(--border-strong);
}

/* acknowledge a key press */
.nav-links a.hit { animation: navHit 0.45s var(--ease-out); }
@keyframes navHit {
  0%   { color: #fff; text-shadow: 0 0 14px var(--accent-glow); }
  100% { color: var(--accent-hot); text-shadow: none; }
}

.nav-cta { margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }

/* hamburger, desktop-hidden */
.nav-toggle {
  display: none;
  margin-left: 0.75rem;
  padding: 0.55rem;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent-hot);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   MOBILE MENU
   Below 900px the links previously just vanished, leaving no navigation at
   all. They now become a real panel.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    z-index: 95;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }

  .nav-links a {
    gap: 0.85rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--text);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a .note {
    display: block;
    margin-left: auto;
    font-size: var(--fs-micro);
    letter-spacing: var(--ls-micro);
    text-transform: uppercase;
    color: var(--muted-dim);
  }
  .nav-links kbd { min-width: 22px; height: 22px; font-size: 0.6875rem; }
}

/* --------------------------------------------------------------------------
   CONTROLS PANEL  (press ?)
   -------------------------------------------------------------------------- */

.keys {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.keys[hidden] { display: none; }

.keys-panel {
  width: min(460px, 100%);
  padding: 1.6rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow), 0 0 60px -14px var(--accent-glow);
}

.keys-head {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 1.1rem;
}

.keys-list { display: grid; gap: 0.55rem; }
.keys-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.keys-list span { color: var(--muted); }

.keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hot);
}

.keys-foot {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.keys-foot kbd { min-width: 18px; height: 18px; font-size: 0.625rem; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */

/* Full-viewport, centered cold open. This is the site's opening statement,
   so it gets the whole screen and nothing competes with the name. */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-block: clamp(3rem, 9vw, 6rem);
  overflow: hidden;
  text-align: center;
  --mx: 50%;
  --my: 45%;
}

/* drifting motes */
.hero-motes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-motes i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent-hot);
  opacity: 0;
  animation: heroRise linear infinite;
}
@keyframes heroRise {
  0%   { opacity: 0;    transform: translateY(0) scale(0.6); }
  12%  { opacity: 0.85; }
  85%  { opacity: 0.5; }
  100% { opacity: 0;    transform: translateY(-88svh) scale(1.1); }
}

/* pointer-tracked glow: the page notices you */
.hero-cursor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--mx) var(--my),
              rgba(56, 189, 248, 0.15), transparent 62%);
  transition: background 0.18s linear;
}

/* concentric pulse rings */
.hero-rings {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(76vmin, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-hot);
  border-radius: 50%;
  opacity: 0;
  animation: heroRing 4.4s var(--ease-out) infinite;
}
.hero-rings i:nth-child(2) { animation-delay: 1.45s; }
.hero-rings i:nth-child(3) { animation-delay: 2.9s; }
@keyframes heroRing {
  0%   { opacity: 0.28; transform: scale(0.32); }
  100% { opacity: 0;    transform: scale(1); }
}

.hero .wrap { position: relative; z-index: 2; }

/* ---- boot log ----------------------------------------------------------- */

.hero-boot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  text-align: left;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.6vw, 0.84rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hot);
}
.hero-boot:empty { display: none; }
.hero-boot li { padding: 0.28rem 0; white-space: nowrap; }
.hero-boot li.done { color: var(--muted-dim); }
.hero-boot li::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 0.35em;
  background: var(--accent-hot);
  vertical-align: -0.15em;
  animation: caret 0.9s steps(1) infinite;
}
.hero-boot li.done::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }

/* ---- the reveal --------------------------------------------------------- */

.hero-reveal {
  opacity: 0;
  transform: scale(0.972);
  transition: opacity 0.85s var(--ease-out), transform 1.05s var(--ease-out);
}
.hero-reveal.is-on { opacity: 1; transform: none; }

/* No JS, or motion turned off: the hero is simply present. */
html:not(.has-hero-js) .hero-reveal,
.hero-reveal.is-instant { opacity: 1; transform: none; transition: none; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 1.6rem;
}

.hero-title {
  position: relative;
  font-size: clamp(2.9rem, 12vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.4vw, 0.8rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-line { position: relative; display: block; }
.hero-line.accent {
  color: var(--accent);
  text-shadow: 0 0 46px var(--accent-glow);
}

/* chromatic split, fires on hover */
.hero-line::before,
.hero-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-line::before { color: #FF3B6B; }
.hero-line::after  { color: var(--accent-hot); }
.hero-title:hover .hero-line::before { animation: splitL 0.5s var(--ease-out) 1; }
.hero-title:hover .hero-line::after  { animation: splitR 0.5s var(--ease-out) 1; }
@keyframes splitL {
  0%   { opacity: 0.85; transform: translate(-15px, 3px); }
  100% { opacity: 0; transform: none; }
}
@keyframes splitR {
  0%   { opacity: 0.85; transform: translate(15px, -3px); }
  100% { opacity: 0; transform: none; }
}

/* ---- per-character decode ----------------------------------------------- */

.hero-ch {
  display: inline-block;
  white-space: pre;
  will-change: transform, filter, opacity;
}
.hero-ch.scramble {
  color: var(--accent-hot);
  opacity: 0.55;
  transform: translateY(0.06em) scaleY(1.12);
}
.hero-ch.land { animation: heroLand 0.5s var(--ease-out) both; }
@keyframes heroLand {
  0%   { opacity: 0; transform: translateY(0.32em) scale(1.45); filter: blur(12px); }
  55%  { opacity: 1; filter: blur(0); }
  72%  { transform: translateY(-0.03em) scale(0.99); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.hero-ch.wave { animation: heroWave 0.48s var(--ease-out) both; }
@keyframes heroWave {
  0%   { filter: brightness(1); transform: none; }
  40%  { filter: brightness(2.2) drop-shadow(0 0 20px var(--accent-glow));
         transform: translateY(-0.05em); }
  100% { filter: brightness(1); transform: none; }
}

/* scanline that sweeps as the name resolves */
.hero-scan {
  position: absolute;
  left: -6%;
  right: -6%;
  height: 2px;
  background: linear-gradient(90deg, transparent,
              var(--accent-hot) 18%, #fff 50%, var(--accent-hot) 82%, transparent);
  box-shadow: 0 0 26px 4px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
}
.hero-scan.run { animation: heroScan 1.1s var(--ease-out) both; }
@keyframes heroScan {
  0%   { opacity: 0; top: -8%; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; top: 108%; }
}

.hero-lead {
  margin: 1.6rem auto 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   8. STATUS PANEL — the character sheet
   -------------------------------------------------------------------------- */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; } }

.status-card { padding: clamp(1.4rem, 3vw, 2rem); }

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-soft);
}
.status-head .title {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--muted);
}

.status-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-hot);
}

/* identity rows: POSITION / CLUB / CLASS OF */
.field-list { display: grid; gap: 0.9rem; }
.field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--border-soft);
}
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.field dt {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--muted);
}
.field dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* skill bars */
.skills { display: grid; gap: 1.15rem; }

.skill-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.skill-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.skill-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hot);
}

.meter {
  position: relative;
  height: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
}
/* Scroll-linked: --fill is the target (0–1, set inline per skill), --p is
   how far the panel has scrolled in. The bar fills as you arrive.
   scaleX runs on the compositor, so this never triggers layout. */
.meter-fill {
  display: block;              /* it's a <span> — inline would ignore width/height */
  height: 100%;
  width: 100%;
  transform: scaleX(calc(var(--fill, 1) * var(--p, 1)));
  transform-origin: left center;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-hot));
  box-shadow: 0 0 16px -2px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   9. STAT TILES
   -------------------------------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
}

.stat {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
}
.stat .num {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat .num .suffix { color: var(--accent-hot); }
.stat .num .pending { color: var(--muted-dim); }
.stat .label {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. MEDIA SLOT — placeholder for a future embed
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.media iframe { width: 100%; height: 100%; border: 0; display: block; }

.media-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(-45deg,
      rgba(56,189,248,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, var(--surface-hi), var(--surface-2));
}
.media-slot .play {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--accent-hot);
  border-radius: 50%;
  color: var(--accent-hot);
  box-shadow: 0 0 30px -6px var(--accent-glow);
}
.media-slot .cap {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. CARD GRIDS
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
a.card { color: inherit; }
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-acc);
}

.card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.card-art > svg,
.card-art > img { width: 100%; height: 100%; object-fit: cover; }

/* darkens the art bottom so the title always has contrast */
.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,7,18,0.9), transparent 58%);
}

.card-body { padding: 1rem 1.1rem 1.15rem; }
.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-body .sub {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.tag {
  padding: 0.2rem 0.55rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. TRACK LIST — studio
   -------------------------------------------------------------------------- */

.tracks { display: grid; gap: 0.7rem; }

.track {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.track:hover { border-color: var(--border-strong); background: var(--surface-2); }

.track .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-dim);
}
.track .name { font-weight: 700; color: var(--text); }
.track .meta {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.track .wave { min-width: 0; opacity: 0.75; }
.track .wave svg { width: 100%; height: 30px; }
.track .len {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .track { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .track .wave { display: none; }
}

/* --------------------------------------------------------------------------
   13. LIVE
   -------------------------------------------------------------------------- */

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }

.schedule { padding: clamp(1.25rem, 2.6vw, 1.75rem); }

.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border-soft);
}
.slot:last-child { border-bottom: 0; }
.slot .day {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--accent-hot);
}
.slot .what { font-size: 0.875rem; color: var(--text-2); }
.slot .time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.social:hover { color: var(--accent-hot); border-color: var(--border-strong); }

/* --------------------------------------------------------------------------
   14. BRANDS
   -------------------------------------------------------------------------- */

.brand {
  padding: clamp(1.35rem, 2.8vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-hot);
}
.brand h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand .tagline { font-size: 0.9rem; color: var(--muted); }
.brand .status {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* --------------------------------------------------------------------------
   15. CONTACT + FOOTER
   -------------------------------------------------------------------------- */

.contact-card {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  text-align: center;
}
/* the eyebrow's trailing rule only reads correctly left-aligned */
.contact-card .eyebrow { justify-content: center; }
.contact-card .eyebrow::after { display: none; }
.contact-card h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: var(--ls-display);
}
.contact-card .lead {
  margin: 1rem auto 0;
  max-width: 48ch;
  color: var(--muted);
}
.contact-card .hero-actions { justify-content: center; }

.footer {
  position: relative;
  z-index: 1;
  padding-block: 2.5rem;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL
   -------------------------------------------------------------------------- */

/* Scroll IS the timeline. scroll.js publishes --p (0→1) onto every
   [data-scroll] element; all motion below is declared as calc() on it.
   --p inherits, so children animate off their section's progress too.

   The default is 1 (finished). scroll.js stamps .has-scroll on <html> the
   moment it runs, which is what arms the 0 start — so if the script never
   loads, the page renders complete instead of blank. */

[data-scroll] { --p: 1; }
.has-scroll [data-scroll] { --p: 0; }

/* For "leave", --p:1 means "fully scrolled past", i.e. INVISIBLE — the
   opposite of the safe default. Without this, a failed scroll.js would hide
   the hero completely rather than showing it. */
[data-scroll="leave"] { --p: 0; }

[data-scroll="enter"] {
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 22px));
  will-change: opacity, transform;
}

/* The hero drifts and dims only as you scroll PAST it — hence "leave", not
   "transit". It must be fully opaque at rest on load. */
.hero[data-scroll="leave"] .wrap {
  opacity: calc(1 - var(--p) * 1.15);
  transform: translateY(calc(var(--p) * -60px));
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll], .has-scroll [data-scroll] { --p: 1 !important; }
  [data-scroll="enter"] { opacity: 1; transform: none; }
  .hero[data-scroll="leave"] .wrap { opacity: 1; transform: none; }
}
