/* ============ TOKENS ============ */
:root {
    /* Warm medium walnut palette — oiled cedar in daylight */
    --pine:       #2A1810;   /* deepest — dark chocolate for accents/footer */
    --pine-2:     #38241A;   /* raised surface on deep */
    --walnut:     #5C3826;   /* mid-tone walnut — lifted for .why panel */
    --paper:      #4A2C1B;   /* PRIMARY BG — warm medium walnut, oiled cedar */
    --bone:       #562F1D;   /* subtle warm lift for secondary sections */
    --brass:      #E89B3C;   /* honey amber — accent */
    --brass-hi:   #F4B968;   /* highlight honey */
    --sage:       #D68B3C;   /* warm cedar hover */
    --ink:        #F5EAD4;   /* PRIMARY TEXT — warm cream */
    --ink-mute:   #C4B294;   /* muted cream for secondary text */
    --rule:       rgba(245, 234, 212, 0.16);
    --rule-inv:   rgba(245, 234, 212, 0.16);

    --f-display:  'Fraunces', ui-serif, Georgia, serif;
    --f-body:     'Inter', system-ui, -apple-system, sans-serif;
    --f-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --page-max: 1240px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --nav-h: 68px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============ LAYOUT ============ */
.wrap {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* ============ NAV ============ */
.nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: transparent;
}
.nav.is-scrolled {
    position: fixed;
    background: rgba(74, 44, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    animation: navSlideIn .3s ease;
}
@keyframes navSlideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 1.1rem;
}
.brand {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    display: flex; align-items: baseline; gap: 0.4rem;
    color: var(--ink);
}
.brand__mark {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--brass);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transform: translateY(-2px);
}
.nav__links {
    display: flex; gap: 2rem; align-items: center;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.nav__links a { text-decoration: none; opacity: 0.85; transition: opacity .2s; color: var(--ink); }
.nav__links a:hover { opacity: 1; }
.nav__cta {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--pine) !important; opacity: 1 !important; }

/* Mobile navigation toggle is hidden on desktop. */
.nav__toggle {
    display: none;
}

@media (max-width: 720px) {
    .nav {
        transition: background .2s ease, border-color .2s ease;
    }

    .nav.is-menu-open {
        background: rgba(42, 24, 16, 0.98);
        border-bottom: 1px solid var(--rule);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav__inner {
        position: relative;
        gap: 1rem;
    }

    .brand {
        min-width: 0;
        position: relative;
        z-index: 2;
    }

    .brand__mark {
        white-space: nowrap;
    }

    .nav__toggle {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        color: var(--ink);
        background: rgba(42, 24, 16, 0.42);
        border: 1px solid rgba(245, 234, 212, 0.55);
        border-radius: 999px;
        cursor: pointer;
        position: relative;
        z-index: 2;
        -webkit-tap-highlight-color: transparent;
    }

    .nav__toggle:hover,
    .nav__toggle:focus-visible {
        background: var(--ink);
        color: var(--pine);
        outline: none;
    }

    .nav__toggle-line {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform .2s ease, opacity .2s ease;
    }

    .nav.is-menu-open .nav__toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav.is-menu-open .nav__toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav.is-menu-open .nav__toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav__links {
        position: absolute;
        top: 100%;
        left: var(--gutter);
        right: var(--gutter);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.65rem 1.15rem 1.15rem;
        background: rgba(42, 24, 16, 0.98);
        border: 1px solid var(--rule);
        border-top: 0;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            max-height .3s ease,
            opacity .2s ease,
            transform .2s ease,
            visibility 0s linear .3s;
    }

    .nav.is-menu-open .nav__links {
        max-height: calc(100vh - var(--nav-h) - 1rem);
        max-height: calc(100dvh - var(--nav-h) - 1rem);
        opacity: 1;
        overflow-y: auto;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition:
            max-height .3s ease,
            opacity .2s ease,
            transform .2s ease,
            visibility 0s;
    }

    .nav__links a {
        display: block;
        width: 100%;
        padding: 0.95rem 0;
        border-bottom: 1px solid var(--rule);
        opacity: 1;
    }

    .nav__links a:hover,
    .nav__links a:focus-visible {
        color: var(--brass-hi);
        outline: none;
    }

    .nav__links .nav__cta {
        margin-top: 0.85rem;
        padding: 0.8rem 1rem;
        text-align: center;
        border: 1px solid var(--ink);
    }

    body.nav-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 430px) {
    .brand__mark {
        display: none;
    }
}

/* ============ HERO (full-viewport carousel) ============ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--pine);
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 6rem;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
    /* Subtle Ken Burns-style scale for the active slide */
    transform: scale(1.02);
    will-change: opacity;
}
.hero__slide.is-active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
    transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1), transform 8s ease-out;
}
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(90deg,
            rgba(20, 12, 8, 0.82) 0%,
            rgba(20, 12, 8, 0.62) 35%,
            rgba(20, 12, 8, 0.30) 70%,
            rgba(20, 12, 8, 0.30) 100%),
        linear-gradient(180deg,
            rgba(20, 12, 8, 0.35) 0%,
            transparent 25%,
            transparent 70%,
            rgba(20, 12, 8, 0.55) 100%);
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.hero__eyebrow {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.9;
    margin-bottom: 1.8rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--brass);
}
.hero__headline {
    font-size: clamp(2.6rem, 6.2vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.028em;
    font-weight: 400;
    max-width: 15ch;
    color: var(--ink);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero__headline em {
    font-style: italic;
    color: var(--ink);
    font-weight: 400;
    opacity: 0.75;
}
.hero__headline .accent {
    font-family: var(--f-display);
    font-style: italic;
    color: var(--brass);
    font-weight: 500;
    opacity: 1;
}
.hero__sub {
    margin-top: 1.8rem;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.55;
    color: var(--ink);
    opacity: 0.88;
    max-width: 44ch;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero__actions {
    margin-top: 2.4rem;
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}

/* Region caption (bottom-left) */
.hero__caption {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    left: clamp(1.25rem, 4vw, 3rem);
    z-index: 5;
    max-width: 60vw;
    pointer-events: none;
    display: grid;
    grid-template-areas: "stack";
}
.hero__caption-inner {
    grid-area: stack;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero__caption-inner.is-active {
    opacity: 1;
}
.hero__region {
    display: block;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    letter-spacing: 0;
    color: var(--brass-hi);
    line-height: 1;
}
.hero__region-sub {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.75;
    margin-top: 0.4rem;
}

/* Progress dots (bottom-right) */
.hero__dots {
    position: absolute;
    bottom: clamp(1.75rem, 3vw, 2.75rem);
    right: clamp(1.25rem, 4vw, 3rem);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}
.hero__dots .dot {
    width: 28px; height: 2px;
    background: rgba(245, 234, 212, 0.35);
    border: none; padding: 0; cursor: pointer;
    transition: background .3s, width .3s;
    border-radius: 0;
}
.hero__dots .dot.is-active { background: var(--brass); width: 44px; }
.hero__dots .dot:hover { background: rgba(245, 234, 212, 0.7); }

@media (max-width: 720px) {
    .hero__caption { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    font-family: var(--f-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn--primary {
    background: var(--ink);
    color: var(--pine);
}
.btn--primary:hover {
    background: var(--brass);
    color: var(--pine);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--pine); }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============ SECTION FRAME ============ */
section { padding-block: clamp(4rem, 9vw, 7rem); }

.section-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    align-items: baseline;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.section-head__num {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
}
.section-head__title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 22ch;
}
.section-head__title em { font-style: italic; color: var(--ink-mute); }

/* ============ WHO ============ */
.who {
    background: var(--bone);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.who__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0;
    border-top: 1px solid var(--ink);
}
.who__item {
    padding: 1.8rem 1.5rem 1.8rem 0;
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
}
.who__item:last-child { border-right: none; }
@media (max-width: 720px) {
    .who__item { border-right: none; padding-right: 0; }
}
.who__item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.who__item p {
    font-size: 0.95rem;
    color: var(--ink-mute);
    line-height: 1.5;
}
.who__item .mono {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.6rem;
}

/* ============ PROCESS ============ */
.process__steps { display: grid; gap: 0; }
.step {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: 2.2rem;
    border-top: 1px solid var(--rule);
    align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) {
    .step { grid-template-columns: 1fr; gap: 0.6rem; padding-block: 1.6rem; }
}
.step__num {
    font-family: var(--f-mono);
    font-size: 1rem;
    color: var(--brass);
    letter-spacing: 0.05em;
}
.step__title {
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.step__body {
    color: var(--ink-mute);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============ WHY ============ */
.why {
    background: var(--walnut);
    position: relative;
}
.why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--rule-inv);
    border: 1px solid var(--rule-inv);
}
.why__card {
    background: var(--paper);
    padding: 2rem 1.8rem;
    transition: background .2s;
}
.why__card:hover { background: var(--pine-2); }
.why__card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}
.why__card p {
    color: var(--ink-mute);
    font-size: 0.98rem;
    line-height: 1.55;
}
.why__card .mono {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.8rem;
    display: block;
}

/* ============ CONTACT ============ */
.contact { padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 1.3rem;
}
.contact__intro h2 em { font-style: italic; color: var(--ink-mute); }
.contact__intro p {
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
    max-width: 32ch;
}
.contact__meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-family: var(--f-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
}
.contact__meta div { padding: 0.3rem 0; }
.contact__meta .k { opacity: 0.55; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; }

/* ============ FORM ============ */
.form { display: grid; gap: 1.1rem; }
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    opacity: 0.85;
}
.field label .req { color: var(--brass); margin-left: 2px; }
.field input,
.field select,
.field textarea {
    font-family: var(--f-body);
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ink);
    padding: 0.65rem 0;
    outline: none;
    border-radius: 0;
    transition: border-color .2s;
}
.field select { background: var(--paper); }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brass);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #E56B5A;
}
.field__error {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: #E56B5A;
    letter-spacing: 0.05em;
}
.honeypot {
    position: absolute; left: -10000px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}
.form__submit {
    margin-top: 0.6rem;
    display: flex; justify-content: flex-end;
}
.form__notice {
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--brass);
    background: var(--bone);
    font-size: 0.95rem;
}
.form__notice.is-error { border-left-color: #E56B5A; }
.form__notice strong { font-family: var(--f-display); font-weight: 600; }

/* ============ FOOTER ============ */
footer {
    background: var(--pine);
    padding-block: 2.5rem;
    border-top: 1px solid var(--rule);
}
.foot {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
}
.foot__brand {
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* ============ MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero__slide.is-active { transform: scale(1); }
}
