/* ==========================================================================
   Santa's Posse — shop.santasposse.org
   Plain CSS, no framework, no build step. Edit and save.

   Palette is lifted from the existing santasposse.org brand so the two sites
   read as one: gold badge, Christmas red, forest green, cream paper.
   ========================================================================== */

:root {
  --forest:      #143D2B;
  --forest-deep: #0C2419;
  --gold:        #C8A046;
  --gold-deep:   #96701F;
  --red:         #C1272D;
  --red-deep:    #9E2B25;
  --cream:       #F6F1E6;
  --paper:       #FFFDF8;
  --ink:         #1B1B18;
  --ink-soft:    #4E4B44;
  --rule:        #E2D9C6;

  --bg:      var(--paper);
  --surface: #FFFFFF;
  --text:    var(--ink);
  --muted:   var(--ink-soft);
  --border:  var(--rule);

  /* --- metallic gold -----------------------------------------------------
     Believable metal needs ASYMMETRIC banding: a bright specular band high
     up, a shadow trough below it, then a weaker bounce-light highlight near
     the bottom edge. An even light-to-dark ramp just reads as yellow plastic.

     Dark bands stay confined to the top and bottom 6% — the rim. Text sits on
     the middle of the surface, and an earlier ramp put a #9A741F trough right
     under it, which measured 3.7:1 against the forest label and failed AA. A
     bright face keeps every text-bearing band above 6.5:1, and a dark rim
     around a lit face is what a beveled metal button actually looks like.
     ----------------------------------------------------------------------- */
  --gold-metal: linear-gradient(175deg,
    #6E4E12 0%, #C8A046 6%, #F8E9B8 18%, #EBD48E 38%,
    #E3C87A 50%, #D9B65C 62%, #F2DCA2 80%, #B08A2E 94%, #6E4E12 100%);

  /* Flatter ramp for the dialed-back areas. */
  --gold-metal-quiet: linear-gradient(175deg,
    #9A741F 0%, #C8A046 30%, #E3C478 52%, #B08A2E 78%, #8A6620 100%);

  /* Vertical ramp reads better than the angled one on letterforms. */
  --gold-metal-text: linear-gradient(180deg,
    #FBF0CE 0%, #E3C478 34%, #C8A046 58%, #F2DCA2 78%, #B08A2E 100%);

  --gold-edge: #6E5214;
  --gold-bevel:
    inset 0 1px 0 rgba(255, 246, 222, .82),
    inset 0 -2px 3px rgba(58, 38, 4, .45),
    0 1px 2px rgba(0, 0, 0, .28),
    0 6px 14px -7px rgba(0, 0, 0, .5);
  --gold-bevel-sm:
    inset 0 1px 0 rgba(255, 246, 222, .7),
    inset 0 -1px 2px rgba(58, 38, 4, .4),
    0 1px 2px rgba(0, 0, 0, .25);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 61 43 / .06), 0 12px 28px -12px rgb(20 61 43 / .18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #0E1512;
    --surface: #16201B;
    --text:    #F2EEE4;
    --muted:   #AFB7AF;
    --border:  #2A3A31;
    --cream:   #16201B;
    --shadow:  0 1px 2px rgb(0 0 0 / .4), 0 12px 28px -12px rgb(0 0 0 / .6);
  }
}

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

body {
  margin: 0;
  overflow-x: clip;   /* the product row runs to the window edge; never let it widen the page */
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; }

/* Headlines are set in caps via CSS, not typed in caps, so screen readers
   don't spell them out letter by letter. Caps in a serif need extra tracking.
   h3 is left alone on purpose: product names and FAQ-style text stay in
   normal case for scanning. */
h1, h2 { text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

img, svg { max-width: 100%; height: auto; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { border-radius: 50%; background: var(--forest); padding: 2px; flex: none; }
.brand__text strong {
  display: block; font-family: var(--serif); font-size: 1.15rem;
  letter-spacing: .01em; line-height: 1.1;
}
.brand__text small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* The place-and-year line. A darker gold than the brand gold: #C8A046 on the
   cream header is 2.4:1 and unreadable at this size; #7E5D17 is 5.9:1. */
.brand__text .brand__place {
  color: #7E5D17; font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; margin-top: .1rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__text .brand__place { color: var(--gold); }
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--gold-deep); }

.nav-toggle { display: none; }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: .72rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-deep); }

/* ---------- gold surfaces + glimmer ------------------------------------- */

/* Beveled metal. Anything carrying this must be able to clip the glimmer,
   hence position + overflow. */
.gold-surface {
  position: relative;
  overflow: hidden;
  background-image: var(--gold-metal);
  border: 1px solid var(--gold-edge);
  box-shadow: var(--gold-bevel);
  color: var(--forest-deep);
  text-shadow: 0 1px 0 rgba(255, 246, 222, .45);
}
.gold-surface:hover { filter: brightness(1.07) saturate(1.05); }
.gold-surface--quiet { background-image: var(--gold-metal-quiet); box-shadow: var(--gold-bevel-sm); }

/* The sweep parks off-canvas for ~88% of the cycle, so this is a brief flash
   every several seconds rather than a continuously shimmering surface. */
.glimmer::after {
  content: "";
  position: absolute;
  inset: -30% -45%;
  background: linear-gradient(105deg,
    transparent 42%, rgba(255, 255, 255, .62) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: glimmer 7s ease-in-out infinite;
  pointer-events: none;
}
.glimmer--slow::after {
  background: linear-gradient(105deg,
    transparent 44%, rgba(255, 255, 255, .34) 50%, transparent 56%);
  animation-duration: 14s;
}
@keyframes glimmer {
  0%, 88% { transform: translateX(-130%); }
  100%    { transform: translateX(130%); }
}
/* Staggered so the page never flashes in unison. */
.glimmer:nth-of-type(2n)::after   { animation-delay: -2.3s; }
.glimmer:nth-of-type(3n)::after   { animation-delay: -4.6s; }

/* Gradient letterforms. background-clip:text renders invisible under Windows
   High Contrast, so the forced-colors fallback below is load-bearing. */
.gold-text {
  background-image: var(--gold-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (forced-colors: active) {
  .gold-text {
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
  .gold-surface { background-image: none; }
  .glimmer::after { display: none; }
}

/* On the forest-green bands a forest-green button is invisible. Metal gold
   both restores the contrast and reads as the primary action. */
.hero .btn--primary,
.cta-band .btn--primary {
  background: none;
  background-image: var(--gold-metal);
  border-color: var(--gold-edge);
  box-shadow: var(--gold-bevel);
  color: var(--forest-deep);
  text-shadow: 0 1px 0 rgba(255, 246, 222, .45);
  position: relative;
  overflow: hidden;
}
.hero .btn--primary:hover,
.cta-band .btn--primary:hover { background-image: var(--gold-metal); filter: brightness(1.08); }
.hero .btn--primary:active,
.cta-band .btn--primary:active {
  box-shadow: var(--gold-bevel-sm);
  transform: translateY(1px);
}
.btn--donate  { background: var(--red); color: #fff; padding: .55rem 1.2rem; }
.btn--donate:hover { background: var(--red-deep); }
.btn--ghost   { border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- hero -------------------------------------------------------- */

/* Photo hero. The text sits on the left, so the scrim is a left-to-right
   fade: dark behind the words, clear over the sunset and the center rider.
   A second low scrim grounds the buttons on the snow. */
.hero {
  background:
    linear-gradient(90deg, rgb(6 14 10 / .74) 0%, rgb(6 14 10 / .5) 36%,
                    rgb(6 14 10 / .1) 62%, transparent 100%),
    linear-gradient(0deg, rgb(6 14 10 / .5) 0%, transparent 38%),
    url("hero-posse.webp") center 35% / cover no-repeat,
    var(--forest-deep);
  color: var(--cream);
  min-height: clamp(520px, 74vh, 780px);
  display: flex; align-items: center;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.hero { position: relative; overflow: hidden; }
.hero__inner { width: 100%; position: relative; z-index: 1; }

/* Snow layer. snow.js sizes it to end at the subline; the mask fades the
   flakes out over the lower part of that band so they melt away instead of
   hitting a hard edge. It sits under the text, so no flake ever covers a word. */
.hero__snow {
  position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
}

/* The black outline. Built from stacked shadows rather than
   -webkit-text-stroke: stroke draws inward and eats the thin strokes of
   Playfair, while shadows sit outside the letter and leave it intact. */
.hero h1, .hero__sub, .hero .lede {
  text-shadow:
    1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000,
    0 3px 14px rgb(0 0 0 / .7);
}
.hero h1 {
  text-shadow:
    2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000,
    0 4px 22px rgb(0 0 0 / .75);
}
.hero .btn--ghost {
  background: rgb(0 0 0 / .38);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px #000;
}

@media (max-width: 760px) {
  /* On a phone the words cover the whole frame, so the fade becomes an even
     wash, and the crop shifts toward the center rider and the sunset. */
  .hero {
    background:
      linear-gradient(0deg, rgb(6 14 10 / .78) 0%, rgb(6 14 10 / .5) 100%),
      url("hero-posse.webp") 55% 35% / cover no-repeat,
      var(--forest-deep);
  }
}
:root:not([data-theme="light"]) .hero { color: #F2EEE4; }
.hero__inner { max-width: var(--wrap); margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero__sub {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem); line-height: 1.25;
  color: var(--gold); margin: 0 0 1.4rem;
}

.eyebrow {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 56ch; opacity: .93; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- stats ------------------------------------------------------- */

.stats {
  background-image: var(--gold-metal);
  color: var(--forest-deep);
  position: relative; overflow: hidden;
  border-block: 1px solid var(--gold-edge);
  box-shadow: inset 0 2px 0 rgba(255, 246, 222, .55), inset 0 -4px 8px rgba(58, 38, 4, .28);
  text-shadow: 0 1px 0 rgba(255, 246, 222, .4);
}
.stats dl {
  max-width: var(--wrap); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem);
  /* Fixed tracks, not auto-fit: the longest label ("Families each year")
     has a min-content width just over 150px, which pushed auto-fit into an
     lopsided 3 + 1 wrap at tablet widths. */
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; text-align: center;
}
@media (min-width: 720px) {
  .stats dl { grid-template-columns: repeat(4, 1fr); }
}
/* column-reverse puts the number on top in the visual order while keeping the
   dt-then-dd source order screen readers expect. It also keeps the numbers on
   a shared top edge when a longer label wraps to two lines. */
.stats dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.stats dd {
  margin: .15rem 0 0; font-family: var(--sans); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: .02em;
  font-variant-numeric: lining-nums;   /* matches the route and the big number */
}

/* ---------- sections ---------------------------------------------------- */

section { padding-inline: clamp(1rem, 4vw, 2.5rem); }
.shop, .impact, .faq { max-width: var(--wrap); margin: 0 auto; padding-block: clamp(3rem, 8vw, 5.5rem); }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.notice {
  background: color-mix(in srgb, var(--gold) 22%, var(--bg));
  border-left: 4px solid var(--gold);
  padding: .85rem 1.1rem; border-radius: 0 8px 8px 0;
  font-weight: 600; margin-bottom: 2rem;
}

/* ---------- product shelf: kraft gift tags on one sideways row ----------
   Each product hangs on twine as a kraft-paper gift tag (shop.js builds it),
   all on one row that scrolls sideways. The row runs out past the page
   margin to the right edge of the window, sized so 3½ tags show on a laptop
   (2½ on a tablet, 1¼ on a phone): the half tag cut off by the window is
   the cue that there's more. Tags snap into place; shop.js adds the arrow
   buttons and the progress track under it.

   The shadow lives on .tag, not .tag__card, because clip-path would cut a
   filter shadow off along with the corners.
   ----------------------------------------------------------------------- */

.grid {
  /* the page's side margin, and the distance from the window's left edge
     to the row's first tag */
  --pad: clamp(1rem, 4vw, 2.5rem);
  --edge: calc(var(--pad) + max(0px, (100vw - var(--wrap)) / 2));
  --visible: 3.5; --gaps: 3;            /* 3 whole tags, 3 gaps, half a tag */
  --gap: clamp(1rem, 2vw, 1.6rem);
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding-inline-start: 40px;
  margin-right: calc(-1 * var(--edge));   /* run out to the window's right edge */
  /* 40px of room on the left (pulled back out with the negative margin) so
     the first tag's shadow and tilt aren't sliced off by the row's edge */
  margin-left: -40px;
  padding: 4px var(--edge) 2.6rem 40px;
}
.grid::-webkit-scrollbar { display: none; }
.grid > .tag {
  flex: 0 0 min(400px, calc((100vw - var(--edge) - var(--gaps) * var(--gap)) / var(--visible)));
  scroll-snap-align: start;
}
@media (max-width: 1000px) { .grid { --visible: 2.5; --gaps: 2; } }
@media (max-width: 640px)  { .grid { --visible: 1.25; --gaps: 1; } }

/* Under the row: a thin gold track showing where you are, and arrows. */
.shelf-bar { display: flex; align-items: center; gap: 1rem; margin-top: -.6rem; }
.shelf-bar[hidden] { display: none; }
.shelf-track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.shelf-thumb { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background-image: var(--gold-metal); }
.shelf-btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #E3C478; background: radial-gradient(circle at 40% 30%, #1E5A40, var(--forest-deep) 75%);
  border: 1px solid var(--gold-edge); box-shadow: inset 0 0 0 2px rgb(200 160 70 / .35), 0 4px 10px rgb(12 36 25 / .3);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.shelf-btn svg { width: 20px; height: 20px; }
.shelf-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgb(227 196 120 / .7), 0 8px 16px rgb(12 36 25 / .35); }
.shelf-btn:active:not(:disabled) { transform: scale(.94); }
.shelf-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .shelf-btn { display: none; } }

.tag { position: relative; padding-top: 30px; filter: drop-shadow(0 14px 18px rgb(60 40 20 / .28)) drop-shadow(0 2px 2px rgb(60 40 20 / .28)); }
.tag:nth-child(4n+1) .tag__card { rotate: -1.4deg; }
.tag:nth-child(4n+2) .tag__card { rotate: .9deg; }
.tag:nth-child(4n+3) .tag__card { rotate: -.5deg; }
.tag:nth-child(4n)   .tag__card { rotate: 1.2deg; }
.tag__twine { position: absolute; left: 50%; top: 0; width: 90px; height: 58px; margin-left: -45px; z-index: 3; pointer-events: none; overflow: visible; }

.tag__card {
  position: relative; padding: 2.6rem 1rem 1.15rem; color: #3A2A1A;
  clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 100%, 0 100%, 0 7%);
  background:
    /* the punched hole and its brass grommet */
    radial-gradient(9px 9px at 50% 22px, #6B4E2E 0 4px, transparent 4.5px),
    radial-gradient(14px 14px at 50% 22px, transparent 0 6px, #D8C08F 6.5px 9px, rgb(0 0 0 / .25) 9.5px, transparent 10.5px),
    /* paper fibre */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .55 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #D2B285, #C29F6E 60%, #B48F5D);
}

/* The photo: a white-bordered print taped on with two strips of tape. */
.tag__photo { position: relative; background: #FBFAF6; padding: 10px 10px 34px; rotate: .6deg;
  box-shadow: 0 6px 12px rgb(60 40 20 / .3), 0 1px 1px rgb(0 0 0 / .2); }
.tag__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.tag__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.tag__worn { opacity: 0; }
.tag__media:hover .tag__worn, .tag__media:focus-visible .tag__worn { opacity: 1; }
.tag__media:hover img { transform: scale(1.04); }
.tag__tape { position: absolute; top: -9px; width: 74px; height: 22px; z-index: 2;
  background: rgb(240 232 210 / .55); box-shadow: 0 1px 2px rgb(0 0 0 / .12);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 0, 28% 8%, 100% 0, 96% 50%, 100% 100%, 8% 92%, 0 100%, 4% 50%); }
.tag__tape--l { left: -16px; rotate: -32deg; }
.tag__tape--r { right: -16px; rotate: 30deg; }
.tag__caption { position: absolute; left: 12px; bottom: 10px; font: italic 600 .82rem var(--serif); color: #5A4A3A; }

/* The price, rubber-stamped in red ink over the corner of the print. */
.tag__stamp {
  position: absolute; right: -12px; bottom: -16px; z-index: 3; width: 82px; height: 82px;
  display: grid; place-content: center; text-align: center; border-radius: 50%; rotate: -14deg;
  color: #A3202A; border: 3px solid currentColor; box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 5.5px currentColor;
  font: 800 1.35rem/1 var(--sans); font-variant-numeric: lining-nums; opacity: .9; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 2.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}
.tag__stamp small { display: block; max-width: 56px; margin: 3px auto 0; font-size: .46rem; line-height: 1.15; letter-spacing: .14em; text-transform: uppercase; }

/* Sold out: a small grey flag pinned to the top of the print. */
.tag__flag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(180deg, #D8423F 0%, var(--red) 45%, #92241F 100%);
  color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .65rem .28rem .35rem; border-radius: 999px; border: 1px solid rgb(0 0 0 / .32);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), 0 2px 5px rgb(0 0 0 / .3); text-shadow: 0 1px 1px rgb(0 0 0 / .35);
}
.tag__flag img { width: 16px; height: 16px; display: block; flex: none; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .45)); }
.tag__flag--out { padding-left: .65rem; background: linear-gradient(180deg, #6A675F 0%, var(--ink-soft) 45%, #35332E 100%); }

.tag__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: #2E1F12; margin: 1.15rem 0 .15rem; }
.tag__blurb { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.5; color: #5C4630; }

/* Colours: glass Christmas ornaments on little gold caps. They swing on
   their hooks when the pointer touches them, and jingle when picked. */
/* the colour name sits on its own line, so every tag in the row is the same height */
.tag__pick { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin-bottom: .8rem; }
.tag__color { font: 600 .85rem var(--sans); color: #5C4630; }
.baubles { display: flex; flex-wrap: wrap; gap: .45rem .42rem; margin: 0; padding: 7px 0 0; list-style: none; }
.bauble {
  position: relative; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle at 34% 30%, rgb(255 255 255 / .85) 0 8%, transparent 22%),
    radial-gradient(circle at 50% 55%, var(--c) 0 45%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  box-shadow: inset 0 -2px 3px rgb(0 0 0 / .35), 0 2px 4px rgb(60 40 20 / .45);
  transform-origin: 50% -6px;
}
.bauble::before { content: ""; position: absolute; left: 50%; top: -5px; width: 7px; height: 5px; margin-left: -3.5px;
  border-radius: 1.5px 1.5px 0 0; background-image: var(--gold-metal); }
.bauble:hover { animation: baubleSwing 1.3s cubic-bezier(.36, .07, .19, .97); }
.bauble.is-jingling { animation: baubleJingle .55s cubic-bezier(.3, 1.6, .5, 1); }
.bauble[aria-pressed="true"] { box-shadow: inset 0 -2px 3px rgb(0 0 0 / .35), 0 0 0 2px #C9A574, 0 0 0 3.5px #4A3420; }
.bauble:focus-visible { outline: 2px solid #4A3420; outline-offset: 4px; }
@keyframes baubleSwing {
  0% { rotate: 0deg; } 15% { rotate: 22deg; } 32% { rotate: -16deg; } 50% { rotate: 10deg; }
  68% { rotate: -5deg; } 84% { rotate: 2deg; } 100% { rotate: 0deg; }
}
@keyframes baubleJingle { 0% { scale: 1; } 30% { scale: 1.3; } 60% { scale: .92; } 100% { scale: 1; } }

/* Sizes: inked boxes. Information only; the size is chosen at checkout. */
.tag__sizes { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.tag__sizes li { min-width: 1.6rem; padding: .3rem .2rem; text-align: center; font: 700 .7rem/1 var(--sans);
  color: #4A3420; border: 1.5px solid rgb(74 52 32 / .55); border-radius: 3px; }
.tag__note { margin: 0 0 1.05rem; font-size: .82rem; color: #6A5238; }

/* The snow-globe Buy button: a glass capsule part-filled with water. The
   water, snow and glitter are drawn on the canvas by shop.js; the glass
   highlights and rim sit on top of it here. */
.globe {
  position: relative; display: flex; align-items: center; justify-content: center; height: 56px; margin-top: 1.05rem;
  border-radius: 999px; text-decoration: none; isolation: isolate; overflow: hidden; cursor: pointer;
  font: 800 1rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 2px rgb(0 20 30 / .8), 0 0 12px rgb(160 220 255 / .5);
  background: linear-gradient(180deg, rgb(230 245 255 / .55), rgb(200 225 240 / .25));
  box-shadow: 0 10px 22px rgb(40 30 20 / .35), 0 2px 3px rgb(0 0 0 / .25);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3);
}
.tag__note + .globe { margin-top: 0; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.globe__lbl { position: relative; z-index: 3; }
.globe::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  background:
    radial-gradient(60% 40% at 30% 18%, rgb(255 255 255 / .75), transparent 70%),
    radial-gradient(14% 30% at 88% 30%, rgb(255 255 255 / .5), transparent 75%),
    linear-gradient(180deg, transparent 60%, rgb(255 255 255 / .18));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .95), inset 0 -2px 6px rgb(0 40 60 / .35),
    inset 0 0 0 1.5px rgb(255 255 255 / .55), inset 0 0 14px rgb(255 255 255 / .25);
}
.globe:hover { transform: translateY(-2px) scale(1.015); }
.globe:active { transform: scale(.97); }
.globe:focus-visible { outline: 3px solid #4A3420; outline-offset: 3px; }
.globe[aria-disabled="true"] { cursor: default; filter: grayscale(1) brightness(.85); transform: none; }
.globe--soon { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .bauble:hover, .bauble.is-jingling { animation: none; }
}

/* ---------- where it goes: the route (the fallback) ---------------------
   Four numbered stops joined by a gold line. This is what shows without
   JavaScript or with reduced motion; otherwise journey.js turns the section
   into the train scene below and keeps this list for screen readers. Each
   stop draws the connector to the NEXT stop as its own ::before (the road)
   and ::after (the gold), so the line works across and stacked alike.
   ----------------------------------------------------------------------- */

.impact { background: var(--cream); max-width: none; }
.impact > * { max-width: var(--wrap); margin-inline: auto; }

.route {
  --dot: 46px;
  --gap: 2rem;
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.route__stop { position: relative; --fill: 1; }
.route__stop:not(:last-child)::before,
.route__stop:not(:last-child)::after {
  content: ""; position: absolute;
  left: calc(var(--dot) / 2); top: calc(var(--dot) / 2 - 2px);
  width: calc(100% + var(--gap)); height: 4px; border-radius: 2px;
}
.route__stop:not(:last-child)::before {
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.route__stop:not(:last-child)::after {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, #E3C478);
  box-shadow: 0 0 10px rgb(200 160 70 / .45);
  transform-origin: left center;
  transform: scaleX(var(--fill));
}

.route__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  margin-bottom: 1.2rem;
  font-family: var(--sans); font-weight: 700; font-size: 1.15rem;
  font-variant-numeric: lining-nums;
  background: var(--surface);
  color: var(--forest-deep); border: 2px solid var(--gold-edge);
  isolation: isolate;
}
/* The gold face is a layer under the number, inside the plain disc. */
.route__dot::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background-image: var(--gold-metal);
  border: 1px solid var(--gold-edge);
  box-shadow: var(--gold-bevel-sm);
}

.route h3 {
  color: var(--forest); font-family: var(--sans); font-weight: 700;
  font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .45rem;
}
.route p { color: var(--muted); margin: 0; max-width: 32ch; }
@media (prefers-color-scheme: dark) {
  /* Gold headings only on the dark surface; on cream they'd fail contrast. */
  :root:not([data-theme="light"]) .route h3 { color: var(--gold); }
}

@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; --gap: 2.2rem; }
  .route__stop { padding-left: calc(var(--dot) + 1.1rem); min-height: var(--dot); }
  .route__dot { position: absolute; left: 0; top: 0; margin: 0; }
  .route__stop:not(:last-child)::before,
  .route__stop:not(:last-child)::after {
    left: calc(var(--dot) / 2 - 2px); top: calc(var(--dot) / 2);
    width: 4px; height: calc(100% + var(--gap));
  }
  .route__stop:not(:last-child)::before {
    background: repeating-linear-gradient(180deg, var(--border) 0 10px, transparent 10px 18px);
  }
  .route__stop:not(:last-child)::after {
    background: linear-gradient(180deg, var(--gold-deep), var(--gold) 60%, #E3C478);
    transform-origin: center top;
    transform: scaleY(var(--fill));
  }
  .route h3 { padding-top: .65rem; }
}

/* ---------- the train under the tree (journey.js) -----------------------
   .is-live is added by journey.js. The section becomes a tall scroll track
   and its stage pins under the header; the scroll position drives the train.
   The camera layers (.jcam) are 2560x1440, the room photo's own pixel size,
   and journey.js moves them all with one transform.
   ----------------------------------------------------------------------- */

.journey.is-live {
  --stage-h: calc(100vh - var(--hdr, 0px));
  height: calc(var(--stage-h) + 600vh);
  max-width: none; padding: 0;
  background: #070B09;
}
@supports (height: 100svh) {
  .journey.is-live { --stage-h: calc(100svh - var(--hdr, 0px)); }
}
.journey.is-live .journey__stage {
  position: sticky; top: var(--hdr, 0px);
  height: var(--stage-h); max-width: none; margin: 0;
  overflow: hidden; background: #070B09;
}
/* The list stays in the page for screen readers; the signs are decoration. */
.journey.is-live .route {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.journey.is-live .journey__head {
  position: absolute; z-index: 8; margin: 0; max-width: min(36rem, 46vw);
  top: clamp(1rem, 3vw, 2rem); left: clamp(1rem, 4vw, 2.5rem);
  pointer-events: none;
}
.journey.is-live .journey__head h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); color: #fff; text-shadow: 0 2px 0 #000, 0 3px 20px rgb(0 0 0 / .85); }
.journey.is-live .journey__head p { color: rgb(244 238 223 / .9); text-shadow: 0 1px 3px #000; }

.journey__scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.journey.is-ready .journey__scene { opacity: 1; }
.jcam {
  position: absolute; left: 0; top: 0; width: 2560px; height: 1440px;
  transform-origin: 0 0; will-change: transform; pointer-events: none;
}
.jcam img, .jcam canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jcam--glow { mix-blend-mode: screen; }

.journey__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 58%, transparent 52%, rgb(0 0 0 / .6) 100%),
    linear-gradient(180deg, rgb(0 0 0 / .5) 0%, transparent 26%);
}
/* Film grain over everything, so the drawn layers and the photograph share
   one texture. The noise is an inline SVG; it jitters a few times a second. */
.journey__grain {
  position: absolute; inset: -60px; pointer-events: none; opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .8s steps(5) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-22px, 14px); }
  40%  { transform: translate(18px, -26px); }
  60%  { transform: translate(-9px, 31px); }
  80%  { transform: translate(27px, 6px); }
  100% { transform: translate(0, 0); }
}
.journey__fade { display: none; }

.journey__hint {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 8; margin: 0;
  transform: translateX(-50%);
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgb(244 238 223 / .85); text-shadow: 0 1px 3px #000; white-space: nowrap;
  transition: opacity .6s ease;
}
.journey__hint::after {
  content: ""; display: block; width: 10px; height: 10px; margin: .6rem auto 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: 45deg; animation: hintBob 1.6s ease-in-out infinite;
}
@keyframes hintBob { 50% { translate: 0 5px; } }
.journey__hint.is-gone { opacity: 0; }

/* Station signs. Each .jsign is a zero-size anchor that journey.js parks on
   the floor just behind the track; the posts grow up from it and the board
   rides on top. An enamel board with a gold border and four bolts, warmed
   along the top edge by the tree behind it. */
.jsigns { position: absolute; inset: 0; pointer-events: none; }
.jsign { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.jsign__post {
  position: absolute; bottom: 0; width: 6px; height: calc(var(--post, 90px) + 8px);
  background: linear-gradient(90deg, #050505, #4B4136 45%, #0B0B0B);
  border-radius: 2px; transform-origin: bottom; transform: scaleY(0);
  transition: transform .3s ease-in;
}
.jsign__post--l { left: -74px; }
.jsign__post--r { left: 68px; }
.jsign__board {
  position: absolute; left: 0; bottom: var(--post, 90px);
  width: clamp(250px, 22vw, 330px);
  padding: 1.05rem 1.3rem 1.15rem;
  color: #F4EEDF; text-align: left;
  background:
    radial-gradient(circle 3.5px at 11px 11px, #E2C46E 0 1.6px, #4A3610 2.4px, transparent 3.5px),
    radial-gradient(circle 3.5px at calc(100% - 11px) 11px, #E2C46E 0 1.6px, #4A3610 2.4px, transparent 3.5px),
    radial-gradient(circle 3.5px at 11px calc(100% - 11px), #E2C46E 0 1.6px, #4A3610 2.4px, transparent 3.5px),
    radial-gradient(circle 3.5px at calc(100% - 11px) calc(100% - 11px), #E2C46E 0 1.6px, #4A3610 2.4px, transparent 3.5px),
    linear-gradient(174deg, rgb(255 210 140 / .26) 0%, rgb(255 210 140 / 0) 40%),
    linear-gradient(180deg, #1B4733 0%, #123527 55%, #0B2218 100%);
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 3px #0A1C13, inset 0 0 0 5px #B8913C, inset 0 0 0 6px rgb(0 0 0 / .5),
    inset 0 7px 0 -1px rgb(255 228 170 / .14),
    0 2px 3px rgb(0 0 0 / .7), 0 22px 36px -14px rgb(0 0 0 / .9);
  transform-origin: 50% 100%;
  transform: translate(-50%, 34px) scale(.88);
  opacity: 0; filter: brightness(.35);
  transition: transform .35s ease-in, opacity .3s ease-in, filter .3s ease-in;
}
/* A faint glossy sweep, the way baked enamel catches a room light. */
.jsign__board::before {
  content: ""; position: absolute; inset: 6px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgb(255 255 255 / .07) 47%, transparent 58%);
}
.jsign__stop {
  display: block; margin-bottom: .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #D9B862;
}
.jsign__title {
  display: block; margin-bottom: .35rem;
  font-family: var(--serif); font-size: 1.32rem; font-weight: 700; line-height: 1.15;
  color: #FFF7E6; text-shadow: 0 1px 0 rgb(0 0 0 / .55);
}
.jsign__text { display: block; font-size: .93rem; line-height: 1.45; color: rgb(244 238 223 / .86); white-space: normal; }

.jsign.is-up .jsign__post { transform: scaleY(1); transition: transform .4s cubic-bezier(.2, 1.3, .4, 1); }
.jsign.is-up .jsign__board {
  transform: translate(-50%, 0) scale(1); opacity: 1; filter: brightness(1);
  transition: transform .8s cubic-bezier(.22, 1.55, .42, 1) .12s, opacity .25s ease .12s;
  animation: signOn 1.1s ease .2s both;
}
/* The sign's light catching: a quick flicker up to full, like a bulb warming. */
@keyframes signOn {
  0%   { filter: brightness(.35); }
  30%  { filter: brightness(1.12); }
  38%  { filter: brightness(.7); }
  48%  { filter: brightness(1.05); }
  100% { filter: brightness(1); }
}

/* Phones and tall windows: the room fills the top of the stage and the sign
   becomes a card in the dark space below it. */
.journey.is-stacked .journey__fade {
  display: block; position: absolute; left: 0; right: 0; pointer-events: none;
  top: calc(var(--plate-bottom, 60%) - 140px); height: 141px;
  background: linear-gradient(180deg, rgb(7 11 9 / 0), #070B09);
}
.journey.is-stacked .journey__head { max-width: calc(100% - 2rem); }
.journey.is-stacked .journey__hint { bottom: auto; top: calc(var(--plate-bottom, 60%) + 1.25rem); }
.journey.is-stacked .jsigns { z-index: 7; }
.journey.is-stacked .jsign {
  left: 1rem; right: 1rem; top: auto; bottom: max(1rem, env(safe-area-inset-bottom));
  width: auto; height: auto; transform: none !important;
}
.journey.is-stacked .jsign__post { display: none; }
.journey.is-stacked .jsign__board {
  position: relative; left: auto; bottom: auto; width: auto;
  transform: translateY(24px) scale(.96);
}
.journey.is-stacked .jsign.is-up .jsign__board { transform: none; }

/* ---------- the one big number ------------------------------------------ */

.feature {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgb(200 160 70 / .12), transparent 70%),
    var(--forest-deep);
  color: #E9E3D3;
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
  border-block: 1px solid rgb(200 160 70 / .35);
}
.feature__mark { display: block; margin: 0 auto 1.2rem; }
.feature__num { margin: 0; }
.feature__num .gold-text {
  display: block;
  font-family: var(--sans); font-weight: 700; line-height: .95;
  font-size: clamp(5rem, 19vw, 11rem); letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / .35));
}
.feature__label {
  display: block; margin-top: .6rem;
  font-size: clamp(.95rem, 2vw, 1.15rem); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.feature__note {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.35;
  max-width: 30ch; margin: 1.6rem auto 0; color: #F2EEE4;
}

/* ---------- faq: pinned heading, open answers ---------------------------- */

.faq {
  display: grid; gap: 1rem 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.faq__aside { align-self: start; position: sticky; top: 7rem; }
.faq__aside p { color: var(--muted); }
.faq__aside a { color: var(--text); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.qa { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.qa:first-child { border-top: 0; padding-top: .3rem; }
.qa h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.qa p { color: var(--muted); max-width: 64ch; margin: 0; }

@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .qa:first-child { border-top: 1px solid var(--border); padding-top: 1.5rem; }
}

/* ---------- closing band + footer: one dark block ----------------------- */

.cta-band {
  background:
    linear-gradient(180deg, rgb(12 36 25 / .62) 0%, rgb(12 36 25 / .86) 55%, var(--forest-deep) 100%),
    url("hero-posse.webp") center 38% / cover no-repeat,
    var(--forest-deep);
  color: #F2EEE4;
  text-align: center;
  padding-block: clamp(4.5rem, 12vw, 8rem) clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--gold-edge);
}
.cta-band h2 {
  color: #fff; max-width: 22ch; margin-inline: auto;
  text-shadow: 0 2px 0 #000, 0 3px 18px rgb(0 0 0 / .7);
}
.cta-band p { max-width: 50ch; margin-inline: auto; text-shadow: 0 1px 3px rgb(0 0 0 / .8); }
.cta-band .hero__actions { justify-content: center; }
.cta-band .btn--ghost { background: rgb(0 0 0 / .3); }

/* ---------- the gift Donate button --------------------------------------
   A real box built from CSS 3D panels: four walls, a floor, and a lid with
   its own four skirts, each panel wrapped in photographed paper and carrying
   its own length of satin ribbon. The photographed bow is drawn flat on top.

   At rest it floats as an exploded view, every panel pulled out along its
   own face direction. On hover (or keyboard focus, or .is-wrapped from
   gift.js on touch screens) it comes together in order: floor and walls
   slide home, the lid drops on, the ribbon runs across the lid and down each
   side, the bow lands, and a glint runs along the satin. Leaving reverses it.

   No clipping, by construction:
   - exploded panels are spaced so no two planes cross;
   - panels ease home without overshoot, so none passes through another;
   - the lid sits a few px above the walls and its skirts a few px outside;
   - the bow is not in the 3D scene at all, so nothing can slice through it.

   Each 3D part carries its two positions as --e (exploded) and --a
   (assembled), and its own delays for going in (--in) and out (--out).
   ----------------------------------------------------------------------- */

.cta-band .hero__actions { align-items: flex-end; }

.gift-donate {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit; border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
}
.gift-donate:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.gift-donate__label { pointer-events: none; }
.gift-donate:hover .gift-donate__label,
.gift-donate:focus-visible .gift-donate__label { filter: brightness(1.08); }

.gift {
  --w: 80px;             /* box footprint */
  --h: 57px;             /* box height */
  --lw: 86px;            /* lid footprint: 3px proud of the walls all round */
  --lh: 17px;            /* lid skirt depth */
  --rw: 10px;            /* ribbon width */
  --home: cubic-bezier(.2, .75, .25, 1);   /* decelerate, never overshoot */
  --apart: cubic-bezier(.5, 0, .75, .4);
  position: relative; display: block;
  width: 196px; height: 206px; margin-bottom: .6rem;
}
/* Warm light pooling behind the finished present. */
.gift::before {
  content: ""; position: absolute; inset: 14% 12% 6%;
  background: radial-gradient(closest-side, rgb(255 196 110 / .32), transparent);
  opacity: 0; transition: opacity .8s ease .2s;
}
.gift__shadow {
  position: absolute; left: 50%; top: 71%; width: 150px; height: 28px; margin-left: -75px;
  background: radial-gradient(closest-side, rgb(0 0 0 / .7), transparent);
  filter: blur(4px); opacity: .3; transform: scale(1.35, 1.1);
  transition: transform .8s var(--home), opacity .8s ease;
}
/* The gentle hover-in-the-air bob. 2D, so the 3D stage and the flat bow
   ride it together. */
.gift__float { position: absolute; inset: 0; animation: giftFloat 5.5s ease-in-out infinite; }
@keyframes giftFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(.6deg); }
}
.gift__stage { position: absolute; inset: 0; perspective: 820px; perspective-origin: 50% 30%; }
.gift__rig {
  position: absolute; left: 50%; top: 63%; transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-38deg);
  transition: transform 1.4s cubic-bezier(.2, .8, .25, 1);
}

.gift__part {
  position: absolute; left: 0; top: 0; transform-style: preserve-3d;
  transform: var(--e);
  transition: transform .6s var(--apart) var(--out, 0s);
}

/* Paper panels. The texture is a photographed sheet of wrapping paper; each
   panel shows a different patch of it so the stars don't line up. A thin
   darker edge reads as the fold where paper wraps a cardboard corner, and
   ::after is the panel's lighting (key light from the upper left). */
.gift__face, .gift__bottom, .lid__top, .lid__side {
  position: absolute; display: block;
  background: #8E1B22 url("designs/wrapping-paper.webp") 0 0 / 180px;
  box-shadow: inset 0 0 0 1px rgb(60 0 6 / .45), inset 0 1px 0 1px rgb(255 214 196 / .1);
  backface-visibility: hidden;
}
.gift__face::after, .gift__bottom::after, .lid__top::after, .lid__side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--shade);
}
.gift__face { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }

.gift__front {
  background-position: -30px -46px;
  --shade: linear-gradient(180deg, rgb(255 232 210 / .06), rgb(0 0 0 / .16));
  --a: translateZ(calc(var(--w) / 2));
  --e: translate3d(-9px, 7px, calc(var(--w) / 2 + 50px)) rotateX(8deg) rotateZ(-4deg);
  --in: .1s; --out: .36s;
}
.gift__right {
  background-position: -92px -16px;
  --shade: linear-gradient(180deg, rgb(0 0 0 / .3), rgb(0 0 0 / .46));
  --a: rotateY(90deg) translateZ(calc(var(--w) / 2));
  --e: rotateY(90deg) translate3d(6px, 5px, calc(var(--w) / 2 + 54px)) rotateZ(5deg);
  --in: .16s; --out: .32s;
}
.gift__back {
  background-position: -8px -115px;
  --shade: linear-gradient(180deg, rgb(0 0 0 / .4), rgb(0 0 0 / .55));
  --a: rotateY(180deg) translateZ(calc(var(--w) / 2));
  --e: rotateY(180deg) translate3d(6px, -5px, calc(var(--w) / 2 + 48px)) rotateZ(3deg);
  --in: .04s; --out: .4s;
}
.gift__left {
  background-position: -130px -85px;
  --shade: linear-gradient(180deg, rgb(255 232 210 / .1), rgb(0 0 0 / .1));
  --a: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  --e: rotateY(-90deg) translate3d(-6px, -3px, calc(var(--w) / 2 + 50px)) rotateZ(-4deg);
  --in: .07s; --out: .38s;
}
.gift__bottom {
  width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2);
  --shade: rgb(0 0 0 / .55);
  --a: translateY(calc(var(--h) / 2)) rotateX(90deg);
  --e: translateY(calc(var(--h) / 2 + 50px)) rotateX(90deg) rotateZ(7deg);
  --in: 0s; --out: .44s;
}

/* The lid is a group: a top and four short skirts that travel together.
   Its top rests 3px above the wall tops. */
.gift__lid {
  --a: translateY(calc(var(--h) / -2 + var(--lh) / 2 - 3px));
  --e: translateY(calc(var(--h) / -2 - 40px)) rotateX(11deg) rotateZ(-7deg);
  --in: .42s; --out: .16s;
}
.lid__top {
  width: var(--lw); height: var(--lw); margin: calc(var(--lw) / -2) 0 0 calc(var(--lw) / -2);
  background-position: -46px -70px;
  --shade: linear-gradient(135deg, rgb(255 236 214 / .26), rgb(255 236 214 / .04) 60%, rgb(0 0 0 / .08));
  transform: translateY(calc(var(--lh) / -2)) rotateX(90deg);
}
.lid__side {
  width: var(--lw); height: var(--lh); margin: calc(var(--lh) / -2) 0 0 calc(var(--lw) / -2);
  /* The skirt's bottom lip catches a little light and casts a soft shadow
     line onto the wall below it. */
  box-shadow: inset 0 0 0 1px rgb(60 0 6 / .45), inset 0 -2px 0 rgb(255 214 196 / .12), 0 3px 4px rgb(0 0 0 / .35);
}
.lid__front { background-position: -24px -150px; --shade: linear-gradient(180deg, rgb(255 232 210 / .04), rgb(0 0 0 / .14)); transform: translateZ(calc(var(--lw) / 2)); }
.lid__right { background-position: -70px -180px; --shade: rgb(0 0 0 / .36); transform: rotateY(90deg) translateZ(calc(var(--lw) / 2)); }
.lid__back  { background-position: -116px -8px; --shade: rgb(0 0 0 / .5); transform: rotateY(180deg) translateZ(calc(var(--lw) / 2)); }
.lid__left  { background-position: -150px -130px; --shade: rgb(0 0 0 / .1); transform: rotateY(-90deg) translateZ(calc(var(--lw) / 2)); }

/* The bow, flat, with its knot on the projected centre of the lid (101px
   down the stage: the lid-top centre after the rig's tilt and perspective).
   Its tails drape over the front edge, the way a real bow sits. */
.gift__bow {
  position: absolute; left: 50%; top: 101px; width: 0; height: 0;
  transform: translateY(-84px) rotate(-9deg) scale(.86);
  transition: transform .4s var(--apart);
}
.gift__bow img {
  position: absolute; display: block; width: 78px; height: auto; max-width: none;
  left: -39px; top: -22px; transform-origin: 50% 37%;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / .45));
}

/* Satin ribbon. The gradient runs across the band: dark selvedge, a bright
   sheen just off centre, honey gold in the middle. A ribbon starts at zero
   length and runs out along its panel once the box is together. */
.rib {
  position: absolute; display: block;
  --satin: #6E4E12 0%, #B8913C 12%, #EED9A0 32%, #FFF3CF 40%, #E3C478 52%, #B08A2E 76%, #74551A 100%;
  box-shadow: 0 0 2px rgb(0 0 0 / .5), 0 0 5px rgb(0 0 0 / .22);
  transition: transform .25s ease-in var(--rout, 0s);
}
.rib--v {
  left: 50%; top: 0; bottom: 0; width: var(--rw); margin-left: calc(var(--rw) / -2);
  background: linear-gradient(90deg, var(--satin));
  transform-origin: 50% 0; transform: scaleY(0);
}
.rib--x, .rib--y { left: 50%; top: 50%; }
.rib--x {
  width: 100%; height: var(--rw); margin: calc(var(--rw) / -2) 0 0 -50%;
  background: linear-gradient(180deg, var(--satin));
  transform: scaleX(0);
}
.rib--y {
  height: 100%; width: var(--rw); margin: -50% 0 0 calc(var(--rw) / -2);
  background: linear-gradient(90deg, var(--satin));
  transform: scaleY(0);
}
/* A glint that slides along each band once the bow is on. */
.rib::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgb(255 250 230 / .85) 50%, transparent 70%) 0 -200% / 100% 300% no-repeat;
}
.rib--x::after { background: linear-gradient(90deg, transparent 30%, rgb(255 250 230 / .85) 50%, transparent 70%) -200% 0 / 300% 100% no-repeat; }

/* Ribbon order: across the lid first, then down the lid skirts, then down
   the walls. Coming apart, the walls' ribbon goes first. */
.lid__top .rib   { --rin: .86s; --rout: .12s; }
.lid__side .rib  { --rin: .98s; --rout: .06s; }
.gift__face .rib { --rin: 1.05s; --rout: 0s; }

/* ---------- wrapped ---------- */
.gift-donate:hover .gift__part,
.gift-donate:focus-visible .gift__part,
.gift-donate.is-wrapped .gift__part {
  transform: var(--a);
  transition: transform .7s var(--home) var(--in, 0s);
}
.gift-donate:hover .gift__rig,
.gift-donate:focus-visible .gift__rig,
.gift-donate.is-wrapped .gift__rig { transform: rotateX(-24deg) rotateY(-30deg); }
.gift-donate:hover .gift__float,
.gift-donate:focus-visible .gift__float,
.gift-donate.is-wrapped .gift__float { animation-play-state: paused; }
.gift-donate:hover .gift::before,
.gift-donate:focus-visible .gift::before,
.gift-donate.is-wrapped .gift::before { opacity: 1; }
.gift-donate:hover .gift__shadow,
.gift-donate:focus-visible .gift__shadow,
.gift-donate.is-wrapped .gift__shadow { transform: scale(.8, .8); opacity: .9; transition-delay: .2s; }

.gift-donate:hover .rib,
.gift-donate:focus-visible .rib,
.gift-donate.is-wrapped .rib {
  transform: none;
  transition: transform .34s cubic-bezier(.3, .7, .3, 1) var(--rin, 0s);
}
.gift-donate:hover .rib::after,
.gift-donate:focus-visible .rib::after,
.gift-donate.is-wrapped .rib::after { animation: ribGlint 1.1s ease-in-out 1.7s both; }
.gift-donate:hover .rib--x::after,
.gift-donate:focus-visible .rib--x::after,
.gift-donate.is-wrapped .rib--x::after { animation-name: ribGlintX; }
@keyframes ribGlint  { 0% { opacity: 1; background-position: 0 -200%; } 100% { opacity: 1; background-position: 0 300%; } }
@keyframes ribGlintX { 0% { opacity: 1; background-position: -200% 0; } 100% { opacity: 1; background-position: 300% 0; } }

/* The bow drops on, then gives a little: squash on contact, loops spring back. */
.gift-donate:hover .gift__bow,
.gift-donate:focus-visible .gift__bow,
.gift-donate.is-wrapped .gift__bow { transform: none; transition: transform .42s cubic-bezier(.55, 0, .8, .45) 1.15s; }
.gift-donate:hover .gift__bow img,
.gift-donate:focus-visible .gift__bow img,
.gift-donate.is-wrapped .gift__bow img { animation: bowLand .65s ease-out 1.55s both; }
@keyframes bowLand {
  0%   { transform: scale(1, 1); }
  18%  { transform: scale(1.1, .84); }
  42%  { transform: scale(.95, 1.07); }
  66%  { transform: scale(1.03, .97); }
  100% { transform: scale(1, 1); }
}

@media (prefers-reduced-motion: reduce) {
  /* No exploding, no floating: the present is simply wrapped. */
  .gift__part { transform: var(--a) !important; }
  .gift__bow { transform: none !important; }
  .rib { transform: none !important; }
  .gift__float { animation: none; }
  .gift::before { opacity: 1; }
}

.site-footer { background: var(--forest-deep); color: #D8D3C6; padding: 0 clamp(1rem, 4vw, 2.5rem) 2.5rem; }
.site-footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding-top: 2.5rem;
  border-top: 1px solid rgb(200 160 70 / .28);
  display: grid; gap: 2rem 3rem;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}
.site-footer .brand__text strong { color: #fff; font-size: 1.2rem; }
.site-footer .brand__text small { color: var(--gold); }
.fineprint { font-size: .85rem; opacity: .75; max-width: 46ch; margin-top: 1rem; }
.footer-links { display: grid; gap: .5rem; align-content: start; }
.footer-links__label {
  margin: 0 0 .3rem; font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.footer-links a { text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}

/* ---------- small screens ----------------------------------------------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--text);
    transition: translate .18s ease, rotate .18s ease, opacity .18s ease;
  }
  .nav-toggle__bars::before { translate: 0 -6px; }
  .nav-toggle__bars::after  { translate: 0 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { translate: 0 0; rotate: 45deg; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { translate: 0 0; rotate: -45deg; }

  .nav {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav a.btn { text-align: center; margin-top: .9rem; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  /* Kill the sweeps outright rather than letting them snap to their end
     frame. The click-burst canvas disables itself in particles.js. */
  .glimmer::after { display: none; }
}
