/* ===================================================================
   DJ NIHAN — Press Kit
   Dark / aggressive hardstyle-techno aesthetic
   =================================================================== */

:root {
  /* Core palette */
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --bg-card: #161616;
  --line: #262626;

  /* Red brand */
  --red: #e10600;          /* graphic shards + large display accents */
  --red-bright: #ff1a0d;   /* glows, hovers */
  --red-text: #ff3b30;     /* inline emphasis (passes 4.5:1 on near-black) */

  /* Text */
  --text: #ededed;
  --text-dim: #b3b3b3;     /* secondary text, ~7:1 on --bg */
  --white: #ffffff;

  /* Type */
  --f-display: "Anton", sans-serif;
  --f-head: "Rajdhani", sans-serif;
  --f-body: "Barlow Condensed", sans-serif;

  /* Spacing rhythm (8pt) */
  --pad-x: clamp(1.25rem, 5vw, 6rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the fixed nav when jumping to them */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Selection */
::selection { background: var(--red); color: #fff; }

/* ===================== PRELOADER ===================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000; /* above lightbox (1000), nav (100) and all FX layers */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}
.preloader.is-hidden {
  opacity: 0;
  pointer-events: none; /* never block clicks once faded */
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.preloader-logo {
  width: clamp(180px, 38vw, 320px);
  height: auto;
  /* static red glow; the pulse animates only opacity + transform (GPU-friendly) */
  filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.45));
  transform: skewX(-7deg);
  animation: preloaderPulse 1.6s var(--ease) infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.65; transform: skewX(-7deg) scale(0.985); }
  50%      { opacity: 1;    transform: skewX(-7deg) scale(1); }
}
/* thin red indeterminate progress bar under the logo */
.preloader-bar {
  position: relative;
  width: clamp(140px, 30vw, 240px);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.preloader-bar span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  animation: preloaderSweep 1.2s var(--ease) infinite;
}
@keyframes preloaderSweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ===================== NAV ===================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad-x);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  transform: skewX(-8deg);
}
.nav-logo {
  height: clamp(20px, 3.4vw, 28px);
  width: auto;
  filter: drop-shadow(0 0 6px rgba(225, 6, 0, 0.0));
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-brand:hover .nav-logo {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 14px rgba(225, 6, 0, 0.6));
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--white); }

.nav-cta {
  color: #fff !important;
  background: var(--red);
  padding: 0.7rem 1.5rem; /* keeps tap target >= 44px tall */
  white-space: nowrap;     /* keep "Book Nihan" on one line */
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--red-bright); }

/* Hide secondary nav links on small screens, keep brand + CTA */
@media (max-width: 760px) {
  .nav-list li:not(:last-child) { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 7rem var(--pad-x) 4rem;
  overflow: hidden;
  background: var(--bg);
}

/* Background artist photo, darkened + red-graded for contrast */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* pushed way back: heavily blurred + near-black so it reads as ambient depth, not a duplicate */
  filter: grayscale(100%) contrast(1.05) brightness(0.15) blur(18px);
  transform: scale(1.14);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 8%, rgba(225, 6, 0, 0.22), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(225, 6, 0, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.85) 100%);
}

/* Thin red crack lines across the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 49.7%, rgba(225,6,0,0.55) 49.85%, transparent 50%),
    linear-gradient(72deg, transparent 69.7%, rgba(225,6,0,0.30) 69.82%, transparent 70%),
    linear-gradient(100deg, transparent 22.7%, rgba(225,6,0,0.22) 22.8%, transparent 23%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Editorial split: copy left, figure right (no overlap) */
.hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero-copy { text-align: left; }
.hero-copy > * + * { margin-top: 1.4rem; }

/* Floating cutout — offset to its own column */
.hero-cutout {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin: 0;
  height: min(68vh, 580px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}
/* pulsing red aura behind the figure so it doesn't read flat on black */
.hero-cutout::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 96%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.62) 0%, rgba(225, 6, 0, 0.26) 42%, transparent 72%);
  filter: blur(42px);
  animation: heroAura 5.5s ease-in-out infinite;
}
/* tighter, brighter core for depth */
.hero-cutout::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 52%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 60, 40, 0.5) 0%, rgba(225, 6, 0, 0.18) 45%, transparent 68%);
  filter: blur(30px);
  animation: heroAura 4.2s ease-in-out infinite reverse;
}
.hero-cutout img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* dark seat + soft red rim-light so cutout edges don't look harsh on black */
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 26px rgba(225, 6, 0, 0.35));
  animation: heroFloat 6.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes heroAura {
  0%, 100% { opacity: 0.6;  transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.07); }
}

/* Hero NIHAN logo (constrained so it never goes full-bleed) */
.wordmark-logo {
  margin: 0;
  line-height: 0;
}
.logo-img {
  width: clamp(220px, 32vw, 480px);
  height: auto;
  transform: skewX(-7deg);
  filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.45));
}
/* Glitch-in is choreographed AFTER the cutout (see entrance sequence). Gated on .js
   so the logo is always visible if JS/CSS animation never runs. */
.js .logo-img {
  opacity: 0;
  animation:
    logoRGBIn 1s var(--ease) 1.05s both,
    logoGlow 4.5s ease-in-out 2.2s infinite;
}

/* RGB-split / chromatic-aberration flicker: a few hard frames, then settles */
@keyframes logoRGBIn {
  0%   { opacity: 0; transform: skewX(-7deg) translateX(-18px); clip-path: inset(0 0 100% 0);
         filter: drop-shadow(0 0 0 transparent); }
  16%  { opacity: 1; transform: skewX(-7deg) translateX(9px);  clip-path: inset(0 0 38% 0);
         filter: drop-shadow(-7px 0 0 rgba(255,0,42,0.9)) drop-shadow(7px 0 0 rgba(0,210,255,0.7)); }
  30%  { transform: skewX(-7deg) translateX(-7px); clip-path: inset(44% 0 18% 0);
         filter: drop-shadow(6px 0 0 rgba(255,0,42,0.85)) drop-shadow(-6px 0 0 rgba(0,210,255,0.6)); }
  44%  { transform: skewX(-7deg) translateX(6px);  clip-path: inset(8% 0 56% 0);
         filter: drop-shadow(-5px 0 0 rgba(255,0,42,0.7)) drop-shadow(5px 0 0 rgba(0,210,255,0.5)); }
  58%  { transform: skewX(-7deg) translateX(-3px); clip-path: inset(0 0 0 0);
         filter: drop-shadow(4px 0 0 rgba(255,0,42,0.5)) drop-shadow(-2px 0 0 rgba(0,210,255,0.35)); }
  74%  { transform: skewX(-7deg) translateX(1px);  filter: drop-shadow(0 0 14px rgba(225,6,0,0.5)); }
  100% { opacity: 1; transform: skewX(-7deg) translateX(0); clip-path: inset(0 0 0 0);
         filter: drop-shadow(0 0 18px rgba(225,6,0,0.45)); }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(225, 6, 0, 0.35)); }
  50%      { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 34px rgba(225, 6, 0, 0.55)); }
}

.eyebrow {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--red-text);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 18vw, 14rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--white);
  transform: skewX(-7deg);
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.12em;
  margin: 0.25rem 0 1rem;
  transform: skewX(-7deg);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  text-stroke: 1.5px var(--red);
}

.hero-sub {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  margin: 0 0 2rem;
}

/* spacing handled by .hero-copy owl margins */
.hero-copy .eyebrow,
.hero-copy .hero-sub { margin-top: 0; margin-bottom: 0; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.9rem; }

.btn {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-text); transform: translateY(-2px); }

/* Hero photo */
.hero-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  filter: grayscale(100%) contrast(1.05);
  transform: skewX(-3deg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.hero-photo img { transform: skewX(3deg) scale(1.05); }

/* Scroll hint */
.scroll-hint {
  position: relative;
  z-index: 2;
  margin: 2.5rem auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.scroll-hint:hover { color: var(--white); }
.scroll-arrow {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ===================== GLITCH WORDMARK ===================== */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--white);
  overflow: hidden;
}
.glitch::before {
  color: var(--red);
  clip-path: inset(0 0 55% 0);
  animation: glitchTop 3.4s steps(2, end) infinite;
  mix-blend-mode: screen;
}
.glitch::after {
  color: var(--red);
  clip-path: inset(55% 0 0 0);
  animation: glitchBottom 3.9s steps(2, end) infinite;
  mix-blend-mode: screen;
  opacity: 0.85;
}
@keyframes glitchTop {
  0%, 88%, 100% { transform: translate(0, 0); }
  90% { transform: translate(-4px, -2px); }
  93% { transform: translate(5px, 1px); }
  96% { transform: translate(-2px, 2px); }
}
@keyframes glitchBottom {
  0%, 84%, 100% { transform: translate(0, 0); }
  86% { transform: translate(4px, 2px); }
  90% { transform: translate(-5px, -1px); }
  94% { transform: translate(2px, -2px); }
}

/* ===================== SHARDS (cursor / scroll reactive) ===================== */
.shards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.shard {
  position: absolute;
  display: block;
  background: linear-gradient(120deg, var(--red), transparent);
  opacity: 0.5;
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.shard.s1 { top: 12%; left: 6%;  width: 220px; height: 2px; transform: rotate(28deg); }
.shard.s2 { top: 30%; right: 10%; width: 160px; height: 2px; transform: rotate(-42deg); opacity: 0.35; }
.shard.s3 { bottom: 18%; left: 14%; width: 120px; height: 2px; transform: rotate(-18deg); opacity: 0.3; }
.shard.s4 { top: 60%; right: 22%; width: 90px; height: 2px; transform: rotate(52deg); opacity: 0.4; }
.shard.s5 { bottom: 30%; right: 6%; width: 200px; height: 2px; transform: rotate(12deg); opacity: 0.25; }

/* ===================== SECTIONS ===================== */
.section {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--pad-x);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }

.section-index {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--red-text); /* brighter red: passes 4.5:1 at this small size */
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1;
  margin: 0 0 1.5rem;
  color: var(--white);
}
.section-title .accent { color: var(--red-text); }

.section-lead {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.about-body { max-width: 62ch; }
.about-body p { margin: 0 0 1.1rem; color: var(--text); }

/* inline highlight word */
.hl { color: var(--red-text); font-weight: 600; }
strong.hl { font-weight: 700; }

/* ===================== SPECIALTIES ===================== */
.genre-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.genre {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}
.genre:hover {
  border-color: var(--red);
  color: var(--red-text);
  transform: translateY(-3px);
}

/* ===================== HIGHLIGHTS ===================== */
.venue-label,
.footer-note { margin-top: 2rem; }
.venue-label {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.venue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
}
.venue-list li {
  font-family: var(--f-head);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}
.venue-more { color: var(--text-dim); font-style: italic; margin-top: 1rem; }

/* ---- Countries / flag centerpiece ---- */
.flags-label {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red-text);
  font-size: 0.9rem;
  font-weight: 600;
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}
.flags-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 960px;
}
.flag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  /* red glow behind the tile, matching the site's accent */
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.12), 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 30px rgba(225, 6, 0, 0.3);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* radial red bloom seated behind each flag */
.flag-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 36%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.55) 0%, rgba(225, 6, 0, 0.22) 42%, transparent 72%);
  filter: blur(26px);
  opacity: 0.85;
  pointer-events: none;
}
.flag-card:hover,
.flag-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(225, 6, 0, 0.5);
}
.flag-graphic {
  position: relative;
  z-index: 1;
  height: clamp(78px, 12vw, 120px);
  display: grid;
  place-items: center;
}
.flag-svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
/* Nepal flag is non-rectangular — no box border/shadow, it carries its own blue border */
.flag-svg--nepal { border: 0; box-shadow: none; }
.flag-name {
  position: relative;
  z-index: 1;
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  color: var(--white);
}

/* 2x2 grid on tablet/mobile */
@media (max-width: 620px) {
  .flags-row { grid-template-columns: repeat(2, 1fr); max-width: 420px; gap: 1rem; }
}
@media (max-width: 480px) {
  .flag-card { padding: 1rem 0.5rem; gap: 0.7rem; }
}

/* ===================== ORIGINALS ===================== */
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.track {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease), background 0.25s var(--ease);
}
.track:hover { padding-left: 1.25rem; background: linear-gradient(90deg, rgba(225,6,0,0.08), transparent); }
.track-num {
  font-family: var(--f-display);
  color: var(--red-text); /* brighter red for small-text contrast */
  font-size: 1.1rem;
  min-width: 2.5rem;
}
.track-name {
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.track:hover .track-name { color: var(--red-text); }

/* ===================== BUY TRACKS ===================== */
.tracks-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* QR column: QR card on top, callout fills the gap below to balance the steps column */
.qr-col {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* QR card */
.qr-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(225, 6, 0, 0.22);
}

/* Highlighted "after paying" callout under the QR */
.pay-callout {
  flex: 1 1 auto;            /* grow to fill the empty space beneath the QR */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  box-shadow: 0 0 26px rgba(225, 6, 0, 0.18);
}
.callout-head {
  margin: 0;
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-text);
}
.callout-text {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.callout-btn {
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
}
.qr-label {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-text);
  text-align: center;
}
.qr-frame {
  display: block;
  background: #fff;            /* light backing so the QR stays scannable */
  padding: 0.75rem;
  border-radius: 4px;
  max-width: 240px;
  margin: 0 auto;
}
.qr-frame img { width: 100%; height: auto; display: block; }

/* Price tag */
/* Bundle stats row: price + the 145 count sit together, bottom-aligned */
.bundle-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1.5rem, 6vw, 3.5rem);
  margin: 0 0 0.9rem;
}
.price-tag {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}
.count-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}
.count-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--red-text);
  transform: skewX(-7deg);
  filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.45));
}
.count-label {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--text-dim);
  max-width: 11ch;
}
.price-kind {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-text);
}
.price-amount {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  transform: skewX(-7deg);
  filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.45));
}
.price-desc {
  font-family: var(--f-head);
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

/* Numbered buy steps */
.buy-steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.buy-steps li {
  position: relative;
  counter-increment: step;
  padding: 0.12rem 0 0 3.1rem;
  min-height: 2.1rem;
  font-family: var(--f-body);
  color: var(--text);
  line-height: 1.55;
}
.buy-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--red-text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.tracks-cta { display: inline-block; }

.buy-urgent {
  margin: 1.5rem 0 0;
  font-family: var(--f-head);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.buy-urgent a {
  color: var(--red-text);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 59, 48, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.buy-urgent a:hover { color: var(--white); border-color: var(--white); }

/* ---- Mobile / narrow: single column with an explicit reading order ---- */
@media (max-width: 760px) {
  .tracks-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
  }
  /* flatten both column wrappers so their children stack in one column */
  .qr-col,
  .tracks-info { display: contents; }

  /* order: price → description → QR → callout → steps → button → urgent line */
  .bundle-stats { order: 1; }
  .price-desc   { order: 2; }
  .qr-card      { order: 3; }
  .pay-callout  { order: 4; }
  .buy-steps    { order: 5; }
  .tracks-cta   { order: 6; }
  .buy-urgent   { order: 7; }

  /* spacing comes from the flex gap — clear per-block margins so it stays even */
  .bundle-stats,
  .price-desc,
  .buy-steps,
  .buy-urgent { margin: 0; }

  /* price (NPR 10,000) and the 145 stat stack instead of crowding side by side */
  .bundle-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* callout sits full-width with no stray growth/clipping; border + glow intact */
  .pay-callout { flex: 0 0 auto; width: 100%; }

  /* keep the primary CTA at its natural width rather than stretched edge-to-edge,
     and keep its long label on a single line */
  .tracks-cta { align-self: flex-start; white-space: nowrap; }

  /* keep the WhatsApp link as one unbroken unit so it never wraps mid-link */
  .buy-urgent a { white-space: nowrap; }
}

/* ---- Small phones: shrink the long button label / urgent line to fit one line ---- */
@media (max-width: 480px) {
  .tracks-cta {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .buy-urgent { font-size: 0.82rem; }
}

/* ===================== GALLERY ===================== */
.gallery-subhead {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: var(--red-text);
  margin: 1.75rem 0 0.75rem;
}
.gallery-subhead:first-of-type { margin-top: 1rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
/* Live photos: portrait tiles, cover-fit */
.gallery-item { aspect-ratio: 3 / 4; }

/* Flyers: show the whole poster (text must stay legible), so contain on a dark tile */
.gallery-item--flyer { aspect-ratio: 4 / 5; }
.gallery-item--flyer img {
  object-fit: contain;
  background: var(--bg-elev, #0c0c0c);
}

@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Click-to-enlarge trigger filling each tile */
.tile-btn {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-item {
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item .tile-btn img { transition: transform 0.4s var(--ease); }
/* red glow + lift on hover/focus, matching the aesthetic */
.gallery-item:hover,
.gallery-item:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 26px rgba(225, 6, 0, 0.4);
  transform: translateY(-3px);
  z-index: 1;
}
.gallery-item:hover .tile-btn img,
.gallery-item:focus-within .tile-btn img { transform: scale(1.05); }
.gallery-item--flyer:hover .tile-btn img,
.gallery-item--flyer:focus-within .tile-btn img { transform: scale(1.03); } /* flyers are contain-fit, smaller zoom */

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(225, 6, 0, 0.25);
}
.lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox-close:hover { background: var(--red); border-color: var(--red-bright); }

/* ===================== STREAM / LISTEN ===================== */
.stream-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.25rem);
}
.stream-list li { flex: 1 1 200px; max-width: 320px; }

.stream-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
/* soft red aura that pulses gently and intensifies on hover */
.stream-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(58% 55% at 50% 38%, rgba(225, 6, 0, 0.20), transparent 70%);
  opacity: 0.6;
  animation: streamPulse 3.4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
.stream-link:hover,
.stream-link:focus-visible {
  transform: translateY(-5px);
  border-color: var(--red);
  background: var(--bg-elev);
}
.stream-link:hover::before,
.stream-link:focus-visible::before { opacity: 1; }

@keyframes streamPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.8; }
}

.stream-icon {
  position: relative;
  z-index: 1;
  width: clamp(58px, 9vw, 88px);
  height: clamp(58px, 9vw, 88px);
  display: grid;
  place-items: center;
}
.stream-icon svg {
  width: 100%;
  height: 100%;
  /* soft red/white glow at rest */
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 16px rgba(225, 6, 0, 0.30));
  transition: filter 0.3s ease, transform 0.3s var(--ease);
}
.stream-link:hover .stream-icon svg,
.stream-link:focus-visible .stream-icon svg {
  /* glow intensifies on hover */
  filter:
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 26px rgba(255, 26, 13, 0.8))
    drop-shadow(0 0 46px rgba(225, 6, 0, 0.6));
  transform: translateY(-3px) scale(1.07);
}
.stream-name {
  position: relative;
  z-index: 1;
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.stream-link:hover .stream-name,
.stream-link:focus-visible .stream-name { color: var(--white); }

/* ---- Live set video (responsive 16:9, click-to-play with sound) ---- */
.live-set { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.live-set-label {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-text);
  margin: 0 0 0.9rem;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(225, 6, 0, 0.18);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===================== MEDIA PLACEHOLDER (graceful degradation) ===================== */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
/* Styled empty state shown behind the image (and revealed if image fails) */
.media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--text-dim);
  background:
    repeating-linear-gradient(135deg, rgba(225,6,0,0.10) 0 2px, transparent 2px 16px),
    var(--bg-elev);
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* When JS flags a failed image, hide the broken <img> so the empty state shows */
.media img.img-failed { opacity: 0; }

/* ===================== PRESS ASSETS ===================== */
.assets-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.asset-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.asset-card:hover {
  transform: translateY(-3px);
  background: var(--bg-elev);
  border-left-color: var(--red-bright);
  box-shadow: 0 0 26px rgba(225, 6, 0, 0.32);
}
.asset-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: #0c0c0c;
  border: 1px solid var(--line);
  overflow: hidden;
}
.asset-thumb img { width: 100%; height: 100%; object-fit: contain; }
.asset-thumb--portrait img { object-fit: cover; object-position: center 20%; }
.asset-thumb--logo { padding: 0.5rem; }
.asset-meta { display: flex; flex-direction: column; gap: 0.3rem; }
.asset-name {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  color: var(--white);
}
.asset-kind {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--red-text);
  vertical-align: middle;
  margin-left: 0.35rem;
}
.asset-desc {
  font-family: var(--f-head);
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.asset-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--red-text);
}
.asset-dl svg { width: 1.05em; height: 1.05em; }
.asset-card:hover .asset-dl { color: var(--white); }

/* ===================== CONTACT ===================== */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-left-color: var(--red-bright); background: var(--bg-elev); }
.contact-kind {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--red-text);
  font-weight: 600;
}
.contact-value {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  word-break: break-word;
}

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad-x);
  text-align: center;
}
.footer-mark {
  margin: 0 0 1rem;
  line-height: 0;
}
.footer-logo {
  display: inline-block;
  width: clamp(90px, 17vw, 175px);
  height: auto;
  transform: skewX(-7deg);
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(225, 6, 0, 0.3));
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.footer-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 22px rgba(225, 6, 0, 0.55));
}
.footer-note {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.35rem 0.2rem;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}
.footer-credit-logo {
  height: 24px;
  width: auto;
  display: block;
}
.footer-credit-text {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-size: 0.72rem;
}
.footer-credit:hover,
.footer-credit:focus-visible {
  opacity: 1;
}
.footer-credit:hover .footer-credit-text,
.footer-credit:focus-visible .footer-credit-text {
  color: var(--text);
}

/* ===================== SCROLL REVEAL ===================== */
/* Base state is VISIBLE — hidden states only apply when JS is active (.js on <html>),
   so if JS fails or is disabled, all content remains visible. */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.stagger > * { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Safety net: if JS loaded the .js class but reveals never initialised, force-show everything */
.no-reveal .reveal,
.no-reveal .stagger > * { opacity: 1 !important; transform: none !important; }

/* Staggered children (gallery tiles, streaming chips) */
.js .stagger > * {
  opacity: 0;
  transform: translateY(22px);
}
.js .stagger.is-visible > * {
  opacity: 1;
  transform: none;
  /* gentle, slightly longer stagger; capped so large grids don't drag */
  transition-delay: calc(75ms * min(var(--i, 0), 10));
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  /* Stack: figure on top, copy below — centered */
  .hero { justify-content: center; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }
  .hero-cutout { order: -1; height: min(42vh, 380px); }
  .hero-copy { text-align: center; }
  .hero-copy .hero-actions { justify-content: center; }
  .glitch::after { display: none; } /* trim heavy effect on small screens */
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero { padding-top: 6rem; }
}

/* ===================================================================
   ENTRANCE SEQUENCE · AMBIENT MOTION · INTERACTION  (motion layer)
   Initial-hidden states are gated on .js so content shows if JS never
   runs. GPU-friendly: transform / opacity / filter only.
   =================================================================== */

/* ---- shared entrance keyframes ---- */
@keyframes fxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cutoutIn { from { opacity: 0; } to { opacity: 1; } }
/* crack/laser lines flicker into place like igniting filament */
@keyframes laserIgnite {
  0%   { opacity: 0; }
  35%  { opacity: 0.55; }
  50%  { opacity: 0.18; }
  68%  { opacity: 0.82; }
  100% { opacity: 0.7; }
}

/* ---- hero entrance choreography (timeline) ----
   lasers 0.15s → shards 0.35s → cutout 0.55s → eyebrow 0.85s
   → NIHAN logo glitch 1.05s (see .logo-img) → sub typewriter ~1.7s (JS)
   → buttons 1.95s → scroll hint 2.15s.  Directed top-to-bottom. */
.js .hero-bg          { opacity: 0; animation: fxFadeIn 1.1s var(--ease) 0.05s both; }
.js .hero::before     { opacity: 0; animation: laserIgnite 1s steps(8, end) 0.15s both; }
.js .shards           { opacity: 0; animation: fxFadeIn 1.2s var(--ease) 0.35s both; }
.js .hero-cutout      { opacity: 0; animation: cutoutIn 0.95s var(--ease) 0.55s both; }
.js .hero .eyebrow      { opacity: 0; animation: fadeUp 0.7s var(--ease) 0.85s both; }
.js .hero .hero-sub     { opacity: 0; animation: fadeUp 0.7s var(--ease) 1.7s both; }
.js .hero .hero-actions { opacity: 0; animation: fadeUp 0.7s var(--ease) 1.95s both; }
.js .scroll-hint        { opacity: 0; animation: fadeUp 0.8s var(--ease) 2.15s both; }

/* typewriter caret on the hero sub-line while JS types it out */
.hero-sub.is-typing { white-space: normal; }
.hero-sub.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(255, 26, 13, 0.85);
  animation: caretBlink 0.7s steps(1, end) infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- ambient film grain + scanlines (always-on, very faint) ---- */
.fx-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.5;
}
.fx-overlay::before {
  content: "";
  position: absolute;
  inset: -2px 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px,
    transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  animation: scanDrift 7s linear infinite;
}
.fx-overlay::after {
  content: "";
  position: absolute;
  inset: -60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
  opacity: 0.05;
  animation: grainShift 1.1s steps(4, end) infinite;
}
@keyframes scanDrift { from { transform: translateY(0); } to { transform: translateY(4px); } }
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---- desktop cursor-reactive red glow (element created by JS) ---- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 95;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.20) 0%, rgba(225, 6, 0, 0.08) 36%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }

/* ---- punchier button hover: glow bloom + slight scale ---- */
.btn {
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--red-bright);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 18px rgba(255, 26, 13, 0.55), 0 0 44px rgba(225, 6, 0, 0.42);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--red);
  color: var(--red-text);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.32);
}

/* ---- scroll choreography: continuous fade in AND out (JS-driven) ----
   will-change is applied per-section by JS only while it's near the viewport,
   then removed — so we don't keep a compositor layer for every section. */

/* When the hero scrolls out of view, freeze its always-on ambient animations
   (blurred auras, floating cutout, logo glow, scroll pulse) so they stop
   repainting off-screen. Purely a perf gate — no visual change while in view. */
.hero-offscreen .hero-cutout::before,
.hero-offscreen .hero-cutout::after,
.hero-offscreen .hero-cutout img,
.hero-offscreen .logo-img,
.hero-offscreen .scroll-arrow {
  animation-play-state: paused;
}

/* ---- gallery tiles: more dramatic settle (skew/rotate + scale) ---- */
.js .gallery-grid.stagger > * {
  opacity: 0;
  transform: translateY(36px) scale(0.9) rotate(-2.5deg);
}
.js .gallery-grid.stagger.is-visible > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(75ms * min(var(--i, 0), 10));
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Force every revealable thing visible regardless of .js specificity */
  .js .reveal, .reveal,
  .js .stagger > *, .stagger > *,
  .js .gallery-grid.stagger > * { opacity: 1 !important; transform: none !important; }
  .glitch::before, .glitch::after { display: none; }
  .scroll-arrow { animation: none; }
  .shard { transition: none; }
  /* freeze ambient hero motion */
  .hero-cutout { animation: none !important; transform: none; }
  .hero-cutout::before, .hero-cutout::after { animation: none !important; }
  .hero-cutout img { animation: none !important; transform: none; }
  .logo-img { animation: none !important; }

  /* neutralise the entrance sequence — content appears immediately */
  .js .hero-bg, .js .shards, .js .hero-cutout,
  .js .hero .eyebrow, .js .hero .hero-sub, .js .hero .hero-actions,
  .js .scroll-hint {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .js .hero::before { opacity: 0.7 !important; animation: none !important; }
  .js .logo-img { opacity: 1 !important; animation: none !important; transform: skewX(-7deg) !important; }

  /* kill ambient + interaction motion */
  .fx-overlay::before, .fx-overlay::after { animation: none !important; }
  .cursor-glow { display: none !important; }
  .hero-sub.is-typing::after { display: none !important; }
}
