/* =========================================================================
   HCI UK — theme.css
   Tokens, font sets, and everything Tailwind utilities can't express
   (sticker masks, overlays, motion). Colours match the HCI Canada build
   (hci-prototype/shared.css) so the two sites read as one family.
   ========================================================================= */

:root {
  --red: #E32226;
  --red-dark: #B71C1F;      /* red TEXT on light grounds (AA) */
  --red-tint: #FCEBEB;
  --maroon: #4A0E10;
  --maroon-2: #3A0A0C;
  --maroon-3: #2A0708;
  --sand: #FAF7F4;
  --sand-2: #F3ECE6;
  --ink: #151312;
  --ink-2: #4A423E;
  --ink-3: #7A6E68;
  --line: #EAE0D9;
  --on-dark-2: #E8D2CF;
  --on-dark-3: #C79E99;
  --blush: #FF9E96;
  --cream: #FFF4E8;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --gutter: 16px;
  --header-h: 72px;
  --dock-h: 0px;

  /* Fonts: Anton / Instrument Serif / Caveat / DM Sans */
  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-script: "Caveat", "Segoe Print", cursive;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-track: .005em;
  --display-scale: 1;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 54px; } }

/* ------------------------------------------------------------------ BASE */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Tailwind's preflight loads after this file and resets heading weight;
   these selectors out-rank it. */
body :is(h1, h2, h3, h4) { font-weight: 400; line-height: 1; }
body .display {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: var(--display-track);
  line-height: .92;
  font-weight: 400;
}
body .serif { font-family: var(--f-serif); font-weight: 400; text-transform: none; letter-spacing: -.01em; }
body .serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
body .script { font-family: var(--f-script); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1; }

.fs-hero { font-size: calc(clamp(3.3rem, min(11.5vw, 10.5vh), 7.6rem) * var(--display-scale)); }
.fs-h2 { font-size: calc(clamp(2.6rem, 7.4vw, 5.6rem) * var(--display-scale)); }
.fs-h3 { font-size: calc(clamp(1.9rem, 4.4vw, 3rem) * var(--display-scale)); }

.shell { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--blush); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.skip:focus { left: 8px; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 999px; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ BUTTONS */
.btn {
  --b: var(--red); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--b); color: var(--c);
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 6px 18px -6px rgba(227, 34, 38, .55);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: #CC1B1F; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { --b: transparent; --c: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--white { --b: #fff; --c: var(--ink); box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); }
.btn--white:hover { background: var(--cream); }
.btn--ink { --b: var(--ink); --c: #fff; box-shadow: none; }
.btn--muted { --b: var(--sand-2); --c: var(--ink); box-shadow: none; }
.btn--muted:hover { background: var(--line); }
.btn--ink:hover { background: #000; }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn .arr {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); transition: transform .4s var(--ease);
}
.btn--white .arr, .btn--ghost .arr { background: rgba(227,34,38,.12); color: var(--red-dark); }
.btn:hover .arr { transform: rotate(-45deg); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.dotlink { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.dotlink::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transition: transform .35s var(--ease); }
.dotlink:hover::before { transform: scale(1.8); }

/* ------------------------------------------------------------- ANNOUNCE + MARQUEE */
.marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: flex; flex: none; min-width: 100%; animation: marquee var(--dur, 38s) linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item { display: inline-flex; align-items: center; gap: .9rem; padding-right: 2.25rem; }
.marquee__item::after { content: "✦"; color: var(--red); font-size: .7em; }

/* ------------------------------------------------------------------ HEADER */
.hdr {
  position: fixed; inset: 10px 10px auto; z-index: 50;
  transition: transform .6s var(--ease), top .4s var(--ease);
}
.hdr__bar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  max-width: 1340px; margin-inline: auto;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(20, 6, 7, .72);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  color: #fff;
  transition: background-color .5s var(--ease);
}
.is-scrolled .hdr__bar { background: rgba(20, 6, 7, .92); }
.hdr.is-hidden { transform: translateY(calc(-100% - 20px)); }
.hdr__logo img { height: 30px; width: auto; }
@media (min-width: 1024px) { .hdr__logo img { height: 34px; } }
.navlink {
  position: relative; display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: 999px; font-weight: 500; font-size: .93rem;
  color: rgba(255,255,255,.88); transition: color .3s, background-color .3s;
}
.navlink:hover, .navlink[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.08); }
.navlink .chev { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.navlink[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pill-ajr {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.1); font-size: .86rem; font-weight: 700; color: #fff;
}
.pill-ajr .pulse { width: 7px; height: 7px; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 0 rgba(59,209,111,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(59,209,111,0); } 100% { box-shadow: 0 0 0 0 rgba(59,209,111,0); } }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: background-color .3s, transform .4s var(--ease);
}
.iconbtn:hover { background: rgba(255,255,255,.18); }

/* Mega menu */
/* Anchored to the fixed header (not the Appeals button) so it's centred on screen
   and never runs off the left edge. */
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px); width: min(980px, calc(100vw - 40px));
  max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
  background: #fff; color: var(--ink); border-radius: 26px; padding: 18px;
  box-shadow: 0 30px 80px -20px rgba(42,7,8,.45);
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__item { display: flex; gap: .8rem; align-items: center; padding: 8px; border-radius: 16px; transition: background-color .3s; }
.mega__item:hover { background: var(--sand); }
.mega__item img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.mega__item b { display: block; font-size: .95rem; }
.mega__item span { font-size: .8rem; color: var(--ink-3); }
.mega__item:hover b { color: var(--red-dark); }
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: #fff; color: var(--ink); border-radius: 20px; padding: 8px;
  box-shadow: 0 30px 80px -20px rgba(42,7,8,.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.drop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop a { display: block; padding: .6rem .8rem; border-radius: 12px; font-weight: 500; transition: background-color .25s, transform .3s var(--ease), color .25s; }
.drop a:hover { background: var(--sand); color: var(--red-dark); transform: translateX(4px); }

/* ------------------------------------------------------------------ HERO */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, #6B1518 0%, var(--maroon) 42%, var(--maroon-3) 100%);
  padding-top: calc(var(--header-h) + 34px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero::before { /* grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: 60% 30%;
  opacity: .16; filter: grayscale(.4) contrast(1.05);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 92%);
}
.hero__title .ln { display: block; }
.hero__title .ln--serif { font-family: var(--f-serif); font-style: italic; text-transform: none; color: var(--blush); letter-spacing: -.02em; line-height: .95; font-size: .8em; }
.hero__note { transform: rotate(-4deg); color: #FFD9A8; }
.hero__note svg { color: #FFD9A8; }
.quotebubble {
  position: relative; display: inline-block; white-space: nowrap; background: #fff; color: var(--ink);
  padding: .55rem 1rem; border-radius: 16px 16px 16px 4px; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.trustline { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .82rem; color: var(--on-dark-2); }
.trustline span { display: inline-flex; align-items: center; gap: .35rem; }

/* Sticker rail — sits across the hero's bottom edge */
.stickers {
  position: relative; margin-top: clamp(28px, 5vw, 56px);
  display: flex; gap: clamp(10px, 2vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 26px var(--gutter) 34px; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.stickers::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .stickers { justify-content: center; overflow: visible; padding-bottom: 0; margin-bottom: -64px; z-index: 3; }
}
.sticker {
  --tilt: 0deg; --float: 0px;
  position: relative; flex: 0 0 auto; width: clamp(128px, 36vw, 168px); scroll-snap-align: start;
  transform: rotate(var(--tilt)) translateY(var(--float));
  transition: transform .6s var(--ease);
  cursor: pointer; text-align: left;
}
@media (min-width: 1024px) { .sticker { width: clamp(132px, 11.4vw, 168px); } }
@keyframes bob { 50% { transform: translateY(-7px); } }
.sticker:hover, .sticker:focus-visible { transform: rotate(0deg) scale(1.07); z-index: 2; }
.sticker:hover .sticker__media { animation-play-state: paused; }
.sticker__media {
  position: relative; display: block; aspect-ratio: 1;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.35));
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s);
}
.sticker__media::before { /* white die-cut border */
  content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
}
.sticker__media img {
  position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
  transition: transform 1.2s var(--ease);
}
.sticker:hover .sticker__media img { transform: scale(1.06); }
.sticker__label {
  position: absolute; z-index: 1; left: 50%; bottom: -10px; transform: translateX(-50%) rotate(calc(var(--tilt) * -1.4));
  white-space: nowrap; padding: .38rem .8rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
  display: inline-flex; align-items: center; gap: .35rem;
}
.sticker:nth-child(3n+1) .sticker__label { background: var(--red); }
.sticker:nth-child(3n+2) .sticker__label { background: #fff; color: var(--ink); }
.sticker__give {
  position: absolute; top: 4px; right: 4px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: #FFD9A8; color: var(--maroon); display: grid; place-items: center; font-weight: 800;
  transform: scale(0) rotate(-90deg); transition: transform .45s var(--ease);
}
.sticker:hover .sticker__give, .sticker:focus-visible .sticker__give { transform: scale(1) rotate(0); }
@media (hover: none) { .sticker__give { transform: scale(1); } }

/* Shape masks (SVG data URIs, 100x100) */
.sh-circle { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E"); }
.sh-scallop { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0c5.5 0 8.8 5.6 13.9 7.2 5.3 1.7 11.3-1 15.6 2.2 4.3 3.1 3.8 9.7 7 14 3.1 4.3 9.6 5.9 11.3 11.1C99.4 39.6 95 44.6 95 50s4.4 10.4 2.8 15.5c-1.7 5.2-8.2 6.8-11.3 11.1-3.2 4.3-2.7 10.9-7 14-4.3 3.2-10.3.5-15.6 2.2C58.8 94.4 55.5 100 50 100s-8.8-5.6-13.9-7.2c-5.3-1.7-11.3 1-15.6-2.2-4.3-3.1-3.8-9.7-7-14C10.4 72.3 3.9 70.7 2.2 65.5.6 60.4 5 55.4 5 50S.6 39.6 2.2 34.5c1.7-5.2 8.2-6.8 11.3-11.1 3.2-4.3 2.7-10.9 7-14 4.3-3.2 10.3-.5 15.6-2.2C41.2 5.6 44.5 0 50 0z'/%3E%3C/svg%3E"); }
.sh-arch { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 100V44C8 20.8 26.8 2 50 2s42 18.8 42 42v56z'/%3E%3C/svg%3E"); }
.sh-blob { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M78 10c12 9 22 24 20 41s-12 33-27 41-34 8-48-1S0 66 1 48 13 15 28 7s38-6 50 3z'/%3E%3C/svg%3E"); }
.sh-flower { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Ccircle cx='50' cy='22' r='22'/%3E%3Ccircle cx='50' cy='78' r='22'/%3E%3Ccircle cx='22' cy='50' r='22'/%3E%3Ccircle cx='78' cy='50' r='22'/%3E%3Ccircle cx='30' cy='30' r='22'/%3E%3Ccircle cx='70' cy='30' r='22'/%3E%3Ccircle cx='30' cy='70' r='22'/%3E%3Ccircle cx='70' cy='70' r='22'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3C/g%3E%3C/svg%3E"); }
.sh-ticket { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 4h72a10 10 0 0 0 10 10v26a10 10 0 0 0 0 20v26a10 10 0 0 0-10 10H14A10 10 0 0 0 4 86V60a10 10 0 0 0 0-20V14A10 10 0 0 0 14 4z'/%3E%3C/svg%3E"); }
.sh-pill { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='14' y='0' width='72' height='100' rx='36'/%3E%3C/svg%3E"); }

/* Hand-drawn doodles */
.doodle path { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.4s var(--ease) .3s; }
.is-in .doodle path, .doodle.is-in path { stroke-dashoffset: 0; }
.underline-hand { position: relative; white-space: nowrap; }
.underline-hand svg { position: absolute; left: -2%; width: 104%; bottom: -.18em; height: .32em; overflow: visible; }

/* ------------------------------------------------------------------ RAILS */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--gutter) 30px; scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 84%; scroll-snap-align: start; }
@media (min-width: 560px) { .rail > * { flex-basis: 46%; } }
@media (min-width: 1024px) { .rail > * { flex-basis: calc((100% - 3 * 14px) / 4.15); } }
.railnav { display: flex; gap: .5rem; }
.railnav button {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: #fff; transition: background-color .3s, color .3s, opacity .3s, transform .4s var(--ease);
}
.railnav button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.railnav button:disabled { opacity: .35; cursor: default; }
.railbar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.railbar i { display: block; height: 100%; width: 25%; background: var(--red); border-radius: 3px; transform-origin: left; transition: transform .2s linear, width .2s; }

/* Quick-give cards */
.qcard { position: relative; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--tw-shadow, 0 0 #0000); transition: transform .5s var(--ease), box-shadow .5s var(--ease); display: flex; flex-direction: column; }
.qcard:hover { transform: translateY(-6px); box-shadow: 0 2px 8px rgba(74,14,16,.04), 0 14px 32px rgba(74,14,16,.06), 0 32px 72px rgba(74,14,16,.075); }
.qcard__media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; }
.qcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.qcard:hover .qcard__media img { transform: scale(1.05); }
.qcard__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(20,6,7,.7)); }
.qcard__tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.qcard__line { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1.15; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(6px);
}
.chip--red { background: var(--red); color: #fff; }
.amt {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 .85rem; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: .95rem; background: #fff; transition: all .3s var(--ease);
}
.amt:hover { border-color: var(--ink); }
.amt.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ SPOTLIGHT */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sand-2); position: relative; }
.seg button { position: relative; z-index: 1; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); transition: color .35s; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.on-dark .seg { background: rgba(255,255,255,.1); }
.on-dark .seg button { color: var(--on-dark-2); }
.on-dark .seg__thumb { background: #fff; }
.on-dark .seg button[aria-pressed="true"] { color: var(--ink); }

.level {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  padding: .8rem .9rem; border-radius: 18px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.level:hover { border-color: var(--ink-3); }
.level.is-on { border-color: var(--red); background: var(--red-tint); }
.level__amt { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; min-width: 4.2ch; text-transform: uppercase; }
.level__txt { font-size: .9rem; color: var(--ink-2); line-height: 1.3; }
.level__radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .3s; }
.level.is-on .level__radio { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 4px #fff; }

/* ------------------------------------------------------------------ STATS */
.stat { position: relative; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.stat__n { font-family: var(--f-display); font-size: calc(clamp(2.4rem, 3.6vw, 3.5rem) * var(--display-scale)); white-space: nowrap; line-height: 1; letter-spacing: .01em; }

/* ------------------------------------------------------------------ STORIES (pills) */
.pills { display: flex; gap: 10px; height: clamp(380px, 52vw, 520px); }
.pillcard {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 999px; overflow: hidden; cursor: pointer;
  transition: flex-grow .8s var(--ease), border-radius .8s var(--ease);
  outline-offset: 4px;
}
.pillcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: saturate(.85); }
.pillcard:not(.is-on):hover img { transform: scale(1.08); filter: saturate(1); }
.pillcard.is-on { flex-grow: 5.2; border-radius: 40px; }
.pillcard.is-on img { filter: none; }
.pillcard__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff;
  background: linear-gradient(transparent, rgba(20,6,7,.86));
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.pillcard.is-on .pillcard__body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.pillcard__go { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); color: #fff; opacity: 0; transition: opacity .4s; }
.pillcard.is-on .pillcard__go { opacity: 1; }
/* mobile: swipe rail of portrait cards */
@media (max-width: 767px) {
  .pills { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); }
  .pills::-webkit-scrollbar { display: none; }
  .pillcard { flex: 0 0 78%; aspect-ratio: 3 / 4.3; border-radius: 30px; scroll-snap-align: center; }
  .pillcard.is-on { flex-grow: 0; border-radius: 30px; }
  .pillcard__body { opacity: 1; transform: none; pointer-events: auto; }
  .pillcard__go { opacity: 1; }
}

/* ------------------------------------------------------------------ GRID PAPER */
.gridpaper {
  background-color: #C81D22;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
}
.tabsv button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; text-align: left;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.62);
  font-family: var(--f-serif); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.05; transition: color .4s, padding .5s var(--ease);
}
.tabsv button:hover { color: #fff; }
.tabsv button[aria-selected="true"] { color: #fff; padding-left: .6rem; }
.tabsv button .n { font-family: var(--f-body); font-size: .8rem; font-weight: 700; opacity: .7; }
.polaroid { background: #fff; padding: 10px 10px 44px; border-radius: 6px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.5); }
.polaroid img { aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; border-radius: 2px; }
.polaroid figcaption { font-family: var(--f-script); color: var(--ink); font-size: 1.35rem; text-align: center; margin-top: .5rem; line-height: 1; }
.swap { transition: opacity .45s var(--ease), transform .6s var(--ease); }
.swap.is-out { opacity: 0; transform: translateY(14px) rotate(var(--r, 0deg)); }
.tape { position: absolute; width: 92px; height: 26px; background: rgba(255,240,210,.75); top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 2px 6px rgba(0,0,0,.12); }

/* accordion (mobile pillars + FAQ + footer) */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__body > * { overflow: hidden; min-height: 0; }
.acc.is-open > .acc__body { grid-template-rows: 1fr; }
.acc__plus { transition: transform .45s var(--ease); }
.acc.is-open .acc__plus { transform: rotate(45deg); }

/* ------------------------------------------------------------------ ZAKAT / AJR */
.step-n { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--red); }
.lattice {
  background-color: var(--maroon-3);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,158,150,.06) 0 2px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px);
  background-size: 28px 28px, auto, auto;
}
.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.calendar-chip { display: inline-grid; place-items: center; width: 58px; height: 64px; border-radius: 14px; background: #fff; color: var(--ink); line-height: 1; box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }
.calendar-chip b { font-family: var(--f-display); font-size: 1.7rem; }
.calendar-chip small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--red-dark); text-transform: uppercase; }

/* range */
input[type="range"].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) var(--p, 30%), var(--line) var(--p, 30%)); }
input[type="range"].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.18); cursor: grab; }
input[type="range"].rng::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--red); cursor: grab; }

/* ------------------------------------------------------------------ ACTION TILES */
.tile { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 22px; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s; overflow: hidden; }
.tile:hover { transform: translateY(-4px); background: var(--ink); color: #fff; border-color: var(--ink); }
.tile:hover .tile__d { color: rgba(255,255,255,.7); }
.tile__ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--red-tint); color: var(--red-dark); transition: background-color .4s, color .4s, transform .6s var(--ease); }
.tile:hover .tile__ico { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.05); }
.tile__arr { position: absolute; top: 20px; right: 20px; transition: transform .45s var(--ease); }
.tile:hover .tile__arr { transform: rotate(-45deg); }

/* ------------------------------------------------------------------ FAN STRIP */
.fan { position: relative; height: clamp(260px, 34vw, 380px); }
.fan__card {
  position: absolute; top: 50%; left: 50%; width: clamp(150px, 17vw, 230px); aspect-ratio: 4 / 5;
  border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 24px 50px -20px rgba(42,7,8,.5);
  transform: translate(-50%, -50%) translateX(var(--x, 0px)) rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform .9s var(--ease), box-shadow .4s;
  will-change: transform;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fan__card:hover { z-index: 9; }
.fan__card:hover img { transform: scale(1.08); }
@media (max-width: 767px) {
  .fan { height: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan__card { position: relative; top: auto; left: auto; transform: none !important; flex: 0 0 58%; scroll-snap-align: center; }
}

/* ------------------------------------------------------------------ NEWS */
.post { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 24px; border-radius: 26px; background: var(--sand); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); overflow: hidden; }
.post:hover { transform: translateY(-4px); box-shadow: 0 2px 8px rgba(74,14,16,.04), 0 14px 32px rgba(74,14,16,.06); }
.post__t { font-family: var(--f-serif); font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.08; }
.post__mark { position: absolute; right: -10px; bottom: -34px; font-family: var(--f-display); font-size: 9rem; line-height: 1; color: rgba(227,34,38,.08); pointer-events: none; }

/* ------------------------------------------------------------------ FORMS */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 700; }
.input {
  min-height: 52px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; transition: border-color .3s, box-shadow .3s; width: 100%;
}
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,34,38,.14); }
.on-dark .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.on-dark .input::placeholder { color: rgba(255,255,255,.5); }
.input--money { padding-left: 2.1rem; }
.money { position: relative; }
.money::before { content: "£"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-3); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }

/* ------------------------------------------------------------------ OVERLAYS */
.overlay { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; transition: visibility 0s .8s; }
.overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(20,6,7,.48); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .8s var(--ease); }
.overlay.is-open .overlay__backdrop { opacity: 1; }
.overlay__panel {
  position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: calc(100dvh - 24px);
  background: #fff; color: var(--ink); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(calc(100% + 60px)); transition: transform .6s var(--ease);
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4);
}
.overlay.is-open .overlay__panel { transform: none; }
.overlay__grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 0; flex: none; }
.overlay__scroll { overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 768px) {
  .overlay--center .overlay__panel { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100vw - 48px)); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .6s var(--ease), opacity .45s var(--ease); max-height: calc(100dvh - 48px); }
  .overlay--center.is-open .overlay__panel { transform: translate(-50%, -50%); opacity: 1; }
  .overlay--center .overlay__grab { display: none; }
}
.closebtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); transition: transform .45s var(--ease), background-color .3s; flex: none; }
.closebtn:hover { transform: rotate(90deg); background: var(--line); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 20px); z-index: 90; transform: translate(-50%, 30px); opacity: 0; transition: all .5s var(--ease); background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 16px; font-size: .86rem; max-width: min(92vw, 560px); box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast code { background: rgba(255,255,255,.12); padding: .1rem .35rem; border-radius: 6px; font-size: .78rem; word-break: break-all; }

/* ------------------------------------------------------------------ BOTTOM UI */
.totop { position: fixed; right: 18px; bottom: 90px; z-index: 44; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
@media (min-width: 1024px) { .totop { bottom: 24px; right: 24px; } }

/* ------------------------------------------------------------------ MOTION */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.45em); color: var(--flash, var(--red)); transition: opacity .6s var(--ease), transform .6s var(--ease), color .5s ease; transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), calc(var(--i) * 70ms + 380ms); }
.js [data-split].is-in .w { opacity: 1; transform: none; color: inherit; }
.on-dark [data-split] { --flash: var(--blush); }
.gridpaper [data-split] { --flash: #FFD9A8; }

/* Hero entrance (above the fold: plays on load, not on scroll) */
.js .hero [data-hero] { opacity: 0; transform: translateY(24px); }
.hero.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .hero .sticker { opacity: 0; translate: 0 40px; }
.hero.is-ready .sticker { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease), translate 1s var(--ease), transform .6s var(--ease); transition-delay: calc(500ms + var(--i) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w, .js .hero [data-hero], .js .hero .sticker { opacity: 1 !important; transform: none !important; translate: none !important; color: inherit; }
  .doodle path { stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none !important; }
}

/* Cards that reveal AND lift on hover: once revealed, hover wins and has no delay */
.js .is-in:is(.qcard, .tile, .post) { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s, color .4s, border-color .4s, opacity .9s var(--ease); transition-delay: 0s; }
.js .is-in.qcard:hover { transform: translateY(-6px); }
.js .is-in:is(.tile, .post):hover { transform: translateY(-4px); }

#cap-email::placeholder { color: var(--ink-3); }

@media (max-width: 1023px) {
  .totop { display: none; }
}
@media (max-width: 559px) {
  .hero__lede { font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero .btn { min-height: 48px; padding: 0 1.1rem; font-size: .95rem; }
  .hero .trustline { font-size: .76rem; }
}

/* ------------------------------------------------------------ QUICK DONATE BAR
   Campaign dropdown + Donate now → that campaign's Fundraise Up popup.
   Desktop: floating pill. Mobile: full-width bar (replaces the old dock). */
.qbar {
  position: fixed; z-index: 45; left: 8px; right: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 22px; background: rgba(20,6,7,.92); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.55);
  transform: translateY(calc(100% + 20px)); transition: transform .6s var(--ease);
  padding-bottom: calc(8px + env(safe-area-inset-bottom) * .5);
}
.qbar.is-on { transform: none; }
.qbar__label, .qbar__ajr { display: none; }
.qbar select {
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; min-height: 46px; padding: 0 2.2rem 0 1rem;
  font: inherit; font-weight: 600; font-size: .95rem;
}
.qbar select option { color: var(--ink); }
.qbar__go { min-height: 46px; flex: none; }
@media (min-width: 1024px) {
  .qbar { left: 50%; right: auto; bottom: 14px; width: auto; border-radius: 999px; padding: 8px 8px 8px 22px; gap: 10px;
    transform: translate(-50%, 140%); }
  .qbar.is-on { transform: translate(-50%, 0); }
  .qbar__label { display: inline; font-size: .9rem; font-weight: 700; white-space: nowrap; }
  .qbar select { flex: none; width: 260px; }
  .qbar__ajr { display: inline; font-size: .78rem; color: rgba(255,255,255,.6); padding: 0 .6rem; white-space: nowrap; }
  .qbar__ajr:hover { color: #fff; }
}
.seg.is-single .seg__thumb { left: 4px; }

/* ======================================================== CAMPAIGN PAGE (appeal.html) */
.ahero {
  position: relative; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, #6B1518 0%, var(--maroon) 42%, var(--maroon-3) 100%);
  padding-top: calc(var(--header-h) + 52px);
}
.ahero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ahero .hero__photo { opacity: .2; }
.js .ahero [data-hero] { opacity: 0; transform: translateY(24px); }
.ahero.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }

/* white giving card: sits in the hero, hangs over the next section on desktop */
.gcard {
  background: #fff; color: var(--ink); border-radius: 30px; padding: 20px;
  box-shadow: 0 30px 80px -24px rgba(20,6,7,.55);
  margin-bottom: -40px; position: relative; z-index: 3;
}
@media (min-width: 640px) { .gcard { padding: 26px; } }
@media (min-width: 1024px) { .gcard { margin-bottom: -120px; } }
.gcard .level__amt { font-size: 1.5rem; }

/* reading spine for live-page copy */
.aprose { font-size: 1.06rem; line-height: 1.7; color: var(--ink-2); }
.aprose p + p { margin-top: 1rem; }
.aprose h2 { color: var(--ink); }
.aquote { margin-top: 1.8rem; border-left: 4px solid var(--red); padding-left: 1.2rem; }
.aquote p { font-family: var(--f-serif); font-style: italic; font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.aquote cite { display: block; margin-top: .5rem; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.achecks { display: grid; gap: .6rem; margin-top: 1.4rem; }
@media (min-width: 768px) { .achecks { grid-template-columns: 1fr 1fr; } }
.achecks li { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .95rem; line-height: 1.45; }
.bg-white .achecks li { background: var(--sand); }
.achecks .ico { color: var(--red); margin-top: 2px; }
.aphoto { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.aphoto img { width: 100%; height: 100%; object-fit: cover; }
.aphoto figcaption, .agallery__item figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: .5rem .8rem; border-radius: 14px;
  background: rgba(20,6,7,.55); backdrop-filter: blur(14px); color: #fff; font-size: .78rem;
}
.agallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1024px) { .agallery { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; } .agallery__item:first-child { grid-row: span 2; } }
.agallery__item { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; margin: 0; }
@media (min-width: 1024px) { .agallery__item { aspect-ratio: auto; min-height: 240px; } .agallery__item:first-child { min-height: 490px; } }
.agallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.agallery__item:hover img { transform: scale(1.05); }
.agallery__item figcaption { font-size: .72rem; }
@media (max-width: 559px) { .agallery__item figcaption { display: none; } }
.afaq { border-bottom: 1px solid var(--line-2, #D8C9C1); }
.afaq > button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; text-align: left; font-weight: 700; font-size: 1.05rem; }
.afaq > button:hover { color: var(--red-dark); }
.afaq__a { padding-bottom: 1.2rem; color: var(--ink-2); line-height: 1.65; }
.afaq__a p + p { margin-top: .7rem; }

/* Gift Aid nudge (giving cards) */
.giftaid { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; border-radius: 18px; background: #EFF7EF; color: #1E5B2C; font-size: .88rem; line-height: 1.4; }
.giftaid b { font-weight: 800; }
/* the white giving card sits inside the dark hero: undo on-dark toggle colours */
.gcard .seg { background: var(--sand-2); }
.gcard .seg button { color: var(--ink-2); }
.gcard .seg button[aria-pressed="true"] { color: #fff; }
.gcard .seg__thumb { background: var(--ink); }
.gcard :focus-visible { outline-color: var(--red); }
@media (min-width: 1024px) { .agallery__item:nth-child(4) { grid-column: span 2; } }

/* ------------------------------------------- campaign hero: subject on the right */
.ahero { padding-bottom: clamp(48px, 7vw, 88px); overflow: hidden; }
.ahero__media { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.ahero__main { position: relative; aspect-ratio: 4 / 4.6; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.ahero__main::before, .ahero__sticker::before { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.ahero__main img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.ahero__sticker { position: absolute; left: -6%; bottom: -4%; width: 38%; aspect-ratio: 1; transform: rotate(-8deg); filter: drop-shadow(0 16px 26px rgba(0,0,0,.4)); animation: bob 6s ease-in-out infinite; }
.ahero__sticker img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.ahero__label { position: absolute; right: 4%; bottom: 6%; max-width: 62%; padding: .45rem .8rem; border-radius: 12px; background: rgba(20,6,7,.62); backdrop-filter: blur(12px); color: #fff; font-size: .74rem; line-height: 1.3; }
@media (max-width: 1023px) { .ahero__media { max-width: 420px; } .ahero__main { aspect-ratio: 4 / 4.2; } }

/* ------------------------------------------- the appeal: editorial intro */
.apull { font-family: var(--f-serif); font-size: clamp(1.7rem, 3.2vw, 2.55rem); line-height: 1.15; color: var(--ink); letter-spacing: -.01em; margin-bottom: 1.6rem; }
.apull::first-letter { color: var(--red); }
mark.num { background: linear-gradient(transparent 58%, rgba(227,34,38,.18) 58%); color: inherit; font-weight: 700; padding: 0 .1em; }
.on-dark mark.num { background: linear-gradient(transparent 58%, rgba(255,158,150,.32) 58%); color: #fff; }
.apull mark.num { font-weight: 400; color: var(--red-dark); background: none; }
.acollage { position: relative; min-height: 520px; }
.acollage__a { position: absolute; right: 0; top: 40px; width: 64%; rotate: 3deg; }
.acollage__b { position: absolute; left: 0; bottom: 0; width: 50%; rotate: -5deg; }
.acollage .polaroid img { aspect-ratio: 4 / 4.4; }
.acollage figcaption { font-size: 1.05rem !important; }
.akey { position: absolute; left: 4%; top: 0; z-index: 2; width: 170px; height: 170px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; rotate: -8deg; box-shadow: 0 18px 40px -12px rgba(227,34,38,.6); }
.akey b { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: .95; }
.akey span { font-size: .7rem; line-height: 1.25; margin-top: .35rem; opacity: .92; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1023px) { .acollage { min-height: 440px; max-width: 460px; margin-inline: auto; width: 100%; } .akey { width: 140px; height: 140px; } .akey b { font-size: 2.1rem; } }

/* ------------------------------------------- the reality: fact cards */
.afacts__list { display: grid; gap: 12px; counter-reset: f; }
@media (min-width: 640px) { .afacts__list { grid-template-columns: 1fr 1fr; } }
.fact { position: relative; padding: 22px 22px 24px; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.fact:first-child { grid-column: 1 / -1; background: var(--red); border-color: transparent; }
.fact__n { display: block; font-family: var(--f-script); font-size: 1.4rem; color: var(--blush); line-height: 1; margin-bottom: .6rem; }
.fact:first-child .fact__n { color: #FFD9A8; }
.fact__big { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: .95; margin-bottom: .5rem; color: #fff; }
.fact p { color: rgba(255,255,255,.85); line-height: 1.55; font-size: .98rem; }
.fact:first-child p { font-size: 1.08rem; color: #fff; }
.fact mark.num { background: none; color: #FFD9A8; }

/* ------------------------------------------- giving levels (display only) */
.lvls { display: grid; gap: 6px; }
.lvl { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lvl__amt { font-family: var(--f-display); font-size: 1.45rem; line-height: 1; min-width: 4.2ch; color: var(--red-dark); }
.lvl__amt small, .lvlcard__amt small { font-family: var(--f-body); font-size: .72rem; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.lvl__txt { font-size: .9rem; color: var(--ink-2); line-height: 1.3; }
.lvlgroup + .lvlgroup { margin-top: 1rem; }
.lvlgroup__t { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.lvlmonthly { margin-top: .7rem; font-size: .88rem; color: var(--ink-2); }
.lvlcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.lvlcard { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 20px; border-radius: 24px; background: var(--sand); border: 1px solid var(--line); min-height: 150px; overflow: hidden; }
.lvlcard::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: rgba(227,34,38,.07); }
.lvlcard__amt { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.lvlcard__txt { color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.alevels-cta { display: grid; gap: 14px; align-items: center; margin-top: 22px; padding: 18px; border-radius: 26px; background: var(--ink); }
.alevels-cta .giftaid { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.alevels-cta .btn--muted { --b: rgba(255,255,255,.12); --c: #fff; }
@media (min-width: 900px) { .alevels-cta { grid-template-columns: auto 1fr; } }

@media (min-width: 640px) { .fact:last-child:nth-child(even) { grid-column: 1 / -1; } }

@media (max-width: 559px) {
  .lvlcards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lvlcard { min-height: 0; padding: 14px; border-radius: 18px; }
  .lvlcard__amt { font-size: 1.8rem; }
  .lvlcard__txt { font-size: .82rem; }
}
