/* GoodWill Mozambique, site styles.
   Theme (October 2026 first look, round 2 photo-led and lighter): warm white paper, bold blue, green, coral and yellow,
   rounded display lettering (Fredoka), readable body text (Nunito), handwritten notes (Caveat),
   hand-drawn hearts and stars, notebook details, organic shapes and curved dividers. */

:root {
  --cream: #FFFDF9;
  --cream-2: #F6EEE3;
  --blush: #FCF4EC;
  --sky: #EEF5FE;
  --paper: #FFFFFF;
  --rule: rgba(31, 95, 209, 0.14);
  --margin-line: rgba(240, 105, 74, 0.5);

  --ink: #1D2A48;
  --ink-soft: #44506B;

  --blue: #1F5FD1;
  --blue-deep: #17459E;
  --blue-soft: #DCE7FB;
  --green: #14A876;
  --green-deep: #0A7F57;
  --green-soft: #D3F0E1;
  --green-night: #076446;
  --mint: #A9E5BD;
  --coral: #F0694A;
  --coral-deep: #C8472A;
  --coral-soft: #FDDDD3;
  --yellow: #F7C531;
  --yellow-soft: #FDF0C2;
  --pink: #F4A3BD;
  --lilac: #B9B4EA;

  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;

  --r-sm: 14px;
  --r: 24px;
  --r-lg: 36px;
  --wobble: 18px 26px 16px 28px / 26px 16px 28px 18px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);

  --shadow: 0 2px 0 rgba(29, 42, 72, 0.05), 0 22px 44px -26px rgba(29, 42, 72, 0.32);
  --shadow-pop: 0 5px 0 rgba(29, 42, 72, 0.16);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; color: var(--blue); text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .help :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.section { position: relative; padding-block: var(--section-y); }
.section-blush { background: var(--blush); }
.section-sky { background: var(--sky); }
.section-cream2 { background: var(--cream-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head.left { margin-left: 0; }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.section-lead, .lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.section-head .section-lead { margin-bottom: 0; }
.section-head .section-lead + .section-lead { margin-top: 0.8em; }
.h-display { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.015em; }
.h-sub { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.on-dark { color: #fff; }

.hand-note {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; line-height: 1.2;
  color: var(--coral-deep); transform: rotate(-2deg); display: inline-block; margin-bottom: 0.4em;
}
.hand-note.big { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.text-link {
  font-weight: 800; color: var(--blue); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { text-decoration-color: var(--coral); }
.text-link.on-dark { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 52px; padding: 0.8em 1.55em;
  border: 0; border-radius: var(--wobble);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.15;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; box-shadow: var(--shadow-pop);
  transition: transform 0.28s var(--ease-pop), box-shadow 0.28s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 8px 0 rgba(29, 42, 72, 0.16); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(29, 42, 72, 0.16); }
.btn-icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-green { background: var(--green-deep); color: #fff; }
.btn-green:hover { background: #086A48; }
.btn-coral { background: var(--coral-deep); color: #fff; }
.btn-coral:hover { background: #B23C21; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFD457; }
.btn-outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 3px currentColor; }
.btn-outline:hover { background: var(--blue-soft); box-shadow: inset 0 0 0 3px currentColor; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 3px #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 3px #fff; }
.btn-small { min-height: 46px; padding: 0.6em 1.2em; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Paper, notebook, tape, blobs ---------- */
.paper { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ruled {
  background-image:
    linear-gradient(90deg, transparent 0 46px, var(--margin-line) 46px 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px);
  background-position: 0 0, 0 18px;
}
.notebook {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px);
}
.notebook::before {
  content: ""; position: absolute; left: clamp(10px, 2.4vw, 30px); top: 0; bottom: 0; width: 18px;
  background: radial-gradient(circle, var(--cream-2) 0 8px, rgba(29, 42, 72, 0.12) 8.5px 9.5px, transparent 10px) 0 40px / 18px 150px repeat-y;
  pointer-events: none;
}
.ph { position: relative; border-radius: var(--r); overflow: visible; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.blob, .blob img { border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; }
[class*="tape-"]::after {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 28px;
  transform: translateX(-50%) rotate(-4deg); border-radius: 3px; opacity: 0.85; z-index: 2;
  box-shadow: 0 1px 2px rgba(29, 42, 72, 0.12);
}
.tape-yellow::after { background: var(--yellow); }
.tape-pink::after { background: var(--pink); }
.tape-green::after { background: var(--mint); }
.tape-blue::after { background: #9DBDF2; }

/* ---------- Doodles (decorative, gently moving) ---------- */
.doodle { position: absolute; pointer-events: none; z-index: 1; width: 44px; height: 44px; animation: bob 7s ease-in-out infinite; }
.doodle:nth-of-type(2n) { animation-duration: 8.5s; animation-delay: -2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(18deg); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 2px solid transparent; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-color: rgba(31, 95, 209, 0.12); box-shadow: 0 10px 30px -24px rgba(29, 42, 72, 0.5); }
.site-header .wrap { max-width: 1400px; }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 80px; }
.brand { flex: none; display: block; padding: 6px 0; border-radius: 10px; }
.brand img { height: 58px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 6px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; white-space: nowrap;
  color: var(--ink); text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-donate { min-height: 48px; padding: 0.7em 1.2em; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 14px; background: var(--blue-soft); color: var(--blue-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.burger { display: grid; gap: 4px; width: 20px; }
.burger span { display: block; height: 3px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1400px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--gutter) 22px;
    background: var(--cream); border-bottom: 2px solid rgba(31, 95, 209, 0.12); box-shadow: 0 24px 40px -30px rgba(29, 42, 72, 0.5); }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; max-width: var(--wrap); margin-inline: auto; }
  .main-nav a { padding: 12px 14px; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .header-inner { gap: 10px; min-height: 68px; }
  .brand img { height: 44px; }
  .btn-donate { padding: 0.6em 0.9em; font-size: 0.9rem; min-height: 46px; }
  .menu-toggle { padding: 0 12px; min-height: 46px; }
}
@media (max-width: 390px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Home: hero ---------- */
.hero { position: relative; padding-top: clamp(16px, 2.5vw, 28px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-card {
  position: relative; z-index: 2; width: min(760px, 100%); margin: clamp(-200px, -14vw, -40px) 0 0 clamp(0px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 56px) clamp(28px, 4vw, 48px) clamp(64px, 6vw, 84px);
}
.hero-card .d-heart-coral { right: -16px; top: -20px; width: 58px; height: 54px; fill: var(--coral); }
.hero-card .d-star-yellow { right: 46px; bottom: -22px; width: 46px; height: 46px; fill: var(--yellow); }
.rainbow { display: inline-block; margin-right: 0.18em; }
.rainbow span { display: inline-block; transition: transform 0.3s var(--ease-pop); }
.rainbow span:nth-child(odd) { transform: translateY(-0.03em) rotate(-3deg); }
.rainbow span:nth-child(even) { transform: translateY(0.03em) rotate(3deg); }
.h-display-rest { color: var(--blue); }

/* ---------- Home: the story of us ---------- */
.story-of-us { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 70px); }
.sou-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.storybook { position: relative; width: 100%; max-width: 420px; justify-self: center; transform: rotate(-3deg); transition: transform 0.5s var(--ease-pop); }
.storybook:hover { transform: rotate(-1deg) translateY(-4px); }
.storybook-art { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(23, 69, 158, 0.25)); }
.storybook-title {
  position: absolute; left: 14%; right: 6%; top: 30%;
  font-family: var(--font-display); font-weight: 600; color: #FFF6E4; text-align: center;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; margin: 0;
}
.storybook-by {
  position: absolute; left: 14%; right: 6%; top: 66%; margin: 0; text-align: center;
  font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: #FFF6E4;
}
.sou-text { max-width: 560px; }
.sou-text p { font-size: 1.12rem; }
.sou-text .h-sub { color: var(--coral-deep); }

/* ---------- Ribbon ---------- */
.ribbon { position: relative; height: clamp(150px, 16vw, 230px); margin-top: -10px; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0 55%, var(--blush) 55%); }
.ribbon > svg:first-child { position: relative; z-index: 2; width: 100%; height: 100%; }
.ribbon-text { font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: 0.14em; fill: #FFF6E4; }
/* The ribbon drifts slowly to the left, without end. Its wave repeats every 1469.36 units and carries three word sets
   every two waves, so one loop moves it exactly two waves and starts again on the same picture (no jump).
   It stays still for visitors who ask for reduced motion. */
.ribbon-flow { animation: ribbon-flow 100s linear infinite; }
@keyframes ribbon-flow { to { transform: translateX(-2938.72px); } }
.ribbon .ribbon-heart { left: 7%; bottom: 4%; width: 40px; height: 38px; fill: var(--coral); }
.ribbon .ribbon-star { right: 7%; top: 4%; width: 40px; height: 40px; fill: var(--yellow); }

/* ---------- Home: what we do ---------- */
.what-we-do { padding-top: clamp(24px, 4vw, 48px); }
.wwd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); text-align: center; }
.wwd-icon { width: 58px; height: 58px; margin: 0 auto 16px; color: var(--blue); }
.wwd h3 { font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-deep); max-width: 260px; margin-inline: auto; }
.wwd p { color: var(--ink-soft); max-width: 340px; margin-inline: auto; }
.wave { display: block; width: 100%; height: clamp(36px, 5vw, 80px); }
.wave-blush-cream { background: var(--cream); fill: var(--blush); }

/* ---------- Home: life at goodwill ---------- */
.life-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.tour-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.chip svg { width: 24px; height: 24px; flex: none; }
.chip-blue { background: var(--blue-soft); color: var(--blue-deep); }
.chip-coral { background: var(--coral-soft); color: #9E3519; }
.chip-green { background: var(--green-soft); color: #075C3F; }
.chip-yellow { background: var(--yellow-soft); color: #6E5200; }
.chip-blue svg, .chip-coral svg, .chip-green svg, .chip-yellow svg { fill: none; }
.chip svg use[href="#d-house"] { fill: currentColor; }
.life-mosaic { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.life-mosaic .ph-a { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; transform: rotate(-2deg); }
.life-mosaic .ph-b { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 3 / 4.4; align-self: center; }
.life-mosaic .ph-c { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; transform: rotate(1.5deg); width: 88%; justify-self: end; }
.life-mosaic .ph img { box-shadow: var(--shadow); }
.life-mosaic .life-flower { right: -10px; bottom: -14px; width: 54px; height: 54px; fill: var(--pink); }

/* ---------- Home: meet our children ---------- */
.meet { overflow: hidden; }
.meet .meet-sparkle { left: 7%; top: 48px; width: 48px; height: 48px; fill: var(--yellow); animation-name: twinkle; }
.avatar-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.4vw, 26px); max-width: 1080px; margin: 0 auto clamp(36px, 5vw, 56px); }
.avatar-grid li { width: clamp(86px, 10vw, 118px); }
.avatar { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); border-radius: 18px; }
.avatar img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 0 0 4px var(--ring, var(--blue)), var(--shadow);
  transition: transform 0.35s var(--ease-pop);
}
.avatar:hover img { transform: translateY(-4px) rotate(-4deg) scale(1.04); }
.avatar-name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-align: center; }
.ring-0 { --ring: var(--blue); }
.ring-1 { --ring: var(--coral); }
.ring-2 { --ring: var(--green); }
.ring-3 { --ring: var(--yellow); }

/* ---------- Home: ways to help (green) ---------- */
.wave-to-green { background: var(--sky); fill: var(--green-night); margin-bottom: -1px; }
.wave-from-green { background: var(--cream); fill: var(--green-night); margin-top: -1px; }
.help { position: relative; background: var(--green-night); color: #fff; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 100px); overflow: hidden; }
.help::before {
  content: ""; position: absolute; left: -8%; top: 12%; width: 70%; height: 78%;
  background: var(--green-deep); border-radius: 46% 54% 60% 40% / 52% 40% 60% 48%;
}
.help-letters {
  position: absolute; right: -2%; top: 2%; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(7rem, 15vw, 15rem); line-height: 0.82; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.08);
  text-align: right; pointer-events: none; user-select: none;
}
.help-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.help-main p { font-size: 1.15rem; max-width: 560px; }
.help-main .h-sub { max-width: 560px; }
.help-main .help-label { margin: 0 0 0.6em; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.16em; color: #fff; }
.help-main .help-tagline { margin: 0.1em 0 0.9em; font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2rem); line-height: 1.2; color: var(--yellow); }
.help-more { margin-top: 18px; }
.help-cards { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); margin-top: clamp(44px, 6vw, 72px); }
.help-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); }
.help-card .btn { margin-top: auto; }
.help-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.help-card p { color: var(--ink-soft); }
.help-card-icon { width: 54px; height: 54px; color: var(--coral); margin-bottom: 12px; }
.help-card:nth-child(2) .help-card-icon { color: var(--yellow); }

/* ---------- Home: community ---------- */
.comm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.comm-photos { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 18px; }
.comm-a { grid-column: 1 / span 2; aspect-ratio: 16 / 10; }
.comm-b { aspect-ratio: 3 / 4; transform: rotate(-2.5deg); }
.comm-c { aspect-ratio: 3 / 4; margin-top: 30px; }
.comm-photos .ph img { box-shadow: var(--shadow); }
.comm-text .hand-note { display: block; width: fit-content; margin-bottom: 0.8em; }

/* ---------- Home: partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.partner-card { position: relative; background: var(--paper); border-radius: var(--r); padding: 28px 24px 26px; box-shadow: var(--shadow); border-top: 10px solid var(--accent, var(--blue)); }
.partner-card h3 { font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.partner-card p { color: var(--ink-soft); font-size: 1rem; }
.pc-blue { --accent: var(--blue); }
.pc-green { --accent: var(--green); }
.pc-coral { --accent: var(--coral); }
.pc-yellow { --accent: var(--yellow); }

/* ---------- Home: stay connected + forms ---------- */
.stay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-left: clamp(24px, 4vw, 40px); }
.social-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.social-pills a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-deep); font-weight: 800; text-decoration: none; transition: transform 0.25s var(--ease-pop), background-color 0.2s ease;
}
.social-pills a:hover { transform: translateY(-3px) rotate(-2deg); background: #CADBFA; }
.social-pills svg { width: 22px; height: 22px; }

.form-card { padding: clamp(24px, 4vw, 44px); position: relative; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 800; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid #C9D2E3; border-radius: 16px;
  background: #fff; color: var(--ink); font: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 209, 0.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--coral-deep); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; }
.form-ok { background: var(--green-soft); color: #075C3F; }
.form-error { background: var(--coral-soft); color: #8F2E16; }
.form-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; }
.page-hero .lead { color: var(--ink); }

/* ---------- Prose and two column blocks ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.1rem; }
.prose.center { margin-inline: auto; }
.prose .emphasis { font-family: var(--font-hand); font-size: 1.75rem; line-height: 1.3; color: var(--blue-deep); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .ph img { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.note-card { position: relative; padding: clamp(26px, 4vw, 48px) clamp(22px, 4vw, 48px) clamp(26px, 4vw, 44px) clamp(62px, 6vw, 80px); }
.note-card h2, .note-card h3 { color: var(--blue); }
.quote-line { font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--coral-deep); }

/* ---------- Cards grid (programmes, tour, clubs) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow); transition: transform 0.35s var(--ease-pop);
}
.card:hover { transform: translateY(-4px) rotate(-0.6deg); }
.card h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 64px; height: 64px; padding: 12px; border-radius: 22px 26px 20px 28px; margin-bottom: 16px; }
.c-blue .card-icon { background: var(--blue-soft); color: var(--blue); }
.c-coral .card-icon { background: var(--coral-soft); color: var(--coral-deep); }
.c-green .card-icon { background: var(--green-soft); color: var(--green-deep); }
.c-yellow .card-icon { background: var(--yellow-soft); color: #9A7200; }
.c-blue h3 { color: var(--blue); }
.c-coral h3 { color: var(--coral-deep); }
.c-green h3 { color: var(--green-deep); }
.c-yellow h3 { color: #8A6400; }
.club-card { border-radius: var(--wobble); color: var(--ink); }
.club-card.c-blue { background: var(--blue-soft); }
.club-card.c-coral { background: var(--coral-soft); }
.club-card.c-green { background: var(--green-soft); }
.club-card.c-yellow { background: var(--yellow-soft); }
.club-card .card-icon { background: rgba(255, 255, 255, 0.7); }
.club-card.c-coral h3 { color: #9E3519; }
.club-card.c-green h3 { color: #075C3F; }

/* ---------- Story blocks (community, life) ---------- */
.story-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 70px); align-items: start; padding-block: clamp(40px, 6vw, 70px); }
.story-block + .story-block { border-top: 3px dashed rgba(31, 95, 209, 0.18); }
.story-block.flip .story-copy { order: 2; }
.story-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.15em; }
.story-copy .hand-note { margin-bottom: 0.8em; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.photo-grid button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-grid button:hover img { transform: scale(1.06); }
.photo-grid button:nth-child(3n+1) { transform: rotate(-1.2deg); }
.photo-grid button:nth-child(3n+3) { transform: rotate(1.2deg); }

/* ---------- Gallery page ---------- */
.gallery-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.gallery-jump a { text-decoration: none; }
.gallery-group { padding-block: clamp(36px, 5vw, 60px); }
.gallery-group + .gallery-group { border-top: 3px dashed rgba(31, 95, 209, 0.18); }
.gallery-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.gallery-group-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0; }
.gallery-group-head .hand-note { margin: 0; }
.gallery-grid { column-count: 3; column-gap: 16px; }
.gallery-grid button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); break-inside: avoid; }
.gallery-grid button img { width: 100%; height: auto; transition: transform 0.5s ease; }
.gallery-grid button:hover img { transform: scale(1.05); }

/* ---------- Guardian page ---------- */
.monthly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.child-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); }
.child-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); padding: 18px 18px 24px; box-shadow: var(--shadow); transition: transform 0.35s var(--ease-pop); }
.child-card:hover { transform: translateY(-5px) rotate(0deg) !important; }
.child-card.tilt-l { transform: rotate(-1deg); }
.child-card.tilt-r { transform: rotate(1deg); }
.child-photo { position: relative; aspect-ratio: 1; border-radius: 22px; }
.child-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.child-body { display: flex; flex-direction: column; flex: 1; padding: 18px 6px 0; }
.child-name { font-size: 1.8rem; margin-bottom: 0.1em; }
.child-meta { font-family: var(--font-hand); font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--coral-deep); }
.child-body > p:not(.child-meta) { color: var(--ink-soft); }
.child-body .btn { margin-top: auto; align-self: flex-start; }

.story-dialog {
  width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  overflow: auto; overscroll-behavior: contain;
}
.story-dialog:focus, .story-dialog:focus-visible { outline: none; }
.story-dialog::backdrop { background: rgba(29, 42, 72, 0.62); backdrop-filter: blur(3px); }
.story-dialog[open] { animation: pop-in 0.35s var(--ease-pop); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.story-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.story-photo { position: relative; background: var(--blue); }
.story-photo img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.story-text { padding: clamp(28px, 4vw, 48px); }
.story-name { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 0.1em; }
.story-age { font-weight: 800; color: var(--ink-soft); margin-bottom: 0.2em; }
.story-dream { font-family: var(--font-hand); font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: var(--coral-deep); }
.story-body { margin: 18px 0 26px; }
.dialog-close {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-pop);
}
.dialog-close:hover { background: var(--yellow); }

/* ---------- Volunteer page ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 46px); color: #fff; box-shadow: var(--shadow); }
.pkg-blue { background: var(--blue); }
.pkg-coral { background: var(--coral-deep); }
.pkg h3 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 0.1em; }
.pkg-price { display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; padding: 6px 18px; border-radius: 999px; transform: rotate(-3deg); margin-bottom: 20px; }
.pkg p { color: #fff; }
.pkg .pkg-price { color: var(--ink); }
.pkg-list { margin: 4px 0 26px; display: grid; gap: 8px; }
.pkg-list li { position: relative; padding-left: 32px; }
.pkg-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 20px; height: 18px; background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 44'%3E%3Cpath d='M24.6 41.2C14.8 34.6 3.4 26.9 3.1 15.9 2.9 8.6 8 3.2 14.2 3.4c4.6.1 8 3 10 6.9 2.3-4.3 6.2-7.3 11.1-7.1 6.3.3 10.6 5.9 9.9 12.8-1 10.1-10.9 17.9-20.6 25.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 44'%3E%3Cpath d='M24.6 41.2C14.8 34.6 3.4 26.9 3.1 15.9 2.9 8.6 8 3.2 14.2 3.4c4.6.1 8 3 10 6.9 2.3-4.3 6.2-7.3 11.1-7.1 6.3.3 10.6 5.9 9.9 12.8-1 10.1-10.9 17.9-20.6 25.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pkg .btn { margin-top: auto; align-self: flex-start; }
.pkg .pkg-intro { font-weight: 800; }

.doc-card { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform 0.3s var(--ease-pop); }
.doc-card:hover { transform: translateY(-4px) rotate(-0.8deg); }
.doc-card svg { width: 56px; height: 56px; flex: none; color: var(--coral-deep); }
.doc-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.doc-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Donate page ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.tier {
  position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--r);
  background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform 0.3s var(--ease-pop), box-shadow 0.3s ease; border-bottom: 8px solid var(--accent, var(--blue));
}
.tier:hover { transform: translateY(-5px) rotate(-1deg); }
.tier:nth-child(4n+1) { --accent: var(--blue); }
.tier:nth-child(4n+2) { --accent: var(--coral); }
.tier:nth-child(4n+3) { --accent: var(--green); }
.tier:nth-child(4n+4) { --accent: var(--yellow); }
.tier-amount { font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--blue); }
.tier-per { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.tier-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 10px 0 6px; color: var(--ink); }
.tier p { font-size: 0.98rem; color: var(--ink-soft); }
.tier-cta { margin-top: auto; font-weight: 800; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.tier-cta svg { width: 18px; height: 18px; }
.gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.gift { padding: 24px 22px; border-radius: var(--wobble); background: var(--paper); box-shadow: var(--shadow); }
.gift-label { font-weight: 800; letter-spacing: 0.12em; font-size: 0.9rem; color: var(--coral-deep); margin-bottom: 4px; }
.gift-price { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; color: var(--blue); margin-bottom: 10px; }
.gift p { font-size: 0.98rem; }
.gift-perks { margin-top: 28px; padding: 22px 26px; border-radius: var(--r); background: var(--yellow-soft); }
.gift-perks h3 { font-size: 1.1rem; letter-spacing: 0.08em; color: #6E5200; }
.gift-perks ul { display: grid; gap: 6px; }
.gift-perks li { padding-left: 26px; position: relative; font-weight: 700; }
.gift-perks li::before { content: "\2605"; position: absolute; left: 0; color: var(--coral-deep); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-card { padding: clamp(26px, 4vw, 40px); border-radius: var(--r-lg); background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.contact-card h2 { color: #fff; font-size: 1.8rem; }
.contact-card p { display: flex; gap: 12px; align-items: flex-start; }
.contact-card svg { width: 24px; height: 24px; flex: none; margin-top: 3px; }
.contact-card a { color: #fff; font-weight: 800; }
.contact-card a.btn-yellow { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; padding-block: clamp(56px, 8vw, 100px); background: var(--blue); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -6%; top: -30%; width: 46%; height: 140%; background: #2A6EE3; border-radius: 50% 44% 56% 46%; }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 860px; margin-inline: auto; }
.cta-band p { font-size: 1.15rem; max-width: 700px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.cta-band .doodle { fill: var(--yellow); left: 8%; top: 20%; width: 52px; height: 52px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: calc(-1 * clamp(40px, 5vw, 90px)); color: rgba(255, 255, 255, 0.92); }
.footer-wave { display: block; width: 100%; height: clamp(40px, 5vw, 90px); fill: var(--blue-deep); margin-bottom: -1px; }
.footer-body { background: var(--blue-deep); padding: clamp(28px, 4vw, 48px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: #fff; margin-bottom: 6px; }
.footer-about p { margin-bottom: 10px; }
.footer-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-line .ico { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--yellow); }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--yellow); }
.site-footer .text-link { color: #fff; }
.footer-h { font-family: var(--font-display); font-size: 1.15rem; color: var(--yellow); letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { text-decoration: none; display: inline-block; padding: 2px 0; }
.footer-list a:hover { text-decoration: underline; }
.social-list { display: grid; gap: 10px; }
.social-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 32px; }
.social-list .ico { width: 22px; height: 22px; }
.footer-vbl { margin-top: 18px; font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.2; color: #fff; }
.footer-lang { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 30px; }
.footer-lang-label { font-weight: 800; }
.lang-switch { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.lang-switch button { min-width: 48px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.lang-switch button:hover { background: rgba(255, 255, 255, 0.16); }
.lang-switch button.active { background: var(--yellow); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.lumanaire-credit-wrap { display: flex; justify-content: center; margin-top: 26px; }
.lumanaire-credit {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.18s ease;
}
.lumanaire-credit:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.lumanaire-credit .bolt { width: 16px; height: 16px; color: #E9C8F5; transition: transform 0.3s ease; }
.lumanaire-credit:hover .bolt { transform: rotate(20deg) scale(1.1); }
.lumanaire-credit .proudly { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.85); }
.lumanaire-credit .wordmark { font-size: 14px; font-weight: 800; color: #fff; }

/* ---------- Toast (donate-amount hint) ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(40px); z-index: 120;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .amt { background: var(--yellow); color: var(--ink); padding: 4px 12px; border-radius: 999px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(29, 42, 72, 0.94); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--r); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7); }
.lightbox-close, .lightbox-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.14);
  border-radius: 50%; display: grid; place-items: center; transition: background 0.2s ease; line-height: 1;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 18px; right: 20px; width: 48px; height: 48px; font-size: 28px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 26px; }
.lightbox-prev { left: clamp(10px, 2vw, 28px); }
.lightbox-next { right: clamp(10px, 2vw, 28px); }

/* ---------- Scroll reveal (content stays visible without JS or with reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-grid, .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sou-grid, .life-grid, .help-grid, .comm-grid, .stay-grid, .split, .story-block, .monthly, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child, .story-block.flip .story-copy { order: 0; }
  .card-grid, .child-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wwd-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .story-inner { grid-template-columns: minmax(0, 1fr); }
  .story-photo img { max-height: 320px; }
  .storybook { max-width: 340px; }
  .stay-grid { padding-left: max(var(--gutter), 52px); }
  .cta-band .doodle { left: 14px; top: 10px; width: 36px; height: 36px; }
  .help-letters { display: none; }
  .gallery-grid { column-count: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .card-grid, .card-grid.two, .child-grid, .pkg-grid, .help-cards, .partner-grid, .tier-grid, .gift-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { margin-top: -36px; padding-left: 52px; }
  .ruled { background-image: linear-gradient(90deg, transparent 0 32px, var(--margin-line) 32px 34px, transparent 34px), repeating-linear-gradient(180deg, transparent 0 33px, var(--rule) 33px 34px); }
  .hero-card .d-heart-coral { right: -6px; top: -26px; width: 46px; height: 42px; }
  .meet .meet-sparkle, .ribbon .doodle { display: none; }
  .hero-card .d-heart-coral { right: 4px; }
  .life-mosaic { grid-template-columns: 1fr 1fr; }
  .life-mosaic .ph-b { grid-column: 2; grid-row: 1 / span 2; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .gallery-grid button { margin-bottom: 10px; border-radius: 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-lang { justify-content: flex-start; flex-wrap: wrap; }
  .notebook::before { display: none; }
  .stay-grid { padding-left: var(--gutter); }
  .note-card { padding-left: 52px; }
  .doc-card { flex-direction: column; align-items: flex-start; }
  .avatar-grid li { width: calc((100% - 3 * 14px) / 4); }
  .avatar-name { font-size: 0.86rem; }
  .avatar img { border-width: 3px; box-shadow: 0 0 0 3px var(--ring, var(--blue)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ribbon-flow { animation: none; }
}

@media print {
  .site-header, .site-footer, .ribbon, .doodle, .wave, .menu-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------- Page details ---------- */
.founder-photo { position: relative; max-width: 420px; justify-self: center; text-align: center; }
.founder-photo img { border-radius: var(--r-lg); transform: rotate(-2.5deg); box-shadow: var(--shadow); border: 10px solid #fff; }
.founder-photo figcaption { margin-top: 18px; font-size: 2rem; color: var(--blue-deep); }
.emphasis-hand { font-family: var(--font-hand); font-weight: 700; font-size: 1.75rem; line-height: 1.3; color: var(--blue-deep); }
.doc-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--blue); margin-bottom: 4px; }
.doc-text { display: block; color: var(--ink-soft); margin-bottom: 10px; }
.doc-go { display: inline-block; font-weight: 800; color: var(--coral-deep); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.both-packages { margin-top: clamp(32px, 5vw, 56px); text-align: center; color: var(--ink); }
.tiers-after { margin-top: clamp(28px, 4vw, 44px); }
.tiers-after p { margin-top: 18px; }
.tour-grid { margin-bottom: clamp(36px, 5vw, 56px); }
.thanks-card { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; padding-left: clamp(62px, 6vw, 80px); }
.thanks-card .quote-line { color: var(--coral-deep); font-size: clamp(1.9rem, 3vw, 2.5rem); }
.thanks-card .thanks-heart { right: 26px; top: -18px; width: 54px; height: 50px; fill: var(--coral); }
.wide-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.club-photo { align-self: stretch; min-height: 240px; }
.club-photo img { box-shadow: var(--shadow); position: absolute; inset: 0; }
.clubs-star { right: 8%; top: 56px; width: 50px; height: 50px; fill: var(--yellow); animation-name: twinkle; }
.mh-heart { right: 24px; top: -20px; width: 54px; height: 50px; fill: var(--pink); }
.children-sparkle { left: 8%; top: 64px; width: 46px; height: 46px; fill: var(--coral); animation-name: twinkle; }
.guardian-close { margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.enquiry-form { max-width: 880px; margin-inline: auto; }
.form-sun { right: -12px; top: -22px; width: 70px; height: 70px; color: var(--yellow); animation-name: twinkle; animation-duration: 12s; }
.social-pills.on-blue { margin-top: 22px; }
.social-pills.on-blue a { background: var(--blue-deep); color: #fff; }
.social-pills.on-blue a:hover { background: #12387F; }
.contact-card .btn { margin-top: 8px; }
.monthly .card p { font-size: 1.08rem; }
@media (max-width: 1100px) {
  .wide-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .thanks-card { grid-column: 1 / -1; }
  .founder-photo { max-width: 320px; }
}
@media (max-width: 640px) {
  .thanks-card { padding-left: 52px; }
  .wide-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-photo { min-height: 220px; }
  .children-sparkle, .clubs-star { display: none; }
}
.note-card.prose.center { text-align: left; }
.btn.no-caps { text-transform: none; letter-spacing: 0.01em; }
.split.wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); }
@media (max-width: 900px) { .split.wide-left { grid-template-columns: minmax(0, 1fr); } }
.gallery-page { padding-top: 8px; }

/* ---------- Round 2: photo-led and lighter (Mia, 19 Oct 2026) ----------
   A stage is one of her photos with an SVG drawn on top in the photo's own pixels (a soft scrim, a colour
   circle, the cut-out child, chalk doodles, petal flowers, a curved phrase). The stage is cropped like
   object-fit: cover inside its band, so the drawing stays pinned to the photo at every width. */
.photo-band, .hero-band { position: relative; overflow: hidden; container-type: size; background: #C9D3DC; }
.stage { --fx: var(--fxd, 0.5); --fy: var(--fyd, 0.5); position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
@supports (width: 1cqw) {
  .stage {
    --sw: max(100cqw, calc(100cqh * var(--ar)));
    --sh: calc(var(--sw) / var(--ar));
    width: var(--sw); height: var(--sh);
    left: calc((100cqw - var(--sw)) * var(--fx));
    top: calc((100cqh - var(--sh)) * var(--fy));
  }
}
.stage-img, .stage-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-img { object-fit: cover; }
.stage-art { overflow: hidden; pointer-events: none; }
.chalk { color: #fff; }
.petal { fill: #FFE14D; }
.arc-text { font-size: var(--afd); paint-order: stroke fill; stroke-linejoin: round; }
.arc-hand { font-family: var(--font-hand); font-weight: 700; fill: #FFE14D; stroke: rgba(13, 30, 66, 0.62); stroke-width: 6px; letter-spacing: 0.01em; }
.arc-round { font-family: var(--font-display); font-weight: 600; fill: #fff; stroke: rgba(13, 30, 66, 0.55); stroke-width: 6px; letter-spacing: 0.04em; }
.arc-board { font-family: var(--font-hand); font-weight: 700; fill: #FFE14D; letter-spacing: 0.01em; }
.arc-ink { font-family: var(--font-hand); font-weight: 700; fill: #1F55C4; stroke: rgba(255, 255, 255, 0.7); stroke-width: 5px; letter-spacing: 0.01em; }

/* Home hero: full-bleed photo, the notebook card tucked under its edge */
.hero { padding-top: 0; }
.hero-band { height: clamp(460px, 48vw, 690px); }
.hero-body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.hero .hero-card { width: 100%; margin: clamp(-60px, -3.9vw, -30px) 0 0; padding-bottom: clamp(26px, 3.4vw, 44px); }
.hero-card .d-heart-coral { top: -26px; }
.hero-card .h-display { margin-bottom: 0; }
.h-display .rainbow { font-size: clamp(3.3rem, 5.6vw, 5.8rem); line-height: 0.95; white-space: nowrap; }
.hero-card .h-display-rest { display: block; margin-top: 0.14em; font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 1.08; }
.hero-text { padding-top: clamp(8px, 2vw, 24px); }
.hero-text .lead { color: var(--ink); margin-top: 0; }
.rainbow { text-transform: lowercase; }

/* Wordmark headings: multicolour rounded lowercase letters, drawn by site.js in an aria-hidden copy */
.rainbow span:nth-child(4n+1), .wm-title .wm-c0 { color: #2F6FE0; }
.rainbow span:nth-child(4n+2), .wm-title .wm-c1 { color: #E25B3C; }
.rainbow span:nth-child(4n+3), .wm-title .wm-c2 { color: #0E9468; }
.rainbow span:nth-child(4n+4), .wm-title .wm-c3 { color: #B98200; }
.wm-title, .page-hero h1.wm-title { margin: 0; font-size: clamp(2.9rem, 6.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.01em; text-transform: lowercase; color: #2F6FE0; }
.wm-title .wm-word { display: inline-block; white-space: nowrap; }
.wm-title .wm-word > span { display: inline-block; }
.wm-title .wm-word > span:nth-child(odd) { transform: translateY(-0.02em) rotate(-2.5deg); }
.wm-title .wm-word > span:nth-child(even) { transform: translateY(0.02em) rotate(2.5deg); }
.wm-title.is-split .wm-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Page heroes: an airy title and text, then one full-bleed photo band */
.page-hero { padding: clamp(36px, 5.5vw, 72px) 0 0; overflow: hidden; }
.page-hero-head { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 5vw, 72px); align-items: center; padding-bottom: clamp(32px, 4.5vw, 60px); }
.page-hero-head .hand-note { margin-bottom: 0.25em; }
.page-hero-head .h-sub { margin-bottom: 0.3em; }
.page-hero-head .lead { margin-bottom: 0; }
.page-hero-head .lead + .lead { margin-top: 0.8em; }
.page-hero-head .btn-row { margin-top: 22px; }
.page-hero-head.solo { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.page-hero-head.solo .lead { max-width: 760px; margin-inline: auto; }
.page-hero-head.solo .gallery-jump { justify-content: center; }
.photo-band { height: clamp(360px, 38vw, 560px); }

/* Ways to Help: a round photo on the chalkboard, the child's head breaking out of the top */
.help-pop { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.pop-art { display: block; width: 100%; height: auto; overflow: visible; }

/* Donate: the donation site and the Stripe link side by side */
.give-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); max-width: 900px; margin: clamp(32px, 4vw, 48px) auto 0; }
.give-option { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 3vw, 32px); border-radius: var(--wobble); background: var(--paper); box-shadow: var(--shadow); }
.give-option h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.give-option p { margin: 0; color: var(--ink-soft); }
.give-option .btn { margin-top: auto; }

@media (max-width: 900px) {
  .page-hero-head, .hero-body { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-text { padding-top: 0; }
}
@media (max-width: 640px) {
  .stage { --fx: var(--fxm, var(--fxd, 0.5)); --fy: var(--fym, var(--fyd, 0.5)); }
  .arc-text { font-size: var(--afm); }
  .hero-band { height: 470px; }
  .photo-band { height: 360px; }
  .hero .hero-card { margin-top: -30px; }
  .give-options { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rainbow span, .wm-title .wm-word > span { transition: none; }
}

/* ---------- B1 backgrounds (Mia, 22 Oct 2026) ----------
   Her crayon doodle picture is the one background behind every page. bg-doodles is her picture cut to
   one exact vertical repeat (1000 x 1077), so it tiles down the page with no seam; it always spans the
   full width, so there is no side seam either. Lined paper (.notebook, .ruled), photos, cards, the
   header and the footer keep their own surfaces. Delete this block to go back to the plain colours. */
body {
  background-color: var(--cream);
  background-image: url("../img/bg-doodles.jpg");
  background-image: image-set(url("../img/bg-doodles.webp") type("image/webp"), url("../img/bg-doodles.jpg") type("image/jpeg"));
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;
}
.section-blush, .section-sky, .section-cream2, .ribbon, .help, .cta-band { background: none; }
.wave-blush-cream, .wave-to-green, .wave-from-green, .help::before, .help-letters, .cta-band::before { display: none; }
/* Text that sat straight on the pattern lost contrast where it crossed the brighter crayons, so each text
   block sits on the site's card surface (the help card's radius, padding and shadow) in the site's cream.
   The blue and green bands keep their colour and white text as a rounded card of the same shape. */
.hero-text, .section:not(.notebook) .section-head, .wwd, .life-text, .avatar-grid, .comm-text, .story-copy,
.split > div:not([class]), .split > .prose:not(.paper), .guardian-close, .both-packages, .gallery-group-head {
  background: var(--cream); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 40px);
}
.founder-photo figcaption { width: fit-content; margin-inline: auto; padding: 2px 20px; background: var(--cream); border-radius: var(--r); box-shadow: var(--shadow); }
.page-hero-head, .help-grid, .cta-band .wrap {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter));
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.page-hero-head { background: var(--cream); margin-bottom: clamp(32px, 4.5vw, 60px); }
.help-grid { background: var(--green-night); }
.cta-band .wrap { background: var(--blue); padding-block: clamp(36px, 6vw, 72px); }
.cta-band .doodle { z-index: 1; }

/* ---------- Club photos (Learning page, Mia 30 Oct 2026) ----------
   Each club card has a See the photos button, hidden until assets/img/clubs/photos.json lists photos for that club.
   It opens a full-screen gallery: a grid of thumbnails, then one photo at a time with previous and next buttons,
   swipe and the arrow keys. Escape goes back from a photo to the grid, then closes. */
.club-photos-btn { margin-top: 4px; }
.club-photos-btn[hidden] { display: none; }
.club-gallery {
  inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: #fff; overflow: hidden;
}
.club-gallery[open] { display: flex; flex-direction: column; animation: cg-fade 0.25s ease; }
.club-gallery::backdrop { background: rgba(29, 42, 72, 0.6); }
@keyframes cg-fade { from { opacity: 0; } to { opacity: 1; } }
.club-gallery :focus-visible { outline-color: var(--yellow); }
.cg-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 4vw, 44px) var(--gutter) clamp(32px, 5vw, 64px); }
.cg-head, .cg-grid { max-width: var(--wrap); margin-inline: auto; }
.cg-head { padding-right: 64px; }
.cg-title { margin: 0; color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cg-count { margin: 6px 0 0; color: rgba(255, 255, 255, 0.82); font-weight: 700; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr)); gap: clamp(10px, 1.6vw, 18px); margin-top: clamp(20px, 3vw, 32px); }
.cg-thumb { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: rgba(255, 255, 255, 0.08); cursor: zoom-in; }
.cg-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.35s var(--ease-pop); }
.cg-thumb:hover img { transform: scale(1.04); }
.cg-viewer { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #121B30; }
.cg-viewer[hidden] { display: none; }
.cg-stage { position: relative; flex: 1; min-height: 0; margin: 76px clamp(8px, 3vw, 40px) 0; touch-action: pan-y pinch-zoom; }
.cg-stage picture { position: absolute; inset: 0; }
.cg-stage img { width: 100%; height: 100%; object-fit: contain; background: center / contain no-repeat; user-select: none; -webkit-user-drag: none; }
.cg-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.cg-counter { margin: 0; min-width: 5em; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.cg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 54px; height: 54px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; transition: background 0.2s ease;
}
.cg-btn:hover { background: rgba(255, 255, 255, 0.28); }
.cg-all { position: absolute; left: 14px; top: 14px; width: auto; height: 48px; padding: 0 18px 0 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .club-gallery[open] { animation: none; }
  .cg-thumb img { transition: none; }
}

/* ---------- Our Projects page and section videos (Mia 30 Oct 2026) ----------
   Videos are portrait (9:16) MP4s with a poster frame: they never autoplay and play inline on phones. */
.eyebrow { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); }
.story-video { width: min(100%, 340px); }
.story-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--ink); box-shadow: var(--shadow); }
/* Supporting Mothers: photos then the video on the left, her text on the right; on phones the video follows the text. */
.story-block.has-video { grid-template-areas: "photos copy" "video copy"; row-gap: clamp(24px, 3vw, 36px); }
.has-video .photo-grid { grid-area: photos; }
.has-video .story-copy { grid-area: copy; }
.has-video .story-video { grid-area: video; justify-self: center; }
@media (max-width: 900px) {
  .story-block.has-video { grid-template-areas: "copy" "video" "photos"; }
}
.project-goal { align-items: center; }
.project-goal .story-video { justify-self: center; width: min(100%, 380px); }
#school { padding-top: 0; }
.cg-chev { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Home opening: GROWING TOGETHER, then Hear Our Stories (Mia, 3 Nov 2026) ----------
   A warm cream opening with photographs inside oversized condensed letters and two compact buttons. As the
   visitor scrolls, the stories panel rises over the opening, which settles back like a card behind it; each story
   card then tucks behind the next, leaving its edge in view. stories.js sets --gt-p and --gt-q while scrolling. */
:root { --gt-cream: #F5EDE0; --gt-night: #12203F; --gt-font: 'Anton', 'Impact', 'Arial Narrow', sans-serif; }
.home-gt .site-header { background: var(--gt-cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
.home-gt .header-inner { min-height: 72px; }
.home-gt .brand img { height: 50px; }
.home-gt .main-nav a { font-size: 0.86rem; padding: 6px 7px; }
.gt-donate-outline { min-height: 42px; padding: 0.5em 1.35em; border-radius: 999px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; font-size: 0.9rem; }
.gt-donate-outline:hover { background: var(--ink); color: var(--gt-cream); transform: none; box-shadow: inset 0 0 0 2px var(--ink); }
@media (min-width: 1260px) and (max-width: 1400px) {
  .home-gt .menu-toggle { display: none; }
  .home-gt .header-actions { margin-left: 0; }
  .js .home-gt .main-nav, .home-gt .main-nav { display: block; position: static; margin: 0 0 0 auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .home-gt .main-nav ul { flex-direction: row; align-items: center; gap: 0; max-width: none; margin: 0; }
  .home-gt .main-nav a { padding: 6px 6px; font-size: 0.8rem; }
}
@media (max-width: 560px) {
  .home-gt .header-inner { min-height: 64px; }
  .home-gt .brand img { height: 40px; }
}

.gt-scene { position: relative; }
.gt-open {
  position: sticky; top: var(--hdr, 74px); z-index: 1;
  height: calc(100vh - var(--hdr, 74px)); height: calc(100svh - var(--hdr, 74px)); min-height: 440px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 3.6vh, 40px);
  padding: 0 var(--gutter) clamp(24px, 6vh, 72px);
  background: var(--gt-cream); overflow: hidden; transform-origin: 50% 0;
}
.gt-open::after { content: ""; position: absolute; inset: 0; background: #0D1E42; opacity: calc(var(--gt-p, 0) * 0.4); pointer-events: none; }
.gt-motion .gt-open { transform: scale(calc(1 - var(--gt-p, 0) * 0.08)); border-radius: calc(var(--gt-p, 0) * 44px); }
.gt-title { margin: 0; font-family: var(--gt-font); font-weight: 400; font-size: min(21.5vw, 31vh); font-size: min(21.5vw, 31svh); line-height: 1; letter-spacing: 0.004em; text-transform: uppercase; text-align: center; }
.gt-word { display: block; width: fit-content; margin-inline: auto; padding: 0 0.02em; color: var(--ink); }
.gt-word + .gt-word { margin-top: -0.085em; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gt-word { background-image: none !important; }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gt-word {
    background-size: var(--gt-size, cover); background-repeat: no-repeat; background-position: var(--gt-pos, 50% 45%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
}
.gt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gt-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7em 1.65em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-pop);
}
.gt-btn:hover { transform: translateY(-2px); }
.gt-btn-fill { background: var(--coral-deep); color: #fff; }
.gt-btn-fill:hover { background: #B23C21; }
.gt-btn-line { color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.gt-btn-line:hover { background: var(--ink); color: var(--gt-cream); }
@media (prefers-reduced-motion: no-preference) {
  .gt-word { animation: gt-rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) both, gt-pan 2.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .gt-word + .gt-word { animation-delay: 0.14s, 0.14s; }
  .gt-actions { animation: gt-fade 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes gt-rise { from { opacity: 0; transform: translateY(0.3em) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes gt-pan { from { background-position: 50% 80%; } }
@keyframes gt-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.gt-stories {
  position: relative; z-index: 2; scroll-margin-top: var(--hdr, 74px);
  padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px);
  background: var(--gt-night); color: var(--gt-cream);
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
}
.gt-stories-head { max-width: 920px; margin: 0 auto clamp(36px, 5vw, 64px); padding: 0 var(--gutter); text-align: center; }
.gt-display { margin: 0 0 0.28em; font-family: var(--gt-font); font-weight: 400; font-size: clamp(3rem, 9vw, 7.6rem); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; color: var(--gt-cream); }
.gt-stories-lead { margin: 0 auto; max-width: 42ch; font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.55; color: rgba(245, 237, 224, 0.86); }
.gt-stack { list-style: none; display: grid; gap: clamp(24px, 4vh, 44px); width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 0; }
.gt-card {
  position: sticky; top: calc(var(--hdr, 74px) + 16px + var(--i, 0) * 12px);
  height: min(calc(100vh - var(--hdr, 74px) - 124px), 780px); height: min(calc(100svh - var(--hdr, 74px) - 124px), 780px); min-height: 340px;
  border-radius: clamp(20px, 2.6vw, 32px); overflow: hidden; background: #0D1E42; transform-origin: 50% 0;
  box-shadow: 0 -12px 40px -20px rgba(0, 0, 0, 0.65);
}
.gt-card::after { content: ""; position: absolute; inset: 0; background: #0D1E42; opacity: calc(var(--gt-q, 0) * 0.55); pointer-events: none; }
.gt-motion .gt-card { transform: scale(calc(1 - var(--gt-q, 0) * 0.06)); }
.gt-card-link, .gs-next-link {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; height: 100%;
  padding: clamp(20px, 3.4vw, 48px); color: #fff; text-decoration: none;
}
.gt-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.gt-card-link:hover .gt-card-img, .gt-card-link:focus-visible .gt-card-img, .gs-next-link:hover .gt-card-img { transform: scale(1.05); }
.gt-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 30, 66, 0) 38%, rgba(13, 30, 66, 0.84) 100%), linear-gradient(90deg, rgba(13, 30, 66, 0.32), rgba(13, 30, 66, 0) 60%); }
.gt-card-num {
  position: absolute; top: clamp(16px, 2.4vw, 28px); left: clamp(20px, 3.4vw, 48px); padding: 9px 14px; border-radius: 999px;
  background: rgba(13, 30, 66, 0.5); color: var(--gt-cream); font: 600 0.82rem/1 var(--font-display); letter-spacing: 0.14em;
}
.gt-card-title { position: relative; max-width: 15ch; font-family: var(--gt-font); font-weight: 400; font-size: clamp(2.3rem, 6.4vw, 6.2rem); line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 2px 28px rgba(13, 30, 66, 0.4); }
.gt-card-cta {
  position: relative; display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.6em 1.25em; border-radius: 999px;
  background: var(--gt-cream); color: var(--ink); font: 600 0.88rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.gt-card-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }

/* Story pages (story.html?s=<slug>): the card's photograph opens out into the page */
::view-transition-group(gt-story-photo) { animation-duration: 0.65s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
.gs-hero {
  position: relative; display: flex; align-items: flex-end; height: min(78vh, 760px); height: min(78svh, 760px); min-height: 380px;
  margin: clamp(12px, 2vw, 20px) var(--gutter) 0; border-radius: clamp(20px, 2.6vw, 32px); overflow: hidden; background: #0D1E42; color: #fff;
}
.gs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; view-transition-name: gt-story-photo; }
.gs-hero-text { position: relative; padding: clamp(20px, 3.4vw, 48px); }
.gs-back {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 40px; margin-bottom: 16px; padding: 0.5em 1.05em; border-radius: 999px;
  background: rgba(245, 237, 224, 0.94); color: var(--ink); font: 600 0.82rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.gs-back .btn-icon { transform: scaleX(-1); }
.gs-title { margin: 0; max-width: 16ch; font-family: var(--gt-font); font-weight: 400; font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; color: #fff; }
.gs-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(40px, 6vw, 88px); }
.gs-copy { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--cream); box-shadow: var(--shadow); }
.gs-copy .lead { margin-top: 0; font-weight: 700; color: var(--ink); }
.gs-copy .btn-row { margin-top: 26px; }
.gs-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gs-next { padding-bottom: clamp(56px, 8vw, 110px); }
.gs-next-link { height: clamp(240px, 34vw, 420px); border-radius: clamp(20px, 2.6vw, 32px); overflow: hidden; background: #0D1E42; }
.gs-next-label { position: relative; padding: 8px 14px; border-radius: 999px; background: rgba(13, 30, 66, 0.5); color: var(--gt-cream); font: 600 0.82rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.gs-missing { padding-block: clamp(48px, 8vw, 110px); }
.gs-missing ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (max-width: 900px) {
  .gs-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gt-open { gap: 22px; padding-inline: 12px; }
  .gt-title { font-size: min(25vw, 31svh); }
  .gt-btn { min-height: 46px; padding: 0.65em 1.2em; font-size: 0.88rem; }
  .gt-card { height: min(calc(100svh - var(--hdr, 64px) - 140px), 620px); }
  .gt-card-cta { font-size: 0.8rem; }
  .gs-hero { height: 64svh; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-word, .gt-actions { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Mia's one-by-one WhatsApp changes (3 Nov 2026, built 11 Nov) ----------
   Ways to Help: her video of the children waving, in a large softly rounded frame with a small pause/play
   button and her handwritten caption, beside a cream donation card (amount selector, Give with love), all on
   the crayon drawings; on phones the video sits above the card. Our Story: her picture is the first photo,
   small and on the side; Opening Doors keeps four photos in two rows; Jeffrey's new photo is cut 4:5. */
.help { color: var(--ink); }
.help-give { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.help-video { display: flex; flex-direction: column; align-items: center; margin: 0; }
.help-video-frame {
  position: relative; width: min(100%, 500px); aspect-ratio: 4 / 5; overflow: hidden;
  border: 8px solid #fff; border-radius: clamp(30px, 3.6vw, 46px); background: #E9DFCF; box-shadow: var(--shadow);
}
.help-video-el { display: block; width: 100%; height: 100%; object-fit: cover; }
.help-video-btn {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 253, 249, 0.92); color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(29, 42, 72, 0.5); cursor: pointer; transition: transform 0.25s var(--ease-pop), background-color 0.2s ease;
}
.help-video-btn:hover { transform: scale(1.08); background: #fff; }
.help-video-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.help-video-btn[hidden] { display: none; }
.help-video-btn svg { width: 20px; height: 20px; fill: currentColor; }
.help-video-btn .icon-play, .help-video-btn.is-paused .icon-pause { display: none; }
.help-video-btn.is-paused .icon-play { display: block; }
.help-video-cap {
  margin-top: 20px; padding: 4px 22px; border-radius: var(--r); background: var(--cream); box-shadow: var(--shadow);
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.55rem, 2.4vw, 1.95rem); line-height: 1.25; color: var(--blue-deep);
  text-align: center; text-wrap: balance; transform: rotate(-2deg);
}
.give-card { position: relative; padding: clamp(26px, 3.6vw, 44px); border-radius: var(--r-lg); background: var(--cream); color: var(--ink); box-shadow: var(--shadow); }
.give-card .help-label { margin: 0 0 0.6em; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; color: var(--coral-deep); }
.give-card .section-title { margin-bottom: 0.45em; font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
.give-card p { color: var(--ink-soft); }
.give-form { margin-top: clamp(18px, 2.4vw, 26px); }
.give-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.give-amounts legend { margin-bottom: 10px; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.give-amt { position: relative; display: block; }
.give-amt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.give-amt span {
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 2px rgba(29, 42, 72, 0.16); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-pop);
}
.give-amt:hover span { box-shadow: inset 0 0 0 2px var(--coral); }
.give-amt input:checked + span { background: var(--coral-deep); color: #fff; box-shadow: var(--shadow-pop); transform: rotate(-1.5deg); }
.give-amt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.give-card .help-tagline { margin: clamp(16px, 2.2vw, 22px) 0 12px; font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 1.95rem); line-height: 1.2; color: var(--coral-deep); }
.give-btn { width: 100%; }
.give-btn .btn-icon { width: 1.25em; height: 1.25em; }
.give-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; font-size: 0.98rem; }
@media (max-width: 900px) {
  .help-give { grid-template-columns: minmax(0, 1fr); }
  .help-video-frame { width: min(100%, 420px); }
}
@media (max-width: 640px) {
  .help-video-frame { width: min(88%, 380px); border-width: 6px; }
  .give-amounts { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .give-amt span, .help-video-btn { transition: none; }
  .give-amt input:checked + span { transform: none; }
}

.os-hero .page-hero-title { display: flex; flex-direction: column; align-items: flex-start; }
.os-hero-photo { width: min(100%, 330px); margin-top: clamp(22px, 3vw, 34px); transform: rotate(-2deg); }
.os-hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 62%; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .os-hero-photo { width: min(72%, 270px); }
}
.photo-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.founder-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }

/* Opening, set against her screen recording (11 Nov): the two buttons are pills of one width, the outlined
   buttons have a light outline, and the TOGETHER photo is framed on the children so both words read as dense
   photographs, as in the recording. */
@media (min-width: 760px) {
  .gt-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
}
.gt-btn-line, .gt-donate-outline { box-shadow: inset 0 0 0 2px rgba(29, 42, 72, 0.22); }
.gt-btn-line:hover, .gt-donate-outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Mia's final round (20 Nov 2026) ----------
   A photo band marked .whole shows the whole photo, never cropped: its height follows the photo (--ar on the band). */
.photo-band.whole { height: auto; aspect-ratio: var(--ar); }

/* ---------- Hear Our Stories: A Little Book of GoodWill (Mia, 20 Nov 2026) ----------
   After Life at GoodWill on the home page. A cover, then one story per page: a two-page spread from 900 px, one page
   at a time below that (stories.js builds the leaves and sets .is-spread or .is-single). A leaf turns around the
   spine in 3D; visitors who prefer reduced motion get a short fade. Cream pages, the site's blue for the cover and
   binding, its fonts, tapes, doodles and buttons. */
.book-section { scroll-margin-top: calc(var(--hdr, 74px) + 8px); }
.book-section .section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.book { --turn: 0.95s; --turn-ease: cubic-bezier(0.45, 0.05, 0.25, 1); --board: var(--blue-deep); position: relative; width: min(100%, 900px); margin: 0 auto; }
.book.is-single { width: min(100%, 440px); }
.book-stage { position: relative; z-index: 0; perspective: 2600px; touch-action: pan-y; transition: transform var(--turn) var(--turn-ease); }
.is-spread .book-stage { aspect-ratio: 900 / 640; }
.is-single .book-stage { aspect-ratio: 360 / 628; overflow: hidden; border-radius: 20px; }
.is-spread.is-closed .book-stage { transform: translateX(-25%); }
.book-stage::before, .book-stage::after { content: ""; position: absolute; z-index: 0; pointer-events: none; transition: opacity var(--turn) ease; }
.book-stage::before { inset: 0; border-radius: 22px; background: var(--board); box-shadow: 0 34px 48px -32px rgba(13, 30, 66, 0.6); }
.is-spread .book-stage::after { top: 0; bottom: 0; left: calc(50% - 10px); width: 20px; border-radius: 6px; background: linear-gradient(90deg, #12398A, #3A76DE 50%, #12398A); }
.is-single .book-stage::after { top: 0; bottom: 0; left: 0; width: 14px; background: linear-gradient(90deg, #12398A, #3A76DE 60%, #12398A); }
.is-closed .book-stage::before, .is-closed .book-stage::after { opacity: 0; }

.book-leaf { position: absolute; transform-style: preserve-3d; transform-origin: 0 50%; transition: transform var(--turn) var(--turn-ease); }
.is-spread .book-leaf { top: 12px; bottom: 12px; left: 50%; width: calc(50% - 12px); }
.is-single .book-leaf { top: 10px; bottom: 10px; left: 14px; right: 10px; }
.book-leaf.is-turned { transform: rotateY(-180deg); }
.is-single .book-leaf.is-turned:not(.is-moving) { visibility: hidden; }
.book-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: rotateY(0deg); }
.book-back { transform: rotateY(180deg); }
.is-instant .book-stage, .is-instant .book-leaf, .is-instant .book-stage::before, .is-instant .book-stage::after { transition: none !important; }

.book-page { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #FFFDF8, #FBF4E8); color: var(--ink); border-radius: 4px 16px 16px 4px; }
.is-spread .book-back .book-page { border-radius: 16px 4px 4px 16px; }
.book-endpaper { background: #F2E8D7; }
.book-story::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: 36px; background: linear-gradient(90deg, rgba(29, 42, 72, 0.15), rgba(29, 42, 72, 0)); pointer-events: none; }
.is-spread .book-back .book-story::before { left: auto; right: 0; background: linear-gradient(270deg, rgba(29, 42, 72, 0.15), rgba(29, 42, 72, 0)); }
.book-leaf.is-moving .book-page::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(13, 30, 66, 0.24), rgba(13, 30, 66, 0) 75%); animation: book-shade var(--turn) var(--turn-ease); }
.book-leaf.is-moving .book-back .book-page::after { background: linear-gradient(270deg, rgba(13, 30, 66, 0.24), rgba(13, 30, 66, 0) 75%); }
@keyframes book-shade { 50% { opacity: 1; } }

/* Story pages: photo, handwritten note, title, two or three sentences and Read Our Story */
.book-story { display: flex; flex-direction: column; padding: 28px 30px 30px 36px; }
.is-spread .book-back .book-story { padding: 28px 36px 30px 30px; }
.book-photo { position: relative; flex: 1 1 auto; min-height: 120px; margin: 4px 0 16px; border-radius: 16px; }
.book-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 12px 24px -16px rgba(13, 30, 66, 0.6); }
.book-v0 .book-photo { transform: rotate(0.8deg); }
.book-v1 .book-photo { transform: rotate(-1.2deg); }
.book-v2 .book-photo { transform: rotate(1deg); margin-left: 12px; }
.book-v3 .book-photo { transform: rotate(-0.6deg); margin-right: 12px; }
.book-doodle { position: absolute; z-index: 3; width: 36px; height: 36px; }
.book-v0 .book-doodle { left: -12px; top: -10px; }
.book-v1 .book-doodle { right: -12px; bottom: -14px; }
.book-v2 .book-doodle { left: -16px; bottom: -12px; }
.book-v3 .book-doodle { right: -10px; top: -14px; }
.book-text { position: relative; z-index: 2; flex: none; }
.book-note { margin: 0 0 4px; font-family: var(--font-hand); font-weight: 700; font-size: 1.32rem; line-height: 1.15; color: var(--coral-deep); transform: rotate(-1.5deg); transform-origin: 0 50%; }
.book-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 1.9vw, 1.62rem); line-height: 1.12; color: var(--blue); }
.book-title:focus { outline: none; }
.book-intro { margin: 0 0 0.45em; font-size: 0.97rem; line-height: 1.55; color: var(--ink-soft); }
.book-read { margin-top: 10px; }
.is-single .book-read { display: flex; width: 100%; }
.book-folio { position: absolute; bottom: 14px; right: 64px; z-index: 2; font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; line-height: 1; color: rgba(29, 42, 72, 0.42); }
.is-spread .book-back .book-folio { right: auto; left: 64px; }
.is-single .book-folio { display: none; }

/* Page corners: fold the corner to turn the page */
.book-corner { position: absolute; bottom: 0; z-index: 4; width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; }
.book-corner::before { content: ""; position: absolute; bottom: 0; width: 30px; height: 30px; filter: drop-shadow(-2px -2px 3px rgba(13, 30, 66, 0.2)); transition: width 0.25s var(--ease-pop), height 0.25s var(--ease-pop); }
.book-corner-next { right: 0; }
.book-corner-next::before { right: 0; border-top-left-radius: 6px; background: linear-gradient(to top left, var(--board) 49%, #EADCC4 51%); }
.book-corner-prev { left: 0; }
.book-corner-prev::before { left: 0; border-top-right-radius: 6px; background: linear-gradient(to top right, var(--board) 49%, #EADCC4 51%); }
.book-corner:hover::before { width: 46px; height: 46px; }
.book-corner[hidden], .is-spread .book-front .book-corner-prev, .is-spread .book-back .book-corner-next, .is-single .book-corner-prev { display: none; }

/* The cover */
.book-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 18px);
  padding: 30px 34px 34px 52px; background: var(--blue); color: #FFFDF8; text-align: center; cursor: pointer;
  border-radius: 6px 22px 22px 6px; box-shadow: inset 16px 0 0 rgba(13, 30, 66, 0.24), inset 19px 0 0 rgba(255, 255, 255, 0.14), 0 30px 46px -28px rgba(13, 30, 66, 0.65);
}
.book-cover-badge { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: #FFFDF8; box-shadow: 0 6px 14px -8px rgba(13, 30, 66, 0.5); transform: rotate(-3deg); }
.book-cover-badge img { width: auto; height: 46px; }
.book-cover-photo { position: relative; width: 80%; margin: 0; padding: 10px 10px 12px; border-radius: 14px; background: #FFFDF8; box-shadow: 0 14px 26px -16px rgba(13, 30, 66, 0.7); transform: rotate(2deg); }
.book-cover-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.book-cover-title { margin: 0; max-width: 12ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 2.8vw, 2.35rem); line-height: 1.05; color: #FFFDF8; }
.book-cover-doodle { position: absolute; width: 40px; height: 40px; }
.bcd-heart { left: 34px; top: 26px; fill: var(--mint); transform: rotate(-12deg); }
.bcd-flower { right: 26px; top: 30px; fill: var(--pink); }
.bcd-house { left: 30px; bottom: 30px; fill: var(--coral); }
.bcd-star { right: 28px; bottom: 34px; fill: var(--yellow); transform: rotate(10deg); }

/* Under the book: the arrows, the page count and the hint */
.book-controls { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 22px); margin: clamp(18px, 3vw, 28px) auto 0; }
.book-arrow { display: grid; place-items: center; flex: none; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: var(--shadow-pop); cursor: pointer; transition: transform 0.28s var(--ease-pop), background-color 0.2s ease, opacity 0.2s ease; }
.book-arrow:hover:not([disabled]) { background: var(--blue-deep); transform: translateY(-2px); }
.book-arrow[disabled] { opacity: 0.35; cursor: default; box-shadow: none; }
.book-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.book-status { margin: 0; min-width: 15ch; padding: 9px 18px 7px; border-radius: 22px; background: rgba(255, 253, 249, 0.95); box-shadow: var(--shadow); text-align: center; }
.book-count { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.04em; color: var(--ink); }
.book-hint { display: block; margin: 0; font-size: 1.2rem; transform: none; }

@media (max-width: 899px) {
  .book-story { padding: 22px 22px 24px 26px; }
  .book-title { font-size: 1.32rem; }
  .book-intro { font-size: 0.95rem; line-height: 1.5; }
  .book-cover { padding: 26px 26px 30px 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .book-stage, .book-leaf, .book-stage::before, .book-stage::after, .book-corner::before, .book-arrow { transition: none; }
}
.book-stage.is-fading .book-face:not([aria-hidden]) { animation: book-fade 0.35s ease both; }
@keyframes book-fade { from { opacity: 0; } }

/* ---------- No words on story photos (Mia, 20 Nov 2026, 12:05) ----------
   A story's title and the All our stories link sit at the top of its text card, and the next story's title sits under
   its photo, so no photo carries words. */
.gs-copy .gs-back { margin: 0 0 18px; background: var(--cream-2); }
.gs-copy .gs-title { max-width: none; margin: 0 0 0.4em; font-size: clamp(2.3rem, 4.6vw, 3.9rem); color: var(--ink); }
.gs-next-link { display: block; height: auto; padding: 0; background: var(--cream); color: var(--ink); box-shadow: var(--shadow); }
.gs-next-photo { position: relative; display: block; height: clamp(220px, 30vw, 380px); overflow: hidden; }
.gs-next-text { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px clamp(20px, 3vw, 32px) 22px; }
.gs-next-text .gs-next-label { background: var(--blue-soft); color: var(--blue-deep); }
.gs-next-title { font-family: var(--gt-font); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; color: var(--ink); }

/* Portuguese, French and Italian menu labels are longer than the English ones: a slightly smaller menu keeps the
   whole bar, Donate button included, on screen on wide desktops (Mia, 20 Nov 2026: every language showing). */
@media (min-width: 1401px) {
  html:lang(pt) .main-nav a, html:lang(fr) .main-nav a, html:lang(it) .main-nav a { padding: 8px 5px; font-size: 0.84rem; }
  html:lang(pt) .header-inner, html:lang(fr) .header-inner, html:lang(it) .header-inner { gap: 12px; }
  html:lang(pt) .main-nav a { padding: 8px 4px; font-size: 0.8rem; }
}

/* Footer credit (Jarryd, 20 Nov 2026: "Website sponsored with love by Lumanaire"): the longer line wraps in two even
   lines on phones instead of leaving one word alone. */
.lumanaire-credit .proudly { text-wrap: balance; }
@media (max-width: 560px) {
  .lumanaire-credit { border-radius: 20px; padding: 10px 16px; text-align: center; }
  .lumanaire-credit .proudly { letter-spacing: 0.14em; }
}
