:root {
    --ink: #27231f;
    --muted: #645c55;
    --line: #ded7ce;
    --paper: #fbfaf7;
    --soft: #f0ebe3;
    --accent: #a83a1f;
    --accent-dark: #762714;
    --green: #42664a;
    --blue: #245f73;
    --white: #fff;
    --shadow: 0 18px 45px rgba(39, 35, 31, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

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

.button,
.text-link {
    text-decoration: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
    align-items: end;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    background: #2f2a25;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(99, 87, 78, 0.22) 0%, rgba(22, 18, 15, 0.4)),
        linear-gradient(0deg, rgba(22, 18, 15, 0.44), rgba(22, 18, 15, 0.05) 0%);
}

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

.hero-content {
    position: relative;
    z-index: 1;
    grid-column: 2;
    width: min(620px, calc(100vw - 2rem));
    margin: clamp(0rem, -4rem + 12.8vw, 4rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 7vw, 5rem) auto;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f0b69d;
}

h1 {
    max-width: 18ch;
    margin-bottom: 1.2rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 0rem + 6.4vw, 4rem);
    line-height: 0.95;
    font-weight: 500;
}

h2 {
    margin-bottom: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 500;
}

h3 {
    margin-bottom: 0.55rem;
    color: var(--accent-dark);
    font-size: 1.2rem;
    line-height: 1.25;
}

.lead {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1.2;
}

.button.primary {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.button.primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button.secondary {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

.hero .button.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
    color: var(--accent);
}

.intro-grid,
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.intro-card,
.work-card {
    padding: clamp(1.1rem, 3vw, 1.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(39, 35, 31, 0.07);
}

.intro-card p,
.work-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.highlight {
    background: var(--soft);
}

.highlight-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.highlight-content p {
    color: var(--muted);
    font-size: 1.12rem;
}

.text-link {
    width: fit-content;
    color: var(--accent);
    font-weight: 900;
    transition: color 0.2s ease, text-underline-offset 0.2s ease, transform 0.2s ease;
}

.text-link:hover {
    color: var(--accent-dark);
    text-underline-offset: 0.34em;
    transform: translateY(-1px);
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) auto;
    gap: 1.5rem;
    align-items: center;
    color: var(--white);
    background: var(--accent-dark);
}

.contact-band p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.84);
}

footer {
    display: grid;
    gap: 0.5rem;
    padding: 2rem clamp(1rem, 5vw, 5rem);
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-column: 1;
        margin-left: clamp(1rem, 5vw, 3rem);
    }

    .intro-grid,
    .work-grid,
    .highlight-content,
    .contact-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .hero {
        align-items: start;
        min-height: auto;
        padding-block: 3rem;
    }

    .hero-content {
        display: grid;
        gap: 1.5rem;
        margin: 0 clamp(1rem, 5vw, 3rem);
    }

    .hero-content .eyebrow,
    .hero-content h1,
    .hero-content .lead,
    .hero-actions {
        margin: 0;
    }

    .hero-media::after {
        background:
            linear-gradient(0deg, rgba(22, 18, 15, 0.3), rgba(22, 18, 15, 0.18) 60%),
            linear-gradient(90deg, rgba(22, 18, 15, 0.38), rgba(22, 18, 15, 0.28));
    }

    h1 {
        line-height: 1.25;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
