/* Hope – nádej: site styles. Thesis: a child's line drawing, framed with calm and care.
   Derived from the client logo: black round-capped line on white paper, a sun, a little green tree.
   Grounds: paper (+ warm stone, archive off-white); night for the footer. Yellow only for support asks and suns. */

/* ---------- fonts (self-hosted, GDPR) ---------- */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    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: "Archivo";
    src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    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: "Archivo";
    src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: italic;
    font-display: swap;
    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: "Archivo";
    src: url("../fonts/archivo-latin-ext-wdth-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: italic;
    font-display: swap;
    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;
}

/* ---------- tokens ---------- */
:root {
    --paper: #FFFFFF;
    --paper-2: #F7F3EA;        /* warm stone: cards, menu */
    --line: #111111;
    --leaf: #1F9A3E;
    --leaf-ink: #17803A;       /* leaf for small text (AA on paper and off-white) */
    --sun: #FFD21F;
    --sun-deep: #F2C300;
    --sky: #FAF8F3;            /* archive ground: warm off-white */
    --muted: #3D3D3D;          /* secondary text on paper / cream / sky (AA) */
    --muted-night: #C8C8C8;    /* secondary text on the night footer (AA) */
    --hair-night: rgba(255, 255, 255, 0.22);
    --hair: rgba(17, 17, 17, 0.14);  /* quiet separators */

    --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --f-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

    /* line language: hairline outline (like the logo's thin strokes), soft low shadows, radius hierarchy */
    --bw: 1.5px;
    --shadow: 0 10px 30px -12px rgba(17, 17, 17, 0.25);
    --shadow-lift: 0 16px 36px -14px rgba(17, 17, 17, 0.32);
    --shadow-press: 0 6px 18px -10px rgba(17, 17, 17, 0.25);
    --r-sm: 10px;
    --r-md: 18px;
    --r-photo: 16px;
    --r-pill: 999px;

    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
    --s-7: 48px; --s-8: 72px; --s-9: 120px;

    --gutter: clamp(16px, 4vw, 56px);
    --wrap: 1400px;
    --sec: clamp(96px, 13.2vw, 192px);
    --header-h: 72px;

    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    --focus: var(--leaf);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--paper);
}
html.no-js { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--line);
    font-family: var(--f-text);
    font-weight: 400;
    font-stretch: 100%;
    font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
::selection { background: var(--sun); color: var(--line); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
.pill:focus-visible, .copy-inline:focus-visible { border-radius: var(--r-pill); }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; top: 8px; left: 8px; z-index: 100;
    background: var(--sun); color: var(--line);
    border: 0; box-shadow: var(--shadow);
    font: 600 0.9rem var(--f-display); padding: 10px 16px; border-radius: var(--r-pill);
    transform: translateY(-200%);
    text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.icon-sm { width: 1em; height: 1em; }

/* every section / footer hosts an absolutely positioned doodle slot (doodle.css) */
.hero, .about, .projects, .archive, .support, .site-footer { position: relative; }

/* ---------- section kicker: small leaf-green caps after a short hairline ---------- */
.label {
    display: inline-flex; align-items: center; gap: 0.9em;
    justify-self: start; align-self: start; width: fit-content;
    font-family: var(--f-display);
    font-weight: 600;
    font-stretch: 100%;
    font-size: 0.76rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--leaf-ink);
    padding: 0.1em 0;
}
.label::before {
    content: ""; flex: none;
    width: 28px; height: 1px;
    background: currentColor;
}

/* ---------- a small, quiet drawn wave under every section title (draws in on reveal) ---------- */
.squiggle {
    display: block; width: 72px; height: auto; overflow: visible;
    margin-top: 2px;
}
.squiggle path { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- pills ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 0.6em;
    border-radius: var(--r-pill); border: var(--bw) solid var(--line);
    box-shadow: none;
    font-family: var(--f-display); font-weight: 600; font-stretch: 100%;
    font-size: 0.95rem; line-height: 1; letter-spacing: 0.005em;
    padding: 0.9em 1.6em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
                translate 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.pill .icon { transition: transform 0.3s var(--ease-out); }
/* hover: a slight lift; active: it settles */
.pill:hover { translate: 0 -2px; box-shadow: var(--shadow); }
.pill:active { translate: 0 0; box-shadow: var(--shadow-press); transition-duration: 0.08s; }
.pill-yellow { background: var(--sun); color: var(--line); border-color: var(--sun); }
.pill-yellow:hover { background: var(--sun-deep); border-color: var(--sun-deep); }
.pill-yellow:hover .icon { transform: translate(0.06em, 0.06em); }
.pill-line { background: var(--paper); color: var(--line); }
.pill-line:hover { background: var(--paper-2); }
.pill-sm { font-size: 0.85rem; padding: 0.7em 1.2em; }
.pill-sm:hover { translate: 0 -1px; box-shadow: var(--shadow-press); }
.pill-sm:active { translate: 0 0; box-shadow: none; }
.pill-lg { font-size: 1.05rem; padding: 1em 1.85em; }
.pill-xl {
    font-size: clamp(1.3rem, 1rem + 1.6vw, 2.25rem);
    padding: 0.8em 1.3em 0.8em 1.5em;
    font-weight: 600; letter-spacing: -0.01em;
}
.pill-xl:hover .icon { transform: translate(0.1em, -0.1em); }

/* ---------- header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    --hdr-bg: var(--paper);
    color: var(--line);
    background: var(--hdr-bg); /* solid on every ground, so the logo never sits on a photo */
    transition: background-color 0.3s var(--ease-std), color 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}
.no-js .site-header { position: absolute; }
.site-header[data-on="sky"] { --hdr-bg: var(--sky); }
.site-header[data-on="night"] { --hdr-bg: var(--line); color: var(--paper); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--hair); }
.site-header.is-scrolled[data-on="night"] { box-shadow: 0 1px 0 var(--hair-night); }
.site-header-inner {
    height: var(--header-h);
    padding-inline: var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.site-header-tools { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 22px); }

.wordmark { display: inline-flex; align-items: center; text-decoration: none; color: inherit; border-radius: 50%; }
.wordmark .logo { display: block; height: 56px; width: calc(56px * 846 / 790); }
.wordmark:hover .logo-tree { transform: rotate(-3deg); }

/* the logo drawing (inline SVG from assets/brand/logo.svg) */
.logo { overflow: visible; color: inherit; }
.logo .ln { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.logo .tx { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; fill: currentColor; }
.logo .logo-eyes circle { fill: currentColor; }
.logo .logo-tree { fill: var(--leaf); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.6s var(--ease-out); }

.lang-switch {
    font-family: var(--f-display); font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.08em; text-decoration: none; padding: 6px 2px;
    box-shadow: inset 0 -1.5px 0 var(--leaf);
    transition: box-shadow 0.25s var(--ease-out);
}
.lang-switch:hover { box-shadow: inset 0 -3px 0 var(--leaf); }

.menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 8px 2px; cursor: pointer; color: inherit;
    font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
}
.no-js .menu-btn { display: none; }
.menu-btn-lines { position: relative; width: 24px; height: 14px; display: block; }
.menu-btn-lines i {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-btn-lines i:first-child { top: 0; }
.menu-btn-lines i:last-child { top: 11px; width: 70%; }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines i:last-child { top: 6px; width: 100%; transform: rotate(-45deg); }
.site-header.menu-open,
.site-header.menu-open[data-on] { --hdr-bg: transparent; color: var(--line); background: transparent; box-shadow: none; }

@media (max-width: 599px) {
    :root { --header-h: 64px; }
    .menu-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .wordmark .logo { height: 44px; width: calc(44px * 846 / 790); }
    .site-header .pill-sm { padding: 0.6em 0.85em; font-size: 0.8rem; }
}

/* ---------- menu overlay ---------- */
.menu { background: var(--paper-2); color: var(--line); }
.js .menu {
    position: fixed; inset: 0; z-index: 40;
    visibility: hidden;
    clip-path: circle(0px at 100% 0);
    overflow-y: auto;
}
.js .menu.is-open { visibility: visible; }
.menu-inner {
    min-height: 100%;
    padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-7);
    display: flex; flex-direction: column; justify-content: center; gap: var(--s-7);
    width: min(100%, var(--wrap)); margin-inline: auto;
}
.menu-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.menu-item { border-bottom: 1px solid var(--hair); }
.menu-link {
    display: flex; align-items: baseline; gap: 0.5em;
    padding: 0.16em 0; text-decoration: none; color: inherit;
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(1.6rem, min(1rem + 5vw, 7.5vh), 5.25rem); line-height: 1.12; letter-spacing: -0.02em;
    transition: font-stretch 0.45s var(--ease-out), color 0.18s var(--ease-out), opacity 0.35s var(--ease-std);
}
.menu-link:hover, .menu-link:focus-visible { font-stretch: 106%; }
.menu-num {
    font-size: 0.28em; font-weight: 500; letter-spacing: 0.08em;
    color: var(--muted); min-width: 2.6em; font-variant-numeric: tabular-nums;
}
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.menu-lang {
    display: inline-flex; align-items: center; gap: 0.4em; text-decoration: none;
    font-family: var(--f-display); font-weight: 600; font-size: 0.95rem;
    padding: 0.6em 0; box-shadow: inset 0 -1.5px 0 var(--leaf);
}
.menu-lang:hover { box-shadow: inset 0 -3px 0 var(--leaf); }
.menu-hint { width: 100%; font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); }
.no-js .menu-hint { display: none; }
.no-js .menu { padding-top: var(--header-h); border-bottom: 1px solid var(--hair); }
.no-js .menu-inner { min-height: 0; padding-top: var(--s-4); padding-bottom: var(--s-4); gap: var(--s-4); }
.no-js .menu-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); border: 0; }
.no-js .menu-item { border: 0; }
.no-js .menu-link { font-size: 1rem; font-weight: 600; }
.no-js .menu-foot { display: none; }
.no-js .menu-num { display: none; }
.no-js [data-copy] { display: none; }
/* menu spotlight: the link under the pointer (or keyboard focus) stays, the rest step back */
@media (hover: hover) {
    .menu-list:hover .menu-link:not(:hover) { opacity: 0.35; }
}
.menu-list:has(.menu-link:focus-visible) .menu-link:not(:focus-visible) { opacity: 0.35; }

/* ---------- hero: big logo + polaroid collage + text ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "logo" "content" "collage";
    row-gap: clamp(24px, 6vw, 40px);
    padding: calc(var(--header-h) + 16px) var(--gutter) clamp(48px, 8vw, 72px);
    background: var(--paper); color: var(--line);
    overflow: clip;
    isolation: isolate;
}
.hero-logo { grid-area: logo; width: min(70vw, 360px); justify-self: start; margin-left: -1.5vw; }
.hero-logo .logo { display: block; width: 100%; height: auto; }
.js:not(.reduce):not(.reveal-all) [data-hero-logo]:not(.is-ready) { opacity: 0; }

/* rays breathe very slowly, barely perceptible, each around its own box */
.logo-hero .logo-rays path {
    transform-box: fill-box; transform-origin: 50% 100%;
    animation: ray-breathe 7s ease-in-out infinite alternate;
}
.logo-hero .logo-rays path:nth-child(even) { animation-delay: -3.5s; }
@keyframes ray-breathe {
    from { transform: rotate(-1deg); }
    to { transform: rotate(1deg); }
}
.logo-hero .logo-eyes circle { will-change: transform; }

.hero-content { grid-area: content; position: relative; z-index: 2; max-width: 40rem; }
.hero-title {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(3rem, 1.4rem + 5.4vw, 6.75rem);
    line-height: 1; letter-spacing: -0.02em;
    max-width: 10ch;
}
.hero-lead {
    margin-top: var(--s-5);
    font-weight: 400;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.6;
    max-width: 36ch; color: var(--line);
}
.hero-actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); }
/* the current fundraiser: a real face next to the main ask */
.hero-current {
    display: inline-flex; align-items: center; gap: var(--s-3);
    font-family: var(--f-display); font-size: 0.95rem; text-decoration: none;
    padding: 5px 22px 5px 5px; border-radius: var(--r-pill);
    background: var(--paper); border: var(--bw) solid var(--line); box-shadow: none;
    transition: translate 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.hero-current:hover { translate: 0 -2px; box-shadow: var(--shadow); }
.hero-current:active { translate: 0 0; box-shadow: var(--shadow-press); }
.hero-current-thumb {
    flex: none; width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
    background: var(--paper-2);
}
.hero-current-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; scale: 1.7; transform-origin: 50% 74%; }
.hero-current-text { display: grid; gap: 2px; line-height: 1.2; }
.hero-current-prefix { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.hero-current-title { font-weight: 600; display: inline-flex; align-items: center; gap: 0.4em; }
.hero-current-title .icon { transition: transform 0.25s var(--ease-out); }
.hero-current:hover .hero-current-title .icon { transform: translateX(3px); }

/* hero photos: frameless, softly rounded, a low soft shadow, scattered with barely-there rotations */
.hero-collage {
    grid-area: collage; position: relative;
    aspect-ratio: 20 / 17;
    container-type: inline-size;
}
.polaroid {
    position: absolute; z-index: 1;
    width: 40cqw;
    overflow: hidden;
    background: var(--paper-2);
    border-radius: var(--r-photo);
    box-shadow: var(--shadow);
    rotate: var(--rot, 0deg);
    transition: rotate 0.35s var(--ease-out), translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.polaroid:hover { rotate: 0deg; translate: 0 -3px; box-shadow: var(--shadow-lift); z-index: 3; }
.js .hero-slot { opacity: 0; }

/* phones: a loose two-row stack under the CTA */
.hero-slot-1 { left: 0%;   top: 3%;  --rot: -1.2deg; }
.hero-slot-2 { left: 30%;  top: 10%; --rot: 0.8deg; z-index: 2; }
.hero-slot-3 { left: 60%;  top: 1%;  --rot: -0.5deg; }
.hero-slot-4 { left: 1%;   top: 50%; --rot: 0.6deg; }
.hero-slot-5 { left: 31%;  top: 55%; --rot: -1.5deg; z-index: 2; }
.hero-slot-6 { left: 60%;  top: 46%; --rot: 1.2deg; }
.hero-slot-7, .hero-slot-8, .hero-slot-9, .hero-slot-10, .hero-slot-11, .hero-slot-12 { display: none; }

@media (min-width: 600px) and (max-width: 899px) {
    .hero-logo { width: min(52vw, 360px); }
    .hero-collage { aspect-ratio: 2 / 1; }
    .polaroid { width: 32cqw; }
}

@media (min-width: 900px) {
    .hero {
        min-height: 100svh;
        grid-template-columns: minmax(0, 1fr) min(40vw, 540px, calc((100svh - var(--header-h) - 120px) * 1.07));
        grid-template-rows: minmax(200px, 1fr) auto;
        grid-template-areas: "collage logo" "content logo";
        column-gap: clamp(24px, 4vw, 72px);
        row-gap: clamp(16px, 3vh, 32px);
        padding: calc(var(--header-h) + clamp(20px, 4vh, 40px)) var(--gutter) clamp(40px, 7vh, 72px);
    }
    /* bottom-aligned, so the top-right corner stays calm */
    .hero-logo { width: 100%; align-self: end; justify-self: end; margin: 0; }
    .hero-content { align-self: end; }
    .hero-collage { aspect-ratio: auto; min-height: 220px; container-type: normal; }
    /* two staggered rows: sized by viewport so they always fit above the title */
    .polaroid { width: min(12vw, 19svh); }
    .hero-slot-1 { left: -1%; top: 2%;  --rot: -1.2deg; }
    .hero-slot-2 { left: 14%; top: 32%; --rot: 0.8deg; z-index: 2; }
    .hero-slot-3 { left: 33%; top: 0%;  --rot: -0.5deg; }
    .hero-slot-4 { left: 49%; top: 30%; --rot: 1.5deg; z-index: 2; }
    .hero-slot-5 { left: 66%; top: 4%;  --rot: -1deg; }
    .hero-slot-6 { left: 80%; top: 34%; --rot: 0.6deg; z-index: 2; }
}

.js [data-hero-reveal] { opacity: 0; }
.js:not(.reduce):not(.reveal-all) [data-hero-title]:not(.is-split) { opacity: 0; }

/* split words (JS adds .w/.wi spans) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.06em 0.14em 0; margin: -0.08em -0.06em -0.14em 0; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] { opacity: 0; }
.js [data-split].is-split { opacity: 1; }
.js [data-reveal] { opacity: 0; }

/* ---------- shared section bits ---------- */
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(48px, 7vw, 96px); align-items: start; }
@media (min-width: 900px) {
    .section-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
    .section-head .squiggle, .about-head .squiggle, .support-head .squiggle { grid-column: 2; }
}
.section-title {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(2rem, 1.2rem + 3.2vw, 4.5rem); line-height: 1.06; letter-spacing: -0.02em;
    max-width: 18ch;
}

/* ---------- about ---------- */
.about { background: var(--paper); color: var(--line); padding-block: var(--sec); }
.about-head { display: grid; gap: var(--s-4); }
.about-title {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(1.9rem, 1rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em;
}
.about-statement {
    margin-top: var(--s-7);
    font-family: var(--f-display); font-weight: 400; font-stretch: 100%;
    font-size: clamp(1.4rem, 1rem + 1.9vw, 2.75rem); line-height: 1.32; letter-spacing: -0.01em;
    max-width: 30ch;
}
@media (min-width: 900px) {
    .about-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
    .about-statement { margin-left: calc((100% - var(--s-4)) * 3 / 12 + var(--s-4)); }
}
.areas { margin-top: clamp(80px, 11vw, 144px); }
.areas-label { margin-bottom: var(--s-6); }
.areas-list { list-style: none; padding: 0; border-top: var(--bw) solid var(--line); }
.area {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); row-gap: var(--s-2);
    padding: var(--s-6) 0; border-bottom: 1px solid var(--hair); align-items: center;
}
.area:last-child { border-bottom: var(--bw) solid var(--line); }
/* a thin, precise circle around a quiet numeral */
.area-num {
    grid-row: 1 / 3;
    display: inline-grid; place-items: center;
    width: clamp(52px, 5vw, 68px); aspect-ratio: 1;
    border: var(--bw) solid var(--line); border-radius: 50%;
    font-family: var(--f-display); font-weight: 500; font-stretch: 100%;
    font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem); line-height: 1; letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
.area-num-text { position: relative; }
.area-title {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(1.25rem, 1rem + 0.9vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em;
}
.area-text { font-size: 1.05rem; line-height: 1.6; color: var(--muted); max-width: 42ch; }
@media (min-width: 900px) {
    .area { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); padding: var(--s-6) 0; }
    .area-num { grid-row: auto; }
}
.about-closing {
    margin-top: clamp(64px, 9vw, 120px);
    font-family: var(--f-display); font-style: italic; font-weight: 500; font-stretch: 100%;
    font-size: clamp(1.4rem, 1rem + 1.5vw, 2.3rem); line-height: 1.3;
    max-width: 22ch; color: var(--line);
}
@media (min-width: 900px) {
    /* starts on the .area-text column: 3fr + 4fr of a 3/4/5 grid with two var(--s-5) gaps */
    .about-closing { margin-left: calc((100% - 2 * var(--s-5)) * 7 / 12 + 2 * var(--s-5)); }
}

/* ---------- projects ---------- */
.projects { background: var(--paper); color: var(--line); padding-block: 0 var(--sec); }
.projects > .wrap { padding-top: clamp(24px, 3vw, 40px); }
.projects-empty { display: grid; gap: var(--s-5); justify-items: start; font-size: 1.2rem; max-width: 40ch; }
.project { display: grid; gap: var(--s-7); margin-top: var(--s-6); }
.project + .project { margin-top: var(--sec); padding-top: var(--sec); border-top: 1px solid var(--hair); }
@media (min-width: 1000px) {
    .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
    .project-body { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
.project-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
/* photos: full colour, softly rounded, straight; hover lifts a touch */
.project-photo {
    overflow: hidden; border-radius: var(--r-photo); background: var(--paper-2);
    box-shadow: var(--shadow);
    transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.project-photo:hover { translate: 0 -3px; box-shadow: var(--shadow-lift); }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.js:not(.reduce) [data-parallax] img { scale: 1.12; }
.project-photo-main { grid-column: 1 / 5; aspect-ratio: 4 / 5; }
.project-photo-side-1 { grid-column: 5 / 7; aspect-ratio: 3 / 4; align-self: end; margin-top: 35%; }
.project-photo-side-2 { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
.project-photo-side-3 { grid-column: 3 / 7; aspect-ratio: 16 / 9; }
.project-title {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(2.1rem, 1.2rem + 2.8vw, 4rem); line-height: 1.05; letter-spacing: -0.02em;
}
.project-subtitle {
    margin-top: var(--s-4);
    font-family: var(--f-display); font-weight: 400; font-style: italic;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.35; color: var(--muted);
}
.project-copy { margin-top: var(--s-6); font-size: 1.08rem; line-height: 1.6; max-width: 46ch; }
.project-copy p + p { margin-top: 1em; }
.project-account { margin-top: var(--s-6); }

/* ---------- fundraiser progress: real numbers from the transparent account ---------- */
.fund { margin-top: var(--s-6); max-width: 560px; }
.fund-figures { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.fund-raised {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(2.4rem, 1.7rem + 2.8vw, 3.9rem); line-height: 0.95; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.fund-goal { font-size: 1.02rem; font-weight: 400; color: var(--muted); }
.fund-bar {
    position: relative; margin-top: var(--s-4); height: 12px; border-radius: var(--r-pill); overflow: hidden;
    background: var(--paper); border: var(--bw) solid var(--line);
}
.fund-bar-fill {
    position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: inherit;
    background: var(--leaf);
    transform-origin: 0 50%;
}
.fund-meta {
    margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4);
    font-family: var(--f-display); font-size: 0.88rem; color: var(--muted);
}
.fund-pct { font-weight: 700; color: var(--line); font-variant-numeric: tabular-nums; }

.account-statement {
    margin-top: var(--s-4); display: inline-flex; align-items: center; gap: 0.4em;
    font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; text-decoration: none;
    padding: 0.3em 0; box-shadow: inset 0 -1.5px 0 var(--leaf);
    transition: box-shadow 0.25s var(--ease-out);
}
.account-statement:hover { box-shadow: inset 0 -3px 0 var(--leaf); }
.account-statement .icon { transition: transform 0.25s var(--ease-out); }
.account-statement:hover .icon { transform: translate(2px, -2px); }

/* ---------- account block: a warm stone card with a hairline ---------- */
.account {
    background: var(--paper-2);
    border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: none;
    padding: clamp(24px, 3.4vw, 40px);
    display: grid; gap: var(--s-5); align-items: start;
}
.project-account, .support-transfer { container-type: inline-size; container-name: account; }
.project-account { padding: 0; }
@container account (min-width: 600px) { .account { grid-template-columns: minmax(0, 1fr) auto; } }
.account-iban {
    margin-top: var(--s-3);
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(1.25rem, 0.9rem + 1.1vw, 1.65rem); line-height: 1.2; letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
@container account (max-width: 540px) { .account-iban { white-space: normal; } }
.account-note { margin-top: var(--s-3); font-size: 1rem; line-height: 1.45; }
.account-note-label { color: var(--muted); }
.account-note-label::after { content: ": "; }
.account-note-value { font-family: var(--f-display); font-weight: 600; }
.account-actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.account-hint { font-size: 0.92rem; line-height: 1.45; color: var(--muted); max-width: 30ch; }
.account-qr { display: none; }
.account-qr.is-ready { display: block; width: 148px; }
.qr {
    width: 148px; height: 148px; color: var(--line); background: var(--paper);
    border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 6px;
}
.qr svg { width: 100%; height: 100%; display: block; }
.qr-caption { margin-top: var(--s-3); font-family: var(--f-display); font-size: 0.78rem; line-height: 1.35; color: var(--muted); }
.qr-caption-title { display: block; font-weight: 600; color: var(--line); }
/* phones: you cannot scan your own screen, so copying the IBAN is the main action, QR is secondary */
@container account (max-width: 599px) {
    .account-actions { display: grid; gap: var(--s-4); }
    .account-actions .pill { width: 100%; justify-content: center; padding-block: 1em; font-size: 1rem; }
    .account-hint { max-width: none; }
    .account-qr.is-ready {
        width: auto; display: flex; align-items: center; gap: var(--s-4);
        border-top: 1px solid var(--hair); padding-top: var(--s-4);
    }
    .account-qr .qr { width: 96px; height: 96px; flex: none; padding: 4px; }
    .account-qr .qr-caption { margin-top: 0; }
}

[data-copy] .icon-check { display: none; }
[data-copy].is-copied .icon-copy { display: none; }
[data-copy].is-copied .icon-check { display: block; }
.pill-line.is-copied { background: var(--leaf); color: var(--line); }

/* ---------- archive: warm off-white ground, hairline year numerals, quiet rows ---------- */
.archive { background: var(--sky); color: var(--line); padding-block: var(--sec); }
.archive-empty { font-size: 1.2rem; color: var(--muted); }
.year + .year { margin-top: clamp(88px, 12vw, 168px); }
.year-head {
    position: relative; overflow: clip;
    display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5);
    padding: 0 0 var(--s-5) 4px; margin-bottom: var(--s-5);
}
.year-num {
    font-family: var(--f-display); font-weight: 600; font-stretch: 62%;
    font-size: clamp(6rem, 27vw, 22rem); line-height: 0.86; letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: transparent;
    -webkit-text-stroke: var(--bw) var(--line);
    padding-right: 10px;
}
.year-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.year-count {
    font-family: var(--f-display); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.02em; white-space: nowrap;
    background: var(--paper); border: var(--bw) solid var(--line); border-radius: var(--r-pill);
    padding: 0.4em 1em; margin-bottom: 0.6em;
}
.rows { list-style: none; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 18px); }
.row {
    background: var(--paper);
    border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: none;
    transition: box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.row:hover { box-shadow: var(--shadow); border-color: transparent; }
.row-details { display: block; }
.row-summary {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
    padding: var(--s-3); cursor: pointer; list-style: none; border-radius: calc(var(--r-md) - 1px);
}
.row-summary::-webkit-details-marker { display: none; }
.row-summary::marker { content: ""; }
@media (min-width: 700px) { .row-summary { grid-template-columns: 160px minmax(0, 1fr) auto; gap: var(--s-6); padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); } }
.row-thumb {
    width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2);
}
@media (min-width: 700px) { .row-thumb { width: 160px; height: 112px; } }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.row-summary:hover .row-thumb img { scale: 1.04; }
.row-title {
    display: block; font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(1.15rem, 1rem + 0.9vw, 1.8rem); line-height: 1.18; letter-spacing: -0.015em;
}
.row-subtitle { display: block; margin-top: var(--s-2); font-size: 1rem; line-height: 1.5; color: var(--muted); }
.row-open {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; white-space: nowrap;
    border: var(--bw) solid var(--line); border-radius: var(--r-pill); padding: 0.5em 0.95em;
    background: var(--paper);
    transition: background-color 0.25s var(--ease-out);
}
.row-open .icon { transition: transform 0.35s var(--ease-out); }
.row-details[open] .row-open .icon { transform: rotate(180deg); }
.row-summary:hover .row-open { background: var(--paper-2); }
.row-details[open] .row-open-label.is-closed, .row-details:not([open]) .row-open-label.is-open { display: none; }
@media (max-width: 699px) { .row-open-label { display: none; } .row-open { padding: 0.45em; } }
.row-panel { display: grid; gap: var(--s-5); padding: var(--s-2) var(--s-3) var(--s-5); border-top: 1px solid var(--hair); padding-top: var(--s-5); margin-inline: var(--s-3); padding-inline: 0; }
@media (min-width: 700px) { .row-panel { margin-left: calc(160px + var(--s-6) + var(--s-4)); margin-right: var(--s-5); } }
.row-copy { font-size: 1.05rem; line-height: 1.6; max-width: 52ch; }
.row-copy p + p { margin-top: 1em; }
.strip {
    display: flex; gap: var(--s-5); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding: 6px 4px 22px;
    scrollbar-width: thin; scrollbar-color: var(--hair) transparent;
}
.strip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.strip-item {
    flex: 0 0 auto; width: min(64vw, 340px); aspect-ratio: 4 / 3;
    border-radius: var(--r-photo); overflow: hidden; scroll-snap-align: start; background: var(--paper-2);
    box-shadow: var(--shadow-press);
    transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.strip-item:hover { translate: 0 -2px; box-shadow: var(--shadow); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- support ---------- */
.support { background: var(--paper); color: var(--line); padding-block: var(--sec); overflow: clip; }
.support-head { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .support-head { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } .support-text { grid-column: 2; } }
.support-title {
    font-family: var(--f-display); font-weight: 700; font-stretch: 100%;
    font-size: clamp(3rem, 1.5rem + 6.6vw, 9rem); line-height: 1; letter-spacing: -0.02em;
}
.support-text { margin-top: var(--s-4); font-weight: 400; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.6; max-width: 38ch; }
.support-cta {
    position: relative; isolation: isolate;
    margin-top: clamp(72px, 9.6vw, 124px); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4);
}
@media (min-width: 900px) { .support-cta { margin-left: calc((100% - var(--s-4)) * 3 / 12 + var(--s-4)); } }
.support-cta-note { font-family: var(--f-display); font-size: 0.88rem; font-weight: 400; color: var(--muted); }
/* a small, still sun rising behind the top-left of the yellow pill */
.cta-sun {
    position: absolute; z-index: -1; pointer-events: none;
    left: clamp(-22px, -1.6vw, -14px); top: clamp(-34px, -2.6vw, -26px);
    width: clamp(52px, 4.4vw, 68px); height: auto; overflow: visible;
}
.cta-sun circle { fill: var(--sun); stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cta-sun-rays path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.support-transfer { margin-top: clamp(56px, 7.2vw, 96px); }
@media (min-width: 900px) { .support-transfer { margin-left: calc((100% - var(--s-4)) * 3 / 12 + var(--s-4)); } }
.support-or { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--line); margin-bottom: var(--s-5); }
.support-transfer .account { max-width: 820px; }

/* ---------- footer: night ---------- */
.site-footer {
    background: var(--line); color: var(--paper);
    --focus: var(--leaf);
    /* bottom padding leaves a ~160px calm strip for the doodle drawn along the bottom edge */
    padding: clamp(88px, 10.8vw, 144px) 0 calc(var(--s-6) + 168px);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5); padding-bottom: var(--s-7); border-bottom: 1px solid var(--hair-night); }
.footer-brand .wordmark { color: var(--paper); }
.footer-brand .wordmark .logo { width: clamp(132px, 13vw, 180px); height: auto; }
.footer-org { margin-top: var(--s-4); font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; color: var(--muted-night); }
.site-footer .pill:hover { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.site-footer .pill:active { box-shadow: none; }
.footer-grid { display: grid; gap: var(--s-6) var(--s-5); padding: var(--s-7) 0; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; } }
.footer-cell dt {
    font-family: var(--f-display); font-weight: 600; font-size: 0.72rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-night); margin-bottom: var(--s-2);
}
.footer-cell dd { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.footer-cell dd + dt { margin-top: var(--s-5); }
.footer-link { text-decoration: none; box-shadow: inset 0 -1.5px 0 var(--leaf); transition: box-shadow 0.25s var(--ease-out); }
.footer-link:hover { box-shadow: inset 0 -3px 0 var(--leaf); }
.footer-iban { display: block; font-family: var(--f-display); font-weight: 600; font-stretch: 100%; font-size: 1.05rem; letter-spacing: 0.01em; }
.copy-inline {
    margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--hair-night); border-radius: var(--r-pill); padding: 4px 12px; cursor: pointer;
    font-family: var(--f-display); font-weight: 500; font-size: 0.85rem; color: var(--muted-night);
    transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.copy-inline:hover, .copy-inline.is-copied { color: var(--paper); border-color: var(--paper); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4) var(--s-6);
    border-top: 1px solid var(--hair-night); padding-top: var(--s-5);
    font-family: var(--f-display); font-size: 0.85rem; color: var(--muted-night);
}
.footer-lang { display: flex; gap: var(--s-4); }
.footer-lang a { text-decoration: none; padding: 4px 0; }
.footer-lang a:hover, .footer-lang a[aria-current] { color: var(--paper); }
.footer-lang a[aria-current] { box-shadow: inset 0 -1.5px 0 var(--leaf); }
.footer-top-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 4px 0; transition: color 0.18s var(--ease-out); }
.footer-top-link:hover { color: var(--paper); }

/* Fundraiser: the cover photo is the progress. Grey base, the raised share in colour, a green edge with a little sun. */
.project-photo-main.has-fund { position: relative; }
.project-photo-main.has-fund > img:first-child { filter: grayscale(1) brightness(0.95); }
.fund-color {
    position: absolute; inset: 0;
    clip-path: inset(0 calc(100% - var(--pct, 0%)) 0 0);
}
.fund-edge {
    position: absolute; top: 0; bottom: 0; left: var(--pct, 0%); width: 2px; margin-left: -1px;
    background: var(--leaf);
}
.fund-edge::after {
    content: ""; position: absolute; left: 50%; top: 18px; width: 16px; height: 16px; translate: -50% 0;
    border-radius: 50%; background: var(--sun); border: var(--bw) solid var(--line);
}

/* ---------- mobile donate dock: thumb-reach ask, hidden where the ask is already on screen ---------- */
.dock { display: none; }
@media (max-width: 699px) {
    .js .dock {
        display: block; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
        padding: var(--s-3) calc(var(--gutter) + 5px) calc(var(--s-4) + env(safe-area-inset-bottom)) var(--gutter);
        pointer-events: none; visibility: hidden;
        translate: 0 130%; transition: translate 0.45s var(--ease-out), visibility 0s linear 0.45s;
    }
    .js .dock.is-on { visibility: visible; translate: 0 0; transition: translate 0.45s var(--ease-out), visibility 0s; }
    .dock-pill {
        pointer-events: auto; width: 100%; justify-content: center; gap: 0.5em;
        padding-block: 1em; font-size: 1.02rem;
        box-shadow: 0 12px 32px -12px rgba(17, 17, 17, 0.35);
    }
    /* one ask at a time: the header pill steps back while the dock is up
       (it sits first on phones so the gap it leaves is on the left, not between EN and Menu) */
    .js .site-header .pill-yellow { order: -1; }
    .site-header .pill-yellow { transition: opacity 0.3s var(--ease-std), visibility 0s linear 0.3s, translate 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out); }
    html.dock-on .site-header:not(.menu-open) .pill-yellow { opacity: 0; visibility: hidden; }
}

/* ---------- reduced motion: final states, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
    html.no-js { scroll-behavior: auto; }
    .js .hero-slot, .js [data-hero-reveal], .js [data-split], .js [data-reveal], .js [data-hero-logo] { opacity: 1; }
    .js [data-parallax] img { scale: 1; }
    .logo-hero .logo-rays path { animation: none !important; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
html.reduce .logo-hero .logo-rays path { animation: none !important; }
html.reduce .hero-slot, html.reduce [data-hero-reveal], html.reduce [data-split], html.reduce [data-reveal], html.reduce [data-hero-logo] { opacity: 1; }
/* head.js: site.js did not boot within 4 s (slow network) -> show everything, keep the layout */
html.reveal-all .hero-slot, html.reveal-all [data-hero-reveal], html.reveal-all [data-hero-title],
html.reveal-all [data-split], html.reveal-all [data-reveal], html.reveal-all [data-hero-logo] { opacity: 1; }
