/* ===================================================================
   NOVEMBER GIVE - Homeless Block Party
   Cream paper / navy ink / red tape. Brand tokens live in :root.
   =================================================================== */

:root {
  /* --- palette, straight off the flyer --- */
  --cream:     #f2ece2;
  --paper:     #faf7f0;
  --cream-dk:  #e4dccc;
  --navy:      #16233f;
  --navy-dk:   #0f1830;
  --red:       #c8372d;
  --red-dk:    #9e2820;
  --yellow:    #f6d66a;
  --grey:      #7c7b78;
  --ink:       #15161a;

  /* --- type --- */
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker:  "Permanent Marker", "Comic Sans MS", cursive;

  /* --- shape --- */
  --r-xl:   30px;
  --r-lg:   22px;
  --r-md:   16px;
  --r-pill: 999px;

  --wrap: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(.22,.8,.26,1);
}

/* ------------------------------- base ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  background: var(--cream);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }
::selection { background: var(--red); color: #fff; }

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

/* printed-paper texture over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--red);
  z-index: 95;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.center { text-align: center; }

/* ----------------------- tape / marker marks --------------------- */
/* the torn-tape highlight used behind words on the flyer */
mark.tape {
  position: relative;
  display: inline-block;
  padding: .06em .42em .1em;
  color: #fff;
  background: var(--red);
  border-radius: 3px;
  transform: rotate(-1.2deg);
  box-shadow: 2px 2px 0 rgba(21,22,26,.2);
}
mark.tape--grey { background: var(--grey); }
mark.tape--navy { background: var(--navy); }
mark.tape--yellow { background: var(--yellow); color: var(--ink); }
/* torn top/bottom edges */
mark.tape::before,
mark.tape::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: inherit;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='4' preserveAspectRatio='none'%3E%3Cpath d='M0 4 L4 0 L9 3 L15 0 L21 3 L27 0 L33 3 L39 0 L45 3 L51 0 L57 3 L60 1 L60 4 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='4' preserveAspectRatio='none'%3E%3Cpath d='M0 4 L4 0 L9 3 L15 0 L21 3 L27 0 L33 3 L39 0 L45 3 L51 0 L57 3 L60 1 L60 4 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 60px 4px;
  mask-size: 60px 4px;
}
mark.tape::before { top: -3px; transform: scaleY(-1); }
mark.tape::after  { bottom: -3px; }

/* scattered print marks */
.doodle {
  position: absolute;
  font-family: var(--body);
  color: var(--navy);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  opacity: .9;
}
.doodle--star  { top: 30%; left: 3.5%;  font-size: clamp(22px, 3vw, 42px); }
.doodle--cross { top: 16%; right: 7%;   font-size: clamp(20px, 2.6vw, 36px); color: var(--red); }
.doodle--quote {
  top: 9%; right: 3%;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 118px);
  color: var(--ink);
}

/* ------------------------------ buttons -------------------------- */
.btn {
  /* .btn is used on <a> and on <button>; iOS skins the latter otherwise */
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .92em 1.7em;
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--lg { font-size: .95rem; padding: 1.1em 2.2em; }

/* sticker press: hard offset shadow that collapses on click */
.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 5px 5px 0 var(--navy);
}
.btn--red:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--navy); background: var(--red-dk); }
.btn--red:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--navy); }

.btn--outline {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
}
.btn--outline:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--navy); background: var(--yellow); }
.btn--outline:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--navy); }

/* ------------------------------ header --------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(242,236,226,.93);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--navy), 0 14px 30px -24px rgba(21,22,26,.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand__mark { height: 34px; width: auto; }
.brand__mark--lyv { height: 38px; }
.brand__x {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--red);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a {
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  position: relative;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  height: 3px; width: 0;
  background: var(--red);
  border-radius: 3px;
  transition: width .28s var(--ease);
}
.nav > a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: .62em 1.25em; font-size: .74rem; box-shadow: 3px 3px 0 var(--navy); }
.nav__cta:hover { box-shadow: 5px 5px 0 var(--navy); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: var(--paper);
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--navy);
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 20px; margin-inline: auto;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* -------------------------------- hero --------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
  padding-top: calc(var(--header-h) + 26px);
}

/* z-order inside the hero:
   1 background plate  ·  2 headline  ·  3 cut-out people
   5 subtitle + reminder form                                */
.hero__head { position: relative; text-align: center; }

/* kicker + headline + subtitle: one layer that the people stand in front of */
.hero__type {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  line-height: .82;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__title .line { display: block; overflow: hidden; padding-block: .03em; }
.hero__title .line__in {
  display: block;
  transform: translateY(104%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity .7s ease;
  transition-delay: var(--d, 0ms);
  /* width decides the size, but a short window overrules it: 21svh a line
     keeps two lines of the headline inside the clear band above the photo
     on a wide, shallow laptop screen. */
  font-size: min(clamp(3.6rem, 15vw, 11.5rem), 21svh);
  letter-spacing: -.02em;
}
.is-ready .hero__title .line__in { transform: translateY(0); opacity: 1; }

.hero__sub {
  position: relative;
  z-index: 5;
  margin: 8px 0 0;
}
.hero__sub span {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.4vw, 2.3rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: .1em .5em .16em;
  border-radius: var(--r-md);
  transform: rotate(-.8deg);
  box-shadow: 4px 4px 0 var(--red);
}

/* ---------------------- reminder sign-up ------------------------ */
/* Sits in FRONT of the cut-out people, so it needs to read over the
   photo: dark halo on the label, solid surfaces on the controls. */
.remind {
  position: relative;
  z-index: 5;
  margin: 28px auto 0;
  max-width: 540px;
}
/* dark ink on the pale part of the photo; the halo is cream and kept
   tight so it lifts the text off busier patches without washing them out */
.remind__label {
  display: block;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(.72rem, 1.55vw, .95rem);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow:
    0 0 4px  rgba(242,236,226,1),
    0 0 8px  rgba(242,236,226,1),
    0 0 14px rgba(242,236,226,.95),
    0 0 22px rgba(242,236,226,.75);
}
.remind__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.remind__input {
  flex: 1 1 auto;
  min-width: 0;
  /* iOS skins text inputs with its own rounded, inset look and ignores
     most of what is set below unless the default appearance is turned off */
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--body);
  font-size: 16px;            /* below 16px, iOS zooms the page on focus */
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  background-clip: padding-box;
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: .85em 1.25em;
  box-shadow: 4px 4px 0 var(--navy);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.remind__input::placeholder { color: #8a8a8a; font-weight: 500; }
.remind__input:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--red), 0 0 0 3px rgba(200,55,45,.35);
}
.remind__input:disabled { opacity: .6; }
/* squared off to match the input it sits beside */
.remind__btn { flex: none; border-radius: 14px; }
.remind__btn[disabled] { opacity: .65; pointer-events: none; }

/* matches the label so the two never clash in the same spot */
.remind__msg {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  text-shadow:
    0 0 4px  rgba(242,236,226,1),
    0 0 8px  rgba(242,236,226,1),
    0 0 14px rgba(242,236,226,.95),
    0 0 22px rgba(242,236,226,.75);
}
.remind__msg.is-error { color: var(--red-dk); }
.remind.is-done .remind__row { display: none; }
.remind.is-done .remind__msg { font-size: 1.05rem; }

/* ---------------------- layered hero photo ----------------------- */
/* The photo is pinned by its TOP edge, 20% down the hero, and is given the
   height the 16:9 photo needs to span the full width. That is what keeps the
   headline readable: on a wide screen the photo has to scale up to reach both
   edges, and growing downward out of the hero means the extra size spills past
   the marquee instead of lifting everyone's heads into the type. Anchoring the
   bottom instead - the obvious way - does the opposite, and on anything wider
   than about 1600px it buries the headline. */
.stage {
  --stage-top: 20%;                 /* where the photo starts down the hero */
  position: absolute;
  inset: var(--stage-top) 0 auto 0;
  /* at least down to the bottom of the hero, and never shorter than the
     height a 16:9 photo needs to span the window */
  height: max(calc(100% - var(--stage-top)), 100vw / 1.78);
  pointer-events: none;
}
.stage__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: transform;
}
.stage__layer--bg {
  z-index: 1;
  background-image: url("images/hero-bg.jpg");
  /* the overcast sky dissolves into the cream page */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.22) 16%, rgba(0,0,0,.7) 32%, #000 46%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.22) 16%, rgba(0,0,0,.7) 32%, #000 46%);
}
.stage__layer--cut {
  z-index: 3;
  background-image: url("images/hero-cutout.png");
  background-image: image-set(
    url("images/hero-cutout.webp") type("image/webp"),
    url("images/hero-cutout.png")  type("image/png"));
  filter: drop-shadow(0 18px 26px rgba(21,22,26,.28));
}

/* ------------------------------ marquee -------------------------- */
.marquee {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  z-index: 3;
  border-block: 3px solid var(--ink);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: marquee 38s linear infinite;
}
.marquee__track i { font-style: normal; color: var(--red); font-size: .8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------ sections ------------------------- */
.section {
  padding-block: clamp(66px, 9vw, 120px);
  position: relative;
  background: var(--cream);
}
/* faint halftone speckle so the cream never looks like flat CSS */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(21,22,26,.055) 0 1.2px, transparent 1.2px),
    radial-gradient(circle at 72% 62%, rgba(21,22,26,.045) 0 1.2px, transparent 1.2px),
    radial-gradient(circle at 42% 88%, rgba(21,22,26,.04)  0 1.2px, transparent 1.2px);
  background-size: 160px 160px, 230px 230px, 290px 290px;
}
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy::before { opacity: .22; }

.eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 3px;
  background: var(--red);
  border-radius: 3px;
}
.eyebrow--light { color: var(--yellow); }
.eyebrow--light::before { background: var(--yellow); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 20ch;
  position: relative;
}
.h2--light { color: var(--cream); }
.h2 em { font-style: normal; color: var(--red); }
.h2 sup { font-size: .45em; top: -.58em; position: relative; }

/* ------------------------------- about --------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  position: relative;
}
.about-head .h2 { margin-bottom: 0; max-width: 16ch; }
.about-copy p { color: #45484f; }
.about-copy p:first-child { margin-top: 0; }

/* ------------------------ the year archive ----------------------- */
/* Every past Give is a navy band. The wrapper is black so the hairline
   rounding gap between two bands never flashes the cream page behind. */
.archive { background: #000; }
.year + .year { border-top: 0; }
.year__date   { max-width: none; margin-bottom: clamp(26px, 3.4vw, 40px); }

/* That year's first photo, drained of colour and turned right down, as a
   backdrop for its own band. The file comes from the --year-bg inline
   style on the <section>; fading it out at the bottom stops a hard seam
   where one year meets the next. */
.year::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--year-bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.1);
  opacity: .14;
  /* clear of both ends, so the black gradients below it stay black */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 44%, transparent 86%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 17%, #000 44%, transparent 86%);
}
/* the band's own content has to sit on top of that wash */
.year > .wrap { position: relative; z-index: 1; }

/* Each band sinks to black below the names, so the eye is already in the
   dark before the next one - or the footer - begins. The navy stays the
   band's real colour; these are gradients laid over it. */
.year {
  background-image: var(--year-fade-top, none), var(--year-fade-bottom);
  --year-fade-bottom: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    36%,
    rgba(0,0,0,.20)  58%,
    rgba(0,0,0,.58)  80%,
    rgba(0,0,0,.90)  93%,
    #000             100%);
}
/* A band that follows another one comes UP out of that black instead of
   snapping back to navy, so the two read as one long dusk. */
.year + .year {
  --year-fade-top: linear-gradient(
    to bottom,
    #000             0%,
    rgba(0,0,0,.78)  4%,
    rgba(0,0,0,.34)  11%,
    rgba(0,0,0,0)    22%);
}

/* ----- photo slides: native scroll-snap, arrows only nudge it ----- */
.slides { position: relative; }

.slides__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 4px 16px;      /* room for the offset shadows */
  scrollbar-width: none;        /* the arrows are the control */
  -webkit-overflow-scrolling: touch;
}
.slides__track::-webkit-scrollbar { display: none; }

.slide {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  background: #1e2a44;
  cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.slide:hover { transform: translateY(-4px); box-shadow: 9px 9px 0 #000; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* ----- a year with a lot of photos: two rows instead of one -----
   The strip becomes a two-row grid that fills column by column, so it
   still scrolls sideways as ONE track - the arrows, swiping and the
   lightbox all carry on working, there is just twice as much in view.
   script.js adds this class to any strip holding 10 or more photos. */
.slides.is-two-rows .slides__track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(186px, 21vw, 268px);
  row-gap: 16px;
}
.slides.is-two-rows .slide { width: auto; }

/* The two rows glide past each other as the band travels up the screen.
   --drift-a / --drift-b are set by script.js; `translate` is its own
   property, so the hover lift on `transform` is untouched by it. */
.slides.is-two-rows .slide:nth-child(odd)  { translate: var(--drift-a, 0px); }
.slides.is-two-rows .slide:nth-child(even) { translate: var(--drift-b, 0px); }

/* the slide strip is padded at the bottom, so its optical middle sits
   6px above the geometric one - hence -30px rather than -24px */
.slides__nav {
  position: absolute;
  top: 50%;
  margin-top: -30px;
  z-index: 3;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  padding-bottom: 5px;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: var(--r-pill);
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s ease;
}
.slides__nav:hover:not(:disabled) { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.slides__nav:disabled { opacity: .28; cursor: default; }
.slides__nav--prev { left: -14px; }
.slides__nav--next { right: -14px; }
/* fewer photos than fit on screen: nothing to page through */
.slides.is-static .slides__nav { display: none; }

/* --------------------------- supporters -------------------------- */
.supporters { margin-top: clamp(34px, 4.5vw, 56px); }
.sup-block + .sup-block { margin-top: clamp(28px, 3.6vw, 44px); }
/* script.js hides a block whose list has no entries yet */
.sup-block[hidden], .supporters[hidden] { display: none; }

.sup-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sup-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(242,236,226,.18);
}

/* No tiles: the logos sit straight on the navy, all one colour. */
.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(26px, 3.6vw, 48px);
}
.logos li { flex: 0 0 auto; display: flex; align-items: center; }
/* brightness(0) crushes every pixel to black and leaves the alpha
   channel alone; invert(1) flips that to white. So any logo file comes
   out white whatever colour it arrived in, and the original stays
   untouched on disk. The file does need a transparent background -
   a white box behind the artwork would survive as a white box. */
.logos img {
  height: 54px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Individuals: not buttons - a wall of names packed tight, the way a
   credits roll or the back of a tour shirt sets them. The condensed
   display face is what lets a long list stay big and still fit. */
/* Hovering a logo names the organization. The text is lifted straight
   from that image's alt by script.js, so pasting in a new <li> is all
   anyone has to do - there is no second place to keep the name.
   Pointer devices only: on a touch screen there is no hover, and a
   tooltip that latches on after a tap is worse than none. */
@media (hover: hover) and (pointer: fine) {
  .logos li[data-tip] { position: relative; }
  .logos li[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 13px);
    left: 50%;
    z-index: 4;
    width: max-content;
    max-width: 180px;
    padding: .5em .75em .55em;
    font-family: var(--body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.25;
    text-transform: uppercase;
    text-align: center;
    color: var(--navy);
    background: var(--cream);
    border: 2px solid var(--navy);
    border-radius: 10px;
    box-shadow: 3px 3px 0 var(--navy);
    opacity: 0;
    translate: -50% 5px;
    transition: opacity .16s ease, translate .16s var(--ease);
    pointer-events: none;
  }
  /* the little nose, pointing down at the logo */
  .logos li[data-tip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    z-index: 5;
    width: 10px;
    height: 10px;
    background: var(--cream);
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    opacity: 0;
    translate: -50% 5px;
    rotate: 45deg;
    transition: opacity .16s ease, translate .16s var(--ease);
    pointer-events: none;
  }
  .logos li[data-tip]:hover::after,
  .logos li[data-tip]:hover::before { opacity: 1; translate: -50% 0; }
}

.names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .42em;
  row-gap: .06em;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.7vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: .005em;
  color: var(--cream);
}
.names li { display: flex; align-items: baseline; column-gap: .42em; }
/* a red dot keeps two names apart without putting a box around either */
.names li::after {
  content: "";
  width: .16em;
  height: .16em;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-.28em);
}
.names li:last-child::after { display: none; }

/* placeholder for photos not added yet */
.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  color: rgba(242,236,226,.6);
  background: repeating-linear-gradient(135deg, rgba(242,236,226,.1) 0 12px, rgba(242,236,226,.03) 12px 24px);
}

/* ------------------------------- footer -------------------------- */
.footer {
  background: var(--navy-dk);
  color: rgba(242,236,226,.75);
  position: relative;
  z-index: 3;
}
.footer__motto {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 20px 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(.85rem, 2.2vw, 1.15rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
}
.footer__motto i { font-style: normal; color: var(--yellow); font-size: .8em; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-block: 54px;
}
.brand--footer { margin-bottom: 20px; }
.brand--footer .brand__mark { height: 34px; }
.brand--footer .brand__mark--lyv { height: 40px; }
.brand--footer .brand__x { color: var(--yellow); }
.footer__blurb { max-width: 40ch; font-size: .95rem; margin: 0; }

.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 6px;
}
.footer__col a {
  text-decoration: none;
  font-size: .95rem;
  width: fit-content;
  transition: color .2s ease, transform .2s var(--ease);
}
.footer__col a:hover { color: #fff; transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid rgba(242,236,226,.16);
  padding-block: 22px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  opacity: .7;
}
.footer-bottom p { margin: 0; }
.footer-bottom__verse { font-family: var(--marker); font-size: .95rem; color: var(--yellow); opacity: .95; }

/* ----------------------------- lightbox -------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,24,48,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
  animation: lbIn .25s var(--ease);
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  border: 3px solid var(--cream);
  box-shadow: 10px 10px 0 var(--red);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: var(--cream);
  color: var(--navy);
  border: 2px solid var(--navy);
  cursor: pointer;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--yellow); transform: scale(1.08); }
.lightbox__close { top: 20px; right: 22px; width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; }
.lightbox__nav   { top: 50%; width: 54px; height: 54px; font-size: 2rem; line-height: 1; margin-top: -27px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ====================== scroll animations ======================== */
.fx {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
.fx[data-fx="up"]    { transform: translateY(40px); }
.fx[data-fx="scale"] { transform: translateY(28px) scale(.95); }
.fx.is-in { opacity: 1; transform: none; }

/* ----------------------------- responsive ------------------------ */
@media (max-width: 880px) {
  .about-grid   { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .about-head .h2 { max-width: none; margin-bottom: 4px; }
  .h2 { max-width: none; }
  .stage { --stage-top: 48%; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 6px) 14px auto 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    border-radius: var(--r-xl);
    border: 2px solid var(--navy);
    background: var(--paper);
    box-shadow: 7px 7px 0 var(--navy);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--ease), opacity .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a {
    padding: 14px 4px;
    border-bottom: 2px solid rgba(22,35,63,.12);
    font-size: 1rem;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta {
    margin-top: 16px;
    border-bottom: 0;
    justify-content: center;
    padding: .95em 1.2em;
    font-size: .82rem;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --r-xl: 24px; --r-lg: 18px; }
  /* the hero has a lot to fit on a phone: trim every gap, keep the
     photo band tall enough to actually read */
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .stage { --stage-top: 48%; }
  .hero__sub span { border-radius: 14px; }
  .remind { margin-top: 20px; }
  .remind__label { margin-bottom: 10px; }
  .remind__row { flex-direction: column; gap: 10px; }
  .remind__input { box-shadow: 3px 3px 0 var(--navy); text-align: center; }
  .remind__btn { width: 100%; padding: .9em 1.2em; font-size: .82rem; }
  .slides__track { gap: 12px; }
  .slide { width: 76vw; border-width: 2px; border-radius: 10px; box-shadow: 4px 4px 0 #000; }
  .slides.is-two-rows .slides__track { grid-auto-columns: 58vw; row-gap: 12px; }
  .slides__nav { width: 42px; height: 42px; margin-top: -27px; font-size: 1.6rem; }
  .slides__nav--prev { left: -6px; }
  .slides__nav--next { right: -6px; }
  .logos { gap: 26px; }
  .logos img { height: 42px; max-width: 150px; }
  .names { font-size: 1.35rem; column-gap: .36em; }
  /* these would crowd the reminder form at phone width */
  .doodle--quote,
  .doodle--star { display: none; }
  .lightbox { padding: 14px; }
  .lightbox__nav { width: 44px; height: 44px; margin-top: -22px; }
  .footer-bottom { flex-direction: column; }
}

/* ----------------------- reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .fx { opacity: 1; transform: none; transition: none; }
  .hero__title .line__in { transform: none; opacity: 1; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
