:root {
    color-scheme: light;
    --bg: #f7f1e7;
    --bg-deep: #eee3d2;
    --surface: rgba(255, 252, 245, .88);
    --surface-solid: #fffaf1;
    --surface-soft: #f1e7d7;
    --text: #292821;
    --muted: #71695e;
    --line: #d8cab7;
    --line-strong: #b9a78e;
    --green: #4d5f3b;
    --green-dark: #344329;
    --green-soft: #dfe5d3;
    --terracotta: #b76545;
    --terracotta-dark: #8f4932;
    --terracotta-soft: #eed2c2;
    --gold: #b89758;
    --danger: #9f473a;
    --feature-bg: #344329;
    --feature-text: #fff8eb;
    --feature-muted: #ded5c6;
    --feature-warm-bg: #8f4932;
    --feature-warm-text: #fff8eb;
    --feature-warm-muted: #f0d7c8;
    --badge-bg: #344329;
    --badge-text: #ffffff;
    --footer-bg: #2a3424;
    --footer-text: #f3eadb;
    --footer-muted: #c9bda9;
    --shadow: 0 18px 50px rgba(74, 56, 34, .10);
    --shadow-small: 0 8px 24px rgba(74, 56, 34, .08);
    --radius: 28px;
    --radius-small: 17px;
    --shell: min(1180px, calc(100% - 40px));
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-resolved-theme="dark"] {
    color-scheme: dark;
    --bg: #151812;
    --bg-deep: #0f120d;
    --surface: rgba(28, 31, 23, .90);
    --surface-solid: #1d2118;
    --surface-soft: #252a1f;
    --text: #f2eadc;
    --muted: #b9afa1;
    --line: #3e4435;
    --line-strong: #59604b;
    --green: #9cad74;
    --green-dark: #c4d39b;
    --green-soft: #293223;
    --terracotta: #d88360;
    --terracotta-dark: #efaa86;
    --terracotta-soft: #422b22;
    --gold: #d5b879;
    --danger: #e28b7b;
    --feature-bg: #242b20;
    --feature-text: #f4ecdf;
    --feature-muted: #c5bcad;
    --feature-warm-bg: #3a241d;
    --feature-warm-text: #f4ecdf;
    --feature-warm-muted: #d5b8a7;
    --badge-bg: #3d4a31;
    --badge-text: #f8f1e5;
    --footer-bg: #10140e;
    --footer-text: #f3eadb;
    --footer-muted: #b9af9f;
    --shadow: 0 20px 60px rgba(0, 0, 0, .30);
    --shadow-small: 0 10px 28px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
      radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--terracotta-soft) 34%, transparent) 0 2px, transparent 3px),
      radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--green-soft) 32%, transparent) 0 1px, transparent 2px),
      linear-gradient(180deg, var(--bg), var(--bg-deep));
    background-size: 34px 34px, 42px 42px, 100% 100%;
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    z-index: 100;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--terracotta) 55%, transparent); text-underline-offset: 4px; }
a:hover { color: var(--terracotta-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; }
h3 { font-size: 1.4rem; font-weight: 500; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 14px; top: -100px; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 1000; border-radius: 10px; }
.skip-link:focus { top: 14px; }
.section-shell { width: var(--shell); margin-inline: auto; }
.ambient { position: fixed; width: 340px; height: 340px; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; opacity: .18; }
.ambient-one { background: var(--terracotta); top: -120px; right: -120px; }
.ambient-two { background: var(--green); bottom: -160px; left: -130px; }
.eyebrow { margin: 0 0 .7rem; color: var(--terracotta-dark); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }

.site-header { position: relative; z-index: 50; }
.top-note { background: var(--feature-bg); color: var(--feature-text); text-align: center; padding: 7px 18px; font-size: .75rem; letter-spacing: .025em; }
html[data-resolved-theme="dark"] .top-note { background: #090c08; color: var(--feature-muted); }
.nav-shell { width: var(--shell); min-height: 94px; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green); }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font: 600 1.3rem var(--serif); letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); margin-top: -2px; font-size: .72rem; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.5vw, 34px); font-size: .88rem; }
.site-nav a { text-decoration: none; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -8px; height: 2px; background: var(--terracotta); transition: .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { left: 0; right: 0; }
.nav-contact { color: var(--green-dark); font-weight: 700; }
.theme-control { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-small); }
.theme-control button { width: 34px; height: 30px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.theme-control button[aria-pressed="true"] { background: var(--green); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--text); }

main { min-height: 60vh; }
.flash { width: var(--shell); margin: 14px auto; padding: 14px 18px; border-radius: 14px; border: 1px solid; }
.flash.success { background: var(--green-soft); border-color: var(--green); }
.flash.error { background: color-mix(in srgb, var(--danger) 14%, var(--surface-solid)); border-color: var(--danger); }

.hero { min-height: 690px; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: 58px 0 74px; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { font-size: 1.12rem; max-width: 650px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-small); color: inherit; }
.button.primary { background: var(--green-dark); color: #fff; }
html[data-resolved-theme="dark"] .button.primary { background: var(--green); color: #10130d; }
html[data-resolved-theme="dark"] .theme-control button[aria-pressed="true"] { color: #10130d; }
.button.secondary { background: var(--surface-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.warm { background: var(--terracotta); color: #fff; }
html[data-resolved-theme="dark"] .button.warm { color: #1b110d; }
.button.danger { background: color-mix(in srgb, var(--danger) 20%, var(--surface-solid)); color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 55%, transparent); }
.button.large { min-height: 56px; padding-inline: 28px; }
.button.small { min-height: 38px; padding: 8px 15px; font-size: .82rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .82rem; }
.trust-row span { position: relative; padding-left: 17px; }
.trust-row span::before { content: "✦"; position: absolute; left: 0; color: var(--terracotta); }
.trust-row b { color: var(--text); }
.hero-art { position: relative; }
.scene-note { text-align: center; color: var(--muted); font: italic 1rem var(--serif); margin-top: -10px; }
.cozy-scene { position: relative; }
.cozy-scene svg { width: 100%; filter: drop-shadow(0 20px 22px rgba(54, 42, 27, .14)); overflow: visible; }
.cozy-scene .scene-wall { fill: var(--surface-solid); stroke: var(--line); stroke-width: 2; }
.cozy-scene .scene-window { fill: var(--surface-soft); stroke: var(--line-strong); stroke-width: 2; }
.cozy-scene .sky-a { stop-color: #efc6a5; }
.cozy-scene .sky-b { stop-color: #f8e5bd; }
html[data-resolved-theme="dark"] .cozy-scene .sky-a { stop-color: #17203a; }
html[data-resolved-theme="dark"] .cozy-scene .sky-b { stop-color: #4c3c4a; }
.cozy-scene .hills { fill: color-mix(in srgb, var(--green) 50%, #73855c); }
.cozy-scene .garden { fill: color-mix(in srgb, var(--green-dark) 76%, #23301e); }
.cozy-scene .stars { fill: var(--gold); }
.cozy-scene .string { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.cozy-scene .bulbs circle { fill: #ffd68a; stroke: #d8a955; stroke-width: 2; filter: drop-shadow(0 0 8px #ffd68a); animation: glow 3.2s ease-in-out infinite alternate; }
.cozy-scene .bulbs circle:nth-child(2n) { animation-delay: -1.4s; }
.cozy-scene .table { fill: color-mix(in srgb, var(--terracotta-soft) 70%, var(--surface-solid)); stroke: var(--line); stroke-width: 2; }
.cozy-scene .cat-body { fill: #b98c62; stroke: #6d533d; stroke-width: 2; }
html[data-resolved-theme="dark"] .cozy-scene .cat-body { fill: #9f7658; stroke: #d0a47e; }
.cozy-scene .cat-tail { fill: none; stroke: #6d533d; stroke-width: 22; stroke-linecap: round; }
html[data-resolved-theme="dark"] .cozy-scene .cat-tail { stroke: #9f7658; }
.cozy-scene .cat-face { fill: none; stroke: #4c382a; stroke-width: 3; stroke-linecap: round; }
.cozy-scene .yarn circle { fill: var(--terracotta-soft); stroke: var(--terracotta); stroke-width: 2; }
.cozy-scene .yarn path { fill: none; stroke: var(--terracotta); stroke-width: 3; }
.cozy-scene .pot path:first-child, .cozy-scene .pot ellipse { fill: #bc795c; stroke: #824a36; stroke-width: 2; }
.cozy-scene .pot .leaf { fill: var(--green); stroke: var(--green-dark); stroke-width: 2; }
.cozy-scene .flowers path { fill: none; stroke: var(--green); stroke-width: 4; }
.cozy-scene .flowers circle { fill: #ead7aa; stroke: var(--terracotta); stroke-width: 2; }
.cozy-scene .heart path { fill: var(--terracotta-soft); stroke: var(--terracotta); stroke-width: 3; }
@keyframes glow { from { opacity: .72; } to { opacity: 1; } }

.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; padding: 70px 0; }
.personal-note { padding: clamp(26px, 5vw, 60px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.personal-note::after { content: "♡"; position: absolute; right: 30px; bottom: 18px; color: var(--terracotta); font: 3rem var(--serif); opacity: .36; transform: rotate(-8deg); }
.personal-note h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.signature { color: var(--terracotta-dark); font: italic 1.45rem var(--serif); margin-top: 28px; }
.signature small { display: block; font: .72rem var(--sans); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.mission-card { display: grid; gap: 18px; }
.mission-card > div { background: var(--feature-bg); color: var(--feature-text); border-radius: var(--radius); padding: 34px; min-height: 220px; position: relative; overflow: hidden; }
.mission-card > div:last-child { background: var(--feature-warm-bg); color: var(--feature-warm-text); }
.mission-card h3 { font-size: 2rem; }
.mission-card p { color: var(--feature-muted); }
.mission-card > div:last-child p { color: var(--feature-warm-muted); }
.mini-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; margin-bottom: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 40px 0 24px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a, .text-link { color: var(--terracotta-dark); font-weight: 750; text-decoration: none; }
.section-heading.centered { justify-content: center; text-align: center; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 70px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-small); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-soft); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-card-body { padding: 20px; }
.project-card h2, .project-card h3 { margin: 12px 0 6px; }
.project-card h2 a, .project-card h3 a { text-decoration: none; }
.project-card p { color: var(--muted); font-size: .9rem; }
.project-by { color: var(--text) !important; font-weight: 650; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--terracotta-soft); color: var(--terracotta-dark); font-size: .72rem; font-weight: 750; }
.tag.subtle { background: var(--green-soft); color: var(--green-dark); }
.empty-gallery { text-align: center; padding: clamp(40px, 8vw, 90px) 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-bottom: 70px; }
.empty-gallery h3, .empty-gallery h2 { font-size: clamp(2rem, 4vw, 3rem); }
.empty-gallery p { max-width: 620px; margin: 0 auto 24px; color: var(--muted); }
.empty-craft { font-size: clamp(2rem, 5vw, 4.5rem); margin-bottom: 22px; filter: saturate(.75); }
.process-section { background: color-mix(in srgb, var(--green-soft) 60%, transparent); border-block: 1px solid var(--line); padding: 58px 0 78px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-step { position: relative; padding: 36px 28px 28px; border-top: 1px solid var(--line-strong); }
.process-step > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--badge-bg); color: var(--badge-text); font-weight: 800; margin-bottom: 28px; }
.process-step p { color: var(--muted); }
.invitation { margin-block: 74px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px, 5vw, 60px); border-radius: 34px; background: var(--feature-bg); color: var(--feature-text); position: relative; overflow: hidden; }
.invitation::after { content: "✦  ♡  ✦"; position: absolute; right: 26px; top: 15px; opacity: .18; font-size: 2.2rem; }
.invitation h2 { max-width: 760px; }
.invitation p { max-width: 720px; color: var(--feature-muted); }
.invitation .eyebrow { color: #f3c6ad; }
.invitation .button { flex: 0 0 auto; }

.page-hero { padding: 76px 0 58px; }
.page-hero.compact { max-width: 900px; margin-inline: auto; text-align: center; }
.page-hero.compact h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero p { color: var(--muted); font-size: 1.08rem; }
.page-hero.compact p { max-width: 760px; margin-inline: auto; }
.filter-bar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 20px 0 30px; }
.filter-bar label, .admin-search { font-weight: 700; }
.filter-bar input, .admin-search input { display: block; width: min(500px, 80vw); margin-top: 7px; }

.project-page { padding: 50px 0 80px; }
.project-header { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.project-header h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
.project-maker { font-weight: 750; color: var(--terracotta-dark); }
.project-summary { font: 1.35rem/1.5 var(--serif); color: var(--muted); }
.project-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.transparency-note { margin: 45px 0; padding: 19px 24px; background: var(--green-soft); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 60px 0; }
.story-panel, .dream-panel { padding: clamp(28px, 5vw, 54px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.dream-panel { background: var(--terracotta-soft); position: relative; }
.dream-heart { position: absolute; right: 28px; bottom: 18px; font: 4rem var(--serif); color: var(--terracotta-dark); opacity: .3; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-button { padding: 0; border: 0; background: none; border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.gallery-button img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.gallery-button:hover img { transform: scale(1.04); }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 70px 0; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.detail-card h2 { font-size: 1.8rem; }
.detail-card li { margin-bottom: .6rem; }
.support-panel { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: center; padding: clamp(28px, 5vw, 54px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.qr-box { padding: 16px; text-align: center; border-radius: 20px; background: #fff; color: #242424; }
.qr-box img { width: 100%; }
.qr-box span { display: block; margin-top: 8px; font-size: .75rem; }
.qr-placeholder { font: 5rem var(--serif); }
.report-line { text-align: center; color: var(--muted); margin-top: 30px; font-size: .86rem; }
.lightbox { position: fixed; inset: 0; background: rgba(7, 8, 6, .9); z-index: 200; display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 18px; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 2rem; cursor: pointer; }

.mission-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; }
.mission-hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
.value-intro { max-width: 960px; text-align: center; padding: 50px 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.value-card > span { font-size: 2.2rem; color: var(--terracotta); }
.value-card h2 { font-size: 1.65rem; margin-top: 20px; }
.value-card p { color: var(--muted); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.scope-card { border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); }
.scope-card.positive { background: var(--green-soft); }
.scope-card.negative { background: var(--terracotta-soft); }
.scope-card li { margin: .7rem 0; }
.prose-layout { display: grid; grid-template-columns: 220px 1fr; gap: 50px; padding-bottom: 80px; }
.prose-nav { position: sticky; top: 20px; align-self: start; display: grid; gap: 8px; }
.prose-nav a { padding: 10px 14px; border-radius: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.prose-content { max-width: 800px; }
.prose-content section, .legal-copy h2 { scroll-margin-top: 30px; }
.prose-content section { border-bottom: 1px solid var(--line); padding: 0 0 34px; margin-bottom: 34px; }
.prose-content h2, .legal-copy h2 { font-size: 2rem; }
.legal-copy { max-width: 820px; padding-bottom: 90px; }
.legal-copy p { color: var(--muted); }

.batch-banner { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: center; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-small); }
.batch-banner.reviewing { background: var(--terracotta-soft); }
.batch-number { width: 210px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 1px dashed var(--line-strong); background: var(--surface-solid); }
.batch-number strong { font: 4rem var(--serif); color: var(--green); line-height: 1; }
.batch-number span { display: block; max-width: 130px; font-size: .78rem; color: var(--muted); }
.apply-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 52px 0 90px; align-items: start; }
.application-form { display: grid; gap: 22px; }
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-small); }
.form-section-heading { display: flex; gap: 16px; align-items: start; margin-bottom: 28px; }
.form-section-heading > span { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; background: var(--badge-bg); color: var(--badge-text); font-weight: 800; }
.form-section-heading h2 { font-size: 2rem; margin-bottom: 4px; }
.form-section-heading p, .form-fineprint { color: var(--muted); font-size: .85rem; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { color: var(--text); font-size: .88rem; font-weight: 720; }
label > span { color: var(--terracotta-dark); }
input, select, textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: var(--surface-solid); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.check-list { display: grid; gap: 12px; margin-bottom: 24px; }
.check-list label { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.check-list input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.turnstile-wrap { margin: 24px 0; }
.dev-notice { padding: 12px 16px; border-radius: 12px; background: var(--terracotta-soft); margin: 20px 0; font-size: .85rem; }
.apply-aside, .review-side { min-width: 0; }
.aside-sticky { position: sticky; top: 18px; }
.apply-aside .aside-sticky { background: var(--feature-bg); color: var(--feature-text); border-radius: 24px; padding: 28px; }
.apply-aside h2 { font-size: 2rem; }
.apply-aside ol { padding-left: 20px; }
.apply-aside li { margin: 0 0 18px; }
.apply-aside li span { display: block; color: var(--feature-muted); font-size: .82rem; }
.soft-note { margin-top: 28px; padding: 16px; border-radius: 15px; background: color-mix(in srgb, var(--feature-text) 9%, transparent); display: flex; gap: 12px; }
.soft-note span { font-size: 1.8rem; color: #f3b895; }
.form-error-summary { padding: 16px 18px; border: 1px solid var(--danger); border-radius: 16px; background: color-mix(in srgb, var(--danger) 12%, var(--surface-solid)); color: var(--text); }
.form-error-summary p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.age-confirmation { margin-top: 22px; margin-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-bottom: 90px; align-items: start; }
.contact-form { min-width: 0; }
.contact-aside { display: grid; gap: 18px; }
.contact-note { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-small); }
.contact-note.subtle { background: var(--surface-soft); }
.contact-note > span { display: block; font-size: 2rem; margin-bottom: 14px; }
.contact-note h2 { font-size: 1.75rem; }
.contact-note ul { margin: 0; padding-left: 20px; color: var(--muted); }
.contact-note li { margin: .55rem 0; }
.contact-note p { color: var(--muted); }
.confirmation { min-height: 580px; display: grid; place-content: center; }
.confirmation-icon { width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-size: 2.6rem; }
.reference { display: inline-block; padding: 9px 13px; border-radius: 999px; background: var(--surface-soft); font-family: ui-monospace, monospace; }
.evidence-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-bottom: 80px; }
.upload-drop { display: grid; place-items: center; min-height: 260px; border: 2px dashed var(--line-strong); border-radius: 20px; background: var(--surface-solid); padding: 25px; text-align: center; cursor: pointer; }
.upload-drop input { width: auto; }
.upload-icon { font-size: 3rem; color: var(--terracotta); }
.upload-drop small { color: var(--muted); }

.site-footer { width: var(--shell); margin: 70px auto 24px; background: var(--footer-bg); color: var(--footer-text); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.footer-scene { display: flex; justify-content: space-between; padding: 19px 26px; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.12); }
.footer-scene .cat { font: 1.1rem ui-monospace, monospace; }
.footer-scene .lights { color: #e8c481; letter-spacing: .35em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.2fr; gap: 36px; padding: 42px; }
.footer-grid strong { font: 2rem var(--serif); }
.footer-grid h2 { font: 1rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--footer-muted); }
.footer-grid p { color: var(--footer-muted); font-size: .83rem; }
.footer-grid a { display: block; color: var(--footer-text); text-decoration: none; font-size: .86rem; margin: .5rem 0; }
.footer-bottom { padding: 15px 42px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: var(--footer-muted); font-size: .72rem; }

.admin-page .site-header .top-note, .admin-page .site-nav { display: none; }
.admin-page .nav-shell { grid-template-columns: auto 1fr auto; }
.admin-shell { padding: 45px 0 80px; }
.admin-title, .panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.admin-title h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.admin-actions, .inline-actions, .admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-metrics article { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-metrics span, .admin-metrics small { display: block; color: var(--muted); font-size: .78rem; }
.admin-metrics strong { display: block; font: 2.4rem var(--serif); margin: 6px 0; }
.admin-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-small); }
.admin-panel h2 { font-size: 1.8rem; }
.submission-list { display: grid; gap: 10px; }
.submission-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-solid); }
.submission-row h3 { margin: 7px 0 3px; }
.submission-row p { color: var(--muted); font-size: .82rem; margin: 0; }
.submission-meta { display: grid; justify-items: end; gap: 5px; font-size: .76rem; color: var(--muted); }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-published, .status-approved { background: var(--green-soft); color: var(--green-dark); }
.status-declined { background: var(--terracotta-soft); color: var(--danger); }
.status-evidence_received { background: color-mix(in srgb, var(--gold) 20%, var(--surface-solid)); color: var(--terracotta-dark); }
.review-layout { display: grid; grid-template-columns: 1fr 290px; gap: 20px; align-items: start; }
.review-main { min-width: 0; }
.private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.private-grid > div { padding: 14px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 13px; }
.private-grid > .full { grid-column: 1 / -1; }
.private-grid b, .private-grid span { display: block; }
.private-grid b { color: var(--terracotta-dark); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.private-grid p, .private-grid span { margin: 5px 0 0; color: var(--muted); }
.admin-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.admin-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.admin-gallery span { display: block; font-size: .65rem; color: var(--muted); overflow-wrap: anywhere; }
.stack-actions { display: grid; gap: 9px; }
.stack-actions .button { width: 100%; }
.review-checks { padding-left: 20px; color: var(--muted); font-size: .82rem; }
.login-card { width: min(480px, calc(100% - 30px)); margin: 70px auto; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.8rem; }
.login-card label { display: block; margin-bottom: 18px; }
.empty-admin { text-align: center; padding: 30px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-one { transition-delay: .1s; }
.delay-two { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
    :root { --shell: min(100% - 28px, 780px); }
    .nav-shell { grid-template-columns: auto auto auto; justify-content: space-between; min-height: 78px; }
    .menu-toggle { display: block; order: 3; }
    .theme-control { order: 2; margin-left: auto; }
    .site-nav { position: absolute; top: 100%; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 12px 14px; border-radius: 10px; }
    .site-nav a:hover { background: var(--surface-soft); }
    .site-nav a::after { display: none; }
    .hero, .mission-hero, .project-header { grid-template-columns: 1fr; }
    .hero { padding-top: 30px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-art { max-width: 760px; margin-inline: auto; }
    .intro-grid, .story-layout, .scope-grid { grid-template-columns: 1fr; }
    .mission-card { grid-template-columns: 1fr 1fr; }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .process-grid, .details-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .apply-layout, .evidence-layout, .review-layout, .contact-layout { grid-template-columns: 1fr; }
    .aside-sticky { position: static; }
    .review-side { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --shell: min(100% - 22px, 580px); --radius: 22px; }
    body { line-height: 1.55; }
    .top-note { font-size: .66rem; }
    .brand strong { font-size: 1.05rem; }
    .brand-mark { width: 36px; height: 36px; }
    .theme-control button { width: 30px; }
    h1 { font-size: clamp(2.6rem, 14vw, 4.4rem); }
    h2 { font-size: clamp(1.9rem, 10vw, 3rem); }
    .hero { min-height: auto; gap: 12px; padding-bottom: 48px; }
    .hero-actions .button, .invitation .button { width: 100%; }
    .trust-row { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
    .cozy-scene svg { margin-top: 12px; }
    .intro-grid { padding: 40px 0; }
    .mission-card { grid-template-columns: 1fr; }
    .mission-card > div { min-height: auto; }
    .section-heading { align-items: start; flex-direction: column; }
    .project-grid, .values-grid { grid-template-columns: 1fr; }
    .invitation { flex-direction: column; align-items: stretch; }
    .page-hero { padding-top: 45px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .support-panel { grid-template-columns: 1fr; }
    .qr-box { max-width: 260px; margin-inline: auto; }
    .prose-layout { grid-template-columns: 1fr; gap: 25px; }
    .prose-nav { position: static; grid-template-columns: 1fr 1fr; }
    .batch-banner { grid-template-columns: 1fr; text-align: center; }
    .batch-number { margin-inline: auto; }
    .form-grid.two, .private-grid { grid-template-columns: 1fr; }
    .form-grid .full, .private-grid > .full { grid-column: auto; }
    .application-form .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; padding: 30px; }
    .footer-bottom { flex-direction: column; padding: 16px 30px; }
    .footer-scene .lights { display: none; }
    .admin-title, .panel-heading, .submission-row { align-items: stretch; flex-direction: column; }
    .submission-meta { justify-items: start; }
    .admin-metrics { grid-template-columns: 1fr 1fr; }
    .admin-gallery { grid-template-columns: 1fr 1fr; }
}
