/* ============================================================
   Hibascape
   ============================================================ */

:root {
  --ink:      #05060d;
  --ink-2:    #0a0b18;
  --ink-3:    #10122a;
  --cyan:     #00E5FF;
  --magenta:  #FF2FB9;
  --violet:   #7B2FF7;
  --lime:     #6BFF9E;
  --amber:    #FF9A1F;
  --text:     #F4FAFF;
  --dim:      rgba(238, 247, 255, .82);
  --dim-2:    rgba(238, 247, 255, .64);
  --line:     rgba(140, 200, 255, .16);
  --sweep:    linear-gradient(96deg, var(--cyan) 0%, var(--violet) 38%, var(--magenta) 68%, var(--amber) 100%);
  --font:     'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:     ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Lenis owns the scroll once it is running; native smooth would fight it. */
html.has-lenis { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 { text-wrap: balance; }
img { max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: var(--cyan); color: #04121a; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   Hero
   ============================================================ */

#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block; pointer-events: none;
}

/* A whisper of grain over everything — stops the big gradients banding. */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 18vh clamp(20px, 4vw, 64px) clamp(60px, 12vh, 130px);
}
.hero__inner { position: relative; z-index: 3; width: 100%; max-width: 1720px; margin: 0 auto; }

.hero__eyebrow {
  margin: 0 0 22px; font-size: clamp(10px, 1vw, 12px); font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase; color: var(--cyan);
}

.hero__title {
  /* background-clip:text crops to the box, so the descender on "p" needs
     headroom — hence the looser line-height and the padding below. */
  margin: 0 0 -.1em;
  padding-bottom: .16em;
  font-size: clamp(66px, 15vw, 230px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.04em;
  background: var(--sweep);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 60px rgba(123, 47, 247, .5));
  animation: sweep 16s ease-in-out infinite;
}
@keyframes sweep {
  0%   { background-position:   0% 0; filter: drop-shadow(0 0 60px rgba(0,229,255,.5))   hue-rotate(0deg); }
  25%  { filter: drop-shadow(0 0 60px rgba(123,47,247,.55)) hue-rotate(40deg); }
  50%  { background-position: 100% 0; filter: drop-shadow(0 0 70px rgba(255,47,185,.6))  hue-rotate(90deg); }
  75%  { filter: drop-shadow(0 0 60px rgba(255,154,31,.5))  hue-rotate(140deg); }
  100% { background-position:   0% 0; filter: drop-shadow(0 0 60px rgba(0,229,255,.5))   hue-rotate(200deg); }
}

.hero__lede {
  margin: 26px 0 0; max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65; color: var(--dim);
}

.stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
  margin: 40px 0 0; padding: 0; list-style: none;
}
.stats b {
  display: block; font-size: clamp(26px, 3.4vw, 46px); font-weight: 700;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: var(--sweep); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--dim-2); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero__fade {
  position: absolute; inset: auto 0 0; height: 30vh; z-index: 1;
  pointer-events: none;   /* it sits over the CTA row */
  background: linear-gradient(180deg, transparent, var(--ink));
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .3s, color .3s;
}
.btn--primary { color: #fff; background: var(--sweep); box-shadow: 0 10px 40px rgba(255,47,185,.35); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 54px rgba(255,47,185,.55); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.btn--ghost:hover { border-color: var(--cyan); color: #fff; background: rgba(0,229,255,.16); transform: translateY(-2px); }

/* ============================================================
   Sections
   ============================================================ */

main { position: relative; z-index: 2; background: var(--ink); }

/* ---- fluid container: spans the viewport but keeps real gutters and a
       ceiling, so it never runs edge to edge on a wide monitor ---- */
.container {
  width: 100%; max-width: 1720px; margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

/* ---- section header: index rail above, display title below ---- */
.section-head {
  width: 100%; max-width: 1720px; margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
  display: grid; gap: clamp(14px, 1.6vw, 22px);
}

.rail { display: flex; align-items: center; gap: 16px; }
.rail__no {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; color: var(--cyan);
  padding-top: 2px;
}
/* Hairline that runs out from the number to the tag. */
.rail__line {
  height: 1px; width: clamp(28px, 7vw, 120px);
  background: linear-gradient(90deg, var(--cyan), rgba(0,229,255,.05));
}

.tag {
  position: relative;
  font-size: 10px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--cyan);
  padding: 0 0 0 16px; border: 0; background: none;
}
/* A small pulsing marker instead of a pill — reads as a signal, not a badge. */
.tag::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 0 currentColor;
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(0,229,255,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}
.tag--live { color: var(--magenta); }
.tag--live::before { animation-name: pingPink; }
@keyframes pingPink {
  0%   { box-shadow: 0 0 0 0 rgba(255,47,185,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255,47,185,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,47,185,0); }
}

/* Level 2: tight, heavy, large. Clearly below the h1, clearly above body. */
.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 92px); font-weight: 700;
  line-height: .95; letter-spacing: -.045em;
}

.featured { padding: clamp(70px, 12vh, 150px) 0 clamp(50px, 8vh, 100px); }
.featured__stage {
  margin-top: clamp(28px, 4vh, 54px);
  display: grid; place-items: center;
}

/* ============================================================
   Player (featured)
   ============================================================ */

.player {
  position: relative;
  width: calc(64vw + 30vw * var(--expand, 0));
  max-width: 100vw;
  aspect-ratio: 16 / 9;
  border-radius: calc(18px - 18px * var(--expand, 0));
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,47,185,.28), 0 30px 120px rgba(123,47,247,.35);
}
.player__frame { position: absolute; inset: 0; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.player__facade {
  position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer;
  background: none; color: var(--text); display: block; overflow: hidden;
}
.player--on .player__facade { display: none; }
.player__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.22,1,.36,1), filter .5s;
}
.player__facade:hover .player__thumb { transform: scale(1.045); filter: saturate(1.2); }
.player__glow {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,13,.1) 30%, rgba(5,6,13,.92));
}
.player__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%;
  color: #10030b; background: var(--sweep); padding-left: 4px;
  box-shadow: 0 14px 50px rgba(255,47,185,.5);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.player__facade:hover .player__play { transform: translate(-50%,-50%) scale(1.1); }
.player__meta {
  position: absolute; left: clamp(18px,3vw,40px); right: clamp(18px,3vw,40px);
  bottom: clamp(16px,3vh,34px); display: grid; gap: 6px; text-align: left;
}
.player__title { font-size: clamp(17px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.player__sub { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.player__close {
  position: absolute; top: 12px; right: 14px; z-index: 3; display: none;
  width: 34px; height: 34px; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(5,6,13,.75); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.player--on .player__close { display: grid; }

/* ============================================================
   Parallax band
   ============================================================ */

.band {
  position: relative; height: min(70vh, 640px); overflow: hidden;
  display: grid; place-items: center;
}
.band img {
  position: absolute; top: -14%; left: 0; width: 100%; height: 128%;
  object-fit: cover; will-change: transform;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink), rgba(5,6,13,.25) 40%, rgba(5,6,13,.3) 60%, var(--ink));
}
/* Deliberately the opposite of an h2: light, wide-tracked, uppercase. A pull
   quote should not compete with a section title at the same weight. */
.band__quote {
  position: relative; z-index: 2; margin: 0;
  text-align: center; max-width: 22ch;
  font-size: clamp(15px, 2.1vw, 30px); font-weight: 300;
  letter-spacing: .34em; text-transform: uppercase; line-height: 1.7;
  color: var(--text); text-indent: .34em;
  text-shadow: 0 2px 40px rgba(5,6,13,.9);
}

/* ============================================================
   Video grid
   ============================================================ */

.videos { padding: clamp(70px, 12vh, 150px) 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; letter-spacing: .06em;
  color: var(--dim); background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: color .25s, border-color .25s, background .25s;
}
.chip:hover { color: var(--text); }
.chip.is-on { color: #10030b; font-weight: 600; background: var(--sweep); border-color: transparent; }

/* Fluid container: fills the viewport with proper gutters, capped so it never
   sprawls edge-to-edge on a wide monitor. */
.grid {
  width: 100%; max-width: 1720px; margin: clamp(28px,4vh,52px) auto 0;
  padding-inline: clamp(20px, 4vw, 64px);
  display: grid; gap: clamp(18px, 1.8vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.grid__empty { text-align: center; color: var(--dim); padding: 40px; }

.card {
  position: relative; border: 0; padding: 0; cursor: pointer;
  background: none; color: inherit; text-align: left; font: inherit;
  display: grid; gap: 13px;
}
.card__shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s;
}
.card:hover .card__shot { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(123,47,247,.42); }
.card__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.card:hover .card__shot img { transform: scale(1.07); }

/* Gradient hairline that lights up on hover. */
.card__shot::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
  padding: 1px; background: var(--sweep);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover .card__shot::after, .card:focus-visible .card__shot::after { opacity: 1; }

.card__time {
  position: absolute; right: 9px; bottom: 9px;
  padding: 4px 9px; border-radius: 6px; font-family: var(--mono); font-size: 11px;
  background: rgba(5,6,13,.82); color: var(--text); backdrop-filter: blur(6px);
}
.card__badge {
  position: absolute; left: 9px; top: 9px;
  padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #10030b; background: var(--lime);
}
.card__play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px;
  transform: translate(-50%,-50%) scale(.7); opacity: 0;
  display: grid; place-items: center; border-radius: 50%; padding-left: 3px;
  color: #10030b; background: var(--sweep);
  transition: opacity .35s, transform .35s cubic-bezier(.22,1,.36,1);
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.card__title {
  margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card__title { color: var(--cyan); }
.card__meta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); font-variant-numeric: tabular-nums; }
.player__sub { color: var(--dim); }
.stats span { color: var(--dim); }

/* ============================================================
   Links
   ============================================================ */

.links { padding: clamp(60px, 10vh, 130px) 0 clamp(80px, 12vh, 160px); }
.links__grid {
  width: 100%; max-width: 1720px; margin: clamp(28px,4vh,52px) auto 0;
  padding-inline: clamp(20px, 4vw, 64px);
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .links__grid { grid-template-columns: 1fr; } }
.plink {
  --brand: var(--cyan);
  position: relative; display: flex; align-items: center; gap: 15px;
  padding: 20px 22px; border-radius: 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); background: rgba(255,255,255,.035); overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, background .35s;
}
.plink::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 140% at 12% 50%, var(--brand), transparent 62%);
  transition: opacity .4s;
}
.plink:hover { transform: translateY(-4px); border-color: var(--brand); background: rgba(255,255,255,.06); }
.plink:hover::before { opacity: .16; }
.plink__icon { position: relative; display: grid; place-items: center; color: var(--brand); flex: none; }
.plink__label { position: relative; font-size: 15px; font-weight: 600; }
.plink__go { position: relative; margin-left: auto; color: var(--dim); font-size: 18px; transition: transform .3s, color .3s; }
.plink:hover .plink__go { transform: translateX(4px); color: var(--brand); }
.plink--primary { border-color: rgba(255,0,51,.4); background: rgba(255,0,51,.07); }

/* ============================================================
   Footer + lightbox
   ============================================================ */

.foot {
  position: relative; z-index: 2; background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 5vw, 72px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim);
}
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--cyan); }

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 60px);
  background: rgba(3,4,10,.94); backdrop-filter: blur(20px);
  opacity: 0; transition: opacity .35s;
}
/* `display: grid` above beats the UA rule for [hidden], which left an
   invisible full-screen layer swallowing every click on the page. */
.lightbox[hidden] { display: none; }
.lightbox:not(.is-on) { pointer-events: none; }
.lightbox.is-on { opacity: 1; pointer-events: auto; }
.lightbox__inner { width: min(1280px, 100%); }
.lightbox__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px rgba(255,47,185,.3), 0 40px 130px rgba(123,47,247,.45);
}
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { border-color: var(--magenta); color: var(--magenta); }

@media (max-width: 640px) {
  .player { width: 100vw; border-radius: 0; }
  .player__play { width: 62px; height: 62px; }
}

/* Per-track colour, set from the thumbnail at runtime (see reactive.js). */
:root { --track: var(--cyan); --beat: 0; }
.player { box-shadow: 0 0 0 1px color-mix(in srgb, var(--track) 40%, transparent),
          0 30px calc(120px + var(--beat) * 60px) color-mix(in srgb, var(--track) 45%, transparent); }
.card:hover .card__shot { box-shadow: 0 22px 60px color-mix(in srgb, var(--track) 42%, transparent); }
.bpm {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--track);
}
.bpm::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  transform: scale(calc(1 + var(--beat) * .9)); opacity: calc(.45 + var(--beat) * .55);
  transition: transform .08s linear, opacity .12s linear;
}

/* ============================================================
   Top link strip — deliberately not the site header
   ============================================================ */

.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  padding: 14px clamp(14px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(5,6,13,.72), transparent);
}
.topbar__links {
  display: flex; align-items: center;
  justify-content: space-between; gap: clamp(4px, 1vw, 16px);
}

/* Burger: desktop never sees it. */
.burger { display: none; }

.tlink {
  --brand: var(--cyan);
  flex: 1 1 0; min-width: 0; justify-content: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: rgba(255,255,255,.86); font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.tlink svg { width: 17px; height: 17px; }
.tlink__icon { display: grid; place-items: center; color: var(--brand); }
.tlink:hover {
  color: #fff; transform: translateY(-2px);
  border-color: var(--brand); background: color-mix(in srgb, var(--brand) 18%, transparent);
}

/* ---- mobile: a burger, and one link per row ---- */
@media (max-width: 820px) {
  .topbar { padding: 10px 12px; }

  .burger {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0;   /* 44px: a comfortable tap target */
    border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(8,10,20,.66);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .burger span {
    display: block; width: 19px; height: 2px; border-radius: 2px;
    background: #fff;
    transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s;
  }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* The strip becomes a stacked panel, one platform per row. */
  .topbar__links {
    position: absolute; left: 12px; right: 12px; top: 62px;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 8px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(8,10,20,.92);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    /* pointer-events rather than visibility: a transitioned `visibility`
       keeps its old value for the whole duration and sticks when toggled
       faster than the transition. */
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22,1,.36,1);
  }
  .topbar__links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

  .tlink {
    flex: 0 0 auto; justify-content: flex-start;
    width: 100%; padding: 13px 14px; border-radius: 11px;
    font-size: 14px; border-color: transparent; background: rgba(255,255,255,.045);
  }
  .tlink span:last-child { display: inline; }   /* labels return: there is room now */
  .tlink svg { width: 19px; height: 19px; }
}

/* ============================================================
   Deck — one player, two layouts, Flip between them
   ============================================================ */

.deck {
  position: fixed; z-index: 140;
  background: #000; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--track) 45%, transparent),
              0 40px 140px color-mix(in srgb, var(--track) 40%, transparent);
  will-change: transform, width, height;
}
.deck[hidden] { display: none; }

/* Centre stage. */
/* Centred by margin, not by transform — transform has to stay free for the
   open animation, and the two were fighting each other. */
.deck--full {
  inset: 0; margin: auto;
  width: min(1180px, 92vw); aspect-ratio: 16 / 9; height: fit-content;
  border-radius: 16px;
}
/* Docked: keeps playing while you browse. */
.deck--docked {
  left: auto; right: 22px; top: auto; bottom: 22px; transform: none;
  width: min(400px, 88vw); aspect-ratio: auto; height: auto;
  border-radius: 14px;
  display: grid; grid-template-columns: 132px 1fr;
  background: rgba(8, 10, 20, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

.deck__frame { position: relative; aspect-ratio: 16 / 9; }
.deck__frame iframe, .deck__frame > div { width: 100%; height: 100%; border: 0; display: block; }

.deck__bar {
  display: none; align-items: center; gap: 10px;
  padding: 10px 12px; min-width: 0;
}
.deck--docked .deck__bar { display: flex; flex-wrap: wrap; }
.deck--docked .deck__frame { border-radius: 14px 0 0 14px; overflow: hidden; }

.deck__info { min-width: 0; flex: 1 1 100%; }
.deck__title {
  font-size: 12.5px; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck__meta {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--track);
}
.deck__wave { width: 100%; height: 30px; cursor: pointer; display: block; flex: 1 1 100%; }

.deck__btns { display: flex; align-items: center; gap: 4px; }
.deck__btns button, .deck__close, .deck__expand {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text);
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
  transition: color .2s, border-color .2s, background .2s;
}
.deck__btns button:hover, .deck__close:hover, .deck__expand:hover {
  color: var(--track); border-color: var(--track);
}
.deck__close { position: absolute; top: 10px; right: 12px; z-index: 3; }
.deck--docked .deck__close { position: static; }
.deck__expand { display: none; }
.deck--docked .deck__expand { display: grid; }

@media (max-width: 640px) {
  .deck--docked { right: 10px; left: 10px; bottom: 10px; width: auto; grid-template-columns: 108px 1fr; }
  .deck--full { width: 96vw; border-radius: 10px; }
}
@media (max-width: 760px) {
  .topbar { justify-content: flex-start; }
  .tlink { flex: 0 0 auto; }
}

/* ============================================================
   Hero layout + support panel (glass)
   ============================================================ */

.hero__grid {
  position: relative; z-index: 3;
  width: 100%; max-width: 1720px; margin: 0 auto;
  display: grid; align-items: end; gap: clamp(28px, 4vw, 72px);
  grid-template-columns: 1fr minmax(360px, 440px);
}
/* The panel is second in the layout but first in the markup, so keyboard and
   screen-reader order still follows the heading. */
.hero__inner { order: 1; }
.support { order: 2; }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .support { max-width: 560px; }
}

.support {
  position: relative;
  padding: 30px 26px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(165deg, rgba(0,229,255,.10), rgba(123,47,247,.08) 45%, rgba(255,47,185,.10));
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 20px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14);
}
.support[hidden] { display: none; }
/* Faint gradient edge so the glass reads against a dark photo. */
.support::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: linear-gradient(150deg, rgba(107,255,158,.6), rgba(0,229,255,.5) 30%, transparent 55%, rgba(255,47,185,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .8;
}

.support__head { display: grid; gap: 10px; margin-bottom: 22px; }
/* Two columns, not a flex row: the numeral sits in its own column and spans
   the full height of the wrapped words instead of dropping onto its own line. */
.support__title {
  margin: 0;
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; column-gap: 14px;
  font-size: clamp(19px, 1.6vw, 25px); font-weight: 700;
  letter-spacing: -.028em; line-height: 1.15; color: #fff;
}
.support__words { text-wrap: balance; }
.support__num {
  font-size: clamp(52px, 4.6vw, 76px); font-weight: 700; line-height: .78;
  letter-spacing: -.06em; align-self: center;
  background: linear-gradient(150deg, #6BFF9E 0%, #00E5FF 35%, #7B2FF7 70%, #FF2FB9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(0,229,255,.5));
}
.support__list { display: grid; gap: 9px; }

.support__row {
  --brand: var(--cyan);
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  transition: transform .28s cubic-bezier(.22,1,.36,1), border-color .28s, background .28s;
}
.support__row:hover, .support__row:focus-visible {
  transform: translateX(3px);
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, rgba(255,255,255,.04));
  outline: none;
}
.support__icon { display: grid; place-items: center; color: var(--brand); flex: none; }
.support__text { display: grid; gap: 1px; min-width: 0; }
.support__text b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.support__text i {
  font-style: normal; font-size: 12px; color: var(--dim-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.support__go { margin-left: auto; color: var(--dim-2); transition: transform .28s, color .28s; }
.support__row:hover .support__go { transform: translateX(3px); color: var(--brand); }
.support__row.is-done { border-color: var(--lime); }
.support__row.is-done .support__text i { color: var(--lime); }

/* The official YouTube widget sits inside the first row. */
.support__widget { margin-left: auto; }


/* Load-more */
.more { display: grid; place-items: center; margin-top: clamp(28px, 4vh, 48px); }
.more__count { font-family: var(--mono); font-size: 12px; opacity: .7; }

/* ============================================================
   No WebGL (phones, reduced motion, low memory, data saver)
   ============================================================ */

/* The jungle becomes a still image rather than nothing: same picture, none of
   the battery or the 536 KB. */
body.no-gl::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: #05060d url("../assets/bg.webp") center / cover no-repeat;
}
body.no-gl::after {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(123,47,247,.28), transparent 62%);
}

@media (max-width: 820px) {
  /* A full-height hero pushes the support panel off the bottom of a phone. */
  .hero { min-height: auto; padding-top: 92px; padding-bottom: 48px; }
  .hero__grid { gap: 30px; }
  .support { order: 2; }
  .hero__title { font-size: clamp(52px, 17vw, 96px); }
  .stats { gap: 22px; }
  .stats b { font-size: clamp(22px, 7vw, 32px); }
  .section-head h2 { font-size: clamp(30px, 9vw, 46px); }
  .band { height: min(52vh, 420px); }
  .btn { padding: 13px 22px; font-size: 13px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
