:root {
    --background: #0c1117;
    --surface: #131a22;
    --surface-soft: #18212b;
    --text: #f3f6f8;
    --muted: #9daab6;
    --accent: #78d6b0;
    --accent-dark: #071f18;
    --border: rgba(255, 255, 255, 0.1);
    --max-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
a { color: inherit; }
.site-header, main, footer { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.brand {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-weight: 750;
    text-decoration: none;
    letter-spacing: -0.04em;
}
nav, .footer-links, .actions { display: flex; }
nav { gap: 12px; }
nav a, .footer-links a { color: var(--muted); font-size: 0.98rem; text-decoration: none; }
nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; font-weight: 650; }
nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:focus-visible, nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.anchor-alias { position: absolute; transform: translateY(-88px); }
.hero {
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 88px 0;
}
.eyebrow, .section-label, .project-number, .tags {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 980px;
    margin-bottom: 28px;
    font-size: clamp(3rem, 7.2vw, 6.7rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}
.intro {
    max-width: 700px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.actions { flex-wrap: wrap; gap: 14px; }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-dark); }
.button.primary:hover { background: #96e3c4; }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(48px, 10vw, 128px);
    padding: 112px 0;
    border-top: 1px solid var(--border);
}
h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}
.section-copy { color: var(--muted); font-size: 1.08rem; }
.section-copy p:last-child { margin-bottom: 0; }
.work-section { display: block; }
.section-heading { max-width: 690px; margin-bottom: 48px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.project-card:hover { border-color: rgba(120, 214, 176, 0.45); background: var(--surface-soft); }
.project-card h3 { margin-bottom: 16px; font-size: 1.45rem; letter-spacing: -0.025em; }
.project-card > p:not(.project-number, .tags) { color: var(--muted); }
.tags, .text-link { margin-top: auto; margin-bottom: 0; }
.text-link { color: var(--text); font-weight: 700; text-decoration: none; }
.muted-card { background: transparent; }
footer {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    color: var(--muted);
}
footer p { margin-bottom: 0; }
.footer-links { gap: 22px; }
.archive-hero { max-width: 850px; padding: 120px 0 72px; }
.archive-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-bottom: 112px;
}
.archive-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
}
.archive-card span { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.archive-card strong { max-width: 360px; font-size: 1.45rem; line-height: 1.25; }
.archive-card:hover { border-color: rgba(120, 214, 176, 0.45); background: var(--surface-soft); }
@media (max-width: 820px) {
    .hero { min-height: auto; padding: 100px 0; }
    .section { grid-template-columns: 1fr; gap: 24px; padding: 88px 0; }
    .project-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .project-card { min-height: 270px; }
}
@media (max-width: 560px) {
    .site-header, main, footer { width: min(calc(100% - 32px), var(--max-width)); }
    .site-header { position: relative; }
    .menu-toggle { display: block; }
    nav { position: absolute; top: calc(100% - 1px); right: 0; z-index: 20; width: min(290px, calc(100vw - 32px)); display: none; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 22px 50px rgba(0,0,0,.35); }
    nav.open { display: flex; }
    nav a { width: 100%; min-height: 48px; padding: 0 14px; font-size: 0.95rem; }
    h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
    footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .menu-toggle span { transition: none; } }
