:root {
    --bg: #07141f;
    --bg-raised: #10283a;
    --ink: #f4efe6;
    --muted: #b7c4cf;
    --copper: #d08a4c;
    --copper-deep: #a86a32;
    --line: rgba(244, 239, 230, 0.14);
    --paper: #f6f1e8;
    --paper-ink: #1c140e;
    --danger: #8c2c2c;
    --ok: #1d6b45;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Sora", "Segoe UI", sans-serif;
    --wrap: min(1120px, calc(100% - 3rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(208, 138, 76, 0.16), transparent 60%),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, p {
    margin: 0;
}

button, input, textarea {
    font: inherit;
}

a {
    color: inherit;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--copper);
    color: #1a1008;
    padding: 0.5rem 0.8rem;
    z-index: 30;
}

.skip:focus {
    top: 1rem;
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--copper);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: var(--wrap);
    margin: 0 auto;
    padding: 1.15rem 0;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.wordmark-mark {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    background: var(--copper);
    color: #1a1008;
    font-family: var(--serif);
    font-size: 1.45rem;
}

.wordmark-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.wordmark-text strong {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.wordmark-text small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
}

.button,
.nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--copper);
    color: #1a1008;
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
}

.button:hover,
.nav-contact:hover {
    background: #e0a066;
}

.button.ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}

.button.ghost:hover {
    background: rgba(244, 239, 230, 0.06);
}

.hero {
    padding: 2.5rem 0 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 3rem;
    align-items: end;
}

h1 {
    font-family: var(--serif);
    font-size: clamp(3.1rem, 6.4vw, 5.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

h1 em {
    color: var(--copper);
    font-style: italic;
}

.lede {
    max-width: 38rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.hero-panel {
    border: 1px solid var(--line);
    border-radius: 1.3rem;
    background: rgba(16, 40, 58, 0.72);
    padding: 1.3rem 1.3rem 0.6rem;
}

.panel-kicker {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel ol {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
}

.hero-panel li {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    padding: 0.72rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.02rem;
}

.hero-panel span {
    color: var(--copper);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.section-head {
    max-width: 38rem;
    margin-bottom: 1.5rem;
}

.section-head h2,
.cta h2,
.form-head h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.services,
.why,
.approach {
    padding: 1rem 0 4rem;
}

.feature {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    padding: 1.6rem 0 1.8rem;
    border-top: 1px solid var(--line);
}

.feature h3,
.service-grid h3,
.why h3,
.steps h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature p,
.service-grid p,
.why p,
.steps p,
.cta p,
.site-footer p {
    color: var(--muted);
}

.feature p:last-child,
.service-grid article p:last-child,
.why article p,
.steps p {
    margin-top: 0.45rem;
}

.feature .num,
.service-grid .num {
    color: var(--copper);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service-grid article {
    padding: 1.45rem 1.5rem 1.55rem 0;
    border-top: 1px solid var(--line);
}

.service-grid article:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.service-grid article:nth-child(odd) {
    padding-right: 1.5rem;
}

.why-grid,
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.why article,
.steps li {
    padding-top: 1rem;
    border-top: 2px solid var(--copper);
}

.steps span {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--copper);
    font-family: var(--serif);
    font-size: 1.8rem;
}

.cta {
    padding-bottom: 4.5rem;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    padding: 2rem;
    border-radius: 1.4rem;
    background:
        linear-gradient(160deg, rgba(208, 138, 76, 0.18), transparent 42%),
        var(--bg-raised);
}

.cta-inner p {
    max-width: 36rem;
    margin-top: 0.8rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.mail-link {
    color: var(--copper);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.4rem 0 1.4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 2rem;
}

.site-footer .footer-name,
.site-footer .footer-label {
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.footer-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-button {
    margin-top: 0.7rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--copper);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a,
.site-footer a {
    color: var(--ink);
}

.legal {
    padding: 2.5rem 0 5rem;
    width: min(44rem, var(--wrap));
}

.legal h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.legal-meta,
.legal p {
    color: var(--muted);
    margin-top: 1rem;
}

.legal h2 {
    margin-top: 2.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal a {
    color: var(--copper);
}

.contact-dialog {
    width: min(42rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--paper-ink);
    overflow: auto;
}

.contact-dialog::backdrop {
    background: rgba(4, 10, 16, 0.78);
}

.form-card {
    background: var(--paper);
    border-radius: 1.2rem;
    padding: 1.3rem 1.3rem 1.5rem;
}

.form-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-head .eyebrow {
    color: var(--copper-deep);
}

.form-head h2 {
    color: var(--paper-ink);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.icon-close {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 20, 14, 0.06);
    color: var(--paper-ink);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.field {
    margin-bottom: 0.8rem;
}

.field label,
.consent label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(28, 20, 14, 0.16);
    border-radius: 0.7rem;
    background: #fffdf9;
    color: var(--paper-ink);
    padding: 0.7rem 0.75rem;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--copper);
    border-color: transparent;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error,
.form-banner {
    margin: 0.35rem 0 0.6rem;
    color: var(--danger);
    font-size: 0.88rem;
}

.form-banner.is-ok {
    color: var(--ok);
    margin-bottom: 1rem;
}

.consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.4rem 0 0.3rem;
}

.consent input {
    margin-top: 0.25rem;
}

.fine-print {
    margin: 0 0 1rem;
    color: #5e5348;
    font-size: 0.86rem;
}

.fine-print a {
    color: var(--copper-deep);
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .hero-grid,
    .why-grid,
    .steps,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    :root {
        --wrap: min(1120px, calc(100% - 2rem));
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% - 0.25rem);
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.85rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: #0d2233;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-contact {
        width: 100%;
    }

    .hero-grid,
    .service-grid,
    .why-grid,
    .steps,
    .footer-grid,
    .form-row,
    .cta-inner,
    .footer-bar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .service-grid article:nth-child(even),
    .service-grid article:nth-child(odd) {
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
    }

    .cta-inner,
    .footer-bar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: clamp(2.6rem, 12vw, 3.6rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
