/* =========================================================
   YFC Taiwan — 青年歸主協會
   Design tokens → light/dark themes → components → motion.

   Colour comes from the real brand marks, not invented values:
     YFC mark        teal → blue gradient
     AfterSchool     navy #1B4297 + yellow #F5C518
     Amen            coral #E4573A
   ========================================================= */

/* ---------------------------------------------------------
   1. Tokens
   --------------------------------------------------------- */

:root {
  /* Brand constants — identical in both themes.
     Coral is pushed to full saturation ("Coral Punch") so it carries
     HOGC-level impact while staying recognisably the YFC mark. */
  --coral: #E8532F;
  --coral-deep: #C93E1E;
  --coral-soft: #FF8E68;
  --teal: #4F9484;
  --teal-deep: #2E6E60;
  --navy: #1B4297;
  --navy-lift: #2A57B8;
  --yellow: #F2D9A0;
  --yellow-brand: #F5C518;
  --amen: #E4573A;
  --walei-cyan: #00C9D4;
  --walei-pink: #F25C8A;

  /* Deep brand grounds — navy family, not black / green. */
  --ink: #16307A;
  --ink-2: #1B4297;
  --ink-deep: #10245E;

  --font-display: "Archivo", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 70px;
}

/* Light theme (default) — near-white ground, charcoal text, generous
   whitespace: the Life.Church side of the hybrid. */
:root,
:root[data-theme="light"] {
  --bg: #FCFBF8;
  --bg-tint: #F5F2EA;
  --surface: #FFFFFF;
  --surface-2: #FAF8F2;
  --surface-sunk: #F0ECE2;

  --text: #1C1A17;
  --text-muted: #55504A;
  --text-subtle: #8B857B;
  --text-invert: #FFFFFF;

  --border: rgba(28, 26, 23, 0.10);
  --border-strong: rgba(28, 26, 23, 0.20);

  --accent: var(--coral);
  --accent-hover: var(--coral-deep);
  --link: #C33D1B;
  --link-hover: #9F3013;

  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.05), 0 2px 8px rgba(28, 26, 23, 0.05);
  --shadow-md: 0 2px 6px rgba(28, 26, 23, 0.05), 0 10px 26px rgba(28, 26, 23, 0.09);
  --shadow-lg: 0 8px 20px rgba(28, 26, 23, 0.09), 0 24px 60px rgba(28, 26, 23, 0.14);
  --shadow-accent: 0 8px 24px rgba(232, 83, 47, 0.30);

  --hero-mesh-1: rgba(245, 197, 24, 0.28);
  --hero-mesh-2: rgba(232, 83, 47, 0.12);
  --hero-mesh-3: rgba(79, 148, 132, 0.12);
  --grain-opacity: 0.03;
  color-scheme: light;
}

/* Dark theme — warm ink, not blue-black, to stay in the brand's family. */
:root[data-theme="dark"] {
  --bg: #121110;
  --bg-tint: #171512;
  --surface: #1D1B17;
  --surface-2: #221F1A;
  --surface-sunk: #0D0C0A;

  --text: #F2EEE6;
  --text-muted: #B3ACA0;
  --text-subtle: #857E72;
  --text-invert: #121110;

  --border: rgba(242, 238, 230, 0.12);
  --border-strong: rgba(242, 238, 230, 0.24);

  /* Accents lift slightly in dark so they keep contrast against the ground. */
  --accent: #FF6E45;
  --accent-hover: #FF8A66;
  --link: #FF8A63;
  --link-hover: #FFA98C;
  --teal: #6FB3A2;
  --teal-deep: #4F9484;
  --yellow: #F6DFAB;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 10px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 24px rgba(232, 83, 47, 0.30);

  --hero-mesh-1: rgba(245, 197, 24, 0.10);
  --hero-mesh-2: rgba(232, 83, 47, 0.12);
  --hero-mesh-3: rgba(79, 148, 132, 0.10);
  --grain-opacity: 0.05;
  color-scheme: dark;
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

/* Page-wide grain. Sits above the background, below all content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  transition: opacity 0.45s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, .display { font-family: var(--font-display); }
/* Even out multi-line headings so a lone character never dangles. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
/* CJK headings marked up with <wbr> break only at those phrase points. */
.phrase-break { word-break: keep-all; overflow-wrap: anywhere; }

a { color: var(--link); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--link-hover); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--coral); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 22px; padding-right: 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------------------------------------------------------
   3. Motion primitives
   --------------------------------------------------------- */

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift, -50%)); }
}

/* HOGC-style headline rise: each hero line slides up out of an
   overflow-hidden mask. Applied per-line with a stagger (--line-i). */
@keyframes hero-line-rise {
  from { transform: translateY(112%); }
  to   { transform: translateY(0); }
}

/* Scroll reveal — JS adds .is-in when the element enters the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.75s var(--ease-out) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
/* Drop the GPU layer once revealed; a permanent will-change on dozens of
   elements costs memory and smoothness on phones. */
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }

.reveal-scale { transform: translateY(22px) scale(0.97); }
.reveal-scale.is-in { transform: none; }

/* Fail-safe: if app.js never runs (blocked, failed to load), content must
   not stay invisible. app.js marks <html> .reveal-ready immediately, which
   cancels this before the 3s delay elapses. */
html:not(.reveal-ready) .reveal { animation: reveal-failsafe 0.6s var(--ease-out) 3s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   4. Buttons
   --------------------------------------------------------- */

.btn {
  --btn-lift: -2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(var(--btn-lift)); }
.btn:active { transform: translateY(0); }

/* Sheen sweep on hover. */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease-out);
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  padding: 15px 32px;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { color: #fff; background: var(--accent-hover); box-shadow: 0 14px 34px rgba(232, 83, 47, 0.40); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  padding: 15px 32px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { color: var(--text); border-color: var(--text); box-shadow: var(--shadow-md); }

.btn-donate { font-size: 18px; padding: 17px 42px; }

/* Arrow that slides on hover. */
.arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow,
.work-link:hover .arrow,
.as-teaser-cta:hover .arrow { transform: translateX(4px); }

/* ---------------------------------------------------------
   5. Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand-logo { transform: scale(1.07) rotate(-3deg); }
.brand-lockup { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-lockup-name { font-family: var(--font-display); font-size: 15px; font-weight: 900; letter-spacing: -.2px; }
.brand-lockup-sub { color: var(--text-subtle); font-family: var(--font-mono); font-size: 8px; letter-spacing: 1px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: -0.2px; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 1.4px;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

/* Underline grows from the centre. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 5px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 999px;
  margin-left: 6px;
  box-shadow: 0 4px 14px rgba(232, 83, 47, 0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 8px 20px rgba(232, 83, 47, 0.40); }

/* Utility cluster: theme + language */
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: 4px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
              background-color 0.22s var(--ease), transform 0.22s var(--ease-out);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.icon-btn svg { width: 18px; height: 18px; }

/* Sun/moon crossfade */
.theme-toggle .i-sun,
.theme-toggle .i-moon {
  grid-area: 1 / 1;
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease-out);
}
.theme-toggle { display: grid; place-items: center; }
.theme-toggle .i-sun   { opacity: 0; transform: rotate(-70deg) scale(0.5); }
.theme-toggle .i-moon  { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-sun  { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(70deg) scale(0.5); }

/* Language switch — a two-state pill with a sliding thumb. */
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.lang-switch__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 7px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(232, 83, 47, 0.35);
  transition: transform 0.38s var(--ease-out), background-color 0.25s var(--ease);
}
:root[data-lang="en"] .lang-switch__thumb { transform: translateX(100%); }

.lang-switch__opt {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0 10px;
  height: 100%;
  min-width: 38px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
:root[data-lang="zh"] .lang-switch__opt[data-lang-opt="zh"],
:root[data-lang="en"] .lang-switch__opt[data-lang-opt="en"] { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.32s var(--ease-out), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 22px 72px;
  text-align: left;
}

/* Soft multi-point colour mesh instead of one flat radial. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 26%, var(--hero-mesh-1), transparent 70%),
    radial-gradient(34% 40% at 78% 18%, var(--hero-mesh-2), transparent 70%),
    radial-gradient(40% 44% at 62% 62%, var(--hero-mesh-3), transparent 72%);
  filter: blur(12px);
}

.hero-inner { max-width: var(--wrap); margin: 0 auto; position: relative; }

/* Mono capsule label — the HOGC "tag" voice. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 8px 16px 8px 11px;
  border-radius: 999px;
  margin-bottom: 26px;
}
:root[data-theme="dark"] .pill { color: var(--text-muted); border-color: var(--border-strong); }

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.pill-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}

/* HOGC-style giant stacked headline with a line-by-line rise. */
.hero h1 {
  color: var(--text);
  margin: 0 0 24px;
  font-size: clamp(37px, 7.2vw, 94px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-transform: uppercase;
}
/* English copy runs much longer than the zh lines — scale down so the
   stacked caps still fill (not overflow) the wrap. */
:root[data-lang="en"] .hero h1 { font-size: clamp(32px, 5.4vw, 68px); }

/* Yellow marker block on the emphasised phrase. */
.hero h1 .accent {
  position: relative;
  color: #141210;
  background: var(--yellow-brand);
  padding: 0 0.10em;
  margin: 0 -0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: nowrap;
}

/* i18n-driven headline lines, wrapped by app.js so each line can be
   masked and staggered. */
.hero-line { display: block; overflow: hidden; }
.hero-line-inner {
  display: block;
  transform: translateY(112%);
  padding: 0 0.05em;  /* keep marker + descenders inside the mask */
  margin: 0 -0.05em;
}
.hero h1.is-in .hero-line-inner {
  animation: hero-line-rise 0.85s var(--ease-out) calc(var(--line-i, 0) * 0.14s) both;
}

.hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 580px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero showcase — real ministry marks rather than a placeholder box. */
.hero-showcase {
  position: relative;
  max-width: 1000px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.show-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
  color: var(--text);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.show-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--text); }
.show-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  transition: opacity 0.4s var(--ease);
  background: var(--card-tint, transparent);
}
.show-card:hover::before { opacity: 0.2; }

.show-card__logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: contain;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}
.show-card:hover .show-card__logo { transform: scale(1.08) rotate(-3deg); }
.show-card__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; position: relative; }
.show-card__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; position: relative; }

/* ---------------------------------------------------------
   6b. Photo marquee
   --------------------------------------------------------- */

.marquee-section {
  padding: 8px 0 4px;
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 12px;
  animation: marquee 72s linear infinite;
}
.marquee.is-user-controlled .marquee-track { animation-play-state: paused; }

.marquee-item {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-sunk);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.marquee-item.wide { width: 400px; aspect-ratio: 16 / 10; }

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop upward so seated faces stay in frame. */
  object-position: center 38%;
  transition: transform 0.6s var(--ease-out);
}
.marquee-item:hover img { transform: scale(1.05); }

.marquee-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: #fff;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 20px;
}
/* ---------------------------------------------------------
   6c. Activity and video highlights
   --------------------------------------------------------- */

.activity-marquee-section { padding-top: 0; }
.activity-marquee-section .marquee-track { animation-duration: 380s; }
.activity-marquee-section .marquee-item { width: 320px; aspect-ratio: 4 / 3; }
.activity-marquee-section .marquee-item.wide { width: 430px; aspect-ratio: 16 / 10; }

.impact-page main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 92% 26%, color-mix(in srgb, var(--yellow-brand) 7%, transparent), transparent 24%),
    radial-gradient(circle at 5% 48%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 27%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg-tint) 72%, var(--bg)) 52%, var(--bg) 100%);
}
.impact-page main::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 610px;
  left: -18vw;
  width: 72vw;
  height: 72vw;
  max-width: 980px;
  max-height: 980px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 13%, transparent), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  animation: impact-ambient-drift 16s ease-in-out infinite alternate;
}
.impact-page main > section { position: relative; z-index: 1; }

.impact-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 9vw, 124px) 22px clamp(68px, 8vw, 104px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 197, 24, 0.22), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(73, 190, 218, 0.18), transparent 34%),
    linear-gradient(135deg, #0A1738 0%, #16307A 58%, #1D4DA4 100%);
  background-size: 130% 130%;
  animation: impact-hero-shift 18s ease-in-out infinite alternate;
}
.impact-page-hero::before {
  content: "";
  position: absolute;
  width: min(54vw, 760px);
  height: min(54vw, 760px);
  top: -52%;
  left: 46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 177, 255, 0.22), rgba(245, 197, 24, 0.07) 38%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: impact-orb-float 13s ease-in-out infinite alternate;
}
.impact-page-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -230px;
  border: 72px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
  animation: impact-ring-float 12s ease-in-out infinite alternate;
}
.impact-page-hero__inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.impact-page-hero.not-found { min-height: 62vh; display: flex; align-items: center; }
.impact-page-hero.not-found .impact-page-hero__inner { width: 100%; }
.not-found__actions { margin-top: 30px; }
.impact-page-hero .eyebrow {
  color: var(--yellow-brand);
  background: rgba(245, 197, 24, 0.08);
  border-color: rgba(245, 197, 24, 0.4);
}
.impact-page-hero h1 {
  max-width: 850px;
  margin: 20px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.045em;
}
.impact-page-hero p {
  max-width: 730px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.85;
}
.impact-page-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.impact-page-jump a {
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease);
}
.impact-page-jump a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); color: #fff; }
#ministries, #resources, #sel, #highlights { scroll-margin-top: 90px; }
.impact-page #ministries {
  z-index: 3;
  width: min(calc(100% - 44px), var(--wrap));
  margin: -42px auto 0;
  padding: 76px 34px 56px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 72%, transparent);
  border-radius: 36px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 28px 80px rgba(26, 38, 79, 0.12), inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.impact-page #ministries::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--yellow-brand) 5%, transparent), transparent 34%, color-mix(in srgb, var(--teal) 5%, transparent));
  pointer-events: none;
}
.impact-page #ministries > * { position: relative; }
.impact-page #resources {
  padding-top: 104px;
  padding-bottom: 84px;
}
.impact-page #resources::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  top: 18%;
  right: -270px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--coral-soft) 13%, transparent), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  animation: impact-orb-float 15s ease-in-out infinite alternate-reverse;
}
.impact-page #resources .res-card {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.impact-page #sel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px -12% -100px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--coral) 10%, transparent), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.impact-page #sel .sel-band {
  background-size: 160% 160%;
  animation: impact-sel-shift 14s ease-in-out infinite alternate;
}

.impact-results {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin-top: 40px;
  padding: clamp(76px, 8vw, 112px) 22px clamp(90px, 9vw, 126px);
  background:
    radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--yellow-brand) 16%, transparent), transparent 28%),
    radial-gradient(circle at 94% 36%, color-mix(in srgb, var(--teal) 11%, transparent), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, var(--surface-sunk) 12%, var(--surface-sunk) 100%);
}
.impact-results::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -190px;
  left: 50%;
  width: min(900px, 92vw);
  height: 330px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  filter: blur(44px);
  pointer-events: none;
}
.impact-results::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -180px;
  bottom: 6%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--navy-lift) 9%, transparent), transparent 68%);
  pointer-events: none;
  animation: impact-ambient-drift 18s ease-in-out infinite alternate-reverse;
}
.impact-results > * { position: relative; z-index: 1; }
.impact-results .section-head { max-width: 1180px; margin: 0 auto; text-align: left; }
.impact-results .section-head h2 { max-width: 700px; font-size: clamp(38px, 6vw, 62px); line-height: 1.08; letter-spacing: -0.035em; }
.impact-results .section-head p { max-width: 720px; margin-top: 18px; line-height: 1.8; }
.media-block, .content-highlights { max-width: 1180px; margin: 64px auto 0; }
.media-block-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.media-block-head h2,
.media-block-head h3 { margin: 7px 0 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.media-note { color: var(--text-muted); font-size: 13px; }
.video-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.video-card {
  flex: 0 0 min(78vw, 360px);
  scroll-snap-align: start;
  padding: 10px 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease);
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: calc(var(--r-lg) - 5px); background: #151515; }
.video-card h3,
.video-card h4 { margin: 15px 7px 6px; font-family: var(--font-display); font-size: 17px; line-height: 1.4; }
.video-card a, .content-card a { margin: 0 7px; color: var(--teal-deep); font-size: 13px; font-weight: 700; }
.content-card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.content-card {
  grid-column: span 4;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.content-card:first-child {
  grid-column: span 8;
  background: linear-gradient(145deg, #16307A 0%, #0A1738 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.content-card:nth-child(6), .content-card:nth-child(7) { grid-column: span 6; }
.content-card h3,
.content-card h4 { margin: 12px 0 9px; font-family: var(--font-display); font-size: 20px; line-height: 1.4; }
.content-card p { margin: 0 0 20px; color: var(--text-muted); font-size: 14.5px; line-height: 1.78; }
.content-card a { margin: auto 0 0; }
.content-card.content-card--empty, .content-card.content-card--wide { grid-column: 1 / -1; min-height: 0; }
.content-card--event .event-details { width: 100%; max-width: 720px; margin: 6px 0 26px; }
.content-card--event .event-details div { border-bottom-color: rgba(255, 255, 255, 0.14); }
.content-card--event .event-details dt { color: rgba(255, 255, 255, 0.6); }
.content-card--event .event-details dd { color: #fff; }
.content-card--event .content-card__links .btn { margin: 0; color: #fff; font-size: 15px; }
.content-card__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.content-card__links a { margin: 0; }
.content-card:first-child p { max-width: 640px; color: rgba(255, 255, 255, 0.72); }
.content-card:first-child a, .content-card:first-child .content-year { color: var(--yellow-brand); }
.content-year { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }

@keyframes impact-hero-shift {
  0% { background-position: 0% 38%; }
  100% { background-position: 100% 62%; }
}
@keyframes impact-ambient-drift {
  0% { transform: translate3d(0, 0, 0) scale(0.96); opacity: 0.72; }
  100% { transform: translate3d(7vw, 80px, 0) scale(1.08); opacity: 1; }
}
@keyframes impact-orb-float {
  0% { transform: translate3d(-3%, 0, 0) scale(0.94); }
  100% { transform: translate3d(7%, 8%, 0) scale(1.08); }
}
@keyframes impact-ring-float {
  0% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  100% { transform: translate3d(-34px, -28px, 0) rotate(4deg); }
}
@keyframes impact-sel-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (max-width: 900px) {
  .content-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-card, .content-card:first-child, .content-card:nth-child(6), .content-card:nth-child(7) { grid-column: auto; }
  .content-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .activity-marquee-section .marquee-item { width: 260px; }
  .activity-marquee-section .marquee-item.wide { width: 320px; }
  .impact-page-hero { padding-top: 66px; }
  .impact-page-hero h1 { font-size: clamp(32px, 10.4vw, 46px); }
  .content-card { min-height: 0; }
  .impact-page-jump a { flex: 1 1 calc(50% - 5px); text-align: center; }
  .impact-page #ministries {
    width: calc(100% - 24px);
    margin-top: -24px;
    padding: 58px 16px 38px;
    border-radius: 26px;
  }
  .impact-page #resources { padding-top: 80px; padding-bottom: 66px; }
  .impact-results { padding-left: 18px; padding-right: 18px; }
  .media-block, .content-highlights { margin-top: 46px; }
  .media-block-head { align-items: start; flex-direction: column; gap: 5px; }
  .content-card-grid { grid-template-columns: 1fr; }
  .content-card:first-child { grid-column: auto; }
}


@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .impact-page main::before,
  .impact-page-hero,
  .impact-page-hero::before,
  .impact-page-hero::after,
  .impact-page #resources::before,
  .impact-page #sel .sel-band,
  .impact-results::after { animation: none; }
}

/* ---------------------------------------------------------
   7. Stats
   --------------------------------------------------------- */

.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats {
  padding: 56px 22px;
}
.stats-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  /* The 1px gap reveals this colour as clean separator lines. */
  background: var(--border);
}
.stats-grid .stat {
  background: var(--surface);
  padding: 30px 16px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-num.coral { color: var(--accent); }
.stat-num.teal  { color: var(--teal-deep); }
.stat-num.ink   { color: var(--text); }
.stat-label { font-size: 14.5px; color: var(--text-muted); margin-top: 10px; }

.stat-divided { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* ---------------------------------------------------------
   7b. Slogan band — static. Navy ground is the pre-3ee646e
   marquee (light: #16307A → #1B4297 → #2A57B8, dark:
   #10245E → #16307A → #1B4297). No animation.
   --------------------------------------------------------- */

.slogan-band {
  background: linear-gradient(90deg, #16307A, #1B4297 55%, #2A57B8);
  color: #F7F4EE;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 22px;
  overflow-x: clip;
}
:root[data-theme="dark"] .slogan-band {
  background: linear-gradient(90deg, #10245E, #16307A 55%, #1B4297);
  border-color: rgba(242, 238, 230, 0.08);
}

.slogan-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.slogan-row li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #F7F4EE;
  white-space: nowrap;
  max-width: 100%;
}

.slogan-row li:not(:last-child)::after {
  content: "·";
  color: var(--coral);
  font-weight: 700;
  padding: 0 0.55em;
}

/* Phones: four Chinese items on one line, same vertical rhythm as desktop.
   English copy is longer, so it may wrap to a second line; it never scrolls. */
@media (max-width: 760px) {
  .slogan-band { padding: 13px 10px; }
  .slogan-row li {
    font-size: 14px;
    letter-spacing: 0;
  }
  .slogan-row li:not(:last-child)::after { padding: 0 0.32em; }
  :root[data-lang="en"] .slogan-band { padding: 15px 6px; }
  :root[data-lang="en"] .slogan-row li { font-size: 10px; letter-spacing: -0.03em; }
  :root[data-lang="en"] .slogan-row li:not(:last-child)::after { padding: 0 0.16em; }
}

/* ---------------------------------------------------------
   8. Section furniture
   --------------------------------------------------------- */

.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 22px 44px; }

.section-head { text-align: center; margin-bottom: 48px; }

/* Mono capsule tag — high-contrast HOGC label voice. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 4.8vw, 52px);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section-head p { font-size: 17px; color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------
   9. Ministry cards
   --------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: var(--text);
  transition: transform 0.42s var(--ease-out), box-shadow 0.42s var(--ease-out),
              border-color 0.42s var(--ease);
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  color: var(--text);
}

.work-band {
  position: relative;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Radial bloom behind each mark. */
.work-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(255, 255, 255, 0.32), transparent 70%);
}
/* Cover bands carry a full-bleed brand lockup, so no bloom over the logo. */
.work-band.cover-band::after { display: none; }
.work-band.yellow { background: var(--yellow-brand); }
.work-band.cyan   { background: var(--walei-cyan); }
.work-band.pink   { background: var(--walei-pink); }
.work-band.coral  { background: var(--coral); }
.work-band.navy   { background: #1D428A; }
.work-band.amen   { background: #EC5D3A; }

.work-logo {
  position: relative;
  height: 62px;
  width: auto;
  max-width: 74%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.45s var(--ease-out);
}
.work-card:hover .work-logo { transform: scale(1.09) rotate(-2.5deg); }
/* Logo tiles that already carry their own background get a lift instead of a plate. */
.work-logo.tile { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.work-band.cyan .work-logo.tile {
  background: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  height: 56px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.work-logo.plain { height: 46px; }

/* Full-bleed horizontal brand lockup filling the whole band. */
.work-logo.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.work-card:hover .work-logo.cover { transform: scale(1.05); }

.work-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.work-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 9px;
  letter-spacing: -0.3px;
}
.work-body p { font-size: 14.5px; line-height: 1.75; color: var(--text-muted); margin: 0 0 18px; flex: 1; }

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--link);
}
.work-link:hover { color: var(--link-hover); }
.work-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; }

/* ---------------------------------------------------------
   10. SEL band
   --------------------------------------------------------- */

.sel-section { max-width: var(--wrap); margin: 0 auto; padding: 60px 22px 80px; }

/* Coral-orange SEL band — brand accent, distinct from AfterSchool navy/yellow. */
.sel-band {
  position: relative;
  background: linear-gradient(145deg, #FF8E45 0%, #E8532F 52%, #C93E1E 100%);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  color: #FFF8F6;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .sel-band {
  background: linear-gradient(145deg, #E8703A 0%, #D4491F 55%, #B0350F 100%);
  border: 1px solid var(--border);
}
/* Soft cream bloom for depth. */
.sel-band::before {
  content: "";
  position: absolute;
  top: -60%; right: -12%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 220, 0.16) 0%, transparent 62%);
  pointer-events: none;
}

.sel-head { text-align: center; margin-bottom: 36px; position: relative; }
.sel-head .eyebrow {
  color: #FFE8D6;
  background: rgba(255, 248, 246, 0.10);
  border-color: rgba(255, 232, 214, 0.40);
}
.sel-head h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}

.sel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }

.sel-item {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  padding: 26px 14px;
  text-align: center;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.sel-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 232, 214, 0.55);
}
.sel-n {
  font-family: var(--font-mono);
  font-size: 25px; font-weight: 700;
  color: #FFE8D6;
  margin-bottom: 10px;
}
.sel-zh { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.sel-en { font-size: 10.5px; opacity: 0.65; margin-top: 5px; font-family: var(--font-mono); letter-spacing: 0.5px; text-transform: uppercase; }

/* ---------------------------------------------------------
   11. AfterSchool teaser (on the homepage)
   --------------------------------------------------------- */

.as-teaser {
  position: relative;
  background: linear-gradient(160deg, #16307A 0%, #10245E 50%, #0A1738 100%);
  color: #fff;
  overflow: hidden;
}
.as-teaser::before {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.16), transparent 60%);
  pointer-events: none;
}
.as-teaser-inner { max-width: var(--wrap); margin: 0 auto; padding: 80px 22px; position: relative; }

.as-teaser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 944px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 38px;
}
.as-teaser-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.as-teaser-logo {
  width: 52px; height: 52px;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.as-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--yellow-brand);
  text-transform: uppercase;
}
.as-teaser-head h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.as-teaser-head p { font-size: 15.5px; color: rgba(255, 255, 255, 0.72); margin: 0; max-width: 520px; line-height: 1.75; }

.as-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--yellow-brand);
  color: #16130F !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.as-teaser-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 197, 24, 0.4); }

.as-teaser-media {
  display: grid;
  grid-template-columns: minmax(0, 640px) 280px;
  grid-template-areas:
    "video reel"
    "episodes reel";
  justify-content: center;
  align-items: stretch;
  gap: 18px 24px;
  max-width: 944px;
  margin: 0 auto;
}
.as-teaser-video { grid-area: video; min-width: 0; }
.as-teaser-video .as-video {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.as-teaser-reel { grid-area: reel; width: 280px; }
.as-teaser-reel .reel-embed { width: 100%; height: 100%; max-width: 280px; }
.as-teaser-reel .reel-embed iframe { height: 100%; min-height: 500px; }

.as-teaser-media .ep-grid { grid-area: episodes; gap: 12px; }
.as-teaser-media .ep-card { padding: 16px; gap: 8px; }
.as-teaser-media .ep-play { width: 34px; height: 34px; }
.as-teaser-media .ep-title { font-size: 14.5px; }
.as-teaser-media .ep-meta { font-size: 11.5px; }

@media (max-width: 760px) {
  .as-teaser-media {
    grid-template-columns: minmax(0, 640px);
    grid-template-areas: "video" "reel" "episodes";
    gap: 20px;
  }
  .as-teaser-reel { width: min(100%, 280px); justify-self: center; }
  .as-teaser-reel .reel-embed { height: 523px; }
}

.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.ep-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  overflow: hidden;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease-out),
              border-color 0.35s var(--ease);
}
.ep-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(245, 197, 24, 0.45);
  color: #fff;
  transform: translateY(-6px);
}

.ep-card-top { display: flex; align-items: center; justify-content: space-between; }
.ep-code { font-family: var(--font-mono); font-size: 11.5px; color: var(--yellow-brand); letter-spacing: 0.6px; }
.ep-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow-brand);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}
.ep-card:hover .ep-play { transform: scale(1.14); }
.ep-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.55; }
.ep-meta { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: auto; font-family: var(--font-mono); }

/* ---------------------------------------------------------
   11b. Testimonials — chat-bubble marquee
   --------------------------------------------------------- */

.testi-section {
  position: relative;
  overflow: hidden;
  padding: 84px 0 88px;
  background:
    radial-gradient(60% 70% at 12% 0%, var(--hero-mesh-3), transparent 70%),
    radial-gradient(60% 70% at 88% 100%, var(--hero-mesh-1), transparent 70%),
    var(--bg);
}

.testi-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 44px;
}

.bubble-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.bubble-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 6px 9px;
  animation: marquee 82s linear infinite;
}
.bubble-row.rev .bubble-track { animation-direction: reverse; animation-duration: 96s; }
.bubble-marquee.is-user-controlled .bubble-track { animation-play-state: paused; }

/* Keep auto-play, but let visitors take over with touch, drag, or keyboard. */
.user-scroll-marquee {
  cursor: grab;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.user-scroll-marquee.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.user-scroll-marquee:focus-visible {
  outline: 2px solid var(--yellow-brand);
  outline-offset: -2px;
}
.user-scroll-marquee::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bubble-track { animation: none; }
}

.bubble {
  position: relative;
  flex: 0 0 auto;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px 20px 20px 6px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-md);
  --bubble-bg: var(--surface);
  --bubble-border: var(--border);
}
/* Little speech-bubble tail at the bottom-left. */
.bubble::after {
  content: "";
  position: absolute;
  left: 14px; bottom: -7px;
  width: 16px; height: 16px;
  background: var(--bubble-bg);
  border-right: 1px solid var(--bubble-border);
  border-bottom: 1px solid var(--bubble-border);
  border-bottom-right-radius: 3px;
  transform: rotate(58deg) skew(8deg);
}

.bubble-coral {
  --bubble-bg: #FFE4DA;
  --bubble-border: rgba(232, 83, 47, 0.22);
  background: var(--bubble-bg);
  border-color: var(--bubble-border);
}
.bubble-yellow {
  --bubble-bg: #FFF3C4;
  --bubble-border: rgba(245, 197, 24, 0.35);
  background: var(--bubble-bg);
  border-color: var(--bubble-border);
}
.bubble-teal {
  --bubble-bg: #D8F0EA;
  --bubble-border: rgba(79, 148, 132, 0.28);
  background: var(--bubble-bg);
  border-color: var(--bubble-border);
}
.bubble-pink {
  --bubble-bg: #FDE0EB;
  --bubble-border: rgba(242, 92, 138, 0.28);
  background: var(--bubble-bg);
  border-color: var(--bubble-border);
}
.bubble-navy {
  --bubble-bg: #DDE7F8;
  --bubble-border: rgba(27, 66, 151, 0.22);
  background: var(--bubble-bg);
  border-color: var(--bubble-border);
}
:root[data-theme="dark"] .bubble-coral { --bubble-bg: #3A241C; --bubble-border: rgba(255, 142, 104, 0.28); }
:root[data-theme="dark"] .bubble-yellow { --bubble-bg: #3A3214; --bubble-border: rgba(245, 197, 24, 0.28); }
:root[data-theme="dark"] .bubble-teal { --bubble-bg: #1A332E; --bubble-border: rgba(111, 179, 162, 0.28); }
:root[data-theme="dark"] .bubble-pink { --bubble-bg: #3A1F2A; --bubble-border: rgba(242, 92, 138, 0.28); }
:root[data-theme="dark"] .bubble-navy { --bubble-bg: #1A2740; --bubble-border: rgba(120, 150, 220, 0.28); }

.bubble p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}
.bubble .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}
.bubble .who::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--coral);
}
.bubble:nth-child(3n) .who::before { background: var(--teal-deep); }
.bubble:nth-child(3n+1) .who::before { background: var(--navy-lift); }

@media (prefers-reduced-motion: reduce) {
  .bubble-track { animation: none; overflow-x: auto; }
}

@media (max-width: 560px) {
  .bubble { max-width: 280px; }
  .testi-section { padding: 60px 0 64px; }
}

/* ---------------------------------------------------------
   12. Donation band
   --------------------------------------------------------- */

/* Coral → navy CTA band — high contrast, yellow highlight on the amount. */
.donate-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #C93E1E 0%, #E8532F 38%, #1B4297 100%);
}
:root[data-theme="dark"] .donate-band {
  background: linear-gradient(155deg, #A8341A 0%, #C93E1E 40%, #16307A 100%);
}
.donate-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(232, 83, 47, 0.14), transparent 70%),
    radial-gradient(40% 50% at 12% 90%, rgba(245, 197, 24, 0.10), transparent 70%);
  pointer-events: none;
}
.donate-inner { max-width: 860px; margin: 0 auto; padding: 100px 22px; text-align: center; position: relative; }
.donate-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700;
  color: var(--yellow-brand);
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.32);
  border-radius: 999px;
  padding: 7px 15px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.donate-inner h2 {
  font-size: clamp(30px, 5.2vw, 54px);
  font-weight: 900;
  color: #F7F4EE;
  margin: 0 0 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.donate-amount { color: var(--yellow-brand); }
.donate-inner p { font-size: 16.5px; color: rgba(242, 238, 230, 0.62); margin: 0 auto 36px; max-width: 520px; line-height: 1.8; }

/* ---------------------------------------------------------
   13. Footer
   --------------------------------------------------------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
:root[data-theme="dark"] .site-footer {
  background: var(--surface);
  border-top-color: var(--border);
  color: var(--text-muted);
}
.site-footer .footer-col-title,
.site-footer .footer-brand-name { color: var(--text); }
.site-footer a { color: var(--link); }
.site-footer a:hover { color: var(--link-hover); }

.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 22px 48px;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 40px 32px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text); }
.footer-about { font-size: 14px; line-height: 1.85; margin: 0 0 20px; max-width: 320px; }

.footer-col { font-size: 14px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.55;
}
.footer-list--split {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 28px;
  justify-content: start;
}
.footer-list a {
  display: inline-block;
  position: relative;
}
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.footer-list a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-parent {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-family: var(--font-body);
  line-height: 1.4;
  color: var(--text);
  transition: background-color 0.28s var(--ease), transform 0.28s var(--ease-out), border-color 0.28s var(--ease);
}
.site-footer .footer-parent { color: var(--text); }
.footer-parent:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.site-footer .footer-parent:hover { color: var(--text); }
.footer-parent .globe { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.footer-parent__copy { display: grid; gap: 2px; min-width: 0; }
.footer-parent__label { color: var(--text-subtle); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.2; }
.footer-parent__name { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.footer-parent__domain { color: var(--text-muted); font-size: 11px; font-weight: 400; line-height: 1.3; }

.footer-partner {
  display: block;
  width: min(100%, 400px);
  margin-top: 24px;
  line-height: 0;
  border-radius: var(--r-sm);
  transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease);
}
.footer-partner:hover { transform: translateY(-2px); opacity: 0.9; }
.footer-partner:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.footer-partner img { display: block; width: 100%; height: auto; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 22px;
  text-align: center;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-subtle);
}

/* =========================================================
   14. AfterSchool page — navy/yellow brand skin
   ========================================================= */

body.afterschool {
  --accent: var(--yellow-brand);
  --link: var(--yellow-brand);
  --link-hover: #FFD84D;
}

/* The show's own colour world: deep navy ground in both themes,
   because "放學後" is an after-dark identity. Light mode lifts it. */
body.afterschool {
  --as-ground: #14295C;
  --as-surface: #1B356E;
  --as-surface-2: #21407F;
  --as-text: #F2F5FC;
  --as-muted: #B9C6E2;
  --as-dim: #8497C2;
}
:root[data-theme="dark"] body.afterschool {
  --as-ground: #0A1225;
  --as-surface: #121D38;
  --as-surface-2: #182648;
  --as-muted: #A9B7D6;
  --as-dim: #7A8CB8;
}

body.afterschool {
  background: var(--as-ground);
  color: var(--as-text);
}
body.afterschool .site-header {
  background: color-mix(in srgb, var(--as-ground) 84%, transparent);
}
body.afterschool .site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.1); }
body.afterschool .nav-link { color: var(--as-muted); }
body.afterschool .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
body.afterschool .nav-link::after { background: var(--yellow-brand); }
body.afterschool .icon-btn,
body.afterschool .lang-switch {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--as-muted);
}
body.afterschool .icon-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
body.afterschool .lang-switch__opt { color: var(--as-muted); }
body.afterschool .lang-switch__thumb { background: var(--yellow-brand); box-shadow: 0 2px 8px rgba(245, 197, 24, 0.4); }
body.afterschool :root[data-lang="zh"] .lang-switch__opt[data-lang-opt="zh"] { color: var(--navy); }
body.afterschool .nav-toggle { border-color: rgba(255, 255, 255, 0.16); }
body.afterschool .nav-toggle span { background: var(--as-text); }
body.afterschool .nav-cta {
  background: var(--yellow-brand);
  color: #14295C !important;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.3);
}
body.afterschool .nav-cta:hover { background: #FFD84D; }
body.afterschool .nav-cta:hover { box-shadow: 0 8px 20px rgba(245, 197, 24, 0.45); }

.as-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.as-brand:hover { color: #fff; }
.as-brand-logo {
  width: 42px; height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}
.as-brand:hover .as-brand-logo { transform: scale(1.07) rotate(-4deg); }
.as-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.4px; }
.as-brand-tag {
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--yellow-brand);
  letter-spacing: 1.2px;
  display: block;
  margin-top: 1px;
}

.as-wrap { max-width: 1160px; margin: 0 auto; }

.as-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 22px 72px;
}
.as-hero::before {
  content: "";
  position: absolute;
  top: -35%; right: -8%;
  width: 780px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.15), transparent 62%);
  pointer-events: none;
}
.as-hero::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -14%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 138, 107, 0.12), transparent 65%);
  pointer-events: none;
}

.as-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.as-hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--yellow-brand);
  text-transform: uppercase;
}
.as-hero h1 {
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px 0 20px;
  color: #fff;
}
.as-hero p { font-size: 17.5px; line-height: 1.75; color: var(--as-muted); max-width: 500px; margin: 0 0 34px; }

.as-hero-art {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  animation: floaty 7s ease-in-out infinite;
}
.as-hero-art img { width: 100%; height: auto; }

.as-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.as-stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.as-stat-num.yellow { color: var(--yellow-brand); }
.as-stat-num.coral  { color: var(--coral-soft); }
.as-stat-num.teal   { color: #8FC0B4; }
.as-stat-label { font-size: 13.5px; color: var(--as-dim); margin-left: 7px; }

.as-platforms { max-width: 1160px; margin: 0 auto; padding: 8px 22px; }
.as-platform-row { display: flex; gap: 12px; flex-wrap: wrap; }
.as-platform {
  flex: 1 1 210px;
  min-width: 210px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 12px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s var(--ease);
}
.as-platform svg { width: 19px; height: 19px; flex-shrink: 0; }
.as-platform:hover { transform: translateY(-3px); }
.as-platform.spotify { background: #1DB954; color: #06351A !important; }
.as-platform.spotify:hover { box-shadow: 0 12px 28px rgba(29, 185, 84, 0.4); }
.as-platform.apple   { background: rgba(255, 255, 255, 0.9); color: #16130F !important; }
.as-platform.youtube { background: #FF0000; color: #fff !important; }
.as-platform.youtube:hover { box-shadow: 0 12px 28px rgba(255, 0, 0, 0.36); }
.as-platform.kkbox { background: #09C3C8; color: #032F31 !important; }
.as-platform.kkbox:hover { box-shadow: 0 12px 28px rgba(9, 195, 200, 0.34); }
.as-platform.firstory { background: #7C5CFC; color: #fff !important; }
.as-platform.firstory:hover { box-shadow: 0 12px 28px rgba(124, 92, 252, 0.36); }
.as-platform[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--as-dim) !important;
  cursor: not-allowed;
}
.as-platform[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.as-follow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--as-dim); }
.as-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-weight: 700;
  color: var(--as-text) !important;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease-out);
}
.as-follow-link:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.as-follow-link svg { width: 16px; height: 16px; }

.as-featured { max-width: 1160px; margin: 0 auto; padding: 58px 22px 30px; }
.as-featured-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--yellow-brand);
  text-transform: uppercase;
}

.as-featured-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 20px;
  background: var(--as-surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}
.as-video { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.as-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.as-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.as-tag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 20px; }
.as-tag.teal   { background: rgba(143, 192, 180, 0.18); color: #8FC0B4; }
.as-tag.yellow { background: rgba(245, 197, 24, 0.16); color: var(--yellow-brand); }

.as-featured-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--as-dim); letter-spacing: 0.5px; }
.as-featured-card h2 {
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin: 8px 0 14px;
  letter-spacing: -0.4px;
}
.as-featured-card > div > p { font-size: 14.5px; line-height: 1.8; color: var(--as-muted); margin: 0 0 22px; }
.as-featured-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.as-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-brand);
  color: #14295C !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.as-listen-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 197, 24, 0.4); }
.as-host { font-size: 13.5px; color: var(--as-dim); }

/* Short-video (Instagram Reel) embed */
.as-reels { max-width: 1160px; margin: 0 auto; padding: 40px 22px 20px; text-align: center; }
.as-reels-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2.4px; color: var(--yellow-brand); text-transform: uppercase; }
.as-reels h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; margin: 8px 0 6px; letter-spacing: -0.5px; }
.as-reels p { font-size: 15px; color: var(--as-muted); margin: 0 auto 24px; max-width: 460px; }
.as-reel-preview {
  position: relative;
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #14295C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}
.as-reel-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease); }
.as-reel-preview:hover img { transform: scale(1.025); filter: brightness(0.82); }
.as-reel-preview__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  color: #14295C;
  font-size: 25px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.28s var(--ease-out), background-color 0.28s var(--ease);
}
.as-reel-preview:hover .as-reel-preview__play { transform: translate(-50%, -50%) scale(1.08); background: var(--yellow-brand); }
.as-reel-preview__cta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(7, 15, 38, 0.86);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.reel-embed {
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.reel-embed iframe { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 420px) { .reel-embed iframe { height: 560px; } }

.as-episodes { max-width: 1160px; margin: 0 auto; padding: 50px 22px 40px; }
.as-episodes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.as-episodes-head h2 { font-size: clamp(24px, 3.4vw, 31px); font-weight: 800; color: #fff; margin: 0; letter-spacing: -0.6px; }
.as-episodes-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--as-dim); }

.as-ep-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.as-ep-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--as-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  color: var(--as-text);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease);
}
a.as-ep-row:hover {
  background: var(--as-surface-2);
  border-color: rgba(245, 197, 24, 0.4);
  transform: translateX(5px);
  color: var(--as-text);
}
.as-ep-row.is-pending { opacity: 0.78; }

.as-ep-play {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
a.as-ep-row:hover .as-ep-play { transform: scale(1.12); }
.as-ep-play.live { background: var(--yellow-brand); color: var(--navy); }
.as-ep-play.edit { background: rgba(255, 142, 104, 0.92); color: #2A1810; }
.as-ep-play.shot { background: rgba(255, 255, 255, 0.14); color: var(--as-dim); }

.as-ep-main { min-width: 0; }
.as-ep-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.as-ep-code { font-family: var(--font-mono); font-size: 11px; color: var(--as-dim); letter-spacing: 0.4px; }
.as-ep-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.as-ep-badge.live { background: rgba(245, 197, 24, 0.18); color: var(--yellow-brand); }
.as-ep-badge.edit { background: rgba(255, 142, 104, 0.18); color: var(--coral-soft); }
.as-ep-badge.shot { background: rgba(255, 255, 255, 0.1); color: var(--as-dim); }
.as-ep-tag { font-size: 11px; color: #8FC0B4; }
.as-ep-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #fff; line-height: 1.5; }
.as-ep-host { font-size: 12.5px; color: var(--as-dim); margin-top: 3px; }
.as-ep-side { text-align: right; white-space: nowrap; }
.as-ep-date { font-size: 12.5px; color: var(--as-muted); }
.as-ep-len { font-size: 11.5px; color: var(--as-dim); font-family: var(--font-mono); }

.as-support { margin: 34px 22px 0; }
.as-support-card {
  position: relative;
  max-width: 1116px;
  margin: 0 auto;
  background: var(--coral);
  border-radius: var(--r-xl);
  padding: 62px 40px;
  text-align: center;
  color: #2A0F05;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.as-support-card::before {
  content: "";
  position: absolute;
  top: -55%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.as-support-card > * { position: relative; }
.as-support-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2.4px; opacity: 0.65; text-transform: uppercase; }
.as-support-card h2 { font-size: clamp(25px, 3.8vw, 35px); font-weight: 800; margin: 12px 0 14px; line-height: 1.32; letter-spacing: -0.6px; }
.as-support-card p { font-size: 15.5px; line-height: 1.75; max-width: 520px; margin: 0 auto 30px; opacity: 0.88; }
.as-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14295C;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  padding: 16px 38px;
  border-radius: var(--r-md);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), background-color 0.28s var(--ease);
}
.as-support-btn:hover { transform: translateY(-3px); background: #1B356E; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); }

.as-footer { max-width: 1160px; margin: 0 auto; padding: 62px 22px 48px; text-align: center; }
.as-footer-logo { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px; }
.as-footer-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #fff; }
.as-footer-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; color: rgba(255, 255, 255, 0.36); margin-top: 6px; }
.as-footer-credit { color: var(--as-muted); font-size: 13.5px; margin-top: 12px; }
.as-footer-info { font-size: 13.5px; color: var(--as-dim); margin-top: 20px; line-height: 2; }
.as-footer-info a { color: var(--as-muted); }
.as-footer-info a:hover { color: var(--yellow-brand); }
.as-footer-contact { color: var(--as-dim); font-size: 13.5px; margin-top: 5px; }
.as-footer-contact a { color: var(--as-muted); }
.as-footer-contact a:hover { color: var(--yellow-brand); }
.as-footer-parent { margin-top: 18px; }
.as-footer-parent .footer-parent { color: var(--as-muted); }
.as-footer-copy { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.3); margin-top: 22px; }

/* =========================================================
   14b. Care plan band + resource cards + tax block (homepage)
   ========================================================= */

.careplan {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .careplan { background: var(--surface); }
.careplan::before {
  content: "";
  position: absolute;
  top: -40%; right: -8%;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.18), transparent 62%);
  pointer-events: none;
}
.careplan-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 78px 22px;
  position: relative;
  text-align: center;
}
.careplan .eyebrow {
  color: var(--accent-hover);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.careplan .eyebrow::before, .careplan .eyebrow::after { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.careplan h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 800;
  margin: 6px 0 18px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--text);
}
.careplan p { font-size: 16.5px; line-height: 1.9; color: var(--text-muted); margin: 0 auto; max-width: 680px; }
.careplan-badge {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
}
.careplan-partner {
  display: block;
  width: min(100%, 400px);
  margin: 26px auto 0;
  line-height: 0;
  border-radius: var(--r-sm);
  transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease);
}
.careplan-partner:hover { transform: translateY(-2px); opacity: 0.9; }
.careplan-partner:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.careplan-partner img { display: block; width: 100%; height: auto; }

.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.res-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px 24px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease);
}
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); color: var(--text); }
.res-ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.res-card h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 800; margin: 0 0 8px; }
.res-card p { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; flex: 1; }
.res-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--link); }

/* Tax / support admin card inside the donate band */
.support-extra {
  max-width: 760px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.support-extra h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.support-extra p { font-size: 14.5px; line-height: 1.85; color: var(--text-muted); margin: 0 0 12px; }
.support-extra ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.support-extra a { font-weight: 700; }
.support-methods { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.support-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease-out);
}
.support-chip:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.support-chip.line { background: #06C755; border-color: #06C755; color: #fff; }
.support-chip.line:hover { color: #fff; filter: brightness(1.05); }

/* =========================================================
   14c. Shop page
   ========================================================= */

.shop-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #fdeede 0%, var(--bg) 60%);
  padding: 78px 22px 40px;
  text-align: center;
}
.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 14px;
  letter-spacing: -0.8px;
}
.shop-hero p { font-size: 16.5px; color: var(--text-muted); margin: 0 auto; max-width: 560px; line-height: 1.8; }

.shop-section { max-width: var(--wrap); margin: 0 auto; padding: 44px 22px; }
.shop-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.shop-section-head h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--text); margin: 0; letter-spacing: -0.4px; }
.shop-section-head .rule { flex: 1; height: 1px; background: var(--border); min-width: 40px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.product-media {
  background: var(--surface-sunk);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  min-height: 190px;
}
.product-media img { max-height: 200px; width: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }
.product.wide .product-media img { max-height: 220px; }

.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text); margin: 0 0 6px; line-height: 1.4; }
.product-price { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--coral-deep); margin-bottom: 4px; }
.product-price .was { font-size: 13px; color: var(--text-subtle); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.product-spec { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-subtle); margin-bottom: 10px; }
.product-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; flex: 1; }
.product-cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--link); align-self: flex-start; }

.order-info {
  max-width: 860px;
  margin: 24px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.order-info h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 16px; text-align: center; }
.order-info ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 2; color: var(--text-muted); }
.order-info .hi { color: var(--coral-deep); font-weight: 700; }
.order-info .acct {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  background: var(--bg-tint);
  border-radius: var(--r-md);
  padding: 14px;
}

/* =========================================================
   14d. Donation page
   ========================================================= */

.donation-wrap {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.donation-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 173, 85, 0.2), transparent 31%),
    radial-gradient(circle at 88% 5%, rgba(44, 168, 161, 0.15), transparent 28%),
    var(--bg);
}

.donation-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -180px;
  bottom: -220px;
  border: 68px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.donation-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.donation-hero h1 {
  max-width: 680px;
  margin: 15px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -2.8px;
  color: var(--text);
}

.donation-hero .accent { color: var(--coral-deep); }

.donation-lede {
  max-width: 610px;
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-muted);
}

.donation-monthly-note {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.donation-monthly-note strong {
  margin-right: 4px;
  color: var(--coral-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.donation-checkout-card {
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.donation-checkout-step,
.donation-followup-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.donation-checkout-card h2 {
  margin: 11px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--text);
}

.donation-checkout-card > p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.donation-checkout-button {
  width: 100%;
  justify-content: center;
  margin: 24px 0 17px;
  min-height: 54px;
  font-size: 16px;
}

.donation-checkout-card .donation-checkout-meta {
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}

.donation-checkout-card .donation-privacy-note {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--text-subtle);
}

.donation-impact {
  padding: 68px 0 72px;
  background: var(--surface-sunk);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.donation-impact .section-head,
.donation-section .section-head {
  max-width: 760px;
  margin: 0 auto 32px;
}

.donation-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.donation-impact-card {
  min-height: 170px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.donation-impact-card strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.donation-impact-card span {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.donation-impact-card strong span {
  color: inherit;
  font: inherit;
}

.donation-section { padding: 76px 0; }
.donation-section-tint { background: var(--bg-tint); }

.donation-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.donation-method-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.donation-method-number {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.donation-method-card h3 {
  margin: 0 44px 22px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
}

.donation-method-card p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.donation-method-card dl { margin: 0; }
.donation-method-card dl div { margin-top: 14px; }
.donation-method-card dt {
  margin-bottom: 3px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.donation-method-card dd {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.donation-qr {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.donation-qr-wide {
  width: 230px;
  height: 115px;
}

.donation-followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
}

.donation-followup h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
}

.donation-followup p {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.73);
  font-size: 14px;
  line-height: 1.7;
}

.donation-followup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.donation-followup .support-chip:not(.line) {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.donation-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.donation-info-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.donation-info-card h2 {
  margin: 10px 0 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
}

.donation-info-card p,
.donation-info-card li {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.donation-info-card ul { padding-left: 20px; }
.donation-download { margin-top: 10px; }

.donation-disclosure {
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.donation-disclosure iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

/* =========================================================
   15. Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .as-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .as-hero-art { max-width: 400px; }
}

@media (max-width: 1039px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .sel-grid { grid-template-columns: repeat(3, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .donation-checkout-card { max-width: 650px; }
  .donation-impact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-tools { margin-left: auto; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  body.afterschool .site-nav { background: var(--as-ground); border-bottom-color: rgba(255, 255, 255, 0.1); }
  .site-nav.is-open { display: flex; animation: nav-in 0.3s var(--ease-out); }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }

  .nav-link { padding: 13px 10px; font-size: 16px; }
  .nav-link::after { display: none; }
  .nav-cta { text-align: center; justify-content: center; margin: 8px 0 0; padding: 14px 20px; }

  .as-featured-card { grid-template-columns: 1fr; gap: 22px; }
  .hero-showcase { gap: 14px; }
  .show-card { padding: 20px 16px; }
  .show-card__logo { width: 44px; height: 44px; }
}

@media (max-width: 760px) {
  .ep-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat { padding: 26px 12px; }

  .hero { padding: 64px 22px 52px; }
  .hero-showcase { grid-template-columns: 1fr; margin-top: 44px; }
  .section { padding: 60px 22px 32px; }
  .sel-section { padding: 44px 22px 56px; }
  .sel-band { padding: 34px 20px; }
  .as-teaser-inner { padding: 58px 22px; }
  .donate-inner { padding: 66px 22px; }
  .as-hero { padding: 60px 22px 52px; }
  .as-support-card { padding: 46px 24px; }

  .as-ep-row { grid-template-columns: auto 1fr; row-gap: 10px; padding: 16px 18px; }
  a.as-ep-row:hover { transform: none; }
  .as-ep-side { grid-column: 2; text-align: left; }

  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .res-card-newsletter { grid-column: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .careplan-inner { padding: 56px 22px; }
  .order-info, .support-extra { padding: 24px 20px; }
  .donation-wrap { width: min(100% - 36px, 1120px); }
  .donation-hero { padding: 64px 0 54px; }
  .donation-hero h1 { letter-spacing: -1.8px; }
  .donation-checkout-card { padding: 27px 22px; border-radius: 22px; }
  .donation-impact, .donation-section { padding: 56px 0; }
  .donation-method-grid, .donation-info-grid { grid-template-columns: 1fr; }
  .donation-method-card { min-height: 0; padding: 26px 22px; }
  .donation-followup { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px; }
  .donation-followup-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .sel-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { font-size: clamp(28px, 8.3vw, 37px); }
  .stat-num { font-size: clamp(28px, 8.6vw, 38px); }
  .donate-inner h2 { font-size: clamp(26px, 8vw, 34px); }
  /* Long YouTube descriptions; the full text is one tap away. */
  .as-featured-card > div > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
  }
  .hero-actions .btn { width: 100%; }
  .as-platform-row { flex-direction: column; }
  .as-platform { width: 100%; flex: 0 0 auto; }
  .as-teaser-cta { width: 100%; justify-content: center; }
  .brand-name { font-size: 15px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-lockup-name { font-size: 14px; white-space: nowrap; }
  /* At this width the 7px tagline is unreadable and squeezes the name. */
  .brand-lockup-sub { display: none; }
  /* "Youth for Christ Taiwan" is three times the width of the zh name. */
  :root[data-lang="en"] .brand-lockup-name { white-space: normal; max-width: 7.2em; font-size: 13px; line-height: 1.1; }
  .donation-impact-grid { grid-template-columns: 1fr; }
  .donation-impact-card { min-height: 135px; }
  .donation-monthly-note { border-radius: var(--r-md); }
  .donation-info-card { padding: 26px 22px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 10px 12px; gap: 6px; }
  .icon-btn, .nav-toggle { width: 38px; height: 38px; }
  .lang-switch { height: 38px; }
  .lang-switch__opt { min-width: 34px; padding: 0 8px; }
  .brand { gap: 8px; }
  .brand-logo {
    content: url("/assets/img/yfc-logo-new.png") !important;
    width: 36px;
    height: 36px;
  }
  .header-tools { gap: 4px; }
  .as-brand { gap: 8px; }
  .as-brand-logo { width: 36px; height: 36px; }
  .as-brand-name { font-size: 15px; }
  /* No room for the English name; the link keeps its aria-label. */
  :root[data-lang="en"] .brand-lockup { display: none; }
}

/* Print — flatten the theatre. */
@media print {
  .site-header, .header-tools, .nav-toggle, .as-support, .donate-band,
  .slogan-band { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}


/* Main navigation groups */
.nav-group { position: relative; }
.nav-group > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group__caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.nav-group[open] > summary .nav-group__caret { transform: rotate(225deg) translate(-1px, -1px); }
.nav-submenu { position: absolute; top: calc(100% - 2px); left: 0; z-index: 30; display: grid; gap: 3px; min-width: 220px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg); }
.nav-submenu a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-muted); font-size: 14px; line-height: 1.45; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav-submenu a:hover, .nav-submenu a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-group:focus-within > summary { color: var(--text); }
.resource-page-grid .content-card { grid-column: span 6; }
.vision-message { max-width: 880px; min-height: 0; margin: 0 auto; padding: clamp(28px, 4vw, 44px); gap: 14px; }
.vision-message p { max-width: none; margin: 0; color: var(--text); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.95; }
.event-feature { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr); gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 48px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.event-feature__image img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) - 6px); }
.event-feature__body h2 { margin: 10px 0 4px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.2; }
.event-theme { color: var(--accent); font-size: 20px; font-weight: 800; line-height: 1.5; }
.event-details { display: grid; gap: 14px; margin: 24px 0; }
.event-details div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.event-details dt { color: var(--text-muted); font-weight: 700; }
.event-details dd { margin: 0; line-height: 1.7; }
@media (max-width: 1120px) {
  .site-header .nav-toggle { display: flex; }
  .site-header .header-tools { margin-left: auto; }
  .site-header .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
  .site-header .site-nav.is-open { display: flex; animation: nav-in 0.3s var(--ease-out); }
  .site-header .nav-link { padding: 13px 10px; font-size: 16px; }
  .site-header .nav-link::after { display: none; }
  .site-header .nav-group { width: 100%; }
  .site-header .nav-group > summary { width: 100%; justify-content: space-between; }
  .site-header .nav-submenu { position: static; min-width: 0; margin: 0 0 4px 12px; padding: 2px 0 4px 10px; border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: transparent; box-shadow: none; }
  .site-header .nav-submenu a { padding: 10px 12px; font-size: 15px; }
  .site-header .nav-cta { text-align: center; justify-content: center; margin: 8px 0 0; padding: 14px 20px; }
}
@media (max-width: 700px) { .resource-page-grid .content-card { grid-column: auto; } .event-details div { grid-template-columns: 1fr; gap: 4px; } }

/* Mobile refinements: comfortable tap targets and tidier wrapping on phones. */
@media (max-width: 560px) {
  .footer-list { gap: 2px; }
  .footer-list a { padding: 7px 0; }
  .footer-list--split { column-gap: 24px; }
  .footer-parent__label { font-size: 11px; }
  .footer-safeguarding a[href^="tel:"],
  .footer-safeguarding a[href^="mailto:"] { white-space: nowrap; }
  .footer-meta { gap: 10px; margin-top: -8px; }
  .footer-archive a { display: inline-block; padding: 4px 0; }

  .work-link, .res-link, .product-cta,
  .video-card a, .content-card > a, .content-card a,
  .archive-page .content-card > a { display: inline-flex; align-items: center; min-height: 40px; }
  .content-card h3 a { display: inline; min-height: 0; }

  .product-details summary { padding: 10px 0; }
  .product-details + .product-cta { margin-top: 4px; }

  .as-footer-info a, .as-footer-contact a { display: inline-block; padding: 8px 2px; }
}
