/* ==========================================================================
   Marex Kai — style.css
   Dark, glitchy, beat-synced. No framework; Font Awesome Pro for icons.
   ========================================================================== */

@font-face {
  font-family: "Renogare";
  src: url("../fonts/Renogare.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #040404;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --acid: #f1fc00;    /* primary */
  --acid-2: #f8ff7a;  /* primary, lighter (hover) */
  --accent: #7b3fff;  /* complementary electric violet */
  --on-acid: #0b0b00; /* text on acid backgrounds */
  --glass: rgba(255, 255, 255, 0.05);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Renogare", "Inter", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bar-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0);
  --beat: 0.4839s; /* 124 BPM */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--acid) #0a0a0a;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--acid); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--acid-2); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; }
p { margin: 0 0 1em; }

::selection { background: var(--acid); color: #000; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.accent { color: var(--acid); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10001;
  padding: 10px 16px; background: var(--acid); color: #000; font-weight: 700;
  border-radius: 8px; transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; color: #000; }

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Ambient FX layers
   -------------------------------------------------------------------------- */
.fx-bg {
  position: fixed;
  inset: -4%;
  z-index: -4;
  overflow: hidden;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--ease);
}

.fx-bg__img {
  position: absolute;
  inset: 0;
  /* Atmosphere behind the cut-out figure: colour glows + a faint dot grid */
  background:
    radial-gradient(42% 52% at 72% 46%, rgba(241, 252, 0, 0.24), transparent 70%),
    radial-gradient(32% 38% at 90% 88%, rgba(123, 63, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 8% 8%, rgba(241, 252, 0, 0.08), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 28px 28px,
    var(--bg);
  /* No zoom animation here: scaling a gradient layer forces a full repaint every frame */
  transition: filter 1s var(--ease), opacity 1s var(--ease);
}

.fx-bg::after { /* legibility gradient + colour wash */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 60% 45%, transparent 40%, rgba(4, 4, 4, 0.85) 100%);
}

/* Hero figure (transparent cut-out) */
.fx-figure {
  position: fixed;
  z-index: -2;
  bottom: -14px; /* room for parallax so the cropped edge never shows */
  right: max(2vw, calc(50vw - 720px));
  height: calc(100vh - var(--bar-h) - 10px);
  height: calc(100svh - var(--bar-h) - 10px);
  max-height: 1100px;
  aspect-ratio: 773 / 1080;
  pointer-events: none;
  translate: var(--fx, 0) var(--fy, 0);
  transition: translate 1s var(--ease), opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease), visibility 0s;
}
body.is-loading .fx-figure { opacity: 0; filter: blur(24px); transform: translateX(8%) scale(0.96); }

.fx-figure__float {
  position: relative;
  height: 100%;
  transform-origin: 50% 100%;
  animation: figure-float calc(var(--beat) * 4) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes figure-float {
  from { transform: scale(1); }
  to   { transform: scale(1.018); }
}
.fx-figure__img { height: 100%; }
.fx-figure__img img { height: 100%; width: auto; }

/* Speaker-cone rings pulsing on the beat behind the figure */
.fx-rings {
  position: absolute;
  left: 50%; top: 30%;
  width: 100%;
  aspect-ratio: 1;
  translate: -50% -50%;
}
.fx-rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(241, 252, 0, 0.35);
  animation: ring-pulse calc(var(--beat) * 2) ease-out infinite;
}
.fx-rings i:nth-child(2) { inset: 14%; border-color: rgba(123, 63, 255, 0.3); animation-delay: calc(var(--beat) * 0.5); }
.fx-rings i:nth-child(3) { inset: 28%; animation-delay: var(--beat); }
@keyframes ring-pulse {
  0%   { transform: scale(0.94); opacity: 0.2; }
  12%  { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* Off the home view: fade the figure away and stop its animations */
body.in-view .fx-figure {
  opacity: 0;
  filter: blur(20px);
  transform: translateX(10%) scale(0.95);
  visibility: hidden;
  transition: translate 1s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s 0.6s;
}
body.in-view .fx-figure__float,
body.in-view .fx-rings i,
body.in-view .fx-figure .glitch-img--loop::before,
body.in-view .fx-figure .glitch-img--loop::after,
body.in-view .fx-figure .glitch-img--loop img { animation-play-state: paused; }

/* When inside a section: dim the atmosphere so content reads cleanly */
body.in-view .fx-bg__img { opacity: 0.55; }

.fx-viz {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 38vh;
  z-index: -3;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.8s var(--ease);
}
body.in-view .fx-viz { opacity: 0.25; }

.fx-grain {
  position: fixed;
  inset: -100%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-5%, 4%); }
  40%  { transform: translate(4%, -6%); }
  60%  { transform: translate(-7%, -2%); }
  80%  { transform: translate(3%, 7%); }
  100% { transform: translate(0, 0); }
}

.fx-scan {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.fx-scan::after { /* rolling bar */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(241, 252, 0, 0.05), transparent);
  animation: scanroll 7s linear infinite;
}
@keyframes scanroll { from { top: -25vh; } to { top: 105vh; } }

/* Transition flash: horizontal RGB slices that tear across the screen */
.fx-flash {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  visibility: hidden;
}
.fx-flash i {
  position: absolute;
  left: 0; right: 0;
  height: var(--h, 6%);
  top: var(--t, 0);
  background: linear-gradient(90deg, transparent, rgba(241, 252, 0, 0.85), rgba(123, 63, 255, 0.7), transparent);
  mix-blend-mode: screen;
  transform: translateX(-110%);
}
.fx-flash i:nth-child(1) { --t: 8%;  --h: 3%; }
.fx-flash i:nth-child(2) { --t: 22%; --h: 9%; }
.fx-flash i:nth-child(3) { --t: 41%; --h: 2%; }
.fx-flash i:nth-child(4) { --t: 55%; --h: 12%; }
.fx-flash i:nth-child(5) { --t: 74%; --h: 4%; }
.fx-flash i:nth-child(6) { --t: 88%; --h: 7%; }
.fx-flash.is-on { visibility: visible; }
.fx-flash.is-on i { animation: tear 0.55s var(--ease) both; }
.fx-flash.is-on i:nth-child(2n) { animation-direction: reverse; animation-delay: 0.04s; }
.fx-flash.is-on i:nth-child(3n) { animation-delay: 0.08s; }
@keyframes tear {
  0%   { transform: translateX(-110%) skewX(-20deg); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(110%) skewX(-20deg); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Custom cursor (fine pointers only, enabled by JS)
   -------------------------------------------------------------------------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  translate: -50% -50%;
}
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 36px; height: 36px;
  border: 1.5px solid #fff;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: #fff; }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; }

/* Equalizer bars */
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.eq i {
  display: block;
  width: 4px;
  height: 100%;
  background: linear-gradient(to top, var(--acid), var(--acid-2));
  border-radius: 2px;
  transform-origin: bottom;
  animation: eq var(--beat) ease-in-out infinite alternate;
}
.eq i:nth-child(2) { animation-duration: calc(var(--beat) * 0.7); }
.eq i:nth-child(3) { animation-duration: calc(var(--beat) * 1.3); }
.eq i:nth-child(4) { animation-duration: calc(var(--beat) * 0.5); }
.eq i:nth-child(5) { animation-duration: calc(var(--beat) * 1.1); }
.eq i:nth-child(6) { animation-duration: calc(var(--beat) * 0.8); }
.eq i:nth-child(7) { animation-duration: calc(var(--beat) * 0.6); }
@keyframes eq { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }

.eq--mini { height: 12px; gap: 2px; display: inline-flex; vertical-align: -1px; }
.eq--mini i { width: 2px; }

/* --------------------------------------------------------------------------
   Glitch primitives
   -------------------------------------------------------------------------- */
/* Text glitch
   - the text itself jolts, skews and splits into acid/violet channels
   - ::before / ::after are copies of the real text (same colour) with coloured
     fringes, sliced and displaced, so the glyphs look torn apart */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: inherit;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { text-shadow: -3px 0 var(--acid); }
.glitch::after  { text-shadow: 3px 0 var(--accent); }

.glitch.is-glitching, .glitch:hover { animation: glitch-self 0.42s steps(3, end) both; }
.glitch.is-glitching::before,
.glitch:hover::before { opacity: 1; animation: glitch-a 0.42s steps(2, end) both; }
.glitch.is-glitching::after,
.glitch:hover::after  { opacity: 1; animation: glitch-b 0.42s steps(2, end) both; }

@keyframes glitch-self {
  0%   { transform: none; text-shadow: none; }
  20%  { transform: translate(-3px, 1px) skewX(-10deg); text-shadow: -4px 0 var(--acid), 4px 0 var(--accent); }
  40%  { transform: translate(4px, -1px) skewX(6deg);  text-shadow: 3px 0 var(--acid), -3px 0 var(--accent); }
  60%  { transform: translate(-2px, 0) scaleY(1.06);   text-shadow: -6px 0 var(--acid), 2px 0 var(--accent); }
  80%  { transform: translate(2px, 1px) skewX(-4deg);  text-shadow: 2px 0 var(--acid), -5px 0 var(--accent); }
  100% { transform: none; text-shadow: none; }
}
@keyframes glitch-a {
  0%   { clip-path: inset(12% 0 70% 0); transform: translate(-8px, -1px); }
  20%  { clip-path: inset(62% 0 8% 0);  transform: translate(7px, 1px); }
  40%  { clip-path: inset(32% 0 44% 0); transform: translate(-5px, 0); }
  60%  { clip-path: inset(84% 0 2% 0);  transform: translate(9px, -1px); }
  80%  { clip-path: inset(4% 0 82% 0);  transform: translate(-4px, 1px); }
  100% { clip-path: inset(48% 0 30% 0); transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-b {
  0%   { clip-path: inset(70% 0 6% 0);  transform: translate(8px, 1px); }
  20%  { clip-path: inset(8% 0 66% 0);  transform: translate(-7px, -1px); }
  40%  { clip-path: inset(44% 0 30% 0); transform: translate(5px, 0); }
  60%  { clip-path: inset(2% 0 88% 0);  transform: translate(-9px, 1px); }
  80%  { clip-path: inset(80% 0 4% 0);  transform: translate(4px, -1px); }
  100% { clip-path: inset(30% 0 48% 0); transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-skew {
  0%, 100% { transform: none; }
  33% { transform: skewX(-8deg) translateX(2px); }
  66% { transform: skewX(5deg) translateX(-2px); }
}

/* Image glitch
   - the <img> itself jolts and splits into acid/violet channels
   - ::before / ::after are copies of the real image (var(--src)) with coloured
     fringes, sliced and shifted, so the picture itself looks torn */
.glitch-img { position: relative; display: block; isolation: isolate; }
.glitch-img img { position: relative; z-index: 1; width: 100%; }
.glitch-img::before, .glitch-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: var(--src) center / contain no-repeat;
}
.glitch-img::before { filter: drop-shadow(-4px 0 0 var(--acid)); }
.glitch-img::after  { filter: drop-shadow(4px 0 0 var(--accent)); }
.glitch-img.is-glitching::before, .glitch-img:hover::before { opacity: 1; animation: glitch-a 0.45s steps(2, end) both; }
.glitch-img.is-glitching::after,  .glitch-img:hover::after  { opacity: 1; animation: glitch-b 0.45s steps(2, end) both; }
.glitch-img.is-glitching img, .glitch-img:hover img { animation: glitch-img-self 0.45s steps(3, end) both; }

@keyframes glitch-img-self {
  0%   { transform: none; filter: none; }
  20%  { transform: translate(-4px, 1px) skewX(-6deg); filter: drop-shadow(-5px 0 0 var(--acid)) drop-shadow(5px 0 0 var(--accent)); }
  40%  { transform: translate(5px, 0) skewX(4deg);     filter: drop-shadow(4px 0 0 var(--acid)) drop-shadow(-4px 0 0 var(--accent)) brightness(1.3); }
  60%  { transform: translate(-2px, -1px) scaleY(1.03); filter: drop-shadow(-7px 0 0 var(--acid)) drop-shadow(3px 0 0 var(--accent)); }
  80%  { transform: translate(2px, 1px);                filter: drop-shadow(2px 0 0 var(--acid)) drop-shadow(-6px 0 0 var(--accent)) contrast(1.4); }
  100% { transform: none; filter: none; }
}

/* Looping variant (hero logo, home photo): a short burst inside every 3.2s cycle */
.glitch-img--loop::before { opacity: 1; animation: glitch-burst-a 3.2s steps(1, end) infinite; }
.glitch-img--loop::after  { opacity: 1; animation: glitch-burst-b 3.2s steps(1, end) infinite 0.12s; }
.glitch-img--loop img { animation: glitch-burst-self 3.2s steps(1, end) infinite; }
@keyframes glitch-burst-a {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  90% { clip-path: inset(10% 0 64% 0); transform: translate(-14px, 0); }
  92% { clip-path: inset(58% 0 14% 0); transform: translate(10px, 0); }
  94% { clip-path: inset(30% 0 46% 0); transform: translate(-7px, 0); }
  96% { clip-path: inset(80% 0 4% 0);  transform: translate(16px, 0); }
}
@keyframes glitch-burst-b {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  90% { clip-path: inset(64% 0 10% 0); transform: translate(14px, 0); }
  92% { clip-path: inset(14% 0 58% 0); transform: translate(-10px, 0); }
  94% { clip-path: inset(46% 0 30% 0); transform: translate(7px, 0); }
  96% { clip-path: inset(4% 0 80% 0);  transform: translate(-16px, 0); }
}
@keyframes glitch-burst-self {
  0%, 88%, 98%, 100% { transform: none; filter: none; opacity: 1; }
  89% { transform: translateX(-6px) skewX(-5deg); filter: drop-shadow(-6px 0 0 var(--acid)) drop-shadow(6px 0 0 var(--accent)); }
  91% { transform: translateX(5px); opacity: 0.6; filter: none; }
  93% { transform: translateX(-3px) skewX(4deg); filter: drop-shadow(5px 0 0 var(--acid)) drop-shadow(-5px 0 0 var(--accent)) brightness(1.4); opacity: 1; }
  95% { transform: translateX(8px) scaleY(1.02); opacity: 0.8; filter: none; }
  97% { transform: translateX(-2px); filter: drop-shadow(-3px 0 0 var(--acid)) drop-shadow(3px 0 0 var(--accent)); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Top bar & navigation
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--bar-h);
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 28px;
  isolation: isolate;
}
.topbar::after { /* animated hairline */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--acid), var(--accent), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 4, 4, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
body.in-view .topbar::before { opacity: 1; }
body.menu-open .topbar::before { opacity: 0; }
body.in-view .topbar::after { opacity: 0.6; }

.topbar__logo {
  width: 150px;
  flex: none;
  margin-right: auto;
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
body.in-view .topbar__logo { opacity: 1; transform: none; filter: none; pointer-events: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
.nav__num { font-size: 10px; color: var(--faint); transition: color 0.3s; }
.nav__link .dot { color: var(--acid); font-weight: 900; transition: transform 0.3s var(--ease); display: inline-block; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--acid), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover .nav__num, .nav__link[aria-current="page"] .nav__num { color: var(--acid); }
.nav__link[aria-current="page"] .dot { animation: beat var(--beat) ease-out infinite; }
.nav__link:hover .dot { transform: scale(1.6); }

.nav__socials { display: none; }

.bpm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--faint);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.bpm__dot, .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(123, 63, 255, 0.7);
  animation: pulse var(--beat) ease-out infinite;
  display: inline-block;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 63, 255, 0.7); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 10px rgba(123, 63, 255, 0); transform: scale(1); }
}
@keyframes beat { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s, top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 19px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile nav: fullscreen blurred overlay */
@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  .topbar { gap: 12px; }
  .bpm { display: none; }
  .burger { display: block; }
  .topbar__logo { width: 120px; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--bar-h) + 24px) var(--gutter) 40px;
    background: rgba(4, 4, 4, 0.78);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
            backdrop-filter: blur(24px) saturate(140%);
    clip-path: circle(0 at calc(100% - var(--gutter) - 23px) calc(var(--bar-h) / 2));
    visibility: hidden;
    transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
  }
  body.menu-open .nav {
    clip-path: circle(150% at calc(100% - var(--gutter) - 23px) calc(var(--bar-h) / 2));
    visibility: visible;
    transition: clip-path 0.8s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav__list li {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
  }
  body.menu-open .nav__list li {
    opacity: 1; transform: none; filter: none;
    transition-delay: calc(0.12s + var(--i) * 0.06s);
  }
  .nav__link { font-size: clamp(38px, 12vw, 64px); font-weight: 900; letter-spacing: -0.02em; gap: 12px; }
  .nav__num { font-size: 12px; transform: translateY(-1.6em); }
  .nav__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    opacity: 0;
    transition: opacity 0.5s 0.1s;
  }
  body.menu-open .nav__socials { opacity: 1; transition-delay: 0.45s; }
  .nav__socials .platform { width: 42px; height: 42px; font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Views & transitions
   -------------------------------------------------------------------------- */
main { flex: 1; display: flex; flex-direction: column; outline: none; }

.view { display: none; flex: 1; }
.view.is-active { display: flex; flex-direction: column; animation: view-in 0.9s var(--ease) backwards; }
.view.is-leaving { display: flex; flex-direction: column; animation: view-out 0.42s var(--ease-in) forwards; pointer-events: none; }
html:not(.js) .view { display: flex; flex-direction: column; }

/* Blur + slice-glitch in. Ends without a filter so backdrop-filter keeps working. */
@keyframes view-in {
  0%   { opacity: 0; filter: blur(28px); transform: translateY(40px) scale(0.98); clip-path: inset(0 0 0 0); }
  18%  { opacity: 1; transform: translate(-10px, 20px) skewX(-6deg); clip-path: inset(18% 0 52% 0); }
  24%  { transform: translate(8px, 16px) skewX(4deg); clip-path: inset(62% 0 6% 0); }
  30%  { transform: translate(-4px, 12px); clip-path: inset(0 0 0 0); filter: blur(10px); }
  100% { opacity: 1; filter: blur(0); transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes view-out {
  0%   { opacity: 1; filter: blur(0); transform: none; clip-path: inset(0 0 0 0); }
  40%  { clip-path: inset(30% 0 40% 0); transform: translateX(14px) skewX(8deg); }
  55%  { clip-path: inset(0 0 0 0); transform: translateX(-10px); }
  100% { opacity: 0; filter: blur(24px); transform: translateY(-24px) scale(1.02); }
}

/* Staggered content reveal inside the active view */
.js .view [data-reveal] { opacity: 0; }
.js .view.is-active [data-reveal].is-in {
  opacity: 1;
  animation: reveal 0.9s var(--ease) backwards;
  animation-delay: calc(0.18s + var(--d, 0) * 0.07s);
}
@keyframes reveal {
  from { opacity: 0; filter: blur(14px); transform: translateY(26px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

.view:not(.hero) { padding: calc(var(--bar-h) + clamp(32px, 6vw, 72px)) 0 clamp(40px, 6vw, 80px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 52px);
  min-height: calc(100svh - 52px);
  justify-content: center;
  overflow: hidden;
}
.hero__inner {
  padding: calc(var(--bar-h) + 20px) 0 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero__title { width: min(620px, 100%); margin: 0; filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.6)); }
.hero__logo { width: 100%; }

.hero__tagline {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(17px, 2.4vw, 26px);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__socials { margin-top: 34px; }

/* Buttons */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.4s var(--ease), color 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn--primary {
  color: var(--on-acid);
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(241, 252, 0, 0.5), 0 10px 40px -10px rgba(241, 252, 0, 0.8);
  animation: btn-beat calc(var(--beat) * 2) ease-out infinite;
}
.btn--primary::before { /* sweep */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover { color: var(--on-acid); background: var(--acid-2); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn--ghost:hover { color: #fff; border-color: var(--accent); box-shadow: 0 0 30px -6px rgba(123, 63, 255, 0.7); }
.btn--ghost i { transition: transform 0.35s var(--ease); }
.btn--ghost:hover i { transform: translateX(4px); }
@keyframes btn-beat {
  0%   { box-shadow: 0 0 0 0 rgba(241, 252, 0, 0.55), 0 10px 40px -10px rgba(241, 252, 0, 0.8); }
  60%  { box-shadow: 0 0 0 14px rgba(241, 252, 0, 0), 0 10px 40px -10px rgba(241, 252, 0, 0.8); }
  100% { box-shadow: 0 0 0 0 rgba(241, 252, 0, 0), 0 10px 40px -10px rgba(241, 252, 0, 0.8); }
}

/* Platform / social icon buttons */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.platform {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 17px;
  color: #fff;
  border-radius: 50%;
  background: rgba(241, 252, 0, 0.18);
  border: 1px solid rgba(241, 252, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transform: translate(var(--mx), var(--my));
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.platform:hover {
  color: var(--on-acid);
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 0 24px rgba(241, 252, 0, 0.75);
}
.platform:hover i { animation: icon-pop 0.4s var(--ease); }
@keyframes icon-pop { 0% { transform: scale(0.6) rotate(-12deg); } 60% { transform: scale(1.2); } 100% { transform: none; } }

/* Tooltip label */
[data-label] { position: relative; }
@media (hover: hover) {
  .platform::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 4px 8px;
    font: 600 11px/1.2 var(--mono);
    white-space: nowrap;
    color: #000;
    background: #fff;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    filter: blur(4px);
    transition: opacity 0.25s, transform 0.3s var(--ease), filter 0.3s;
  }
  .platform:hover::after, .platform:focus-visible::after { opacity: 1; transform: translate(-50%, 0); filter: none; }
}

/* Hero entrance stagger for social icons */
.view.is-active .hero__socials.is-in .platform { animation: pop-in 0.6s var(--ease) backwards; animation-delay: calc(0.5s + var(--k, 0) * 0.04s); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.3); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Marquee */
.marquee {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  overflow: hidden;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  background: rgba(4, 4, 4, 0.35);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transform: rotate(-1.2deg) scale(1.02);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__group span {
  font-family: var(--display);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee__group span:nth-of-type(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.marquee__group i { color: var(--acid); font-size: 12px; animation: spin 4s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Panels & section headings
   -------------------------------------------------------------------------- */

.section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.section-head__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
}
.section-head__kicker img { height: 22px; width: auto; }
.section-head__kicker .line {
  width: 90px; height: 1px;
  background: linear-gradient(90deg, var(--acid), transparent);
  transform-origin: left;
  animation: line-grow 1.2s var(--ease) 0.3s backwards;
}
@keyframes line-grow { from { transform: scaleX(0); } }
.section-head__title {
  margin-top: 14px;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
.section-head__lead { margin: 16px 0 0; max-width: 52ch; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }

/* --------------------------------------------------------------------------
   Releases
   -------------------------------------------------------------------------- */
/* Streaming links above the Spotify player */
.stream-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.stream-links__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stream-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stream-link {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 252, 0, 0.3);
  background: rgba(241, 252, 0, 0.06);
  color: #fff; font-weight: 600; font-size: 14px;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.stream-link i { font-size: 17px; color: var(--acid); transition: color 0.3s; }
.stream-link:hover, .stream-link:focus-visible { background: var(--acid); border-color: var(--acid); color: var(--on-acid); box-shadow: 0 0 26px rgba(241, 252, 0, 0.45); }
.stream-link:hover i, .stream-link:focus-visible i { color: var(--on-acid); animation: icon-pop 0.4s var(--ease); }
.view.is-active .stream-links.is-in .stream-link { animation: pop-in 0.6s var(--ease) backwards; }
.view.is-active .stream-links.is-in li:nth-child(2) .stream-link { animation-delay: 0.05s; }
.view.is-active .stream-links.is-in li:nth-child(3) .stream-link { animation-delay: 0.1s; }
.view.is-active .stream-links.is-in li:nth-child(4) .stream-link { animation-delay: 0.15s; }
.view.is-active .stream-links.is-in li:nth-child(5) .stream-link { animation-delay: 0.2s; }
@media (max-width: 560px) {
  .stream-links { flex-direction: column; align-items: stretch; }
  .stream-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stream-links li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stream-link { width: 100%; justify-content: center; white-space: nowrap; padding: 10px 12px; font-size: 13.5px; }
}

.spotify-embed__head { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.spotify-embed__frame { border-radius: 12px; overflow: hidden; min-height: 352px; background: #121212; }
.spotify-embed__frame iframe { display: block; width: 100%; height: 352px; border: 0; }
/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: 16px; }
.contact__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.contact__label i { color: var(--acid); }

/* Spotlight shared by the mail block and social tiles (position set by JS) */
.contact__mail, .social-tile { position: relative; overflow: hidden; isolation: isolate; }
.contact__mail::after, .social-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(241, 252, 0, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.contact__mail:hover::after, .social-tile:hover::after { opacity: 1; }

.contact__mail {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 20px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: #fff;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.contact__mail .contact__label { grid-column: 1 / -1; }
.contact__addr {
  font-size: clamp(34px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.contact__go {
  width: clamp(48px, 7vw, 72px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(241, 252, 0, 0.4);
  color: var(--acid);
  font-size: clamp(16px, 2vw, 22px);
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.contact__mail:hover, .contact__mail:focus-visible { border-color: rgba(241, 252, 0, 0.45); }
.contact__mail:hover .contact__go, .contact__mail:focus-visible .contact__go { background: var(--acid); color: var(--on-acid); transform: rotate(-45deg); }
.contact__mail:hover .contact__addr::before, .contact__mail:hover .contact__addr::after { opacity: 0.8; animation: glitch-a 0.5s steps(2, end) infinite; }
.contact__mail:hover .contact__addr::after { animation-name: glitch-b; }

.contact__social { padding-top: clamp(16px, 2.5vw, 28px); }
.social-tiles {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.social-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff; font-weight: 600; font-size: 15px;
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s;
}
.social-tile i { width: 22px; text-align: center; font-size: 19px; color: var(--acid); transition: color 0.3s; }
.social-tile:hover, .social-tile:focus-visible { border-color: rgba(241, 252, 0, 0.45); transform: translateY(-3px); }
.social-tile:hover i { color: var(--accent); animation: icon-pop 0.4s var(--ease); }

@media (max-width: 560px) {
  .contact__mail { grid-template-columns: 1fr; }
  .contact__go { display: none; }
  .social-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .social-tile { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 8px; font-size: 14px; white-space: nowrap; }
}
/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.credits {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 20px;
  min-height: 52px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  font-size: 13px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.credits a { color: var(--acid); }
.credits a:hover { color: #fff; }
.credits__eq { display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; text-transform: uppercase; color: var(--faint); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { align-items: center; text-align: center; padding-bottom: 120px; }
  .hero__title { width: min(520px, 92%); }
  .hero__ctas, .hero__socials { justify-content: center; }
  .fx-figure {
    right: 0; left: 0;
    margin-inline: auto;
    height: min(78svh, 135vw);
    opacity: 0.38;
  }
  body.is-loading .fx-figure { opacity: 0; }
  .credits { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn { justify-content: center; }
  .hero__socials { gap: 8px; }
  .hero__socials .platform { width: 40px; height: 40px; font-size: 15px; }
  .section-head__kicker .line { width: 40px; }
  .hero__tagline { letter-spacing: 0.08em; }
  .credits__eq { display: none; }
}

@media (max-height: 640px) and (min-width: 901px) {
  .hero__inner { padding-bottom: 90px; }
  .hero__title { width: min(460px, 100%); }
  .marquee { bottom: 12px; }
}

/* --------------------------------------------------------------------------
   Reduced motion: keep it calm
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fx-grain, .fx-scan::after, .fx-flash, .glitch-img--loop::before, .glitch-img--loop::after { display: none; }
  .glitch-img--loop img { animation: none; }
  .marquee__track { animation: none; }
}

[tabindex="-1"]:focus { outline: none; }

/* --------------------------------------------------------------------------
   Performance: freeze home-page ambience while another view is open.
   Blurred, animated layers under backdrop-filter layers force a full
   re-blur every frame, which made inner pages sluggish.
   -------------------------------------------------------------------------- */
body.in-view .fx-bg { transform: none; transition: none; }
body.in-view .fx-bg__img { animation-play-state: paused; }
body.in-view .fx-viz { display: none; }
body.in-view .fx-grain,
body.in-view .fx-scan::after { animation: none; }
body.in-view .fx-scan::after { display: none; }
body.in-view .topbar::after { animation: none; }
body.in-view .marquee__track,
body.in-view .glitch-img--loop::before,
body.in-view .glitch-img--loop::after,
body.in-view .glitch-img--loop img { animation: none; }
/* Lighter glass on inner pages: one big blur is enough */
