/* ==========================================================================
   GIVING DAY  —  campaign page styles

   Loaded only by giving-day.html. It sits on top of styles.css and uses that
   file's Ink Night tokens (--night, --paper, --seal, --gold, the brush and
   deckle masks), so the page belongs to the site without the site's
   stylesheet having to know this page exists. Delete this file and
   giving-day.html together and nothing else changes.

   The layout is deliberately not the inner-page template the other five
   pages share: the ask and the film sit side by side at full height, because
   on this one day the film is the point.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Paper surfaces

   styles.css flips its colour tokens on the surfaces it knows about (.card,
   .event-card, .section--gray and so on) so their contents read as ink on
   paper instead of moonlight on black. This page introduces its own paper
   surfaces, which that list has never heard of, so they have to opt in here
   or their headings and links come out light-on-light.
   -------------------------------------------------------------------------- */

.gd-challenge,
.gd-tier,
.gd-help__card,
.gd-unit {
  --fg: var(--ink-2);
  --fg-strong: var(--ink);
  --fg-soft: var(--ink-soft);
  --line: rgba(27, 26, 23, 0.16);
  --accent: var(--seal);
  --accent-hover: var(--seal-dark);
  --eyebrow: var(--seal);
  --rule: var(--ink);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   1. The ask: a two-column opening that stacks film-first on phones
   -------------------------------------------------------------------------- */

.gd-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 11vh, 7rem) 0 clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

/* The photo behind it all, run down into the black through the same ragged
   ink edge the other pages' banners use. */
.gd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--night-2);
  /* The whole club on stage, which is the argument the page is making. The
     left-hand wash is heavy because the headline sits on top of a brightly
     lit backdrop and has to stay readable without a text shadow doing all
     the work. */
  background-image:
    linear-gradient(180deg, rgba(16, 15, 13, 0.78) 0%, rgba(16, 15, 13, 0.28) 34%, rgba(16, 15, 13, 0.8) 100%),
    linear-gradient(90deg, rgba(16, 15, 13, 0.95) 0%, rgba(16, 15, 13, 0.88) 26%, rgba(16, 15, 13, 0.52) 56%, rgba(16, 15, 13, 0.22) 100%),
    url("images/ds-2026/web/pxl_20260426_020528139.jpg");
  background-position: center, center, 56% 62%;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask: var(--banner-mask) center top / max(100%, 1100px) 100% no-repeat;
  mask: var(--banner-mask) center top / max(100%, 1100px) 100% no-repeat;
}

/* 「义举」 — a benevolent act. The page's name brushed down the margin, same
   gesture as the other pages, pushed behind the content. */
.gd-hero::after {
  content: "义举";
  position: absolute;
  right: max(1.25rem, calc(50% - 640px));
  bottom: -0.1em;
  z-index: -1;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-brush);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 1;
  color: var(--paper);
  opacity: 0.1;
  pointer-events: none;
}

.gd-hero__grid {
  display: grid;
  /* The film carries the pitch, so it gets the wider half. */
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.gd-hero__ask { max-width: 36rem; }

/* The date line, with a pressed vermilion seal in front of it. */
.gd-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gd-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--seal);
  -webkit-mask: var(--rough-seal) center / 100% 100% no-repeat;
  mask: var(--rough-seal) center / 100% 100% no-repeat;
  font-family: var(--font-brush);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--paper);
  text-indent: 0.02em;
}

.gd-hero h1 {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  color: var(--moon);
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.04;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}

.gd-lede {
  margin: 0 0 1.9rem;
  max-width: 46ch;
  color: var(--moon-2);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.62;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   2. The countdown: three paper chits
   -------------------------------------------------------------------------- */

.gd-countdown { margin: 0 0 2rem; }

.gd-countdown__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moon-soft);
}

.gd-countdown__clock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Hidden until the script fills the numbers in, so nobody ever sees "--". */
.gd-countdown__clock:not(.is-running) { display: none; }

.gd-unit {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 4.6rem;
  padding: 0.6rem 0.7rem 0.5rem;
  background: var(--paper);
  background-image: var(--mottle);
  -webkit-mask: var(--deckle) center / 100% 100% no-repeat;
  mask: var(--deckle) center / 100% 100% no-repeat;
}

.gd-unit b {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.gd-unit i {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* The plain-text date, shown only when the clock cannot run (no JS). */
.gd-countdown__fallback {
  margin: 0;
  color: var(--moon-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}
.gd-countdown__clock.is-running ~ .gd-countdown__fallback { display: none; }

/* While the day is actually open. */
.gd-countdown.is-live .gd-countdown__label { color: var(--seal-light); }
.gd-countdown.is-live .gd-unit { background: var(--seal); }
.gd-countdown.is-live .gd-unit b { color: var(--paper); }
.gd-countdown.is-live .gd-unit i { color: rgba(243, 236, 223, 0.75); }

/* --------------------------------------------------------------------------
   3. Donate buttons
   -------------------------------------------------------------------------- */

.gd-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.3rem;
  margin: 0;
}

.gd-btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border: 0;
  background: var(--seal);
  background-image: var(--grain);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}
.gd-btn:hover,
.gd-btn:focus-visible {
  background-color: var(--seal-dark);
  color: var(--paper);
  transform: translateY(-2px);
}

/* The closing band is already the seal red, so a seal-red button on it was
   invisible: same colour, contrast 1.00, nothing but floating letters. On
   that band the button turns over and prints the other way round. */
.gd-cta-band .gd-btn {
  background: var(--paper);
  color: var(--seal);
}

.gd-cta-band .gd-btn:hover,
.gd-cta-band .gd-btn:focus-visible {
  background-color: var(--paper-2);
  color: var(--seal-dark);
}

/* Every other button on the site answers a press; these did not. The hover
   state lifts the button two pixels, so the press has to put it back down
   and take it a little past, or the click lands on nothing. */
.gd-btn:active,
.gd-tier__btn:active {
  transform: translateY(1px) scale(0.97);
}

/* The state this page ships in: no donation URL yet, so there is nothing to
   click. Rendered as a chit rather than a button so it never looks broken. */
.gd-btn--pending {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: none;
  border: 1px dashed var(--gold-hair);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moon-soft);
  cursor: default;
}

.gd-cta-note {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--moon-soft);
}

/* --------------------------------------------------------------------------
   4. The film: a hanging scroll
   -------------------------------------------------------------------------- */

.gd-film {
  position: relative;
  padding: 0.75rem;
  background: var(--paper-2);
  background-image: var(--mottle);
  -webkit-mask: var(--deckle) center / 100% 100% no-repeat;
  mask: var(--deckle) center / 100% 100% no-repeat;
  box-shadow: var(--shadow-lift);
}

/* The two gold rollers top and bottom that make it read as a scroll. */
.gd-film::before,
.gd-film::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}
.gd-film::before { top: 0.3rem; }
.gd-film::after { bottom: 0.3rem; }

.gd-film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night);
}

.gd-film__poster,
.gd-film__video,
.gd-film__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.gd-film__poster { filter: sepia(0.14) saturate(0.9) brightness(0.82); }

/* The self-hosted player. Native controls, so there is nothing to style but
   the box. object-fit applies to the poster image as well as the film, and
   the film is already 16:9 in a 16:9 frame, so cover crops nothing off it
   while saving the poster photo from being letterboxed. Swap to contain if a
   future cut is not 16:9. */
.gd-film__video {
  object-fit: cover;
  background: var(--night);
}

/* Sits outside the paper mount, on the hero's dark ground. */
.gd-film__caption {
  margin: 0.9rem 0 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moon-soft);
}

/* The play button. A seal, pressed in the middle of the picture. */
.gd-film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gd-film__play-mark {
  display: grid;
  place-items: center;
  width: clamp(4.2rem, 8vw, 5.4rem);
  aspect-ratio: 1;
  background: var(--seal);
  -webkit-mask: var(--rough-seal) center / 100% 100% no-repeat;
  mask: var(--rough-seal) center / 100% 100% no-repeat;
  transition: transform var(--transition), background-color var(--transition);
}

/* The triangle, drawn in paper on the seal. */
.gd-film__play-mark::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.35em;
  border-style: solid;
  border-width: 0.72em 0 0.72em 1.15em;
  border-color: transparent transparent transparent var(--paper);
}

.gd-film__play:hover .gd-film__play-mark,
.gd-film__play:focus-visible .gd-film__play-mark {
  background-color: var(--seal-dark);
  transform: scale(1.06);
}

.gd-film__play-label {
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* The placeholder shown while there is no video yet. */
.gd-film--pending .gd-film__poster { filter: sepia(0.2) saturate(0.6) brightness(0.45); }

.gd-film__pending-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

.gd-film__pending-mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  aspect-ratio: 1;
  border: 1px dashed var(--gold-hair);
  font-family: var(--font-brush);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
}

.gd-film__pending-note p {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--moon-2);
}

/* The donate line under the film. */
.gd-film-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
  margin: 1.2rem 0 0;
}

.gd-film-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--moon-soft);
}

/* --------------------------------------------------------------------------
   5. The bar: one ink stroke, filling
   -------------------------------------------------------------------------- */

.gd-bar-band {
  padding: clamp(2rem, 5vh, 3.2rem) 0;
  background: var(--night-2);
  background-image: var(--grain-dark);
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

.gd-bar__track {
  position: relative;
  height: 1.5rem;
  background: rgba(243, 236, 223, 0.09);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
}

.gd-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--gd-pct, 0%);
  background: var(--seal);
  background-image: var(--grain);
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* The headline above the stroke is the donor count, because that is what the
   challenge is scored on. Dollars go underneath, smaller. */
.gd-bar__heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--moon-2);
  text-align: center;
}
.gd-bar__heading b {
  font-weight: 600;
  font-size: 1.5em;
  line-height: 1;
  color: var(--moon);
  font-variant-numeric: tabular-nums;
}
.gd-bar__heading span { color: var(--gold); }

.gd-bar__read {
  margin: 0.8rem 0 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moon-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   5b. The challenge: one paragraph on a torn sheet, set apart because it is
       the argument the whole page rests on
   -------------------------------------------------------------------------- */

.gd-challenge-section { padding-top: clamp(2.5rem, 6vh, 4rem); }

.gd-challenge {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.9rem, 4vw, 3rem);
  background: var(--paper-card);
  background-image: var(--mottle);
  -webkit-mask: var(--deckle) center / 100% 100% no-repeat;
  mask: var(--deckle) center / 100% 100% no-repeat;
  text-align: center;
}

.gd-challenge__kicker {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
}

.gd-challenge__body {
  margin: 0 0 1.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.68;
  color: var(--ink-2);
}
.gd-challenge__body b {
  font-family: var(--font-display);
  font-size: 1.2em;
  font-weight: 600;
  color: var(--seal);
}

/* The one line we want people to remember, brushed under a hairline. */
.gd-challenge__punch {
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(27, 26, 23, 0.14);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.gd-challenge__fine {
  margin: 1.3rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   6. Tiers: four paper slips
   -------------------------------------------------------------------------- */

.gd-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gd-tier {
  position: relative;
  /* The weapon drawing behind the card is scaled past its edges, and on
     phones the deckle mask that would have clipped it is switched off. */
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.7rem;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--paper-card);
  background-image: var(--mottle);
  -webkit-mask: var(--deckle) center / 100% 100% no-repeat;
  mask: var(--deckle) center / 100% 100% no-repeat;
  text-align: center;
}

/* The $10 slip, the one the challenge rewards: brighter paper with a
   vermilion ribbon across the top, so the eye lands on it first.

   No red border. It used to carry `box-shadow: inset 0 0 0 2px var(--seal)`,
   and an inset shadow is drawn against the element's rectangle — which this
   card is not. The deckle mask then cut it into a broken red hairline that
   appeared and vanished down both edges wherever the torn edge wobbled
   (measured: a 1px red column surviving 98 rows at the left edge), and on
   phones, where the mask is switched off, it stacked with the border below
   into a thick red frame no other card had. The ribbon is the flag. */
.gd-tier--flagged {
  background: var(--paper);
  padding-top: 2.6rem;
}

.gd-tier__flag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.45rem 0.6rem;
  background: var(--seal);
  background-image: var(--grain);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper);
}

/* The weapon behind the card. It is a watermark, not an illustration: it
   sits under the text at around a tenth of full strength, centred, with the
   card's own deckle mask trimming anything that reaches the edge. Absolute,
   so it takes no row in the card's grid. */
/* No blanket rotation or scale here: three of the four are already drawn on
   a diagonal, and the fan is symmetric, so a few degrees on it reads as
   crooked rather than as styled. Each drawing also carries its own opacity,
   set in scripts/giving_day.py, because a solid fan and a thin chain cover
   very different amounts of the card. */
.gd-tier__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  color: var(--ink);
  pointer-events: none;
}

/* Positioned elements paint over static ones, so the card's own content has
   to be positioned too or the drawing would sit on top of the words.

   The ribbon has to be excluded by name. It sets its own `position:
   absolute`, and this selector is a class more specific than the one that
   does, so without the second :not() it quietly won — which turned the
   ribbon back into an ordinary row: inset by the card's padding instead of
   spanning it, and pushing everything below it down by its own height. */
.gd-tier > :not(.gd-tier__art):not(.gd-tier__flag) {
  position: relative;
  z-index: 1;
}

/* ---- the photograph version of a card -----------------------------------

   A drawing behind the text was always a compromise: anything dark enough
   to see competes with the words sitting on it, and anything faint enough
   to sit under them is a smudge. A photograph solves it by not being
   behind anything. It takes the top of the card, bleeds through the
   padding to the torn edge, and the words keep clean paper underneath.

   The files are duotoned into the page's own two colours before they are
   saved — shadows on --ink, highlights on --paper — so a photograph reads
   as part of the paper rather than as a picture stuck onto it. */
.gd-tier--shot {
  grid-template-rows: auto auto 1fr auto;
  padding-top: 0;
}

.gd-tier__shot {
  position: relative;
  margin: 0 -1.4rem 0.2rem;
  /* Matches the ratio the files are cropped to. If these two ever drift
     apart, object-fit: cover silently crops the difference off the
     middle of the picture — which is where the person is. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}

.gd-tier__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The same crop in colour, brought up under the cursor. The two files are
   cut from one set of numbers by scripts/giving_day_tier_colour.py, so the
   picture does not move as it changes -- only its colour does. On the $50
   the swap does the work a drawn line was doing: in colour the two halves
   are plainly two people, because they are wearing different outfits. */
.gd-tier__colour {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.gd-tier:hover .gd-tier__colour,
.gd-tier:focus-within .gd-tier__colour {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gd-tier__colour { transition: none; }
}

/* A spotlight on the performer, torn rather than drawn.

   Three of these four pictures were taken in a room with other people in it
   — a line of members mid-form, a raised fist, a window full of trees — and
   at card size the eye had to work out who the picture was of. This lays a
   sheet of the card's own paper over the photograph with a soft hole punched
   where the performer is, so the background recedes and the picture reads as
   a scrap of print lying on the card.

   The hole is punched through a mask rather than painted as a second
   gradient, for one specific reason: masks union, gradients stack. The $50
   card carries two performers and needs two holes, and two stacked radial
   gradients would have doubled the wash everywhere they overlap — tried, and
   it nearly erased all four photographs. Black painted twice into a mask is
   still black.

   The whole sheet is then pushed around by feTurbulence, the same filter the
   page already uses for its deckled card edges and its paper mottle, so the
   wash wanders instead of drawing a clean ellipse. It is a gradient over the
   photograph, never a change to the file: the files stay honest photographs.

   The lobes are placed where the performers are. Move a crop and the lobe
   has to move with it. */
.gd-tier__shot {
  --gd-wash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'><defs><radialGradient id='h0' gradientUnits='userSpaceOnUse' cx='200' cy='150' r='240' gradientTransform='translate(0 150) scale(1 1.25) translate(0 -120)'><stop offset='0%' stop-color='%23000' stop-opacity='1'/><stop offset='44%' stop-color='%23000' stop-opacity='1'/><stop offset='74%' stop-color='%23000' stop-opacity='0.52'/><stop offset='100%' stop-color='%23000' stop-opacity='0.07'/></radialGradient><mask id='m'><rect width='100%' height='100%' fill='%23fff'/><rect width='100%' height='100%' fill='url(%23h0)'/></mask><filter id='f' x='-35%' y='-35%' width='170%' height='170%'><feTurbulence type='fractalNoise' baseFrequency='0.007' numOctaves='3' seed='5' result='n'/><feDisplacementMap in='SourceGraphic' in2='n' scale='70' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='0.7'/></filter><linearGradient id='ex' x1='0' y1='0' x2='1' y2='0'><stop offset='0%' stop-color='%23F4EEE2' stop-opacity='0.95'/><stop offset='8.5%' stop-color='%23F4EEE2' stop-opacity='0'/><stop offset='91.5%' stop-color='%23F4EEE2' stop-opacity='0'/><stop offset='100%' stop-color='%23F4EEE2' stop-opacity='0.95'/></linearGradient><linearGradient id='ey' x1='0' y1='0' x2='0' y2='1'><stop offset='0%' stop-color='%23F4EEE2' stop-opacity='0.5'/><stop offset='5.5%' stop-color='%23F4EEE2' stop-opacity='0'/></linearGradient></defs><g filter='url(%23f)'><rect x='-140' y='-175' width='680' height='850' fill='%23F4EEE2' fill-opacity='0.88' mask='url(%23m)'/></g><rect width='100%' height='100%' fill='url(%23ex)'/><rect width='100%' height='100%' fill='url(%23ey)'/></svg>");
}

/* The flagged card sits on --paper rather than --paper-card, so its wash is
   mixed to match. Five units of difference, but it is the difference between
   a photograph lying on the card and one floating just above it. */
.gd-tier--flagged .gd-tier__shot {
  --gd-wash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'><defs><radialGradient id='h0' gradientUnits='userSpaceOnUse' cx='200' cy='150' r='240' gradientTransform='translate(0 150) scale(1 1.25) translate(0 -120)'><stop offset='0%' stop-color='%23000' stop-opacity='1'/><stop offset='44%' stop-color='%23000' stop-opacity='1'/><stop offset='74%' stop-color='%23000' stop-opacity='0.52'/><stop offset='100%' stop-color='%23000' stop-opacity='0.07'/></radialGradient><mask id='m'><rect width='100%' height='100%' fill='%23fff'/><rect width='100%' height='100%' fill='url(%23h0)'/></mask><filter id='f' x='-35%' y='-35%' width='170%' height='170%'><feTurbulence type='fractalNoise' baseFrequency='0.007' numOctaves='3' seed='5' result='n'/><feDisplacementMap in='SourceGraphic' in2='n' scale='70' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='0.7'/></filter><linearGradient id='ex' x1='0' y1='0' x2='1' y2='0'><stop offset='0%' stop-color='%23EFE7D8' stop-opacity='0.95'/><stop offset='8.5%' stop-color='%23EFE7D8' stop-opacity='0'/><stop offset='91.5%' stop-color='%23EFE7D8' stop-opacity='0'/><stop offset='100%' stop-color='%23EFE7D8' stop-opacity='0.95'/></linearGradient><linearGradient id='ey' x1='0' y1='0' x2='0' y2='1'><stop offset='0%' stop-color='%23EFE7D8' stop-opacity='0.5'/><stop offset='5.5%' stop-color='%23EFE7D8' stop-opacity='0'/></linearGradient></defs><g filter='url(%23f)'><rect x='-140' y='-175' width='680' height='850' fill='%23EFE7D8' fill-opacity='0.88' mask='url(%23m)'/></g><rect width='100%' height='100%' fill='url(%23ex)'/><rect width='100%' height='100%' fill='url(%23ey)'/></svg>");
}

/* Two performers, two holes. A card that is both flagged and paired would
   take this paper colour rather than the flagged one; no card is both, and
   the two papers differ by five units anyway. */
.gd-tier--pair .gd-tier__shot {
  --gd-wash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' preserveAspectRatio='none'><defs><radialGradient id='h0' gradientUnits='userSpaceOnUse' cx='104' cy='125' r='160' gradientTransform='translate(0 125) scale(1 1.45) translate(0 -86.2069)'><stop offset='0%' stop-color='%23000' stop-opacity='1'/><stop offset='44%' stop-color='%23000' stop-opacity='1'/><stop offset='74%' stop-color='%23000' stop-opacity='0.52'/><stop offset='100%' stop-color='%23000' stop-opacity='0.07'/></radialGradient><radialGradient id='h1' gradientUnits='userSpaceOnUse' cx='296' cy='125' r='160' gradientTransform='translate(0 125) scale(1 1.45) translate(0 -86.2069)'><stop offset='0%' stop-color='%23000' stop-opacity='1'/><stop offset='44%' stop-color='%23000' stop-opacity='1'/><stop offset='74%' stop-color='%23000' stop-opacity='0.52'/><stop offset='100%' stop-color='%23000' stop-opacity='0.07'/></radialGradient><mask id='m'><rect width='100%' height='100%' fill='%23fff'/><rect width='100%' height='100%' fill='url(%23h0)'/><rect width='100%' height='100%' fill='url(%23h1)'/></mask><filter id='f' x='-35%' y='-35%' width='170%' height='170%'><feTurbulence type='fractalNoise' baseFrequency='0.007' numOctaves='3' seed='5' result='n'/><feDisplacementMap in='SourceGraphic' in2='n' scale='70' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='0.7'/></filter><linearGradient id='ex' x1='0' y1='0' x2='1' y2='0'><stop offset='0%' stop-color='%23F4EEE2' stop-opacity='0.95'/><stop offset='8.5%' stop-color='%23F4EEE2' stop-opacity='0'/><stop offset='91.5%' stop-color='%23F4EEE2' stop-opacity='0'/><stop offset='100%' stop-color='%23F4EEE2' stop-opacity='0.95'/></linearGradient><linearGradient id='ey' x1='0' y1='0' x2='0' y2='1'><stop offset='0%' stop-color='%23F4EEE2' stop-opacity='0.5'/><stop offset='5.5%' stop-color='%23F4EEE2' stop-opacity='0'/></linearGradient></defs><g filter='url(%23f)'><rect x='-140' y='-175' width='680' height='850' fill='%23F4EEE2' fill-opacity='0.88' mask='url(%23m)'/></g><rect width='100%' height='100%' fill='url(%23ex)'/><rect width='100%' height='100%' fill='url(%23ey)'/></svg>");
}

/* ---- the seam on a card holding two people ------------------------------

   The $50 photograph is one figure made of two members joined down the
   middle. Without a mark there, a viewer reads it as one person who came
   out strangely; with a hard line through it, as two photographs stuck
   together. So: a hairline the colour of the paper the card is printed on,
   fading out before it reaches either edge, with a thread of ink either
   side of it. It separates without cutting.
   ------------------------------------------------------------------------ */

.gd-tier__seam {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 50%;
  z-index: 2;
  width: 7px;
  margin-left: -3.5px;
  pointer-events: none;
  /* The gutter is the paper the card is printed on, showing through where
     the two prints meet, and the shadow is what two edges cast into it.
     A drawn line would cut the picture in half; this lays it side by side
     with itself. */
  background: rgba(244, 238, 226, 0.93);
  box-shadow: 0 0 7px 2px rgba(27, 26, 23, 0.55);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0, #000 9%, #000 91%, transparent 100%);
}

.gd-tier__shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--gd-wash) center / 100% 100% no-repeat;
}

/* The bottom edge dissolves into the card instead of ending on a line, so
   there is no seam between the photograph and the paper under it. */
.gd-tier__shot::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 30%;
  background: linear-gradient(to bottom,
              rgba(239, 231, 216, 0) 0%,
              rgba(239, 231, 216, 0.55) 55%,
              var(--paper-card) 100%);
}

/* The flagged card keeps its ribbon, and the ribbon now lies across the
   photograph rather than above it. Its own padding-top would have pushed
   the picture down off the top edge, so it goes — and the ribbon needs a
   z-index above the photograph, because both are positioned and the
   photograph comes later in the markup. */
.gd-tier--flagged.gd-tier--shot { padding-top: 0; }
.gd-tier__flag { z-index: 2; }
.gd-tier--flagged.gd-tier--shot .gd-tier__shot::after {
  background: linear-gradient(to bottom,
              rgba(239, 231, 216, 0) 0%,
              rgba(239, 231, 216, 0.55) 55%,
              var(--paper) 100%);
}

/* The flagged card's drawing used to be seal red. Two reviewers, three
   rounds apart, both said the same thing: one red drawing among three ink
   ones stops the four reading as a set, and red type over a red watermark
   made the $10 the hardest of the four prices to read. The ribbon and the
   border are flag enough. Set `color: var(--seal)` here to put it back. */

.gd-tier__amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--seal);
}

.gd-tier__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

/* The weapon's name, with its character above it in the brush face. */
.gd-tier__weapon {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.gd-tier__hanzi {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-brush);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  color: var(--seal);
  opacity: 0.85;
}

.gd-tier__label {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The tier's own button, sized down to sit inside the slip. */
.gd-tier__btn {
  justify-self: center;
  padding: 0.6rem 1.4rem;
  background: var(--seal);
  background-image: var(--grain);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: background-color var(--transition);
}
.gd-tier__btn:hover,
.gd-tier__btn:focus-visible { background-color: var(--seal-dark); color: var(--paper); }

.gd-tier__btn { transition: background-color var(--transition), transform var(--transition); }

/* Pending inside a paper slip. .gd-tier__btn paints the live button red, and
   this chip carries that class too, so it has to put the fill back to nothing
   or a button that does nothing still looks like a button that does. */
.gd-tier .gd-btn--pending {
  justify-self: center;
  background: none;
  background-image: none;
  border: 1px dashed rgba(27, 26, 23, 0.3);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   7. Where it goes, and other ways to help
   -------------------------------------------------------------------------- */

/* Lined up under the heading rather than centred in the container. The list
   used to sit below a paragraph that filled the header's width, which hid the
   fact that the two were on different axes; with the paragraph gone the list
   was floating in the middle of the section with the heading off to one
   side. */
.gd-where {
  max-width: 62ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gd-where li {
  position: relative;
  padding: 0 0 1.15rem 2.2rem;
  font-size: 1.04rem;
  line-height: 1.65;
}

/* A small pressed seal for a bullet. */
.gd-where li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--seal);
  -webkit-mask: var(--rough-seal) center / 100% 100% no-repeat;
  mask: var(--rough-seal) center / 100% 100% no-repeat;
}

.gd-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.gd-help__card {
  padding: 1.8rem 1.6rem;
  background: var(--paper-card);
  background-image: var(--mottle);
  -webkit-mask: var(--deckle) center / 100% 100% no-repeat;
  mask: var(--deckle) center / 100% 100% no-repeat;
}

/* styles.css gives .btn--ghost a moonlit label for the black ground. Inside
   a paper card that is cream on cream, so the button comes out blank. */
.gd-help__card .btn--ghost {
  color: var(--ink);
  border-color: rgba(27, 26, 23, 0.4);
}
.gd-help__card .btn--ghost:hover,
.gd-help__card .btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gd-help__card h3 { margin: 0 0 0.6rem; }
.gd-help__card p { margin: 0 0 0.8rem; }
.gd-help__card p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. The sticky donate bar, phones only
   -------------------------------------------------------------------------- */

.gd-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 9, 8, 0.96);
  border-top: 1px solid var(--gold-hair);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.gd-sticky.is-up { transform: none; }

.gd-sticky__read {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--moon-soft);
}

.gd-sticky .gd-btn { padding: 0.75rem 1.4rem; font-size: 0.78rem; }

@media (max-width: 720px) {
  .gd-sticky { display: flex; }
  /* Room so the bar never covers the footer's last line. */
  .site-footer { padding-bottom: 5.5rem; }
}

/* --------------------------------------------------------------------------
   9. Narrower screens
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .gd-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  /* Film first: it is what people came for and what they share. */
  .gd-hero__film { order: -1; }
  .gd-hero__ask { max-width: none; }
  .gd-hero::after { opacity: 0.07; }
}

@media (max-width: 720px) {
  .gd-hero { padding-top: 1.75rem; }
  /* One column, so the left-to-right wash no longer sits under the words.
     Darken from the top instead, where the headline actually is. */
  .gd-hero::before {
    background-image:
      linear-gradient(180deg, rgba(16, 15, 13, 0.5) 0%, rgba(16, 15, 13, 0.88) 38%, rgba(16, 15, 13, 0.93) 100%),
      linear-gradient(90deg, rgba(16, 15, 13, 0.55) 0%, rgba(16, 15, 13, 0.35) 100%),
      url("images/ds-2026/web/pxl_20260426_020528139.jpg");
    background-position: center, center, 50% 30%;
  }
  .gd-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .gd-unit { min-width: 4rem; padding: 0.5rem 0.55rem 0.4rem; }
  .gd-unit b { font-size: 1.6rem; }
  .gd-btn { width: 100%; text-align: center; }
  .gd-cta-row { gap: 0.8rem; }
  .gd-film { padding: 0.5rem; }
  /* The masks cost real time to rasterise on a phone; the slips are small
     enough here that the deckled edge is not worth it. */
  .gd-tier,
  .gd-help__card,
  .gd-challenge {
    -webkit-mask: none;
    mask: none;
    border: 1px solid rgba(27, 26, 23, 0.12);
  }
  .gd-tier--flagged { border-color: var(--seal); }

  /* The picture keeps its 4:5 here rather than being capped to a band.
     A cap was tried — the worry was that a near-full-width 4:5 picture
     pushes the amount and the button below the fold — and it was wrong
     twice over: the whole card already fits (443-574px against the 640px
     of the smallest phone worth testing), and capping the height makes
     the box wider than the file, so `cover` crops top and bottom and
     takes the head off three of the four pictures. No one object-position
     suits all four, because the crouching figure's head is halfway down
     the frame while the other three are near the top. Leave it alone. */
}

/* --------------------------------------------------------------------------
   10. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .gd-bar__fill { transition: none; }
  .gd-btn:hover,
  .gd-btn:focus-visible { transform: none; }
  .gd-film__play:hover .gd-film__play-mark,
  .gd-film__play:focus-visible .gd-film__play-mark { transform: none; }
  .gd-sticky { transition: none; }
}

/* ------------------------------------------------------------------
   The film's two buttons

   They stand in for the native control bar, which the script removes
   once it has taken over playback. Kept to a corner and kept quiet: the
   film is the picture, not the player. `hidden` is on them in the
   markup and only the script takes it off, so a visitor without
   JavaScript keeps the real control bar and never sees these.
   ------------------------------------------------------------------ */
.gd-film__controls {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}
.gd-film__controls[hidden] { display: none; }

.gd-film__btn {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(16, 16, 18, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--paper);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--transition), background-color var(--transition);
}

/* Faint until wanted — but never invisible, because the pause button is
   the only way to stop a film that started on its own. */
.gd-film:hover .gd-film__btn,
.gd-film__btn:hover,
.gd-film__btn:focus-visible { opacity: 1; }
.gd-film__btn:hover { background: rgba(16, 16, 18, 0.8); }

.gd-film__icon {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  -webkit-mask: var(--gd-icon) center / contain no-repeat;
  mask: var(--gd-icon) center / contain no-repeat;
}

/* Two bars. */
.gd-film__icon--pause {
  --gd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2h3.5v12H3zM9.5 2H13v12H9.5z'/%3E%3C/svg%3E");
}
/* A triangle, nudged right so it looks centred in a circle. */
.gd-film__icon--play {
  --gd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2l10 6-10 6z'/%3E%3C/svg%3E");
  margin-left: 0.12rem;
}
/* A speaker with a cross: the sound is off, press to turn it on. */
.gd-film__icon--sound {
  --gd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 6h3l4-3.5v11L4 10H1z'/%3E%3Cpath d='M10.3 5.7l4 4.6M14.3 5.7l-4 4.6' stroke='black' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
}
/* A speaker with waves: the sound is on. */
.gd-film__icon--sound-on {
  --gd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 6h3l4-3.5v11L4 10H1z'/%3E%3Cpath d='M10.4 5.2a4 4 0 0 1 0 5.6M12.6 3.4a7 7 0 0 1 0 9.2' stroke='black' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
}

/* A film that plays itself should not also pulse its buttons at someone
   who asked for stillness — though that visitor never gets autoplay, so
   these only appear here if they changed the setting mid-visit. */
@media (prefers-reduced-motion: reduce) {
  .gd-film__btn { transition: none; opacity: 1; }
}

/* ---- the donor wall -----------------------------------------------------

   Names, set as a block of type rather than a list of rows, because forty
   of them in a column reads as an invoice and forty of them running on
   reads as a crowd. Anonymous is set quieter than a name: it is honest
   about being one of us without pretending to be somebody.
   ------------------------------------------------------------------------ */

.gd-wall__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gd-wall__name {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.gd-wall__name + .gd-wall__name::before {
  content: "·";
  margin: 0 0.6rem;
  color: var(--seal);
  opacity: 0.55;
}

.gd-wall__name--anon {
  font-style: italic;
  color: var(--ink-soft);
}

/* Once amounts are known the wall becomes a ranking, and a ranking wants
   one name per line with its figure held out to the right. */
.gd-wall__list--ranked {
  display: block;
  max-width: 26rem;
  margin: 0 auto;
}

.gd-wall__list--ranked .gd-wall__name {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(27, 26, 23, 0.09);
  text-align: left;
}

.gd-wall__list--ranked .gd-wall__name + .gd-wall__name::before { content: none; }
.gd-wall__list--ranked .gd-wall__name:last-child { border-bottom: 0; }

.gd-wall__amount {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--seal);
}

.gd-wall__empty {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink-soft);
}
