/* ═══════════════════════════════════════════════════════════════
   ETU Accounting — navy & gold ledger design
   Display: Fraunces · Body: IBM Plex Sans · Figures: IBM Plex Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
    --navy-950: #081426;
    --navy-900: #0C1D3A;
    --navy-800: #11294F;
    --navy-700: #1A3560;
    --gold-500: #C9A24B;
    --gold-400: #D6B266;
    --gold-300: #E3C87F;
    --paper-50: #F8F6F1;
    --paper-100: #F1EDE3;
    --ink-900: #12203A;
    --ink-600: #45536B;
    --line-dark: rgba(227, 200, 127, 0.16);
    --line-light: rgba(18, 32, 58, 0.14);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --container: 1180px;
    --radius: 10px;
    --shadow-card: 0 18px 50px -18px rgba(8, 20, 38, 0.45);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-900);
    background: var(--navy-950);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;   /* oversized watermarks must never cause sideways scroll */
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Focus visibility ─────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ═══════════════ NAVIGATION ═══════════════ */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.is-scrolled {
    background: rgba(8, 20, 38, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-dark);
}

.nav-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.wordmark {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-right: auto;
}

.wordmark-etu {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
    color: var(--gold-300);
}

.wordmark-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #E9EDF5;
}

.nav-links {
    display: flex;
    gap: 1.9rem;
}

.nav-links a {
    color: #C6D2E4;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold-300); }

.nav-toggle { display: none; }
.nav-mobile { display: none; }

/* ═══════════════ BUTTONS ═══════════════ */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    border-radius: 6px;
    padding: 0.78rem 1.55rem;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-950);
    box-shadow: 0 8px 24px -10px rgba(201, 162, 75, 0.65);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(201, 162, 75, 0.75);
}

.btn-ghost {
    background: transparent;
    color: #E9EDF5;
    box-shadow: inset 0 0 0 1px rgba(233, 237, 245, 0.35);
}

.btn-ghost:hover {
    box-shadow: inset 0 0 0 1px var(--gold-300);
    color: var(--gold-300);
    transform: translateY(-2px);
}

.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.05rem; }

/* ═══════════════ HERO ═══════════════ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7.5rem 0 4.5rem;
    background:
        radial-gradient(1100px 600px at 78% 18%, rgba(26, 53, 96, 0.55), transparent 62%),
        radial-gradient(700px 500px at 12% 85%, rgba(201, 162, 75, 0.08), transparent 60%),
        var(--navy-950);
    color: #E9EDF5;
    overflow: hidden;
}

/* fine ledger ruling in the background */
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0 46px,
        rgba(227, 200, 127, 0.045) 46px 47px
    );
    mask-image: linear-gradient(to bottom, transparent, black 22%, black 72%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 22%, black 72%, transparent);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin: 0 0 1.4rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #F4F1E8;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-300);
}

.hero-sub {
    max-width: 34rem;
    margin: 1.6rem 0 2.2rem;
    font-size: 1.1rem;
    color: #B9C5D9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-note {
    margin-top: 2.4rem;
    font-size: 0.85rem;
    color: #7A8BA6;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(233, 237, 245, 0.35);
    border-radius: 14px;
    display: flex;
    justify-content: center;
}

.hero-scroll span {
    width: 3px;
    height: 8px;
    margin-top: 7px;
    border-radius: 3px;
    background: var(--gold-300);
    animation: scrollHint 2.2s infinite var(--ease-out);
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%      { transform: translateY(14px); opacity: 0; }
}

/* ── Signature: the self-tallying ledger ───────────── */

.ledger-card {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-900) 70%);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(227, 200, 127, 0.12);
    padding: 1.7rem 1.8rem 1.4rem;
    font-family: var(--font-mono);
    transform: rotate(0.6deg);
}

.ledger-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.15rem;
}

.ledger-title {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 500;
    color: var(--gold-300);
}

.ledger-period {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #7A8BA6;
}

.ledger-cols,
.ledger-row,
.ledger-total {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 0.75rem;
}

.ledger-cols {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64789B;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-dark);
}

.ledger-cols span:nth-child(n+2),
.ledger-row span:nth-child(n+2),
.ledger-total span:nth-child(n+2) { text-align: right; }

.ledger-row {
    padding: 0.44rem 0;
    font-size: 0.83rem;
    color: #C6D2E4;
    border-bottom: 1px dotted rgba(227, 200, 127, 0.1);
}

.ledger-row span:first-child { color: #8FA1BD; }

.ledger-rule {
    height: 2px;
    margin-top: 0.7rem;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.9s var(--ease-out) 0.2s;
}

.ledger-card.is-done .ledger-rule { transform: scaleX(1); }

.ledger-total {
    padding: 0.8rem 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #F4F1E8;
}

.ledger-balanced {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-300);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s ease 0.85s, transform 0.6s var(--ease-out) 0.85s;
}

.ledger-card.is-done .ledger-balanced { opacity: 1; transform: none; }

/* ═══════════════ SECTIONS ═══════════════ */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-paper {
    background: var(--paper-50);
    color: var(--ink-900);
}

.section-tint { background: var(--paper-100); }

.section-dark {
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(26, 53, 96, 0.5), transparent 60%),
        var(--navy-950);
    color: #E9EDF5;
}

.acc-code {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 1.15rem;
    color: var(--gold-500);
}

.section-dark .acc-code { color: var(--gold-400); }

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.85rem, 3.6vw, 2.7rem);
    line-height: 1.16;
    letter-spacing: -0.01em;
    max-width: 46rem;
}

.section-lead {
    max-width: 38rem;
    margin: 1.3rem 0 0;
    font-size: 1.08rem;
    color: var(--ink-600);
}

.section-dark .section-lead { color: #B9C5D9; }

/* ═══════════════ ACC 100 · MARKET ═══════════════ */

.cause-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 3.2rem;
}

.cause-card {
    background: #FFFFFF;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 1.8rem 1.7rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px -20px rgba(18, 32, 58, 0.28);
}

.cause-index {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--navy-800);
    margin-bottom: 0.6rem;
}

.cause-card p { margin: 0; color: var(--ink-600); }

.result-strip {
    margin-top: 3rem;
    padding: 1.7rem 1.9rem;
    background: var(--navy-900);
    color: #E9EDF5;
    border-radius: var(--radius);
    border: 1px solid var(--line-dark);
}

.result-label {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #B9C5D9;
}

.result-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin: 0;
    padding: 0;
}

.result-list li {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(227, 200, 127, 0.35);
    border-radius: 100px;
    color: var(--gold-300);
}

/* ═══════════════ ACC 200 · FLOW ═══════════════ */

.flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 3.4rem;
}

.flow-node {
    background: rgba(17, 41, 79, 0.55);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
}

.flow-node h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.22rem;
    color: #F4F1E8;
    margin-bottom: 0.75rem;
}

.flow-node-core {
    background: linear-gradient(160deg, rgba(201, 162, 75, 0.16), rgba(17, 41, 79, 0.65));
    border-color: rgba(227, 200, 127, 0.4);
}

.flow-node-core h3 { color: var(--gold-300); }

.flow-node-out { border-style: dashed; }

.flow-node ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
    color: #B9C5D9;
}

.flow-node li { padding: 0.22rem 0; }

.flow-link {
    align-self: center;
    width: clamp(28px, 4vw, 56px);
    color: var(--gold-500);
}

.flow-link svg { width: 100%; height: 24px; overflow: visible; }

.flow-dash {
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-dasharray: 4 6;
    fill: none;
    animation: flowDash 1.2s linear infinite;
}

.flow-arrow { stroke: currentColor; stroke-width: 1.6; }

@keyframes flowDash {
    to { stroke-dashoffset: -10; }
}

.flow-caption {
    margin: 2.6rem auto 0;
    max-width: 40rem;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.18rem;
    color: var(--gold-300);
}

/* ═══════════════ SPLIT SECTIONS ═══════════════ */

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.split-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.check-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2.1rem;
    color: var(--ink-600);
    border-bottom: 1px solid var(--line-light);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 1.05rem;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--gold-500);
    border-bottom: 2px solid var(--gold-500);
    transform: rotate(-45deg);
}

.split-tag {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.12rem;
    color: var(--navy-800);
}

/* ═══════════════ ACC 400 · FUNCTIONALITY ═══════════════ */

.func-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
    margin-top: 4rem;
}

.func-row-flip .func-copy { order: 2; }
.func-row-flip .func-media { order: 1; }

.func-side {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.func-head {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.65rem;
    line-height: 1.2;
    margin: 0.8rem 0 0;
    color: var(--ink-900);
}

.func-lead { color: var(--ink-600); margin: 0.9rem 0 0; }

.func-list {
    margin: 1.9rem 0 0;
}

.func-list > div {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-light);
}

.func-list dt {
    font-weight: 600;
    color: var(--navy-800);
}

.func-list dd {
    margin: 0.25rem 0 0;
    color: var(--ink-600);
    font-size: 0.97rem;
}

.func-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease-out);
}

.func-media:hover img { transform: scale(1.015); }

/* ═══════════════ ACC 500 · SCOPE ═══════════════ */

.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    margin-top: 3.2rem;
}

.scope-card {
    background: rgba(17, 41, 79, 0.5);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.45rem;
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background 0.35s ease;
}

.scope-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 200, 127, 0.5);
    background: rgba(26, 53, 96, 0.6);
}

.scope-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.28rem;
    color: var(--gold-300);
    margin-bottom: 0.45rem;
}

.scope-card p { margin: 0; font-size: 0.95rem; color: #B9C5D9; }

.scope-note {
    margin-top: 2.6rem;
    padding: 1.4rem 1.7rem;
    border: 1px dashed rgba(227, 200, 127, 0.4);
    border-radius: var(--radius);
    font-size: 0.98rem;
    color: #C6D2E4;
    max-width: 44rem;
}

.scope-note strong { color: var(--gold-300); font-weight: 600; }

/* ═══════════════ ACC 600 · ROLLOUT ═══════════════ */

.split-wide { align-items: start; }

.steps {
    list-style: none;
    margin: 2.4rem 0 0;
    padding: 0;
}

.steps li {
    display: flex;
    gap: 1.3rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line-light);
}

.step-no {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--gold-500);
    padding-top: 0.1rem;
}

.steps h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.22rem;
    color: var(--navy-800);
}

.steps p { margin: 0.25rem 0 0; color: var(--ink-600); font-size: 0.97rem; }

/* ═══════════════ ACC 700 · VALUE & CTA ═══════════════ */

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    margin-top: 3.2rem;
}

.value-card {
    padding: 1.7rem 1.6rem;
    background: rgba(17, 41, 79, 0.5);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.value-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--gold-300);
    margin-bottom: 0.55rem;
}

.value-card p { margin: 0; font-size: 0.97rem; color: #B9C5D9; }

.cta-panel {
    margin-top: 3.6rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    padding: clamp(1.8rem, 4vw, 2.8rem);
    background: linear-gradient(150deg, rgba(201, 162, 75, 0.14), rgba(17, 41, 79, 0.6));
    border: 1px solid rgba(227, 200, 127, 0.4);
    border-radius: 14px;
}

.cta-copy h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: #F4F1E8;
    max-width: 26rem;
}

.cta-list {
    list-style: none;
    margin: 1.3rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.5rem 1.6rem;
    font-size: 0.94rem;
    color: #C6D2E4;
}

.cta-list li {
    position: relative;
    padding-left: 1.35rem;
}

.cta-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--gold-400);
    border-bottom: 2px solid var(--gold-400);
    transform: rotate(-45deg);
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.cta-mail { font-size: 0.9rem; color: #8FA1BD; }
.cta-mail a { color: var(--gold-300); }

/* ═══════════════ CONTACT PAGE ═══════════════ */

.contact-hero {
    padding: 10rem 0 4.5rem;
    background:
        radial-gradient(900px 500px at 80% 20%, rgba(26, 53, 96, 0.55), transparent 60%),
        var(--navy-950);
    color: #E9EDF5;
}

.contact-hero .section-lead { color: #B9C5D9; }

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact-aside h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.6rem;
}

.contact-direct {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line-light);
}

.contact-direct h3 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.5rem;
}

.contact-direct a { color: var(--navy-800); font-weight: 600; }

.contact-form-wrap {
    background: #FFFFFF;
    border: 1px solid var(--line-light);
    border-radius: 14px;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    box-shadow: 0 24px 60px -30px rgba(18, 32, 58, 0.35);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-field { margin-bottom: 1.2rem; }

.form-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 0.4rem;
}

.req { color: var(--gold-500); }

.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-900);
    background: var(--paper-50);
    border: 1px solid var(--line-light);
    border-radius: 7px;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}

.form-field textarea { resize: vertical; }

.form-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-600);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.flash {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.4rem;
    font-size: 0.97rem;
}

.flash-success {
    background: #EDF6EE;
    border: 1px solid #BFDFC5;
    color: #1F5B2D;
}

.flash-error {
    background: #FBEFEC;
    border: 1px solid #EBC5BC;
    color: #8A3324;
}

/* ═══════════════ 404 ═══════════════ */

.notfound {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 9rem;
}

.notfound .btn { margin-top: 2.2rem; }

/* ═══════════════ FOOTER ═══════════════ */

.site-footer {
    background: #050D1B;
    color: #8FA1BD;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--line-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 2.5rem;
    padding-bottom: 2.6rem;
}

.footer-logo {
    width: 180px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
}

.footer-line {
    margin: 1.1rem 0 0;
    font-size: 0.92rem;
    max-width: 20rem;
}

.footer-col h3 {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #B9C5D9;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.28rem 0;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-300); }

.footer-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(227, 200, 127, 0.08);
    font-size: 0.82rem;
}

.footer-ledger {
    font-family: var(--font-mono);
    color: #64789B;
}

/* ═══════════════ REVEAL ANIMATIONS ═══════════════ */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.8s var(--ease-out) var(--d, 0ms),
        transform 0.8s var(--ease-out) var(--d, 0ms);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-ledger { max-width: 480px; }
    .flow {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .flow-link {
        width: 24px;
        height: 40px;
        margin-inline: auto;
        transform: rotate(90deg);
    }
    .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-links, .nav-cta { display: none; }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 10px;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--gold-300);
        border-radius: 2px;
        transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-mobile {
        display: none;
        flex-direction: column;
        gap: 0.4rem;
        padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
        background: var(--navy-950);
        border-bottom: 1px solid var(--line-dark);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    }

    /* solid bar behind the logo row while the menu is open */
    .site-nav:has(.nav-mobile.is-open) {
        background: var(--navy-950);
    }

    .nav-mobile.is-open { display: flex; }

    .nav-mobile a {
        color: #E9EDF5;
        text-decoration: none;
        padding: 0.65rem 0;
        font-size: 1.05rem;
    }

    .nav-mobile .btn { margin-top: 0.8rem; text-align: center; }

    .cause-grid, .scope-grid, .value-grid { grid-template-columns: 1fr; }
    .split, .func-row, .contact-grid { grid-template-columns: 1fr; }
    .func-row-flip .func-copy { order: 1; }
    .func-row-flip .func-media { order: 2; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-list { grid-template-columns: 1fr; }
    .hero { padding-top: 6.5rem; }
    .hero-scroll { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   WOW LAYER — preloader, progress, particles, split type,
   stat band, marquee, watermarks, tilt & shimmer
   ═══════════════════════════════════════════════════════════════ */

/* ── Preloader ─────────────────────────────────────── */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    background: var(--navy-950);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-mark {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    animation: preloaderRise 0.7s var(--ease-out) both;
}

.preloader-etu {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.4rem;
    color: var(--gold-300);
}

.preloader-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #E9EDF5;
}

.preloader-rule {
    width: min(240px, 56vw);
    height: 2px;
    background: rgba(227, 200, 127, 0.15);
    overflow: hidden;
}

.preloader-rule span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transform-origin: left;
    transform: scaleX(0);
    animation: preloaderRule 0.9s var(--ease-out) 0.15s forwards;
}

.preloader-tally {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: #64789B;
}

@keyframes preloaderRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes preloaderRule {
    to { transform: scaleX(1); }
}

/* ── Scroll progress ───────────────────────────────── */

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 200;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    transform-origin: left;
    transform: scaleX(0);
    pointer-events: none;
}

/* ── Hero particle canvas ──────────────────────────── */

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Split headline ────────────────────────────────── */

.hero-title.is-split {
    opacity: 1;
    transform: none;
    transition: none;
}

.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;   /* keep italic descenders visible */
    margin-bottom: -0.08em;
}

.hero-title .word-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: wordRise 0.85s var(--ease-out) var(--wd, 0ms) forwards;
}

@keyframes wordRise {
    to { transform: translateY(0); }
}

/* ── Stat band ─────────────────────────────────────── */

.stat-band {
    background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 2.6rem 0;
    color: #E9EDF5;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.stat {
    text-align: center;
    position: relative;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: -0.8rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: var(--line-dark);
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 500;
    color: var(--gold-300);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    color: #8FA1BD;
}

/* ── Section watermarks ────────────────────────────── */

.section { position: relative; overflow: hidden; }

.section-watermark {
    position: absolute;
    top: 2rem;
    right: -1rem;
    z-index: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(9rem, 22vw, 19rem);
    line-height: 1;
    color: rgba(18, 32, 58, 0.05);
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.section-watermark-dark {
    color: rgba(227, 200, 127, 0.045);
}

.section > .container { position: relative; z-index: 1; }

/* ── Ledger tilt & glow ────────────────────────────── */

.hero-ledger { perspective: 1000px; }

.ledger-card {
    position: relative;
    transition: box-shadow 0.4s ease;
    will-change: transform;
}

.ledger-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: radial-gradient(
        360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(227, 200, 127, 0.12),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ledger-card.is-tilting::after { opacity: 1; }

/* idle float */
@keyframes ledgerFloat {
    0%, 100% { transform: rotate(0.6deg) translateY(0); }
    50%      { transform: rotate(0.6deg) translateY(-9px); }
}

.ledger-card.is-floating { animation: ledgerFloat 7s ease-in-out infinite; }

/* ── Gold shimmer on CTAs ──────────────────────────── */

.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
}

.btn-gold:hover::before {
    animation: shimmerSweep 0.8s ease;
}

@keyframes shimmerSweep {
    to { left: 130%; }
}

/* ── Responsive: wow layer ─────────────────────────── */

@media (max-width: 860px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .stat:nth-child(odd) + .stat::before { display: none; }
    .section-watermark { font-size: 8rem; opacity: 0.8; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .flow-dash { animation: none; }
    .hero-scroll span { animation: none; }

    .ledger-rule { transform: scaleX(1); transition: none; }
    .ledger-balanced { opacity: 1; transform: none; transition: none; }

    .preloader { display: none; }
    .hero-canvas { display: none; }
    .hero-title .word-inner { transform: none; animation: none; }
    .ledger-card.is-floating { animation: none; }
    .btn-gold:hover::before { animation: none; }
    .section-watermark { transform: none !important; }
    .stat .count { transition: none; }
}
