:root {
    --ink: #2A241C;
    --ink-2: #F3EAD4;
    --bg: #FFF8EE;
    --bg-2: #F4EBDA;
    --surface: #FFFFFF;
    --surface-2: #FFFDF8;
    --line: rgba(42, 36, 28, 0.10);
    --line-strong: rgba(42, 36, 28, 0.18);
    --paper: #2A241C;
    --paper-soft: #5C5348;
    --muted: #6F665B;
    --gold: #1B7A5F;
    --gold-soft: #24946F;
    --sage: #5C4A9A;
    --wood: #C4923A;
    --danger: #C45C4A;
    --space-2: 2px;
    --space-4: 4px;
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    --wrap: 1120px;
    --measure: 64ch;
    --radius: 18px;
    --header-h: 76px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Nunito", "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    background: var(--gold);
    color: #fff;
    padding: 8px 16px;
    font-weight: 600;
}

.skip-link:focus { top: 16px; }

.wrap {
    width: min(var(--wrap), calc(100% - 32px));
    margin-inline: auto;
}

.measure { max-width: var(--measure); }

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.display {
    font-family: var(--font-display);
    font-weight: 560;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

h1.display { font-size: clamp(40px, 8vw, 80px); }
h2.display { font-size: clamp(32px, 5vw, 52px); }
h3 { font-family: var(--font-display); font-size: 24px; font-weight: 560; line-height: 1.25; }

.lede {
    color: var(--paper-soft);
    font-size: 18px;
    line-height: 1.7;
    max-width: var(--measure);
}

.muted { color: var(--muted); }

.italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    color: #fff;
}

.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: var(--bg);
    gap: 16px;
}

.preloader__mark {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}

.preloader__mark img { width: 100%; height: 100%; object-fit: cover; }

.preloader__word {
    font-family: var(--font-display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold);
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 90;
    height: var(--header-h);
    background: #FFF8EE;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-menu-open {
    background: var(--bg);
    border-bottom-color: var(--line);
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: transparent;
}

.logo strong {
    display: block;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.logo em {
    display: block;
    font-style: normal;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 16px) 24px 32px;
    background: #FFF8EE;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: none;
}

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

.nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a { color: var(--paper-soft); font-size: 15px; font-weight: 600; }
.nav a[aria-current="page"],
.nav a:hover { color: var(--gold); }
.nav .nav-cta,
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: #fff;
    padding: 0;
    position: relative;
    z-index: 91;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span:nth-of-type(2) { top: 15px; }
.nav-toggle span:nth-of-type(3) { top: 22px; }
.nav-toggle span:nth-of-type(4) { top: 29px; }
.nav-toggle.is-open span:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-of-type(3) { opacity: 0; }
.nav-toggle.is-open span:nth-of-type(4) { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    min-height: auto;
    display: block;
    padding: calc(var(--header-h) + 40px) 0 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(92, 74, 154, 0.10), transparent 36%),
        radial-gradient(circle at 8% 80%, rgba(27, 122, 95, 0.10), transparent 32%),
        var(--bg);
}

.hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hero__media {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 280px;
    background: var(--bg-2);
}

.hero__media > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.hero__shade { display: none; }

.hero__content { position: relative; z-index: 1; width: auto; margin: 0; }

.hero h1 { max-width: 14ch; margin-bottom: 16px; }

.hero .lede { margin-bottom: 28px; }

.hero-cube {
    width: min(168px, 38%);
    height: auto;
    min-height: 0;
    object-fit: contain;
    position: absolute;
    right: 16px;
    bottom: 16px;
    filter: drop-shadow(0 12px 20px rgba(42, 36, 28, 0.18));
}

.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; margin-right: 0.22em; }
.split-word span { display: inline-block; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-ink { background: var(--bg); }
.section-raise { background: var(--bg-2); }

.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 16px; }

.split {
    display: grid;
    gap: 40px;
    align-items: center;
}

.media-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-frame--wide { aspect-ratio: 16 / 9; }

.pillars {
    display: grid;
    gap: 16px;
}

.pillar {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pillar .num {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 12px;
}

.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--paper-soft); }

.quote-block {
    padding: 40px 0;
}

.quote-block blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.4vw, 36px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    max-width: 28ch;
}

.quote-block cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    color: var(--muted);
    font-size: 14px;
}

.cards {
    display: grid;
    gap: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--paper-soft); }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--paper-soft);
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.step {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.step strong {
    display: block;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.founders {
    display: grid;
    gap: 16px;
}

.founder {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.founder h3 { margin-bottom: 8px; }
.founder .role { color: var(--gold); font-size: 13px; margin-bottom: 12px; }
.founder p { color: var(--paper-soft); }

.banner {
    display: grid;
    gap: 24px;
    padding: 40px 32px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(27, 122, 95, 0.12), transparent 40%),
        var(--surface);
    border: 1px solid var(--line);
}

.faq-list { display: grid; gap: 8px; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}

.faq-item button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 600;
}

.faq-item button span:last-child {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1;
}

.faq-item .faq-body {
    display: none;
    padding: 0 20px 18px;
    color: var(--paper-soft);
    max-width: var(--measure);
}

.news-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.page-hero {
    padding: calc(var(--header-h) + 56px) 0 48px;
}

.page-hero h1 { margin-bottom: 16px; }

.legal {
    padding-bottom: 96px;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 40px 0 12px;
}

.legal p,
.legal li {
    color: var(--paper-soft);
    max-width: var(--measure);
}

.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }

.contact-grid {
    display: grid;
    gap: 32px;
}

.form {
    display: grid;
    gap: 16px;
}

.field { display: grid; gap: 8px; }

.field label { font-size: 13px; font-weight: 600; color: var(--paper-soft); }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.hp { position: absolute; left: -9999px; opacity: 0; }

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.alert-ok { background: rgba(27, 122, 95, 0.10); color: #146047; }
.alert-err { background: rgba(196, 92, 74, 0.10); color: #8a3328; }

.advisor-grid {
    display: grid;
    gap: 12px;
}

.advisor {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.advisor h3 { font-size: 22px; margin-bottom: 6px; }
.advisor .role { color: var(--gold); font-size: 13px; margin-bottom: 10px; }
.advisor p { color: var(--paper-soft); }

.site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}

.footer-grid {
    display: grid;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--paper-soft);
    max-width: 42ch;
}

.footer-label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--paper-soft); display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--gold); }

.footer-base {
    display: grid;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

@media (min-width: 768px) {
    .wrap { width: min(var(--wrap), calc(100% - 48px)); }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero__media,
    .hero__media > img:first-child { min-height: 280px; }
    .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
    .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
    .split.reverse .copy { order: 2; }
    .pillars { grid-template-columns: repeat(3, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .founders { grid-template-columns: repeat(2, 1fr); }
    .banner { grid-template-columns: 1.4fr 0.8fr; align-items: center; }
    .footer-grid { grid-template-columns: 1.4fr 0.7fr 0.7fr; }
    .advisor-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
}

@media (min-width: 900px) {
    .nav-toggle { display: none !important; }
    .nav,
    .nav.is-open {
        display: flex;
        position: fixed;
        inset: auto;
        top: 0;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);
        visibility: visible;
        pointer-events: none;
        width: min(var(--wrap), calc(100% - 48px));
        height: var(--header-h);
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 28px;
        padding: 0;
        background: transparent;
        overflow: visible;
        z-index: 51;
    }
    .nav ul,
    .nav .nav-cta { pointer-events: auto; }
    .nav ul { flex-direction: row; gap: 22px; }
    .nav ul a {
        font-size: 15px;
        font-family: var(--font-body);
        font-weight: 600;
        padding: 0;
        min-height: 0;
        color: var(--paper-soft);
    }
    .nav-cta { width: auto; min-height: 48px; margin-top: 0; }

    .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
    .hero__media,
    .hero__media > img:first-child { min-height: 420px; }
}

@media (min-width: 1024px) {
    .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .cards.cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.card a { display: block; color: inherit; }
.card a:hover h3 { color: var(--gold); }

.btn:focus-visible,
.nav a:focus-visible,
.faq-item button:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

@media (max-width: 899px) {
    body { overflow-x: hidden; }

    .logo {
        padding-right: 56px;
        flex: 1;
        min-width: 0;
    }
    .logo img { width: 40px; height: 40px; flex-shrink: 0; }
    .logo strong { font-size: 13px; }
    .logo em { font-size: 10px; letter-spacing: 0.08em; }

    .nav-toggle { display: flex; }

    .nav ul { flex-direction: column; gap: 4px; }
    .nav ul a {
        font-size: clamp(26px, 8vw, 34px);
        font-family: var(--font-display);
        padding: 12px 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        color: var(--ink);
    }
    .nav-cta {
        width: 100%;
        min-height: 52px;
        margin-top: 8px;
    }

    .hero h1 { max-width: none; }
    .hero-cube { width: 120px; right: 12px; bottom: 12px; }
}

body.is-menu-open .hero-cube { visibility: hidden; }

@media (max-width: 399px) {
    .logo em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
