/* =========================================================
   MUSO — Press Kit
   Vanilla CSS · Afro House / Melodic Techno aesthetic
   Palette: #ff4718 (orange) · #6140E5 (purple) · #0a0a0a (ink)
   ========================================================= */

:root {
  --orange: #ff4718;
  --orange-soft: #ff6a3d;
  --purple: #6140E5;
  --purple-soft: #8a6dff;
  --ink: #0a0a0a;
  --ink-2: #121013;
  --ink-3: #1a1720;
  --cream: #f4efe6;
  --cream-dim: #cfc8ba;
  --line: rgba(244, 239, 230, 0.12);

  --font-display: 'Bebas Neue', 'Space Grotesk', Impact, sans-serif;
  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Space Grotesk', sans-serif;
  /* Mono for identifiers / handles / tech UI — JetBrains Mono has a slashed 0
     so things like "muso01" can't be misread as "MUS001" */
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 80px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* ink lives on html so that body can be transparent and the fixed grain
     layer (z-index: -1) sits between html's background and the content */
  background: var(--ink);
  /* Reserve scrollbar gutter so opening the lightbox (body overflow: hidden)
     doesn't cause a viewport width shift + layout storm. */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; color: var(--orange); font-family: var(--font-display); letter-spacing: 0.02em; }

/* ---------- Grain / film noise system ----------
   Single static layer, NO blend mode, NO animation.
   Blend modes on full-viewport fixed elements force the entire page
   to re-composite against the grain on every frame — massive perf cost.
   A plain low-opacity grain tile reads the same visually for 1/10th the cost.
------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Reusable heavy-grain backdrop for individual sections */
.section-noise {
  position: relative;
  isolation: isolate;
}
.section-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' seed='9'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
  opacity: 0.55;
}

/* ---------- Background orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2; /* furthest back: html ink > bg-orbs > grain > content */
  overflow: hidden;
  pointer-events: none;
}
/* Orbs are now plain radial gradients — no filter blur (very expensive),
   no keyframe animations (constant compositing). Visual result is nearly
   identical because blurred solid circles and radial gradients look the same. */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 1;
}
.orb-orange {
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(255, 71, 24, 0.42) 0%, rgba(255, 71, 24, 0) 62%);
  top: -240px; left: -240px;
}
.orb-purple {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(97, 64, 229, 0.48) 0%, rgba(97, 64, 229, 0) 62%);
  bottom: -320px; right: -280px;
}
.orb-orange-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 71, 24, 0.18) 0%, rgba(255, 71, 24, 0) 62%);
  top: 40%; left: 30%;
}

/* ==========================================================
   UNDERGROUND / Y2K GLYPH SYSTEM
   Crosshairs, rotating stars, side-tags, scattered glyphs,
   metadata tickers — flyer-core / techno-zine energy.
   ========================================================== */

/* Registration / crosshair marks (corners of hero) */
.reg-mark {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 4;
  color: var(--orange);
}
.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.reg-mark::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-0.5px); }
.reg-mark::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-0.5px); }
.reg-tl { top: 24px;    left: 48px;    }
.reg-tr { top: 24px;    right: 48px;   color: var(--purple); }
.reg-bl { bottom: 40px; left: 48px;    color: var(--purple); }
.reg-br { bottom: 40px; right: 48px;   }

/* Rotating ritual star behind logo (Keinemusik lineage) */
.hero-star {
  position: absolute;
  width: clamp(150px, 18vw, 280px);
  height: clamp(150px, 18vw, 280px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--orange);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
  animation: slowSpin 60s linear infinite;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero-title {
  position: relative;
  display: inline-block;
}
@keyframes slowSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.section { position: relative; }

/* Section meta — single terminal-style row combining counter + rule + eyebrow */
.section-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  max-width: 640px;
}
.section-counter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--orange);
  padding: 7px 14px 6px;
  border: 1px solid var(--orange);
  background: rgba(255, 71, 24, 0.06);
  position: relative;
}
.section-counter::before,
.section-counter::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--orange);
  background: var(--ink);
}
.section-counter::before { top: -3px;    left: -3px;  }
.section-counter::after  { bottom: -3px; right: -3px; }
.section-counter i {
  font-style: normal;
  color: var(--cream-dim);
  font-weight: 300;
  margin: 0 2px;
}
.section-rule {
  display: block;
  flex: 1 1 0;
  min-width: 40px;
  height: 1px;
  align-self: center;
  background: repeating-linear-gradient(
    90deg,
    rgba(244, 239, 230, 0.28) 0 6px,
    transparent 6px 10px
  );
}

/* Genre card — glyph as a self-contained top-right badge */
.genre-glyph {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--orange);
  border: 1px solid rgba(255, 71, 24, 0.45);
  border-radius: 50%;
  background: rgba(255, 71, 24, 0.06);
  transition: all 0.5s var(--ease);
  z-index: 2;
}
.genre-card:hover .genre-glyph {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(10, 10, 10, 0.15);
  transform: rotate(180deg);
}
.genre-meta {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 18px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  transition: all 0.4s var(--ease);
}
.genre-card:hover .genre-meta {
  color: rgba(10, 10, 10, 0.7);
  border-color: rgba(10, 10, 10, 0.3);
}

/* Registration marks — phone adjustments */
@media (max-width: 900px) {
  .reg-mark { width: 20px; height: 20px; }
  .reg-tl, .reg-tr { top: 18px; }
  .reg-tl, .reg-bl { left: 32px; }
  .reg-tr, .reg-br { right: 32px; }
  .reg-bl, .reg-br { bottom: 40px; }
}
@media (max-width: 640px) {
  .reg-tl, .reg-bl { left: 26px; }
  .reg-tr, .reg-br { right: 26px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--ink);
  padding: 14px var(--pad);
  border-bottom-color: var(--line);
}
.nav-logo img {
  height: 22px;
  filter: invert(1) brightness(1.4);
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover img { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

/* Right-side nav cluster: socials + PDF button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-socials {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--cream);
  transition: all 0.3s var(--ease);
}
.nav-social:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 71, 24, 0.05);
  transition: all 0.3s var(--ease);
}
.btn-pdf:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-socials { display: none; }
  .nav-right { gap: 0; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad) 140px;
  overflow: hidden;
}

/* ------- Hero background: blurred, orange-shifted crowd photo ------- */
.hero-bokeh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ink);
}
.hero-bokeh::before {
  /* Raw yop.jpg — static, no animation. Cheap. */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("assets/photos/full/yop.webp");
  background-size: cover;
  background-position: center;
}
.hero-bokeh::after {
  /* Soft dark vignette so text reads — no recoloring */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10,10,10,0.5) 95%),
    linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
}
/* Grain texture over the hero photo */
.hero-bokeh-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; display: flex; justify-content: center; }

/* Wrap lets us position corner marks + callouts OUTSIDE the portrait's overflow */
.hero-portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

/* Right-side portrait */
.hero-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  animation: fadeUp 1.2s var(--ease) 0.6s forwards;
  will-change: transform;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.05) saturate(1.05);
  transition: transform 6s var(--ease);
}
.hero-portrait:hover img { transform: scale(1.05); }
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch' seed='4'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}
.portrait-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 7px 14px;
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  z-index: 2;
}

/* ===== Ableton-style corner brackets around the portrait frame ===== */
.corner-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.1s forwards;
}
.corner-mark::before,
.corner-mark::after {
  content: '';
  position: absolute;
  background: #ffffff;
}
/* Top-left */
.corner-tl { top: -7px; left: -7px; }
.corner-tl::before { top: 0; left: 0; width: 16px; height: 1px; }
.corner-tl::after  { top: 0; left: 0; width: 1px; height: 16px; }
/* Top-right */
.corner-tr { top: -7px; right: -7px; }
.corner-tr::before { top: 0; right: 0; width: 16px; height: 1px; }
.corner-tr::after  { top: 0; right: 0; width: 1px; height: 16px; }
/* Bottom-left */
.corner-bl { bottom: -7px; left: -7px; }
.corner-bl::before { bottom: 0; left: 0; width: 16px; height: 1px; }
.corner-bl::after  { bottom: 0; left: 0; width: 1px; height: 16px; }
/* Bottom-right */
.corner-br { bottom: -7px; right: -7px; }
.corner-br::before { bottom: 0; right: 0; width: 16px; height: 1px; }
.corner-br::after  { bottom: 0; right: 0; width: 1px; height: 16px; }

.hero-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.chip {
  display: inline-block;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 71, 24, 0.08);
}
.chip-muted {
  border-color: var(--line);
  color: var(--cream-dim);
  background: rgba(255,255,255,0.03);
}

.hero-title {
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.4s forwards;
}
.hero-logo {
  width: clamp(220px, 32vw, 520px);
  filter: invert(1) brightness(1.4) drop-shadow(0 20px 60px rgba(255, 71, 24, 0.4));
}

.hero-tagline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--cream);
}
.hero-tagline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease) forwards;
}
.hero-tagline .word.accent { color: var(--orange); }
.hero-tagline .word:nth-child(1) { animation-delay: 0.7s; }
.hero-tagline .word:nth-child(2) { animation-delay: 0.8s; }
.hero-tagline .word:nth-child(3) { animation-delay: 0.9s; }
.hero-tagline .word:nth-child(4) { animation-delay: 1.0s; }
.hero-tagline .word:nth-child(5) { animation-delay: 1.1s; }
.hero-tagline .word:nth-child(6) { animation-delay: 1.2s; }
.hero-tagline .word:nth-child(7) { animation-delay: 1.3s; }
.hero-tagline .word:nth-child(8) { animation-delay: 1.4s; }

.hero-sub {
  margin-top: 24px;
  max-width: 560px;
  color: var(--cream-dim);
  font-size: clamp(15px, 1.3vw, 18px);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.7s forwards;
}

.hero-meta { flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(255, 71, 24, 0.3);
}
.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(255, 71, 24, 0.5);
}
.btn-ghost {
  border: 1px solid var(--cream);
  color: var(--cream);
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
/* Only the gallery section is heavy (19 full-res images) — skip its
   render work while off-screen. Single target so it doesn't interact
   with viewport-width changes on modal open. */
.section.gallery {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1600px;
}

.section-head {
  margin-bottom: 60px;
  max-width: 900px;
}
.eyebrow {
  flex-shrink: 0;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  white-space: nowrap;
}
.eyebrow::before {
  content: '// ';
  color: var(--orange);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--cream);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-text p {
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--cream-dim);
  margin-bottom: 22px;
  max-width: 58ch;
}
.about-text .lead {
  font-size: clamp(20px, 1.8vw, 28px);
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 30px;
}
.about-text strong { color: var(--orange); font-weight: 600; }
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 42px) !important;
  line-height: 1.1 !important;
  color: var(--cream) !important;
  border-left: 3px solid var(--orange);
  padding-left: 24px;
  margin-top: 36px !important;
  max-width: none !important;
}

.about-photo {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  /* Sticky so the image stays aligned with the top of the copy as you read */
  position: sticky;
  top: 100px;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* No forced aspect ratio — show the photo at its natural proportions, no crop */
  filter: contrast(1.05) saturate(1.1);
  transition: transform 1s var(--ease);
}
.about-photo:hover img { transform: scale(1.04); }
.photo-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Sound ---------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .genre-grid { grid-template-columns: 1fr; } }

.genre-card {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #131015; /* solid near-black so grain doesn't bleed through */
  transition: all 0.5s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.genre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.genre-card > * { position: relative; z-index: 1; }
.genre-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
}
.genre-card:hover::before { opacity: 1; }
.genre-card:hover .genre-num { color: var(--ink); }
.genre-card:hover h3 { color: var(--ink); }
.genre-card:hover p { color: rgba(10,10,10,0.8); }
.genre-card:hover .genre-bar span { background: var(--ink); }

.genre-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 20px;
  padding-right: 56px; /* keep clear of the glyph badge */
  transition: color 0.4s var(--ease);
}
.genre-card h3 {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  transition: color 0.4s var(--ease);
}
.genre-card p {
  color: var(--cream-dim);
  font-size: 15px;
  margin-bottom: 32px;
  transition: color 0.4s var(--ease);
}
.genre-bar {
  height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.genre-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 1.4s var(--ease), background 0.4s var(--ease);
}
.genre-card.in-view .genre-bar span { width: 100%; }

/* ---------- Listen ---------- */
.listen-wrap {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 71, 24, 0.2);
}
.listen-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}
.listen-note {
  padding: 16px 24px;
  text-align: center;
  color: var(--cream-dim);
  font-size: 13px;
  background: var(--ink-3);
  border-top: 1px solid var(--line);
}
.listen-note a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listen-print { display: none; }
.print-only { display: none; }

/* ---------- Performances ---------- */
.perf-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.perf-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: all 0.4s var(--ease);
  position: relative;
}
.perf-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.perf-item:hover::before { transform: scaleY(1); }
.perf-item:hover { padding-left: 20px; }
.perf-item:hover .perf-name { color: var(--orange); }

.perf-index {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--cream-dim);
  letter-spacing: 0.04em;
}
.perf-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  transition: color 0.3s var(--ease);
}
/* City sub-label sits inline with the perf-name.
   Tech-savvy mono — matches the .contact-value treatment for a consistent vibe. */
.perf-city {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.34em;                /* relative to perf-name's large caps */
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  margin-left: 0.5em;
  vertical-align: 0.35em;           /* lift baseline so it aligns optically */
  text-transform: uppercase;
  font-feature-settings: "zero";    /* slashed zero like the contact values */
  transition: color 0.3s var(--ease);
}
.perf-item:hover .perf-city { color: var(--cream); }
.perf-type {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .perf-item { grid-template-columns: 48px 1fr; }
  .perf-type { grid-column: 2; justify-self: start; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink-2);
  cursor: pointer;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.g-item:hover img {
  transform: scale(1.06);
}
.g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.6));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none; /* let clicks fall through to the img underneath */
}
.g-item:hover::after { opacity: 1; }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.985);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  will-change: opacity;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid var(--orange);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.lightbox-close:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #131015; /* solid so grain doesn't bleed through */
  transition: all 0.4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  isolation: isolate;
}
.contact-card::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0; right: 0;
  height: 0;
  background: var(--orange);
  transition: height 0.4s var(--ease);
  z-index: 0;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.contact-card:hover::before { height: 3px; }
.contact-card:hover .contact-arrow { color: var(--orange); transform: translate(4px, -4px); }
.contact-card:hover .contact-icon {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255, 71, 24, 0.1);
}

.contact-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
  padding-bottom: 40px;
}

/* QR code in the bottom-right of Instagram + SoundCloud cards.
   Kept on a cream tile so the PNG stays high-contrast regardless of the
   dark card/grain underneath — also makes it obviously a scannable object. */
.contact-qr {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  padding: 7px;
  background: var(--cream);
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact-card.has-qr:hover .contact-qr {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
/* Reserve right-side space for the QR so the value text doesn't run under it */
.contact-card.has-qr .contact-value { padding-right: 140px; }
.contact-card.has-qr .contact-label { padding-right: 140px; }
/* Cards with a QR need a little more vertical room so the tile doesn't crowd the icon */
.contact-card.has-qr { min-height: 220px; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s var(--ease);
}
.contact-icon svg {
  display: block;
}

.contact-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.contact-label::before { content: none; } /* already has // in the text */
.contact-value {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 500;
  color: var(--cream);
  word-break: break-word;
  letter-spacing: 0.01em;
  line-height: 1.2;
  /* JetBrains Mono supports stylistic sets — `zero` gives the slashed 0 */
  font-feature-settings: "zero", "ss02";
  font-variant-ligatures: none;
}
.contact-arrow {
  color: var(--cream-dim);
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
}

.contact-big {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.contact-big-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  text-transform: uppercase;
  margin-top: 24px;
}
.contact-big-label:first-child { margin-top: 0; }
.contact-big-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  color: var(--cream);
  line-height: 1;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 60px var(--pad) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--ink); /* solid so grain doesn't bleed through */
  isolation: isolate;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-logo {
  height: 32px;
  margin: 0 auto 24px;
  filter: invert(1) brightness(1.4);
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.footer-social {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 239, 230, 0.35);
  border-radius: 50%;
  color: var(--cream);
  transition: all 0.3s var(--ease);
}
.footer-social:hover {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
  transform: translateY(-2px);
}
.footer p {
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-mini {
  margin-top: 6px;
  color: var(--orange) !important;
  font-size: 10px !important;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   PRINT — PDF EXPORT
   Preserves the exact dark Afro House styling in the PDF.
   ========================================================== */
/* Print rules moved to end of file so they win source-order over mobile media queries */

/* ==========================================================
   MOBILE — phones & small tablets
   ========================================================== */

/* Tablet + small laptop */
@media (max-width: 900px) {
  :root { --pad: 22px; }

  .section { padding: 90px var(--pad); }
  .section-head { margin-bottom: 40px; }

  .about-grid { gap: 40px; }
  /* On tablet the sticky photo gets in the way once the grid stacks */
  .about-photo { position: relative; top: auto; }

  .listen-wrap iframe { height: 260px; }

  /* Hero — stack left/right */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right { order: 2; }
  .hero-portrait { max-width: 420px; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --pad: 18px; }

  /* Nav — condense PDF button to icon only, tighten logo */
  .nav { padding: 14px var(--pad); }
  .nav.scrolled { padding: 10px var(--pad); }
  .nav-logo img { height: 18px; }
  .btn-pdf { padding: 9px 12px; }
  .btn-pdf span { display: none; }

  /* Hero — tighter spacing and make sure marquee doesn't overlap CTAs */
  .hero {
    padding: 110px var(--pad) 120px;
    align-items: flex-start;
    padding-top: 120px;
  }
  .hero-meta { gap: 8px; margin-bottom: 22px; }
  .chip { padding: 6px 12px; font-size: 10px; }
  .hero-logo {
    width: min(78vw, 360px);
    filter: invert(1) brightness(1.4) drop-shadow(0 10px 30px rgba(255, 71, 24, 0.35));
  }
  .hero-tagline { margin-top: 18px; font-size: 30px; }
  .hero-sub { margin-top: 18px; font-size: 14px; }
  .hero-cta { margin-top: 28px; width: 100%; }
  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 14px 20px;
    font-size: 12px;
    min-height: 48px; /* touch target */
  }
  /* Sections */
  .section { padding: 70px var(--pad); }
  .section-head { margin-bottom: 32px; }
  .eyebrow { font-size: 10px; }
  .section-meta { gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
  .section-rule { min-width: 24px; }
  .section-title { font-size: 44px; line-height: 0.98; }

  /* About */
  .about-text .lead { font-size: 18px; margin-bottom: 22px; }
  .about-text p { font-size: 15px; margin-bottom: 18px; }
  .pull-quote { font-size: 22px !important; padding-left: 18px; margin-top: 26px !important; }
  .photo-tag { bottom: 12px; left: 12px; padding: 7px 12px; font-size: 9px; }

  /* Genres */
  .genre-grid { gap: 14px; }
  .genre-card { padding: 30px 24px; }
  .genre-num { font-size: 38px; margin-bottom: 14px; }
  .genre-card h3 { font-size: 30px; }
  .genre-card p { font-size: 14px; margin-bottom: 24px; }

  /* Listen */
  .listen-wrap iframe { height: 220px; }
  .listen-note { padding: 14px 18px; font-size: 12px; }

  /* Performances */
  .perf-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 22px 0;
  }
  .perf-index { font-size: 18px; grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .perf-name { font-size: 28px; grid-column: 2; }
  .perf-type { grid-column: 2; justify-self: start; font-size: 10px; padding: 5px 10px; }
  .perf-item:hover { padding-left: 14px; }

  /* Gallery — keep 2 cols, kill wide/tall spans so nothing gets awkward */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 10px;
  }
  .g-tall { grid-row: span 1; }
  .g-wide { grid-column: span 2; }

  /* Contact */
  .contact-grid { gap: 12px; margin-bottom: 50px; }
  .contact-card { padding: 28px 24px; min-height: 110px; }
  .contact-value { font-size: 22px; }
  .contact-arrow { top: 22px; right: 22px; width: 24px; height: 24px; }
  .contact-big { padding: 40px 0; }
  .contact-big-value { font-size: 26px; }

  /* Footer */
  .footer { padding: 40px var(--pad) 30px; }
  .footer-logo { height: 22px; }

  /* Lightbox close button — bigger tap target */
  .lightbox-close { top: 16px; right: 16px; width: 52px; height: 52px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-tagline { font-size: 26px; }
  .hero-logo { width: 82vw; }
  .section-title { font-size: 38px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .perf-name { font-size: 24px; }
}

/* Landscape phones — short heights */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding: 90px var(--pad) 90px; min-height: auto; }
  .hero-logo { width: min(40vw, 320px); }
  .hero-tagline { font-size: 24px; margin-top: 14px; }
  .hero-sub { margin-top: 12px; }
  .hero-cta { margin-top: 18px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bokeh::before { animation: none !important; }
  .orb { animation: none !important; }
  .hero-star { animation: none !important; }
}

/* ==========================================================
   PRINT / PDF EXPORT — kept at end of file so it wins on
   source order against the mobile media queries above.
   A4 portrait, 12mm white paper margins, dark ink content area.
   ========================================================== */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  /* Cover page goes edge-to-edge so the bokeh background fills the paper */
  @page :first {
    size: A4;
    margin: 0;
  }

  html, body {
    background: var(--ink) !important;
    color: var(--cream) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Hide interactive / web-only / noisy elements */
  .no-print,
  .nav,
  .btn-pdf,
  .hero-cta,
  .lightbox,
  iframe,
  .listen-wrap,
  #listen,                /* drop the Soundcloud section from PDF entirely */
  .bg-orbs {
    display: none !important;
  }
  /* .hero-bokeh, .hero-star, .reg-mark are kept — they're what makes the cover page feel like the web hero */

  /* All grain/noise overlays off in print — the web keeps them as the
     signature look, but for the PDF we want clean flat color areas. */
  .grain,
  .grain::before,
  .grain::after,
  .hero-bokeh-grain,
  .hero-portrait::after { display: none !important; }

  /* Kill all reveal animations — show everything at once */
  .reveal,
  .hero-title,
  .hero-sub,
  .hero-tagline,
  .hero-tagline .word,
  .hero-meta,
  .hero-portrait,
  .corner-mark {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  body { font-size: 11px; line-height: 1.45; }
  .print-only { display: block !important; }

  /* ================= HERO — faithful A4 take on the web hero =================
     Content area at 12mm @page margins = 186mm × 273mm.
     Two-column grid: MUSO logo + tagline + sub on the left (with ritual
     star glowing behind the logo), portrait photo on the right with the
     Ableton corner brackets and MUSO·LIVE orange tag. Blurred yop.webp
     as a bokeh background layer, dark vignette, grain on top — same
     layering as the website. */
  .hero {
    position: relative !important;
    /* Full-bleed A4 page (cover page has @page margin: 0) */
    min-height: 297mm !important;
    height: 297mm !important;
    width: 210mm !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    page-break-after: always;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Bokeh background — yop.webp, blurred, darkened */
  .hero-bokeh {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    overflow: hidden !important;
    background: var(--ink) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .hero-bokeh::before {
    content: '' !important;
    position: absolute !important;
    inset: -40px !important;                    /* oversize so blur edges don't show */
    background-image: url("assets/photos/full/yop.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(22px) brightness(0.55) saturate(1.15) !important;
    opacity: 0.9 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .hero-bokeh::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
      radial-gradient(ellipse at 30% 55%, rgba(255, 71, 24, 0.12) 0%, transparent 55%),
      radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(10, 10, 10, 0.78) 95%) !important;
  }

  /* Registration crosshairs in the four corners of the hero */
  .reg-mark {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    position: absolute !important;
    z-index: 5 !important;
  }
  .reg-tl { top: 8mm !important; left: 8mm !important; }
  .reg-tr { top: 8mm !important; right: 8mm !important; color: var(--purple) !important; }
  .reg-bl { bottom: 8mm !important; left: 8mm !important; color: var(--purple) !important; }
  .reg-br { bottom: 8mm !important; right: 8mm !important; }

  /* Two-column inner layout, scaled for A4 portrait */
  .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr 0.95fr !important;
    gap: 10mm !important;
    align-items: center !important;
    padding: 0 10mm !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .hero-left {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    min-width: 0 !important;
    position: relative !important;
  }

  .hero-right {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    position: relative !important;
    justify-content: center !important;
  }

  .hero-title {
    position: relative !important;
    display: inline-block !important;
    margin: 0 !important;
  }
  .hero-logo {
    display: block !important;
    width: 75mm !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    filter: invert(1) brightness(1.2) drop-shadow(0 3px 12px rgba(255, 71, 24, 0.35)) !important;
    position: relative !important;
    z-index: 2 !important;
  }

  /* Ritual star glowing behind the logo */
  .hero-star {
    display: block !important;
    position: absolute !important;
    width: 52mm !important;
    height: 52mm !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(15deg) !important;
    color: var(--orange) !important;
    opacity: 0.35 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    mix-blend-mode: screen !important;
  }

  .hero-tagline {
    display: block !important;
    text-align: left !important;
    justify-content: flex-start !important;
    font-family: var(--font-display) !important;
    font-size: 17px !important;
    line-height: 1 !important;
    margin: 7mm 0 0 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: var(--cream) !important;
  }
  .hero-tagline .word { display: inline-block !important; }
  .hero-tagline .word.accent { color: var(--orange) !important; }

  .hero-sub {
    text-align: left !important;
    margin: 5mm 0 0 !important;
    max-width: 85mm !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    color: var(--cream-dim) !important;
  }

  /* Right column — portrait with brackets + MUSO·LIVE tag */
  .hero-portrait-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
  }
  .hero-portrait {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 1px solid rgba(244, 239, 230, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .hero-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
  }
  .hero-portrait::after { opacity: 0.2 !important; }

  /* Ableton-style corner brackets around the portrait */
  .corner-mark {
    display: block !important;
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    z-index: 3 !important;
    opacity: 1 !important;
  }
  .corner-tl { top: -6px !important; left: -6px !important; }
  .corner-tr { top: -6px !important; right: -6px !important; }
  .corner-bl { bottom: -6px !important; left: -6px !important; }
  .corner-br { bottom: -6px !important; right: -6px !important; }

  .portrait-tag {
    display: inline-block !important;
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    padding: 4px 9px !important;
    font-family: 'Space Grotesk', monospace !important;
    font-size: 8.5px !important;
    letter-spacing: 0.18em !important;
    background: var(--orange) !important;
    color: var(--ink) !important;
    font-weight: 600 !important;
    z-index: 3 !important;
  }

  /* ================= SECTIONS =================
     Horizontal padding gives the content invisible breathing room
     inside the page margins (so grids don't touch the ink edges). */
  .section {
    padding: 10mm 8mm !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .section:not(:last-of-type) { page-break-after: auto; break-after: auto; }
  #performances,
  #gallery,
  #contact {
    page-break-before: always;
    break-before: page;
  }

  .section-head { margin-bottom: 8mm !important; }
  .section-title { font-size: 38px !important; line-height: 1.05 !important; }
  .section-meta { font-size: 10px !important; }

  /* About */
  .about-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }
  .about-text p { font-size: 11px !important; }
  .about-text .lead { font-size: 14px !important; }
  .pull-quote { font-size: 15px !important; margin-top: 12px !important; }
  /* No crop in print either — let the photo sit at its natural ratio */
  .about-photo { position: relative !important; top: auto !important; overflow: visible !important; }
  .about-photo img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  /* Sound */
  .genre-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .genre-card { padding: 16px 14px !important; }
  .genre-card h3 { font-size: 20px !important; margin-top: 4px !important; }
  .genre-num { font-size: 24px !important; }
  .genre-card p { font-size: 10.5px !important; margin-bottom: 10px !important; }
  .genre-meta { font-size: 9.5px !important; }
  .genre-bar span { width: 100% !important; }

  /* Performances */
  .perf-item {
    display: grid !important;
    grid-template-columns: 48px 1fr auto !important;
    padding: 10px 0 !important;
  }
  .perf-index { font-size: 12px !important; }
  .perf-name { font-size: 24px !important; }
  .perf-city { font-size: 12px !important; vertical-align: 0.25em !important; }
  .perf-type { font-size: 10.5px !important; }

  /* Gallery — explicit sizing on every cell so print engines (esp. iOS
     Safari) actually rasterise the <img>. Percentage heights on images
     inside grid cells are unreliable in print; setting an explicit
     height on .g-item and dropping the web-side ::after overlay makes
     the photos show up consistently in the PDF. */
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 38mm !important;
    gap: 6px !important;
  }
  .g-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 38mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--ink-2) !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .g-item.g-tall { height: calc(38mm * 2 + 6px) !important; grid-row: span 2 !important; }
  .g-item.g-wide { grid-column: span 2 !important; }
  .g-item::after { display: none !important; }
  .g-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: none !important;
    transform: none !important;
  }

  /* Contact
     Sized so the section + footer fit on a single A4 page on every
     browser (desktop Chrome/Firefox, iOS Safari, Android Chrome).
     Previously min-height: 253mm filled the whole page and kicked the
     footer to its own sheet on mobile. Now we leave ~60mm of runway
     for the footer and glue it on with break-before: avoid below. */
  #contact {
    min-height: 205mm !important;
    display: flex !important;
    flex-direction: column !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  #contact .section-head { margin-bottom: 8mm !important; }
  .contact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .contact-card { padding: 14px 12px !important; min-height: 0 !important; }
  .contact-label { font-size: 10px !important; }
  .contact-value { font-size: 11px !important; }

  /* Let contact cards grow to fit the QR tile below the value in print */
  .contact-card {
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .contact-card::before { display: none !important; }

  /* QR codes: generous size for real-world scanning off paper.
     object-fit + explicit background and color-adjust ensure the SVG QR
     rasterises cleanly in every print engine (Chrome, Safari, iOS). */
  .contact-qr {
    position: static !important;
    display: block !important;
    width: 40mm !important;
    height: 40mm !important;
    max-width: 40mm !important;
    margin: 6mm auto 0 !important;
    padding: 2.5mm !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid var(--line) !important;
    object-fit: contain !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  /* In print we let the QR sit below the value naturally — drop the reserved space */
  .contact-card.has-qr .contact-value,
  .contact-card.has-qr .contact-label { padding-right: 0 !important; }
  .contact-big {
    margin-top: auto !important;    /* pushes to the bottom of #contact */
    padding: 10mm 0 6mm !important;
    border-top: 1px solid rgba(244, 239, 230, 0.12) !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
  .contact-big-label { font-size: 10px !important; }
  .contact-big-value { font-size: 20px !important; }

  /* Footer — glued to the contact section so mobile PDFs don't push it
     onto its own page. Safari/iOS needs both page-break-* (legacy) and
     break-* (modern) variants to reliably keep them together. */
  .footer {
    padding: 6mm 8mm 0 !important;
    page-break-before: avoid !important;
    break-before: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .footer-logo { max-width: 80px !important; }

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

