:root {
    --ink: #11251f;
    --forest: #18332c;
    --forest-2: #254a3f;
    --paper: #f7f5ef;
    --white: #ffffff;
    --line: #d9ded9;
    --muted: #5d6b66;
    --accent: #d8653c;
    --accent-hover: #bd4e2a;
    --sage: #a9b9a9;
    --shadow: 0 18px 45px rgba(15, 35, 29, 0.12);
    --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.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;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    color: var(--white);
    background: var(--forest);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.22);
    transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.site-header.scrolled {
    color: var(--ink);
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 24px rgba(16,38,30,.08);
}
.header-inner {
    width: var(--shell);
    min-height: 82px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.brand-logo {
    width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .32));
    transition: filter .2s ease;
}
.site-header.scrolled .brand-logo { filter: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-weight: 650; text-decoration: none; }
.site-nav > a:not(.button) { position: relative; }
.site-nav > a:not(.button)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 40px; padding: 9px 15px; background: var(--accent); color: var(--white); }
.button-primary { color: var(--white); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.site-header.scrolled .button-small { color: var(--white); }

.hero {
    position: relative;
    min-height: clamp(620px, 82vh, 800px);
    display: grid;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 58% center; }
.hero-shade { background: linear-gradient(90deg, rgba(8,25,20,.86) 0%, rgba(8,25,20,.65) 40%, rgba(8,25,20,.12) 75%); }
.hero-content { position: relative; z-index: 1; padding-top: 92px; }
.eyebrow {
    margin: 0 0 14px;
    color: #f1c0a9;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.eyebrow-dark { color: var(--accent-hover); }
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .98;
    font-weight: 500;
    letter-spacing: 0;
}
.hero-lead { max-width: 650px; margin: 27px 0 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.text-link { font-weight: 750; text-underline-offset: 5px; }
.text-link-light { color: var(--white); }

.commitments { color: var(--white); background: var(--forest); }
.commitment-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.commitment-grid div { padding: 28px 32px; border-right: 1px solid rgba(255,255,255,.16); }
.commitment-grid div:first-child { padding-left: 0; }
.commitment-grid div:last-child { border-right: 0; }
.commitment-grid strong, .commitment-grid span { display: block; }
.commitment-grid strong { font-size: 17px; }
.commitment-grid span { color: rgba(255,255,255,.72); font-size: 14px; }

.section { padding: 104px 0; }
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: end;
    gap: 70px;
    margin-bottom: 56px;
}
.section-heading.compact { margin-bottom: 36px; }
.section-heading h2, .method h2, .contact h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: 0;
}
.section-heading > p, .method-intro > p:last-child { margin: 0; color: var(--muted); font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service-card { min-height: 275px; padding: 28px 26px; border-right: 1px solid var(--line); }
.service-card:first-child { padding-left: 0; }
.service-card:last-child { border-right: 0; }
.service-number { color: var(--accent); font-size: 13px; font-weight: 800; }
.service-card h3 { margin: 80px 0 12px; font-size: 21px; line-height: 1.25; }
.service-card p { margin: 0; color: var(--muted); }

.projects { background: var(--paper); }
.project-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 22px; align-items: stretch; }
.project { position: relative; min-height: 430px; margin: 0; overflow: hidden; background: var(--forest); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project:hover img { transform: scale(1.025); }
.project figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 60px 25px 22px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(10,27,22,.8));
}
.project figcaption strong, .project figcaption span { display: block; }
.project figcaption strong { font-size: 21px; }
.project figcaption span { color: rgba(255,255,255,.78); }

.method { background: var(--white); }
.method-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.method-intro { position: sticky; top: 120px; align-self: start; }
.method-intro > p:last-child { margin-top: 24px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps > li > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--white); background: var(--forest); font-weight: 800; }
.steps h3 { margin: 0 0 5px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

.contact { color: var(--white); background: var(--forest); }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.contact-copy { position: sticky; top: 120px; }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.74); font-size: 18px; }
.contact-email { display: inline-block; margin-top: 18px; color: var(--white); font-weight: 750; text-underline-offset: 5px; }
.contact-form { position: relative; padding: 34px; color: var(--ink); background: var(--white); border-radius: 6px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: block; margin-bottom: 17px; font-size: 14px; font-weight: 750; }
.contact-form label small { color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #bfc9c4;
    border-radius: 3px;
    outline: none;
}
.contact-form input, .contact-form select { min-height: 48px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(37,74,63,.13); }
.check { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--forest); }
.button-submit { width: 100%; border: 0; }
.form-privacy { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-notice { margin-bottom: 20px; padding: 12px 14px; border-left: 4px solid; font-size: 14px; }
.form-notice.success { color: #174f35; background: #e8f6ed; border-color: #2d8057; }
.form-notice.error { color: #7d2f20; background: #fff0eb; border-color: var(--accent); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 32px 0; color: rgba(255,255,255,.72); background: #0c1c17; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; font-size: 13px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: var(--white); font-size: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-underline-offset: 4px; }
.footer-inner p { margin: 0; }

@media (max-width: 960px) {
    :root { --shell: min(100% - 32px, 760px); }
    .menu-toggle {
        width: 44px;
        height: 44px;
        display: grid;
        place-content: center;
        gap: 5px;
        color: inherit;
        background: transparent;
        border: 1px solid currentColor;
        border-radius: 3px;
    }
    .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; display: block; background: currentColor; }
    .site-nav {
        position: fixed;
        inset: 82px 0 auto;
        display: none;
        padding: 24px 20px 30px;
        color: var(--ink);
        background: var(--white);
        box-shadow: 0 20px 30px rgba(0,0,0,.12);
    }
    .site-nav.open { display: grid; gap: 18px; }
    .site-nav .button { color: var(--white); }
    .section-heading, .method-layout, .contact-layout { grid-template-columns: 1fr; gap: 38px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card:nth-child(2) { border-right: 0; }
    .service-card:first-child { padding-left: 26px; }
    .method-intro, .contact-copy { position: static; }
    .project { min-height: 360px; }
}

@media (max-width: 640px) {
    :root { --shell: calc(100% - 28px); }
    .header-inner { min-height: 72px; }
    .brand-logo { width: 180px; }
    .site-nav { inset-block-start: 72px; }
    .hero { min-height: 690px; align-items: end; }
    .hero-image { object-position: 65% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(8,25,20,.94) 0%, rgba(8,25,20,.72) 56%, rgba(8,25,20,.2) 100%); }
    .hero-content { padding-top: 110px; padding-bottom: 60px; }
    .hero h1 { font-size: 52px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
    .commitment-grid { grid-template-columns: 1fr; padding: 14px 0; }
    .commitment-grid div, .commitment-grid div:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
    .commitment-grid div:last-child { border-bottom: 0; }
    .section { padding: 72px 0; }
    .section-heading { margin-bottom: 38px; }
    .section-heading h2, .method h2, .contact h2 { font-size: 40px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card, .service-card:first-child { min-height: 0; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .service-card h3 { margin: 35px 0 8px; }
    .project-grid { grid-template-columns: 1fr; }
    .project { min-height: 330px; }
    .steps li { grid-template-columns: 44px 1fr; gap: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 23px 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-links { flex-wrap: wrap; }
}

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