/* ============================================================
   LOOP STUDIOS — Components
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, filter .25s;
}
.btn-grad {
  color: #11141a;
  background: var(--grad);
  background-size: 200% 100%;
  box-shadow: 0 8px 28px rgba(196,201,209,0.28);
}
.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong), 0 14px 36px rgba(196,201,209,0.35);
  animation: grad-pan 1.2s linear infinite;
}
.btn-grad:active { transform: translateY(0); }
/* Gold CTA — the one warm, high-intent action (rare ~10% gold) */
.btn-gold {
  color: var(--ink-on-gold);
  background: var(--grad-gold);
  background-size: 200% 100%;
  box-shadow: 0 8px 28px rgba(197,169,112,0.30);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
  animation: grad-pan 1.2s linear infinite;
}
.btn-gold:active { transform: translateY(0); }
.btn-ghost {
  color: var(--fg);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.875rem; }
.btn-lg { height: 60px; padding: 0 40px; font-size: 1.1rem; }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-bpm {
  color: var(--lime);
  background: var(--lime-10);
  border-color: var(--line-lime);
}
.chip-bpm .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.chip-genre { color: var(--fg-3); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  padding: 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card.hoverable:hover {
  border-color: var(--line-lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: calc(100% - 32px);
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(10,13,11,0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-link {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 0.875rem;
  color: var(--fg-3); padding: 8px 14px; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--fg); }
.nav-link[aria-current="page"] {
  color: #11141a;
  background: var(--grad);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }

/* ---- language toggle (subtle, silver — never gold) ---- */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px; background: rgba(255,255,255,0.03);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-4); padding: 6px 10px; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.lang-toggle button:hover { color: var(--fg-2); }
.lang-toggle button.is-active { color: var(--ink-on-accent); background: var(--lime); }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-right { justify-self: end; }
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    color: var(--fg); cursor: pointer; gap: 4px; flex-direction: column;
  }
  .nav-burger span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: .25s; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(7,9,8,0.92);
  backdrop-filter: blur(16px);
  display: none; flex-direction: column;
  justify-content: center; gap: 6px; padding: 0 32px;
}
.drawer.open { display: flex; }
.drawer .lang-toggle { align-self: flex-start; margin-top: 28px; }
@media (max-width: 900px) { .nav-right .lang-toggle { display: none; } }
@media (min-width: 901px) { .drawer .lang-toggle { display: none; } }
.drawer a:not(.btn) {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -0.03em;
  color: var(--fg-3); padding: 8px 0; border-bottom: 1px solid var(--line);
}
.drawer a:not(.btn)[aria-current="page"] { color: var(--lime); }
.drawer .btn-grad { color: #11141a; }

/* ============================================================
   LOGO mark
   ============================================================ */
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 900;
  font-size: 1.05rem; letter-spacing: -0.02em; color: var(--fg);
}
.logo-mark {
  position: relative; width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(196,201,209,0.4), 0 6px 18px rgba(196,201,209,0.3);
}
.logo-mark::before,
.logo-mark::after {
  content: ""; position: absolute; border-radius: 50%;
}
.logo-mark::before { width: 13px; height: 13px; border: 2.5px solid #11141a; }
.logo-mark::after { width: 4px; height: 4px; background: #11141a; }
.logo small {
  font-family: var(--mono); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.24em; color: var(--fg-4); text-transform: uppercase;
}

/* ---------- Brand logo (extracted from the official mark) ---------- */
.nav-brand { display: inline-flex; align-items: center; padding: 4px 6px; }
.brand-logo { height: 26px; width: auto; display: block; }
@media (max-width: 480px){ .brand-logo { height: 22px; } }
.footer-logo { display: inline-block; }
.footer-logo img { height: 34px; width: auto; display: block; }

/* ---------- Hero "Background Paths" (vanilla port of 21st.dev) ---------- */
.hero-paths {
  position: absolute; z-index: 0;
  /* start just beneath the floating nav (nav sits at top:16px) */
  top: clamp(78px, 8.5vw, 98px); left: 0; right: 0; bottom: 0;
  pointer-events: none; overflow: hidden;
  color: #cfd3da; /* silver strokes on the dark hero */
  opacity: 0; transition: opacity 1.2s ease;
  /* feather the far left/right edges so the band reads full-width */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.hero-paths.ready, .hero-paths:has(svg) { opacity: 0.6; }
.hero-paths-svg { width: 100%; height: 100%; display: block; }
.hp-flow {
  animation-name: hp-flow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
/* dash (0.3) + gap (1) = 1.3 of the normalised length; offsetting by -1.3
   slides one segment exactly one cycle, so the flow loops seamlessly */
@keyframes hp-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1.3; } }

/* ---------- Hero WebGL audiowave (legacy, unused on index) ---------- */
.hero-shader {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
  /* symmetric horizontal feather only — keeps the waveform edge-to-edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-shader.ready { opacity: 0.92; }
.hero-logo {
  width: clamp(248px, 49vw, 660px);
  height: auto; display: block;
  transform-origin: left center;
}
.hero-logo-wrap { margin: 0; line-height: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: #060807; }
.footer-cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-lime);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(196,201,209,0.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: clamp(48px, 8vw, 96px) 32px;
  text-align: center;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding: 80px 0 56px;
}
.footer-col h4 {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-4);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--fg-3); font-size: 0.95rem; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 24px 0 40px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; color: var(--fg-4); letter-spacing: 0.04em;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--fg-3);
  transition: .2s;
}
.social-row a:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ============================================================
   AUDIO PLAYER (built by player.js)
   ============================================================ */
.player {
  --pad: 18px;
  position: relative;
  display: grid;
  align-items: center;
  gap: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  padding: var(--pad);
  transition: border-color .3s, box-shadow .3s;
}
.player.is-playing { border-color: var(--line-lime); box-shadow: 0 0 0 1px rgba(196,201,209,0.18), 0 20px 50px rgba(0,0,0,0.45); }

/* default row layout: [play] [meta+wave] [meta-right] */
.player-row { grid-template-columns: auto 1fr auto; }

/* featured (big) layout */
.player-featured { --pad: 22px; grid-template-columns: auto 1fr; gap: 22px; }
.player-featured .wave { height: 64px; }

/* play / pause button */
.play-btn {
  position: relative; flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--grad);
  color: #11141a;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(196,201,209,0.3);
  transition: transform .2s, box-shadow .2s;
}
.play-btn:hover { transform: scale(1.06); box-shadow: var(--glow-strong); }
.play-btn:active { transform: scale(0.96); }
.play-btn svg { width: 20px; height: 20px; }
.play-btn .ic-pause { display: none; }
.player.is-playing .play-btn .ic-play { display: none; }
.player.is-playing .play-btn .ic-pause { display: block; }
.play-btn.sm { width: 44px; height: 44px; }
.play-btn.sm svg { width: 16px; height: 16px; }
.play-btn.lg { width: 68px; height: 68px; }
.play-btn.lg svg { width: 24px; height: 24px; }

/* meta */
.player-meta { min-width: 0; }
.player-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--fg); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.85rem; color: var(--fg-3); margin: 2px 0 0; }
.player-featured .player-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.player-featured .player-artist { font-size: 0.95rem; }

/* waveform */
.wave { position: relative; width: 100%; height: 40px; cursor: pointer; }
.wave canvas { width: 100%; height: 100%; display: block; }

.player-times { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; color: var(--fg-4); margin-top: 8px; letter-spacing: 0.05em; }
.player-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* now-playing eq — square segments filling from the bottom (VU-meter feel) */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 21px; }
.eq i {
  width: 5px; height: 100%;
  clip-path: inset(66% 0 0 0);
  background: repeating-linear-gradient(to top, var(--lime) 0 5px, transparent 5px 8px);
}
.is-playing .eq i { animation: eq-fill 0.8s ease-in-out infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: 0.18s; }
.is-playing .eq i:nth-child(3) { animation-delay: 0.36s; }
.is-playing .eq i:nth-child(4) { animation-delay: 0.10s; }
@keyframes eq-fill {
  0%, 100% { clip-path: inset(66% 0 0 0); }
  50% { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   TRACK LIST
   ============================================================ */
.tracklist { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.track {
  display: grid;
  grid-template-columns: 26px auto 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s;
}
.track:last-child { border-bottom: 0; }
.track:hover { background: rgba(196,201,209,0.04); }
.track.is-playing { background: rgba(196,201,209,0.07); }
.track-index { font-family: var(--mono); font-size: 0.75rem; color: var(--fg-4); }
.track.is-playing .track-index { color: var(--lime); }
.track-play {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.track:hover .track-play { border-color: var(--lime); color: var(--lime); }
.track.is-playing .track-play { background: var(--grad); color: #11141a; border-color: transparent; }
.track-play svg { width: 13px; height: 13px; }
.track-play .ic-pause { display: none; }
.track.is-playing .track-play .ic-play { display: none; }
.track.is-playing .track-play .ic-pause { display: block; }
.track-name { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--fg); letter-spacing: -0.01em; }
.track-artist { font-size: 0.85rem; color: var(--fg-3); }
.track-dur { font-family: var(--mono); font-size: 0.8rem; color: var(--fg-4); }
.track-mini-wave { width: 96px; height: 26px; }
.track-mini-wave canvas { width: 100%; height: 100%; display: block; }

@media (max-width: 720px) {
  .track { grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px 16px; }
  .track-index, .track-mini-wave, .track .chip-genre { display: none; }
}

/* ============================================================
   BEAT CARDS (selected loops grid — built by player.js)
   ============================================================ */
.beat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.beat-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
}
.beat-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.beat-card.is-playing { border-color: var(--gold-line); animation: card-pulse 1.9s ease-in-out infinite; }
@keyframes card-pulse {
  0%, 100% { border-color: rgba(197,169,112,0.30); box-shadow: 0 0 0 1px rgba(197,169,112,0.20), var(--shadow); }
  50%      { border-color: rgba(197,169,112,0.65); box-shadow: 0 0 0 1px rgba(197,169,112,0.50), 0 0 26px 2px rgba(197,169,112,0.28), var(--shadow); }
}
/* swap play -> pause on the active card (base .play-btn hides .ic-pause) */
.beat-card.is-playing .beat-play .ic-play { display: none; }
.beat-card.is-playing .beat-play .ic-pause { display: block; }

/* cover (placeholder art or real <img>) */
.beat-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(125% 105% at 28% 0%, var(--sheen, rgba(196,201,209,0.18)), transparent 58%),
    linear-gradient(158deg, #181a1f 0%, #0b0c0e 100%);
}
.beat-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* generated placeholder title — stylised, baked into the artwork */
.beat-cover-title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6%;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 0.86;
  letter-spacing: -0.035em; text-transform: uppercase; text-align: center;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.92; transform: rotate(-5deg) scale(1.04);
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
  pointer-events: none; user-select: none;
}
.beat-card:hover .beat-cover-title { transform: rotate(-5deg) scale(1.08); transition: transform .5s cubic-bezier(.16,1,.3,1); }

/* BPM badge */
.beat-bpm {
  position: absolute; top: 11px; right: 11px;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--fg-2);
  background: rgba(7,9,8,0.6); border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 8px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* overlapping play button — silver by default, gold while this card plays */
.beat-play.play-btn {
  position: absolute; left: 14px; bottom: 14px;
  width: 46px; height: 46px;
  background: var(--grad); color: var(--ink-on-accent);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
.beat-play.play-btn:hover { transform: scale(1.08); }
.beat-card.is-playing .beat-play.play-btn {
  background: var(--grad-gold); color: var(--ink-on-gold);
  box-shadow: 0 8px 24px rgba(197,169,112,0.4);
}

/* info */
.beat-info { padding: 16px 16px 18px; }
.beat-title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.beat-key { font-family: var(--mono); font-size: 0.8rem; color: var(--fg-3); margin: 4px 0 0; }
.beat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.beat-tag {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); border: 1px solid var(--line-2); background: rgba(255,255,255,0.02);
  padding: 5px 9px; border-radius: 7px;
}

@media (max-width: 1080px) { .beat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .beat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 440px)  { .beat-grid { grid-template-columns: 1fr 1fr; } .beat-cover-title { font-size: 1.4rem; } }

/* ============================================================
   FORM
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-4); }
.input, .textarea {
  font-family: var(--body); font-size: 1rem; color: var(--fg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-5); }
.input:focus, .textarea:focus {
  border-color: var(--lime);
  background: rgba(196,201,209,0.04);
  box-shadow: 0 0 0 3px rgba(196,201,209,0.12);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field.err .input, .field.err .textarea { border-color: #ff5a5a; box-shadow: 0 0 0 3px rgba(255,90,90,0.12); }
.field-msg { font-size: 0.78rem; color: #ff7a7a; min-height: 1em; }

/* ============================================================
   Decorative: beat-grid ticks + orbs
   ============================================================ */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(196,201,209,0.5), rgba(150,156,168,0.12) 45%, transparent 70%);
}
.beatgrid {
  display: flex; gap: 0; align-items: stretch; height: 100%;
}
.beatgrid i { flex: 1; border-left: 1px solid var(--line); }
.beatgrid i:nth-child(4n+1) { border-left-color: var(--line-lime); }

/* ---------- Styled image placeholder ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 13px, rgba(255,255,255,0.012) 13px 26px),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-ph);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-4); text-align: center; padding: 0 12px;
}
.ph-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); background: var(--lime-10); border: 1px solid var(--line-lime);
  padding: 4px 8px; border-radius: 6px;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015); padding: 18px 0; position: relative; z-index: 1;
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 2rem);
  letter-spacing: -0.02em; color: var(--fg-3); padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stat ---------- */
.stat-num {
  font-family: var(--display); font-weight: 900; line-height: 0.85;
  font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.04em;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
}
/* live signal stays gold — the warm "now / in session" pulse (part of the ~10% gold) */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse-dot 1.4s ease-in-out infinite; }

/* staggered hero letters — opacity stays 1 always (never hide content behind
   a JS-triggered transition; only transform animates, frozen state still visible) */
.kin { display: inline-block; }
.kin > span { display: inline-block; opacity: 1; transform: translateY(0.2em); transition: transform .85s cubic-bezier(.16,1,.3,1); }
.kin.in > span { transform: none; }
