/* ────────────────────────────────────────────────────────────────────
 * THE JAZZ BRIDGE FESTIVAL 2026 — SHARED STYLES
 * Scaffold styling. Visual direction TBD pending designer.
 * Continuity: cream + brass + ink palette from variants.
 * ────────────────────────────────────────────────────────────────────*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ────────────────────────────────────────────────────────────────────
 * DARK THEME 2026-05-25 - palette inverted. --cream and --ink swap so
 * the bulk of variable-driven colors flip automatically. Hardcoded
 * rgba() values use the same pattern; the override stylesheet at the
 * end of this file catches what variables can't reach.
 * ──────────────────────────────────────────────────────────────────── */
:root {
  --cream: #0e1d33;            /* was light cream - now ink */
  --cream-deep: #1a2a48;
  --brass: #c8902a;            /* brass stays */
  --brass-deep: #9c6c1a;
  --ink: #f7ecce;              /* was deep ink - now cream (text color) */
  --ink-soft: rgba(247,236,206,0.78);
  --muted: rgba(247,236,206,0.55);
  --border: rgba(247,236,206,0.14);

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-head: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  --nav-h: 4rem;
}

body {
  background-color: var(--cream);
  /* Noise dots now in cream-tinted alpha so they remain visible on the
     dark base — was hardcoded #0e1d33 in the light theme. */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><circle cx='1' cy='1' r='0.6' fill='%23f7ecce' fill-opacity='0.06'/></svg>");
  background-size: 6px 6px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ───────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem 0.8rem;
  /* box-sizing border-box so left/right padding stays INSIDE the
     viewport-spanning fixed bar — avoids the bar visually exceeding 100vw
     on narrow widths where the inner content + padding would otherwise
     compute to more than the viewport. */
  box-sizing: border-box;
  max-width: 100vw;
  background: rgba(247,236,206,0.0);
  border-bottom: 1px solid transparent;
  /* No transform on #nav — transform creates a containing block that traps
     position:fixed children (the mobile menu overlay needs to escape #nav). */
  transition: top 0.5s cubic-bezier(0.6,0.05,0.2,1),
              background 0.4s, border-color 0.4s;
}
#nav.scrolled,
body.solid-nav #nav {
  background: rgba(247,236,206,0.13);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border-bottom-color: rgba(14,29,51,0.03);
}
/* Fixed -px offset so the nav is just-out-of-view and transitions back
   smoothly. Percentage values resolved against an oversized containing
   block (body has overflow-x:hidden, which on phone makes the body act
   as the CB → -110% became thousands of px off-screen). */
#nav.nav-hidden { top: -140px; }

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  transition: color 0.3s, text-shadow 0.3s;
}
#nav.scrolled .nav-brand,
body.solid-nav .nav-brand { color: var(--ink); text-shadow: none; }

.nav-links {
  display: flex; gap: 1.8rem; list-style: none;
}
/* The festival logo at the bottom of the burger panel is PHONE-ONLY.
   Without this baseline `display: none`, the raw SVG renders at its
   default ~600x430 size inside the desktop nav bar (huge black logo). */
.nav-menu-logo-li, .nav-menu-logo { display: none; }
.nav-menu-presented-li { display: none; }
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.6,0.05,0.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: rgba(255,255,255,1); }
#nav.scrolled .nav-links a,
body.solid-nav .nav-links a {
  color: rgba(14,29,51,0.78);
  text-shadow: none;
}
#nav.scrolled .nav-links a:hover,
body.solid-nav .nav-links a:hover,
#nav.scrolled .nav-links a.active,
body.solid-nav .nav-links a.active { color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center;
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); background: var(--brass);
  padding: 0.55rem 1.1rem; border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--brass-deep); transform: translateY(-1px); }

.lang-switch {
  display: flex; gap: 0.25rem; align-items: center; margin-left: 1.5rem;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.25rem 0.35rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.lang-btn.active, .lang-btn:hover { color: var(--brass); }
.lang-sep { color: rgba(255,255,255,0.6); font-size: 0.65rem; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
#nav.scrolled .lang-btn,
body.solid-nav .lang-btn { color: rgba(14,29,51,0.85); text-shadow: none; }
#nav.scrolled .lang-sep,
body.solid-nav .lang-sep { color: rgba(14,29,51,0.45); text-shadow: none; }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-media img.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(14,29,51,0.55) 0%,
    rgba(14,29,51,0.35) 35%,
    rgba(14,29,51,0.65) 100%);
}

.hero-content {
  text-align: center;
  padding: 0 2rem;
  max-width: 1100px;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 0.6rem;
}
.hero-title em {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--brass);
}
.hero-sub {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  margin: 1rem auto 2.2rem;
  max-width: 680px;
  opacity: 0.92;
}
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.2rem 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.92;
}
.hero-meta span::before {
  content: '·'; margin-right: 1.1rem; color: var(--brass);
}
.hero-meta span:first-child::before { content: ''; margin: 0; }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: var(--brass); color: var(--ink);
}
.btn-primary:hover { background: #e0a635; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #1a3050; transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; opacity: 0.7;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 32px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── SECTIONS ──────────────────────────────────────────── */
section {
  padding: 6rem 0;
  position: relative;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; z-index: 1;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.section-tag::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px;
  background: var(--brass);
  vertical-align: middle; margin-right: 0.9rem;
  position: relative; top: -3px;
}
h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
h2 em {
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--brass);
}
.section-rule {
  width: 80px; height: 2px;
  background: var(--brass);
  margin-bottom: 2.4rem;
}
.body-text { max-width: 720px; }
.body-text p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.body-text p em { color: var(--ink); font-style: italic; font-weight: 400; }

/* V5 — sections render on cream paper instead of ink. Type flips to
   ink, brass accents stay. Body's dot-pattern shows through (sections
   have transparent background). */
.section-dark {
  background: transparent;
  color: var(--ink);
}
.section-dark .section-tag { color: var(--brass); }
.section-dark h2 { color: var(--ink); }
.section-dark h2 em { color: var(--brass); }
.section-dark .body-text p { color: var(--ink-soft); }
.section-dark .body-text p em { color: var(--ink); }
.section-dark .section-rule { background: var(--brass); }

/* ── ATMOSPHERE GALLERY — rotating villa shots ─────────────────────
   Wide cinematic stage that auto-fades between villa photos. Sits on the
   cream paper as a single hero strip with overlaid summer-vibe title. */
.atmosphere-section {
  width: 100%;
  margin: 5rem 0 0.6rem;
  padding-bottom: 0;
}
/* Trim the cream paper between the atmosphere photo and the Villa
   Schöningen showcase on desktop — the default section paddings were
   stacking to ~17rem of empty cream. */
.venues-section--showcase-only { padding: 1rem 0 0 !important; }
.atmosphere-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 58vw, 720px);
  overflow: hidden;
  background: var(--ink);
}
.atmo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.atmo-img.active { opacity: 1; }
.atmo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,29,51,0.12) 0%,
    rgba(14,29,51,0.05) 45%,
    rgba(14,29,51,0.55) 100%
  );
  pointer-events: none;
}
.atmo-caption-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  max-width: 92vw;
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.atmo-brand-logo {
  display: block;
  width: min(50vw, 640px);
  height: auto;
  margin: 0;
  filter: brightness(0) invert(1) drop-shadow(0 4px 22px rgba(0,0,0,0.55));
  opacity: 0.96;
}
.atmo-logo-glint {
  position: relative;
  display: inline-block;
  transform: none;
  transform-origin: center center;
}
/* Atmo logo glint disabled — shine effect lives on PROGRAMM only. */
@media (max-width: 600px) {
  .atmo-brand-logo { width: 96vw; }
  .atmo-logo-glint { transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .atmo-logo-glint::after { display: none; }
}

.atmo-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247,236,206,0.92);
  display: block;
  margin-bottom: 0.8rem;
}
.atmo-title {
  position: absolute;
  left: clamp(1.6rem, 5vw, 4rem);
  bottom: clamp(1.6rem, 4vw, 3.4rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1;
  color: var(--cream);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.45);
  max-width: 80vw;
  z-index: 2;
}
.atmo-title em {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
.atmo-dots {
  position: absolute;
  right: clamp(1.4rem, 3vw, 2.4rem);
  bottom: clamp(1.6rem, 4vw, 3.4rem);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.atmo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(247,236,206,0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.atmo-dot.active {
  background: var(--brass);
  transform: scale(1.25);
}
@media (max-width: 600px) {
  .atmosphere-section { margin: 3rem 0 0; padding-bottom: 0 !important; }
  .atmosphere-stage { height: 72vh; }
  .atmo-title { font-size: clamp(1.3rem, 4.8vw, 1.9rem); }
  /* Pull the Villa Schöningen showcase up tight against the atmosphere
     photo, and trim the empty paper below the map before jam-sessions. */
  .venues-section--showcase-only { padding: 12px 0 0 !important; }
  .venues-section--map-only { padding: 2.4rem 0 0.8rem; }
}

/* Inline jam-session teaser above the full lineup. Italic, small, brass-
   tinted so it reads as a soft "+ extra" cue without competing with the
   section heading or the lineup cards. */
.jam-teaser {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(200,144,42,0.9);
  letter-spacing: 0.01em;
  margin: -0.6rem 0 2.2rem;
}
@media (max-width: 600px) {
  .jam-teaser { font-size: 0.85rem; margin: -0.2rem 0 1.6rem; }
}

.section-bg {
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.section-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: 0;
}
.section-bg .wrap { z-index: 2; }
.section-bg .section-tag { color: var(--brass); }
.section-bg h2 { color: var(--cream); }
.section-bg h2 em { color: var(--brass); }
.section-bg .body-text p { color: rgba(247,236,206,0.85); }

/* ── PARTNERS — Montreux-style white logos on dark blue ────────
   Every logo is forced to white silhouette via brightness(0) invert(1).
   Works for SVG / transparent PNG. JPG-with-white-bg logos may render as
   solid white rectangles — those need transparent-bg replacements. */
.partners-section { padding: 6rem 0 7rem; }
.partner-tier { margin-bottom: 3.6rem; }
.partner-tier:last-child { margin-bottom: 0; }
.partner-tier-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(14,29,51,0.55);
  margin-bottom: 1.8rem;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}
.partner-card {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  padding: 0.6rem;
  height: 70px;
  width: 100%;
  transition: opacity 0.25s, transform 0.25s;
  opacity: 0.78;
}
.partner-card:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.partner-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  /* V5: partners now sit on cream — invert keeps them as ink silhouettes
     instead of inverting to white on dark. */
  filter: brightness(0) invert(0.18);
}
@media (max-width: 600px) {
  /* Konzerthaus Berlin + SRH/BSPA logos render visually larger than the
     other partner marks because their artwork fills the bbox edge-to-edge.
     Scale them down 30% on phone so they don't crowd / overlap neighbours. */
  .partner-card--shrink-phone img { transform: scale(0.85); transform-origin: center; }
  /* BSPA / SRH logo is taller than its neighbours and was crowding the
     JIB card on phone — additional 20% shrink to give breathing room. */
  .partner-card img[src*="bspa"] { transform: scale(0.68); transform-origin: center; }
}
.partner-name { display: none; }
/* Text-based partner card (used when no clean SVG/PNG exists for the logo). */
.partner-card.partner-card--text {
  opacity: 0.85;
}
.partner-wordmark {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .partners-section { padding: 4.5rem 0 5rem; }
  .partner-tier { margin-bottom: 3rem; padding-top: 0.6rem; }
  .partner-tier-label {
    display: block;
    margin: 0 0 1.6rem;
    font-size: 0.55rem; letter-spacing: 0.28em;
  }
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 1.2rem;
    max-width: 100%;
    align-items: center;
    justify-items: center;
  }
  .partner-card {
    height: 60px;
    padding: 0.5rem;
    width: 100%;
  }
  /* Cap individual logos so they never bleed beyond their card */
  .partner-card img { max-height: 100%; max-width: 100%; }
}

/* ── FADE-IN OBSERVER ───────────────────────────────────── */
.fi {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fi.vis { opacity: 1; transform: translateY(0); }
.fi-d1 { transition-delay: 0.12s; }
.fi-d2 { transition-delay: 0.24s; }
.fi-d3 { transition-delay: 0.36s; }
.fi-d4 { transition-delay: 0.48s; }

/* ── PROGRAM / SCHEDULE ─────────────────────────────────── */
.lineup-day { margin-bottom: 3.4rem; }
.day-header {
  display: flex; align-items: baseline; gap: 1.2rem;
  border-bottom: 1px solid rgba(247,236,206,0.18);
  padding-bottom: 0.8rem; margin-bottom: 1.6rem;
}
.day-date {
  font-family: var(--font-display);
  font-size: 2.4rem; letter-spacing: 0.04em;
  color: var(--brass);
}
.day-label {
  font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,236,206,0.7);
}
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.artist-card {
  position: relative; overflow: hidden;
  background: rgba(247,236,206,0.04);
  border: 1px solid rgba(247,236,206,0.16);
  padding: 1.4rem 1.4rem 1.6rem;
  cursor: pointer;
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
  min-height: 110px;
}
.artist-card:hover,
.artist-card:focus-visible {
  background: rgba(200,144,42,0.08);
  border-color: var(--brass);
  transform: translateY(-2px);
}
.artist-card.headliner {
  background: rgba(200,144,42,0.06);
  border-color: rgba(200,144,42,0.4);
}
.artist-name {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--cream);
}
.artist-cred {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,236,206,0.55);
}
.artist-card-venue {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-size: 0.55rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,236,206,0.5);
}
.artist-card .arrow {
  position: absolute; bottom: 1rem; right: 1.2rem;
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1.2rem;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.artist-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ── ARTIST GRID PAGE ───────────────────────────────────── */
.artist-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.roster-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.roster-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2,0.8,0.2,1), filter 0.5s;
  filter: brightness(0.78) saturate(1.1);
}
.roster-card:hover img { transform: scale(1.06); filter: brightness(0.95) saturate(1.15); }
.roster-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,29,51,0.0) 35%, rgba(14,29,51,0.85) 100%);
}
.roster-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.6rem 1.4rem;
  color: #fff;
}
.roster-card-day {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}
.roster-card-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.roster-card-cred {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}
.roster-card.no-image {
  background: linear-gradient(135deg, var(--ink) 0%, #1f3658 100%);
}
.roster-card.no-image::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(200,144,42,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200,144,42,0.10), transparent 50%);
}

/* ── ARTIST DETAIL — SPLIT-PANEL HERO ───────────────────────
   Text-left, photo-right. Photo never has overlay. Name animates in
   letter-by-letter on load. Mobile stacks photo→text vertically. */
.artist-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: stretch;
  /* Tight content-driven height — no more 720px floor. The text column
     sets its own padding; the photo column stretches to match. Tall
     hero still feels editorial, but no more "empty 1995" gap. */
  min-height: 560px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(31,54,88,0.5), transparent 70%),
    linear-gradient(180deg, #061222 0%, var(--ink) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding-right: 2vw;
  padding-left: 0;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .artist-hero-split { padding: 0; }
}

/* PHONE NAV BANNER — landing page ONLY (body.home-landing). On secondary
   pages the original transparent-on-top + scroll-solidify behaviour stays.
   Banner sits in normal flow (position: relative) so the hero photo lays
   in the space BELOW it instead of being covered by a fixed overlay. */
@media (max-width: 600px) {
  body.home-landing #nav {
    /* At the top of the page the nav has no background, no border —
       just the brand / hamburger / lang / Tickets floating on top of
       the hero photo, like ink painted on it. The translucent dark
       blur band (::before pseudo + bottom hairline) fades in when
       `.scrolled` is added (y > 100). */
    background: transparent;
    border-bottom: 0;
    padding-top: max(env(safe-area-inset-top), 0.9rem);
    padding-bottom: 0.9rem;
  }
  body.home-landing #nav.scrolled {
    border-bottom: 1px solid rgba(247,236,206,0.12);
  }
  body.home-landing #nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(14, 29, 51, 0.28);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    pointer-events: none;
    /* Hide the overlay at the very top of the page so the hero photo
       reads cleanly. Fade it in once `.scrolled` is added (y > 100). */
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  body.home-landing #nav.scrolled::before {
    opacity: 1;
  }
  body.home-landing #nav .nav-brand {
    color: var(--cream);
    text-shadow: none;
  }
  body.home-landing #nav .nav-links a {
    color: rgba(247,236,206,0.85);
    text-shadow: none;
  }
  /* Home-landing nav has a DARK ink background on phone — so the
     hamburger spans + lang buttons must stay CREAM even when the
     base `.scrolled` rule would normally flip them to dark ink (that
     rule was designed for the cream-translucent scrolled state). */
  body.home-landing #nav.scrolled .nav-toggle span,
  body.home-landing #nav .nav-toggle span {
    background: rgba(247,236,206,0.95) !important;
  }
  body.home-landing #nav.scrolled .lang-btn,
  body.home-landing #nav .lang-btn {
    color: var(--cream) !important;
  }
  body.home-landing #nav.scrolled .lang-sep,
  body.home-landing #nav .lang-sep {
    color: rgba(247,236,206,0.6) !important;
  }
  /* Keep brand cream regardless of scrolled state. */
  body.home-landing #nav.scrolled .nav-brand {
    color: var(--cream) !important;
  }
  /* Hero takes whatever vertical space remains after the banner. */
  body.home-landing .hero-cinematic {
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
  }
}
/* Floating "back to programme" button — phone-only. The web layout already
   has a Programm button in the left text panel so the FAB is redundant. */
.ahs-back-fab { display: none; }
@media (max-width: 900px) {
  .ahs-back-fab {
    display: flex;
    position: absolute;
    top: 1rem; left: 1rem;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    background: rgba(14,29,51,0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247,236,206,0.25);
    border-radius: 50%;
    color: var(--cream);
    text-decoration: none;
    z-index: 10;
    transition: background 0.25s, border-color 0.25s;
  }
  .ahs-back-fab:active {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--ink);
  }
  .ahs-back-fab svg { width: 18px; height: 18px; display: block; }
}
.ahs-text {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 5rem 3rem 3rem;
  position: relative; z-index: 2;
  min-height: 0;
}
.ahs-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.ahs-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: var(--cream);
  word-spacing: 0.05em;
  position: relative;
}
.ahs-word {
  display: inline-block;
  white-space: nowrap;
}
/* Brass accent line that draws across once the letters have settled —
   adds a finishing flourish to the name reveal. */
.ahs-name::after {
  content: '';
  position: absolute;
  left: 0; bottom: -0.45rem;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width 0.9s cubic-bezier(0.2, 0.85, 0.3, 1);
  transition-delay: calc(0.05s * var(--letter-count, 8) + 0.25s);
}
.ahs-name.reveal::after { width: 64px; }
/* Letter-stagger reveal — bigger initial offset + heavier blur for a more
   cinematic settling motion. Each letter delayed by --i. */
.ahs-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em) rotate(-3deg);
  filter: blur(12px);
  transform-origin: 50% 100%;
  transition:
    opacity 0.7s cubic-bezier(0.18, 0.85, 0.25, 1),
    transform 0.85s cubic-bezier(0.18, 0.85, 0.25, 1),
    filter 0.7s cubic-bezier(0.18, 0.85, 0.25, 1);
  transition-delay: calc(0.05s * var(--i, 0));
  will-change: opacity, transform, filter;
}
.ahs-name.reveal .ahs-letter {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
}
.ahs-cred {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(247,236,206,0.85);
  margin-bottom: 1.2rem;
  max-width: 30em;
}
.ahs-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.ahs-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(247,236,206,0.85);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(247,236,206,0.28);
  border-radius: 999px;
}
.ahs-meta {
  display: grid; grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247,236,206,0.12);
}
.ahs-meta > div {
  display: flex; align-items: baseline;
  gap: 1rem;
}
.ahs-meta dt {
  font-family: var(--font-body);
  font-size: 0.6rem; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  flex: 0 0 6rem;
  font-weight: 500;
}
.ahs-meta dd {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--cream);
  margin: 0;
}
/* Tickets + back-to-Programm — same shape on every artist page. Pinned
   to the bottom of the left panel via margin-top:auto so they line up with
   the bottom edge of the photo on the right, regardless of name length. */
.ahs-actions {
  display: flex; flex-direction: column;
  gap: 0.7rem;
  width: 100%; max-width: 320px;
  margin-top: auto;
  flex-shrink: 0;
}
.ahs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px;
  padding: 0 1.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.ahs-btn-primary {
  background: var(--brass);
  color: var(--ink);
  border: 1px solid var(--brass);
  /* One-time heartbeat once the page settles — pulls the eye to Tickets. */
  animation: ahsTicketsHeartbeat 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s 1 both;
  transform-origin: center;
}
@keyframes ahsTicketsHeartbeat {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(200,144,42,0); }
  20%  { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(200,144,42,0.18); }
  40%  { transform: scale(1);    box-shadow: 0 0 0 12px rgba(200,144,42,0); }
  60%  { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(200,144,42,0.12); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(200,144,42,0); }
}
.ahs-btn-primary:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  transform: translateY(-1px);
}
.ahs-btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247,236,206,0.4);
}
.ahs-btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}
.ahs-photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  height: 100%;
  /* No separate panel bg — inherits the same gradient from .artist-hero-split
     so portrait photos with letterbox space blend seamlessly into the text panel. */
}
.ahs-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
@media (max-width: 900px) {
  .artist-hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
    height: auto;
    min-height: auto;
  }
  .ahs-text { padding: 2.4rem 1.6rem 3rem; }
  .ahs-photo { order: -1; }
  .ahs-eyebrow { font-size: 0.7rem; letter-spacing: 0.32em; margin-bottom: 1rem; }
  .ahs-name { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 1rem; }
  .ahs-cred { font-size: 0.95rem; margin-bottom: 1.6rem; }
  .ahs-links { margin-bottom: 1.6rem; }
}
.artist-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  margin-top: 4rem;
}
.artist-detail-aside {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.artist-detail-aside dt {
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.artist-detail-aside dd {
  margin-bottom: 1.6rem;
  color: var(--cream);
  font-size: 0.95rem;
}

/* ── VENUE / MAP ────────────────────────────────────────── */
.map-wrap {
  position: relative;
  height: 78vh; min-height: 580px;
  background: var(--ink);
  overflow: hidden;
  margin-bottom: 4rem;
  border: 1px solid var(--border);
}
.map-reset {
  position: absolute; top: 1rem; left: 1rem; z-index: 6;
  background: rgba(14,29,51,0.92);
  border: 1px solid var(--brass);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.map-reset:hover { background: var(--brass); color: var(--ink); }
#map { width: 100%; height: 100%; }
.map-legend {
  position: absolute; bottom: 1.4rem; left: 1.4rem;
  background: rgba(14,29,51,0.92);
  color: var(--cream);
  padding: 1rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  z-index: 5;
  max-width: 280px;
}
@media (max-width: 600px) {
  /* Phone: shrink the festival-map legend by ~30%. */
  .map-legend {
    bottom: 1rem; left: 1rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.49rem;
    max-width: 196px;
  }
  .map-legend strong { font-size: 0.62rem; margin-bottom: 0.3rem; }
  .map-legend-row { gap: 0.42rem; margin-top: 0.28rem; }
  .map-legend-dot { width: 7px; height: 7px; }
}
.map-legend strong { display: block; color: var(--brass); margin-bottom: 0.4rem; letter-spacing: 0.22em; }
.map-legend-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.map-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.map-legend-dot.main { background: var(--brass); }
.map-legend-dot.partner { background: var(--cream); }
.map-marker {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 5px rgba(200,144,42,0.25);
  background: var(--brass);
  cursor: pointer;
  transition: transform 0.3s;
  animation: markerPulse 2.4s ease-in-out infinite;
}
.map-marker.partner { background: var(--cream); border-color: var(--brass); }
.map-marker:hover { transform: scale(1.18); }
@keyframes markerPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 5px rgba(200,144,42,0.25); }
  50%      { box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 0 12px rgba(200,144,42,0.05); }
}

/* Bouncing CLICKABLE labels under each map dot.
   The OUTER .map-venue-label is the MapLibre marker wrapper — DO NOT animate
   its transform (MapLibre uses style.transform to position it).
   The INNER .map-venue-bounce handles the bounce animation. */
.map-venue-label {
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}
.map-venue-bounce {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  animation: labelBounce 1.8s ease-in-out infinite;
}
.map-venue-label:hover .map-venue-text {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.map-venue-arrow {
  font-size: 1.25rem;
  color: var(--brass);
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.map-venue-text {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(14,29,51,0.85);
  border: 1px solid var(--brass);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
@keyframes labelBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Edge indicator — pokes out from the map edge when the OTHER venue is off-screen */
.map-edge-indicator {
  position: absolute;
  z-index: 10;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(14,29,51,0.92);
  border: 1px solid var(--brass);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, background 0.3s, color 0.3s;
}
.map-edge-indicator.visible { opacity: 1; visibility: visible; }
.map-edge-indicator:hover {
  background: var(--brass);
  color: var(--ink);
}
.map-edge-indicator .edge-arrow {
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--brass);
}
.map-edge-indicator:hover .edge-arrow { color: var(--ink); }
@media (max-width: 600px) {
  .map-edge-indicator {
    padding: 0.4rem 0.7rem;
    font-size: 0.5rem;
    letter-spacing: 0.18em;
    gap: 0.35rem;
  }
  .map-edge-indicator .edge-arrow { font-size: 0.75rem; }
}
.maplibregl-popup-content {
  background: var(--ink) !important;
  color: var(--cream) !important;
  font-family: var(--font-body) !important;
  border-radius: 2px !important;
  padding: 1rem 1.2rem !important;
  border: 1px solid var(--brass);
}
.maplibregl-popup-tip { border-top-color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.popup-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.popup-meta {
  font-size: 0.6rem; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.popup-address {
  font-size: 0.78rem;
  color: rgba(247,236,206,0.78);
  margin-bottom: 0.6rem;
}
.popup-blurb {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(247,236,206,0.92);
  line-height: 1.4;
}

.venue-block { margin-bottom: 4rem; }
.venue-block:last-child { margin-bottom: 0; }
.venue-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.4rem;
  align-items: stretch;
}
.venue-img {
  aspect-ratio: 4/3;
  width: 100%; height: 100%;
  object-fit: cover;
}
.venue-info h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.6rem;
}
.venue-info h3 em {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--brass);
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
}
.venue-info-tag {
  font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.venue-info p { color: var(--ink-soft); margin-bottom: 1rem; }
.venue-info-meta {
  display: grid; gap: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.venue-info-meta div { display: flex; gap: 0.8rem; }
.venue-info-meta span:first-child {
  flex: 0 0 90px;
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass);
}

/* ── TICKETS ────────────────────────────────────────────── */
.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.ticket-card {
  background: rgba(14,29,51,0.04);
  border: 1px solid var(--border);
  padding: 1.6rem 1.6rem 1.4rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.ticket-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  background: rgba(200,144,42,0.06);
}
.ticket-day {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--brass);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.ticket-headliners {
  font-family: var(--font-head); font-size: 1.05rem;
  margin-bottom: 1rem;
}
.ticket-meta {
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.ticket-cta {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.ticket-soon {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 2rem 2rem;
}
.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}
.footer-tag {
  font-size: 0.75rem;
  color: rgba(247,236,206,0.7);
  letter-spacing: 0.06em;
  max-width: 280px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(247,236,206,0.7);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(247,236,206,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.7rem; letter-spacing: 0.12em;
  color: rgba(247,236,206,0.5);
}

/* ── PAGE HEADERS (non-home) ────────────────────────────── */
.page-header {
  background: var(--ink);
  background-image: url('../img/bridge-aerial.jpg');
  background-size: cover;
  background-position: center 60%;
  color: var(--cream);
  padding: 8rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(14,29,51,0.62) 0%,
    rgba(14,29,51,0.55) 45%,
    rgba(14,29,51,0.92) 100%);
  z-index: 0;
}
.page-header::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(200,144,42,0.18), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(200,144,42,0.10), transparent 50%);
  z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.page-header .lead {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.005em;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(247,236,206,0.95);
  line-height: 1.5;
}
.page-header .crumb {
  font-size: 0.7rem; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  /* IMPORTANT: kill backdrop-filter on #nav at mobile sizes — it creates a
     new containing block that traps position:fixed descendants (the mobile
     menu) inside the small nav, making the panel render small with text
     overflowing. The solid bg color alone is enough on mobile. */
  #nav.scrolled,
  body.solid-nav #nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(247,236,206,0.92);
  }
  #nav { padding: 0.7rem 1rem 0.55rem; gap: 0.4rem; }
  .nav-brand { font-size: 1rem; letter-spacing: 0.1em; flex: 1 1 auto; min-width: 0; }
  /* ── EDITORIAL DROPDOWN MENU ──────────────────────────────────
     Spans the full viewport so it can never leave a "crack" under the
     nav bar regardless of how tall the nav actually renders. The nav
     stacks on top with the same dark gradient — visually one continuous
     surface. Items are pushed below the nav via padding-top. */
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background:
      radial-gradient(ellipse at 80% 0%, rgba(200,144,42,0.10), transparent 55%),
      radial-gradient(ellipse at 20% 100%, rgba(31,54,88,0.55), transparent 60%),
      linear-gradient(180deg, #061222 0%, var(--ink) 100%);
    padding: 4.4rem 2rem 2.4rem;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
      visibility 0s linear 0.45s;
    pointer-events: none;
    overflow-y: auto;
  }
  .nav-links.mobile-open {
    visibility: visible;
    opacity: 1;
    transition:
      opacity 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
      visibility 0s linear 0s;
    pointer-events: auto;
  }
  /* Close X — sits below the brand bar, aligned with the right edge of the
     menu items so it doesn't collide with the Tickets pill above. */
  .nav-close {
    position: absolute;
    top: 4.6rem; right: 1.5rem;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid rgba(247,236,206,0.25);
    border-radius: 50%;
    color: var(--cream);
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s;
  }
  .nav-close svg { width: 18px; height: 18px; }
  .nav-close:active,
  .nav-close:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--ink);
    transform: rotate(90deg);
  }
  /* While the menu is open: nav bar gets a solid dark surface that matches
     the menu (no site bleed through), page scroll is locked, brand stays
     visible on top in cream. */
  body.menu-open { overflow: hidden; }
  body.menu-open #nav {
    background: linear-gradient(180deg, #061222 0%, var(--ink) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
  }
  body.menu-open .nav-brand {
    color: var(--cream) !important;
    text-shadow: none !important;
  }
  body.menu-open .lang-btn { color: var(--cream) !important; text-shadow: none !important; }
  body.menu-open .lang-sep { color: rgba(247,236,206,0.5) !important; }
  body.menu-open .nav-toggle span { background: var(--cream) !important; }
  /* Hide the nav burger when menu is open — the in-panel X is the close affordance now */
  body.menu-open .nav-toggle { visibility: hidden; pointer-events: none; }
  /* Raise the brand bar items above the menu's bg (which is also a child of
     #nav at z-index 999) so they don't get covered. */
  body.menu-open .nav-brand,
  body.menu-open .lang-switch,
  body.menu-open .nav-toggle {
    position: relative;
    z-index: 1000;
  }
  /* Curtain reveal: each list item lifts up from below with a slight blur
     and the brass divider draws as it lands. */
  .nav-links li {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition:
      opacity 0.55s cubic-bezier(0.2, 0.9, 0.2, 1),
      transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1),
      filter 0.55s ease;
  }
  .nav-links.mobile-open li {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .nav-links.mobile-open li:nth-child(2) { transition-delay: 0.18s; }
  .nav-links.mobile-open li:nth-child(3) { transition-delay: 0.30s; }
  .nav-links.mobile-open li:nth-child(4) { transition-delay: 0.42s; }
  .nav-links.mobile-open li:nth-child(5) { transition-delay: 0.55s; }
  .nav-links.mobile-open li:nth-child(6) { transition-delay: 0.7s; }
  /* Editorial menu items — big display type, brass numeric prefix,
     hairline divider underneath each. */
  #nav .nav-links.mobile-open li[data-num],
  body.solid-nav #nav .nav-links.mobile-open li[data-num],
  #nav.scrolled .nav-links.mobile-open li[data-num] {
    position: relative;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(247,236,206,0.12);
  }
  .nav-links.mobile-open li[data-num]::before {
    content: attr(data-num);
    position: absolute;
    top: 1.6rem;
    left: 0;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    font-weight: 500;
    color: var(--brass);
    opacity: 0.85;
  }
  #nav .nav-links.mobile-open a,
  body.solid-nav #nav .nav-links.mobile-open a,
  #nav.scrolled .nav-links.mobile-open a {
    display: inline-block;
    padding-left: 2.6rem;
    color: var(--cream) !important;
    text-shadow: none;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: none;
    transition: color 0.25s, transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .nav-links.mobile-open a:hover,
  .nav-links.mobile-open a:active {
    color: var(--brass) !important;
    transform: translateX(6px);
  }
  .nav-links.mobile-open a::after { display: none; }
  #nav .nav-links.mobile-open a.active,
  body.solid-nav #nav .nav-links.mobile-open a.active { color: var(--brass) !important; }
  /* Festival logo at the bottom of the burger panel — centered, cream
     silhouette, modest size so it reads as a brand sign-off below the
     three nav items. */
  .nav-menu-logo-li {
    list-style: none;
    margin: 2.4rem 0 0 !important;
    padding: 0 !important;
    text-align: center;
    overflow: hidden;
    display: list-item;
  }
  .nav-menu-logo-li::before { display: none !important; }
  .nav-menu-logo {
    display: inline-block;
    width: min(36vw, 160px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-22px);
    transition: clip-path 1.1s cubic-bezier(0.22, 0.9, 0.28, 1),
                opacity 0.5s ease 0.2s,
                transform 1.1s cubic-bezier(0.22, 0.9, 0.28, 1);
  }
  .nav-links.mobile-open .nav-menu-logo {
    opacity: 0.92;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
    transition-delay: 0.7s, 0.7s, 0.7s;
  }
  /* Presented-by lockup sits directly under the festival logo in the
     burger panel. Cream-on-dark silhouettes for BJK + ZigZag with a
     small "Präsentiert von" eyebrow. Animates via the base li system
     (5th li → 0.55s stagger). */
  .nav-menu-presented-li {
    list-style: none;
    margin: 1.1rem 0 0 !important;
    padding: 0 !important;
    text-align: center;
    display: list-item;
  }
  .nav-menu-presented-li::before { display: none !important; }
  .nav-menu-presented-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.5rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(247,236,206,0.55);
    margin-bottom: 0.55rem;
  }
  .nav-menu-presented-logos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
  }
  .nav-menu-presented-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.88;
  }
  .nav-menu-presented-x {
    color: rgba(247,236,206,0.45);
    font-family: var(--font-head);
    font-style: italic;
    font-size: 0.95rem;
  }
  /* Footer: festival date + cities, sits below the items in italic editorial style */
  .nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex; flex-direction: column; gap: 0.5rem;
    color: rgba(247,236,206,0.55);
    font-family: var(--font-head);
    font-style: italic;
  }
  .nav-footer-date { font-size: 0.95rem; }
  .nav-footer-tag {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brass);
  }
  .nav-toggle { display: flex !important; flex: 0 0 auto; }
  .lang-switch { margin-left: 0; gap: 0.1rem; flex: 0 0 auto; }
  .lang-btn { font-size: 0.6rem; padding: 0.2rem 0.25rem; }
  .lang-sep { font-size: 0.55rem; }
  .nav-cta { font-size: 0.55rem; padding: 0.45rem 0.7rem; letter-spacing: 0.18em; margin-left: 0.6rem !important; }
  section { padding: 4.5rem 0; }
  .wrap { padding: 0 1.4rem; }
  /* Shorter hero on phone so the landscape photos crop less aggressively
     when filling a narrow portrait viewport. */
  .hero { min-height: 75vh; }
  /* Trim top + bottom padding on the secondary-page header so it isn't
     unnecessarily tall on phone screens. */
  .page-header { padding: 5.5rem 1.4rem 2.6rem; }
  .hero-meta { gap: 0.8rem 1.4rem; flex-direction: column; }
  .hero-meta span::before { display: none; }
  .venue-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .artist-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-wrap { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .map-wrap { height: 60vh; min-height: 420px; }
}
@media (max-width: 480px) {
  .nav-brand { font-size: 0.85rem; letter-spacing: 0.08em; }
  .lang-switch { margin-left: 0.3rem; }
  .nav-cta { font-size: 0.5rem; padding: 0.4rem 0.55rem; margin-left: 0.4rem !important; }
}
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.95);
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
#nav.scrolled .nav-toggle span,
body.solid-nav .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 600px) {
  .footer-wrap { grid-template-columns: 1fr; }
  .artist-roster { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .roster-card-name { font-size: 1rem; }
  h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
