/* Rosa · Community in full bloom
   Brand colours, fonts and rules: see design.md */

:root {
  --plum: #3A1A2E;
  --plum-2: #4E2440;
  --rose: #F08A9E;
  --blush: #FAC8CD;
  --cream: #FFF4EC;
  --bloom: #D9637E;        /* deeper rose: decoration and large display only */
  --skin: #E3A27E;
  --skin-shade: #C98463;

  /* Text roles below display size: body (paragraphs), small (supporting text and controls),
     label (bold tags and pills only). Nothing a person has to read goes below --text-small. */
  --text-body: 1.0625rem;  /* 17px */
  --text-small: 1rem;      /* 16px */
  --text-label: .875rem;   /* 14px, weight 600+ */
  --text-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem); /* 17-20px: the short intro under a section heading */

  --display: "Lora", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 32px;

  --z-header: 50;
  --z-intro: 100;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--plum);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.intro-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
::selection { background: var(--rose); color: var(--plum); }
html { scrollbar-color: var(--plum) var(--blush); accent-color: var(--plum); }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: italic; }
h2 em, h1 em { font-family: var(--display); font-weight: 600; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--plum); color: var(--cream); padding: .75rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border: 0; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .2s var(--ease-spring), background-color .2s, color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: scale(.97); }
.btn-plum { background: var(--plum); color: var(--cream); }
.btn-plum:hover { background: var(--plum-2); }
.btn-rose { background: var(--rose); color: var(--plum); }
.btn-rose:hover { background: var(--blush); }
.btn-xl { min-height: 60px; padding: 1rem 2rem; font-size: 1.125rem; }

.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  background: var(--plum); color: var(--cream);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: clip;
  transition: clip-path .9s var(--ease-out);
  clip-path: inset(0 0 0 0 round 0);
}
.intro[hidden] { display: none; }
.intro.leaving { clip-path: inset(0 0 100% 0 round 0 0 48px 48px); }

.intro-bokeh { position: absolute; inset: 0; pointer-events: none; overflow: clip; }
.intro-bokeh i {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45;
  background: var(--bloom);
  animation: drift 14s ease-in-out infinite alternate;
}
.intro-bokeh i:nth-child(1) { width: 40vmax; height: 40vmax; left: -10vmax; top: -10vmax; }
.intro-bokeh i:nth-child(2) { width: 26vmax; height: 26vmax; right: -6vmax; top: 20%; background: var(--rose); opacity: .25; animation-duration: 18s; }
.intro-bokeh i:nth-child(3) { width: 18vmax; height: 18vmax; left: 30%; bottom: -8vmax; animation-duration: 11s; }
.intro-bokeh i:nth-child(4) { width: 10vmax; height: 10vmax; left: 12%; top: 55%; background: var(--blush); opacity: .18; animation-duration: 16s; }
.intro-bokeh i:nth-child(5) { width: 14vmax; height: 14vmax; right: 18%; bottom: 10%; background: var(--rose); opacity: .2; animation-duration: 20s; }
@keyframes drift { to { transform: translate(6vmax, -4vmax) scale(1.15); } }

.intro-controls { position: relative; display: flex; justify-content: flex-end; gap: .5rem; z-index: 2; }
.intro-btn {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px;
  background: transparent; border: 2px solid currentColor; font-weight: 600; font-size: var(--text-small);
  transition: background-color .2s, color .2s;
}
.intro-btn:hover { background: var(--cream); color: var(--plum); }
.intro-skip { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.intro-skip:hover { background: var(--rose); border-color: var(--rose); }

.intro-stage { position: relative; display: grid; place-items: center; cursor: pointer; z-index: 1; min-height: 0; }
.frame {
  grid-area: 1 / 1; text-align: center;
  font-family: var(--display); font-size: clamp(2rem, 6.4vw, 5rem); line-height: 1.12; font-weight: 500;
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s;
  pointer-events: none;
}
.frame.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.frame em { color: var(--rose); }
.frame .soft { font-style: italic; color: var(--blush); }
.frame small { display: block; margin-top: 1.5rem; font-family: var(--sans); font-size: var(--text-small); color: var(--blush); }

.frame-final { display: grid; justify-items: center; gap: .25rem; }
.intro-bloom { width: clamp(7rem, 18vw, 11rem); margin-bottom: .5rem; overflow: visible; }
.intro-bloom ellipse { transform-box: view-box; transform-origin: 0 0; transform: rotate(var(--r)) scale(0); }
.petals-out ellipse { fill: var(--rose); }
.petals-in ellipse { fill: var(--blush); }
.bloom-core { fill: var(--rose); transform-box: view-box; transform-origin: 0 0; transform: scale(0); }
.frame-final.is-on .intro-bloom ellipse { animation: petal .9s var(--ease-spring) var(--d) forwards; }
.frame-final.is-on .bloom-core { animation: core .6s var(--ease-spring) .85s forwards; }
@keyframes petal { to { transform: rotate(var(--r)) scale(1); } }
@keyframes core { to { transform: scale(1); } }
.intro-word { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 12vw, 8rem); line-height: 1; }
.intro-tag { font-family: var(--display); font-style: italic; color: var(--rose); font-size: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.intro-enter { font-size: 1.125rem; min-height: 56px; padding-inline: 2rem; }

.intro-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.intro-dots { display: flex; gap: .5rem; }
.intro-dots li { width: 2.25rem; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--cream) 25%, transparent); overflow: hidden; position: relative; }
.intro-dots li.done { background: var(--rose); }
.intro-dots li.now::after {
  content: ""; position: absolute; inset: 0; background: var(--rose);
  transform-origin: left; animation: dot var(--dur, 3.6s) linear forwards;
}
.intro.paused .intro-dots li.now::after { animation-play-state: paused; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: color-mix(in srgb, var(--blush) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--plum) 14%, transparent);
}
.site-header.scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; min-height: 44px; }
.brand-mark { width: 2.25rem; height: 2.25rem; --petal: var(--bloom); --petal-in: var(--cream); transition: transform .6s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(72deg); }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: .25rem; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .25rem clamp(.45rem, .8vw, .8rem); border-radius: 999px; white-space: nowrap;
  text-decoration: none; font-weight: 600; font-size: var(--text-small); transition: background-color .2s;
}
.site-nav ul a:hover { background: color-mix(in srgb, var(--plum) 10%, transparent); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem;
    border: 2px solid var(--plum); border-radius: 999px; background: var(--cream); font-weight: 700; position: relative; z-index: 2;
  }
  .menu-icon { display: grid; gap: 5px; width: 18px; }
  .menu-icon i { display: block; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2rem;
    padding: 6rem var(--gutter) 2rem; background: var(--rose);
    clip-path: circle(0 at calc(100% - 3rem) 2rem); visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
  }
  .site-nav.open { clip-path: circle(150% at calc(100% - 3rem) 2rem); visibility: visible; transition: clip-path .7s var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { font-family: var(--display); font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 700; padding: .1rem 0; }
  .site-nav ul a:hover { background: none; font-style: italic; }
  .nav-donate { min-height: 56px; padding-inline: 2rem; font-size: 1.125rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "copy stage" "doors stage";
  padding: 6.5rem var(--gutter) 2rem;
  background: var(--blush);
}
.hero-copy { grid-area: copy; position: relative; z-index: 3; align-self: start; max-width: 34rem; }
.hero-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: .98; letter-spacing: -.01em;
  margin-bottom: 1.25rem; outline: none; /* focused only by script after the intro, never by Tab */
  text-wrap: balance;
}
.hero-title em { color: var(--bloom); }
.hero-title .hl { display: inline-block; }

/* GSAP entrance: pieces stay hidden until site.js sets their start state.
   Failsafe: if the scripts never run, they show anyway after 4s.
   Doors fade with opacity only, so they stay in the Tab order. */
.hero-anim .hero :is(.hl, .hero-lede, .mega span, .mascot-svg, .sticker-svg, .bubble) {
  visibility: hidden; animation: hero-failsafe 0s 4s forwards;
}
.hero-anim .hero .door { opacity: 0; animation: hero-failsafe-fade 0s 4s forwards; }
@keyframes hero-failsafe { to { visibility: visible; } }
@keyframes hero-failsafe-fade { to { opacity: 1; } }
.hero.entering .door { transition: none; }

/* Exit: as the hero scrolls away, --exit goes 0 → 1 (ScrollTrigger in site.js).
   Each layer moves at its own speed using translate/scale/rotate, which stack on top of the
   transforms the entrance and the cursor-follow already use. Stays 0 with reduced motion. */
.hero { --exit: 0; }
.hero-copy  { translate: 0 calc(var(--exit) * -14svh); opacity: calc(1 - var(--exit) * 1.8); }
.hero-doors { translate: 0 calc(var(--exit) * -8svh);  opacity: calc(1 - var(--exit) * 2.2); }
.mega       { translate: 0 calc(var(--exit) * 34svh);  scale: calc(1 + var(--exit) * .12); transform-origin: 50% 100%; }
.mascot     { translate: 0 calc(var(--exit) * 16svh); }
.sticker    { translate: calc(var(--exit) * 6vw) calc(var(--exit) * -42svh); rotate: calc(var(--exit) * 140deg); }
.hero-lede { font-size: var(--text-lead); max-width: 32ch; text-wrap: pretty; }

.hero-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mega {
  position: absolute; left: 50%; bottom: -.08em; transform: translateX(-28%);
  display: flex; font-family: var(--sans); font-weight: 900; line-height: .8; letter-spacing: -.05em;
  font-size: min(36vw, 72svh); color: var(--plum); white-space: nowrap; user-select: none;
}
.mega span { display: inline-block; will-change: transform; }
.mega .outline { color: transparent; -webkit-text-stroke: max(3px, .012em) var(--plum); }
.mega .pink { color: var(--rose); }

.mascot {
  position: absolute; bottom: 0; left: 64%; transform: translateX(-50%);
  /* also capped by screen height (body is 400:560), so on short screens her head and bubble stay below the nav */
  width: min(30rem, 40vw, calc((100svh - 10rem) * 5 / 7)); pointer-events: auto; z-index: 2;
}
.mascot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 40% 40% 0 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mascot-btn:focus-visible { outline-offset: -6px; }
.mascot-svg { width: 100%; height: auto; overflow: visible; }
#m-head { transform-box: view-box; transform-origin: 200px 360px; }
#m-arm { transform-box: view-box; transform-origin: 318px 468px; }
#m-body { transform-box: view-box; transform-origin: 200px 560px; }
#m-eyes { transform-box: view-box; transform-origin: 200px 238px; transition: transform .08s; }
#m-eyes.blink { transform: scaleY(.1); }
.m-open { opacity: 0; }
.mascot.talking .m-open { opacity: 1; }
.mascot.talking .m-smile { opacity: 0; }
.mascot.waving #m-arm { animation: wave 1.2s ease-in-out; }
@keyframes wave { 0%,100% { transform: rotate(0); } 20%,60% { transform: rotate(-14deg); } 40%,80% { transform: rotate(10deg); } }

.bubble {
  position: absolute; top: 4%; right: -6%; z-index: 3; width: max-content; max-width: 15rem;
  background: var(--cream); border: 3px solid var(--plum); border-radius: 22px 22px 22px 4px;
  padding: .6rem 1rem; font-weight: 700; font-size: 1rem; line-height: 1.3;
  transform-origin: bottom left; transition: transform .35s var(--ease-spring), opacity .2s;
}
.bubble.pop { animation: pop .45s var(--ease-spring); }
@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }

.sticker { position: absolute; top: 18%; right: 4%; width: clamp(6rem, 11vw, 9.5rem); z-index: 2; --petal: var(--rose); --petal-in: var(--cream); }
.sticker-svg { width: 100%; height: auto; }
.sticker text { font-family: var(--sans); font-weight: 800; font-size: 15.5px; letter-spacing: .14em; fill: var(--cream); }
/* spins on its own */
.sticker-spin { transform-box: view-box; transform-origin: 100px 100px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-doors { grid-area: doors; position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 36rem; align-self: end; }
.door {
  display: grid; gap: .2rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); text-decoration: none;
  border: 3px solid var(--plum); transition: transform .25s var(--ease-spring), background-color .2s;
  min-height: 48px; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.door:is(:hover, :focus-visible) { transform: translateY(-4px) rotate(-1.5deg); }
.door:active { transform: scale(.98); }
.door-help { background: var(--cream); }
.door-give { background: var(--plum); color: var(--cream); }
.door-give:is(:hover, :focus-visible) { transform: translateY(-4px) rotate(1.5deg); }
/* two-tone ring: cream band + plum outline, visible on blush and over the plum letters */
.door:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cream); }
.door-k { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; }
.door-s { font-size: var(--text-small); font-weight: 500; line-height: 1.4; }
.hero-talk {
  grid-column: 1 / -1; justify-self: start; font-size: var(--text-small); line-height: 1.45;
  /* solid ground so it stays readable where the mascot or letters sit behind it */
  background: var(--blush); padding: .35rem .75rem; margin-inline: -.75rem; border-radius: 14px;
}
.hero-talk a { font-weight: 700; padding-block: .6rem; }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto;
    grid-template-areas: "copy" "stage" "doors";
    padding-top: 6rem; min-height: auto;
  }
  .hero-stage { position: relative; grid-area: stage; height: min(64vw, 24rem); margin-inline: calc(var(--gutter) * -1); }
  .hero-lede { font-size: var(--text-body); }
  .hero-title { margin-bottom: .75rem; }
  .mega { font-size: 40vw; left: 50%; transform: translateX(-50%); bottom: -.06em; }
  .mascot { left: 56%; width: min(17rem, 50vw); }
  /* right edge held 1rem inside the screen (mascot is centred at 56vw), so long lines grow leftwards, not off-screen */
  .bubble { left: auto; right: calc(1rem - 44vw + 50%); top: .5rem; font-size: var(--text-small); max-width: 12.5rem; }
  .sticker { top: 0; right: auto; left: var(--gutter); width: 5.5rem; }
  .hero-doors { margin-top: 1rem; max-width: none; }
}
@media (max-width: 420px) {
  .hero-doors { grid-template-columns: 1fr; }
  /* the 1737 line sits right under "I want help", inside the first screen */
  .hero-talk { order: 1; }
  .door-give { order: 2; }
}

/* ---------- Who we are ---------- */
.who { background: var(--plum); color: var(--cream); padding-block: clamp(4rem, 9vw, 8rem); overflow: hidden; }
.rows { display: grid; gap: .25rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.row {
  display: flex; align-items: center; gap: .3em; white-space: nowrap; width: max-content;
  font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em;
  font-size: clamp(3.5rem, 12vw, 11rem); line-height: .95; will-change: transform;
}
.row:nth-child(2) { margin-left: -30vw; }
.row .o { color: transparent; -webkit-text-stroke: 2px var(--rose); }
.row svg { width: .7em; height: .7em; flex: none; --petal: var(--rose); --petal-in: var(--blush); }
.row:nth-child(2) span:not(.o) { color: var(--rose); }

.who-body { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.who-statement { font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.2; max-width: 28ch; }
.who-statement span { color: var(--rose); font-style: italic; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar { padding: 1.75rem; border-radius: var(--r-lg); background: var(--plum-2); position: relative; transition: transform .3s var(--ease-spring); }
.pillar:hover { transform: rotate(-1.5deg) translateY(-6px); }
.pillar:nth-child(2) { background: var(--rose); color: var(--plum); }
.pillar:nth-child(2):hover { transform: rotate(1.5deg) translateY(-6px); }
.pillar h3 { font-family: var(--display); font-size: 1.85rem; line-height: 1.1; margin-bottom: .5rem; }
.pillar p { max-width: 34ch; }

.goals { border-top: 2px solid color-mix(in srgb, var(--cream) 20%, transparent); padding-top: 2rem; }
.goals-title { font-family: var(--display); font-weight: 600; font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--cream); margin-bottom: 1.5rem; text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.goals-link { margin-top: 2rem; }
.goals-link a { font-weight: 700; color: var(--rose); min-height: 44px; display: inline-flex; align-items: center; }
.goals-link a::after, a[href^="http"]::after {
  content: ""; display: inline-block; flex: none; width: .95em; height: .95em; margin-left: .25em; vertical-align: -.12em;
  background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
}
.goals-link a { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
/* links that leave the site; screen readers get "(opens their site)" from the markup */
a[href^="http"] { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9 8h7v7'/%3E%3C/svg%3E"); }
.stat { display: flex; flex-direction: column-reverse; gap: .25rem; }
.stat dd { font-weight: 800; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1; color: var(--rose); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat dt { color: var(--blush); max-width: 24ch; }

@media (max-width: 760px) {
  .pillars, .stats { grid-template-columns: 1fr; }
}

/* ---------- Moments gallery ---------- */
.moments { background: var(--rose); position: relative; }
/* Pinned and moved by GSAP ScrollTrigger (site.js). Without it, the row simply scrolls sideways. */
.gallery-pin { height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
html:not(.st) .gallery-pin { overflow-x: auto; overscroll-behavior-x: contain; }
html:not(.st) .g-progress { display: none; }
.gallery-track {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 5rem var(--gutter) 3rem; width: max-content; will-change: transform;
}
.g-title { width: min(34rem, 80vw); flex: none; }
.g-title h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.04em; margin-bottom: 1.25rem; }
.g-title h2 em { color: var(--cream); letter-spacing: -.01em; }
.g-title p { font-size: var(--text-lead); max-width: 26ch; font-weight: 500; }
.g-hint-touch { display: none; }
.g-hint { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-weight: 700; }
.g-hint svg { width: 1.5rem; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.g-card { flex: none; width: clamp(15rem, 22vw, 20rem); }
.g-card:nth-child(odd) { transform: rotate(-2.5deg) translateY(-1.5rem); }
.g-card:nth-child(even) { transform: rotate(2deg) translateY(1.5rem); }
.g-card.g-wide { width: clamp(20rem, 34vw, 32rem); }
.g-card figure { background: var(--cream); padding: .75rem .75rem 1rem; border-radius: var(--r-md); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--plum) 55%, transparent); transition: transform .4s var(--ease-spring); }
.g-card figure:hover { transform: scale(1.04) rotate(1deg); }
.g-media { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--plum); }
.g-tall .g-media { aspect-ratio: 3 / 4.4; }
.g-wide .g-media { aspect-ratio: 4 / 3; }
.g-video .g-media { aspect-ratio: 9 / 16; }
.g-media video, .g-media img { width: 100%; height: 100%; object-fit: cover; }
figcaption { padding: .75rem .25rem 0; font-size: var(--text-small); line-height: 1.45; }
figcaption strong { display: block; font-family: var(--display); font-size: 1.25rem; }

.g-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 3px solid var(--cream);
  background: color-mix(in srgb, var(--plum) 70%, transparent); color: var(--cream);
  display: grid; place-items: center; transition: transform .3s var(--ease-spring), background-color .2s;
}
.g-play svg { width: 1.75rem; margin-left: 4px; }
.g-play:hover { transform: scale(1.12); background: var(--bloom); }

.g-slot { display: grid; place-items: center; }
.g-slot svg { width: 55%; height: auto; opacity: .9; }
.slot-a { background: var(--plum); --petal: var(--rose); --petal-in: var(--blush); }
.slot-b { background: var(--blush); --petal: var(--bloom); --petal-in: var(--cream); }
.slot-c { background: var(--bloom); --petal: var(--cream); --petal-in: var(--plum); }
.slot-d { background: var(--plum-2); --petal: var(--blush); --petal-in: var(--rose); }
.slot-a svg { animation: spin 40s linear infinite; }
.slot-tag { position: absolute; left: .75rem; bottom: .75rem; padding: .25rem .7rem; border-radius: 999px; background: var(--cream); color: var(--plum); font-size: var(--text-label); font-weight: 600; }

.g-end { flex: none; width: min(26rem, 80vw); display: grid; gap: 1.5rem; justify-items: start; padding-right: var(--gutter); }
.g-end-k { font-family: var(--sans); font-weight: 900; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.04em; }
.g-end-k em { font-family: var(--display); color: var(--cream); }

.g-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--plum) 20%, transparent); }
.g-progress i { display: block; height: 100%; width: 100%; background: var(--plum); border-radius: inherit; transform-origin: left; transform: scaleX(0); }

/* Narrow screens: a sideways swipe row (one card at a time, the next one peeking), about one screen tall */
@media (max-width: 899px) {
  .gallery-pin { height: auto; overflow: visible; }
  .gallery-track {
    width: auto; display: flex; align-items: center; gap: 1rem;
    padding: 4rem var(--gutter) 3.5rem; transform: none !important;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-track > li { flex: none; scroll-snap-align: start; }
  .g-title, .g-end { width: min(80vw, 24rem); padding-right: 0; }
  .g-card, .g-card.g-wide { width: min(74vw, 19rem); }
  .g-card.g-wide { width: min(84vw, 24rem); }
  .g-end { margin-right: var(--gutter); }
  .g-card:nth-child(odd), .g-card:nth-child(even) { transform: none; }
  .g-card:nth-child(odd) figure { rotate: -1.5deg; }
  .g-card:nth-child(even) figure { rotate: 1.5deg; }
  .g-hint .g-hint-desk { display: none; }
  .g-hint .g-hint-touch { display: inline; }
  .g-progress { display: none; }
}

/* ---------- Switch ---------- */
.switch {
  --sw-bg: var(--blush); --sw-fg: var(--plum); --sw-card: var(--cream); --sw-accent: var(--bloom);
  background: var(--sw-bg); color: var(--sw-fg);
  padding-block: clamp(4rem, 9vw, 8rem);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.switch[data-mode="give"] { --sw-bg: var(--plum); --sw-fg: var(--cream); --sw-card: var(--plum-2); --sw-accent: var(--rose); }
.switch-title { font-family: var(--sans); font-weight: 900; font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.04em; margin-bottom: 2.5rem; }
.switch-title em { color: var(--sw-accent); transition: color .3s; }

.toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 6px; border-radius: 999px; border: 3px solid currentColor; margin-bottom: 3rem;
  max-width: 100%;
}
.toggle-knob {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--sw-fg);
  transition: transform .55s var(--ease-spring), background-color .6s;
}
.switch[data-mode="give"] .toggle-knob { transform: translateX(100%); background: var(--rose); }
.toggle-opt {
  position: relative; z-index: 1; border: 0; background: none; min-height: 60px;
  padding: .75rem clamp(1rem, 3vw, 2.25rem); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.75rem); text-wrap: balance; line-height: 1.15;
  transition: color .4s;
}
.toggle-opt[aria-pressed="true"] { color: var(--sw-bg); }
.switch[data-mode="give"] .toggle-opt[aria-pressed="true"] { color: var(--plum); }

.panel { animation: panel-in .6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }

.urgent {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.4rem; border-radius: var(--r-md); background: var(--plum); color: var(--cream);
  margin-bottom: 1.5rem; max-width: 52rem;
}
.urgent svg { width: 1.75rem; flex: none; color: var(--rose); margin-top: .1rem; }
.urgent a { color: var(--rose); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.6rem; border-radius: var(--r-lg); background: var(--sw-card);
  transition: transform .3s var(--ease-spring); /* no colour fade: the panel itself fades in */
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; }
.card p { flex: 1; }
.card-cta { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.card-cta span { font-weight: 500; }
.card-rosa { background: var(--rose); color: var(--plum); }

.give-lead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: var(--rose); color: var(--plum); margin-bottom: 1rem;
}
.give-lead h3 { font-family: var(--sans); font-weight: 900; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; margin-bottom: .5rem; }
.give-lead p { max-width: 48ch; }

/* ---------- Organisations wall ---------- */
.orgs { background: var(--cream); padding-block: clamp(4rem, 9vw, 8rem); }
.orgs-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.orgs-head h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.04em; }
.orgs-head h2 em { color: var(--bloom); }
.orgs-head p { max-width: 40ch; font-size: var(--text-lead); }
@media (max-width: 760px) { .orgs-head { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--plum); background: transparent;
  font-weight: 600; font-size: var(--text-small); transition: background-color .2s, color .2s, transform .2s var(--ease-spring);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--plum); color: var(--cream); }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; perspective: 1200px; }
.org {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem; border-radius: var(--r-lg); background: var(--blush);
  transform-style: preserve-3d; transition: transform .35s var(--ease-out), opacity .3s;
  --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.org[hidden] { display: none; }
.org h3 { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.org p { font-size: var(--text-small); }
.org .org-partner { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; justify-self: start; padding: .2rem .7rem .2rem .4rem; border-radius: 999px; background: var(--plum); color: var(--cream); font-size: var(--text-label); font-weight: 700; }
.org-partner svg { width: 1.1rem; height: 1.1rem; --petal: var(--rose); --petal-in: var(--blush); }
.org-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: auto; padding-top: .5rem; }
.org-links a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* Two-sided badge: monogram on the front, a community photo on the back.
   Desktop: hover or keyboard focus turns it over and holds it. Touch screens: it turns over once as it scrolls into view (site.js). */
.badge {
  position: relative; width: 6.5rem; height: 6.5rem; margin-bottom: .75rem;
  font-family: var(--sans); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em;
  transform-style: preserve-3d; transition: transform .9s var(--ease-spring);
  transform: translateZ(30px);
}
.badge-face {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.badge-front { background: var(--badge-bg); box-shadow: var(--badge-ring, none); }
.badge-back { transform: rotateY(180deg); background: var(--plum); box-shadow: inset 0 0 0 3px var(--plum); }
.badge-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.org:hover .badge, .org:focus-within .badge { transform: translateZ(30px) rotateY(180deg) scale(1.06); }
.org.peek .badge { animation: badge-peek 2.2s var(--ease-out); }
@keyframes badge-peek {
  0% { transform: translateZ(30px) rotateY(0); }
  30%, 70% { transform: translateZ(30px) rotateY(180deg); }
  100% { transform: translateZ(30px) rotateY(360deg); }
}
.s1 { border-radius: 50%; }
.s2 { border-radius: 50% 50% 50% 8px; }
.s3 { border-radius: 30%; }
.s4 { border-radius: 62% 38% 56% 44% / 48% 60% 40% 52%; }
.c1 { --badge-bg: var(--plum); color: var(--rose); }
.c2 { --badge-bg: var(--rose); color: var(--plum); }
.c3 { --badge-bg: var(--bloom); color: var(--cream); font-size: 1.6rem; }
.c4 { --badge-bg: var(--cream); --badge-ring: inset 0 0 0 3px var(--plum); color: var(--plum); }
.wall-more { margin-top: 1.25rem; }

/* Phones: the wall becomes a compact list (small badge beside the name), and site.js shows the
   first four until "Show all 12" is pressed, so help is a short scroll instead of ten screens. */
@media (max-width: 599px) {
  .wall { gap: .75rem; perspective: none; }
  .org { perspective: 500px; }
  .org {
    display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1rem; row-gap: .35rem; align-items: start;
    padding: 1rem 1.1rem; border-radius: var(--r-md); transform: none;
  }
  .org > * { grid-column: 2; }
  .org .badge {
    grid-column: 1; grid-row: 1 / span 3; width: 3.25rem; height: 3.25rem; margin: 0;
    font-size: .8rem; transform: none;
  }
  .org:hover .badge, .org:focus-within .badge { transform: rotateY(180deg); }
  .org h3 { font-size: 1.2rem; }
  .org-links { padding-top: 0; }
  .wall-more { width: 100%; }
}

/* ---------- Campaigns ---------- */
.campaigns { background: var(--plum); color: var(--cream); padding-block: clamp(4rem, 9vw, 8rem); }
.campaigns h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.04em; margin-bottom: 2.5rem; }
/* all one voice here: Poppins black throughout, the second word only changes colour */
.campaigns h2 em { color: var(--rose); font-family: var(--sans); font-style: normal; font-weight: 900; }
.camp { border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--plum-2); position: relative; overflow: hidden; }
.camp h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; margin-bottom: .75rem; }
.camp p { max-width: 50ch; }
.camp-tag { display: inline-block; font-size: var(--text-label); font-weight: 600; padding: .25rem .8rem; border-radius: 999px; border: 2px solid currentColor; margin-bottom: 1rem; }
.camp-main { background: var(--rose); color: var(--plum); display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem; margin-bottom: 1rem; }
.camp-main h3 { font-family: var(--sans); font-weight: 900; font-size: clamp(2.25rem, 4.6vw, 4rem); letter-spacing: -.03em; line-height: .98; }
.camp-main .btn { margin-top: 1.5rem; }
.camp-main .btn-rose { background: var(--plum); color: var(--cream); }
.camp-main .btn-rose:hover { background: var(--plum-2); }
.camp-rose { width: 100%; max-width: 22rem; height: auto; aspect-ratio: 1; justify-self: center; --petal: var(--plum); --petal-in: var(--blush); animation: spin 60s linear infinite; }
.camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) {
  .camp-main { grid-template-columns: 1fr; }
  .camp-rose { max-width: 9rem; position: absolute; right: -1.5rem; top: -1.5rem; opacity: .35; }
  .camp-grid { grid-template-columns: 1fr; }
}

.meter { margin-top: 1.25rem; max-width: 34rem; }
.meter-bar { height: 18px; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.camp:not(.camp-main) .meter-bar i { background: var(--rose); }
.meter-label { margin-top: .5rem; font-weight: 600; font-size: var(--text-small); }
.meter[data-empty] .meter-bar { display: none; }

/* ---------- Thanks ---------- */
.thanks { background: var(--rose); padding-block: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.thanks-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end; margin-bottom: 2.5rem; }
/* a thank-you, so the whole line is the warm serif, not the poster recipe */
.thanks-head h2 { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1; letter-spacing: -.02em; }
.thanks-head h2 em { color: var(--cream); font-style: italic; }
.thanks-head p { grid-column: 1; max-width: 46ch; font-size: var(--text-lead); }
/* the frame is screen-wide and tilts around the screen's centre, so neither end drops onto the content below */
.marquee { display: flex; overflow: hidden; width: calc(100% + 4rem); margin-inline: -2rem; border-block: 3px solid var(--plum); padding-block: 1.25rem; background: var(--blush); rotate: -1.5deg; }
.marquee-track { display: flex; flex: none; animation: marquee 36s linear infinite; }
.marquee-track li {
  font-family: var(--sans); font-weight: 900; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.03em; line-height: 1.1;
  padding-inline: 1.5rem; display: flex; align-items: center; gap: 1.5rem; white-space: nowrap;
}
.marquee-track li::after { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--bloom); }
.marquee-track li.alt { font-family: var(--display); font-style: italic; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-100%); } }
.thanks-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 3rem; font-weight: 600; font-size: var(--text-lead); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--cream); padding-top: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer-grid p + p { margin-top: .75rem; }
.footer-grid a { color: var(--rose); font-weight: 600; }
.footer-line { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; max-width: 30ch; }
.footer-k { font-weight: 700; color: var(--rose); }
.footer-grid .link-btn { color: var(--cream); font-weight: 600; min-height: 44px; }
.footer-mega {
  font-family: var(--display); font-weight: 700; font-size: 38vw; line-height: .78; text-align: center; letter-spacing: -.03em;
  color: var(--rose); margin-top: 2rem; margin-bottom: -.12em;
}
.footer-small { padding-block: 1.25rem; font-size: var(--text-small); color: var(--blush); position: relative; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 30rem); width: 100%; overflow: visible; }
.lightbox::backdrop { background: color-mix(in srgb, var(--plum) 88%, transparent); }
.lightbox video { width: 100%; max-height: 82svh; border-radius: var(--r-md); background: var(--plum); }
.lightbox-close { position: absolute; top: -3.5rem; right: 0; min-height: 44px; padding: .5rem 1.25rem; border-radius: 999px; border: 0; background: var(--cream); color: var(--plum); font-weight: 700; }

/* ---------- Reveal ---------- */
/* Hidden until ScrollTrigger.batch brings them in (site.js); no CSS transition while GSAP moves them */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal:not(.in) { transition: none; }
.js .reveal.in { opacity: 1; transform: none; }

/* Reduced motion: not followed. Animations always play (owner's decision, Dec 2026).
   The old reduced-motion block is in archive/pre-scrolltrigger/site.css if it's ever wanted back. */

/* ---------- Language screen + header button ---------- */
.lang-gate {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; overflow-y: auto;
  padding: 2.5rem var(--gutter); background: var(--plum); color: var(--cream);
}
.lang-gate[hidden] { display: none; }
.lang-inner { width: min(100%, 32rem); text-align: center; }
.lang-mark { display: block; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem; --petal: var(--rose); --petal-in: var(--blush); animation: lang-bloom .9s var(--ease-spring) both; }
.lang-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1.05; text-wrap: balance; }
.lang-sub { margin-top: .9rem; color: var(--blush); font-size: var(--text-small); line-height: 1.8; text-wrap: balance; }
.lang-list { display: grid; gap: .75rem; margin-top: 2.25rem; }
.lang-list li { animation: lang-in .6s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * 70ms); }
.lang-list button {
  width: 100%; min-height: 60px; padding: .6rem 1.5rem; border-radius: 999px; border: 2px solid var(--rose);
  background: transparent; color: var(--cream); font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, transform .25s var(--ease-spring);
}
.lang-list button:hover, .lang-list button[aria-pressed="true"] { background: var(--rose); color: var(--plum); }
.lang-list button:hover { transform: translateY(-2px); }
.lang-list button:active { transform: scale(.98); }
.lang-list button:focus-visible { outline-color: var(--rose); }
@keyframes lang-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes lang-bloom { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }

.lang-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .85rem;
  border: 2px solid var(--plum); border-radius: 999px; background: transparent; font-weight: 700; font-size: var(--text-small);
  white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .2s;
}
.lang-btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.lang-btn:hover { background: color-mix(in srgb, var(--plum) 10%, transparent); }

/* Scripts with no Latin tracking or tight leading: Chinese and Hindi */
html:is(:lang(zh-Hans), :lang(hi)) :not(.mega, .mega *, .footer-mega) { letter-spacing: normal !important; }
html:lang(hi) :is(h1, h2, h3, .row, .door-k, .g-end-k, .switch-title, .give-lead h3, .stat dd, .hl) { line-height: 1.3 !important; }
html:lang(zh-Hans) :is(h1, h2, h3, .row, .switch-title, .g-end-k, .hl) { line-height: 1.15 !important; }
/* Samoan nav labels are the longest: on narrow desktops, tighten the nav and show the language button as just its globe */
@media (min-width: 961px) and (max-width: 1100px) {
  html:lang(sm) .site-nav { gap: 1rem; }
  html:lang(sm) .site-nav ul a { font-size: .9375rem; padding-inline: .35rem; }
  html:lang(sm) .lang-code { display: none; }
}
