:root {
  --ink: #0f0f0d;
  --ink-2: #181815;
  --ink-3: #23231f;
  --stone: #f3efe8;
  --stone-2: #e8e2d7;
  --paper: #faf8f4;
  --text: #1b1b18;
  --muted: #6f6b62;
  --muted-light: #a9a497;
  --line: rgba(27, 27, 24, .12);
  --line-light: rgba(243, 239, 232, .14);
  --olive: #6b7a3a;
  --olive-2: #97a067;
  --olive-pale: #c5c9a5;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--olive); color: var(--stone); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .eyebrow.light { color: var(--olive-pale); }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--olive-2); }
.h-xl { font-size: clamp(42px, min(7.6vw, 11vh), 116px); letter-spacing: -.045em; }
.h-lg { font-size: clamp(36px, 4.8vw, 72px); }
.h-md { font-size: clamp(28px, 3vw, 44px); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--muted); max-width: 54ch; }
.dark .lead { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  border: 1px solid currentColor;
  background: transparent; color: inherit;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn-solid { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.btn-solid:hover { background: var(--olive); border-color: var(--olive); color: var(--stone); }
.btn-ghost { color: var(--stone); border-color: rgba(243, 239, 232, .4); }
.btn-ghost:hover { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.btn-dark { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.btn-dark:hover { background: var(--olive); border-color: var(--olive); }

.link-line {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px; position: relative;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--stone);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; transition: height .5s var(--ease); }
.site-header.scrolled { background: rgba(15, 15, 13, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-light); }
.site-header.scrolled .wrap { height: 76px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a:not(.btn) { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; opacity: .82; transition: opacity .3s; }
.nav a:not(.btn):hover { opacity: 1; }
.nav .btn { padding: 13px 22px; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--stone); background: var(--ink); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 2.8s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,13,.6) 0%, rgba(15,15,13,0) 26%),
    linear-gradient(90deg, rgba(15,15,13,.72) 0%, rgba(15,15,13,.4) 45%, rgba(15,15,13,0) 75%),
    linear-gradient(0deg, rgba(15,15,13,.95) 0%, rgba(15,15,13,.6) 40%, rgba(15,15,13,.15) 72%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { margin: 24px 0 0; max-width: 12ch; }
.hero h1 em { color: var(--olive-pale); }
.hero h1 { text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.hero-title { max-width: none !important; font-size: clamp(30px, min(7.2vw, 11vh), 112px); }
.hero-title span { display: block; white-space: nowrap; }
.hero-content { padding-top: 120px; }
.hero-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-top: clamp(36px, 5vh, 64px); padding-top: 32px; border-top: 1px solid var(--line-light);
}
.hero-foot p { margin: 0; max-width: 46ch; color: rgba(243,239,232,.78); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243,239,232,.6); display: flex; align-items: center; gap: 16px;
}
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--stone), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* Page hero (gallery) */
.page-hero { min-height: 72vh; }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding: clamp(96px, 13vw, 200px) 0; }
.dark { background: var(--ink); color: var(--stone); }
.stone { background: var(--stone); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.intro-grid h2 { margin-top: 28px; }
.intro-body p { margin: 0 0 22px; }
.intro-body .lead { color: var(--text); font-size: clamp(20px, 1.8vw, 26px); font-family: var(--serif); line-height: 1.4; letter-spacing: -.015em; font-weight: 500; max-width: 36ch; }
.intro-body p:not(.lead) { color: var(--muted); max-width: 52ch; }
.signature { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.signature img { width: 54px; height: 54px; object-fit: contain; }
.signature strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.signature span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(72px, 9vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat .num { font-family: var(--serif); font-size: clamp(52px, 5.4vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.stat .num sup { font-size: .4em; color: var(--olive); vertical-align: top; position: relative; top: .3em; margin-left: 2px; }
.stat .label { margin-top: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Wide image band */
.band { height: clamp(420px, 82vh, 900px); overflow: hidden; position: relative; }
.band img { width: 100%; height: 125%; object-fit: cover; will-change: transform; }
.band-caption {
  position: absolute; left: var(--gutter); bottom: 32px; color: var(--stone);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

/* Capabilities */
.cap-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(48px, 6vw, 96px); flex-wrap: wrap; }
.cap-head h2 { margin-top: 28px; max-width: 14ch; }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); position: relative; }
.cap-item {
  display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 24px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-light);
  position: relative; cursor: default;
}
.cap-item .idx { font-size: 12px; letter-spacing: .2em; color: var(--muted-light); }
.cap-item h3 { font-size: clamp(28px, 3.6vw, 54px); transition: transform .6s var(--ease), color .4s; }
.cap-item p { margin: 0; color: var(--muted-light); font-size: 15px; max-width: 40ch; transition: color .4s; }
.cap-item .arrow { width: 28px; height: 28px; opacity: .4; transition: transform .6s var(--ease), opacity .4s; }
.cap-item:hover h3 { transform: translateX(16px); color: var(--olive-pale); }
.cap-item:hover p { color: var(--stone); }
.cap-item:hover .arrow { opacity: 1; transform: rotate(-45deg); }
.cap-preview {
  position: fixed; top: 0; left: 0; width: 340px; aspect-ratio: 4/5; pointer-events: none; z-index: 40;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .4s var(--ease), transform .5s var(--ease);
  overflow: hidden;
}
.cap-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cap-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.cap-preview img.on { opacity: 1; }

/* Projects */
.proj-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 96px); }
.proj-head h2 { margin-top: 28px; }
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 40px); row-gap: clamp(56px, 7vw, 120px); }
.proj { display: block; }
.proj .ph { overflow: hidden; position: relative; background: var(--stone-2); }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.proj:hover .ph img { transform: scale(1.05); }
.proj .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 22px; }
.proj h3 { font-size: clamp(26px, 2.4vw, 36px); }
.proj .tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.proj .loc { font-size: 14px; color: var(--muted); margin-top: 4px; }
.p1 { grid-column: 1 / span 7; } .p1 .ph { aspect-ratio: 4/3; }
.p2 { grid-column: 9 / span 4; margin-top: 22%; } .p2 .ph { aspect-ratio: 4/5; }
.p3 { grid-column: 2 / span 4; } .p3 .ph { aspect-ratio: 4/5; }
.p4 { grid-column: 7 / span 6; margin-top: 12%; } .p4 .ph { aspect-ratio: 5/4; }
.p5 { grid-column: 1 / span 6; } .p5 .ph { aspect-ratio: 5/4; }
.p6 { grid-column: 8 / span 5; margin-top: 18%; } .p6 .ph { aspect-ratio: 4/5; }

/* Project Phase */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.phase-card { display: block; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.phase-card .ph { display: block; position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink-3); }
.phase-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; filter: brightness(.82); }
.phase-card:hover .ph img { transform: scale(1.05); filter: brightness(.65); }
.phase-card .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--stone);
  background: rgba(243,239,232,.14); border: 1px solid rgba(243,239,232,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.phase-card .play svg { width: 22px; height: 22px; margin-left: 3px; }
.phase-card:hover .play { transform: scale(1.12); background: var(--stone); color: var(--ink); }
.phase-card:focus-visible { outline: 1px solid var(--olive-pale); outline-offset: 6px; }
.phase-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
.phase-card .t { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.phase-card .loc { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); white-space: nowrap; }
.phase-card .desc { display: block; margin-top: 6px; font-size: 15px; color: var(--muted-light); }

.video-modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,9,.95); display: grid; place-items: center; padding: 64px var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.video-modal.open { opacity: 1; visibility: visible; }
.vm-frame { width: min(1200px, 100%, calc((100vh - 128px) * 16 / 9)); aspect-ratio: 16/9; background: #000; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: var(--stone); padding: 20px; opacity: .7; }
.vm-close:hover { opacity: 1; }
.vm-close svg { width: 28px; height: 28px; }
.tag-count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Statement */
.statement { text-align: center; }
.statement blockquote { margin: 0 auto; max-width: 20ch; font-family: var(--serif); font-size: clamp(38px, 5vw, 76px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.statement blockquote em { color: var(--olive-2); }
.statement .who { margin-top: 40px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); }

/* Process */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 140px); }
.process-sticky { position: sticky; top: 140px; align-self: start; }
.process-sticky h2 { margin: 28px 0 28px; }
.process-sticky .ph { margin-top: 48px; aspect-ratio: 4/5; overflow: hidden; }
.process-sticky .ph img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 20px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--sans); font-size: 15px; color: var(--olive); font-weight: 600; letter-spacing: .02em; }
.step h3 { font-size: clamp(24px, 2.2vw, 34px); margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); max-width: 50ch; }

/* Testimonials */
.testi { overflow: hidden; }
.testi-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.testi-top h2 { margin-top: 28px; }
.testi-nav { display: flex; gap: 10px; align-items: center; }
.testi-nav button {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-light);
  background: transparent; color: var(--stone); display: grid; place-items: center;
  transition: background .4s var(--ease), border-color .4s;
}
.testi-nav button:hover { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.testi-nav svg { width: 18px; height: 18px; }
.testi-count { font-size: 12px; letter-spacing: .2em; color: var(--muted-light); margin-right: 16px; font-variant-numeric: tabular-nums; }
.testi-track { display: grid; }
.testi-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 100px); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.testi-slide.active { opacity: 1; visibility: visible; }
.testi-slide .ph { aspect-ratio: 4/5; overflow: hidden; }
.testi-slide .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.testi-slide.active .ph img { transform: scale(1); }
.testi-slide .q-mark { font-family: Georgia, serif; font-size: 110px; line-height: .6; color: var(--olive-2); height: 50px; }
.testi-slide blockquote { margin: 24px 0 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.35; font-weight: 500; letter-spacing: -.02em; }
.testi-slide .who { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.testi-slide .who strong { font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.testi-slide .who span { color: var(--muted-light); font-size: 14px; }
.testi-slide .who::before { content: ""; width: 40px; height: 1px; background: var(--olive-2); }

/* CTA band */
.cta { position: relative; color: var(--stone); overflow: hidden; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(15,15,13,.62); z-index: 1; }
.cta .wrap { position: relative; z-index: 2; text-align: center; }
.cta h2 { margin: 28px auto 40px; max-width: 16ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 140px); }
.contact-grid h2 { margin: 28px 0 28px; }
.contact-details { margin-top: 56px; display: grid; gap: 28px; }
.contact-details .row { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-details .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-details .v { font-family: var(--serif); font-size: 22px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.contact-details a.v:hover { color: var(--olive); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; align-content: start; padding-top: 12px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(27,27,24,.25); background: transparent;
  padding: 10px 0 14px; font: inherit; font-size: 18px; color: var(--text); border-radius: 0;
  transition: border-color .4s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236f6b62'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 40ch; }
.form-success { grid-column: 1 / -1; display: none; padding: 28px 0 0; border-top: 1px solid var(--line); }
.form-success .fs-title { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--olive); }
.form-success p { margin: 0; color: var(--muted); max-width: 60ch; }
.form-success a, .fs-copy { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fs-copy { background: none; border: 0; padding: 0; font: inherit; }
.form.sent .form-success { display: block; }
.field-error { display: none; margin-top: 8px; font-size: 13px; color: #a3412f; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #a3412f; }

/* Footer */
.site-footer { background: var(--ink); color: var(--stone); padding: clamp(80px, 9vw, 140px) 0 40px; }
.foot-big { font-family: var(--serif); font-size: clamp(48px, 9vw, 160px); line-height: .95; font-weight: 600; letter-spacing: -.05em; margin: 0 0 clamp(56px, 7vw, 110px); }
.foot-big em { color: var(--olive-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; border-top: 1px solid var(--line-light); }
.foot-grid h4 { margin: 0 0 18px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-light); font-weight: 500; }
.foot-grid p, .foot-grid a { margin: 0; font-size: 15px; color: rgba(243,239,232,.82); line-height: 2; }
.foot-grid a:hover { color: var(--olive-pale); }
.foot-grid .logo img { height: 30px; margin-bottom: 24px; }
.foot-grid .tagline { max-width: 32ch; color: var(--muted-light); }
.foot-links { display: grid; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 80px; font-size: 12px; color: var(--muted-light); letter-spacing: .04em; }
.foot-bottom a:hover { color: var(--stone); }

/* ---------- Gallery page ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 56px; }
.filters button {
  border: 1px solid var(--line); background: transparent; padding: 12px 22px; border-radius: 40px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted);
  transition: all .4s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.active { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.masonry { columns: 3; column-gap: 24px; }
.masonry figure { margin: 0 0 24px; break-inside: avoid; overflow: hidden; position: relative; cursor: zoom-in; background: var(--stone-2); }
.masonry figure img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: var(--stone);
  background: linear-gradient(transparent, rgba(15,15,13,.7)); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: all .5s var(--ease);
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }
.masonry figure.hide { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,9,.96);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--stone); padding: 20px; opacity: .7; transition: opacity .3s; }
.lightbox button:hover { opacity: 1; }
.lightbox svg { width: 28px; height: 28px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted-light); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  /* The mobile navigation is a body-level overlay, separate from the header. */
  .site-header { z-index: 70; }
  .menu-open .site-header { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { position: fixed; inset: 0; height: 100vh; height: 100dvh; background: var(--ink); flex-direction: column; justify-content: center; gap: clamp(12px, 3dvh, 24px);
    color: var(--stone); justify-content: safe center; z-index: 60; padding: 100px 24px max(32px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; }
  .nav > a { flex-shrink: 0; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: clamp(26px, 4.5dvh, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; text-transform: none; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; }
  .cap-preview { display: none; }
  .cap-item { grid-template-columns: 50px 1fr 28px; }
  .cap-item p { grid-column: 2; grid-row: 2; }
  .cap-item .arrow { grid-column: 3; grid-row: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .intro-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .process-sticky .ph { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 28px; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .proj-grid > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .testi-slide { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; gap: 56px; }
  .phase-card .ph { aspect-ratio: 16/11; }
  .testi-slide .ph { aspect-ratio: 16/10; }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry figure { margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .logo img { height: 28px; }
}
