/* ==========================================================================
   westiefund.org – site styles
   World: dawn field. Field green owns the dark regions, dawn gold is the
   accent voice, pale sky is the light ground. Heart gradient once per view.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-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: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/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("/assets/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("/assets/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;
}

/* ---------- Tokens ---------- */
:root {
  --green-950: #0b2117;
  --green-900: #0f2d1f;
  --green-800: #1b4a32;
  --green-700: #24603f;
  --green-600: #2e7a4f;
  --green-200: #c9dfd1;
  --green-100: #dcebe2;

  --gold-500: #f2b134;
  --gold-300: #f7d488;
  --gold-ink: #7a4f06;          /* gold as text on light ground, 6.6:1 */

  --sky-50: #f3f6f4;            /* light ground */
  --sky-100: #e7eeea;
  --sky-200: #d5e0da;
  --white: #fbfcfb;

  --ink: #12201a;
  --ink-muted: #46584f;         /* 6.5:1 on sky-50 */
  --ink-on-dark: #f3f6f4;
  --ink-on-dark-muted: #b9cdc1; /* 9.3:1 on green-900 */

  --heart-a: #4b2a8a;
  --heart-b: #e6165e;
  --heart-c: #ff6b4a;
  --heart: linear-gradient(135deg, var(--heart-a) 0%, var(--heart-b) 55%, var(--heart-c) 100%);
  --hand-a: #22c4f5;
  --hand-b: #1147d8;

  --font-display: "Bricolage Grotesque", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --radius: 1.25rem;
  --radius-sm: .6rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px -22px rgba(11, 33, 23, .45), 0 2px 6px -2px rgba(11, 33, 23, .15);
  --shadow-lift: 0 28px 60px -28px rgba(11, 33, 23, .55), 0 4px 10px -4px rgba(11, 33, 23, .2);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.015em; line-height: 1.2; }
h4 { font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
p + p, p + ul, ul + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .18em; text-decoration-thickness: .08em; transition: text-decoration-color var(--dur) var(--ease-out); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
strong { font-weight: 650; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--sky-200); margin: 2rem 0; }
::selection { background: var(--gold-300); color: var(--green-950); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sky-100); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 8px; border: 3px solid var(--sky-100); }
html { scrollbar-color: var(--green-700) var(--sky-100); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 46rem); }
.wrap--reading { width: min(100% - 2 * var(--gutter), 42rem); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--gold-500); color: var(--green-950); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; float: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-900);
  --btn-fg: var(--ink-on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .85rem 1.5rem;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--heart); color: #fff; box-shadow: 0 14px 30px -14px rgba(230, 22, 94, .7), 0 2px 6px -2px rgba(75, 42, 138, .4); }
.btn--primary:hover { box-shadow: 0 20px 40px -16px rgba(230, 22, 94, .75), 0 4px 10px -4px rgba(75, 42, 138, .45); filter: saturate(1.08); }
.btn--outline-light { background: transparent; color: var(--ink-on-dark); border-color: rgba(243, 246, 244, .55); }
.btn--outline-light:hover { border-color: var(--gold-500); background: rgba(243, 246, 244, .08); }
.btn--outline-dark { background: transparent; color: var(--green-900); border-color: var(--green-800); }
.btn--outline-dark:hover { background: var(--green-900); color: var(--ink-on-dark); }
.btn--gold { background: var(--gold-500); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-300); }
.btn--small { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--large { min-height: 3.75rem; padding: 1rem 2rem; font-size: 1.15rem; }
.btn__icon { width: 1.1em; height: 1.1em; flex: none; }
.btn--primary .btn__icon { transition: transform var(--dur) var(--ease-out); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--green-900); color: var(--ink-on-dark); }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 1.35rem; letter-spacing: -.03em; }
.brand__mark { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(243, 246, 244, .96); box-shadow: 0 6px 16px -8px rgba(11, 33, 23, .6); }
.brand__mark svg { width: 1.7rem; height: 1.7rem; }
.brand--footer { font-size: 1.6rem; color: var(--ink-on-dark); }

.site-nav__list { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem); list-style: none; }
.site-nav__list a:not(.btn) { text-decoration: none; font-weight: 550; font-size: .98rem; padding: .35rem 0; position: relative; }
.site-nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); border-radius: 2px; }
.site-nav__list a:not(.btn):hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: transparent; border: 1px solid rgba(243, 246, 244, .35); border-radius: var(--radius-pill); padding: .5rem .9rem .5rem .8rem; cursor: pointer; font-weight: 600; font-size: .95rem; }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner > .brand, .site-header__inner > .header-tools { position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; z-index: 1; background: var(--green-950); color: var(--ink-on-dark); padding: 6.5rem var(--gutter) 2rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-out), opacity .35s ease, visibility 0s .5s; overflow: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .35s ease; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-nav__list a:not(.btn) { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; padding: .35rem 0; }
  .site-nav__cta { margin-top: 1.5rem; }
  .site-nav__cta .btn { font-size: 1.1rem; min-height: 3.25rem; padding: .85rem 1.5rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; background: transparent; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--ink-on-dark); background: var(--green-950); isolation: isolate; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 62% 40%; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 33, 23, .92) 0%, rgba(11, 33, 23, .55) 32%, rgba(11, 33, 23, .08) 62%, transparent 80%),
    linear-gradient(to right, rgba(11, 33, 23, .55) 0%, rgba(11, 33, 23, .15) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(11, 33, 23, .45) 0%, transparent 22%);
}
.hero__inner { padding-block: clamp(7rem, 16vh, 10rem) clamp(2.5rem, 6vh, 4rem); display: grid; gap: 1.5rem; }
.hero__title { max-width: 14ch; text-shadow: 0 2px 30px rgba(11, 33, 23, .45); }
.hero__title em { font-style: normal; color: var(--gold-300); }
.hero__lead { max-width: 44ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-on-dark); text-wrap: pretty; }
.hero__actions { margin-top: .5rem; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: clamp(1.5rem, 4vh, 3rem); padding-top: 1.25rem; border-top: 1px solid rgba(243, 246, 244, .22); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; }
.hero__foot a { text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.hero__foot a:hover { color: var(--gold-500); }
.hero__foot svg { width: 1rem; height: 1rem; }

@media (max-width: 42rem) {
  .hero__media img { object-position: 50% 45%; }
  .hero__title { max-width: 11ch; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.band { background: var(--white); }
.band--dark { background: var(--green-900); color: var(--ink-on-dark); }
.band--deep { background: var(--green-950); color: var(--ink-on-dark); }
.band--gold { background: var(--gold-500); color: var(--green-950); }
.band--sky { background: var(--sky-100); }
.band--dark a:not(.btn), .band--deep a:not(.btn) { color: var(--gold-300); }
.band--dark .muted, .band--deep .muted { color: var(--ink-on-dark-muted); }

.section-head { display: grid; gap: 1rem; max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.15rem; color: var(--ink-muted); text-wrap: pretty; }
.band--dark .section-head p, .band--deep .section-head p { color: var(--ink-on-dark-muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.muted { color: var(--ink-muted); }
.lead { font-size: 1.2rem; line-height: 1.55; text-wrap: pretty; }

.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split--even { grid-template-columns: 1fr 1fr; } .split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split--reverse > :first-child { order: 2; } }
.split__sticky { position: sticky; top: 6rem; }

/* ---------- Route (how a grant works) ---------- */
.route { position: relative; counter-reset: stop; }
.route__path { position: absolute; left: 0; right: 0; top: 2.1rem; height: 2px; pointer-events: none; }
.route__path svg { width: 100%; height: 100%; overflow: visible; }
.route__path path { fill: none; stroke: var(--gold-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route.is-drawn .route__path path { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.route__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; list-style: none; }
.route__step { position: relative; padding-top: 4.6rem; display: grid; gap: .55rem; align-content: start; }
.route__step::before { counter-increment: stop; content: counter(stop); position: absolute; top: 0; left: 0; width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em; background: var(--green-900); color: var(--gold-300); border: 3px solid var(--sky-50); box-shadow: var(--shadow-soft); transform: scale(.85); opacity: .6; transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
.route.is-drawn .route__step::before { transform: none; opacity: 1; }
.route.is-drawn .route__step:nth-child(2)::before { transition-delay: .3s; }
.route.is-drawn .route__step:nth-child(3)::before { transition-delay: .6s; }
.route.is-drawn .route__step:nth-child(4)::before { transition-delay: .9s; }
.route.is-drawn .route__step:nth-child(5)::before { transition-delay: 1.2s; }
.route__step:last-child::before { background: var(--heart); color: #fff; }
.route__step h3 { font-size: 1.2rem; }
.route__step p { color: var(--ink-muted); font-size: .98rem; text-wrap: pretty; }
.route__step small { color: var(--gold-ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; }
@media (max-width: 56rem) {
  .route__path { display: none; }
  .route__steps { grid-template-columns: 1fr; gap: 0; }
  .route__step { padding: 0 0 2rem 4.5rem; }
  .route__step::before { width: 3.2rem; height: 3.2rem; font-size: 1.2rem; transform: none; opacity: 1; }
  .route__step:not(:last-child)::after { content: ""; position: absolute; left: 1.55rem; top: 3.4rem; bottom: .3rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold-500), var(--gold-300)); }
}

/* ---------- Ledger (what a weekend costs) ---------- */
.ledger { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-lift); position: relative; }
.ledger::before, .ledger::after { content: ""; position: absolute; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--green-900); top: 50%; transform: translateY(-50%); }
.ledger::before { left: -.8rem; } .ledger::after { right: -.8rem; }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 2px dashed var(--sky-200); }
.ledger__head h3 { font-size: 1.35rem; }
.ledger__tag { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); background: color-mix(in srgb, var(--gold-300) 45%, white); padding: .3rem .65rem; border-radius: var(--radius-pill); }
.ledger__rows { list-style: none; padding-block: .75rem; display: grid; gap: .55rem; }
.ledger__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .75rem; }
.ledger__row span:first-child { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.ledger__row span:first-child::after { content: ""; flex: 1; border-bottom: 2px dotted var(--sky-200); transform: translateY(-.3em); min-width: 1.5rem; }
.ledger__row em { font-style: normal; color: var(--ink-muted); font-size: .9rem; }
.ledger__row b { font-family: var(--font-display); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.ledger__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; border-top: 2px dashed var(--sky-200); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ledger__total small { font-family: var(--font-body); font-weight: 500; font-size: .85rem; letter-spacing: 0; color: var(--ink-muted); }
.ledger__foot { margin-top: 1rem; font-size: .85rem; color: var(--ink-muted); text-wrap: pretty; }
.ledger__covered { display: inline-flex; align-items: center; gap: .35rem; margin-left: .25rem; padding: .1rem .5rem; border-radius: var(--radius-pill); background: var(--green-100); color: var(--green-800); font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 40rem) {
  .ledger__row span:first-child { display: block; }
  .ledger__row span:first-child::after { display: none; }
  .ledger__covered { vertical-align: middle; }
  .ledger__total { flex-direction: column; gap: .25rem; }
  .ledger__total small { display: block; }
}
.band--dark .ledger::before, .band--dark .ledger::after { background: var(--green-900); }
.band--deep .ledger::before, .band--deep .ledger::after { background: var(--green-950); }

/* ---------- Pillars (who / how funded) ---------- */
.pillars { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 48rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { display: grid; gap: .75rem; align-content: start; padding-top: 1.25rem; border-top: 3px solid var(--gold-500); }
.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--ink-muted); text-wrap: pretty; }
.band--dark .pillar p, .band--deep .pillar p { color: var(--ink-on-dark-muted); }
.pillar__icon { width: 2.25rem; height: 2.25rem; color: var(--gold-500); }
.pillar__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Statement ---------- */
.statement-band { overflow: clip; }
.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; max-width: 26ch; }
.statement em { font-style: normal; color: var(--gold-500); }
.band--gold .statement em { color: var(--green-950); text-decoration: underline; text-decoration-color: rgba(11, 33, 23, .35); text-decoration-thickness: .06em; }

/* ---------- Closing CTA ---------- */
.closing { position: relative; overflow: clip; background: var(--green-950); color: var(--ink-on-dark); }
.closing__media { position: absolute; inset: 0; opacity: .5; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; filter: saturate(.9); }
.closing__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11, 33, 23, .95) 0%, rgba(11, 33, 23, .7) 55%, rgba(11, 33, 23, .35) 100%); }
.closing__inner { position: relative; display: grid; gap: 1.5rem; max-width: 40rem; }
.closing__inner p { color: var(--ink-on-dark); font-size: 1.15rem; text-wrap: pretty; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--green-900); color: var(--ink-on-dark); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: clip; }
.page-head::after { content: ""; position: absolute; right: -10%; top: -40%; width: 40rem; height: 40rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 177, 52, .22), transparent 70%); pointer-events: none; }
.page-head__inner { position: relative; display: grid; gap: 1.25rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); max-width: 18ch; }
.page-head p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-on-dark-muted); text-wrap: pretty; max-width: 40rem; }
.page-head__meta { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--green-700); font-weight: 550; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.5rem; border-radius: var(--radius-sm); background: var(--sky-100); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--sky-200); vertical-align: top; }
.prose th { font-family: var(--font-display); font-weight: 650; letter-spacing: -.01em; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose .placeholder { background: color-mix(in srgb, var(--gold-300) 45%, white); color: var(--gold-ink); padding: .1em .35em; border-radius: 4px; font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Definition rows (criteria, facts) ---------- */
.facts { display: grid; gap: 0; border-top: 1px solid var(--sky-200); }
.facts > div { display: grid; gap: .35rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--sky-200); }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 12rem 1fr; } }
.facts dt { font-family: var(--font-display); font-weight: 650; letter-spacing: -.01em; }
.facts dd { margin: 0; color: var(--ink-muted); text-wrap: pretty; }
.band--dark .facts, .band--dark .facts > div { border-color: rgba(243, 246, 244, .18); }
.band--dark .facts dd { color: var(--ink-on-dark-muted); }

/* ---------- Notice ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.notice__icon { width: 2rem; height: 2rem; color: var(--gold-ink); }
.notice__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.notice p { color: var(--ink-muted); text-wrap: pretty; }
.notice--gold { background: var(--gold-300); box-shadow: none; }
.notice--gold p, .notice--gold .notice__icon { color: var(--green-950); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--sky-200); }
.faq details { border-bottom: 1px solid var(--sky-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .9rem; height: .9rem; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg) translateY(-.15rem); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-.15rem); }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-muted); max-width: 60ch; }
.faq details > div a { color: var(--green-700); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: .25rem; padding: 0; float: left; width: 100%; }
.form legend + * { clear: both; }
.form__legend-hint { color: var(--ink-muted); font-size: .95rem; margin: -.75rem 0 .25rem; }
.form__grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form__grid--2 { grid-template-columns: 1fr 1fr; } .form__grid--3 { grid-template-columns: 2fr 1fr 1fr; } }
.field { display: grid; gap: .4rem; align-content: start; grid-template-rows: auto auto auto; }
/* Inside a two-column grid the label, control and meta rows line up across the row */
@supports (grid-template-rows: subgrid) {
  .form__grid--2 .field { grid-row: span 3; grid-template-rows: subgrid; }
}
.field > label, .field > .field__label { align-self: end; }
.field__meta { display: grid; gap: .25rem; align-content: start; }
.field__meta:empty { display: none; }
.field label, .field .field__label { font-weight: 600; font-size: .98rem; display: flex; gap: .5rem; align-items: baseline; }
.field__opt { font-weight: 500; font-size: .8rem; color: var(--ink-muted); }
.field__hint { font-size: .875rem; color: var(--ink-muted); text-wrap: pretty; }
.field__error { display: none; font-size: .875rem; color: #a3193a; font-weight: 550; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d02455; box-shadow: 0 0 0 3px rgba(230, 22, 94, .15); }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%; height: 3.1rem; padding: 0 .95rem; line-height: 1.4;
  border: 1.5px solid var(--sky-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: inherit; caret-color: var(--heart-b);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field textarea { height: auto; min-height: 9rem; padding: .7rem .95rem; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #6b7d74; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--green-200); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(46, 122, 79, .2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2324603f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.6rem; }
.field input[type="date"] { height: 3.1rem; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: start; }
.choices { display: grid; gap: .6rem; }
.choices--row { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border: 1.5px solid var(--sky-200); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); font-weight: 500; }
.choice:hover { border-color: var(--green-200); }
.choice:has(input:checked) { border-color: var(--green-700); background: color-mix(in srgb, var(--green-100) 60%, white); }
.choice input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--green-700); flex: none; }
.choice--plain { border: 0; padding: 0; background: transparent; font-weight: 450; }
.choice--plain:hover, .choice--plain:has(input:checked) { border: 0; background: transparent; }
.choice a { color: var(--green-700); }
.form__actions { display: grid; gap: 1rem; }
.form__status { display: none; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 550; }
.form__status.is-error { display: block; background: #fbe4ea; color: #7e1230; }
.form__status.is-success { display: block; background: var(--green-100); color: var(--green-900); }
.form__success { display: none; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--green-900); color: var(--ink-on-dark); box-shadow: var(--shadow-lift); }
.form__success.is-visible { display: grid; gap: 1rem; }
.form__success h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form__success p { color: var(--ink-on-dark-muted); font-size: 1.1rem; }
.form.is-done { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field__count { font-size: .8rem; color: var(--ink-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Sticky side rail for forms */
.rail { display: grid; gap: 1.25rem; }
.rail__box { padding: 1.5rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); display: grid; gap: .6rem; }
.rail__box h3 { font-size: 1.1rem; }
.rail__box p, .rail__box li { color: var(--ink-muted); font-size: .95rem; text-wrap: pretty; }
.rail__box ul { padding-left: 1.1em; }
.rail__box--dark { background: var(--green-900); color: var(--ink-on-dark); }
.rail__box--dark p, .rail__box--dark li { color: var(--ink-on-dark-muted); }
.rail__box--dark a { color: var(--gold-300); }

/* ---------- Scholars (hidden until first grants) ---------- */
.scholars { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .scholars { grid-template-columns: repeat(2, 1fr); } }
.scholar { display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; align-items: start; padding: 1.25rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.scholar img { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; }
.scholar h3 { font-size: 1.2rem; }
.scholar p { color: var(--ink-muted); font-size: .95rem; }
.empty { padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); border: 2px dashed var(--sky-200); text-align: center; display: grid; gap: .75rem; justify-items: center; }
.empty h2 { font-size: 1.6rem; }
.empty p { color: var(--ink-muted); max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: var(--ink-on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.site-footer__grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 56rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__about { display: grid; gap: 1rem; max-width: 34rem; }
.site-footer__about p { color: var(--ink-on-dark-muted); text-wrap: pretty; }
.site-footer__carrier { font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-300) !important; font-weight: 600; }
.site-footer__col h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); font-family: var(--font-body); font-weight: 700; margin-bottom: .9rem; }
.site-footer__col ul { list-style: none; display: grid; gap: .5rem; }
.site-footer__col a { text-decoration: none; color: var(--ink-on-dark); }
.site-footer__col a:hover { color: var(--gold-300); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(243, 246, 244, .15); font-size: .85rem; color: var(--ink-on-dark-muted); }

/* ---------- Reveal (one grammar, used sparingly) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
  .hero__inner > * { animation: rise .9s var(--ease-out) both; }
  .hero__inner > :nth-child(2) { animation-delay: .12s; }
  .hero__inner > :nth-child(3) { animation-delay: .22s; }
  .hero__inner > :nth-child(4) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
}

@media (prefers-reduced-motion: reduce) {
  .route__step::before { transform: none; opacity: 1; transition: none; }
  .route__path path { animation: none !important; stroke-dashoffset: 0 !important; }
  .btn, .btn:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero__media, .hero__shade, .closing__media, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .band--dark, .band--deep, .page-head { background: #fff !important; color: #000 !important; }
}


/* ==========================================================================
   Header tools, language menu
   ========================================================================== */
.header-tools { display: flex; align-items: center; gap: .6rem; }
.site-header--overlay .header-tools { margin-inline-start: .5rem; }
.lang-app { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .3rem .8rem .3rem .35rem; border: 1px solid rgba(243, 246, 244, .35); border-radius: var(--radius-pill); background: rgba(11, 33, 23, .25); color: inherit; cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; letter-spacing: .04em; list-style: none; transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang.is-open .lang-btn { border-color: var(--gold-500); background: rgba(11, 33, 23, .5); }
.lang-btn:active { transform: scale(.97); }
.lang-btn__flag-wrap { display: inline-grid; place-items: center; perspective: 200px; }
.lang-btn__flag { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(243, 246, 244, .85), 0 4px 10px -4px rgba(11, 33, 23, .6); background: var(--sky-100); }
.lang.is-open .lang-btn__flag { animation: flag-flip .6s var(--ease-out); }
@keyframes flag-flip { from { transform: rotateY(90deg); } to { transform: none; } }

.lang-menu { position: absolute; top: calc(100% + .6rem); inset-inline-end: 0; z-index: 60; width: min(22rem, calc(100vw - 2 * var(--gutter))); background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lift), 0 0 0 1px rgba(11, 33, 23, .06); overflow: hidden; transform-origin: top right; }
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang-menu__search { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--sky-200); background: var(--sky-50); }
.lang-menu__search svg { width: 1.1rem; height: 1.1rem; stroke: var(--ink-muted); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.lang-menu__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); outline: none; caret-color: var(--heart-b); }
.lang-menu__search input::placeholder { color: #6b7d74; }
.lang-menu__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lang-menu__list { list-style: none; max-height: min(24rem, 60vh); overflow-y: auto; padding: .4rem; scrollbar-width: thin; }
.lang-menu__item a { display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: background-color .15s ease; }
.lang-menu__item img { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 33, 23, .12); }
.lang-menu__name { font-weight: 550; }
.lang-menu__en { font-size: .8rem; color: var(--ink-muted); }
.lang-menu__item.is-focus a, .lang-menu__item a:hover { background: var(--sky-100); }
.lang-menu__item.is-active a { background: var(--green-100); }
.lang-menu__item.is-active .lang-menu__name::after { content: " ✓"; color: var(--green-700); }
.lang-menu__none { padding: 1rem .7rem; color: var(--ink-muted); font-size: .95rem; }
.pop-enter-active { animation: pop-in .35s var(--ease-out); }
.pop-leave-active { animation: pop-in .18s ease reverse; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.94); } }
@media (prefers-reduced-motion: no-preference) {
  .pop-enter-active .lang-menu__item { animation: item-in .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 18ms + 60ms); }
  @keyframes item-in { from { opacity: 0; transform: translateX(6px); } }
}
@media (max-width: 48rem) {
  .lang-menu, .lang-static__list { position: fixed; top: 4.6rem; inset-inline: var(--gutter); width: auto; transform-origin: top center; }
  .lang-menu__list { max-height: min(24rem, calc(100vh - 12rem)); }
}
/* no-JS fallback */
.lang-static { position: relative; }
.lang-static__list { position: absolute; top: calc(100% + .6rem); inset-inline-end: 0; z-index: 60; width: 16rem; max-height: 60vh; overflow: auto; list-style: none; padding: .4rem; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.lang-static__list a { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--radius-sm); text-decoration: none; }
.lang-static__list a:hover, .lang-static__list a[aria-current] { background: var(--sky-100); }
.lang-static__list img { width: 1.25rem; height: 1.25rem; border-radius: 50%; }
.js .lang-static { display: none; }
.js.no-vue .lang-static { display: block; }
.js .lang-app:not(:has(.lang)) { min-width: 4.6rem; min-height: 2.6rem; }

/* ==========================================================================
   Header scroll state
   ========================================================================== */
.site-header { transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out); }
.site-header--overlay { position: fixed; inset: 0 0 auto 0; }
.site-header--overlay.is-scrolled { background: rgba(15, 45, 31, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 30px -20px rgba(11, 33, 23, .7); }
.is-page .site-header { position: sticky; top: 0; }
.is-page .site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(11, 33, 23, .7); }
.brand__mark { transition: transform .4s var(--ease-out); }
.site-header.is-scrolled .brand__mark { transform: scale(.88); }
body.nav-open .site-header { position: fixed !important; background: transparent !important; backdrop-filter: none !important; }

/* ==========================================================================
   Hero motion: slow drift, dawn, scroll-driven fade
   ========================================================================== */
.hero__dawn { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(11, 33, 23, .55), rgba(60, 30, 10, .35)); opacity: 0; }
.hero__pollen { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__picture { animation: drift 28s ease-in-out infinite alternate; transform-origin: 60% 45%; will-change: transform; }
  @keyframes drift { from { transform: scale(1) translateX(0); } to { transform: scale(1.07) translateX(-1.5%); } }
  .hero__dawn { animation: dawn 2.6s var(--ease-out) both; }
  @keyframes dawn { from { opacity: 1; } to { opacity: 0; } }
  .hero__inner > * { animation-delay: .5s; }
  .hero__inner > :nth-child(2) { animation-delay: .62s; }
  .hero__inner > :nth-child(3) { animation-delay: .72s; }
  .hero__inner > :nth-child(4) { animation-delay: .82s; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media { animation: hero-recede linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes hero-recede { to { transform: scale(1.06); filter: brightness(.55); } }
    .hero__inner { animation: hero-lift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes hero-lift { to { transform: translateY(-14vh); opacity: 0; } }
    .statement-band .statement { animation: statement-slide linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes statement-slide { from { transform: translateX(-2.5rem); } to { transform: translateX(2.5rem); } }
    [dir="rtl"] .statement-band .statement { animation-direction: reverse; }
    .closing__media img { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes rise-in { from { transform: translateY(12%) scale(1.08); } to { transform: none; } }
  }
}

/* ==========================================================================
   Ledger print + route pulse
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .ledger .ledger__row, .ledger .ledger__total, .ledger .ledger__foot { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  .ledger.is-printed .ledger__row, .ledger.is-printed .ledger__total, .ledger.is-printed .ledger__foot { opacity: 1; transform: none; }
  .ledger.is-printed .ledger__row:nth-child(1) { transition-delay: .1s; }
  .ledger.is-printed .ledger__row:nth-child(2) { transition-delay: .19s; }
  .ledger.is-printed .ledger__row:nth-child(3) { transition-delay: .28s; }
  .ledger.is-printed .ledger__row:nth-child(4) { transition-delay: .37s; }
  .ledger.is-printed .ledger__row:nth-child(5) { transition-delay: .46s; }
  .ledger.is-printed .ledger__total { transition-delay: .6s; }
  .ledger.is-printed .ledger__foot { transition-delay: .75s; }
  .route.is-drawn .route__step::before { animation: pulse .7s var(--ease-out) 1; }
  .route.is-drawn .route__step:nth-child(2)::before { animation-delay: .3s; }
  .route.is-drawn .route__step:nth-child(3)::before { animation-delay: .6s; }
  .route.is-drawn .route__step:nth-child(4)::before { animation-delay: .9s; }
  .route.is-drawn .route__step:nth-child(5)::before { animation-delay: 1.2s; }
  @keyframes pulse { 0% { box-shadow: var(--shadow-soft), 0 0 0 0 rgba(242, 177, 52, .6); } 100% { box-shadow: var(--shadow-soft), 0 0 0 18px rgba(242, 177, 52, 0); } }
}
.ledgers { display: grid; gap: 2rem; }
.ledger__row b, .ledger__total span:last-child { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Forms: Vue states, skeleton, transitions
   ========================================================================== */
.form-app { position: relative; }
.form-skeleton { display: none; }
.js .form-app:not(.is-mounted) .form--static { display: none; }
.js .form-app:not(.is-mounted) .form-skeleton { display: grid; gap: 1.5rem; }
.js.no-vue .form-app .form--static { display: grid; }
.js.no-vue .form-app .form-skeleton { display: none; }
.sk { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--sky-100) 0%, var(--sky-200) 40%, var(--sky-100) 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }
.sk--legend { width: 8rem; height: 1.6rem; margin-bottom: .5rem; }
.sk--label { width: 45%; height: .95rem; margin-bottom: .55rem; }
.sk--input { height: 3.1rem; }
.sk--textarea { height: 9rem; }
.sk--choices { height: 3.4rem; }
.sk--check { width: 70%; height: 1.2rem; }
.sk--button { width: 14rem; height: 3.75rem; border-radius: var(--radius-pill); }
.sk-field { display: grid; align-content: start; }
.sk-field--full, .field--full { grid-column: 1 / -1; }
.slide-enter-active, .slide-leave-active { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.slide-enter-from, .slide-leave-to { opacity: 0; transform: translateY(-4px); }
.unfold-enter-active { animation: unfold .6s var(--ease-out); }
@keyframes unfold { from { opacity: 0; transform: translateY(16px) scale(.98); clip-path: inset(0 0 100% 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
.form__success { position: relative; }
.form__success-icon { width: 3rem; height: 3rem; stroke: var(--gold-300); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: check .7s var(--ease-out) .3s forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.field__error--live { display: block; }
.choice.is-on { border-color: var(--green-700); background: color-mix(in srgb, var(--green-100) 60%, white); }
.btn--progress { position: relative; overflow: hidden; }
.btn--progress .btn__bar { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(255, 255, 255, .85); transform: scaleX(0); transform-origin: left; }
.btn--progress.is-sending .btn__bar { animation: bar 1.6s cubic-bezier(.3, .7, .4, 1) infinite; }
@keyframes bar { 0% { transform: scaleX(0); transform-origin: left; } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ==========================================================================
   Images: blur-up, framed figures, page heads with photo
   ========================================================================== */
img.blur-up { background-size: cover; background-position: center; filter: blur(14px); transform: scale(1.04); transition: filter .7s var(--ease-out), transform .9s var(--ease-out); }
img.blur-up.is-loaded { filter: blur(0); transform: none; }
.no-js img.blur-up, html:not(.js) img.blur-up { filter: none; transform: none; }
.figure-frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.figure-frame img { width: 100%; height: auto; display: block; }
.rail__figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.page-head--image { min-height: clamp(22rem, 50vh, 34rem); display: grid; align-items: end; }
.page-head__media { position: absolute; inset: 0; z-index: 0; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.page-head--image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(15, 45, 31, .96) 0%, rgba(15, 45, 31, .7) 40%, rgba(15, 45, 31, .25) 75%, rgba(15, 45, 31, .35) 100%); }
.page-head--image::after { display: none; }
.page-head--image .page-head__inner { z-index: 2; }
.empty__img { width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; box-shadow: var(--shadow-soft); }
.translated-note { padding: .8rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold-300) 45%, white); color: var(--gold-ink); font-size: .95rem; }

/* ==========================================================================
   Footer social
   ========================================================================== */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem .45rem .6rem; border: 1px solid rgba(243, 246, 244, .22); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink-on-dark); font-size: .9rem; font-weight: 550; transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.social a:hover { border-color: var(--gold-500); background: rgba(243, 246, 244, .06); transform: translateY(-2px); }
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .btn--primary:hover .btn__icon { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .btn__icon { transform: scaleX(-1); }
[dir="rtl"] .site-nav__list a:not(.btn)::after { transform-origin: right; }
[dir="rtl"] .route__step { padding-left: 0; padding-right: 4.5rem; }
[dir="rtl"] .route__step::before { left: auto; right: 0; }
[dir="rtl"] .route__step:not(:last-child)::after { left: auto; right: 1.55rem; }
[dir="rtl"] .ledger__row span:first-child::after { transform: translateY(-.3em); }
[dir="rtl"] .faq summary::after { transform: rotate(45deg) translateY(-.15rem); }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .notice { grid-template-columns: auto 1fr; }
[dir="rtl"] .lang-btn { padding: .3rem .35rem .3rem .8rem; }
[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .field select { background-position: left .9rem center; padding-right: .95rem; padding-left: 2.6rem; }
[dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] .prose td.num, [dir="rtl"] .prose th.num { text-align: left; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand, [dir="rtl"] .btn { letter-spacing: 0; }
[lang^="ja"] h1, [lang^="ja"] h2, [lang^="zh"] h1, [lang^="zh"] h2, [lang^="ko"] h1, [lang^="ko"] h2, [lang^="th"] h1, [lang^="th"] h2, [lang^="hi"] h1, [lang^="hi"] h2, [lang^="ar"] h1, [lang^="ar"] h2, [lang^="he"] h1, [lang^="he"] h2 { letter-spacing: 0; line-height: 1.2; }
[lang^="ja"] .hero__title, [lang^="zh"] .hero__title, [lang^="ko"] .hero__title, [lang^="th"] .hero__title, [lang^="hi"] .hero__title { font-size: clamp(2.2rem, 5.5vw, 4.5rem); max-width: 16ch; }

/* ==========================================================================
   Cross-document view transitions
   ========================================================================== */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .28s ease both; }
  ::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
  .site-header { view-transition-name: header; }
  ::view-transition-group(header) { animation-duration: .3s; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .sk { animation: none; }
  .hero__picture, .hero__dawn { animation: none; }
  .lang.is-open .lang-btn__flag { animation: none; }
}

/* ==========================================================================
   Campaigns
   ========================================================================== */
.campaigns { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .campaigns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .campaigns { grid-template-columns: repeat(3, 1fr); } }
.campaign { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.campaign:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.campaign__media { position: relative; aspect-ratio: 16 / 10; background: var(--green-900); }
.campaign__media img { width: 100%; height: 100%; object-fit: cover; }
.campaign__stamp { position: absolute; inset-inline-start: 1rem; top: 1rem; padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--gold-500); color: var(--green-950); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.campaign--funded .campaign__media img, .campaign--closed .campaign__media img { filter: saturate(.6); }
.campaign__body { display: grid; gap: .6rem; padding: 1.25rem 1.4rem 1.5rem; align-content: start; }
.campaign__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; color: var(--ink-muted); }
.campaign__verified { display: inline-flex; align-items: center; gap: .3rem; color: var(--green-700); font-weight: 650; }
.campaign__verified svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.campaign h3 { font-size: 1.35rem; }
.campaign__event { color: var(--gold-ink); font-weight: 600; font-size: .95rem; }
.campaign__story { color: var(--ink-muted); text-wrap: pretty; }
.campaign__goal { display: grid; gap: .4rem; margin-top: .25rem; font-size: .95rem; }
.campaign__goal strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; }
.campaign__bar { height: .5rem; border-radius: var(--radius-pill); background: var(--sky-200); overflow: hidden; }
.campaign__bar span { display: block; height: 100%; border-radius: inherit; background: var(--heart); transition: width 1.2s var(--ease-out); }
.campaign__covers { color: var(--ink-muted); font-size: .9rem; }
.campaign .actions { margin-top: .5rem; }
.campaign .btn__icon { width: 1em; height: 1em; }

/* ---------- Local currency ---------- */
.eur { white-space: nowrap; }
.eur-note { font-size: .82rem; color: var(--ink-on-dark-muted); max-width: 44rem; margin-top: .75rem; text-wrap: pretty; }
.band--dark .eur-note, .page-head .eur-note { color: var(--ink-on-dark-muted); }
.section .eur-note { color: var(--ink-muted); }
