:root {
  --bg: #F4F1EA;
  --bg-alt: #EBE6DC;
  --ink: #1D1C1A;
  --muted: #77726A;
  --line: #D8D1C4;
  --accent: #8C7B62;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.label { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8em; }
.display { font: 300 clamp(40px, 6.4vw, 96px)/1.02 var(--serif); letter-spacing: -.01em; }
.display-s { font: 300 clamp(30px, 4vw, 56px)/1.1 var(--serif); }
h2 { font: 400 clamp(26px, 2.6vw, 36px)/1.15 var(--serif); }
.lead, .lead-text p { font: 300 clamp(20px, 1.8vw, 26px)/1.45 var(--serif); }
.link { display: inline-block; font-size: 13px; letter-spacing: .06em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: opacity .2s; }
.link:hover { opacity: .55; }
.btn { display: inline-block; font: 400 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 18px 30px; border: 1px solid var(--ink); transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); background: rgba(244, 241, 234, .92); backdrop-filter: blur(8px); transition: padding .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.brand { font: 400 22px/1 var(--serif); letter-spacing: .02em; }
.site-nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 13px; letter-spacing: .06em; }
.site-nav a { position: relative; padding: 4px 0; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); }
.nav-toggle { display: none; width: 28px; height: 20px; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:nth-child(1) { top: 6px; } .nav-toggle span:nth-child(2) { top: 13px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 64px 0 0; flex-direction: column; gap: 6px; padding: 32px var(--gutter); background: var(--bg); font: 300 34px/1.3 var(--serif); letter-spacing: 0; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .site-nav a { color: var(--ink); }
  .site-nav a[aria-current]::after { display: none; }
  .site-header.open .site-nav { opacity: 1; pointer-events: auto; }
  .site-header.open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { top: 10px; transform: rotate(-45deg); }
}

/* Sections */
.section { padding-top: clamp(72px, 10vw, 150px); }
.section-tight { padding-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(24px, 4vw, 48px); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Home */
.hero { padding-top: clamp(40px, 7vw, 110px); }
.hero h1 { max-width: 19ch; margin-bottom: clamp(40px, 6vw, 80px); }
.hero-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--bg-alt); }
.hero-caption { margin-top: 14px; font-size: 13px; display: flex; gap: 12px; } .hero-caption span { color: var(--muted); }
@media (max-width: 760px) { .hero-img img { aspect-ratio: 4 / 3; } }
.offices { list-style: none; padding: 0; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.offices li { font: 400 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.offices li + li::before { content: "·"; margin-right: 28px; color: var(--muted); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; padding-bottom: 40px; }
.cta h2 { max-width: 20ch; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: block; }
.card-img { overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.card-meta h3 { font: 400 22px/1.2 var(--serif); }
.card-meta p { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-cat { margin: 4px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; font-size: 13px; letter-spacing: .06em; }
.filters button { color: var(--muted); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.filters button.active, .filters button:hover { color: var(--ink); border-color: var(--ink); }

/* Project */
.project-hero img { width: 100%; height: min(78vh, 820px); object-fit: cover; background: var(--bg-alt); }
.project-body { display: grid; grid-template-columns: 5fr 3fr; gap: 32px clamp(32px, 6vw, 96px); padding-top: clamp(48px, 7vw, 100px); }
.project-title { grid-column: 1 / -1; }
.project-title h1 { font: 300 clamp(40px, 5.6vw, 84px)/1.05 var(--serif); margin-bottom: 24px; }
.project-title .lead { max-width: 34ch; color: var(--muted); }
.project-text { grid-column: 1; grid-row: 2; max-width: 62ch; }
.project-meta { grid-column: 2; grid-row: 2; margin: 0; }
.project-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.project-meta div:last-child { border-bottom: 1px solid var(--line); }
.project-meta dt { color: var(--muted); } .project-meta dd { margin: 0; text-align: right; }
@media (max-width: 800px) { .project-body { grid-template-columns: 1fr; } .project-text, .project-meta { grid-column: 1; grid-row: auto; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); padding-top: clamp(56px, 8vw, 120px); }
.gallery figure { margin: 0; } .gallery figure.wide { grid-column: 1 / -1; }
.gallery button { display: block; width: 100%; cursor: zoom-in; background: var(--bg-alt); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure.wide img { aspect-ratio: 16 / 8; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide img { aspect-ratio: 4 / 3; } }
.project-nav { padding-top: 64px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 19, 17, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; color: #F4F1EA; font: 300 44px/1 var(--serif); padding: 16px; }
.lb-close { top: 8px; right: 12px; } .lb-prev { left: 8px; } .lb-next { right: 8px; }

/* About / services */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; } .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-alt); }
.portrait figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 800px) { .approach { grid-template-columns: 1fr; } }
.num { display: block; font: 300 14px/1 var(--sans); color: var(--accent); margin-bottom: 20px; letter-spacing: .1em; }
.approach h3 { font: 400 24px/1.2 var(--serif); margin-bottom: 12px; }
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service p { margin: 0; color: var(--muted); max-width: 56ch; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: 12px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 28px; }
.contact-info p { margin: 0; } .contact-info a { border-bottom: 1px solid var(--line); }
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form .opt { text-transform: none; letter-spacing: 0; }
.form input, .form textarea { font: 300 16px/1.5 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; } .form-foot p { margin: 0; }

.prose { max-width: 70ch; } .prose h2 { font-size: 26px; margin: 40px 0 12px; } .prose a { border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { margin-top: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid p { margin: 0 0 4px; }
.footer-brand { font: 400 26px/1.2 var(--serif); }
.socials { display: flex; gap: 16px; margin-top: 10px !important; } .socials a { border-bottom: 1px solid var(--line); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; font-size: 12px; color: var(--muted); }

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .card-img img { transition: none; } }
