:root {
    --bg: #07110d;
    --surface: rgba(8, 19, 15, .92);
    --surface-soft: rgba(13, 28, 22, .82);
    --text: #f5fbf7;
    --muted: #a7bbb0;
    --line: rgba(218, 239, 226, .19);
    --focus: #86efac;
    --mint: #5ee6a8;
    --cyan: #58d7ea;
    --yellow: #f4c95d;
    --coral: #ff8f70;
    --violet: #b8a0ff;
    --blue: #74a9ff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.scene,
.backdrop {
    height: 62vh;
    inset: 0 0 auto;
    position: absolute;
    width: 100%;
}

.scene {
    object-fit: cover;
    object-position: center 44%;
}

.backdrop {
    background: rgba(2, 10, 7, .69);
}

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    min-height: 82px;
    padding: 16px 28px;
    position: relative;
    z-index: 2;
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--mint);
    border-radius: 6px;
    color: #052014;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.brand strong,
.brand small {
    display: block;
    letter-spacing: 0;
}

.brand strong {
    font-size: 15px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.domain-nav {
    align-items: center;
    display: flex;
    gap: 4px;
}

.domain-nav a {
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px 10px;
    text-decoration: none;
}

.domain-nav a:hover,
.domain-nav a[aria-current="page"] {
    border-color: var(--mint);
    color: var(--text);
}

.menu-toggle {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: none;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 14px;
}

main {
    position: relative;
    z-index: 1;
}

.intro {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 1240px;
    min-height: 410px;
    padding: 50px 28px 86px;
}

.eyebrow {
    color: var(--mint);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

h1,
h2,
p {
    letter-spacing: 0;
}

h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    margin: 0;
    max-width: 820px;
}

.intro-copy {
    color: #d0ddd5;
    font-size: 17px;
    line-height: 1.65;
    margin: 22px 0 28px;
    max-width: 640px;
}

.primary-action {
    background: var(--mint);
    border: 1px solid var(--mint);
    border-radius: 6px;
    color: #052014;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 14px 18px;
    text-decoration: none;
}

.primary-action:hover {
    background: #95f5c6;
}

.projects {
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin: -42px auto 0;
    max-width: 1240px;
    padding: 34px 28px 38px;
    position: relative;
}

.section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-heading .eyebrow {
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 27px;
    margin: 0;
}

.section-heading > p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.status-dot {
    background: var(--mint);
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    margin-right: 7px;
    width: 8px;
}

.project-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-link {
    --accent: var(--mint);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.project-link:hover {
    background: rgba(22, 43, 34, .96);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-meta {
    color: var(--accent);
    display: flex;
    font-size: 11px;
    font-weight: 900;
    justify-content: space-between;
    letter-spacing: .08em;
    min-height: 18px;
    text-transform: uppercase;
}

.project-meta b {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.project-link > strong {
    font-size: 22px;
    line-height: 1.2;
    margin-top: 20px;
}

.project-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 10px;
}

.project-open {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    margin-top: auto;
    padding-top: 20px;
}

.project-open span {
    color: var(--accent);
    margin-left: 5px;
}

.accent-cyan { --accent: var(--cyan); }
.accent-yellow { --accent: var(--yellow); }
.accent-coral { --accent: var(--coral); }
.accent-violet { --accent: var(--violet); }
.accent-blue { --accent: var(--blue); }

footer {
    color: var(--muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    padding: 24px 28px 34px;
}

@media (max-width: 860px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .scene,
    .backdrop {
        height: 540px;
    }

    .site-header {
        min-height: 72px;
        padding: 12px 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .domain-nav {
        background: #0b1813;
        border: 1px solid var(--line);
        display: none;
        flex-direction: column;
        padding: 8px;
        position: absolute;
        right: 18px;
        top: 64px;
        width: min(270px, calc(100vw - 36px));
    }

    .domain-nav.is-open {
        display: flex;
    }

    .domain-nav a {
        width: 100%;
    }

    .intro {
        min-height: 430px;
        padding: 46px 18px 78px;
    }

    h1 {
        font-size: 39px;
        overflow-wrap: anywhere;
    }

    .intro-copy {
        font-size: 15px;
    }

    .projects {
        margin-top: -38px;
        padding: 28px 18px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

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

    .project-link {
        min-height: 188px;
    }

    footer {
        flex-direction: column;
        gap: 7px;
        padding: 22px 18px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .project-link {
        transition: none;
    }
}
