/* =====================================================================
   SOLSTICE SUMMERFEST 2027 — STYLES
   Sections:
     1. Fonts & design tokens
     2. Base & utilities
     3. Buttons & shared components
     4. Header
     5. HERO — layout, HERO ARTWORK positioning, content
     6. Experiences — layout, EXPERIENCE CARD ARTWORK positioning
     7. Final promotion
     8. Footer
     9. Line-up dialogs
    10. Promotion visibility
    11. Responsive overrides
    12. Motion
   ===================================================================== */

/* ---------- 1. FONTS & DESIGN TOKENS ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-latin-900-italic.woff2") format("woff2");
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Metric-matched fallback reduces layout shift while the display font loads */
@font-face {
  font-family: "Condensed Fallback";
  src: local("Arial Narrow Bold Italic"), local("ArialNarrow-BoldItalic"), local("Roboto Condensed Bold Italic"), local("Arial Bold Italic");
  font-weight: 800 900; font-style: italic;
  size-adjust: 88%;
}

:root {
  /* Brand colours */
  --c-purple: #260D45;
  --c-purple-header: #230C3D;
  --c-purple-page: #17043F;     /* top colour of page-background.webp */
  --c-purple-deep: #12032F;
  --c-yellow: #FFDA16;
  --c-pink: #FF007C;
  --c-white: #FFFFFF;

  /* Fonts */
  --font-display: "Barlow Condensed", "Condensed Fallback", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Widths */
  --content-max: 1320px;        /* central composition width */
  --cards-max: 1260px;
  --gutter: clamp(16px, 4vw, 56px);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;

  /* "Art unit": 1% of the hero artwork width, capped so the artwork
     stops growing on ultra-wide screens (1% of 1760px). */
  --u: min(1vw, 17.6px);
}

/* ---------- 2. BASE & UTILITIES ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-purple-page);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--c-yellow); color: var(--c-purple); padding: 10px 16px;
  font: 800 italic 18px/1 var(--font-display); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
.nowrap { white-space: nowrap; }
.ord { font-size: 0.6em; vertical-align: 0.6em; line-height: 0; margin-left: 0.03em; }

/* ---------- 3. BUTTONS & SHARED COMPONENTS ---------- */
/* Angled buttons: the slanted shape is a skewed ::before so the text stays upright. */
.btn {
  --btn-bg: var(--c-yellow);
  --btn-fg: var(--c-purple);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0.55em 1.35em;
  color: var(--btn-fg);
  font: 800 italic var(--btn-size, 20px)/1 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg);
  transform: skewX(-12deg);
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(10, 0, 30, 0.35);
  transition: background-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover::before { filter: brightness(1.08) saturate(1.05); box-shadow: 0 8px 26px rgba(10, 0, 30, 0.5); }
.btn:active::before { filter: brightness(0.94); }
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { outline: 3px solid var(--c-white); outline-offset: 4px; }
.btn__arrow { width: 0.95em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn--pink { --btn-bg: var(--c-pink); --btn-fg: var(--c-white); text-shadow: 0 1px 2px rgba(80, 0, 40, .35); }
.btn--pink::before { border: 2.5px solid var(--c-white); }
.btn--pink:focus-visible::before { outline-color: var(--c-yellow); }

/* Yellow angled date banner (cards & dialogs) */
.date-banner {
  position: relative; isolation: isolate;
  display: inline-block;
  padding: 0.18em 0.7em 0.14em;
  color: var(--c-purple);
  font: 800 italic var(--banner-size, 26px)/1 var(--font-display);
  text-transform: uppercase;
  white-space: nowrap;
}
.date-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-yellow);
  transform: skewX(-14deg);
  box-shadow: 0 4px 14px rgba(10, 0, 30, .45);
}

.pin { width: 1.1em; height: 1.1em; fill: var(--c-yellow); flex: none; }

/* Section heading with short yellow lines either side */
.section-title {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 1.6vw, 26px);
  padding-inline: var(--gutter);
  font: 800 italic clamp(32px, 4.2vw, 62px)/1 var(--font-display);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.005em;
  text-shadow: 0 3px 16px rgba(10, 0, 30, .5);
}
.section-title::before, .section-title::after {
  content: ""; flex: none;
  width: clamp(28px, 7vw, 110px); height: 4px;
  background: var(--c-yellow);
  transform: skewX(-20deg);
}

/* ---------- 4. HEADER ---------- */
.site-header {
  position: relative; z-index: 10;
  background: var(--c-purple-header);
  border-bottom: 3px solid var(--c-pink);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-s);
  min-height: 84px;
  padding-block: 8px;
}
.site-header__brand { justify-self: start; display: block; border-radius: 4px; }
.site-header__brand img { width: auto; height: 70px; }
.sponsor {
  display: flex; align-items: center; gap: 12px;
  justify-self: center;
  font: 700 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sponsor__logo { width: auto; height: 34px; }
.btn--header { justify-self: end; --btn-size: 21px; padding: 0.5em 1.15em; }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(var(--u) * 56);   /* ≈ 806px at 1440px wide */
  overflow: hidden;
}

/* ===== HERO ARTWORK — positioning & scale (desktop/tablet) =====
   All values use --u (1% of artwork width) so the composition scales
   as one piece. Adjust these to fine-tune the hero composition. */
.hero {
  --sky-pos-x: 78%;                        /* horizontal focus of the sunset */
  --goer-width: calc(var(--u) * 51);       /* festival-goer size */
  --goer-left: calc(50% - var(--u) * 10);  /* her left edge, from page centre */
  --goer-bottom: calc(var(--u) * 6.5);     /* her lower edge sits inside the crowd */
  --stage-width: calc(var(--u) * 100);
  --stage-bottom: calc(var(--u) * -4.2);   /* pushes the crowd slightly below the fold of the hero */
  --fade-height: 20%;
}
.hero__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__sky {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--sky-pos-x) 100%;
}
.hero__goer {
  position: absolute;
  left: var(--goer-left);
  bottom: var(--goer-bottom);
  width: var(--goer-width);
  max-width: none;
}
.hero__stage {
  position: absolute;
  left: 50%;
  bottom: var(--stage-bottom);
  width: var(--stage-width);
  max-width: none;
  transform: translateX(-50%);
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--fade-height);
  background: linear-gradient(to bottom, rgba(23, 4, 63, 0) 0%, rgba(23, 4, 63, .55) 55%, var(--c-purple-page) 100%);
}
/* Ultra-wide: soften the outer ends of the crowd artwork into the sky */
@media (min-width: 1761px) {
  .hero__stage {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  }
}

/* ----- Hero content ----- */
.hero__inner { position: relative; z-index: 2; }

/* Charity logo — sits beneath the header Book Tickets button, right-aligned with it */
.hero__charity {
  position: absolute; z-index: 3;
  right: var(--gutter);
  top: clamp(10px, calc(var(--u) * 1.1), 20px);
  width: clamp(124px, 11.5vw, 170px);
  height: auto;
}
.hero__content {
  width: clamp(330px, 40vw, 580px);
  padding-top: clamp(14px, calc(var(--u) * 1.6), 30px);
  padding-bottom: clamp(36px, calc(var(--u) * 4), 72px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero__logo { width: clamp(320px, 39vw, 560px); margin-left: -1.2%; }
.hero__logo img { width: 100%; filter: drop-shadow(0 6px 18px rgba(30, 0, 50, .35)); }

.hero__dates, .hero__strap {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(30, 0, 50, .45), 0 4px 22px rgba(30, 0, 50, .55);
}
.hero__dates {
  margin-top: 0.35rem;
  color: var(--c-yellow);
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
}
.hero__strap {
  margin-top: 0.4rem;
  font-size: clamp(21px, 2.05vw, 31px);
  line-height: 1.04;
}
.hero__venue {
  display: flex; align-items: center; gap: 6px;
  margin-top: 0.6rem;
  font: 700 clamp(13px, 1.05vw, 16px)/1.2 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 8px rgba(30, 0, 50, .8);
}

/* Yellow Early Bird brushstroke: text is kept inside the solid paint area */
.hero__promo {
  position: relative;
  width: clamp(290px, 30vw, 430px);
  margin-top: clamp(8px, calc(var(--u) * 1), 18px);
  margin-left: -3%;
  container-type: inline-size;
}
.hero__promo-brush { width: 100%; }
.hero__promo-text {
  position: absolute;
  inset: 9% 12% 18% 9%;                /* solid area of the trimmed brushstroke */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--c-purple);
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.86;
  transform: rotate(-6deg);
}
.hero__promo-kicker { font-weight: 800; font-size: 24px; font-size: 8.6cqi; letter-spacing: 0.01em; }
.hero__promo-big { font-weight: 900; font-size: 62px; font-size: 21cqi; letter-spacing: -0.005em; margin-top: 0.02em; }

.hero__limited {
  width: clamp(290px, 30vw, 430px);
  margin-top: -0.35rem;
  text-align: center;
  font: 800 italic clamp(17px, 1.45vw, 22px)/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(30, 0, 50, .8);
}
.hero__cta {
  margin-top: clamp(12px, calc(var(--u) * 1.3), 22px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.btn--hero { --btn-size: clamp(22px, 1.95vw, 30px); padding: 0.55em 1.25em; margin-left: 10px; }
.hero__vip {
  max-width: 30em;
  font: 700 clamp(14px, 1.05vw, 16px)/1.3 var(--font-body);
  text-shadow: 0 1px 2px rgba(10, 0, 30, .9), 0 2px 12px rgba(10, 0, 30, .9);
}
.hero__vip strong { color: var(--c-yellow); }

/* ---------- 5b. ARTIST LOGO CAROUSEL ---------- */
.artists {
  --artist-scale: 1;                              /* overall logo size */
  --artist-gap: clamp(44px, 5.2vw, 84px);         /* space between logos */
  position: relative;
  padding: 10px 0 10px;
}
.artists::before, .artists::after {               /* subtle hairlines separating it from the hero */
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 124, .55) 22%, rgba(255, 218, 22, .5) 50%, rgba(255, 0, 124, .55) 78%, transparent);
}
.artists::before { top: 0; }
.artists::after { bottom: 0; opacity: .5; }
.artists__head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 30px; }
.artists__title {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, .92);
  font: 800 italic clamp(14px, 1.2vw, 18px)/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.artists__title::before, .artists__title::after {
  content: ""; flex: none; width: 22px; height: 2px;
  background: var(--c-yellow); transform: skewX(-20deg);
}
.artists__toggle {
  position: absolute; right: var(--gutter); top: 50%;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  margin-top: -17px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(23, 4, 63, .6);
  color: var(--c-white);
  cursor: pointer;
}
.artists__toggle::after { content: ""; position: absolute; inset: -6px; }   /* larger touch target */
.artists__toggle[hidden] { display: none; }
.artists__toggle:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.artists__toggle svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.artists__icon-pause { fill: none !important; }
.artists__toggle[aria-pressed="true"] .artists__icon-pause,
.artists__toggle:not([aria-pressed="true"]) .artists__icon-play { display: none; }

.artists__viewport { margin-top: 6px; }
.artists__track { display: flex; justify-content: center; }
.artists__list {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px var(--artist-gap);
  padding-inline: var(--gutter);
}
.artist { flex: none; }

/* ===== ARTIST LOGOS — optical sizing & transparent-padding crop =====
   --h  : display height (balanced by eye so each logo carries similar weight)
   --ar : visible artwork width/height   --sx/--ox/--oy : crop out transparent padding
   (crop values measured from each supplied file — update if a logo file changes) */
.artist--other-country { --h: 60px; --ar: 1831/982; --sx: 1.0317; --ox: 0.0120; --oy: 0.0214; }
.artist--stapleton     { --h: 41px; --ar: 546/136;  --sx: 1.0000; --ox: 0.0000; --oy: 0.0000; }
.artist--shania        { --h: 45px; --ar: 2023/522; --sx: 1.0737; --ox: 0.0420; --oy: 0.2510; }
.artist--limelight     { --h: 39px; --ar: 2024/436; --sx: 1.0731; --ox: 0.0405; --oy: 0.4128; }
.artist--sor           { --h: 50px; --ar: 146/168;  --sx: 1.3699; --ox: 0.1849; --oy: 0.0952; }
.artist--nataylia      { --h: 62px; --ar: 1086/807; --sx: 1.4144; --ox: 0.2044; --oy: 0.1264; }

.artist__logo {
  position: relative; display: block; overflow: hidden;
  height: calc(var(--h) * var(--artist-scale));
  aspect-ratio: var(--ar);
}
.artist__logo img {
  position: absolute;
  max-width: none;
  width: calc(100% * var(--sx));
  left: calc(var(--ox) * -100%);
  top: calc(var(--oy) * -100%);
}

/* Animated (set by script.js unless reduced motion is preferred): seamless left-to-right loop */
.artists.is-animated .artists__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.artists.is-animated .artists__track {
  justify-content: flex-start;
  width: max-content;
  animation: artists-scroll var(--artists-dur, 32s) linear infinite;
  will-change: transform;
}
.artists.is-animated .artists__list { flex-wrap: nowrap; padding-inline: 0 var(--artist-gap); }
.artists.is-animated .artists__viewport:hover .artists__track,
.artists.is-paused .artists__track { animation-play-state: paused; }
@keyframes artists-scroll {
  from { transform: translate3d(calc(-1 * var(--artists-seq, 0px)), 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ---------- 6. EXPERIENCES ---------- */
.page-bg {
  background: var(--c-purple-page) url("assets/img/page-background.webp") center top / cover no-repeat;
}
.experiences {
  position: relative;
  padding-top: clamp(6px, 1vw, 16px);
  padding-bottom: var(--space-s);
}
.xp-grid {
  max-width: calc(var(--cards-max) + 2 * var(--gutter));
  margin-top: clamp(4px, 0.6vw, 12px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(6px, 0.9vw, 16px);
}
.xp { display: flex; flex-direction: column; align-items: center; }
.xp__card {
  position: relative;
  width: 100%;
  aspect-ratio: 1082 / 1454;
  container-type: inline-size;      /* card text scales with card width (cqi) */
}
.xp__art { position: absolute; inset: 0; pointer-events: none; }
.xp__base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ===== EXPERIENCE CARD ARTWORK — positioning & scale =====
   Percentages are of the card's artwork canvas.
   --char-*  : the overflowing character
   --free    : above this height the character may overflow the frame
               (hat / hair / violin); below it, it is clipped to the card shape
   --text-l/r: side insets of the logo + description stack, which sits
               directly above the date banner and grows upwards
   --logo-w  : event logo width (as % of the text stack) */
.xp--rodeo { --char-w: 88%; --char-x: -9%;  --char-y: 1%;  --free: 34%;
             --text-l: 5%;  --text-r: 13%; --logo-w: 66%; }
.xp--ibiza { --char-w: 84%; --char-x: 4%;   --char-y: -2%; --free: 30%;
             --text-l: 5%;  --text-r: 9%;  --logo-w: 64%; }
.xp--proms { --char-w: 80%; --char-x: 18%;  --char-y: 0%;  --free: 30%;
             --text-l: 4%;  --text-r: 10%; --logo-w: 70%; }

.xp__char {
  position: absolute; inset: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.xp__char img {
  position: absolute;
  width: var(--char-w);
  left: var(--char-x);
  top: var(--char-y);
  max-width: none;
}
/* Gentle shade at the bottom of each card to keep the description readable */
.xp__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(23, 4, 50, 0) 50%, rgba(23, 4, 50, .25) 64%, rgba(23, 4, 50, .78) 90%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
/* Masks per card: the card-base shape, plus a free zone at the top for overflow.
   With JavaScript the masks (and so their images) are applied only as a card
   nears the screen (.is-near), keeping the first page load light. */
.js .xp:not(.is-near) .xp__char, .js .xp:not(.is-near) .xp__shade { visibility: hidden; }
.no-js .xp--rodeo .xp__char, .xp--rodeo.is-near .xp__char { -webkit-mask-image: linear-gradient(#000 0 var(--free), transparent calc(var(--free) + 4%)), url("assets/img/rodeo-card-base-600.webp");
                                mask-image: linear-gradient(#000 0 var(--free), transparent calc(var(--free) + 4%)), url("assets/img/rodeo-card-base-600.webp"); }
.no-js .xp--ibiza .xp__char, .xp--ibiza.is-near .xp__char { -webkit-mask-image: linear-gradient(#000 0 var(--free), transparent calc(var(--free) + 4%)), url("assets/img/ibiza-card-base-600.webp");
                                mask-image: linear-gradient(#000 0 var(--free), transparent calc(var(--free) + 4%)), url("assets/img/ibiza-card-base-600.webp"); }
.no-js .xp--proms .xp__char, .xp--proms.is-near .xp__char { -webkit-mask-image: linear-gradient(#000 0 var(--free), transparent calc(var(--free) + 4%)), url("assets/img/proms-card-base-600.webp");
                                mask-image: linear-gradient(#000 0 var(--free), transparent calc(var(--free) + 4%)), url("assets/img/proms-card-base-600.webp"); }
.no-js .xp--rodeo .xp__shade, .xp--rodeo.is-near .xp__shade { -webkit-mask-image: url("assets/img/rodeo-card-base-600.webp"); mask-image: url("assets/img/rodeo-card-base-600.webp"); }
.no-js .xp--ibiza .xp__shade, .xp--ibiza.is-near .xp__shade { -webkit-mask-image: url("assets/img/ibiza-card-base-600.webp"); mask-image: url("assets/img/ibiza-card-base-600.webp"); }
.no-js .xp--proms .xp__shade, .xp--proms.is-near .xp__shade { -webkit-mask-image: url("assets/img/proms-card-base-600.webp"); mask-image: url("assets/img/proms-card-base-600.webp"); }

.xp__text {
  position: absolute; z-index: 3;
  left: var(--text-l); right: var(--text-r);
  bottom: 14%;                          /* just above the date banner */
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5cqi;
}
.xp__title { width: var(--logo-w); }
.xp__title img { width: 100%; filter: drop-shadow(0 4px 10px rgba(20, 0, 30, .55)); }
.xp__desc {
  max-width: 92%;
  text-align: center;
  font: 800 italic 18px/1.04 var(--font-display);
  font-size: 5.5cqi;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 3px rgba(10, 0, 30, .85), 0 2px 14px rgba(10, 0, 30, .8);
}
.xp__date {
  position: absolute; z-index: 4;
  left: 50%; bottom: 3.2%;
  transform: translateX(-54%);
  --banner-size: 26px;
  --banner-size: 9.4cqi;
}
.xp__explore {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px;
  margin-top: 2px;
  padding: 6px 10px;
  color: var(--c-white);
  font: 800 italic clamp(16px, 1.35vw, 19px)/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
}
.xp__explore svg { width: 1em; height: 1em; fill: none; stroke: var(--c-yellow); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.xp__explore:hover { color: var(--c-yellow); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.xp__explore:hover svg { transform: translateX(3px); }

/* Card hover — lift only, booking controls never move */
.xp__card { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .xp:hover .xp__card { transform: translateY(-6px); }
}

/* ---------- 7. FINAL PROMOTION ---------- */
.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(8px, 1.2vw, 20px);
  padding-bottom: clamp(36px, 4vw, 64px);
  text-align: center;
}
.finale__grass {
  position: absolute; bottom: 0; z-index: -1;
  width: clamp(240px, 33vw, 560px);
  pointer-events: none;
}
.finale__grass--left { left: 0; }
.finale__grass--right { right: 0; transform: scaleX(-1); }
.finale__inner { display: flex; flex-direction: column; align-items: center; }

.finale__headline {
  position: relative;
  width: min(660px, 96%);
  container-type: inline-size;
}
.finale__brush { width: 100%; }
.finale__title {
  position: absolute; inset: 6% 6% 8%;
  display: flex; align-items: center; justify-content: center;
  font: 900 italic 96px/1 var(--font-display);
  font-size: 17cqi;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  transform: rotate(-4deg);
  text-shadow: 0 3px 0 rgba(120, 0, 60, .35), 0 6px 18px rgba(80, 0, 40, .35);
  white-space: nowrap;
}
.finale__get { color: var(--c-white); }
.finale__off { color: var(--c-yellow); }
.finale__accents {
  position: absolute; right: -3%; top: -4%;
  width: 11cqi; height: 11cqi;
  fill: none; stroke: var(--c-yellow); stroke-width: 6; stroke-linecap: round;
  overflow: visible;
}
.finale__banner {
  position: relative; z-index: 1;
  margin-top: -6.2%;
  margin-top: clamp(-52px, -4vw, -26px);
  transform: rotate(-3deg);
}
.finale__banner span {
  position: relative; isolation: isolate;
  display: inline-block;
  padding: 0.14em 0.9em 0.1em;
  color: var(--c-purple);
  font: 800 italic clamp(30px, 3.6vw, 52px)/1 var(--font-display);
  text-transform: uppercase;
}
.finale__banner span::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-yellow);
  transform: skewX(-14deg);
  box-shadow: 0 6px 18px rgba(10, 0, 30, .45);
}
.finale__strap {
  margin-top: clamp(14px, 1.6vw, 24px);
  font: 800 italic clamp(19px, 2vw, 30px)/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(10, 0, 30, .6);
}
.finale__vip {
  margin-top: 6px;
  font: 800 italic clamp(18px, 1.75vw, 26px)/1.15 var(--font-display);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(10, 0, 30, .6);
}
.finale__vip em { font-style: inherit; color: var(--c-yellow); }
.btn--finale {
  --btn-size: clamp(30px, 3.4vw, 50px);
  margin-top: clamp(16px, 1.8vw, 28px);
  padding: 0.42em 1.5em;
}
.finale__venue {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: clamp(18px, 2vw, 30px);
  font: 700 clamp(14px, 1.2vw, 18px)/1.3 var(--font-body);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(10, 0, 30, .9);
}
.finale__venue::before, .finale__venue::after {
  content: ""; flex: none;
  width: clamp(24px, 4vw, 64px); height: 3px;
  background: var(--c-yellow);
  transform: skewX(-20deg);
}
.finale__venue .pin { width: 1.4em; height: 1.4em; }
.finale__venue span { text-wrap: balance; }

/* ---------- 8. FOOTER ---------- */
.site-footer {
  background: var(--c-purple-deep);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 28px;
  padding-block: 18px;
  text-align: center;
}
.site-footer__name { font: 800 italic 17px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--c-white); }
.site-footer a { color: var(--c-yellow); text-underline-offset: 3px; display: inline-block; padding-block: 10px; }
.site-footer a:hover { color: var(--c-white); }

/* ---------- 9. LINE-UP DIALOGS ---------- */
.lineup {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-white);
  overflow: visible;
}
.lineup::backdrop { background: rgba(12, 2, 28, .82); }
.lineup__panel {
  --accent: var(--c-yellow);
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-purple) url("assets/img/page-background.webp") center / cover;
  border: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.lineup--ibiza .lineup__panel { --accent: var(--c-pink); }
.lineup__close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2px solid var(--c-white); border-radius: 50%;
  background: rgba(23, 4, 63, .75);
  color: var(--c-white);
  cursor: pointer;
}
.lineup__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.lineup__close:hover { background: var(--c-pink); }
.lineup__head {
  position: relative;
  height: clamp(150px, 34vw, 200px);
  overflow: hidden;
  display: grid; place-items: center;
}
.lineup__head-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  transform: scale(1.25);
}
.lineup__head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(38, 13, 69, .15), rgba(38, 13, 69, .35) 60%, var(--c-purple) 100%);
}
.lineup__head-logo { position: relative; z-index: 1; width: min(62%, 300px); filter: drop-shadow(0 4px 12px rgba(10, 0, 30, .6)); }
.lineup__body { padding: 6px clamp(18px, 5vw, 34px) clamp(22px, 5vw, 32px); }
.lineup__date { --banner-size: 22px; margin-left: 6px; }
.lineup__title {
  margin-top: 14px;
  font: 800 italic clamp(30px, 7vw, 40px)/1 var(--font-display);
  text-transform: uppercase;
}
.lineup__desc { margin-top: 8px; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.lineup__subhead {
  margin-top: 20px;
  color: var(--c-yellow);
  font: 700 13px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lineup__acts { margin-top: 10px; display: grid; gap: 8px; }
.act {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 255, 255, .06);
  border-left: 4px solid var(--accent, var(--c-yellow));
}
.lineup__panel .act { border-left-color: var(--accent); }
.act__name { font: 800 italic clamp(22px, 5.4vw, 27px)/1.05 var(--font-display); text-transform: uppercase; }
.act__role { font-size: 15px; color: rgba(255, 255, 255, .8); }
.act__photo { width: 100%; border-radius: 4px; margin-bottom: 8px; }
.lineup__highlight {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  color: var(--c-yellow);
  font: 800 italic 21px/1.1 var(--font-display);
  text-transform: uppercase;
}
.lineup__highlight svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.btn--dialog { --btn-size: 24px; margin-top: 22px; margin-left: 8px; }

/* Line-up section: invisible with JavaScript (dialogs only); normal content without it */
.lineups__heading {
  font: 800 italic clamp(30px, 4vw, 48px)/1 var(--font-display);
  text-transform: uppercase; text-align: center;
  padding: 40px var(--gutter) 20px;
}
.js .lineups__heading { display: none; }
.no-js .lineups { padding-bottom: 40px; }
.no-js .lineup { display: block; position: static; margin: 0 auto 28px; max-height: none; }
.no-js .lineup__panel { max-height: none; }
.no-js .lineup__close { display: none; }
html.is-dialog-open { overflow: hidden; }

/* ---------- 10. PROMOTION VISIBILITY (controlled by promotions.js) ---------- */
[data-promo-fallback] { display: none; }
.promo-earlybird-off [data-promo="earlybird"],
.promo-vip-off [data-promo="vip"] { display: none !important; }
.promo-earlybird-off [data-promo-fallback="earlybird"] { display: inline; }
.promo-earlybird-off .finale__title { font-size: 10.5cqi; }
.promo-earlybird-off .finale__strap { margin-top: clamp(4px, 0.6vw, 10px); }

/* ---------- 11. RESPONSIVE ---------- */

/* Large desktop: keep the content column and art in proportion */
@media (min-width: 1800px) {
  .hero__content { padding-top: 34px; }
}

/* Tablet & small laptop: cards stack when three columns get too narrow */
@media (max-width: 859px) {
  .xp-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    row-gap: clamp(18px, 4vw, 30px);
  }
  .xp__card { width: 100%; }
  .xp__explore { font-size: 18px; }
}

/* Narrow header */
@media (max-width: 760px) {
  .site-header__inner { min-height: 68px; gap: 10px; }
  .site-header__brand img { height: 50px; }
  .sponsor { flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: 0.04em; }
  .sponsor__logo { height: 24px; }
  .btn--header { --btn-size: 17px; padding: 0.55em 0.85em; }
}

/* ----- Mobile hero: artwork band on top, content beneath on purple ----- */
@media (max-width: 719px) {
  .hero {
    --art-h: 100vw;                        /* height of the artwork band */
    --sky-pos-x: 68%;
    --goer-width: 86vw;
    --goer-left: 21vw;
    --goer-bottom: 7.5vw;                  /* lowered slightly so the Macmillan logo sits clear of her hair */
    --stage-width: 178vw;
    --stage-bottom: -4vw;
    --fade-height: 34%;
    min-height: 0;
  }
  .hero__art { bottom: auto; height: var(--art-h); overflow: hidden; }
  .hero__stage { left: -55vw; transform: none; }
  .hero::after {                           /* purple base under the content */
    content: ""; position: absolute; z-index: -1;
    left: 0; right: 0; top: var(--art-h); bottom: 0;
    background: var(--c-purple-page);
  }
  .hero__content {
    width: 100%;
    padding-top: 4vw;
    padding-bottom: 30px;
  }
  .hero__logo { width: 54vw; margin-left: -2vw; }
  .hero__dates {
    /* pushes the event details below the artwork band, overlapping its faded edge */
    margin-top: calc(var(--art-h) - 4vw - 24vw - 13vw);
    font-size: clamp(26px, 8.4vw, 36px);
  }
  .hero__strap { font-size: clamp(20px, 6.2vw, 27px); }
  .hero__venue { font-size: clamp(12px, 3.5vw, 15px); }
  .hero__promo { width: min(88vw, 400px); margin-left: -2vw; }
  .hero__limited { width: min(88vw, 400px); font-size: 17px; }
  .btn--hero { --btn-size: clamp(21px, 6.4vw, 27px); margin-left: 8px; }
  .hero__vip { font-size: 14px; }

  /* Mobile: centre the event details, offer and booking button beneath the artwork
     (the festival logo stays top-left over the artwork) */
  .hero__content { align-items: center; text-align: center; }
  .hero__logo { align-self: flex-start; }
  .hero__venue { justify-content: center; }
  .hero__promo { margin-left: 0; }
  .hero__cta { align-items: center; width: 100%; }
  .btn--hero { margin-left: 0; }
  .hero__vip { max-width: 22em; text-wrap: balance; }

  .hero__charity { width: 104px; top: 2.6vw; }
  .artists { --artist-scale: .72; --artist-gap: 38px; padding: 12px 0 10px; }
  .artists__title { font-size: 13px; letter-spacing: .12em; gap: 8px; }
  .artists__title::before, .artists__title::after { width: 12px; }
  .artists__head { padding-inline: 52px; }

  .finale__title { font-size: 17cqi; }
  .finale__banner { margin-top: -7vw; }
  .finale__banner span { font-size: clamp(24px, 8vw, 38px); }
  .finale__grass { width: 58vw; opacity: .9; }
  .finale { padding-bottom: 26vw; }       /* room for the grass beneath the address */
  .finale__strap { max-width: 20em; }
  .finale__vip { max-width: 18em; }
  .btn--finale { --btn-size: clamp(25px, 7.6vw, 36px); padding: 0.45em 1.1em; }
  .finale__venue { font-size: 13px; letter-spacing: 0.06em; max-width: 26em; text-align: left; }
  .finale__venue::before, .finale__venue::after { display: none; }
}

@media (max-width: 400px) {
  /* keep the carousel heading on one line on small phones */
  .artists__head { padding-inline: 46px; }
  .artists__title { white-space: nowrap; font-size: clamp(10.5px, 3.45vw, 13px); letter-spacing: .07em; }
  .artists__title::before, .artists__title::after { display: none; }
}

@media (max-width: 480px) {
  .section-title { font-size: 7.3vw; gap: 10px; padding-inline: 12px; }
  .section-title::before, .section-title::after { width: 16px; height: 3px; }
}

/* Very narrow phones (≤360px): header becomes two compact rows */
@media (max-width: 380px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    grid-template-areas: "brand cta" "sponsor sponsor";
    justify-content: space-between;
    row-gap: 4px;
    padding-block: 8px 6px;
  }
  .site-header__brand { grid-area: brand; }
  .btn--header { grid-area: cta; }
  .sponsor { grid-area: sponsor; flex-direction: row; gap: 8px; font-size: 11px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); width: 100%; justify-content: center; }
  .sponsor__logo { height: 20px; }
}

/* ---------- 12. MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__content > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__content > :nth-child(2) { animation-delay: .06s; }
  .js .hero__content > :nth-child(3) { animation-delay: .1s; }
  .js .hero__content > :nth-child(4) { animation-delay: .14s; }
  .js .hero__content > :nth-child(5) { animation-delay: .18s; }
  .js .hero__content > :nth-child(6) { animation-delay: .22s; }
  .js .hero__content > :nth-child(7) { animation-delay: .26s; }
  .lineup[open] { animation: dialog-in .28s cubic-bezier(.2, .7, .2, 1); }
  .lineup[open]::backdrop { animation: fade-in .28s ease; }
}
@keyframes rise { from { opacity: 0.001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
