@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --color-line: #e4e2de;
    --color-surface: #f2f0ec;
    --color-accent: #1a1a1a;
    --header-h: 88px;
    --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', Arial, sans-serif;
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-bottom: 18px;
}

.lede {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 620px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border: 1px solid var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover { background: var(--color-text); color: #fff; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-line);
}

.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-weight: 500;
}

.logo span { font-weight: 300; opacity: 0.55; }

.nav-links {
    display: flex;
    gap: 44px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: #3d3d3d;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.nav-links a.active {
    color: var(--color-text);
    font-weight: 700;
    border-bottom-width: 2px;
    border-color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-text);
}

/* Image placeholder blocks — swap for <img> tags once real photography is ready */
.img-placeholder {
    position: relative;
    width: 100%;
    background:
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(0,0,0,0.035) 18px 19px),
        var(--color-surface);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.img-placeholder.photo-fill {
    background-image: none;
    background-size: cover;
    background-position: center;
}

.img-placeholder.photo-fill::after { display: none; }

.img-placeholder::after {
    content: attr(data-label);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    padding: 16px 20px;
}

/* Hero */
.hero {
    height: 88vh;
    min-height: 560px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,20,20,0.35) 0%, rgba(20,20,20,0.65) 100%);
}

.hero.img-placeholder::after { display: none; }

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px 70px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-content { max-width: 640px; color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,0.75); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.85); margin-top: 18px; max-width: 520px; }
.hero .btn { margin-top: 32px; border-color: #fff; color: #fff; }
.hero .btn:hover { background: #fff; color: var(--color-text); }

/* Page banner (non-home pages) */
.page-banner {
    padding: 90px 0 60px;
    border-bottom: 1px solid var(--color-line);
}

/* Sections */
section { padding: 110px 0; }
section.tight { padding: 80px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.bg-surface { background: var(--color-surface); }

/* Two column */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.split .img-placeholder { aspect-ratio: 4/5; }
.split.reverse .img-placeholder { order: 2; }
.split .img-placeholder.story-photo { aspect-ratio: 3/2; }

.team-row + .team-row { margin-top: 90px; }
.team-role { margin: 10px 0 20px; }

/* Services / values grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.card-num {
    font-size: 0.8rem;
    color: var(--color-muted);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: block;
}

/* Works filter */
.works-filter {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 26px;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--color-muted);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-text);
    border-color: var(--color-text);
}

.work-card.is-hidden { display: none; }

/* Featured works grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.work-card .img-placeholder { aspect-ratio: 4/3; margin-bottom: 20px; }
.work-card h3 { margin-bottom: 6px; }
.work-card .work-meta { color: var(--color-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Service rows (design page) */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    padding: 70px 0;
    border-top: 1px solid var(--color-line);
}

.service-row:last-child { border-bottom: 1px solid var(--color-line); }
.service-row .img-placeholder { aspect-ratio: 4/3; }
.service-row.reverse .img-placeholder { order: 2; }

/* Process steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step { border-top: 1px solid var(--color-line); padding-top: 26px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.info-list { margin-top: 40px; }
.info-list li { margin-bottom: 26px; }
.info-list .label {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    margin-bottom: 6px;
}

form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--color-muted);
}

.field input,
.field textarea {
    border: none;
    border-bottom: 1px solid var(--color-line);
    padding: 10px 2px;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-line);
    padding: 70px 0 34px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-top h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--color-muted);
    margin-bottom: 20px;
}

.footer-top li { margin-bottom: 12px; }
.footer-bottom {
    border-top: 1px solid var(--color-line);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--color-muted);
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    body.nav-open .nav-links {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px 40px;
    }

    body.nav-open .nav-links a {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid var(--color-line);
    }

    .split, .contact-grid, .service-row, .service-row.reverse {
        grid-template-columns: 1fr;
    }

    .service-row .img-placeholder { order: 0; }

    .grid-3, .works-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    section { padding: 70px 0; }
    .page-banner { padding: 70px 0 40px; }
    .container { padding: 0 24px; }
}
