/* ═══════════════════════════════════════════
   THE STANDARD INDEX — UI of the Future
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --bg:       #050504;
  --surface:  #0c0b0a;
  --surface2: #111009;
  --ink:      #ede8d8;
  --ink2:     #b8b0a0;
  --muted:    #6b6459;
  --dim:      #2e2a24;
  --line:     rgba(237,232,216,.07);
  --line-h:   rgba(237,232,216,.14);
  --gold:     #f0cb1a;
  --gold-dim: rgba(240,203,26,.12);
  --gold-glow:rgba(240,203,26,.25);
  --blue:     #2255e8;
  --blue-lt:  #5580ff;
  --green:    #6dd87a;
  --danger:   #e85545;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', system-ui, sans-serif;
  --ease:     cubic-bezier(.16,1,.3,1);
  --ease-in:  cubic-bezier(.4,0,1,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none; /* custom cursor on desktop */
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; }

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .18s var(--ease), height .18s var(--ease), opacity .18s;
  box-shadow: 0 0 0 1.5px rgba(5,5,4,.9); /* dark halo — always visible on any bg */
}
/* crosshair lines — always show cursor position */
#cursor::before,
#cursor::after {
  content: '';
  position: absolute;
  background: rgba(240,203,26,.55);
  border-radius: 999px;
  pointer-events: none;
}
#cursor::before { width: 1px; height: 12px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
#cursor::after  { width: 12px; height: 1px; left: 50%; top: 50%; transform: translate(-50%,-50%); }

#cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid rgba(240,203,26,.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .2s, opacity .2s;
  /* second ring for contrast on any background */
  box-shadow: 0 0 0 1px rgba(5,5,4,.5);
}
body.cursor-hover #cursor { width: 10px; height: 10px; }
body.cursor-hover #cursor-ring { width: 40px; height: 40px; border-color: rgba(240,203,26,.6); }
body.cursor-click #cursor { width: 4px; height: 4px; opacity: .7; }
body.cursor-click #cursor-ring { width: 20px; height: 20px; }

/* ── GRAIN OVERLAY ── */
#grain {
  position: fixed;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .028;
  pointer-events: none;
  z-index: 9000;
  animation: grain 0.8s steps(2) infinite;
}
@keyframes grain {
  0%,100%{ transform: translate(0,0) }
  20%    { transform: translate(-3%,-4%) }
  40%    { transform: translate(3%,2%) }
  60%    { transform: translate(-2%,5%) }
  80%    { transform: translate(4%,-2%) }
}

/* ── AMBIENT GLOW ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%,  rgba(240,203,26,.055) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 92% 3%,  rgba(34,85,232,.08)  0%, transparent 60%),
    radial-gradient(ellipse 40% 25% at 50% 102%,rgba(240,203,26,.03)  0%, transparent 60%);
}

/* ── SHELL ── */
.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px;
  position: relative;
  z-index: 1;
}

/* ══════════════════
   NAV
══════════════════ */
.top {
  position: sticky;
  top: 10px;
  z-index: 500;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-h);
  border-radius: 20px;
  background: rgba(6,5,4,.86);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
}

.id {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  transition: border-color .2s;
}
.id:hover { border-color: var(--line-h); }

.logo-mark {
  width: 36px; height: 36px;
  border: 1px solid rgba(240,203,26,.22);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: rgba(240,203,26,.05);
  transition: border-color .22s, background .22s;
}
.logo-mark:hover { border-color: rgba(240,203,26,.5); background: rgba(240,203,26,.1); }
.logo-mark img {
  width: 22px; height: 22px;
  object-fit: contain;
  position: relative; z-index: 1;
  /* PNG has black background — blend it out */
  mix-blend-mode: screen;
  filter: brightness(1.05) saturate(1.1);
}
.logo-mark svg { width: 20px; height: 20px; position: relative; z-index: 1; }

.id-text h1 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.id-text p  { font-size: 9px; color: var(--muted); font-family: var(--mono); margin-top: 2px; letter-spacing: .04em; }

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 4px;
}
.nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
  position: relative;
}
.nav a .nl { font-size: 11px; font-weight: 600; color: var(--ink2); letter-spacing: .04em; }
.nav a .ns { font-size: 9px; color: var(--muted); font-family: var(--mono); margin-top: 1px; }
.nav a:hover { border-color: var(--line-h); background: rgba(255,255,255,.04); }
.nav a:hover .nl { color: var(--ink); }
.nav a.active { border-color: rgba(240,203,26,.3); background: rgba(240,203,26,.06); }
.nav a.active .nl { color: var(--gold); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,203,26,.4), transparent);
  border-radius: 999px;
}

.nav-pill {
  display: flex; align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line-h);
  border-radius: 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2);
  background: rgba(255,255,255,.03);
  transition: all .18s;
  white-space: nowrap;
}
.nav-pill:hover { border-color: var(--line-h); color: var(--ink); background: rgba(255,255,255,.06); }
.nav-pill.hot { border-color: rgba(240,203,26,.35); color: var(--gold); background: var(--gold-dim); }
.nav-pill.hot:hover { background: rgba(240,203,26,.18); }

/* ══════════════════
   HERO
══════════════════ */
.hero {
  margin-top: 10px;
  border: 1px solid var(--line-h);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 560px;
  position: relative;
}

/* scanline effect on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.08) 2px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: .4;
}

.hero-main {
  padding: 52px 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(10,9,8,.98) 0%, rgba(14,12,10,.85) 100%);
  position: relative;
  z-index: 3;
}

/* Glowing orb behind wordmark */
.hero-main::before {
  content: '';
  position: absolute;
  left: -80px; top: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,203,26,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 28px;
}
.etag {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-h);
  border-radius: 999px; padding: 4px 10px;
}
.etag.g { color: var(--gold); border-color: rgba(240,203,26,.3); }
.eline { flex:1; height:1px; background: linear-gradient(90deg,rgba(240,203,26,.3),transparent); max-width:100px; }

/* The big wordmark */
.wm {
  font-size: clamp(54px, 7.5vw, 136px);
  font-weight: 900;
  line-height: .80;
  letter-spacing: -.075em;
  text-transform: uppercase;
  position: relative;
}
.wm-a { display: block; color: var(--ink); }
.wm-b {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,232,216,.2);
  position: relative;
}
/* Animated shimmer on outline text */
.wm-b::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  clip-path: inset(0 100% 0 0);
  animation: shimmer 4s var(--ease) 1.2s forwards;
}
@keyframes shimmer { to { clip-path: inset(0 0% 0 0); } }

.wm-c { display: block; color: var(--gold); }

.hero-sub {
  margin-top: 28px;
  max-width: 520px;
}
.hero-sub p {
  font-size: 16px; line-height: 1.65; color: var(--ink2);
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

/* Live ticker strip */
.ticker {
  display: flex; gap: 20px; align-items: center;
  margin-top: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-item {
  display: flex; gap: 6px; align-items: center;
  white-space: nowrap;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: .04em;
}
.ticker-item .tv { color: var(--gold); font-weight: 500; }
.ticker-sep { color: var(--dim); }

.hero-btns {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px;
}

/* ── HERO SIDEBAR ── */
.hero-side {
  display: flex; flex-direction: column;
  background: rgba(8,7,6,.6);
  position: relative; z-index: 3;
}

.hs-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.hs-head span { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hs-head .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:.3; } }

.flagship-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s;
  text-decoration: none; color: inherit;
}
.flagship-row:hover { background: rgba(240,203,26,.04); }

.fl-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.fl-meta .fl-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.fl-meta .fl-badge {
  font-family: var(--mono); font-size: 9px;
  border: 1px solid var(--green);
  border-radius: 999px; padding: 2px 8px;
  color: var(--green); letter-spacing: .08em;
}
.flagship-row h3 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.flagship-row p  { font-size: 12px; color: var(--ink2); line-height: 1.5; }

/* Progress bar animated */
.prog { height: 2px; background: var(--line); border-radius: 999px; overflow: hidden; }
.prog span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue-lt), var(--gold));
  border-radius: 999px;
  width: 0;
  animation: grow-bar 1.5s var(--ease) 0.8s forwards;
}
@keyframes grow-bar { to { width: 78%; } }

.sister-list { flex:1; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }

.srow {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all .16s;
  text-decoration: none; color: inherit;
}
.srow:hover { border-color: var(--line-h); background: rgba(255,255,255,.03); }
.srow-info h4 { font-size: 12px; font-weight: 600; color: var(--ink); }
.srow-info p  { font-size: 10px; color: var(--muted); font-family: var(--mono); margin-top: 1px; }
.srow-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-h); color: var(--muted);
}
.srow-tag.live  { color: var(--green);  border-color: rgba(109,216,122,.3); }
.srow-tag.build { color: var(--blue-lt);border-color: rgba(85,128,255,.3); }

/* ══════════════════
   STATS BAND
══════════════════ */
.stats-band {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stat-cell {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  background: var(--surface);
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease);
}
.stat-cell:hover { border-color: var(--line-h); transform: translateY(-3px); }
.stat-cell::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240,203,26,.06), transparent 60%);
  opacity: 0; transition: opacity .2s;
}
.stat-cell:hover::before { opacity: 1; }
.stat-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.stat-num {
  font-size: 36px; font-weight: 900; letter-spacing: -.05em; line-height: 1;
  color: var(--ink);
}
.stat-num .unit { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.stat-sub { font-size: 11px; color: var(--ink2); margin-top: 6px; line-height: 1.4; }

/* ══════════════════
   IDENTITY BAND
══════════════════ */
.id-band {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid; grid-template-columns: repeat(3,1fr);
  overflow: hidden;
}
.idb-cell {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  transition: background .2s;
}
.idb-cell:last-child { border-right: none; }
.idb-cell:hover { background: rgba(255,255,255,.02); }
.idb-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.idb-label::before { content:''; display:block; width:16px; height:1px; background: var(--gold); opacity:.5; }
.idb-cell p { font-size: 13px; color: var(--ink2); line-height: 1.65; }
.idb-cell strong { color: var(--ink); font-weight: 500; }

/* ══════════════════
   SECTION HEADER
══════════════════ */
.sh {
  display: flex; align-items: center; justify-content: space-between;
  margin: 44px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sh h2 {
  font-family: var(--mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.sh h2::before { content: attr(data-n); color: var(--gold); font-weight: 500; }
.sh-note { font-size: 11px; color: var(--muted); }

/* ══════════════════
   PROJECT CARDS
══════════════════ */
.pgrid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 8px;
}
.pc {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 22px;
  min-height: 270px;
  display: grid; grid-template-rows: auto 1fr auto;
  position: relative; overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s;
}
/* Bottom accent line */
.pc::after {
  content: '';
  position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-lt) 30%, var(--gold) 70%, transparent);
  opacity: 0; transition: opacity .22s;
}
.pc:hover { transform: translateY(-5px); border-color: var(--line-h); }
.pc:hover::after { opacity: .7; }

/* Top-right corner glow on hover */
.pc::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(240,203,26,.1), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.pc:hover::before { opacity: 1; }

.pc.flagship {
  grid-column: span 8;
  min-height: 360px;
  border-color: rgba(240,203,26,.14);
  background: linear-gradient(140deg, rgba(14,12,10,.98), rgba(10,9,8,.9));
}
.pc.flagship::before {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(240,203,26,.08), transparent 70%);
  opacity: 1;
}
.pc.flagship:hover { border-color: rgba(240,203,26,.3); }

.pc-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
}
.pc-type {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(240,203,26,.25); border-radius: 999px; padding: 4px 10px;
}
.pc-num {
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; letter-spacing: .06em;
}
.pc h3 {
  font-size: 28px; font-weight: 800; letter-spacing: -.045em; line-height: .9;
  text-transform: uppercase; margin-bottom: 12px; color: var(--ink);
}
.pc.flagship h3 { font-size: clamp(38px,4.5vw,68px); }
.pc p { font-size: 12px; color: var(--ink2); line-height: 1.55; }
.pc-foot { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ══════════════════
   BUTTONS
══════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line-h);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2); background: transparent;
  cursor: none; transition: all .18s;
  font-family: inherit; white-space: nowrap;
  position: relative; overflow: hidden;
}
/* Ripple fill on hover */
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.05);
  opacity: 0; transition: opacity .18s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { border-color: var(--line-h); color: var(--ink); }
.btn.pri { color: var(--gold); border-color: rgba(240,203,26,.35); }
.btn.pri:hover { background: var(--gold-dim); border-color: rgba(240,203,26,.55); }
.btn.solid {
  background: var(--gold); color: #050504;
  border-color: var(--gold); font-weight: 700;
}
.btn.solid:hover { background: #fff496; border-color: #fff496; }
.btn.solid::before { background: rgba(255,255,255,.15); }

/* ══════════════════
   MUSIC PLAYER
   — Collapsed pill bottom-right, expands upward
   — Matches site glass/mono aesthetic
   — Opt-in: hidden until user opens
══════════════════ */

/* Toggle pill — always visible, bottom-right */
.player-toggle {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 810;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-h);
  border-radius: 999px;
  background: rgba(7,6,5,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: none;
  transition: border-color .2s, background .2s, opacity .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.player-toggle:hover { border-color: rgba(240,203,26,.35); background: rgba(12,11,9,.92); }
.player-toggle.active { border-color: rgba(240,203,26,.35); }
.player-toggle .pt-icon { color: var(--gold); display: flex; align-items: center; }
.player-toggle .pt-label {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .18s;
}
.player-toggle:hover .pt-label,
.player-toggle.active .pt-label { color: var(--ink2); }

/* Waveform bars inside toggle when playing */
.pt-wave { display: flex; align-items: center; gap: 1.5px; height: 12px; }
.pt-wave .wb { width: 2px; border-radius: 999px; background: var(--gold); opacity: .6; height: 3px; transition: height .13s ease; }

/* Player panel — slides up from bottom-right */
.player-panel {
  position: fixed;
  bottom: 60px; right: 20px;
  z-index: 809;
  width: 300px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.player-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Playlist panel — sits above player bar */
.playlist-panel {
  border: 1px solid var(--line-h);
  border-radius: 16px;
  background: rgba(7,6,5,.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  margin-bottom: 5px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s var(--ease), opacity .28s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.playlist-panel.open { max-height: 340px; opacity: 1; }

.pl-head {
  padding: 11px 14px 8px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.pl-head span { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pl-head small { font-family: var(--mono); font-size: 9px; color: var(--dim); }

.pl-track {
  display: grid; grid-template-columns: 20px 1fr auto;
  gap: 9px; align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  cursor: none; transition: background .12s;
  text-align: left; background: transparent; width: 100%;
  color: inherit; font-family: inherit;
  border-left: none; border-right: none; border-top: none;
}
.pl-track:last-child { border-bottom: none; }
.pl-track:hover { background: rgba(240,203,26,.04); }
.pl-track.active { background: rgba(240,203,26,.05); }
.pl-num { font-family: var(--mono); font-size: 9px; color: var(--muted); text-align: right; }
.pl-track.active .pl-num { color: var(--gold); }
.pl-num-playing {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 5px var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
.pl-info { min-width: 0; }
.pl-title  { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 1px; }
.pl-region { font-family: var(--mono); font-size: 9px; color: var(--dim); white-space: nowrap; }

/* Player bar */
.player-bar {
  border: 1px solid var(--line-h);
  border-radius: 16px;
  background: rgba(7,6,5,.96);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(240,203,26,.06);
  position: relative;
}

/* thin gold top line */
.player-bar::before {
  content: '';
  position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,203,26,.3), transparent);
}

.player-art {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--line-h);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.player-art svg { color: var(--gold); }
.player-art.spinning { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-info { min-width: 0; }
.player-track  { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 1px; letter-spacing: .03em; }

/* Waveform inside bar */
.player-wave { display: flex; align-items: center; gap: 2px; height: 14px; margin-top: 3px; }
.wave-bar { width: 2px; border-radius: 999px; background: var(--gold); opacity: .35; }

.player-controls { display: flex; align-items: center; gap: 5px; }
.p-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--line-h);
  border-radius: 50%; display: grid; place-items: center;
  cursor: none; transition: all .15s; background: transparent; color: var(--ink2);
}
.p-btn:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.p-btn.play-btn {
  border-color: rgba(240,203,26,.35); color: var(--gold);
  width: 30px; height: 30px;
}
.p-btn.play-btn:hover { background: var(--gold-dim); border-color: rgba(240,203,26,.6); }

.p-list-btn {
  font-family: var(--mono); font-size: 8px; color: var(--muted);
  cursor: none; padding: 4px 8px; border-radius: 6px;
  border: 1px solid transparent; transition: all .15s; background: transparent;
  letter-spacing: .07em; text-transform: uppercase; display: block; margin-top: 3px;
  width: 100%; text-align: center;
}
.p-list-btn:hover, .p-list-btn.open { border-color: var(--line-h); color: var(--ink2); }

/* ══════════════════
   RESUME

══════════════════ */
.resume-wrap {
  display: grid; grid-template-columns: 260px 1fr; gap: 8px; margin-top: 8px;
}
.res-lock {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.lock-ico {
  width: 38px; height: 38px;
  border: 1px solid rgba(240,203,26,.3);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--gold);
}
.res-lock h3 {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.res-lock p  { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.gate { display: flex; flex-direction: column; gap: 7px; }
.gate input {
  border: 1px solid var(--line-h);
  border-radius: 10px;
  background: rgba(0,0,0,.4);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 16px; letter-spacing: .24em; text-align: center;
  font-family: var(--mono); transition: border-color .18s;
  width: 100%;
}
.gate input:focus { outline: none; border-color: rgba(240,203,26,.4); }
.gate-msg { font-family: var(--mono); font-size: 10px; color: var(--muted); min-height: 16px; }
.gate-msg.ok { color: var(--green); }
.gate-msg.no { color: var(--danger); }

.res-entries {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.res-entries h3 {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.re {
  display: grid; grid-template-columns: 105px 1fr;
  gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  transition: border-color .18s;
}
.re:hover { border-color: var(--line-h); }
.re-date {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
  padding-top: 3px;
  border-right: 1px solid var(--line); padding-right: 12px;
}
.re-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; }
.re-body p  { font-size: 11px; color: var(--ink2); line-height: 1.45; }

/* ══════════════════
   FOOTER
══════════════════ */
.footer {
  margin-top: 40px; margin-bottom: 80px;
  border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: rgba(8,7,6,.7);
}
.f-copy { font-family: var(--mono); font-size: 10px; color: var(--gold); letter-spacing: .08em; }
.f-legal { font-size: 10px; color: var(--muted); line-height: 1.5; max-width: 420px; }
.f-links { display: flex; gap: 14px; }
.f-links a {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); transition: color .16s;
}
.f-links a:hover { color: var(--ink); }

/* ══════════════════
   ANIMATIONS
══════════════════ */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-up.vis { opacity: 1; transform: none; }

/* Staggered children */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.stagger.vis > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.stagger.vis > *:nth-child(2) { opacity:1; transform:none; transition-delay:.1s; }
.stagger.vis > *:nth-child(3) { opacity:1; transform:none; transition-delay:.15s; }
.stagger.vis > *:nth-child(4) { opacity:1; transform:none; transition-delay:.2s; }
.stagger.vis > *:nth-child(5) { opacity:1; transform:none; transition-delay:.25s; }
.stagger.vis > *:nth-child(6) { opacity:1; transform:none; transition-delay:.3s; }

/* ══════════════════
   RESPONSIVE
══════════════════ */
@media (max-width: 1120px) {
  .top { grid-template-columns: auto 1fr auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-top: 1px solid var(--line); }
  .pc.flagship { grid-column: span 12; }
  .pc { grid-column: span 6; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .id-band { grid-template-columns: 1fr; }
  .idb-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .idb-cell:last-child { border-bottom: none; }
  .resume-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .shell { padding: 8px; }
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-main { padding: 28px 22px; }
  .wm { font-size: 52px; }
  .pc { grid-column: span 12 !important; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .player-bar { padding: 10px 12px; }
}
@media (hover: none) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
  .btn, button, a { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up, .stagger > *, .wm-b::after, .prog span { animation: none; transition: none; opacity: 1; transform: none; clip-path: none !important; width: 78% !important; }
  #grain { animation: none; }
}
