:root {
    --bg: #f5f1e8;
    --surface: #fcfbf7;
    --text: #1f2328;
    --muted: #5f6870;
    --line: #e7dfd0;
    --accent: #4a5560;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    border-bottom: 1px solid var(--line);
    background: #f7f2e9;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    color: var(--muted);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
    padding: 3.5rem 0 4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.7rem;
}

.hero h1 {
    font-size: clamp(2rem, 3.3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 0.8rem;
    font-weight: 600;
}

.hero-text,
.section-lead,
.about-block p,
.project-card p,
.footer h2 {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid var(--line);
    transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--surface);
}

.btn-primary {
    background: var(--text);
    color: #f8f4ec;
    border-color: var(--text);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
}

.about-block,
.project-card,
.project-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.hero-panel {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.embed-shell {
    display: inline-block;
    width: 482px;
    height: 412px;
    overflow: hidden;
}

.embed-shell iframe {
    display: block;
    width: 482px;
    height: 412px;
    border: 0;
}

.panel-label {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.panel-text {
    margin: 0;
    color: var(--text);
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: #f2ebde;
}

.section-heading {
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 0;
    font-weight: 600;
}

.about-block {
    padding: 1.3rem 1.4rem;
    margin-top: 1.2rem;
}

.project-list {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.project-row {
    display: grid;
    grid-template-columns: 482px 1fr;
    gap: 1.2rem;
    padding: 1rem;
    align-items: start;
}

.project-embed {
    width: 482px;
    height: 412px;
    overflow: hidden;
    background: #fcfbf7;
    border-radius: 0.8rem;
}

.project-embed iframe {
    display: block;
    width: 482px;
    height: 412px;
    border: 0;
}

.project-copy {
    padding: 0.2rem 0.2rem 0.2rem 0;
}

.project-copy h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.project-copy p {
    margin: 0;
    color: var(--muted);
}

.footer {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 800px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-row {
        grid-template-columns: 1fr;
    }

    .embed-shell,
    .project-embed {
        width: min(100%, 482px);
        max-width: 482px;
    }

    .embed-shell iframe,
    .project-embed iframe {
        width: 100%;
        height: min(70vw, 412px);
        max-width: 482px;
        max-height: 412px;
        vertical-align: bottom;
    }

    .project-embed {
        justify-self: start;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(960px, calc(100% - 1.5rem));
    }

    .nav {
        flex-direction: column;
        gap: 0.7rem;
        padding: 1rem 0 0.9rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-content {
        padding: 1.25rem 0 1.75rem;
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

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

    .section {
        padding: 1.4rem 0;
    }

    .section-alt {
        padding-top: 1.2rem;
        padding-bottom: 1.4rem;
    }

    .about-block,
    .project-row {
        padding: 0.9rem;
    }

    .project-list {
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .project-row {
        gap: 0.75rem;
    }

    .embed-shell,
    .project-embed {
        height: auto;
        line-height: 0;
        font-size: 0;
    }

    .project-embed {
        width: 100%;
    }

    .project-copy {
        padding: 0;
    }

    .btn {
        width: 100%;
        max-width: 220px;
    }
}