:root {
  --ink: #07080c;
  --surface: #0d1017;
  --paper: #f3f0e9;
  --muted: #a6a8af;
  --lime: #7c2ff0;
  --cyan: #86e9ff;
  --magenta: #ff3cac;
  --line: rgba(243, 240, 233, 0.16);
  --radius: 20px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: "Syne", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body.lightbox-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(circle at 12% 28%, rgba(134, 233, 255, 0.11), transparent 25rem), radial-gradient(circle at 92% 55%, rgba(217, 255, 67, 0.08), transparent 27rem);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: calc(14px + var(--safe-t));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(243, 240, 233, 0.16);
  border-radius: 16px;
  background: rgba(8, 9, 13, 0.66);
  box-shadow: 0 12px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition: background 300ms ease, box-shadow 300ms ease, transform 380ms cubic-bezier(.2,.8,.2,1);
}
.site-header.is-condensed { background: rgba(8, 9, 13, 0.86); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.site-header.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }

.brand {
  flex: 0 0 auto;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.main-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 27px); margin-left: auto; }
.main-nav a { color: #d6d4ce; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transition: color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--lime); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.55;
  transition: background 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.lang-switch button:hover, .lang-switch button.active { background: rgba(243,240,233,0.12); filter: none; opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: max(680px, 100svh);
  isolation: isolate;
  overflow: hidden;
  padding: 130px max(5vw, 28px) 70px;
}

/* The still is the base layer so the hero is never a letterboxed poster:
   it always covers, and the video cross-fades in on top once it can play. */
.hero-media { position: absolute; z-index: -4; inset: 0; overflow: hidden; }
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.3) contrast(1.06);
  opacity: 0.78;
  animation: hero-drift 22s ease-in-out infinite alternate;
}

/* The encoded loop in assets/videos/web/ is already cropped to its footage,
   so this is a plain full-bleed cover layer. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.3) contrast(1.06);
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-video.is-playing { opacity: 0.72; }
.hero-media.is-video .hero-still { opacity: 0; }

.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 32%, transparent 0%, rgba(5,6,9,0.35) 58%, rgba(5,6,9,0.86) 100%),
    linear-gradient(90deg, rgba(5,6,9,0.8) 0%, rgba(5,6,9,0.22) 55%, rgba(5,6,9,0.14)),
    linear-gradient(0deg, var(--ink) 0%, rgba(7,8,12,0.55) 32%, transparent 62%),
    radial-gradient(circle at 50% 26%, rgba(255,60,172,0.22), transparent 42%);
}
/* Soft hand-off from the hero into the page background - no hard seam. */
.hero-fade {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, var(--ink) 12%, rgba(7,8,12,0.72) 48%, transparent 100%);
}
.hero-noise { position: absolute; z-index: -1; inset: -20px; pointer-events: none; opacity: 0.2; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E"); }

.hero-content { width: min(950px, 100%); margin: 0 auto; padding-bottom: 76px; text-align: center; }
.hero-kicker, .section-label { margin: 0 0 14px; color: var(--lime); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.hero h1 { position: relative; max-width: 100%; margin: 0; font-family: "Bebas Neue", sans-serif; font-size: clamp(5rem, 17vw, 13.5rem); font-weight: 400; letter-spacing: 0.015em; line-height: 0.78; overflow-wrap: anywhere; text-wrap: balance; text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan), 0 0 60px rgba(134,233,255,0.35); animation: title-flicker 6s steps(1, end) infinite; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { position: absolute; inset: 0; content: attr(data-text); pointer-events: none; opacity: 0; }
.glitch::before { color: var(--cyan); transform: translate(5px, 0); animation: glitch-left 5s steps(1, end) infinite; }
.glitch::after { color: var(--magenta); transform: translate(-5px, 0); animation: glitch-right 5s steps(1, end) infinite; }
.hero-subtitle { width: min(500px, 100%); margin: 28px auto 24px; color: #d7d5d0; font-size: clamp(0.98rem, 1.6vw, 1.16rem); line-height: 1.6; }

.hero-cta, .gallery-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: #10120a;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.hero-cta { box-shadow: 0 0 0 0 rgba(124,47,240,0.45); animation: cta-pulse 3.6s ease-out infinite; }
.hero-cta:hover, .hero-cta:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(124,47,240,0.25); }
.hero-cta:active { transform: scale(0.97); }

.hero-scroll-cue { position: absolute; bottom: calc(42px + var(--safe-b)); left: 50%; display: inline-flex; align-items: center; gap: 8px; color: rgba(243,240,233,0.72); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; transform: translateX(-50%); transition: color 180ms ease, transform 180ms ease; }
.hero-scroll-cue:hover { color: var(--paper); transform: translate(-50%, 3px); }
.hero-scroll-arrow { color: var(--lime); font-size: 1.15rem; animation: bob 1.7s ease-in-out infinite; }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124,47,240,0.06), rgba(134,233,255,0.05));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span { font-family: "Bebas Neue", sans-serif; font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: 0.06em; color: rgba(243,240,233,0.82); white-space: nowrap; }
.marquee-track i { color: var(--lime); font-size: 0.75rem; font-style: normal; }

/* ---------- Sections ---------- */

.section { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(92px, 11vw, 150px) 0; }
.section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section h2 { max-width: 920px; margin: 0; font-size: clamp(2.3rem, 5.2vw, 5.4rem); letter-spacing: -0.055em; line-height: 0.98; overflow-wrap: anywhere; text-wrap: balance; }
.section > p:not(.section-label) { max-width: 660px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.bio { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr); column-gap: clamp(38px, 9vw, 145px); }
.bio .section-label, .bio h2 { grid-column: 1; }
.bio > p:not(.section-label) { grid-column: 2; margin: 0 0 16px; }
.bio > p:nth-of-type(2) { grid-column: 2; grid-row: 2; align-self: end; }

.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 38px 0 18px; }
.gallery-filter button { min-height: 38px; padding: 0 15px; border-color: var(--line); background: transparent; color: var(--paper); font-size: 0.68rem; }
.gallery-filter button.active, .gallery-filter button:hover { border-color: var(--lime); background: var(--lime); color: #10120a; }
.gallery-filter button:active { transform: scale(0.96); }

/* ---------- SoundCloud ---------- */

.soundcloud-spotlight { display: grid; grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr); gap: 1px; min-height: 250px; margin: 36px 0; overflow: hidden; border: 1px solid rgba(124,47,240,0.42); border-radius: 20px; background: rgba(124,47,240,0.12); box-shadow: 0 26px 64px rgba(0,0,0,0.24); }
.soundcloud-spotlight-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: linear-gradient(155deg, #1a2110, #0d1012); }
.soundcloud-spotlight-copy p { margin: 0; color: var(--lime); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; }
.soundcloud-spotlight-copy span { max-width: 130px; color: var(--paper); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; }
.soundcloud-frame { position: relative; display: grid; place-items: center; min-height: 250px; background: #131518; }
.soundcloud-frame iframe { display: block; width: 100%; height: 100%; min-height: 250px; border: 0; }
.soundcloud-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid rgba(124,47,240,0.5);
  border-radius: 999px;
  background: rgba(124,47,240,0.1);
  color: var(--lime);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.soundcloud-play em { font-style: normal; }
.soundcloud-play:active { transform: scale(0.97); }

/* ---------- Visual archive deck ---------- */

.media-deck { position: relative; height: 470px; margin: 18px 0 46px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 48%, rgba(134,233,255,0.16), transparent 31%), linear-gradient(135deg, #10131b, #07080c 68%); isolation: isolate; overflow: hidden; perspective: 1400px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.media-deck::before { content: ""; position: absolute; inset: 0; opacity: 0.43; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, black 22%, black 78%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 22%, black 78%, transparent); }
.media-deck-halo { position: absolute; top: 50%; left: 50%; width: 43%; aspect-ratio: 1; border: 1px solid rgba(124,47,240,0.23); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 90px 18px rgba(124,47,240,0.09), inset 0 0 50px rgba(134,233,255,0.1); animation: deck-halo 5s ease-in-out infinite; }
.media-deck-meta { position: absolute; z-index: 3; top: 22px; left: 24px; margin: 0; color: var(--lime); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.16em; }
.deck-card { position: absolute; z-index: 1; margin: 0; overflow: hidden; border: 1px solid rgba(243,240,233,0.34); border-radius: 14px; background: #111 center/cover no-repeat; box-shadow: 0 25px 65px rgba(0,0,0,0.48); transform-style: preserve-3d; }
.deck-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(134,233,255,0.18), transparent 35%, rgba(255,60,172,0.2)); mix-blend-mode: screen; pointer-events: none; }
.deck-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.08); transition: opacity 420ms ease, transform 500ms cubic-bezier(.2,.8,.2,1); }
.deck-image-side { transition: opacity 260ms ease; }
.media-deck.is-transitioning .deck-image-side { opacity: 0; }
.deck-card--main .deck-image { position: absolute; inset: 0; }
.deck-card--main .deck-image--active { z-index: 1; }
.deck-card--main .deck-image--next { z-index: 2; opacity: 0; transform: scale(1.05); }
.media-deck.is-transitioning .deck-image--active { opacity: 0; transform: scale(0.98); }
.media-deck.is-transitioning .deck-image--next { opacity: 1; transform: scale(1); }
.deck-card--main { z-index: 3; top: 44px; left: 50%; width: min(46%, 500px); height: 350px; transform: translateX(-50%) rotateY(-2deg) rotateX(2deg); animation: deck-main 7s ease-in-out infinite; }
.deck-card--main figcaption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 42px 16px 15px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.1em; }
.deck-counter { color: var(--lime); }
.deck-card--left { top: 112px; left: 7%; width: 27%; height: 245px; transform: rotateY(25deg) rotateZ(-5deg); animation: deck-left 6.4s ease-in-out infinite; }
.deck-card--right { top: 96px; right: 7%; width: 27%; height: 245px; transform: rotateY(-25deg) rotateZ(5deg); animation: deck-right 6.8s ease-in-out infinite; }
.deck-card--back { z-index: 0; top: 137px; left: 50%; width: 32%; height: 210px; opacity: 0.54; transform: translateX(-50%) translateZ(-100px) rotateZ(-4deg); animation: deck-back 9s ease-in-out infinite; }
.media-deck-baseline { position: absolute; z-index: 4; right: 24px; bottom: 21px; left: 24px; display: flex; gap: 5px; align-items: end; height: 6px; }
.media-deck-baseline span { display: block; flex: 1; height: 1px; background: rgba(243,240,233,0.22); transition: background 300ms ease, height 300ms ease; }
.media-deck-baseline span.active { height: 4px; background: var(--lime); box-shadow: 0 0 10px rgba(124,47,240,0.8); }
.media-deck.is-transitioning .media-deck-baseline span.active { background: var(--magenta); }

.deck-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(243,240,233,0.28);
  border-radius: 50%;
  background: rgba(7,8,12,0.55);
  backdrop-filter: blur(8px);
  color: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.deck-nav::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.deck-nav--prev { left: 12px; }
.deck-nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.deck-nav--next { right: 12px; }
.deck-nav--next::before { transform: translateX(-2px) rotate(45deg); }
.deck-nav:hover { border-color: var(--lime); color: var(--lime); }
.deck-nav:active { transform: translateY(-50%) scale(0.9); }

.media-deck-hint { position: absolute; z-index: 4; right: 0; bottom: 36px; left: 0; margin: 0; color: rgba(243,240,233,0.45); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-align: center; text-transform: uppercase; transition: opacity 400ms ease; }
.media-deck.has-interacted .media-deck-hint { opacity: 0; }

/* ---------- Media grid ---------- */

.media-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.media-card {
  position: relative;
  display: flex;
  grid-column: span 4;
  min-width: 0;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* LQIP is set inline as background-image, so the tile is never a blank hole. */
  background-position: center;
  background-size: cover;
  background-color: #12141a;
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  transition: transform 450ms cubic-bezier(.2,.8,.2,1), border-color 260ms ease, box-shadow 260ms ease;
}
.media-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(134,233,255,0.12), transparent 35%, rgba(124,47,240,0.12)); opacity: 0; transition: opacity 260ms ease; z-index: 1; }
.media-card:nth-child(1) { grid-column: span 7; }
.media-card:nth-child(2) { grid-column: span 5; }
.media-card:nth-child(3) { grid-column: span 5; }
.media-card:nth-child(4) { grid-column: span 7; }
.media-card:nth-child(5),
.media-card:nth-child(6),
.media-card:nth-child(7) { grid-column: span 4; }
.media-card:nth-child(8) { grid-column: span 5; }
.media-card:nth-child(9) { grid-column: span 7; }
.media-card:nth-child(10) { grid-column: span 5; }
.media-card:nth-child(11) { grid-column: span 7; }
.media-card:hover { z-index: 1; transform: translateY(-7px) scale(1.01); border-color: rgba(124,47,240,0.72); box-shadow: 0 28px 64px rgba(0,0,0,0.26); }
.media-card:hover::before { opacity: 1; }
.media-card:active { transform: scale(0.985); }
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms ease, transform 700ms cubic-bezier(.2,.8,.2,1), filter 400ms ease; }
.media-card img.is-loaded { opacity: 1; }
.media-card:hover img { transform: scale(1.07); filter: saturate(1.12) contrast(1.08); }
.media-card__label { position: relative; z-index: 2; align-self: end; width: 100%; padding: 50px 17px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.82)); color: white; font-size: 0.77rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.media-card.hidden { display: none; }

.media-card__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(243,240,233,0.55);
  border-radius: 50%;
  background: rgba(7,8,12,0.42);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.media-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--paper);
  transform: translate(-50%, -50%);
}
.media-card:hover .media-card__play { border-color: var(--lime); background: rgba(124,47,240,0.2); transform: translate(-50%, -50%) scale(1.08); }

.audio-card { grid-column: span 5; min-height: 170px; width: 100%; justify-self: stretch; isolation: isolate; padding: 16px; background: radial-gradient(circle at 20% 15%, rgba(134,233,255,0.16), transparent 30%), linear-gradient(160deg, rgba(255,255,255,0.04), rgba(0,0,0,0.22)); }
.audio-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(125deg, rgba(134,233,255,0.16), transparent 46%, rgba(124,47,240,0.14)); }
.audio-card div { align-self: end; width: 100%; }
.audio-card p { max-width: 260px; margin: 0; color: #d0ced0; font-size: 0.76rem; line-height: 1.45; }
.audio-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(124,47,240,0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,47,240,0.14), rgba(134,233,255,0.08));
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.audio-link:hover { background: var(--lime); color: #10120a; }

/* ---------- Media modal ---------- */

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: rgba(7, 8, 12, 0.9);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.media-modal.is-open { display: flex; opacity: 1; }
/* The frame hugs the media instead of forcing a full-viewport black box. */
.media-modal__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1280px);
  max-height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.97);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.media-modal.is-open .media-modal__frame { transform: scale(1); }
.media-modal__frame img,
.media-modal__frame video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 32px - var(--safe-t) - var(--safe-b));
  object-fit: contain;
  background: #000;
}
.media-modal__frame video { width: 100%; }
.media-modal__close {
  position: fixed;
  top: calc(14px + var(--safe-t));
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 240, 233, 0.25);
  border-radius: 50%;
  background: rgba(7, 8, 12, 0.75);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.media-modal__close:active { transform: scale(0.92); }
.media-modal__spinner {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(243, 240, 233, 0.2);
  border-top-color: var(--lime);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: spin 800ms linear infinite;
  transition: opacity 200ms ease;
}
.media-modal.is-loading .media-modal__spinner { opacity: 1; }

/* ---------- Social / contact / footer ---------- */

.social { text-align: center; }
.social .section-label, .social h2, .social > p { margin-right: auto; margin-left: auto; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 840px; margin: 38px auto 0; }
.social-grid a { padding: 25px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.025); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; transition: color 220ms ease, background 220ms ease, transform 220ms ease; }
.social-grid a:hover { background: var(--cyan); color: #071018; transform: translateY(-4px); }
.social-grid a:active { transform: scale(0.97); }

.contact { max-width: 880px; text-align: center; }
.contact .section-label, .contact h2, .contact > p { margin-right: auto; margin-left: auto; }
.contact-form { padding: clamp(22px, 4vw, 40px); margin-top: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)); text-align: left; }
.form-row { display: grid; gap: 7px; margin-bottom: 16px; }
.form-row label { color: var(--cyan); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.form-row input, .form-row textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(243,240,233,0.15); border-radius: 10px; background: rgba(0,0,0,0.18); color: var(--paper); font-size: 16px; outline: none; transition: border-color 180ms ease, background 180ms ease; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--lime); background: rgba(0,0,0,0.36); }
.form-status { margin: 26px 0 0; color: var(--muted); font-size: 0.85rem; }
.email-link { display: inline-block; margin-top: 20px; color: var(--cyan); font-size: clamp(1.1rem, 2.5vw, 1.8rem); font-weight: 700; letter-spacing: -0.04em; word-break: break-word; }

footer { padding: 28px 24px calc(28px + var(--safe-b)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; text-align: center; }
footer p { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0; }

/* ---------- Scroll reveal (JS-driven, degrades to visible) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@keyframes hero-drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); } }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(124,47,240,0.4); } 70%, 100% { box-shadow: 0 0 0 16px rgba(124,47,240,0); } }
@keyframes deck-halo { 0%,100% { transform: translate(-50%, -50%) scale(0.91); opacity: 0.45; } 50% { transform: translate(-50%, -50%) scale(1.09); opacity: 0.95; } }
@keyframes deck-main { 0%,100% { transform: translateX(-50%) rotateY(-2deg) rotateX(2deg) translateY(0); } 50% { transform: translateX(-50%) rotateY(2deg) rotateX(-1deg) translateY(-10px); } }
@keyframes deck-left { 0%,100% { transform: rotateY(25deg) rotateZ(-5deg) translateY(0); } 50% { transform: rotateY(20deg) rotateZ(-3deg) translateY(13px); } }
@keyframes deck-right { 0%,100% { transform: rotateY(-25deg) rotateZ(5deg) translateY(0); } 50% { transform: rotateY(-20deg) rotateZ(3deg) translateY(-12px); } }
@keyframes deck-back { 0%,100% { transform: translateX(-50%) translateZ(-100px) rotateZ(-4deg); } 50% { transform: translateX(-50%) translateZ(-100px) rotateZ(4deg) scale(1.04); } }
@keyframes title-flicker { 0%, 87%, 89%, 100% { opacity: 1; } 88% { opacity: 0.72; } }
@keyframes glitch-left { 0%, 84%, 87%, 100% { clip-path: inset(0); opacity: 0; } 85% { clip-path: inset(15% 0 58%); opacity: 0.8; } 86% { clip-path: inset(62% 0 11%); opacity: 0.65; } }
@keyframes glitch-right { 0%, 85%, 88%, 100% { clip-path: inset(0); opacity: 0; } 86% { clip-path: inset(48% 0 24%); opacity: 0.85; } 87% { clip-path: inset(6% 0 76%); opacity: 0.6; } }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .site-header { gap: 12px; width: calc(100% - 20px); padding-left: 13px; }
  .brand { font-size: 1.65rem; }
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }

  .hero { min-height: 100svh; padding: 118px 24px 52px; }
  .hero-content { padding-bottom: 74px; }
  /* Fade the media into the background on all four edges so it reads as one
     composition rather than a rectangle pasted onto black. */
  .hero-media {
    mask-image: radial-gradient(120% 78% at 50% 40%, #000 42%, rgba(0,0,0,0.45) 74%, transparent 100%);
    -webkit-mask-image: radial-gradient(120% 78% at 50% 40%, #000 42%, rgba(0,0,0,0.45) 74%, transparent 100%);
  }
  .hero-still, .hero-video { transform: scale(1.12); }
  .hero-still { opacity: 0.85; }
  .hero-video.is-playing { opacity: 0.8; }
  .hero-overlay {
    background:
      radial-gradient(125% 62% at 50% 34%, transparent 0%, rgba(7,8,12,0.42) 55%, rgba(7,8,12,0.92) 100%),
      linear-gradient(0deg, var(--ink) 4%, rgba(7,8,12,0.62) 34%, rgba(7,8,12,0.1) 66%, rgba(7,8,12,0.55) 100%),
      radial-gradient(circle at 50% 22%, rgba(255,60,172,0.26), transparent 46%);
  }
  .hero-fade { height: 42%; }
  .hero h1 { font-size: clamp(4.6rem, 23vw, 8.5rem); line-height: 0.82; text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 44px rgba(134,233,255,0.4); }
  .hero-subtitle { margin: 22px auto 26px; }
  .hero-scroll-cue { bottom: calc(26px + var(--safe-b)); }

  .marquee { padding: 11px 0; }
  .marquee-track { gap: 18px; animation-duration: 24s; }

  .section { width: min(100% - 32px, 620px); padding: 82px 0; }
  .bio { display: flex; flex-direction: column; gap: 16px; }
  .bio .section-label, .bio h2, .bio > p { grid-column: auto; }
  .bio > p { margin: 0; }
  .bio > p:nth-of-type(2) { grid-row: auto; }
  .gallery-heading { display: block; }
  .gallery-filter { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin: 24px 0 18px; }
  .gallery-filter::-webkit-scrollbar { display: none; }
  .gallery-filter button { flex: 0 0 auto; }

  .soundcloud-spotlight { grid-template-columns: 1fr; min-height: 0; margin: 26px 0; }
  .soundcloud-spotlight-copy { min-height: 88px; padding: 18px; }
  .soundcloud-spotlight-copy span { max-width: none; font-size: 1.1rem; }
  .soundcloud-frame { min-height: 170px; }
  .soundcloud-frame iframe { min-height: 252px; }

  .media-deck { height: 385px; margin-bottom: 32px; border-radius: 18px; }
  .media-deck-meta { top: 15px; left: 16px; font-size: 0.56rem; }
  .deck-card--main { top: 46px; width: 62%; height: 258px; }
  .deck-card--left { top: 126px; left: 1%; width: 36%; height: 180px; }
  .deck-card--right { top: 112px; right: 1%; width: 36%; height: 180px; }
  .deck-card--back { top: 130px; width: 50%; height: 155px; }
  .media-deck-baseline { right: 16px; bottom: 15px; left: 16px; }
  .media-deck-hint { bottom: 30px; }
  /* Arrows sit clear of the cards and stay thumb-sized. */
  .deck-nav { width: 40px; height: 40px; top: auto; bottom: 46px; transform: none; }
  .deck-nav:active { transform: scale(0.9); }
  .deck-nav--prev { left: 10px; }
  .deck-nav--next { right: 10px; }

  .media-grid { display: block; columns: 2; column-gap: 10px; column-fill: balance; }
  .media-card, .media-card:nth-child(n) {
    display: inline-flex;
    width: 100%;
    margin: 0 0 10px;
    min-height: 0;
    grid-column: auto;
    break-inside: avoid;
  }
  .media-card { aspect-ratio: 0.86; }
  .media-card:nth-child(4n + 1) { aspect-ratio: 0.78; }
  .media-card:nth-child(4n + 2) { aspect-ratio: 1.06; }
  .media-card:nth-child(4n + 3) { aspect-ratio: 0.92; }
  .media-card:nth-child(4n + 4) { aspect-ratio: 1.18; }
  .media-card__label { padding: 40px 13px 12px; font-size: 0.68rem; }
  .media-card__play { width: 46px; height: 46px; }
  .media-card__play::before { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
  .audio-card { column-span: all; min-height: 0; aspect-ratio: auto; margin: 2px 0 10px; }

  .media-modal { padding: 0; }
  .media-modal__frame { width: 100%; border-radius: 0; box-shadow: none; }
  .media-modal__frame img,
  .media-modal__frame video { max-height: 100dvh; }

  .social-grid { grid-template-columns: 1fr; }
}

/* Hover effects only where a real pointer exists - otherwise phones get stuck
   in the hover state after a tap. */
@media (hover: none) {
  .media-card:hover { transform: none; border-color: var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.16); }
  .media-card:hover img { transform: none; filter: none; }
  .media-card:hover::before { opacity: 0; }
  .social-grid a:hover { background: rgba(255,255,255,0.025); color: inherit; transform: none; }
  .gallery-filter button:hover { border-color: var(--line); background: transparent; color: var(--paper); }
  .gallery-filter button.active { border-color: var(--lime); background: var(--lime); color: #10120a; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
