/* ============================================================================
   AFRIQUE Zürich · Latin Sunset — shared design system
   Brand colours arrive per-site from the generated :root block in each page.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --bg:        #070709;
  --bg-2:      #0d0d11;
  --bg-3:      #14141a;
  --line:      rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --fg:        #ffffff;
  --fg-2:      rgba(255, 255, 255, .72);
  --fg-3:      rgba(255, 255, 255, .48);

  --gutter:    clamp(1.25rem, 4vw, 3.5rem);
  --shell:     min(1320px, 100% - 2 * var(--gutter));
  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --section:   clamp(4.5rem, 9vw, 8.5rem);
  --ease:      cubic-bezier(.22, .61, .36, 1);

  /* Liquid-glass recipe — reused by nav, buttons, cards, inputs. */
  --glass-bg:    linear-gradient(147deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 46%, rgba(255,255,255,.08) 100%);
  --glass-edge:  rgba(255, 255, 255, .18);
  --glass-blur:  saturate(165%) blur(20px);
  --glass-inner: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06);
  --glass-drop:  0 10px 34px rgba(0, 0, 0, .42);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(.95rem, .35vw + .86rem, 1.0625rem);
  line-height: 1.62;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.025em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 88;
  text-wrap: balance;
}
p { margin: 0; }

.d1 { font-size: clamp(2.7rem, 7vw, 5.6rem); }
.d2 { font-size: clamp(2rem, 4.3vw, 3.5rem); }
.d3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.eyebrow {
  display: block;
  margin: 0 0 clamp(.85rem, 1.4vw, 1.3rem);
  color: var(--brand);
  font-size: clamp(.72rem, .28vw + .66rem, .82rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.3;
}
.eyebrow--muted { color: var(--fg-3); }

.lead { color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }
.lead + .lead { margin-top: 1.15em; }

/* Second line of a headline picked out in the brand colour (as per mock-ups). */
.hl { color: var(--brand); }

/* Handwritten brand claim ("Music People Culture" / "Good Music Better People") */
.script {
  font-family: 'Caveat', 'Bricolage Grotesque', cursive;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: .96;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  transform: rotate(-6deg);
}
.script em { font-style: normal; color: var(--brand); }
.hero__script, .phero .script, .fhero__script { text-shadow: 0 2px 18px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.6); }

/* ---------- layout ---------- */
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-2); }

.stack { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); justify-items: start; }

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-text { grid-template-columns: 1fr 1.15fr; }
  .split--flip > :first-child { order: 2; }
}

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall  { aspect-ratio: 4 / 5; }
.media--wide  { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

/* ============================================================================
   Liquid glass primitives
   ========================================================================= */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-inner), var(--glass-drop);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
/* Specular sheen across the top edge — the "Apple" tell. */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 38%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn--glass, .icon-btn, .play__disc { background: rgba(22, 22, 28, .9); }
}

/* ---------- buttons ---------------------------------------------------------
   Apple-style liquid glass, built from three stacked layers on one element:
     ::before  the lens      — blurred, saturated backdrop with a refracted edge
     ::after   the specular  — a highlight that sweeps on hover
     the element itself      — border, drop shadow and the label
   Every variant re-uses the same geometry, so sizes and radii stay in sync.
   ------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: .78em;
  --btn-pad-x: 1.5em;
  --btn-tint: rgba(255, 255, 255, .1);
  --btn-tint-2: rgba(255, 255, 255, .03);
  --btn-edge: rgba(255, 255, 255, .22);
  --btn-sheen: rgba(255, 255, 255, .55);
  --btn-lift: 0 10px 30px rgba(0, 0, 0, .38);

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: clamp(.88rem, .25vw + .82rem, .97rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--fg);
  background: none;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  white-space: nowrap;
}

/* The lens. A hairline inset ring fakes the refracted edge of thick glass. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(147deg, var(--btn-tint) 0%, var(--btn-tint-2) 52%, var(--btn-tint) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 0 0 1px var(--btn-edge),
    inset 0 -8px 14px -10px rgba(255, 255, 255, .5),
    var(--btn-lift);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}

/* The specular highlight, parked off to the left until hover. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(160deg, var(--btn-sheen) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(100deg, rgba(255,255,255,0) 36%, rgba(255,255,255,.28) 48%, rgba(255,255,255,0) 60%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 130% 0;
  background-repeat: no-repeat;
  opacity: .55;
  transition: background-position .9s var(--ease), opacity .4s var(--ease);
}

.btn > * { position: relative; z-index: 1; }
.btn svg { flex: none; width: 1em; height: 1em; transition: transform .35s var(--ease); }

.btn:hover { transform: translateY(-2px); }
.btn:hover::after { background-position: 0 0, -30% 0; opacity: .9; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.985); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn::before { background: rgba(24, 24, 30, .92); }
}

/* Solid brand button — the glass sits *over* the brand gradient. */
.btn--brand {
  --btn-tint: transparent;
  --btn-tint-2: transparent;
  --btn-edge: rgba(255, 255, 255, .3);
  color: var(--on-brand);
}
.btn--brand::before {
  background: linear-gradient(145deg, var(--brand-lift) 0%, var(--brand) 58%, var(--brand-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 0 0 1px var(--btn-edge),
    inset 0 -10px 16px -12px rgba(255, 255, 255, .7),
    0 10px 30px var(--brand-glow);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn--brand:hover::before { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.4), 0 14px 38px var(--brand-glow-strong); }

/* Clear glass — the default treatment. */
.btn--glass { color: var(--fg); }
.btn--glass:hover {
  --btn-tint: var(--brand-veil-hover);
  --btn-tint-2: var(--brand-veil-strong);
  --btn-edge: var(--brand);
  --btn-lift: 0 12px 34px var(--brand-glow-strong);
}

/* Glass tinted with the brand colour (nav CTA on the festival sites). */
.btn--glass-brand {
  --btn-tint: var(--brand-veil-strong);
  --btn-tint-2: var(--brand-veil);
  --btn-edge: var(--brand-edge);
  --btn-sheen: rgba(255, 255, 255, .4);
  color: var(--brand);
}
.btn--glass-brand:hover { --btn-edge: var(--brand); }

.btn--lg { --btn-pad-y: 1.02em; --btn-pad-x: 1.9em; font-size: clamp(.95rem, .3vw + .88rem, 1.05rem); }
.btn--sm { --btn-pad-y: .6em;  --btn-pad-x: 1.15em; font-size: .84rem; }

/* Text link with a brand underline. */
.link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 600;
  padding-bottom: .25em;
  border-bottom: 2px solid var(--brand);
  transition: color .3s var(--ease);
}
.link svg { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* Circular icon button (gallery arrows, close). */
.icon-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 0 0 1px rgba(255,255,255,.2),
    inset 0 -8px 14px -10px rgba(255,255,255,.5),
    0 8px 24px rgba(0,0,0,.34);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.icon-btn:hover { transform: scale(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px var(--brand-edge), 0 10px 28px var(--brand-glow); }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }

/* ============================================================================
   Header / navigation
   ========================================================================= */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease);
}
.header.is-stuck {
  background: rgba(7, 7, 9, .6);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
}
.header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding-block: clamp(.85rem, 1.6vw, 1.25rem);
}

.brandmark { display: grid; gap: 0; flex: none; }
.brandmark__logo { color: var(--fg); display: block; }
.brandmark__logo svg { width: auto; }
.brandmark--afrique .brandmark__logo svg { height: clamp(2.6rem, 4.2vw, 3.6rem); }
.brandmark--latinsunset .brandmark__logo svg { height: clamp(1.8rem, 3vw, 2.6rem); }
.brandmark__city {
  display: block;
  margin-top: .34rem;
  font-size: clamp(.52rem, .22vw + .48rem, .64rem);
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--fg-2);
  text-transform: uppercase;
}

.nav { display: none; margin-inline-start: auto; }
@media (min-width: 1100px) { .nav { display: flex; align-items: center; gap: clamp(1.1rem, 1.9vw, 1.9rem); } }
.nav__link {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: var(--fg-2);
  padding-block: .3rem;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--fg); }

.header__actions { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.1rem); margin-inline-start: auto; }
@media (min-width: 1100px) { .header__actions { margin-inline-start: 0; } }
.header__cta { display: none; }
@media (min-width: 760px) { .header__cta { display: inline-flex; } }

/* language switcher */
.langs { display: flex; align-items: center; gap: .55rem; }
.langs__item {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding-bottom: .15rem;
  border-bottom: 2px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.langs__item:hover { color: var(--fg); }
.langs__item[aria-current="true"] { color: var(--fg); border-bottom-color: var(--brand); }

/* burger */
.burger {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 0; background: none; cursor: pointer; padding: 0;
}
@media (min-width: 1100px) { .burger { display: none; } }
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .38s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  display: grid; align-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: rgba(7, 7, 9, .8);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  backdrop-filter: saturate(160%) blur(28px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__nav { display: grid; gap: .35rem; }
.drawer__link {
  font-size: clamp(1.75rem, 6.5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: 1.12;
  font-variation-settings: 'wdth' 88;
  transition: color .3s var(--ease);
}
.drawer__link:hover, .drawer__link[aria-current="page"] { color: var(--brand); }
.drawer__foot { margin-top: 2.25rem; display: grid; gap: 1.5rem; justify-items: start; }

/* ============================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: grid;
  align-items: end;
  padding-block: 9rem clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* The video fades in over the poster, so it has to sit on top of it. */
.hero__media video { position: absolute; inset: 0; }
/* Source photos are low-light club shots; a small lift keeps them readable
   once the legibility scrim goes over the top. */
.hero__media img { filter: brightness(1.12) saturate(1.05); }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,7,9,.5) 0%, rgba(7,7,9,0) 26%, rgba(7,7,9,.3) 64%, var(--bg) 100%),
    linear-gradient(94deg, rgba(7,7,9,.72) 0%, rgba(7,7,9,.28) 42%, rgba(7,7,9,0) 76%);
}
.hero__inner { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; display: grid; gap: clamp(1.4rem, 3vw, 2.25rem); justify-items: start; }
.hero__title { font-size: clamp(2.9rem, 8vw, 5.8rem); }
.hero__claim {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  font-size: clamp(.76rem, .3vw + .7rem, .95rem);
  font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2);
}
.hero__claim i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); display: inline-block; }
.hero__script { position: absolute; z-index: 3; inset-block-start: clamp(8rem, 15vw, 11rem); inset-inline-end: var(--gutter); max-width: 28vw; font-size: clamp(1.5rem, 2.9vw, 2.5rem); display: none; }
@media (min-width: 960px) { .hero__script { display: block; } }

/* play trigger */
.play { display: inline-flex; align-items: center; gap: .95rem; cursor: pointer; background: none; border: 0; padding: 0; }
.play__disc {
  display: grid; place-items: center;
  width: clamp(3rem, 5vw, 3.75rem); height: clamp(3rem, 5vw, 3.75rem);
  border-radius: 50%;
  background: var(--glass-bg);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 0 0 1px rgba(255,255,255,.2),
    inset 0 -8px 14px -10px rgba(255,255,255,.5),
    0 8px 24px rgba(0,0,0,.34);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.play__disc svg { width: 1.05rem; height: 1.05rem; margin-inline-start: 2px; }
.play:hover .play__disc { transform: scale(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px var(--brand), 0 10px 30px var(--brand-glow); }
.play__label { font-size: .95rem; font-weight: 500; color: var(--fg-2); }

/* page hero (inner pages) */
.phero {
  position: relative;
  display: grid; align-items: end;
  min-height: min(78svh, 740px);
  padding-block: 9rem clamp(2.5rem, 5vw, 4rem);
  overflow: hidden; isolation: isolate;
}
.phero__media { position: absolute; inset: 0; z-index: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) saturate(1.05); }
.phero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,7,9,.55) 0%, rgba(7,7,9,.02) 30%, rgba(7,7,9,.35) 68%, var(--bg) 100%),
    linear-gradient(94deg, rgba(7,7,9,.8) 0%, rgba(7,7,9,.34) 44%, rgba(7,7,9,0) 78%);
}
.phero__inner { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; display: grid; gap: clamp(1.2rem, 2.4vw, 1.9rem); justify-items: start; }

/* ============================================================================
   Section headers
   ========================================================================= */
.shead {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.9rem, 3.5vw, 3rem);
}
.shead__text { max-width: 40ch; }

/* ============================================================================
   Event cards
   ========================================================================= */
.events { display: grid; gap: clamp(1rem, 1.6vw, 1.35rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ecard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.ecard:hover { transform: translateY(-6px); border-color: var(--brand-edge); }
.ecard__media { position: relative; aspect-ratio: 4 / 5; }
.ecard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ecard:hover .ecard__media img { transform: scale(1.06); }

/* A compact glass pill so the artwork underneath stays fully readable. */
.ecard__date {
  position: absolute; z-index: 2;
  inset-block-start: .7rem; inset-inline-start: .7rem;
  display: grid; gap: .06rem;
  line-height: 1;
  padding: .5rem .65rem .55rem;
  border-radius: 13px;
  background: rgba(7, 9, 12, .52);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.26), 0 4px 14px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
}
.ecard__day { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 800; letter-spacing: -.03em; }
.ecard__mon { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ecard__yr  { font-size: .62rem; font-weight: 500; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.ecard__body { padding: 1.05rem 1.15rem 1.15rem; display: grid; gap: .7rem; align-content: space-between; }
.ecard__title { font-size: clamp(.98rem, .4vw + .88rem, 1.12rem); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15; }
.ecard__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ecard__place { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.ecard__place svg { width: .95rem; height: .95rem; flex: none; color: var(--brand); }
.ecard__go { flex: none; width: 2.15rem; height: 2.15rem; }
.ecard__go svg { width: .8rem; height: .8rem; }
.ecard__link { position: absolute; inset: 0; z-index: 3; }
.ecard--past { opacity: .68; }
.ecard--past:hover { opacity: 1; }

/* ============================================================================
   Full-bleed feature banner (Festival teaser / CTA bands)
   ========================================================================= */
.banner { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; min-height: clamp(23rem, 46vw, 33rem); padding-block: clamp(3rem, 6vw, 5rem); }
.banner__media { position: absolute; inset: 0; z-index: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.08) saturate(1.04); }
.banner__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(92deg, rgba(7,7,9,.9) 0%, rgba(7,7,9,.6) 44%, rgba(7,7,9,.12) 100%); }
.banner__inner { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); justify-items: start; }
.banner__inner > * { max-width: 34rem; }
.banner--center .banner__scrim { background: linear-gradient(180deg, rgba(7,7,9,.78), rgba(7,7,9,.6)); }
.banner--center .banner__inner { justify-items: center; text-align: center; }
.banner--center .banner__inner > * { max-width: 46rem; }

/* ============================================================================
   Gallery
   ========================================================================= */
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13rem, 23vw, 18.5rem);
  gap: clamp(.7rem, 1.2vw, 1rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scroll-padding-inline-start: var(--gutter);
  scrollbar-width: none;
  padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  padding-block-end: .5rem;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-3);
  cursor: zoom-in;
  border: 0; padding: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__nav { display: flex; gap: .6rem; }

/* ---------------------------------------------------------------------------
   3D cylinder mode. The markup above stays a plain scroller until main.js adds
   .gallery--3d, so it still works without JS and for reduced-motion visitors.
   Faces sit around a cylinder: each is rotated by its share of 360deg and then
   pushed out by the radius.
   ------------------------------------------------------------------------ */
.gallery--3d .gallery__stage {
  position: relative;
  height: var(--stage-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: var(--persp);
  /* Feather the edges so faces leave the frame instead of being chopped. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}

.gallery--3d .gallery__track {
  position: relative;
  display: block;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: visible;
  transform-style: preserve-3d;
  transform: rotateY(var(--spin, 0deg));
  cursor: grab;
  /* Horizontal drags rotate the cylinder; vertical ones still scroll the page. */
  touch-action: pan-y;
}
.gallery--3d .gallery__track.is-dragging { cursor: grabbing; }

.gallery--3d .gallery__item {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: var(--face-w);
  height: var(--face-h);
  margin: calc(var(--face-h) / -2) 0 0 calc(var(--face-w) / -2);
  transform: rotateY(var(--angle)) translateZ(var(--cyl-r));
  /* JS fades the faces that turn away so they recede instead of competing. */
  opacity: var(--face-fade, 1);
  padding-inline: clamp(3px, .5vw, 7px);
  overflow: visible;
  background: none;
  scroll-snap-align: none;
}
.gallery--3d .gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery--3d .gallery__item img {
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.gallery--3d .gallery__item img { transition: none; }
.gallery--3d .gallery__item:hover img { transform: none; }

.gallery--3d .gallery__hint {
  display: block;
  margin-top: clamp(.9rem, 2vw, 1.4rem);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
}


/* ============================================================================
   Partners
   ========================================================================= */
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.1rem, 2.4vw, 2.25rem);
}
.partners__row > * { flex: 1 1 6rem; }
.partners__item {
  display: grid;
  place-items: center;
  min-height: clamp(2.2rem, 4vw, 3rem);
  font-size: clamp(.78rem, 1.05vw, .95rem);
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  text-transform: uppercase;
  font-variation-settings: 'wdth' 92;
  opacity: .82;
  transition: opacity .35s var(--ease), color .35s var(--ease);
  text-align: center;
  line-height: 1.15;
}
/* Each logo PNG is pre-balanced on an identical canvas by
   tools/process-partners.mjs, so a single width does the job. */
.partners__item img {
  width: clamp(7rem, 11.5vw, 9rem);
  height: auto;
  object-fit: contain;
}
.partners__item:hover { opacity: 1; color: var(--fg); }
.partners__more { color: var(--fg-3); letter-spacing: .2em; }

/* ============================================================================
   Stats
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(45%, 9rem), 1fr));
  gap: clamp(1.4rem, 2.5vw, 2rem);
  padding-block: clamp(1.9rem, 3.5vw, 2.75rem);
  border-block: 1px solid var(--line);
}
.stat { display: grid; gap: .35rem; padding-inline-start: clamp(0px, 2vw, 1.5rem); border-inline-start: 1px solid var(--line-soft); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
@media (max-width: 700px) { .stat { border-inline-start: 0; padding-inline-start: 0; } }
.stat__num { font-size: clamp(1.55rem, 3.2vw, 2.35rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variation-settings: 'wdth' 88; }
.stat__label { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }

/* Icon stat bar (sponsoring) */
.istats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(1.35rem, 2.6vw, 2.25rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.istat { display: flex; align-items: center; gap: .95rem; }
.istat__icon { flex: none; width: 2.2rem; height: 2.2rem; color: var(--fg); opacity: .9; }
.istat__icon svg { width: 100%; height: 100%; }
.istat__num { display: block; font-size: clamp(1.2rem, 2.1vw, 1.65rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.istat__label { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin-top: .2rem; }

/* ============================================================================
   Feature row (icon + title + sub)
   ========================================================================= */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(45%, 12rem), 1fr)); gap: clamp(1.4rem, 2.6vw, 2.25rem); }
.feature { display: grid; gap: .5rem; align-content: start; }
.feature__icon { width: 2rem; height: 2rem; color: var(--brand); }
.feature__icon svg { width: 100%; height: 100%; }
.feature__title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.feature__sub { font-size: .86rem; color: var(--fg-3); }
.feature--centered { justify-items: center; text-align: center; }

/* ============================================================================
   Package cards (sponsoring)
   ========================================================================= */
.packs { display: grid; gap: clamp(1rem, 1.6vw, 1.35rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.pack {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-3);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.pack:hover { transform: translateY(-6px); border-color: var(--brand-edge); }
.pack__media { aspect-ratio: 5 / 4; position: relative; }
.pack__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pack:hover .pack__media img { transform: scale(1.06); }
.pack__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,9,0) 55%, rgba(7,7,9,.35) 100%); }
.pack__body { padding: 1.05rem 1.15rem 1.2rem; display: grid; gap: .55rem; align-content: space-between; }
.pack__title { font-size: .96rem; font-weight: 700; text-transform: uppercase; line-height: 1.18; }
.pack__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pack__price { font-size: 1rem; font-weight: 600; color: var(--fg-2); }
.pack__go { flex: none; width: 2.15rem; height: 2.15rem; }
.pack__go svg { width: .8rem; height: .8rem; }
.pack__link { position: absolute; inset: 0; z-index: 3; }

/* ============================================================================
   Newsletter
   ========================================================================= */
.news { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.news__media { position: absolute; inset: 0; z-index: 0; }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
.news__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,7,9,.93), rgba(7,7,9,.72)); }
.news__inner { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 1040px) { .news__inner { grid-template-columns: 1fr auto auto; } }
.news__title { font-size: clamp(1.45rem, 2.7vw, 2.05rem); }
.news__sub { margin-top: .6rem; color: var(--fg-2); font-size: .95rem; }

.subscribe { display: flex; align-items: center; gap: .5rem; padding: .38rem .38rem .38rem 1.25rem; border-radius: var(--radius-pill); min-width: min(100%, 23rem); }
.subscribe input {
  flex: 1; min-width: 0;
  background: none; border: 0; color: var(--fg);
  font: inherit; font-size: .95rem; padding-block: .7rem;
}
.subscribe input::placeholder { color: var(--fg-3); }
.subscribe input:focus { outline: none; }
.subscribe__go {
  flex: none; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, var(--brand-lift), var(--brand) 60%, var(--brand-deep));
  color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(255,255,255,.3), inset 0 -8px 14px -10px rgba(255,255,255,.7), 0 8px 24px var(--brand-glow);
  transition: transform .35s var(--ease);
}
.subscribe__go svg { width: 1rem; height: 1rem; }
.subscribe__go:hover { transform: scale(1.06); }

.socials { display: flex; align-items: center; gap: clamp(.5rem, 1.1vw, .85rem); }
.socials a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: var(--fg); transition: transform .35s var(--ease), color .35s var(--ease); }
.socials a svg { width: 1.2rem; height: 1.2rem; }
.socials a:hover { transform: translateY(-3px); color: var(--brand); }

/* ============================================================================
   Contact
   ========================================================================= */
.contact { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1.1fr; } }

.cinfo__list { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.cline { display: flex; align-items: flex-start; gap: 1.05rem; }
.cline__icon { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; color: var(--brand); border: 1px solid var(--brand-edge); background: var(--brand-veil); }
.cline__icon svg { width: 1.25rem; height: 1.25rem; }
.cline__label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }
.cline__value { font-size: clamp(1rem, .45vw + .9rem, 1.12rem); font-weight: 500; margin-top: .18rem; display: block; }
a.cline__value { transition: color .3s var(--ease); }
a.cline__value:hover { color: var(--brand); }

.cform { padding: clamp(1.35rem, 3vw, 2.4rem); border-radius: var(--radius-lg); }
.cform__grid { display: grid; gap: .85rem; margin-top: clamp(1.3rem, 2.5vw, 1.9rem); }
.cform__row { display: grid; gap: .85rem; }
@media (min-width: 560px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font: inherit;
  font-size: .95rem;
  padding: .95rem 1.05rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select { cursor: pointer; padding-inline-end: 2.75rem; }
.field select option { background: #14141a; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: rgba(255, 255, 255, .07); }
.field__chev { position: absolute; inset-block-start: 50%; inset-inline-end: 1.05rem; transform: translateY(-50%); width: 1rem; height: 1rem; pointer-events: none; color: var(--fg-3); }
.cform__submit { display: flex; justify-content: flex-end; margin-top: .3rem; }
.cform__note { font-size: .78rem; color: var(--fg-3); margin-top: 1rem; }
.cform__note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }

/* photo strip under the contact block */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(50%, 14rem), 1fr)); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ============================================================================
   Footer
   ========================================================================= */
.footer { padding-block: clamp(2.5rem, 4vw, 3.75rem) clamp(1.5rem, 2.5vw, 2rem); border-top: 1px solid var(--line); background: var(--bg); }
.footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; } }

.footer__col { display: grid; gap: clamp(.9rem, 1.8vw, 1.25rem); align-content: start; justify-items: start; }
.footer__col--brand { gap: clamp(1.1rem, 2vw, 1.5rem); }

.footer__blurb { color: var(--fg-3); font-size: .92rem; max-width: 32ch; }

.footer__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.3;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer__list a { color: var(--fg-2); font-size: .94rem; transition: color .3s var(--ease); }
.footer__list a:hover { color: var(--brand); }

.footer__list--contact { gap: .9rem; }
.footer__list--contact li { display: grid; gap: .1rem; }
.footer__label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.footer__list--contact span:not(.footer__label) { color: var(--fg-2); font-size: .94rem; }

.footer__tickets { margin-top: .2rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--fg-3);
  letter-spacing: .04em;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a { transition: color .3s var(--ease); }
.footer__legal a:hover { color: var(--fg-2); }
.footer__copy { text-transform: uppercase; }

/* ============================================================================
   Lightbox (video + gallery)
   ========================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 4, 6, .88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { width: min(100%, 1100px); display: grid; place-items: center; }
.lightbox__stage video, .lightbox__stage img { width: 100%; max-height: 82svh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close { position: absolute; inset-block-start: clamp(1rem, 3vw, 2rem); inset-inline-end: clamp(1rem, 3vw, 2rem); }

/* ============================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ecard, .pack, .btn, .icon-btn, .gallery__item img, .ecard__media img, .pack__media img { transition: none !important; }
}

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ============================================================================
   Narrow screens
   ========================================================================= */
@media (max-width: 760px) {
  /* A side gradient does nothing once the text sits on top of the photo. */
  .banner__scrim {
    background: linear-gradient(180deg, rgba(7,7,9,.5) 0%, rgba(7,7,9,.8) 52%, rgba(7,7,9,.92) 100%);
  }
  .news__scrim { background: linear-gradient(180deg, rgba(7,7,9,.82), rgba(7,7,9,.93)); }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(7,7,9,.55) 0%, rgba(7,7,9,.08) 30%, rgba(7,7,9,.62) 70%, var(--bg) 100%);
  }
  .phero__scrim {
    background: linear-gradient(180deg, rgba(7,7,9,.6) 0%, rgba(7,7,9,.12) 32%, rgba(7,7,9,.66) 72%, var(--bg) 100%);
  }

  /* The homepage teaser becomes a swipeable rail so four events do not cost
     four full screens of scrolling. */
  .events--rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scroll-padding-inline-start: var(--gutter);
    scrollbar-width: none;
    padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding-block-end: .5rem;
  }
  .events--rail::-webkit-scrollbar { display: none; }
  .events--rail .ecard { scroll-snap-align: start; }

  .shead { align-items: flex-start; }
}


/* Text that sits directly on photography needs a shadow, not a heavier scrim —
   the scrim would flatten the image the client wants to show off. */
.hero__inner, .phero__inner, .banner__inner {
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 22px rgba(0,0,0,.5);
}
.hero__inner .btn, .phero__inner .btn, .banner__inner .btn { text-shadow: none; }
.banner--center .banner__scrim {
  background: linear-gradient(180deg, rgba(7,7,9,.84), rgba(7,7,9,.7));
}
