:root {
  --ground: #edeae4;
  --ground-2: #e4e0d8;
  --ink: #161513;
  --mute: #75716a;
  --line: rgba(22, 21, 19, 0.16);
  --plus: #f5c400;
  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1680px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--plus); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.muted { color: var(--mute); }
.plus { color: var(--plus); font-weight: 300; }
.arrow { display: inline-block; transition: transform 0.4s var(--ease); }
a:hover .arrow { transform: translateX(6px); }
.link-arrow { display: inline-flex; gap: 0.5em; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow span { transition: transform 0.4s var(--ease); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px; line-height: 1.4;
}

/* Wordmark D "Refined original": light, wide capitals; the + is drawn, its bars matching the light stem */
.wm { display: inline-flex; align-items: center; font-weight: 300; font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.wm-plus { position: relative; display: inline-block; width: 0.6em; height: 0.6em; margin: 0 0.26em 0 0.06em; }
.wm-plus::before, .wm-plus::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--plus); }
.wm-plus::before { width: 100%; height: max(0.06em, 1.5px); }
.wm-plus::after { width: max(0.06em, 1.5px); height: 100%; }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.5s var(--ease);
}
.site-head.is-scrolled { border-color: var(--line); padding-top: 14px; padding-bottom: 14px; }
.site-head.on-hero:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.site-head nav { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
.site-head nav a { position: relative; padding: 4px 0; }
.site-head nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.site-head nav a:hover::after, .site-head nav a[aria-current]::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #2a2723; color: #fff; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-on img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 52%, rgba(0,0,0,.5) 100%); }
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.hero h1 { font-weight: 300; font-size: clamp(42px, 7.4vw, 128px); line-height: 0.95; letter-spacing: -0.035em; }
.hero-cap { display: inline-flex; gap: 0.7em; font-size: 15px; font-weight: 500; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.5); }
.hero-ticks { position: absolute; top: 50%; right: var(--gutter); display: grid; gap: 10px; transform: translateY(-50%); }
.hero-ticks i { display: block; width: 2px; height: 28px; background: rgba(255,255,255,.35); transition: background 0.6s; }
.hero-ticks i.is-on { background: var(--plus); }

/* Intro */
.intro { padding-top: clamp(80px, 14vw, 200px); padding-bottom: clamp(80px, 12vw, 180px); }
.statement { font-weight: 300; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; margin: 22px 0 56px; }
.intro-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 880px; margin-left: auto; margin-bottom: 40px; color: #3b3935; }
.intro .link-arrow { margin-left: calc(100% - 880px); }

/* Selected work */
.work { padding-bottom: clamp(80px, 12vw, 180px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gutter); }
.card { display: block; }
.card-1 { grid-column: 1 / span 8; }
.card-2 { grid-column: 9 / span 4; align-self: end; }
.card-3 { grid-column: 1 / span 5; }
.card-4 { grid-column: 7 / span 6; margin-top: 18%; }
.card-img { overflow: hidden; background: var(--ground-2); aspect-ratio: 4 / 3; }
.card-2 .card-img { aspect-ratio: 4 / 5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-img img { transform: scale(1.035); }
.card-meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 16px; }
.card-meta h3 { font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; }
.num { font-size: 12px; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.card-meta .tag { margin-left: auto; }

/* Pages */
.page-top { padding-top: clamp(130px, 16vw, 210px); }
.page-title { font-weight: 300; font-size: clamp(56px, 11vw, 180px); line-height: 0.9; letter-spacing: -0.045em; margin: 0 0 clamp(40px, 6vw, 80px) -0.04em; }

/* Work index */
.index { list-style: none; margin: 0 0 clamp(80px, 12vw, 160px); padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
  align-items: baseline; gap: 20px; padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), color 0.4s;
}
.row-title { font-size: clamp(26px, 3.4vw, 52px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.row-type, .row-loc { color: var(--mute); }
.row-end { display: flex; gap: 16px; align-items: center; justify-self: end; }
.row-thumb { display: none; }
.index:hover .row { color: var(--mute); }
.index .row:hover { color: var(--ink); padding-left: 14px; }
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 15; width: min(28vw, 420px); aspect-ratio: 4 / 3; object-fit: cover;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cursor-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Project */
.proj-head .eyebrow { margin-bottom: 18px; }
.proj-head .eyebrow a:hover { color: var(--ink); }
.proj-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--gutter); padding-bottom: clamp(48px, 6vw, 88px); }
.facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.facts dd { margin: 0; }
.lead { font-size: clamp(21px, 2.1vw, 32px); font-weight: 300; line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.proj-hero { width: 100%; }
.proj-hero img { width: 100%; max-height: 92svh; object-fit: cover; }
.zoom { display: block; width: 100%; cursor: zoom-in; }
.gallery { columns: 2; column-gap: var(--gutter); padding-top: var(--gutter); }
.g { break-inside: avoid; margin-bottom: var(--gutter); }
.g img { width: 100%; background: var(--ground-2); }
.g figcaption { font-size: 14px; color: var(--mute); padding-top: 10px; max-width: 52ch; }
.next { display: block; border-top: 1px solid var(--line); margin: clamp(40px, 8vw, 120px) 0; padding-top: 28px; }
.next-title { display: block; margin-top: 10px; font-weight: 300; font-size: clamp(40px, 7vw, 112px); letter-spacing: -0.04em; line-height: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(22, 21, 19, 0.96); display: grid; place-items: center; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 84svh; object-fit: contain; }
.lb-close { position: absolute; top: 20px; right: var(--gutter); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; padding: 20px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* Studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gutter); align-items: start; }
.studio-img img { width: 100%; }
.studio-copy { display: grid; gap: 22px; max-width: 640px; }
.studio-copy .statement { margin: 0 0 12px; }
.contact { display: grid; gap: 10px; padding: clamp(80px, 12vw, 160px) 0; margin-top: clamp(60px, 8vw, 120px); border-top: 1px solid var(--line); }
.contact .eyebrow { margin-bottom: 16px; }
.big-link { font-weight: 300; font-size: clamp(30px, 5.4vw, 84px); letter-spacing: -0.035em; line-height: 1.1; width: fit-content; background: linear-gradient(var(--plus), var(--plus)) 0 92% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); }
.big-link:hover { background-size: 100% 2px; }

/* Footer */
.site-foot { background: #161513; color: #d9d5cd; padding: clamp(64px, 9vw, 130px) var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot-cta { max-width: var(--max); margin: 0 auto clamp(64px, 9vw, 120px); }
.foot-cta .eyebrow { color: #8f8a81; margin-bottom: 16px; }
.foot-mail { color: #fff; font-weight: 300; font-size: clamp(32px, 6vw, 96px); letter-spacing: -0.04em; line-height: 1; background: linear-gradient(var(--plus), var(--plus)) 0 96% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); }
.foot-mail:hover { background-size: 100% 2px; }
.foot-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.foot-row .brand { margin-right: auto; color: #fff; }
.foot-row .wm { font-size: 18px; }

/* Studies band (home) */
.studies-band { background: var(--ink); color: #e9e5dd; padding: clamp(80px, 11vw, 160px) 0; }
.studies-band .section-head { border-color: rgba(255,255,255,.16); }
.studies-band .eyebrow, .studies-band .num { color: #9a958c; }
.studies-band .link-arrow { border-color: rgba(255,255,255,.25); }
.studies-band .link-arrow:hover { border-color: #fff; }
.studies-band .statement { color: #fff; }
.study-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.study-tile .card-img { aspect-ratio: 8 / 5; background: #2a2825; }
.study-tile:hover .card-img img { transform: scale(1.035); }

/* Studies page */
.studies-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--gutter); padding-bottom: clamp(56px, 8vw, 120px); }
.study { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.study.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.study.flip .study-main { order: 2; }
.study-main img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.study-side { display: grid; gap: 14px; }
.study-side h2 { font-weight: 300; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.035em; line-height: 1; }
.study-side p:not(.num) { color: #3b3935; max-width: 40ch; }
.study-alt { margin-top: 18px; }
.study-alt img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .intro-cols { grid-template-columns: 1fr; margin-left: 0; }
  .intro .link-arrow { margin-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .card-1, .card-2, .card-3, .card-4 { grid-column: auto; margin-top: 0; }
  .card-2 .card-img { aspect-ratio: 4 / 3; }
  .row { grid-template-columns: 40px 1fr auto; row-gap: 6px; }
  .row-type, .row-loc { grid-column: 2; font-size: 15px; }
  .row-end { grid-column: 3; grid-row: 1; }
  .row-thumb { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 14px; }
  .index:hover .row { color: inherit; }
  .index .row:hover { padding-left: 0; }
  .proj-intro, .studio-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .study-strip, .studies-intro, .study, .study.flip { grid-template-columns: 1fr; }
  .study.flip .study-main { order: 0; }
  .hero-ticks { display: none; }
}
@media (max-width: 520px) {
  .wm { font-size: 18px; letter-spacing: 0.16em; }
  .site-head nav { gap: 14px; font-size: 14px; }
  .site-head nav a[href$="contact.html"] { display: none; }
}
@media (hover: none) { .cursor-preview { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .slide img { transform: none; }
}

/* Disciplines (home) */
.disciplines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); padding-bottom: clamp(80px, 12vw, 160px); }
.discipline { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.discipline h2 { font-weight: 300; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.035em; line-height: 1; }
.discipline p:not(.num) { color: #3b3935; max-width: 42ch; }
.study-group { padding: clamp(40px, 6vw, 80px) 0 18px; scroll-margin-top: 90px; }
@media (max-width: 900px) { .disciplines { grid-template-columns: 1fr; } }

/* Case study */
.cs-lead { max-width: 34ch; padding-bottom: clamp(40px, 6vw, 80px); }
.fig-no { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-right: 10px; }
.hero-cap-line { font-size: 14px; color: var(--mute); padding-top: 12px; }
.cs-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); padding-top: clamp(56px, 8vw, 110px); }
.cs-block { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.cs-block p { color: #3b3935; }
.cs-quote { margin: clamp(56px, 8vw, 120px) 0; padding: 0; }
.cs-quote p { font-weight: 300; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch; }
.cs-quote p::before { content: "+ "; color: var(--plus); }
.cs-draw button { background: #fff; padding: clamp(8px, 1.4vw, 22px); }
.cs-draw img, .cs-fig img { width: 100%; height: auto; display: block; }
.cs-fig img { aspect-ratio: 8 / 5; object-fit: cover; background: var(--ground-2); }
.cs-draw figcaption, .cs-fig figcaption { font-size: 14px; color: var(--mute); padding-top: 10px; }
.cs-wide { margin-bottom: clamp(56px, 8vw, 110px); }
.cs-group { padding-top: clamp(48px, 7vw, 100px); }
.cs-ghead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gutter); align-items: baseline; margin-bottom: 26px; }
.cs-ghead h2 { font-weight: 300; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.03em; line-height: 1.05; }
.cs-ghead p { color: #3b3935; max-width: 56ch; }
.cs-one .cs-fig img { aspect-ratio: 16 / 9; }
.cs-two, .cs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.cs-three { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: var(--gutter); }
.cs-three .cs-fig:first-child { grid-row: span 2; }
.cs-three .cs-fig:first-child img { aspect-ratio: auto; height: 100%; }
.cs-sec { padding-top: clamp(72px, 10vw, 150px); }
.cs-head { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 var(--gutter); align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 22px; margin-bottom: clamp(28px, 4vw, 48px); }
.cs-head .num { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.cs-head h2 { font-weight: 300; font-size: clamp(32px, 3.8vw, 58px); letter-spacing: -0.035em; line-height: 1; }
.cs-head p:last-child { color: #3b3935; max-width: 60ch; }
.cs-pair { align-items: start; margin-bottom: var(--gutter); }
.cs-pair .cs-draw img { max-height: 70svh; object-fit: contain; }
.cs-drawings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); padding-top: var(--gutter); }
.cs-drawings .cs-draw:first-child { grid-column: 1 / -1; }
.cs-rooms { list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.cs-rooms li { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.cs-rooms h3 { font-weight: 400; font-size: 21px; letter-spacing: -0.02em; }
.cs-rooms p { font-size: 15px; color: #3b3935; }
.cs-land { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--gutter); align-items: start; }
.cs-seq { display: grid; gap: var(--gutter); }
.cs-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); padding-top: clamp(40px, 6vw, 72px); }
.cs-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cs-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cs-mat li { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }
.cs-mat i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.cs-board { padding-top: clamp(40px, 6vw, 72px); }
.cs-board img { aspect-ratio: 4 / 3; }
.cs-data { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); }
.cs-data div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cs-data dt { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.cs-data dd { margin: 0; }
.lightbox img[src$=".svg"] { background: #fff; padding: 16px; }
@media (max-width: 900px) {
  .cs-blocks, .cs-two, .cs-pair, .cs-three, .cs-drawings, .cs-rooms, .cs-land, .cs-lists, .cs-data, .cs-ghead { grid-template-columns: 1fr; }
  .cs-three .cs-fig:first-child { grid-row: auto; }
  .cs-three .cs-fig:first-child img { aspect-ratio: 8 / 5; height: auto; }
  .cs-head { grid-template-columns: 1fr; gap: 10px; }
  .cs-list li { grid-template-columns: 1fr; gap: 2px; }
  .cs-mat li { grid-template-columns: 22px 1fr; }
  .cs-mat li .muted { grid-column: 2; }
  .cs-data div { grid-template-columns: 120px 1fr; }
}
  .cs-head { grid-template-columns: 1fr; gap: 10px; }
  .cs-list li, .cs-mat li { grid-template-columns: 1fr; gap: 2px; }
  .cs-mat li { grid-template-columns: 22px 1fr; }
  .cs-mat li .muted { grid-column: 2; }
}

/* Mono labels (project pages) */
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: 0.04em; }
.eyebrow.mono { font-size: 11px; letter-spacing: 0.08em; }

/* Home: A, gallery index: one large image at a time, a quiet numbered index beneath */
.gallery-home { position: relative; height: 100svh; min-height: 620px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.gal-frames { position: relative; overflow: hidden; background: #2a2723; color: #fff; }
.gal-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.gal-frame.is-on { opacity: 1; }
.gal-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.gal-frame.is-on img { transform: scale(1); }
.gal-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 58%, rgba(0,0,0,.42) 100%); }
.gal-frame figcaption { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4.5vh, 48px); display: grid; gap: 12px; }
.gal-title { font-weight: 300; font-size: clamp(44px, 5.8vw, 100px); line-height: 0.95; letter-spacing: -0.035em; }
.gal-meta { font-size: 15px; font-weight: 500; }
.gal-index { list-style: none; margin: 0 var(--gutter); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: var(--gutter); border-top: 1px solid var(--ink); }
.gal-item { position: relative; display: grid; gap: 4px; padding: 20px 0 clamp(22px, 3.4vh, 34px); color: var(--mute); transition: color 0.4s var(--ease); }
.gal-item.is-on, .gal-item:hover, .gal-item:focus-visible { color: var(--ink); }
.gal-num { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.06em; margin-bottom: 6px; }
.gal-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.gal-type { font-size: 14px; }
.gal-bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--plus); }
.gal-item.is-on .gal-bar { animation: gal-run var(--gal-time, 6s) linear forwards; }
.gallery-home.is-paused .gal-item.is-on .gal-bar { animation: none; width: 100%; }
@keyframes gal-run { to { width: 100%; } }
.gal-all { align-self: center; justify-self: end; font-size: 14px; font-weight: 500; white-space: nowrap; }
.home .intro { padding-top: clamp(80px, 11vw, 160px); }

/* Project pages: B, dark material */
body.project-page { --ground: #191816; --ground-2: #24231f; --ink: #ece8df; --mute: #9d988d; --line: rgba(236, 232, 223, 0.14); --body: #c9c4b9; }
.project-page .site-foot { background: #121110; }
.proj-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 88px); align-items: start;
  padding-bottom: clamp(56px, 8vw, 120px); }
.proj-text { position: sticky; top: 120px; display: grid; gap: 28px; }
.proj-text .eyebrow a:hover { color: var(--ink); }
.proj-title { font-weight: 300; font-size: clamp(48px, 6.2vw, 108px); line-height: 0.94; letter-spacing: -0.04em; margin-left: -0.03em; }
.proj-text .lead { max-width: 26ch; }
.proj-text .facts { border-top: 1px solid var(--line); padding-top: 14px; }
.proj-text .facts dt { font-size: 11px; letter-spacing: 0.08em; }
.proj-text .facts dd { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.proj-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ground-2); }
.proj-frame figcaption, .project-page .g figcaption { font-size: 12px; color: var(--mute); padding-top: 12px; }
.project-page .fig-no { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 400; color: var(--ink); }
.project-page .cs-draw figcaption, .project-page .cs-fig figcaption { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
.project-page .cs-block p, .project-page .cs-ghead p, .project-page .cs-head p:last-child, .project-page .cs-rooms p { color: var(--body); }
.project-page .cs-block, .project-page .cs-head { border-top-color: rgba(236, 232, 223, 0.38); }
.project-page .cs-head .num, .project-page .cs-data dt, .project-page .facts dt { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-weight: 400; }
.project-page .g img, .project-page .cs-fig img { background: var(--ground-2); }

@media (max-width: 900px) {
  .gallery-home { height: auto; min-height: 0; display: block; }
  .gal-frames { height: 72svh; }
  .gal-index { grid-template-columns: 1fr; gap: 0; }
  .gal-item { grid-template-columns: 34px 1fr auto; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gal-num { margin: 0; }
  .gal-bar { top: auto; bottom: -1px; }
  .gal-all { justify-self: start; padding: 18px 0 8px; }
  .proj-split { grid-template-columns: 1fr; }
  .proj-text { position: static; }
}

/* Home H: sideways gallery of full-height photos */
body.home { --ground: #0f0e0d; background: var(--ground); }
body.home .site-head:not(.is-scrolled) { color: #e9e5de; }
body.home .site-head.is-scrolled { --ground: #edeae4; }
.h-home { position: relative; height: 100svh; min-height: 560px; background: #0f0e0d; color: #e9e5de; }
.h-track { position: absolute; left: 0; right: 0; top: 96px; bottom: 104px; display: flex; gap: 10px; padding: 0 var(--gutter);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline: none; }
.h-track::-webkit-scrollbar { display: none; }
.h-track.is-drag { cursor: grabbing; }
.h-item { position: relative; flex: none; height: 100%; display: block; }
.h-item.h-first:not(:first-child) { margin-left: 40px; }
.h-item img { height: 100%; width: auto; display: block; user-select: none; -webkit-user-drag: none; }
.h-cap { position: absolute; left: 0; top: calc(100% + 12px); font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a857c; white-space: nowrap; }
.h-end { flex: none; align-self: center; margin: 0 8vw 0 40px; font-size: clamp(28px, 3vw, 44px); font-weight: 300; white-space: nowrap; }
.h-end:hover { color: #fff; }
.h-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; display: grid; grid-template-columns: auto 1fr minmax(120px, 360px) auto; align-items: baseline; gap: 22px; }
.h-name { font-size: clamp(30px, 3.4vw, 52px); font-weight: 300; color: #fff; line-height: 1; }
.h-meta, .h-hint { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a857c; }
.h-prog { position: relative; height: 1px; background: #3a3631; align-self: center; }
.h-prog i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: #e9e5de; }
@media (max-width: 760px) {
  .h-home { height: 86svh; }
  .h-track { top: 84px; bottom: 120px; gap: 8px; }
  .h-foot { grid-template-columns: 1fr; gap: 6px; bottom: 22px; }
  .h-prog, .h-hint { display: none; }
}
/* Contact page: enquiry form, no published email */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); margin-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact-intro { display: grid; gap: 18px; align-content: start; }
.contact-intro .statement { margin: 0; }
.contact-intro p { margin: 0; line-height: 1.5; }
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.enquiry label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.enquiry .full { grid-column: 1 / -1; }
.enquiry .opt { color: var(--mute); font-weight: 400; }
.enquiry input, .enquiry select, .enquiry textarea { font: inherit; font-size: 17px; font-weight: 400; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 10px; outline: none; width: 100%; }
.enquiry textarea { resize: vertical; border: 1px solid var(--line); padding: 12px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { border-color: var(--ink); }
.enquiry .send { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.enquiry button { font: inherit; font-size: 16px; color: var(--ground); background: var(--ink); border: 0; padding: 15px 26px; cursor: pointer; transition: opacity 0.3s var(--ease); }
.enquiry button:hover { opacity: 0.85; }
.form-note { margin: 0; font-size: 14px; color: var(--mute); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .enquiry { grid-template-columns: 1fr; }
}
.contact-page .foot-cta { display: none; }
.nowrap { white-space: nowrap; }

/* Projects page (P3): dark, one project at a time, photo and name alternating sides */
body.work-page { --ground: #0f0e0d; --ink: #ece8df; --mute: #8a857c; --line: rgba(236, 232, 223, 0.14); background: var(--ground); color: var(--ink); }
.staggered { list-style: none; margin: clamp(40px, 6vw, 90px) 0 clamp(80px, 10vw, 140px); padding: 0; display: grid; gap: clamp(64px, 9vw, 140px); }
.st { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.st.is-flip { grid-template-columns: 5fr 7fr; }
.st.is-flip .st-photo { order: 2; }
.st-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1917; }
.st-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.st:hover .st-photo img { transform: scale(1.02); }
.st-meta { margin: 0; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.st-title { margin: 14px 0 18px; font-weight: 300; font-size: clamp(38px, 4.2vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.st-title a:hover { color: #fff; }
.st-lead { margin: 0 0 22px; max-width: 30em; font-size: 16px; line-height: 1.5; color: #b9b4a9; }
.st-link { display: inline-block; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.st-link:hover { border-color: var(--ink); }
@media (max-width: 860px) {
  .st, .st.is-flip { grid-template-columns: 1fr; gap: 18px; }
  .st.is-flip .st-photo { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .st-photo img { transition: none; } }

/* Larch House: the gallery in headed parts (finished / in progress / drawings) */
.gallery-group { padding-top: clamp(56px, 7vw, 112px); }
.gallery-group .cs-ghead { margin-bottom: 0; }
