/* ============================================================
   ERIC REMY — underground tech house
   Dark, gritty, marquee-driven. References: jameshype.com, matrodamusic.com
   ============================================================ */

:root {
  /* Resolved brand palette — acid green on near-black.
     In the prototype these were overridden at runtime by the "Tweaks" layer;
     here they are baked in as the final, shipped design tokens. */
  --primary: #C8FF00;
  --primary-deep: #90C700;
  --primary-glow: #F6FF2E;

  --bg:        #0A0908;   /* near-black base */
  --bg-2:      #121110;   /* charcoal panel */
  --bg-3:      #191715;   /* raised panel */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.06);

  --white:     #F5F1EA;   /* warm off-white text */
  --mute:      rgba(245,241,234,.62);
  --faint:     rgba(245,241,234,.40);

  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-display-w: 400;
  --f-sub:     "Bebas Neue", "Anton", sans-serif;
  --f-mono:    "DM Mono", "Space Mono", ui-monospace, monospace;
  --f-body:    "DM Sans", system-ui, sans-serif;

  --grain: 0.18;
  --marquee-dur: 38s;

  --maxw: 1320px;
  --pad: 40px;
  --tabbar-h: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--primary); }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--primary); color: #0A0908; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: var(--grain);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

/* lightning-bolt separator */
.bolt {
  display: inline-block;
  width: .5em; height: .72em;
  background: var(--primary);
  vertical-align: -.06em;
  flex: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2L4 14h6l-1 8 9-12h-6z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2L4 14h6l-1 8 9-12h-6z'/></svg>") center / contain no-repeat;
}

/* diamond separator (replaces spinning star) */
.dot {
  display: inline-block;
  width: .42em; height: .42em;
  background: var(--primary);
  transform: rotate(45deg);
  vertical-align: .04em;
  flex: none;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s ease, padding .3s ease, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,9,8,.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line-2);
}
.nav-logo { display: inline-flex; align-items: center; height: 52px; }
.nav-logo:hover { transform: none; }

/* ---- melting logo (mask + sweeping orange/white gradient) ---- */
.logo-melt {
  display: block; height: 100%; aspect-ratio: 1.418;
  -webkit-mask: url("images/logo-er-trim.png") center / contain no-repeat;
          mask: url("images/logo-er-trim.png") center / contain no-repeat;
  background: linear-gradient(180deg, var(--primary) 0 50%, var(--white) 50% 100%);
  background-size: 100% 200%;
  background-position: 0 100%;   /* show white half */
  transition: background-position .6s cubic-bezier(.65,0,.2,1);
}
.nav-logo:hover .logo-melt,
.nav-logo:focus-visible .logo-melt { background-position: 0 0; }   /* orange melts down */
@keyframes logoMeltOnce { 0% { background-position: 0 100%; } 48% { background-position: 0 0; } 100% { background-position: 0 100%; } }
.nav-links {
  display: flex; gap: 30px; align-items: center;
  font-family: var(--f-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em;
}
.nav-links a { position: relative; padding: 4px 0; color: var(--white); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--primary); transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 24px; border: 1px solid var(--line); border-radius: 999px;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.nav-contact:hover { background: var(--primary); border-color: var(--primary); color: #0A0908; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 26%;
  will-change: transform;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.hero-bg { z-index: 0; transform: scale(1.12); }
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background: var(--primary); mix-blend-mode: color; opacity: .24;
}
.hero-bigword {
  position: absolute; z-index: 2; left: 50%; top: 40%;
  transform: translate(-50%,-50%);
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: 36vw; line-height: .8;
  color: rgba(245,241,234,.13); letter-spacing: -.04em; text-transform: uppercase;
  pointer-events: none; user-select: none; white-space: nowrap;
  will-change: transform; transition: transform .5s cubic-bezier(.2,.7,.2,1);
  text-shadow: 0 0 60px rgba(0,0,0,.35);
}
/* DJ cutout sits ABOVE the tint + bigword → pops forward for 2.5D depth */
.hero-render { z-index: 3; transform: scale(1.08); }
/* green silhouette "shadow echo" — behind the real cutout, offset + blurred,
   moves at a bigger parallax amplitude so it detaches from him on hover */
.hero-silhouette {
  z-index: 2;
  object-position: center 26%;
  opacity: .55;
  filter: blur(1px) drop-shadow(0 0 18px rgba(200,255,0,.3));
  transform: scale(1.08) translate(-9px, -5px);
}
.hero-grad {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,9,8,.42) 0%, rgba(10,9,8,0) 26%, rgba(10,9,8,.30) 60%, rgba(10,9,8,.94) 100%),
    radial-gradient(80% 60% at 50% 120%, rgba(200,255,0,.22), transparent 70%);
}

.hero-inner {
  position: relative; z-index: 3;
  padding: 0 var(--pad) 34px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(76px, 17vw, 300px); line-height: .8;
  text-transform: uppercase; letter-spacing: -.012em;
  margin: 0;
}
.hero-tagline {
  font-family: var(--f-sub); letter-spacing: .14em; text-transform: uppercase;
  font-size: clamp(20px, 3.4vw, 46px);
  margin: 14px 0 0; color: var(--white);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-tagline .dot { width: .3em; height: .3em; }

.hero-foot {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mute);
}
.hero-foot a { color: var(--white); transition: color .2s; }
.hero-foot a:hover { color: var(--primary); }
.hero-socials { display: flex; gap: 18px; }
.hero-scroll { display: inline-flex; align-items: center; gap: 8px; }
.hero-scroll .arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--primary); color: #0A0908;
  overflow: hidden; padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 44px; white-space: nowrap; width: max-content;
  align-items: center;
  animation: marquee var(--marquee-dur) linear infinite;
}
.marquee-item {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(30px, 5vw, 58px); line-height: 1;
  text-transform: uppercase; letter-spacing: .005em;
  display: inline-flex; align-items: center; gap: 44px;
}
.marquee-item .dot, .marquee-item .bolt { background: #0A0908; }
.marquee-item .dot { width: .3em; height: .3em; }
.marquee-item .bolt { width: .42em; height: .6em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTION SHELL ============ */
.section { padding: 110px var(--pad); position: relative; }
.section.alt { background: var(--bg-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--primary); display: inline-flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 26px; height: 1px; background: var(--primary); }
.section-title {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(48px, 7vw, 120px); line-height: .9;
  text-transform: uppercase; letter-spacing: -.01em; margin: 18px 0 0;
}
.section-title .accent { color: var(--primary); }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; margin-top: 56px; }
.about-statement {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(30px, 3.6vw, 58px); line-height: 1.0;
  text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 30px;
}
.about-statement .accent { color: var(--primary); }
.about-body p { font-size: clamp(15px,1.15vw,18px); line-height: 1.62; color: var(--mute); margin: 0 0 16px; max-width: 56ch; }
.booth {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  touch-action: pan-y; cursor: grab; user-select: none;
  /* torn magazine edge */
  -webkit-mask: url("images/torn-mask.png") center / 100% 100% no-repeat;
  mask: url("images/torn-mask.png") center / 100% 100% no-repeat;
}
.booth:active { cursor: grabbing; }
.booth-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.booth-slide.active { opacity: 1; }
.booth-slide img {
  position: absolute; top: -12%; left: 0;
  width: 100%; height: 124%; object-fit: cover; object-position: center 42%;
  filter: saturate(.98) contrast(1.05); will-change: transform; pointer-events: none;
}
/* accent overlay — same green color-filter used on the hero background */
.booth-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--primary); mix-blend-mode: color; opacity: .24;
}
.booth .frame-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 4;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(10,9,8,.72); padding: 7px 11px; color: var(--white);
  border: 1px solid var(--line); pointer-events: none;
}
.booth-dots { position: absolute; z-index: 4; bottom: 16px; right: 14px; display: flex; gap: 7px; }
.booth-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,241,234,.4); transition: background .3s, transform .3s; cursor: pointer; }
.booth-dots span.active { background: var(--primary); transform: scale(1.35); }

/* ============ ACHIEVEMENTS ============ */
.ach-list { margin-top: 56px; border-top: 1px solid var(--line); }
.ach {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 28px;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease, background .25s ease;
}
.ach:hover { padding-left: 20px; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.ach-icon { width: 40px; height: 40px; color: var(--primary); }
.ach-icon svg { width: 100%; height: 100%; display: block; }
.ach-text {
  font-family: var(--f-sub); font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: .02em; text-transform: uppercase; line-height: 1.04;
}
.ach-text b { color: var(--primary); font-weight: inherit; }
.ach-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); text-align: right; }

/* ============ MUSIC ============ */
.music-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.music-spotify-link {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; color: var(--mute);
  border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .2s, border-color .2s;
}
.music-spotify-link:hover { color: var(--primary); border-color: var(--primary); }

.tracks { margin-top: 48px; border-top: 1px solid var(--line); }
.track {
  border-bottom: 1px solid var(--line);
}
.track-row {
  display: grid; grid-template-columns: 34px 64px 1fr auto 132px 48px;
  align-items: center; gap: 22px;
  padding: 16px 6px; width: 100%; text-align: left;
  transition: background .2s, padding-left .2s;
}
.track-row:hover { background: rgba(255,255,255,.03); padding-left: 16px; }
.track-rank { font-family: var(--f-mono); font-size: 13px; color: var(--faint); letter-spacing: .1em; }
.track-art { width: 64px; height: 64px; overflow: hidden; background: var(--bg-3); flex: none; }
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-name {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(22px, 2.4vw, 34px); line-height: 1; text-transform: uppercase; letter-spacing: -.005em;
}
.track-year { font-family: var(--f-mono); font-size: 12px; color: var(--faint); letter-spacing: .12em; }
.track-plays {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--mute);
  text-align: right; display: flex; flex-direction: column; gap: 3px; align-items: flex-end;
}
.track-plays .n { color: var(--white); font-size: 15px; font-weight: 700; }
.track-plays .l { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.track-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  transition: background .2s, border-color .2s, color .2s, transform .2s; justify-self: end;
}
.track-toggle svg { width: 16px; height: 16px; }
.track-row:hover .track-toggle { border-color: var(--primary); color: var(--primary); }
.track.open .track-toggle { background: var(--primary); border-color: var(--primary); color: #fff; }
.track-embed { height: 0; overflow: hidden; transition: height .35s ease; }
.track-embed iframe { width: 100%; border: 0; display: block; border-radius: 0; }

/* ============ DATES ============ */
.dates { margin-top: 48px; border-top: 1px solid var(--line); }
.date {
  display: grid; grid-template-columns: 150px 1fr 1fr auto; align-items: center; gap: 28px;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease, background .25s ease;
}
.date:hover { padding-left: 18px; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.date-when { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; display: flex; flex-direction: column; gap: 5px; }
.date-when .d { font-family: var(--f-display); font-weight: var(--f-display-w); font-size: 40px; line-height: .82; letter-spacing: -.01em; color: var(--white); }
.date-when .yr { color: var(--faint); }
.date-venue { font-family: var(--f-display); font-weight: var(--f-display-w); font-size: clamp(24px,2.6vw,40px); text-transform: uppercase; line-height: 1; letter-spacing: -.005em; }
.date-city { font-family: var(--f-sub); font-size: clamp(16px,1.5vw,22px); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.date-cta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.date-cta:hover { background: var(--white); color: #0A0908; border-color: var(--white); }
.date.tonight .date-when .d { color: var(--primary); }
.date.tonight .date-cta { background: var(--primary); border-color: var(--primary); color: #0A0908; }
.dates-all { margin-top: 26px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: inline-flex; gap: 8px; align-items: center; }
.dates-all:hover { color: var(--primary); }

/* ============ STATS / FOLLOW ============ */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 56px; border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 44px 36px; }
.stat .v {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(56px, 8vw, 128px); line-height: .86; letter-spacing: -.02em; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-top: 12px; }
.stat .live { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; color: var(--white); }
.stat .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.3;transform:scale(.7);} }

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.platform {
  background: var(--bg); border: 1px solid var(--line); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 28px; justify-content: space-between;
  min-height: 200px; transition: background .3s, transform .3s, border-color .3s; position: relative; overflow: hidden;
}
.platform:hover { background: var(--primary); color: #0A0908; transform: translateY(-5px); border-color: var(--primary); }
.platform-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.platform-icon { width: 26px; height: 26px; }
.platform-icon svg { width: 100%; height: 100%; }
.platform-name { font-family: var(--f-display); font-weight: var(--f-display-w); font-size: clamp(28px,2.6vw,42px); text-transform: uppercase; line-height: .9; letter-spacing: -.01em; }
.platform-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.platform:hover .platform-sub { color: rgba(10,9,8,.72); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.contact-card {
  background: var(--bg-2); border: 1px solid var(--line); padding: 38px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s, background .25s;
}
.contact-card:hover { border-color: var(--primary); background: var(--bg-3); }
.contact-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }
.contact-v { font-family: var(--f-display); font-weight: var(--f-display-w); font-size: clamp(26px,2.8vw,46px); text-transform: uppercase; letter-spacing: -.01em; line-height: .95; word-break: break-word; }
.contact-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.contact-arrow { color: var(--primary); margin-top: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact-social {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--white);
  transition: background .2s, border-color .2s, color .2s;
}
.contact-social:hover { background: var(--primary); border-color: var(--primary); color: #0A0908; }
.contact-social svg { width: 16px; height: 16px; }

/* ============ FOOTER ============ */
.footer { padding: 80px var(--pad) calc(50px + var(--tabbar-h)); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer-logo { display: flex; justify-content: center; }
.footer-logo .logo-melt {
  height: clamp(96px, 20vw, 230px); width: auto; aspect-ratio: 1.418;
}
.footer-logo:hover .logo-melt { background-position: 0 0; }
.footer-logo.in .logo-melt { animation: logoMeltOnce 2.1s ease .35s 1; }
.footer-name {
  font-family: var(--f-display); font-weight: var(--f-display-w);
  font-size: clamp(64px, 20vw, 300px); line-height: .8; text-transform: uppercase; letter-spacing: -.02em;
  margin: 0; color: var(--white); white-space: nowrap;
}
.footer-name .accent { color: var(--primary); }
.ach a, a.ach { color: inherit; }
.footer-bottom { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ MOBILE APP TAB BAR ============ */
.tabbar { display: none; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE — phone gets an APP-style shell + bottom tab bar
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 26px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --pad: 18px; --tabbar-h: 68px; }

  /* hide desktop nav links, keep logo + contact pill compact */
  .nav { padding: 16px var(--pad); }
  .nav-logo { height: 42px; }
  .nav-links { display: none; }
  .nav.scrolled { padding: 12px var(--pad); }

  /* hero as app splash */
  .hero { min-height: 100svh; }
  .hero-name { font-size: clamp(64px, 22vw, 130px); }
  .hero-tagline { font-size: clamp(17px, 5vw, 26px); }
  .hero-foot { font-size: 10px; padding: 14px var(--pad); }
  .hero-foot .hero-scroll { display: none; }

  .section { padding: 64px var(--pad); }
  .section-title { font-size: clamp(40px, 13vw, 72px); }

  .about-statement { font-size: clamp(26px, 7vw, 40px); }

  /* achievements → stacked cards */
  .ach { grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 8px 18px; padding: 20px 4px; }
  .ach-icon { width: 32px; height: 32px; grid-row: span 2; align-self: start; }
  .ach-meta { grid-column: 2; text-align: left; }

  /* tracks → app list rows */
  .track-row { grid-template-columns: 52px 1fr 44px; gap: 14px; padding: 12px 4px; }
  .track-rank { display: none; }
  .track-art { width: 52px; height: 52px; }
  .track-year { display: none; }
  .track-plays { grid-row: 2; grid-column: 2; flex-direction: row; gap: 8px; align-items: baseline; }
  .track-plays .n { font-size: 13px; }
  .track-name { font-size: 19px; }

  /* dates → stacked */
  .date { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; gap: 6px 18px; padding: 20px 4px; }
  .date-when { grid-row: span 2; }
  .date-when .d { font-size: 30px; line-height: 1; }
  .date-venue { font-size: 22px; }
  .date-city { grid-column: 2; }
  .date-cta { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

  .stats-band { grid-template-columns: 1fr; }
  .stat { padding: 32px 24px; }
  .platforms { grid-template-columns: 1fr 1fr; gap: 10px; }
  .platform { min-height: 150px; padding: 20px 18px; gap: 18px; }

  .footer { padding-bottom: calc(40px + var(--tabbar-h)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* APP BOTTOM TAB BAR */
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(12,11,10,.92); backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--faint); transition: color .2s; padding-top: 4px;
  }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.active { color: var(--primary); }
}
