:root {
    --paper: #fbfaf8;
    --surface: #ffffff;
    --quiet: #f4f2ee;
    --ink: #2a2e33;
    --body: #4a4e54;
    --muted: #6b6f75;
    --soft: #8c877f;
    --faint: #b0aaa1;
    --line: #e8e5e0;
    --line-strong: #dcd8d2;
    --link: #3e5c76;
    --dark-text: #f2f0ec;
    --dark-body: #b9b5ae;
    --dark-muted: #8e8a84;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
button { font: inherit; }
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 248, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.site-nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.brand-mark, .footer-mark { font-family: 'Jost', Helvetica, sans-serif; font-size: 27px; font-weight: 200; letter-spacing: .24em; line-height: 1; }
.brand-name { color: var(--soft); font-family: 'Jost', Helvetica, sans-serif; font-size: 9px; font-weight: 300; letter-spacing: .34em; line-height: 1; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.nav-links a { position: relative; }
.nav-links a:not(.contact-link)::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; content: ''; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav-links a:not(.contact-link):hover::after { transform: scaleX(1); transform-origin: left; }
.contact-link { padding: 9px 18px; border: 1px solid #c9c4bc; border-radius: 2px; transition: background .2s, border-color .2s; }
.contact-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 5px 0; background: var(--ink); }

h1, h2, h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; }
h2 { font-size: 38px; line-height: 1.2; }
.eyebrow, .number, dt, .location { font-family: 'IBM Plex Mono', monospace; font-weight: 400; text-transform: uppercase; }
.eyebrow { margin: 0; color: var(--soft); font-size: 11px; letter-spacing: .2em; }
.section-bordered { border-top: 1px solid var(--line); }
.section-space { padding-top: 90px; padding-bottom: 100px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; margin-bottom: 64px; }

.hero { padding-top: 130px; padding-bottom: 110px; }
.hero > .eyebrow { margin-bottom: 40px; }
.hero h1 { max-width: 16ch; font-size: clamp(40px, 6vw, 76px); line-height: 1.08; letter-spacing: -.01em; text-wrap: pretty; }
.hero-lower { display: flex; align-items: flex-start; gap: 64px; margin-top: 56px; }
.hero-lower > p { max-width: 46ch; margin: 0; color: var(--body); font-size: 18px; text-wrap: pretty; }
.hero-lower ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 6px 0 0; color: var(--soft); font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em; list-style: none; text-transform: uppercase; }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.practice-grid article { min-width: 0; padding: 44px 40px 52px; background: var(--paper); }
.number { color: var(--faint); font-size: 11px; letter-spacing: .14em; }
.practice-grid h3 { margin: 22px 0 18px; font-size: 26px; font-weight: 400; line-height: 1.2; }
.practice-grid p { margin: 0 0 26px; color: var(--body); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.practice-grid ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }

.approach { background: var(--quiet); border-bottom: 1px solid var(--line); }
.approach .section-space { padding-top: 100px; }
.approach-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(420px, 1fr); gap: 60px 80px; }
.approach h2 { margin-bottom: 20px; }
.approach-grid > div > p { max-width: 34ch; margin: 0; color: var(--body); text-wrap: pretty; }
dl { margin: 0; }
.approach dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line-strong); }
.approach dl > div:last-child { border-bottom: 1px solid var(--line-strong); }
dt { padding-top: 4px; color: var(--soft); font-size: 11px; letter-spacing: .16em; }
dd { margin: 0; color: #3a3e44; text-wrap: pretty; }

.projects .section-space { padding-top: 100px; }
.projects .section-heading { margin-bottom: 56px; }
.project-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; align-items: start; padding: 56px 56px 50px; border: 1px solid #e0dcd6; background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.project-card:hover { border-color: #b7c3ce; box-shadow: 0 16px 40px rgba(42, 46, 51, .06); transform: translateY(-2px); }
.project-card > div { min-width: 0; }
.project-card h3 { margin: 20px 0; font-size: 44px; font-weight: 400; letter-spacing: .01em; line-height: 1.1; }
.project-card p { max-width: 52ch; margin: 0 0 32px; color: var(--body); font-size: 17px; text-wrap: pretty; }
.project-link { padding-bottom: 3px; border-bottom: 1px solid #b7c3ce; color: var(--link); font-size: 14px; letter-spacing: .04em; }
.project-card dl { border-top: 1px solid #eae7e2; }
.project-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eae7e2; font-size: 13px; }
.project-card dt { padding: 0; font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.project-card dd { color: #3a3e44; text-align: right; }
.confidentiality { max-width: 60ch; margin: 36px 0 0; color: var(--muted); font-size: 15px; }

.contact { background: var(--ink); color: var(--dark-text); }
.contact-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 80px; align-items: end; padding-top: 100px; padding-bottom: 90px; }
.contact h2 { max-width: 14ch; margin-bottom: 24px; font-size: 52px; line-height: 1.12; }
.contact p { max-width: 44ch; margin: 0; color: var(--dark-body); }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.email { padding-bottom: 14px; border-bottom: 1px solid #4c5158; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; overflow-wrap: anywhere; }
.email:hover { border-color: var(--dark-text); }
.location { display: flex; gap: 40px; color: var(--dark-muted); font-size: 11px; letter-spacing: .16em; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid #3b4046; color: var(--dark-muted); font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; }
.footer-mark { color: #d7d3cd; font-size: 20px; }

.error-page { min-height: 60vh; padding-top: 120px; padding-bottom: 120px; }
.error-page h1 { max-width: 12ch; margin: 18px 0; font-size: clamp(48px, 7vw, 76px); }
.error-page p:last-child { color: var(--body); }
.error-page a { border-bottom: 1px solid #b7c3ce; color: var(--link); }

@media (max-width: 900px) {
    .hero { padding-top: 96px; padding-bottom: 88px; }
    .section-space, .approach .section-space, .projects .section-space { padding-top: 76px; padding-bottom: 82px; }
    .practice-grid { grid-template-columns: 1fr; }
    .practice-grid article { padding: 38px 32px 42px; }
    .approach-grid, .contact-inner { grid-template-columns: 1fr; }
    .project-card { grid-template-columns: 1fr; padding: 42px 38px; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 74px; }
    .shell { padding-inline: 22px; }
    .site-nav { min-height: 74px; }
    .brand-mark { font-size: 23px; }
    .brand-name { font-size: 8px; }
    .nav-toggle { display: block; }
    .nav-links { position: absolute; top: 74px; right: 14px; left: 14px; display: none; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 40px rgba(42, 46, 51, .1); white-space: normal; }
    .nav-links.open { display: flex; flex-direction: column; }
    .nav-links a { padding: 12px 10px; }
    .contact-link { margin-top: 6px; text-align: center; }
    .hero { padding-top: 72px; padding-bottom: 72px; }
    .hero > .eyebrow { margin-bottom: 28px; }
    .hero h1 { font-size: clamp(43px, 13vw, 62px); }
    .hero-lower { flex-direction: column; gap: 34px; margin-top: 42px; }
    .hero-lower > p { font-size: 17px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 42px; }
    .practice-grid article { padding: 34px 24px 38px; }
    .approach dl > div { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
    .project-card { padding: 30px 24px; }
    .project-card h3 { font-size: 38px; }
    .project-card dl > div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .project-card dd { text-align: left; }
    .contact-inner { padding-top: 76px; padding-bottom: 68px; }
    .contact h2 { font-size: 44px; }
    .location { flex-direction: column; gap: 8px; }
    .footer-inner { align-items: flex-start; flex-direction: column; padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
