/* =========================================================
   The Zumbyes — jazz a cappella, Amherst College
   Palette sampled straight from the group's own artwork:
   the purple from the Z logo, the cream and lavender from
   the banana poster. Change these and the site follows.
   ========================================================= */

:root {
  --grape:    #401172;   /* THE purple — sampled from the Z logo   */
  --grape-lt: #6b2ba8;   /* lighter purple, for accents on paper   */
  --lilac:    #cdabea;   /* banana line-art lavender, sampled      */
  --paper:    #fcf8db;   /* poster cream, sampled                  */
  --paper-2:  #f6efc4;   /* paper, shaded                          */
  --banana:   #edc02e;   /* ripe yellow — fills and highlights     */
  --ink:      #1b0f28;   /* aubergine near-black                   */
  --alert:    #b5325c;   /* form errors only                       */

  --text:     var(--ink);
  --muted:    color-mix(in srgb, var(--ink) 58%, var(--paper));
  --rule:     color-mix(in srgb, var(--ink) 14%, transparent);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* beats the display rules below */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--grape-lt);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 1rem;
}
.h2 em { font-style: italic; color: var(--grape-lt); }
.h2--light { color: var(--paper); }
.h2--light em { color: var(--banana); }

.lede { font-size: 1.13em; color: color-mix(in srgb, var(--ink) 80%, var(--paper)); }

.section__head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__sub { color: var(--muted); margin: 0; }

.link {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(var(--grape-lt), var(--grape-lt));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s var(--ease);
  padding-bottom: 1px;
}
.link:hover { background-size: 100% 40%; }

/* a name in running copy that opens that member's bio */
.inline-bio {
  border: 0; padding: 0; background: none; cursor: pointer;
  font: inherit; color: var(--grape-lt);
  border-bottom: 1px solid color-mix(in srgb, var(--grape-lt) 45%, transparent);
  transition: border-color .2s, color .2s;
}
.inline-bio:hover { color: var(--grape); border-bottom-color: var(--grape); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 999px;
  padding: .78rem 1.5rem;
  font-size: .93rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(27,15,40,.7); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--light { --bg: var(--banana); --fg: var(--ink); border-color: var(--banana); }
.btn--sm { padding: .5rem 1.05rem; font-size: .86rem; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 0 var(--rule);
}
.nav__inner {
  width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo__text { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; }
/* the Z roundel — border-radius clips the source screenshot's corners */
.logo__mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--grape) 18%, transparent);
  transition: transform .3s var(--ease);
}
.logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }

.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
  text-decoration: none; font-size: .93rem; position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--grape-lt); transition: right .3s var(--ease);
}
.nav__links a:not(.btn):hover::after { right: 0; }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.mobile {
  display: grid; gap: .25rem; padding: .5rem 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.mobile a { text-decoration: none; padding: .6rem 0; font-family: var(--serif); font-size: 1.4rem; }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .burger { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  /* isolation keeps the z-index:-1 banana above this section's own
     background instead of behind it */
  position: relative; isolation: isolate;
  /* a touch under a full screen so the photo strip below peeks in */
  min-height: 88svh;
  display: grid; align-items: center;
  background:
    radial-gradient(100% 80% at 10% 0%, color-mix(in srgb, var(--banana) 24%, transparent), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--lilac) 55%, transparent), transparent 62%),
    var(--paper);
  overflow: hidden;
}

/* =========================================================
   BANANA WATERMARK
   Sits behind content, in the footer. Swap assets/banana.svg
   for the group's own line art and it follows.
   ========================================================= */
.watermark {
  position: absolute; z-index: -1; pointer-events: none;
  height: auto;
}
.watermark--footer {
  right: 2%; bottom: 8%;
  width: min(30vw, 270px);
  opacity: .16;
  transform: rotate(-14deg);
}
/* peeks out from behind the hero photo's bottom-right corner */
.watermark--hero {
  right: -2%; bottom: 3%;
  width: min(28vw, 320px);
  opacity: .4;
  transform: rotate(-24deg);
}

.hero__inner {
  width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto;
  padding: 8rem 0 7rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4rem, 15vw, 11rem);
  line-height: .86; letter-spacing: -.03em;
  margin: 0 0 1.4rem;
}
.hero__title .line { display: block; }
.hero__title em { font-style: italic; color: var(--grape-lt); }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  /* wide enough to hold the tagline and the year on one line on desktop */
  max-width: 46ch; color: color-mix(in srgb, var(--ink) 75%, var(--paper));
  margin: 0 0 2.2rem;
}
/* its own line, not an inline tail — at most viewport widths the tagline
   wraps, and a mid-air separator dot ends up orphaned above it */
.hero__est {
  display: block; margin-top: .55rem;
  font-size: .62em; letter-spacing: .22em; text-transform: uppercase;
  color: var(--grape-lt);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
/* The history copy is set like .pagehead__sub — same fluid size and the
   same softened ink — so the long-form reads match across pages. The
   button paragraph is unaffected: .btn sets its own size and color. */
.about__copy p {
  font-size: 1rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
}

.quote { margin: 0; padding-left: 1.1rem; border-left: 2px solid var(--banana); }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; margin: 0 0 .4rem; }
.quote cite { font-style: normal; font-size: .85rem; color: var(--muted); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LISTEN — Spotify embed
   ========================================================= */
.record {
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;                 /* clips the iframe to the radius */
  /* the embed is dark; a little lift keeps it from reading as a hole
     punched in the cream page */
  box-shadow: 0 22px 45px -28px rgba(27, 15, 40, .75);
}
.record iframe { display: block; border: 0; }
.listen__links { margin-top: 1.75rem; color: var(--muted); }
.listen__links em, .section__sub em { font-style: italic; color: var(--grape-lt); }

/* =========================================================
   MEMBERS
   ========================================================= */
.members {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.25rem;
}
/* stand-in artwork for a member with no photo yet — contained and inset, not
   cropped edge-to-edge the way a portrait is. The banana is drawn lying flat,
   so it's stood up here. */
.member__art {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 17%;
  opacity: .8;
  transform: rotate(-58deg);
  transition: transform .4s var(--ease), opacity .35s var(--ease);
}
.member:hover .member__art { transform: rotate(-63deg) scale(1.04); opacity: .95; }
.bio__face .member__art { padding: 12%; }

/* two-up on phones — a long roster is a long scroll otherwise */
@media (max-width: 560px) {
  .members { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .member__initials { font-size: 2.2rem; }
}
.member { position: relative; }
.member__inner {
  position: relative; overflow: hidden; border-radius: 14px;
  width: 100%; aspect-ratio: 4/5;
  border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(155deg, var(--c1), var(--c2));
  display: grid; place-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.member:hover .member__inner { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 40px -26px rgba(27,15,40,.8); }
.member__inner img { width: 100%; height: 100%; object-fit: cover; }
.member__initials {
  font-family: var(--serif); font-size: 3rem; color: color-mix(in srgb, var(--paper) 85%, transparent);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.member:hover .member__initials { opacity: 0; transform: scale(.85); }

.member__card {
  position: absolute; inset: 0; padding: 1rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem;
  text-align: left;
  background: linear-gradient(to top, rgba(27,15,40,.92), rgba(27,15,40,.55) 60%, transparent);
  color: var(--paper);
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.member:hover .member__card, .member__inner:focus-visible .member__card { opacity: 1; transform: none; }
.member__nick {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.2;
  color: var(--paper);
}
.member__more {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--banana);
}

.member__name { display: block; margin-top: .7rem; font-family: var(--serif); font-size: 1.2rem; }
.member__part {
  display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.member__part b { color: var(--grape-lt); font-weight: 500; }

/* leadership title — a pill so it reads as its own token, not a third
   item in the part/year line. Only members with `role` get one. */
.member__role {
  display: block; width: fit-content; margin-top: .4rem;
  padding: .22rem .55rem; border-radius: 999px;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--grape);
  background: color-mix(in srgb, var(--grape-lt) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--grape-lt) 30%, transparent);
}

/* ---------- bio dialog ---------- */
.bio {
  width: min(660px, calc(100vw - 2rem));
  max-height: min(84vh, 900px);
  margin: auto;            /* centers in the viewport */
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0; border-radius: 20px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 90px -40px rgba(27, 15, 40, .8);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bio::backdrop {
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(3px);
}
.bio[open] { animation: bioIn .3s var(--ease); }
@keyframes bioIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
}

.bio__close {
  position: sticky; top: 0; float: right;
  width: 36px; height: 36px; margin: -.4rem -.4rem 0 .6rem;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  background: var(--paper); cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.bio__close:hover { background: var(--grape); border-color: var(--grape); color: var(--paper); }

.bio__head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.bio__face {
  flex: none; width: 88px; aspect-ratio: 4/5;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(155deg, var(--c1), var(--c2));
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.7rem;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}
.bio__face img { width: 100%; height: 100%; object-fit: cover; }
.bio__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.05; margin: 0 0 .35rem; }
.bio__meta {
  margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grape-lt);
}
.bio__role {
  display: inline-block; margin: .5rem 0 0;
  padding: .22rem .55rem; border-radius: 999px;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--grape);
  background: color-mix(in srgb, var(--grape-lt) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--grape-lt) 30%, transparent);
}
.bio__nicks { margin: .5rem 0 0; font-style: italic; font-size: .95rem; color: var(--muted); }

.bio__body p { margin: 0 0 1.05rem; }
.bio__body p:last-child { margin-bottom: 0; }
.bio__body p:first-child { font-size: 1.06em; }
.bio__soon { color: var(--muted); font-style: italic; }

/* Hank's bio is a beatbox transcription, not prose — set it like one */
.bio__beatbox {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .95rem; line-height: 2; letter-spacing: .04em;
  color: var(--grape);
  background: var(--paper-2);
  border-left: 3px solid var(--banana);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.2rem;
  word-spacing: .25em;
}

@media (max-width: 520px) {
  .bio__head { gap: .9rem; }
  .bio__face { width: 64px; }
}

/* =========================================================
   SHOWS
   ========================================================= */
.showlist { list-style: none; margin: 0; padding: 0; }
.show {
  display: grid; grid-template-columns: 5.5rem 1fr auto auto; align-items: center; gap: 1.25rem;
  padding: 1.35rem .5rem;
  border-bottom: 1px solid var(--rule);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.show:first-child { border-top: 1px solid var(--rule); }
.show:hover { background: color-mix(in srgb, var(--lilac) 14%, transparent); padding-left: 1rem; }
.show__date { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--grape-lt); }
.show__date b { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.show__title { display: block; font-size: 1.15rem; font-weight: 500; }
.show__where { display: block; font-size: .87rem; color: var(--muted); }
/* a note makes the row tall enough that centring strands the date well
   below the title it labels — top-align those rows only */
.show:has(.show__note) { align-items: start; }
/* optional third line on a row. Capped to a readable measure so it wraps
   like copy instead of stretching the full width of the list. */
.show__note {
  display: block; margin-top: .45rem; max-width: 56ch;
  font-size: .9rem; line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
}
.show__link { font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--grape-lt); padding-bottom: 1px; white-space: nowrap; }
.show.is-out .show__title { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }

.tag {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  white-space: nowrap;
}
.tag--free { border-color: var(--grape-lt); color: var(--grape-lt); }
.tag--out { border-color: transparent; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--muted); }

@media (max-width: 700px) {
  .show { grid-template-columns: 4.5rem 1fr auto; gap: .9rem; }
  .show__link { grid-column: 2 / -1; justify-self: start; }
}

/* =========================================================
   AUDITIONS
   ========================================================= */
.auditions {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--grape), var(--ink));
  color: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
/* keep the .wrap gutter, but hold the text to a readable measure
   on the left edge like every other section */
.auditions__inner > * { max-width: 56ch; }
.auditions p { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.auditions strong { color: var(--paper); font-weight: 500; }
.auditions .btn { margin-top: 1.5rem; }

/* what to bring to an audition */
.asks {
  list-style: none; margin: .4rem 0 1.4rem; padding: 0;
  display: grid; gap: .7rem;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.asks li { position: relative; padding-left: 1.6rem; }
.asks li::before {
  content: "♪"; position: absolute; left: 0; top: -.05em;
  color: var(--banana); font-size: 1.05em;
}

/* =========================================================
   BOOK
   ========================================================= */
.book__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.contact li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; }
.contact span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  border: 1px solid var(--rule); border-radius: 10px;
  padding: .8rem .9rem; width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--banana); background: #fff; outline: none;
}
.field.is-bad input, .field.is-bad textarea { border-color: var(--alert); }
.form .btn { justify-self: start; }
.form__note { margin: 0; font-size: .9rem; color: var(--grape-lt); min-height: 1.4em; }
.form__note.is-bad { color: var(--alert); }

@media (max-width: 820px) { .book__grid { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(200deg, var(--grape), var(--ink) 60%);
  color: var(--paper); padding: 3.5rem 0 2rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__logo { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 .3rem; }
.footer__fine { margin: 0; font-size: .88rem; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
/* the page list, set quieter than the social row beside it */
.footer__nav { display: grid; gap: .4rem; }
.footer__nav a {
  text-decoration: none; font-size: .92rem;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--banana); }
.footer__links a { text-decoration: none; font-size: .92rem; border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer__links a:hover { border-color: var(--banana); }
.footer__copy {
  width: min(var(--wrap), 100% - 2.5rem); margin: 3rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  font-size: .8rem; color: color-mix(in srgb, var(--paper) 50%, transparent);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   MULTI-PAGE CHROME
   The nav and footer are rendered from script.js (see NAV),
   so links live in one place instead of in seven files.
   ========================================================= */
/* the CTA pill keeps its own colours — recolouring the label would put
   purple text on the dark fill; it gets a ring instead */
.nav__links a:not(.btn).is-active { color: var(--grape-lt); }
.nav__links a:not(.btn).is-active::after { right: 0; }
.nav__links a.btn.is-active { box-shadow: 0 0 0 2px color-mix(in srgb, var(--banana) 85%, transparent); }
.mobile a.is-active { color: var(--grape-lt); }

/* ---------- page header — the hero stand-in on subpages ---------- */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(7.5rem, 14vw, 10.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(90% 120% at 8% 0%, color-mix(in srgb, var(--banana) 20%, transparent), transparent 58%),
    radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--lilac) 45%, transparent), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}
.pagehead__inner { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.pagehead__inner > * { max-width: 54ch; }
.pagehead__tag { margin: 1.2rem 0 1.3rem; }
.pagehead__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 0; }
/* the button row is wider than the 54ch measure the prose is held to */
.pagehead__inner > .pagehead__cta { max-width: none; }
.pagehead h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.9rem, 8vw, 5.5rem);
  line-height: .95; letter-spacing: -.025em;
  margin: 0 0 .7rem;
}
.pagehead h1 em { font-style: italic; color: var(--grape-lt); }
.pagehead__sub {
  font-size: clamp(1rem, 2vw, 1.2rem); margin: 0;
  color: color-mix(in srgb, var(--ink) 72%, var(--paper));
}
/* the pagehead already carries the top air, so the first section needs less */
.pagehead + .section { padding-top: clamp(3rem, 7vw, 5rem); }


/* =========================================================
   PHOTO DUMP — two rows drifting in opposite directions
   Photos come from the PHOTOS array in script.js; drop files
   in assets/photos/ and add the filename there.
   ========================================================= */
.dump {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(var(--paper), var(--paper-2) 45%, var(--paper));
  border-block: 1px solid var(--rule);
  overflow: hidden;
}
.dump__rows { display: grid; gap: clamp(.7rem, 1.6vw, 1.2rem); }
.dump__row {
  overflow: hidden;
  /* soften both ends so tiles drift in and out instead of being cut */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* spacing lives on the tiles, not as a flex gap: gap would make one set of
   tiles a half-gap wider than 50% of the track and the loop would jump */
.dump__track { display: flex; width: max-content; padding: .75rem 0; }
.dump__row--l .dump__track { animation: marqL 78s linear infinite; }
.dump__row--r .dump__track { animation: marqR 92s linear infinite; }
@keyframes marqL { from { transform: none; }               to { transform: translateX(-50%); } }
@keyframes marqR { from { transform: translateX(-50%); }   to { transform: none; } }
.dump:hover .dump__track,
.dump:focus-within .dump__track { animation-play-state: paused; }

.dump__tile {
  --rot: 0deg;
  flex: none; display: block;
  height: clamp(170px, 25vw, 290px);
  margin-right: clamp(.7rem, 1.6vw, 1.2rem);
  padding: .45rem;
  border: 0; border-radius: 2px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 18px 34px -24px rgba(27, 15, 40, .8);
  transform: rotate(var(--rot));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dump__tile:nth-child(4n+1) { --rot: -1.5deg; }
.dump__tile:nth-child(4n+2) { --rot:  1.1deg; }
.dump__tile:nth-child(4n+3) { --rot:  -.5deg; }
.dump__tile:nth-child(4n)   { --rot:  1.8deg; }
.dump__tile img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.dump__tile:hover, .dump__tile:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 0 28px 48px -26px rgba(27, 15, 40, .9);
  position: relative; z-index: 2;
}

/* ---------- lightbox ---------- */
/* full-viewport shell — the box inside it is what gets centred, so the
   absolutely-placed close/prev/next have something to anchor to */
.lb {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: visible;
}
.lb[open] { display: grid; place-content: center; }
.lb__box { position: relative; width: min(1120px, 100vw - 5rem); }
.lb::backdrop { background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(4px); }
.lb[open] { animation: bioIn .3s var(--ease); }
.lb__img {
  width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 40px 90px -40px #000;
}
.lb__count {
  margin: .9rem 0 0; text-align: center;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}
.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--paper); cursor: pointer; line-height: 1;
  transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.lb__close:hover, .lb__nav:hover { background: var(--grape); border-color: var(--grape); }
.lb__close { top: -14px; right: -14px; font-size: 1.5rem; }
.lb__nav { top: 41%; transform: translateY(-50%); font-size: 1.9rem; padding-bottom: 4px; }
.lb__nav:hover { transform: translateY(-50%) scale(1.08); }
.lb__nav--prev { left: -14px; }
.lb__nav--next { right: -14px; }

@media (max-width: 720px) {
  .lb__close { top: -12px; right: 0; }
  .lb__nav--prev { left: 4px; }
  .lb__nav--next { right: 4px; }
}

/* the marquee is decorative motion — swap it for a scrollable row */
@media (prefers-reduced-motion: reduce) {
  .dump__track { animation: none !important; transform: none !important; }
  .dump__row { overflow-x: auto; }
}

/* =========================================================
   HERO PHOTO
   The banana used to sit here as a watermark. A photo of the
   group says the same thing faster, so the watermark now only
   appears on the auditions band and in the footer.
   ========================================================= */
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__photo {
  margin: 0; padding: .7rem .7rem .8rem;
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(27, 15, 40, .8);
  transform: rotate(1.6deg);
  transition: transform .5s var(--ease);
}
.hero__photo:hover { transform: rotate(0deg) scale(1.015); }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }

@media (max-width: 900px) {
  /* photo under the buttons rather than beside them — still above the
     fold on a phone, which is the whole point of putting it here */
  .hero__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__cta { margin-bottom: 0; }
  .hero__photo { transform: rotate(1deg); }
}

/* =========================================================
   MUSIC — one player, a list that swaps it
   ========================================================= */
.discog {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.discog__player .record { max-width: none; }
.discog__h {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--muted);
  margin: 0 0 .5rem;
}
.discog__list ul { list-style: none; margin: 0; padding: 0; }

.release {
  width: 100%; text-align: left;
  display: grid; gap: .15rem;
  padding: .95rem .9rem;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 8px 8px 0 0;
  background: none; cursor: pointer;
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.release:hover { background: color-mix(in srgb, var(--lilac) 18%, transparent); padding-left: 1.35rem; }
.release__t { font-size: 1.02rem; line-height: 1.25; }
.release__m { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* the one currently in the player */
.release.is-on {
  background: color-mix(in srgb, var(--lilac) 26%, transparent);
  box-shadow: inset 3px 0 0 var(--grape-lt);
  padding-left: 1.35rem;
}
.release.is-on .release__t { color: var(--grape); }
.release.is-on .release__m { color: var(--grape-lt); }

@media (max-width: 860px) { .discog { grid-template-columns: 1fr; } }

/* a pull-quote standing on its own, not tucked under a polaroid */
/* sits under the pull quote in the same column; the width/height on the
   <img> reserve the 3:2 box so the quote above it doesn't jump on load */
.about__photo { margin: 1.75rem 0 0; }
/* once the grid collapses to one column the aside is full width, which is
   far too big for a supporting photo — hold it near its two-column size */
@media (max-width: 860px) {
  .about__photo { max-width: 460px; }
}
.about__photo img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  box-shadow: 0 22px 45px -28px rgba(27, 15, 40, .75);
}

.quote--big { padding-left: 1.4rem; border-left-width: 3px; }
.quote--big p { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }

/* =========================================================
   ALUMNI — the roll, a letter per block
   Names come from ALUMNI in script.js. Current members are
   <strong>, Zumbyes who have passed away are <em> + a star.
   ========================================================= */
.alumni__index {
  display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
}
.alumni__index a, .alumni__index span:not(.alumni__count) {
  display: inline-block; min-width: 1.6em; text-align: center;
  padding: .15em 0; border-radius: 2px;
}
.alumni__index a { text-decoration: none; color: var(--grape); font-weight: 500; }
.alumni__index a:hover, .alumni__index a:focus-visible { background: color-mix(in srgb, var(--lilac) 45%, transparent); }
.alumni__index span:not(.alumni__count) { color: color-mix(in srgb, var(--ink) 28%, transparent); }
.alumni__count {
  margin-right: auto; padding-right: 1rem;
  color: var(--muted);
}

.alumni { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); }

.alumni__group {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 clamp(1rem, 3vw, 2.5rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
  /* the sticky nav covers the top of the page; land jumps below it */
  scroll-margin-top: 6rem;
}
.alumni__group:first-child { border-top: 0; padding-top: 0; }
.alumni__letter {
  margin: -.12em 0 0;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  line-height: .9; letter-spacing: -.03em;
  color: var(--grape-lt);
}

/* CSS columns so a long letter (M, S) reads down then across, like a program */
.alumni__names {
  list-style: none; margin: 0; padding: 0;
  column-width: 15rem; column-gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: .98rem; line-height: 1.55;
}
.alumni__names li { break-inside: avoid; padding: .18rem 0; }
.alum__year { color: var(--muted); font-size: .9em; white-space: nowrap; }

.alum--now { font-weight: 600; color: var(--grape); }
.alum--now .alum__year { color: var(--grape-lt); font-weight: 500; }
.alum--late { font-style: italic; color: color-mix(in srgb, var(--ink) 78%, var(--paper)); }
.alum__star { margin-left: .1em; font-style: normal; color: var(--grape-lt); }

@media (max-width: 640px) {
  .alumni__group { grid-template-columns: 1fr; }
  .alumni__letter { margin-bottom: .6rem; }
  .alumni__names { column-width: 11rem; }
}


/* =========================================================
   404 — old links land here (Vercel serves /404.html for any
   unmatched path). Just the pagehead: a line and two buttons.
   ========================================================= */
.pagehead__eyebrow {
  margin: 0 0 1.1rem;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--grape-lt);
}



/* =========================================================
   AROUND THE WORLD — a headed block per bucket
   Buckets come from GALLERIES in script.js.
   ========================================================= */
.galleries { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }

.gallery__head {
  max-width: 58ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.gallery__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .9rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 .6rem;
}
.gallery__when {
  font-family: var(--sans);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--grape-lt);
}
.gallery__blurb { margin: 0; color: color-mix(in srgb, var(--ink) 76%, var(--paper)); }
.gallery__count {
  margin: .7rem 0 0;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* Columns, not grid: these are a mix of portrait and landscape, and a grid
   would have to crop them to a common shape. Columns keep every full frame. */
.gallery__grid {
  column-count: 3;
  column-gap: clamp(.7rem, 1.6vw, 1.1rem);
}
@media (max-width: 900px) { .gallery__grid { column-count: 2; } }
@media (max-width: 520px) { .gallery__grid { column-count: 1; } }

.shot {
  display: block; width: 100%;
  margin: 0 0 clamp(.7rem, 1.6vw, 1.1rem);
  padding: .4rem;
  border: 0; border-radius: 2px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 14px 30px -22px rgba(27, 15, 40, .75);
  /* a column item that splits across a column break loses its frame */
  break-inside: avoid;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.shot img { width: 100%; height: auto; }
.shot:hover, .shot:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -24px rgba(27, 15, 40, .85);
}
