:root {
    --ink: #111;
    --paper: #fff;
    --muted: #505050;
    --line: #dadada;
    --night: #0a0a0a;
    --gutter: clamp(1.25rem, 5vw, 5rem);
    --space: clamp(4rem, 9vw, 8rem);
    font-family: Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

:lang(zh-CN) {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[id] { scroll-margin-block-start: 1rem; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.frame {
    width: min(100% - var(--gutter) * 2, 77rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: var(--gutter);
    padding: .65rem 1rem;
    background: var(--paper);
    transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header, .hero {
    background: var(--night);
    color: var(--paper);
}

.navigation {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1rem, 4vw, 4rem);
    min-height: 5rem;
}

.navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    text-decoration: none;
}
.navigation a:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu-toggle { display: none; }
.wordmark { font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.wordmark span { margin-inline-start: .1em; }
.nav-links { display: flex; justify-content: flex-end; gap: clamp(1rem, 3vw, 2.5rem); }
.nav-links, .language { font-size: .875rem; }
.language {
    justify-content: flex-end;
    min-width: 2.75rem;
    gap: .85rem;
}

.language::before {
    content: "";
    height: 1.1rem;
    border-inline-start: 1px solid #666;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: center;
    min-height: clamp(30rem, 72svh, 47rem);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 0 0 37%;
    /* Lions Gate Bridge, Luke Miller / Pexels (photo 18569414). */
    background: url("assets/lions-gate-bridge-fog.jpg") center 29% / cover no-repeat;
    filter: grayscale(1);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, var(--night) 37%, rgb(10 10 10 / 76%) 50%, rgb(10 10 10 / 24%) 73%, rgb(10 10 10 / 12%)),
        linear-gradient(0deg, rgb(10 10 10 / 45%), transparent 48%);
}

.hero-content { padding-block: 4.5rem; }
.hero h1 {
    max-width: 13ch;
    font-size: clamp(3.1rem, 8.3vw, 8rem);
    font-weight: 700;
    line-height: .99;
    letter-spacing: -.075em;
}

.hero h1:lang(zh-CN) {
    max-width: 9em;
    font-size: clamp(3rem, 6.6vw, 6.5rem);
    line-height: 1.12;
    letter-spacing: -.055em;
    word-break: keep-all;
}
.hero p {
    max-width: 33rem;
    margin-top: 1.75rem;
    color: #ececec;
    font-size: clamp(1.05rem, 1.85vw, 1.3rem);
}

.section-space { padding-block: var(--space); }
.section-title {
    font-size: clamp(2.4rem, 5.1vw, 5rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.065em;
}

.section-title:lang(zh-CN) { line-height: 1.16; letter-spacing: -.045em; }
.offering, .work-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(2rem, 6vw, 6rem);
}

.offer-list { border-top: 1px solid var(--ink); }
.offer { border-bottom: 1px solid var(--line); padding-block: 1.5rem; }
.offer h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); letter-spacing: -.035em; }
.offer p, .work-copy > p:not(.section-label) { max-width: 43ch; color: var(--muted); }
.offer h3 + p, .trade h4 + p { margin-top: .45rem; }
.trade {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-inline-start: 1rem;
    border-inline-start: 1px solid var(--line);
}

.trade h4 { font-size: 1rem; font-weight: 700; }
.work { background: #f2f2f2; }
.work-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    align-items: center;
}

.section-label { font-size: .875rem; font-weight: 600; margin-bottom: 1.2rem; }
.work-copy .section-title { max-width: 12ch; }
.work-copy > p:not(.section-label) { margin-top: 1.2rem; font-size: 1.0625rem; }
.work-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(1);
}

.contact {
    padding-block: clamp(3rem, 6vw, 5rem) 2rem;
    background: var(--night);
    color: var(--paper);
}

.email {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: .5rem;
    text-underline-offset: .25em;
}
.footer-name { margin-top: 3rem; color: #b5b5b5; font-size: .875rem; }

@media (max-width: 46rem) {
    :root { --space: clamp(3.25rem, 9vw, 4rem); }
    .navigation { min-height: 0; padding-block: .4rem; gap: 0 .75rem; }
    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0 clamp(.85rem, 4.5vw, 2rem);
    }
    .language { grid-column: 3; grid-row: 1; }
    .navigation[data-menu-ready] {
        position: relative;
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
    .navigation[data-menu-ready] .wordmark { justify-self: start; }
    .navigation[data-menu-ready] .menu-toggle {
        display: grid;
        grid-column: 2;
        grid-row: 1;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }
    .menu-toggle svg { width: 1.25rem; height: 1.25rem; }
    .navigation[data-menu-ready] .nav-links {
        display: none;
        position: absolute;
        grid-area: auto;
        z-index: 2;
        top: 100%;
        inset-inline-end: 0;
        width: min(100%, 17rem);
        padding: .5rem 1rem;
        background: var(--night);
    }
    .navigation[data-menu-ready] .menu-toggle[aria-expanded="true"] + .nav-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .hero {
        align-items: end;
        min-height: clamp(26rem, 69svh, 36rem);
    }
    .hero::before { inset: 0 0 20%; background-position: center 30%; }
    .hero::after {
        background: linear-gradient(180deg, rgb(10 10 10 / 12%) 8%, rgb(10 10 10 / 24%) 30%, rgb(10 10 10 / 92%) 72%, var(--night) 95%);
    }
    .hero-content { padding-block: clamp(9rem, 40svh, 17rem) 2.5rem; }
    .hero h1 {
        font-size: clamp(2.55rem, 10.5vw, 5rem);
        line-height: 1.02;
        text-wrap: balance;
    }
    .hero h1:lang(zh-CN) { font-size: clamp(2.5rem, 10vw, 4.6rem); }
    .hero p { max-width: 32ch; margin-top: 1rem; }
    .hero p:lang(zh-CN) { max-width: 25em; }
    .desktop-break { display: none; }
    .offering, .work-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .section-title { font-size: clamp(2.15rem, 8vw, 3.75rem); }
    .offer { padding-block: 1.2rem; }
    .work-copy .section-title { max-width: 16ch; text-wrap: balance; }
    .work-image { aspect-ratio: 16 / 10; }
    .footer-name { margin-top: 1.5rem; }
}
