/* ==========================================================================
   Fuel to Play Foundation — site styles
   Organized: tokens · base · type · layout · buttons · header · hero ·
   components · forms · footer · gate · logo animation · motion · admin ·
   responsive · reduced-motion
   Palette is taken straight from the logo so site + mark always match.
   ========================================================================== */

/* --- Webfont: Figtree (self-hosted variable font, weights 300–900) ------- */
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Figtree";
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Figtree";
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design tokens ------------------------------------------------------- */
:root {
    /* Brand (from logo) */
    --navy:    #012750;
    --navy-2:  #073a6e;
    --orange:  #f48c24;
    --orange-2:#e07c14;
    --green:   #6ca02b;
    --green-2: #5d8a24;
    --blue:    #0b61a0;
    --blue-2:  #0a5489;
    --gray:    #6c6b6c;
    --red:     #da282a;

    /* Neutrals / surfaces */
    --ink:      #13233a;
    --ink-soft: #4c586a;
    --line:     #e4e9f0;
    --bg:       #ffffff;
    --bg-soft:  #f4f7fb;
    --bg-warm:  #fdf7ef; /* faint warm tint for "fuel" sections */

    /* Layout */
    --container: 1140px;
    --gutter: clamp(1rem, 4vw, 2.25rem);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(1,39,80,.05), 0 3px 10px rgba(1,39,80,.05);
    --shadow-md: 0 10px 34px rgba(1,39,80,.10);
    --shadow-lg: 0 28px 64px rgba(1,39,80,.16);

    /* Type */
    --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --step--2: .825rem;
    --step--1: clamp(.86rem, .84rem + .1vw, .93rem);
    --step-0:  clamp(1rem, .97rem + .18vw, 1.08rem);
    --step-1:  clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
    --step-2:  clamp(1.5rem, 1.32rem + .9vw, 2rem);
    --step-3:  clamp(1.9rem, 1.55rem + 1.7vw, 2.75rem);
    --step-4:  clamp(2.3rem, 1.8rem + 2.6vw, 3.5rem);
    --step-5:  clamp(2.7rem, 2rem + 3.8vw, 4.4rem);

    /* Motion language (shared by every transition) */
    --ease:     cubic-bezier(.22,.61,.36,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --dur-1: .18s;
    --dur-2: .34s;
    --dur-3: .6s;
}

/* --- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 200;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
    transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.12; color: var(--navy); font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { color: var(--ink-soft); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.eyebrow {
    display: inline-block; font-size: var(--step--1); font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2);
    margin-bottom: .9rem;
}
.text-center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }
mark { background: linear-gradient(180deg, transparent 58%, rgba(244,140,36,.35) 0); color: inherit; }

/* --- Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--navy { background: var(--navy); color: #cfe0f1; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
/* .lead hardcodes a dark ink colour for light backgrounds; on navy it drops to
   ~2:1. Use the section's light body colour so it passes AA. */
.section--navy .lead { color: #cfe0f1; }
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head.text-center { margin-inline: auto; }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Top-align, don't center: the copy is far shorter than the form/card beside it,
   so centering floated it in the middle with dead space above and below. The
   copy column is sticky so it tracks alongside a long form instead of stranding
   whitespace under it. */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > :first-child { position: sticky; top: 96px; }

/* Form intros as an equal-height tinted panel: the short copy becomes a full-
   height brand panel matching the tall form beside it, so the two columns
   balance. This is also the scaffold for the photo pass — drop a background-image
   behind the gradient and the gradient becomes the readability tint over it. */
.split--panel { align-items: stretch; }
/* Form intro panels carry a color "screen": set --screen to any brand color
   (default navy, or a .tint-* class) and the panel base + image wash derive from
   it. --screen-deep is a readable dark version of ANY wash color, so the white
   copy stays legible whatever brand color the screen is. */
.split--panel { --screen: var(--navy); }
.split--panel > :first-child {
    /* top:auto cancels the sticky rule's top:96px — with position:relative that
       value would otherwise shove the panel 96px down onto the section's base. */
    --screen-deep: color-mix(in srgb, var(--screen) 38%, #001b34);
    position: relative; top: auto; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    border-radius: var(--radius); padding: 0; /* padding lives on .panel-copy so the figure can bleed */
    color: #eaf1f9; background-color: var(--navy); /* fallback if color-mix is unsupported */
    background:
        radial-gradient(120% 90% at 12% 100%, rgba(255, 255, 255, .14), transparent 58%),
        linear-gradient(150deg, var(--screen-deep) 0%, color-mix(in srgb, var(--screen-deep), #fff 9%) 100%);
}
.panel-copy { padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.split--panel h2, .split--panel h3 { color: #fff; }
.split--panel .lead { color: #e6eef7; }
.split--panel .eyebrow { color: #ffd9ab; }
.split--panel a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Color-screen image treatment: a grayscale photo under a brand-color wash that
   deepens to the dark base at the bottom, melting into the copy area. The wash
   color is --screen; the figure flex-grows to fill the equal-height panel. */
.panel-figure { position: relative; flex: 1 1 auto; min-height: 200px; overflow: hidden; }
.panel-figure img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.04) brightness(.95); }
.panel-figure::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--screen) 50%, transparent) 0%,
        color-mix(in srgb, var(--screen) 76%, transparent) 50%,
        var(--screen-deep) 100%);
}
/* Any brand color as the screen — drop a .tint-* on the .split--panel (or any
   element wrapping a .panel-figure). The dark base + copy derive automatically. */
.tint-navy   { --screen: var(--navy); }
.tint-blue   { --screen: var(--blue); }
.tint-green  { --screen: var(--green); }
.tint-orange { --screen: var(--orange); }
.tint-red    { --screen: var(--red); }
/* Tablet & down: stack the form panel (like the hero) so the image + copy sit
   above the form instead of cramping side-by-side. The figure becomes a banner
   with a fixed ratio rather than flex-growing to a stretched panel. */
@media (max-width: 1024px) {
    .split--panel { grid-template-columns: 1fr; }
    .split--panel .panel-figure { flex: 0 0 auto; aspect-ratio: 3 / 2; min-height: 0; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--btn-bd);
    background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: var(--step-0);
    line-height: 1; text-align: center;
    transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
                background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--orange); --btn-fg: #fff; --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: var(--orange-2); --btn-bd: var(--orange-2); }
.btn--secondary { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn--secondary:hover { --btn-bg: var(--navy-2); --btn-bd: var(--navy-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--navy); --btn-fg: var(--navy); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
/* Donate CTA: deepened orange (so white text stays legible) + a beating heart. */
.btn--donate { --btn-bg: #d2700f; --btn-fg: #fff; --btn-bd: #d2700f; gap: .5rem; }
.btn--donate:hover { --btn-bg: #bd6309; --btn-bd: #bd6309; }
.btn--donate svg { width: 1.1em; height: 1.1em; transform-origin: center; animation: heartbeat 1.5s ease-in-out infinite; }
.btn--donate:hover svg { animation-duration: .7s; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.28); }
    28% { transform: scale(1); }
    42% { transform: scale(1.16); }
    56% { transform: scale(1); }
}
.btn--sm { padding: .6rem 1.1rem; font-size: var(--step--1); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--step-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Header & nav -------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.site-header--transparent { background: transparent; border-color: transparent; }
.site-header.is-scrolled {
    background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(10px);
    box-shadow: var(--shadow-sm); border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-header__brand { display: inline-flex; align-items: center; }
.logo-wordmark { height: 52px; width: auto; transition: transform var(--dur-2) var(--ease); }
.site-header__brand:hover .logo-wordmark { transform: translateY(-1px); }

.primary-nav__list { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.6rem); }
.primary-nav a {
    position: relative; color: var(--navy); font-weight: 600; padding: .5rem .2rem .75rem;
    white-space: nowrap; /* never let a label collapse onto two lines */
    transition: color var(--dur-1) var(--ease);
}
/* Hover: a brand-orange underline grows out from the centre, dropped a little
   below the text (extra padding-bottom) so it isn't cramped against it. */
.primary-nav a::after {
    content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .1rem; height: 2px;
    background: var(--orange-2); transform: scaleX(0); transform-origin: center;
    transition: transform var(--dur-2) var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__cta a::after { display: none; }
/* Donate CTA must keep its own button colors/padding, not the nav link's.
   Left padding is smaller to offset the heart icon's internal whitespace. */
.primary-nav__cta a {
    color: #fff; padding: .65rem 1.25rem .65rem 1.05rem;
    /* Restore the button transition (the nav's `transition: color` rule would
       otherwise win by specificity, making the hover lift jump). */
    transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
}
.primary-nav__cta a:hover { color: #fff; }

/* Language switcher — a compact EN|ES segmented toggle (real locale links, so
   still crawlable). Set apart from the nav links with a globe to its left; in
   the mobile drawer it drops to the bottom as a labelled control (see @900). */
.primary-nav__lang { display: flex; align-items: center; gap: .5rem; }
.lang-lead { display: inline-flex; align-items: center; gap: .4rem; color: var(--navy); }
.lang-lead__icon { width: 1.1em; height: 1.1em; }
.lang-label { display: none; } /* shown only in the mobile drawer */
.lang-toggle { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.primary-nav .lang-toggle a {
    padding: .32rem .62rem; color: var(--navy); font-weight: 700; font-size: var(--step--1);
    letter-spacing: .03em; line-height: 1.5; text-decoration: none;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.primary-nav .lang-toggle a::after { display: none; } /* no nav underline-sweep */
.primary-nav .lang-toggle a:hover { background: rgba(1, 39, 80, .06); color: var(--navy); }
.primary-nav .lang-toggle a[aria-current="true"] { background: var(--navy); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; }
.nav-overlay { display: none; } /* drawer backdrop — only shown at the mobile breakpoint */
.nav-resizing .primary-nav, .nav-resizing .nav-overlay { transition: none !important; }
.nav-toggle__box { display: block; width: 26px; height: 18px; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px;
    background: var(--navy); transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.nav-toggle__bars { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { opacity: 0; }

/* --- Fuel glow (animated brand background) ------------------------------- */
/* Static soft gradient backdrop. (No drift animation — a slowly scaling
   blurred blob reads as a "band" that creeps on resize; static looks cleaner.) */
.fuel-glow {
    position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0;
    pointer-events: none; filter: blur(60px); opacity: .55;
    background:
        radial-gradient(38% 50% at 22% 30%, rgba(244,140,36,.55), transparent 70%),
        radial-gradient(34% 46% at 78% 24%, rgba(108,160,43,.45), transparent 70%),
        radial-gradient(40% 50% at 60% 70%, rgba(11,97,160,.40), transparent 70%);
}

/* --- Hero ---------------------------------------------------------------- */
/* Copy keeps full top+bottom padding; the illustration is a direct child of
   .hero, absolutely anchored to the section baseline (see .hero__illustration). */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 5rem); overflow: hidden; }
/* Bottom blue deepened a touch (#d9e7f6) so the white sunburst can read on it. */
.hero::before { /* sits behind, above the glow */ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, #d9e7f6 100%); z-index: -1; }
/* Sunburst: white rays from the graphic's base, faded outward, behind content
   (z-0) and behind the sticky header (z-100). Tunable via the vars below. */
.hero__rays {
    --rays-x: 70%; --rays-strong: .60; --rays-soft: .32;
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        repeating-conic-gradient(from -10deg at var(--rays-x) 100%,
            rgba(255,255,255,var(--rays-strong)) 0deg 2deg, transparent 2deg 12deg),
        repeating-conic-gradient(from -4deg at var(--rays-x) 100%,
            rgba(255,255,255,var(--rays-soft)) 0deg 3.5deg, transparent 3.5deg 20deg);
    -webkit-mask-image: radial-gradient(95% 105% at var(--rays-x) 100%, #000 0%, rgba(0,0,0,.6) 42%, transparent 80%);
            mask-image: radial-gradient(95% 105% at var(--rays-x) 100%, #000 0%, rgba(0,0,0,.6) 42%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero__title { font-size: var(--step-5); }
/* Keyword colors match the pills above: eat→Nourish green, play→orange, thrive→blue. */
.hero__title .accent-eat    { color: var(--green); }
.hero__title .accent-play   { color: var(--orange-2); }
.hero__title .accent-thrive { color: var(--blue); }
/* Final headline line cycles "to be fed → to play → to thrive" with a flip.
   Phrases are stacked in one grid cell so the line sizes to the widest; JS
   moves .is-on. No-JS keeps the first phrase; reduced-motion lists all three. */
.hero__rotator { display: inline-grid; perspective: 800px; vertical-align: bottom; }
.hero__rot-item {
    grid-area: 1 / 1; white-space: nowrap;
    opacity: 0; transform: rotateX(-90deg); transform-origin: center bottom;
    transition: opacity .35s var(--ease), transform .55s var(--ease-out);
}
.hero__rot-item.is-on { opacity: 1; transform: rotateX(0); }
@media (prefers-reduced-motion: reduce) {
    .hero__rotator { display: block; perspective: none; }
    .hero__rot-item { display: block; opacity: 1; transform: none; transition: none; }
}
.hero__lead { margin-top: 1.25rem; max-width: 52ch; }
.hero__actions { margin-top: 2rem; }
/* Absolutely anchored to the section's bottom-right (bleeds off the right edge,
   which .hero clips) so it sits on the baseline independent of the copy's height.
   Mobile puts it back in normal flow, above the copy. */
.hero__illustration { position: absolute; bottom: 0; left: 50%; z-index: 1; width: min(730px, 52vw); height: auto; display: block; }
/* Ghost button's --line border washes out over the hero's tinted gradient;
   use a translucent navy so it reads evenly across the button. */
.hero .btn--ghost { --btn-bd: rgba(1, 39, 80, .32); }
.tagline-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    font-weight: 700; font-size: var(--step--1); box-shadow: var(--shadow-sm);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
/* Word colors matching the logo's three icons (Nourish/Play/Thrive). */
.t-nourish { color: var(--green); }
.t-play    { color: var(--orange-2); }
.t-thrive  { color: var(--blue); }

/* --- Components: cards, features, stats, callout ------------------------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
    height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8e0ea; }
.card h3 { margin-bottom: .5rem; }
.card__icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
    margin-bottom: 1.1rem; background: var(--bg-soft);
}
.card__icon svg { width: 30px; height: 30px; }
.card--fuel .card__icon { background: rgba(244,140,36,.12); color: var(--orange-2); }
.card--play .card__icon { background: rgba(108,160,43,.14); color: var(--green-2); }
.card--thrive .card__icon { background: rgba(11,97,160,.12); color: var(--blue); }

/* Photo card: a full-bleed grayscale image under a brand-colour wash (set the
   colour with a .tint-* class). White copy sits on top. Same --screen system as
   the form panels; the wash stays dark enough for legible text over any photo. */
.card--photo {
    position: relative; overflow: hidden; border: 0; color: #fff; min-height: 15rem;
    /* Darken with black, not navy: navy is orange's complement and muddies it to
       brown. Black keeps the hue pure, so the wash reads vibrantly green/orange
       while staying dark enough for white copy. */
    --screen-deep: color-mix(in srgb, var(--screen) 62%, #000);
    background: var(--navy); /* fallback if color-mix is unsupported */
}
.card--photo .card__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: grayscale(1) brightness(.5) contrast(1.05); z-index: 0;
}
.card--photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--screen-deep) 76%, transparent) 0%,
        color-mix(in srgb, var(--screen-deep) 90%, transparent) 100%);
}
.card--photo > :not(.card__bg) { position: relative; z-index: 2; }
.card--photo h3 { color: #fff; }
.card--photo p { color: #eef4fa; }
.card--photo .card__icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* Orange reads best a good deal brighter — its deep end looked too dark. Lift the
   wash and even out the gradient (less opaque, less falloff); a soft text-shadow
   keeps the copy legible on the brighter orange. Green is left untouched. */
.card--photo.tint-orange { --screen-deep: color-mix(in srgb, var(--screen) 76%, #000); }
.card--photo.tint-orange::before {
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--screen-deep) 70%, transparent) 0%,
        color-mix(in srgb, var(--screen-deep) 82%, transparent) 100%);
}
.card--photo.tint-orange h3,
.card--photo.tint-orange p { text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

.pillar { position: relative; }
.pillar__num { font-size: var(--step--1); font-weight: 800; letter-spacing: .12em; color: var(--orange-2); }

.stat { text-align: center; padding: 1rem; }
.stat__num { font-size: var(--step-4); font-weight: 800; color: var(--navy); line-height: 1; }
.section--navy .stat__num { color: #fff; }
.stat__label { margin-top: .4rem; font-weight: 600; color: var(--ink-soft); }
.section--navy .stat__label { color: #aac4dd; }

.steps { counter-reset: step; }
.step__badge {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 1rem;
}
.card--fuel .step__badge { background: var(--orange); }
.card--play .step__badge { background: var(--green); }
.card--thrive .step__badge { background: var(--blue); }

.callout {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, #02356d 60%, var(--blue-2) 100%);
    color: #dceaf7; padding: clamp(2.25rem, 5vw, 4rem); text-align: center;
}
.callout h2 { color: #fff; }
.callout .btn-row { justify-content: center; margin-top: 1.75rem; }

/* --- Forms --------------------------------------------------------------- */
.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
input, select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem;
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,97,160,.14);
}
textarea { min-height: 140px; resize: vertical; }
.field-row input { flex: 1 1 220px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: .65rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-status.is-success { color: var(--green-2); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-sm); }
.signup-form .field-row { align-items: stretch; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #aac4dd; margin-top: auto; }
.site-footer a { color: #d7e6f5; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
    display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}
/* max-width caps the logo regardless of .logo-emblem's width:100% (same
   specificity, later in source), so the full lockup doesn't fill the column. */
.site-footer__logo { max-width: 160px; opacity: .95; } /* SVG is already all-white */
/* The global `p { color: ink-soft }` overrides the footer's light body colour on
   these two bare paragraphs, dropping them to ~2:1 on navy. Restore the intended
   footer colour so they pass AA (:not excludes the fineprint, which sets its own). */
.site-footer__mission,
.site-footer__bar-inner p:not(.site-footer__fineprint) { color: #aac4dd; }
.site-footer__mission { margin-top: .5rem; max-width: 34ch; }
.site-footer__heading { color: #fff; font-size: var(--step-0); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer__nav li { margin-bottom: .55rem; }
.site-footer__signup p { color: #9fbdd9; margin-bottom: 1rem; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.25rem; font-size: var(--step--1); }
.site-footer__fineprint { color: #88a6c4; }

/* --- Coming-soon gate ---------------------------------------------------- */
.gate-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; position: relative; background: linear-gradient(180deg, #fff, #d9e7f6); }
/* Sunburst from the splash's bottom-center, behind the content (same technique
   as the home hero's .hero__rays). */
.gate__rays {
    --rays-x: 50%; --rays-strong: .55; --rays-soft: .3;
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        repeating-conic-gradient(from -10deg at var(--rays-x) 100%,
            rgba(255,255,255,var(--rays-strong)) 0deg 2deg, transparent 2deg 12deg),
        repeating-conic-gradient(from -4deg at var(--rays-x) 100%,
            rgba(255,255,255,var(--rays-soft)) 0deg 3.5deg, transparent 3.5deg 20deg);
    -webkit-mask-image: radial-gradient(85% 80% at var(--rays-x) 100%, #000 0%, rgba(0,0,0,.6) 40%, transparent 78%);
            mask-image: radial-gradient(85% 80% at var(--rays-x) 100%, #000 0%, rgba(0,0,0,.6) 40%, transparent 78%);
}
.gate { position: relative; z-index: 1; max-width: 620px; text-align: center; padding: clamp(.42rem, 1.2vw, .85rem) var(--gutter) clamp(1.5rem, 4vw, 3rem); }
.gate__microcopy {
    margin: 0 auto;
    max-width: 60ch;
    font-size: var(--step--2);
    color: var(--ink-soft);
    line-height: 1.4;
}
.gate__logo .logo-emblem { width: min(260px, 58%); margin: 0 auto 1.25rem; }
.gate__title { margin: .5rem 0 1rem; }
.gate__lead { margin-inline: auto; max-width: 48ch; margin-bottom: 1.75rem; }
.gate__form { max-width: 440px; margin: 0 auto; }
/* Team access: a low-key link pinned at the bottom that opens a modal,
   so it never adds to the page height. */
.gate__bottom {
    margin-top: 1.4rem; display: flex; justify-content: center; align-items: center;
    gap: .55rem; font-size: var(--step--1);
}
.gate__bottom .sep { color: var(--gray); }
.gate__team-link {
    background: none; border: 0; cursor: pointer; font: inherit; font-size: inherit;
    color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; padding: .35rem .2rem;
}
.gate__team-link:hover { color: var(--navy); }
.gate__dialog {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0;
    width: calc(100% - 2rem); max-width: 380px; max-height: calc(100dvh - 2rem); overflow: auto;
    border: 0; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow-lg); color: var(--ink); background: #fff;
}
.gate__dialog::backdrop { background: rgba(1, 39, 80, .4); backdrop-filter: blur(2px); }
.gate__dialog-title { font-size: var(--step-1); margin-bottom: 1rem; }
.gate__dialog-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }

/* --- Logo animation ------------------------------------------------------ */
.logo-emblem { width: 100%; height: auto; }
.logo-emblem--animate {
    opacity: 0; transform: translateY(10px) scale(.96);
    clip-path: inset(0 0 100% 0);
    animation: emblem-reveal 1.1s var(--ease-out) .15s forwards;
}
@keyframes emblem-reveal {
    to { opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0); }
}
/* gentle "alive" loop once revealed */
.logo-emblem--float { animation: emblem-float 7s ease-in-out 1.3s infinite; transform-origin: 50% 60%; }
@keyframes emblem-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.012); }
}

/* Splash: assemble the emblem layer-by-layer instead of fading the whole image.
   Each part transforms about its OWN box (transform-box: fill-box). The layer
   classes (lg-*) live in logo-f2p-full.svg and are inert without --build. */
.logo-emblem--build [class^="lg-"] {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
@keyframes lg-slide-green {     /* green arc: scale up + fade + slide from upper-left */
    from { opacity: 0; transform: translate(-55%, -40%) scale(.5); }
    to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes lg-slide-orange {    /* orange arc: scale up + fade + slide from upper-right */
    from { opacity: 0; transform: translate(55%, -40%) scale(.5); }
    to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes lg-pop {             /* balls / food / icons: springy pop-in */
    0%   { opacity: 0; transform: scale(0); }
    65%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes lg-rise {           /* kids / text: rise + fade */
    from { opacity: 0; transform: translateY(14%); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lg-fade {           /* gentle opacity-only fade */
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Choreography — green arc first, then orange, then the scene fills in. */
.logo-emblem--build .lg-arc-green  { animation: lg-slide-green  1.1s var(--ease-out) .05s both; }
.logo-emblem--build .lg-arc-orange { animation: lg-slide-orange 1.1s var(--ease-out) .30s both; }
.logo-emblem--build .lg-food       { animation: lg-pop  .50s var(--ease-out) .55s both; }
.logo-emblem--build .lg-kids       { animation: lg-rise .55s var(--ease-out) .68s both; }
.logo-emblem--build .lg-spark      { animation: lg-pop  .45s var(--ease-out) .88s both; }
.logo-emblem--build .lg-ball       { animation: lg-pop  .45s var(--ease-out) .98s both; }
.logo-emblem--build .lg-word       { animation: lg-rise .50s var(--ease-out) 1.10s both; }
.logo-emblem--build .lg-found      { animation: lg-rise .50s var(--ease-out) 1.24s both; }
.logo-emblem--build .lg-rules      { animation: lg-fade .40s var(--ease-out) 1.34s both; }
/* The three icon+label columns pop one after another — each starts as the prior ends. */
.logo-emblem--build .lg-col1       { animation: lg-pop  .50s var(--ease-out) 1.44s both; }
.logo-emblem--build .lg-col2       { animation: lg-pop  .50s var(--ease-out) 1.94s both; }
.logo-emblem--build .lg-col3       { animation: lg-pop  .50s var(--ease-out) 2.44s both; }
/* Then the repeated tagline fades in as Thrive lands, and the location line right after. */
.logo-emblem--build .lg-slog       { animation: lg-fade .50s var(--ease-out) 2.94s both; }
.logo-emblem--build .lg-loc        { animation: lg-fade .50s var(--ease-out) 3.44s both; }

/* --- Motion / reveal utilities (toggled by motion.js) -------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.reveal[data-reveal="left"]  { transform: translateX(-30px); }
.reveal[data-reveal="right"] { transform: translateX(30px); }
.reveal[data-reveal="scale"] { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .44s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .52s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .60s; }

/* SVG line-draw: add .draw-svg to a container; motion.js triggers .is-visible */
.draw-svg path, .draw-svg line, .draw-svg circle, .draw-svg polyline {
    stroke-dasharray: var(--len, 1); stroke-dashoffset: var(--len, 1);
}
.draw-svg.is-visible path, .draw-svg.is-visible line,
.draw-svg.is-visible circle, .draw-svg.is-visible polyline {
    animation: draw 1.4s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Admin --------------------------------------------------------------- */
.admin-body { background: var(--bg-soft); min-height: 100vh; }
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.admin-bar a { color: #cfe0f1; font-weight: 600; }
.admin-bar a:hover, .admin-bar a[aria-current="page"] { color: #fff; }
.admin-bar__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.admin-main { padding-block: 2.5rem; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.admin-login { max-width: 400px; margin: 8vh auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th, .table td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .actions { white-space: nowrap; display: flex; gap: .5rem; }

/* Polished bulk-select checkboxes (subscribers): small, rounded, navy fill.
   padding:0 overrides the global input padding that would otherwise inflate it;
   inline-flex centers the checkmark at any size. */
#subs-form input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; margin: 0; padding: 0;
    width: 18px; height: 18px; flex: none; vertical-align: middle;
    border: 2px solid #c3cdda; border-radius: 5px; background: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
#subs-form input[type="checkbox"]:hover { border-color: var(--navy); }
#subs-form input[type="checkbox"]:checked { background: var(--navy); border-color: var(--navy); }
#subs-form input[type="checkbox"]:checked::after {
    content: ""; width: 4px; height: 8px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg); position: relative; top: -1px;
}
#subs-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge--on { background: rgba(108,160,43,.15); color: var(--green-2); }
.badge--off { background: rgba(108,107,108,.16); color: var(--gray); }
.badge--draft { background: rgba(244,140,36,.15); color: var(--orange-2); }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 600; }
.flash--ok { background: rgba(108,160,43,.14); color: var(--green-2); }
.flash--err { background: rgba(218,40,42,.12); color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat-tile .n { font-size: var(--step-3); font-weight: 800; color: var(--navy); line-height: 1; }
.stat-tile .l { color: var(--ink-soft); font-weight: 600; margin-top: .35rem; }

/* --- Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.flow > * + * { margin-top: 1.1rem; }
.inline-icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; color: var(--orange-2); }
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.page-hero .container { position: relative; z-index: 1; }

/* --- Responsive ---------------------------------------------------------- */
/* Below the container's full width (~1200px) the side-by-side hero gets cramped:
   the illustration scales with the viewport (52vw) while the headline is pinned
   at its max size, so the image looks dwarfed. Stack it instead — copy on top,
   kids full-width and anchored to the section baseline, rays centered — which
   actually gives the image MORE presence here than the two-column version could.
   z-index:1 keeps the (positioned) image above the rays. */
@media (max-width: 1200px) {
    .hero { padding-bottom: 0; }
    .hero__rays { --rays-x: 50%; }
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__lead { margin-inline: auto; }
    .hero__illustration { position: relative; left: auto; bottom: auto; z-index: 1; width: 100%; max-width: 600px; margin: 1.5rem auto 0; }
    .tagline-chips, .hero__actions .btn-row { justify-content: center; }
}
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split > :first-child { position: static; } /* no sticky once stacked */
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
/* Switch to the drawer at 900px, not 720: with four links + the language
   switcher + the Donate button, the horizontal nav runs out of room and the
   labels wrap to two lines well before 720. */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; align-items: center; }
    /* Drop the frosted-glass filter here: backdrop-filter on the header traps
       the fixed drawer's stacking, letting the overlay paint over it. */
    .site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
    /* Slide-in drawer from the right, below the header bar. */
    .primary-nav {
        position: fixed; top: 72px; right: 0; bottom: 0;
        width: min(82vw, 320px);
        background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform var(--dur-2) var(--ease);
        z-index: 98; overflow-y: auto;
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav:focus { outline: none; }
    .nav-overlay {
        display: block; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: rgba(1, 39, 80, .4); z-index: 96;
        opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease);
    }
    .nav-overlay.is-open { opacity: 1; pointer-events: auto; }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1.5rem; }
    .primary-nav__list li { border-bottom: 1px solid var(--line); }
    .primary-nav a { display: block; padding: .9rem 1.5rem; }
    .primary-nav a::after { display: none; }
    .primary-nav__cta { margin-top: 1rem; border-bottom: 0 !important; padding: 0 1.5rem; }
    .primary-nav__cta a { width: 100%; display: inline-flex; justify-content: center; }
    /* Language drops to the bottom of the drawer (order:1) as a labelled control,
       set off by a divider — not a peer of the nav links. */
    .primary-nav__lang { order: 1; justify-content: space-between; border-bottom: 0; margin-top: .4rem; padding: 1.1rem 1.5rem; }
    .lang-label { display: inline; color: var(--ink-soft); font-weight: 600; font-size: 1rem; }
    .lang-lead { color: var(--ink-soft); gap: .5rem; }
    .lang-lead__icon { width: 1.2em; height: 1.2em; }
}
@media (max-width: 560px) {
    .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .btn-row .btn { width: auto; }
    .field-row .btn { width: 100%; }
}

/* --- Reduced motion: keep it calm and fully visible --------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
    .logo-emblem--animate { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .logo-emblem--build [class^="lg-"] { opacity: 1 !important; transform: none !important; }
}
