/* ── Disco Biscuit — Studio 54 meets the biscuit tin ─────────────── */

:root {
  --choc: #16100d;          /* dark chocolate base */
  --choc-2: #221812;
  --gold: #e8a952;          /* biscuit gold */
  --gold-hi: #f6c877;
  --pink: #ff3d9a;          /* jammie-dodger neon */
  --orange: #ff7a3c;
  --teal: #35e0d0;
  --cream: #fdf3e3;
  --font-display: 'Monoton', cursive;
  --font-head: 'Righteous', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--choc);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ── */
/* hidden for now: single-page site doesn't need it; markup kept for later */
.nav { display: none !important; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.2rem;
  background: color-mix(in srgb, var(--choc) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,169,82,.18);
}
.nav-brand {
  font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .04em;
  color: var(--gold-hi); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
}
.biscuit-dot {
  width: 1.1em; height: 1.1em; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--pink) 0 28%, var(--gold-hi) 30% 62%, var(--gold) 64%);
  box-shadow: 0 0 10px rgba(255,61,154,.6);
  display: inline-block;
}
.nav-logo, .footer-logo {
  width: 42px; height: 42px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.55)) drop-shadow(0 0 14px rgba(255,250,240,.3));
}
.footer-logo { width: 56px; height: 56px; }
.nav-links { display: flex; gap: 1.1rem; align-items: center; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-weight: 400; font-size: .95rem;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-hi); }
.nav-cta {
  padding: .35rem .9rem; border-radius: 999px;
  background: linear-gradient(120deg, var(--pink), var(--orange));
  font-weight: 600 !important;
}
.nav-cta:hover { color: #fff !important; filter: brightness(1.1); }

/* ── Hero ── */
.hero {
  /* leave room for the ticker so it anchors to the bottom of the first screen */
  min-height: calc(100svh - 2.6rem);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  text-align: center; position: relative; overflow: hidden;
  padding: calc(clamp(60px, 16vh, 160px) + 225px) 1.2rem 4rem;
}
.hero-lights {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 20% 8%, rgba(255,61,154,.22), transparent 65%),
    radial-gradient(ellipse 55% 40% at 82% 12%, rgba(53,224,208,.16), transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(232,169,82,.20), transparent 70%);
  animation: lights 9s ease-in-out infinite alternate;
}
@keyframes lights {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(35deg) brightness(1.25); }
}

/* The rig is fixed so the ball can ride the scroll (script.js adds the
   translate); everything page-content sits in a higher stacking layer so the
   ball slips behind the frosted ticker and the sections */
.ball-rig {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  will-change: transform, filter, opacity;
}
.hero, main, .footer { position: relative; z-index: 2; }
/* hero sits above the ball layer, so let clicks fall through to the ball;
   its own buttons opt back in */
.hero { pointer-events: none; }
.hero a, .hero button { pointer-events: auto; }
.ball { pointer-events: auto; cursor: pointer; }

/* Mirrorball: 13-frame photographic rotation.
   Adapted from "Let's Dance!" by Chris Bolson, MIT licensed:
   https://codepen.io/cbolson/pen/dPbKpyG
   Frames self-hosted in assets/discoball/ (from github.com/cbolson/icodethis-challenges). */
.discoball {
  position: absolute; top: 0; left: 50%; z-index: 1;
  transform: translate(-50%, -460px); opacity: 0;
  transition: transform 1.8s cubic-bezier(.3, 1.25, .45, 1), opacity .4s ease;
}
.discoball.ready { transform: translate(-50%, 0); opacity: 1; }
/* Easter egg: tap the ball; script.js runs a small damped-pendulum sim on
   .discoball (rotate) and decays the spin speed. Pivot = top of the string. */
.discoball { transform-origin: top center; }
/* string extends 600px past the top of the page so its end can never show,
   even after the rig's scroll drift; fades to a minimum, not to nothing */
/* faint up in the dark, catching the ball's glow near the bottom */
.ball-string {
  width: 1.5px; height: calc(clamp(60px, 16vh, 160px) + 600px);
  margin: -600px auto 0;
  background: linear-gradient(
    rgba(253,243,227,.05) 0%,
    rgba(253,243,227,.08) 80%,
    rgba(253,243,227,.3) 94%,
    rgba(255,244,235,.65) 100%);
  filter: blur(.4px);
}
/* Rotation frames are swapped by script.js on an <img> — iOS Safari won't
   run background-image keyframes, so CSS animation was invisible there. */
.ball {
  width: 210px; height: 210px; margin: 0 auto;
  /* clip-path circle(45%) trims ~10px off the top of the frame, so pull the
     ball up to meet the string */
  margin-top: -11px;
  clip-path: circle(45%);
  -webkit-clip-path: circle(45%);
}
.ball-frame { width: 100%; height: 100%; display: block; object-fit: cover; }
/* clip-path circle(45%) leaves the visible ball at 90% of the box (189px),
   so the halo matches that, not the full 210px */
.ball-halo {
  position: absolute; top: calc(clamp(60px, 16vh, 160px) - 1px); left: 50%;
  width: 188px; height: 188px; margin-left: -94px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  box-shadow: 0 0 40px rgba(255,255,255,.4), 0 0 100px rgba(255,61,154,.3), 0 0 160px rgba(53,224,208,.2);
  animation: ball-glow 5s ease-in-out infinite alternate;
  opacity: 0; transition: opacity .8s ease 1.5s; /* glow arrives as the ball settles */
}
.discoball.ready .ball-halo { opacity: 1; }
@keyframes ball-glow {
  from { box-shadow: 0 0 40px rgba(255,255,255,.4), 0 0 100px rgba(255,61,154,.3), 0 0 160px rgba(53,224,208,.2); }
  to   { box-shadow: 0 0 55px rgba(255,255,255,.55), 0 0 130px rgba(53,224,208,.35), 0 0 190px rgba(255,61,154,.3); }
}
.beam {
  position: absolute; top: calc(clamp(60px, 16vh, 160px) + 170px); left: 50%; width: 560px; height: 560px;
  transform-origin: top center; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 0,
    transparent 0deg, rgba(255,61,154,.3) 5deg, transparent 12deg,
    transparent 24deg, rgba(53,224,208,.26) 30deg, transparent 37deg,
    transparent 52deg, rgba(232,169,82,.28) 58deg, transparent 64deg);
  filter: blur(4px);
  margin-left: -240px;
}
.beam-l { animation: sweep-l 11s ease-in-out infinite alternate; }
.beam-r { animation: sweep-r 13s ease-in-out infinite alternate; }
@keyframes sweep-l { from { transform: rotate(-38deg); } to { transform: rotate(14deg); } }
@keyframes sweep-r { from { transform: rotate(30deg); } to { transform: rotate(-20deg); } }

.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; opacity: 0; filter: blur(.4px);
  box-shadow: 0 0 8px 2px rgba(255,255,255,.55);
  animation: twinkle var(--dur, 4s) cubic-bezier(.45,0,.55,1) var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) translateY(0); }
  50% { opacity: var(--peak, .9); transform: scale(1) translateY(-6px); }
}

/* mirrorball reflections drifting around the room */
.reflections { position: absolute; inset: -20%; pointer-events: none; }
.refl {
  position: absolute; inset: 0;
  transform-origin: 50% 22%;
  background:
    radial-gradient(ellipse 26px 14px at 16% 34%, rgba(255,61,154,.28), transparent 70%),
    radial-gradient(ellipse 20px 12px at 78% 26%, rgba(53,224,208,.24), transparent 70%),
    radial-gradient(ellipse 30px 16px at 62% 66%, rgba(232,169,82,.26), transparent 70%),
    radial-gradient(ellipse 18px 10px at 30% 78%, rgba(255,255,255,.2), transparent 70%),
    radial-gradient(ellipse 22px 12px at 88% 58%, rgba(255,61,154,.2), transparent 70%);
  filter: blur(1.5px);
}
.refl-a { animation: refl-drift 46s linear infinite; }
.refl-b { animation: refl-drift 62s linear infinite reverse; animation-delay: -24s; opacity: .7; }
@keyframes refl-drift { to { transform: rotate(360deg); } }

.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .35em; font-size: .72rem;
  color: var(--teal); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 13vw, 8.5rem);
  line-height: .95; text-transform: uppercase;
  display: flex; flex-direction: column;
}
.hero-title span:first-child {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b06f24);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 42px rgba(232,169,82,.35);
}
.hero-title span:last-child {
  background: linear-gradient(180deg, #ff8ac2, var(--pink) 55%, #b3125f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 42px rgba(255,61,154,.35);
}
.hero-sub { margin-top: 1.6rem; max-width: 34rem; font-size: 1.05rem; opacity: .92; }
.hero-sub-biscuit { margin-top: .9rem; font-size: .92rem; opacity: .7; }
.hero-actions { display: flex; gap: .9rem; margin-top: 2.2rem; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: var(--font-head); letter-spacing: .05em; text-decoration: none;
  padding: .8rem 1.8rem; border-radius: 999px; font-size: 1rem; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--pink), var(--orange));
  color: #fff; box-shadow: 0 6px 28px rgba(255,61,154,.4);
}
.btn-primary:hover { box-shadow: 0 10px 36px rgba(255,61,154,.55); }
.btn-ghost { color: var(--gold-hi); border: 1.5px solid var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(232,169,82,.12); }

/* ── Marquee ── */
.marquee {
  overflow: hidden; border-block: 1px solid rgba(232,169,82,.3);
  /* frosted so the descending disco ball blurs as it passes behind */
  background: color-mix(in srgb, var(--choc-2) 72%, transparent);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  position: relative; z-index: 3;
  padding: .55rem 0;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold); font-size: .85rem; white-space: nowrap;
}
/* four identical spans; shifting by exactly one span (25%) loops seamlessly
   even on displays wider than a single span */
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span { display: block; flex: none; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* ── Sections ── */
/* quiet colour washes so the long scroll never goes flat black */
main {
  background:
    radial-gradient(52% 30% at 8% 6%, rgba(255,61,154,.05), transparent 70%),
    radial-gradient(48% 26% at 94% 22%, rgba(53,224,208,.05), transparent 70%),
    radial-gradient(55% 30% at 4% 48%, rgba(232,169,82,.05), transparent 70%),
    radial-gradient(50% 28% at 96% 68%, rgba(255,61,154,.045), transparent 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(53,224,208,.05), transparent 72%);
}
main section { padding: 5rem 1.2rem; max-width: 68rem; margin: 0 auto; position: relative; }
/* glowing hairline between sections */
main section + section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(340px, 62%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,169,82,.55), rgba(255,61,154,.45), transparent);
  box-shadow: 0 0 12px rgba(255,61,154,.25);
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.9rem, 5.5vw, 3rem);
  text-align: center; letter-spacing: .02em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--pink), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lede { text-align: center; max-width: 38rem; margin: .9rem auto 2.6rem; opacity: .85; }

/* ── Band ── */
.band-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.member {
  background: linear-gradient(165deg, var(--choc-2), #1a1210 70%);
  border: 1px solid rgba(232,169,82,.22); border-radius: 20px;
  padding: 1.6rem; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
/* bio absorbs the height difference so biscuits + socials line up across cards */
.member-bio { flex: 1; }
.member:hover { transform: translateY(-4px); border-color: rgba(255,61,154,.5); }
/* each card carries its member's favourite biscuit as a watermark */
.member::before {
  content: ''; position: absolute; right: -34px; bottom: -34px;
  width: 170px; height: 170px; opacity: .1; pointer-events: none;
  background-size: contain; background-repeat: no-repeat;
  transform: rotate(-14deg);
  transition: opacity .25s ease, transform .25s ease;
}
.member:hover::before { opacity: .2; transform: rotate(-6deg) scale(1.05); }
/* white chocolate finger */
.member-ellie::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='4' y='44' width='92' height='13' rx='6.5' fill='%23f6e7c9'/%3E%3Cpath d='M10 49q6 -3 12 0t12 0 12 0 12 0 12 0 12 0' stroke='%23e8ceA0' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
}
/* mini cheddar */
.member-tom::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='36' fill='%23f0b64e'/%3E%3Ccircle cx='50' cy='50' r='36' fill='none' stroke='%23d99a2e' stroke-width='7' stroke-dasharray='6 5'/%3E%3Ccircle cx='40' cy='44' r='3' fill='%23d99a2e'/%3E%3Ccircle cx='58' cy='38' r='3' fill='%23d99a2e'/%3E%3Ccircle cx='62' cy='58' r='3' fill='%23d99a2e'/%3E%3Ccircle cx='44' cy='62' r='3' fill='%23d99a2e'/%3E%3C/svg%3E");
}
/* jammie dodger */
.member-elliot::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='38' fill='%23f3d9a4'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23e3bd76' stroke-width='3' stroke-dasharray='4 4'/%3E%3Cpath d='M50 62 L38 50 a8 8 0 1 1 12 -10 a8 8 0 1 1 12 10 Z' fill='%23e8447a'/%3E%3C/svg%3E");
}
/* stroopwafel */
.member-andi::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='38' fill='%23d99a4e'/%3E%3Cg stroke='%23b87a2e' stroke-width='3'%3E%3Cpath d='M22 34 L78 66 M22 50 L78 82 M22 18 L78 50 M34 22 L66 78 M50 16 L82 64 M18 36 L50 84'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='38' fill='none' stroke='%23b87a2e' stroke-width='4'/%3E%3C/svg%3E");
}
.member-photo {
  width: 108px; height: 108px; border-radius: 50%; margin-bottom: 1rem;
  object-fit: cover; display: block;
  box-shadow: 0 0 0 3px var(--choc), 0 0 0 5px var(--gold), 0 8px 24px rgba(0,0,0,.45);
  filter: saturate(1.05) contrast(1.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.member:hover .member-photo {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 0 3px var(--choc), 0 0 0 5px var(--pink), 0 10px 28px rgba(255,61,154,.3);
}
.band-playlist { text-align: center; margin-top: 2.2rem; opacity: .9; }
.band-playlist a { color: var(--teal); }
.band-playlist a:hover { color: var(--pink); }
.member h3 { font-family: var(--font-head); font-size: 1.35rem; }
.member-role {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .22em;
  margin: .25rem 0 .9rem;
}
.role-drums  { color: var(--orange); }
.role-vocals { color: var(--pink); }
.role-bass   { color: var(--teal); }
.role-guitar { color: var(--gold-hi); }
.member-bio { font-size: .95rem; opacity: .9; }
.member-biscuit {
  margin-top: .9rem; font-size: .88rem; color: var(--gold-hi);
  min-height: 4.2em; line-height: 1.45;
}
.member-biscuit .biscuit-label {
  display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .18em; opacity: .75; margin-bottom: .15rem;
}
.member-biscuit strong { display: block; }
.member-biscuit em { display: block; font-style: normal; font-size: .8rem; opacity: .7; }
/* Tabler outline icons, currentColor stroke, brand colours — matches the
   andistonemedia-website .andi-social pattern */
.db-social { display: flex; flex-wrap: wrap; gap: .35rem; }
.db-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, filter .2s ease;
}
.db-social svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.db-social a:hover { transform: translateY(-2px); filter: drop-shadow(0 0 8px currentColor); }
.db-social [data-brand="web"]       { color: var(--gold-hi); }
.db-social [data-brand="youtube"]   { color: #FF0000; }
.db-social [data-brand="twitch"]    { color: #9146FF; }
.db-social [data-brand="tiktok"]    { color: #00F2EA; }
.db-social [data-brand="instagram"] { color: #E4405F; }
.db-social [data-brand="bsky"]      { color: #0085FF; }
.db-social [data-brand="threads"]   { color: #FFFFFF; }
.db-social [data-brand="facebook"]  { color: #1877F2; }
.db-social [data-brand="twitter"]   { color: #1DA1F2; }
.db-social [data-brand="spotify"]   { color: #1DB954; }
/* fixed two-row slot so every card's biscuit line sits at the same height,
   even though only Andi's icons wrap to a second row */
.member-socials { margin-top: .8rem; min-height: 82px; align-content: flex-start; }

/* ── Gigs ── */
.gig-list { display: grid; gap: .9rem; max-width: 44rem; margin: 0 auto; }
.gig-loading, .gig-empty { text-align: center; opacity: .7; }
.gig {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  background: var(--choc-2); border: 1px solid rgba(232,169,82,.2);
  border-radius: 16px; padding: 1rem 1.2rem;
}
.gig-date {
  text-align: center; font-family: var(--font-head); line-height: 1.05; min-width: 3.6rem;
}
.gig-date .day { font-size: 1.6rem; color: var(--pink); display: block; }
.gig-date .mon { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--gold-hi); }
.gig-venue { font-weight: 600; font-size: 1.02rem; }
.gig-meta { font-size: .85rem; opacity: .75; }
.gig-time { font-family: var(--font-head); color: var(--teal); font-size: .9rem; white-space: nowrap; }
.gig-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.gig-actions { display: flex; gap: .35rem; }
.gig-actions:empty { display: none; }
.gig-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-hi); background: transparent; cursor: pointer;
  border: 1px solid rgba(232,169,82,.4); padding: 0;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gig-btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.gig-btn:hover { color: #fff; border-color: var(--pink); background: rgba(255,61,154,.15); }
.gig-btn-tickets { color: var(--pink); border-color: rgba(255,61,154,.5); }
.gig-btn-done { color: var(--teal); border-color: var(--teal); }
.gig-cancelled { opacity: .45; }
.gig-cancelled .gig-venue { text-decoration: line-through; }
.past-gigs { max-width: 44rem; margin: 1.6rem auto 0; }
.past-gigs summary {
  cursor: pointer; text-align: center; color: var(--gold); font-family: var(--font-head);
  letter-spacing: .06em; padding: .4rem;
  user-select: none; -webkit-user-select: none;
}
.gig-list-past { margin-top: 1rem; overflow: hidden; transition: height .45s cubic-bezier(.4,0,.2,1), margin-top .45s cubic-bezier(.4,0,.2,1); }
.past-gigs.closing .gig-list-past { margin-top: 0; }
.gig-list-past .gig { opacity: .65; }
/* past gigs slide down + fade in when the disclosure opens */
.past-gigs[open] .gig-list-past .gig { animation: gig-in .45s cubic-bezier(.25,.8,.35,1) both; }
.past-gigs[open] .gig-list-past .gig:nth-child(2) { animation-delay: .06s; }
.past-gigs[open] .gig-list-past .gig:nth-child(3) { animation-delay: .12s; }
.past-gigs[open] .gig-list-past .gig:nth-child(4) { animation-delay: .18s; }
.past-gigs[open] .gig-list-past .gig:nth-child(5) { animation-delay: .24s; }
.past-gigs[open] .gig-list-past .gig:nth-child(n+6) { animation-delay: .3s; }
@keyframes gig-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: .65; transform: translateY(0); }
}
/* closing plays the same slide in reverse before the details actually shuts */
.past-gigs.closing .gig-list-past .gig { animation: gig-out .3s ease both !important; }
.past-gigs.closing .gig-list-past .gig:nth-child(2) { animation-delay: .05s !important; }
.past-gigs.closing .gig-list-past .gig:nth-child(3) { animation-delay: .1s !important; }
.past-gigs.closing .gig-list-past .gig:nth-child(n+4) { animation-delay: .15s !important; }
@keyframes gig-out {
  from { opacity: .65; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .past-gigs[open] .gig-list-past .gig, .past-gigs.closing .gig-list-past .gig { animation: none !important; }
}

/* ── Testimonials ── */
.testimonial-grid { display: grid; gap: 1.2rem; max-width: 44rem; margin: 0 auto; }
.testimonial {
  background: var(--choc-2); border: 1px solid rgba(232,169,82,.22);
  border-radius: 20px; padding: 1.8rem; position: relative;
}
.testimonial::before {
  content: '\201C'; position: absolute; top: .2rem; left: 1.1rem;
  font-family: var(--font-head); font-size: 4rem; line-height: 1;
  color: var(--pink); opacity: .5;
}
.testimonial-quote { font-size: 1.05rem; padding-left: 2.4rem; }
.testimonial-source {
  margin-top: 1.1rem; padding-left: 2.4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .8rem;
  font-size: .85rem; color: var(--gold-hi);
}
.btn-small { padding: .45rem 1.1rem; font-size: .85rem; }

/* ── Booking form ── */
.booking-form { max-width: 44rem; margin: 0 auto; display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.booking-form label { display: grid; gap: .35rem; font-size: .85rem; letter-spacing: .04em; color: var(--gold-hi); }
.booking-form input, .booking-form select, .booking-form textarea {
  background: var(--choc-2); border: 1px solid rgba(232,169,82,.3); border-radius: 12px;
  color: var(--cream); font-family: var(--font-body); font-size: 1rem; padding: .75rem .9rem;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent;
}
.booking-form input::placeholder, .booking-form textarea::placeholder { color: rgba(253,243,227,.35); }
.btn-submit { justify-self: center; margin-top: .4rem; }
.form-status { text-align: center; min-height: 1.4em; color: var(--teal); }
.form-status.error { color: var(--orange); }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(232,169,82,.2); background: var(--choc-2);
  text-align: center; padding: 2.6rem 1.2rem; display: grid; gap: .8rem;
}
.footer-brand {
  font-family: var(--font-head); font-size: 1.2rem; color: var(--gold-hi);
  display: flex; justify-content: center; align-items: center; gap: .5rem;
}
.footer-socials { justify-content: center; gap: .6rem; }
.footer-socials svg { width: 26px; height: 26px; }
.footer-note { font-size: .8rem; opacity: .6; }

/* cursor glitter trail */
.cursor-spark {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none; z-index: 60;
  animation: spark-fade .8s ease-out forwards;
}
@keyframes spark-fade {
  from { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0;  transform: translate(-50%, calc(-50% + 22px)) scale(.2); }
}

/* ── Widescreen: the whole band in one row ── */
@media (min-width: 1150px) {
  .band { max-width: 84rem; }
  .band-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .nav { padding: .65rem .9rem; gap: .6rem; }
  .nav-brand { font-size: 1rem; white-space: nowrap; }
  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .85rem; }
  .nav-cta { padding: .3rem .7rem; }
  .form-row { grid-template-columns: 1fr; }
  /* single column: date reads as one line, venue below, time + actions in a row */
  .gig { grid-template-columns: 1fr; gap: .45rem; padding: .9rem 1rem; }
  .gig-date { display: flex; align-items: baseline; gap: .4rem; min-width: 0; text-align: left; }
  .gig-date .day { font-size: 1.25rem; display: inline; }
  .gig-date .mon { font-size: .78rem; }
  .gig-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  main section { padding: 3.6rem 1.1rem; }
  .ball { width: 64px; height: 64px; }
}

@media (max-width: 640px) {
  .marquee { font-size: .58rem; padding: .4rem 0; letter-spacing: .1em; }
  /* eyebrow: two deliberate lines instead of an awkward mid-phrase wrap */
  .hero-eyebrow span { display: block; }
  .hero-eyebrow .eyebrow-sep { display: none; }
  .hero-eyebrow { line-height: 1.9; }
  /* let the strapline wrap naturally into balanced lines */
  .hero-sub { font-size: .98rem; text-wrap: balance; }
  .hero-sub br { display: none; }
  /* band + testimonials become swipe carousels to save vertical space */
  .band-grid, .testimonial-grid {
    display: flex; gap: .9rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 .3rem 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .band-grid::-webkit-scrollbar, .testimonial-grid::-webkit-scrollbar { display: none; }
  .member, .testimonial { flex: 0 0 84%; scroll-snap-align: center; }
  .ball { width: 140px; height: 140px; margin-top: -7px; }
  .ball-halo { width: 125px; height: 125px; margin-left: -62px; top: calc(clamp(40px, 9vh, 90px) - 1px); }
  .ball-string { height: calc(clamp(40px, 9vh, 90px) + 600px); }
  .hero { padding-top: calc(clamp(40px, 9vh, 90px) + 175px); }
  .beam { top: calc(clamp(40px, 9vh, 90px) + 115px); width: 380px; height: 380px; margin-left: -190px; }
}

@media (prefers-reduced-motion: reduce) {
  .ball, .ball-halo, .beam, .sparkle, .refl, .hero-lights, .marquee-track { animation: none; }
  .sparkle { opacity: .5; }
  .cursor-spark { display: none; }
  html { scroll-behavior: auto; }
}
