:root {
    --paper: #f7f0e6;
    --paper-deep: #eadfce;
    --ink: #211d19;
    --muted: #6f655b;
    --line: rgba(33, 29, 25, 0.14);
    --copper: #9a5738;
    --forest: #334d43;
    --ivory: #fffaf1;
    --shadow: 0 24px 70px rgba(42, 31, 22, 0.14);
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(255, 250, 241, 0.7), rgba(255, 250, 241, 0.92)),
        radial-gradient(circle at 15% 15%, rgba(154, 87, 56, 0.1), transparent 34rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.22;
    background-image:
        linear-gradient(90deg, rgba(33, 29, 25, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(33, 29, 25, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 5vw;
    border-bottom: 1px solid rgba(33, 29, 25, 0.09);
    background: rgba(247, 240, 230, 0.88);
    backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.site-footer nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 0.75rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 650;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--copper);
    font-family: var(--serif);
    box-shadow: 0 10px 26px rgba(42, 31, 22, 0.08);
}

.main-nav {
    gap: 1.4rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.main-nav a:hover,
.site-footer a:hover {
    color: var(--ink);
}

.nav-cta {
    padding: 0.72rem 1rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(3rem, 6vw, 6rem) 5vw clamp(4rem, 7vw, 7rem);
}

.page-hero {
    min-height: 58vh;
    padding: clamp(5rem, 9vw, 9rem) 5vw clamp(4rem, 7vw, 7rem);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 1040px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.page-hero .button {
    margin-top: 1rem;
}

.page-hero-dark {
    background:
        linear-gradient(135deg, rgba(154, 87, 56, 0.16), transparent 38rem),
        var(--forest);
    color: var(--ivory);
}

.page-hero-dark .eyebrow {
    color: #e5ad79;
}

.page-hero-dark p:not(.eyebrow) {
    color: rgba(255, 250, 241, 0.76);
}

.page-hero-dark .button-primary,
.rescue .button-primary,
.site-footer .button-primary {
    border-color: var(--ivory);
    background: var(--ivory);
    color: var(--ink);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--copper);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 650;
    line-height: 0.98;
}

h1 {
    max-width: 760px;
    margin-bottom: 1.5rem;
    font-size: clamp(3.7rem, 7vw, 7.8rem);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 4.5vw, 5rem);
}

h3 {
    margin-bottom: 0.75rem;
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1.08;
}

.hero-lede {
    max-width: 680px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.hero-actions {
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.84rem 1.12rem;
    border: 1px solid var(--ink);
    font-weight: 800;
}

.button-primary {
    background: var(--ink);
    color: var(--ivory);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 250, 241, 0.62);
}

.hero-visual {
    position: relative;
    margin: 0;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(33, 29, 25, 0.12);
    box-shadow: var(--shadow);
}

.statement,
.section,
.rescue,
.workspace-preview,
.contact,
.site-footer {
    padding-inline: 5vw;
}

.statement {
    padding-block: clamp(4rem, 8vw, 8rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.42);
}

.statement p {
    max-width: 1120px;
    margin: 0 auto;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 4.6rem);
    line-height: 1.08;
}

.section {
    padding-block: clamp(4.5rem, 8vw, 8rem);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.75fr);
    gap: clamp(2rem, 6vw, 6rem);
}

.text-stack {
    align-self: end;
    color: var(--muted);
    font-size: 1.1rem;
}

.text-stack .button {
    margin-top: 1rem;
}

.section-heading {
    max-width: 850px;
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-grid article {
    min-height: 330px;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    background: rgba(255, 250, 241, 0.72);
}

.service-grid span {
    display: inline-block;
    margin-bottom: 3rem;
    color: var(--copper);
    font-weight: 800;
}

.service-grid p,
.rescue-copy,
.process-list span,
.workspace-preview p,
.site-footer p {
    color: var(--muted);
}

.path-grid,
.flow-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-grid article,
.flow-grid article {
    padding: clamp(1.4rem, 3vw, 2.4rem);
    background: rgba(255, 250, 241, 0.78);
}

.path-grid article {
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.mode-label {
    align-self: flex-start;
    margin-bottom: 2rem;
    padding: 0.34rem 0.58rem;
    border: 1px solid rgba(154, 87, 56, 0.26);
    color: var(--copper);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.path-grid p,
.flow-grid p {
    color: var(--muted);
}

.path-grid a {
    margin-top: auto;
    color: var(--ink);
    font-weight: 850;
}

.path-grid a::after {
    content: " ->";
    color: var(--copper);
}

.flow-grid span {
    display: inline-block;
    margin-bottom: 2.5rem;
    color: var(--copper);
    font-weight: 850;
}

.rescue {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
    gap: clamp(2rem, 6vw, 6rem);
    padding-block: clamp(4.5rem, 8vw, 8rem);
    background: var(--forest);
    color: var(--ivory);
}

.compact-rescue {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.rescue .eyebrow {
    color: #e5ad79;
}

.rescue-copy {
    align-self: end;
    color: rgba(255, 250, 241, 0.77);
    font-size: 1.1rem;
}

.rescue-copy strong {
    color: var(--ivory);
}

.cta-band {
    max-width: 980px;
}

.cta-band h2 {
    max-width: 860px;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-list li {
    padding-top: 1.25rem;
    border-top: 2px solid var(--ink);
}

.process-list strong {
    display: block;
    margin-bottom: 0.65rem;
    font-family: var(--serif);
    font-size: 1.45rem;
}

.workspace-preview {
    max-width: 980px;
    padding-block: clamp(4rem, 7vw, 7rem);
}

.workspace-preview p:last-child {
    max-width: 760px;
    font-size: 1.1rem;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.75fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    padding-block: clamp(4.5rem, 8vw, 8rem);
    border-top: 1px solid var(--line);
}

.page-contact {
    min-height: 68vh;
    border-top: 0;
}

.page-contact h1 {
    margin-bottom: 1rem;
}

.page-contact p:not(.eyebrow) {
    max-width: 580px;
    color: var(--muted);
    font-size: 1.15rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.74);
    box-shadow: 0 18px 60px rgba(42, 31, 22, 0.08);
}

label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(33, 29, 25, 0.18);
    background: var(--ivory);
    color: var(--ink);
    font: inherit;
    padding: 0.85rem 0.9rem;
}

textarea {
    resize: vertical;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 2.5rem;
    border-top: 1px solid rgba(255, 250, 241, 0.14);
    background:
        linear-gradient(135deg, rgba(154, 87, 56, 0.12), transparent 36rem),
        #1c211d;
    color: rgba(255, 250, 241, 0.68);
}

.site-footer strong {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 1.35rem;
}

.site-footer p {
    max-width: 420px;
    margin: 0.35rem 0 0;
}

.site-footer nav {
    gap: 1rem;
    font-weight: 700;
}

.site-footer a {
    color: rgba(255, 250, 241, 0.76);
}

.site-footer a:hover {
    color: var(--ivory);
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
    }

    .hero,
    .rescue,
    .contact,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .hero-visual img {
        aspect-ratio: 16 / 10;
    }

    .service-grid,
    .path-grid,
    .flow-grid,
    .process-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
        padding-inline: 1rem;
    }

    .brand span:last-child {
        font-size: 1.05rem;
    }

    .nav-cta {
        display: none;
    }

    .hero,
    .page-hero,
    .statement,
    .section,
    .rescue,
    .workspace-preview,
    .contact,
    .site-footer {
        padding-inline: 1rem;
    }

    h1 {
        font-size: clamp(3rem, 18vw, 4.2rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .service-grid,
    .path-grid,
    .flow-grid,
    .process-list {
        grid-template-columns: 1fr;
    }

    .service-grid article,
    .path-grid article {
        min-height: 250px;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-footer nav {
        align-items: flex-start;
        flex-direction: column;
    }
}
