/* =========================================================
   Hudson Architecture Studio: homepage concept
   Palette taken from the studio itself: the slate wall behind
   the HA sign, the sign's yellow A, weathered zinc and limewash.
   Type: IM Fell English (the Fell types of Oxford University
   Press, 1670s) set against Hanken Grotesk: historic fabric
   and a crisp contemporary insertion.
   ========================================================= */

:root {
  --zinc: #e3e4e0;      /* page ground: pale weathered zinc */
  --lime: #f1f1ee;      /* limewash: panels, type on slate */
  --slate: #313846;     /* the studio wall */
  --ink: #1d2129;       /* text */
  --stone: #5d636d;     /* secondary text on light */
  --mist: #a3a9b3;      /* secondary text on slate */
  --signal: #efb21f;    /* the yellow A */

  --rule: rgba(29, 33, 41, 0.16);
  --rule-dark: rgba(241, 241, 238, 0.18);

  --serif: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --gut: clamp(14px, 1.8vw, 28px);
  --hh: 68px;
  --section: clamp(96px, 11vw, 184px);
  --ease: cubic-bezier(0.7, 0, 0.15, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hh); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--zinc);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
cite { font-style: italic; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--lime); padding: 10px 14px; font-size: 14px;
}
.skip:focus { top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
  padding-inline: var(--pad);
}

figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone);
  max-width: 46ch;
}
[data-theme="dark"] figcaption { color: var(--mist); }

.lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.05vw, 31px);
  line-height: 1.24;
  letter-spacing: -0.003em;
  margin-bottom: 1.1em;
}

.link-arrow {
  display: inline;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.link-arrow::after { content: "→"; display: inline-block; margin-left: 0.5em; font-family: var(--sans); transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { border-color: var(--signal); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- The monogram construction ----------
   Every section head is drawn like the HA sign: a yellow stem,
   a label, and a crossbar that runs on past the letters.        */
.head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-inline: var(--pad);
  margin-bottom: clamp(56px, 7vw, 112px);
}
.head__stem {
  flex: none;
  width: 2px;
  height: 30px;
  background: var(--signal);
}
.head__label {
  font: 500 11.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.head__bar {
  flex: 1 1 auto;
  height: 1px;
  margin-bottom: 1px;
  background: currentColor;
  opacity: 0.22;
  transform-origin: left;
}
.head__meta {
  font-size: 13px;
  line-height: 1;
  color: var(--stone);
  white-space: nowrap;
}
[data-theme="dark"] .head__meta { color: var(--mist); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--hh);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-inline: var(--pad);
  background: var(--zinc);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header[data-theme="dark"] {
  background: var(--slate);
  color: var(--lime);
  border-bottom-color: var(--rule-dark);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 22px; height: 23px; color: currentColor; }
.brand__name { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.site-nav { margin-left: auto; display: flex; gap: clamp(20px, 2.4vw, 36px); }
.site-nav a, .site-header__cta {
  position: relative;
  font-size: 14px;
  padding-block: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-header__cta {
  padding: 9px 16px;
  border: 1px solid currentColor;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.site-header__cta:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 14px;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 9px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--hh) 0 0 0;
  z-index: 55;
  background: var(--slate);
  color: var(--lime);
  padding: 40px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--serif);
  font-size: clamp(44px, 12vw, 72px);
  line-height: 1.08;
  padding-block: 6px;
  border-bottom: 1px solid var(--rule-dark);
}
.menu__foot { display: grid; gap: 6px; font-size: 15px; color: var(--mist); }
.menu__foot a { color: var(--lime); }

/* ---------- Cover ---------- */
.cover {
  position: relative;
  margin-top: var(--hh);
  height: calc(100vh - var(--hh));
  height: calc(100svh - var(--hh));
  min-height: 560px;
  background: var(--slate);
  overflow: hidden;
}
.cover__media { position: absolute; inset: 0; }
.cover__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 34% 72%;
}
/* on wide, shallow screens show more sky so the masthead stays clear of the trees */
@media (min-aspect-ratio: 3/2) { .cover__media img { object-position: 34% 52%; } }
@media (min-aspect-ratio: 17/9) { .cover__media img { object-position: 34% 40%; } }
.cover__stem {
  position: absolute;
  left: var(--pad);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--signal);
  transform-origin: top;
}
.cover__text {
  position: absolute;
  left: calc(var(--pad) + 28px);
  top: clamp(28px, 5.5vh, 72px);
  color: var(--ink);
}
.cover__title {
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.012em;
}
.cover__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.cover__title .line > span { display: block; }
.cover__bar {
  display: block;
  height: 1px;
  margin: clamp(18px, 2.4vh, 28px) 0 0 -28px;
  width: calc(100% + 28px + 6vw);
  background: var(--ink);
  opacity: 0.55;
  transform-origin: left;
}
.cover__intro {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 15.5px;
  line-height: 1.5;
}
.cover__caption {
  position: absolute;
  right: var(--pad);
  bottom: clamp(20px, 3.4vh, 36px);
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
  color: var(--lime);
  font-size: 13px;
  line-height: 1.45;
}
.cover__caption a { display: grid; justify-items: end; }
.cover__caption-title { font-family: var(--serif); font-style: italic; font-size: 19px; }
.cover__caption a:hover .cover__caption-title { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.cover__credit { opacity: 0.7; font-size: 12px; }

/* load sequence */
.js .cover__media { clip-path: inset(0 63% 0 35%); }
.js .cover__stem { transform: scaleY(0); }
.js .cover__title .line > span { transform: translateY(125%); }
.js .cover__bar { transform: scaleX(0); }
.js .cover__intro, .js .cover__caption { opacity: 0; transform: translateY(10px); }

.is-loaded .cover__media { clip-path: inset(0 0 0 0); transition: clip-path 1.9s var(--ease) 0.15s; }
.is-loaded .cover__stem { transform: none; transition: transform 1.2s var(--ease) 0.05s; }
.is-loaded .cover__title .line > span { transform: none; transition: transform 1.2s var(--ease); }
.is-loaded .cover__title .line:nth-child(1) > span { transition-delay: 0.75s; }
.is-loaded .cover__title .line:nth-child(2) > span { transition-delay: 0.85s; }
.is-loaded .cover__title .line:nth-child(3) > span { transition-delay: 0.95s; }
.is-loaded .cover__bar { transform: none; transition: transform 1.3s var(--ease) 1.15s; }
.is-loaded .cover__intro, .is-loaded .cover__caption {
  opacity: 1; transform: none;
  transition: opacity 1s ease 1.5s, transform 1s var(--ease-out) 1.5s;
}

/* ---------- Scroll reveals ---------- */
.js .rise { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1.1s var(--ease-out); }
.js .rise.is-in { opacity: 1; transform: none; }

/* images open from a narrow vertical slot, like light through the slot windows */
.js .slot > img { clip-path: inset(0 48% 0 48%); transition: clip-path 1.5s var(--ease); }
.js .slot.is-in > img { clip-path: inset(0 0 0 0); }
.js .slot figcaption { opacity: 0; transition: opacity 0.8s ease 0.9s; }
.js .slot.is-in figcaption { opacity: 1; }

/* ---------- Practice ---------- */
.practice { padding-block: var(--section) calc(var(--section) * 0.9); }
.practice__body { row-gap: clamp(56px, 8vw, 120px); align-items: end; }
.practice__lede {
  grid-column: 2 / 12;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.008em;
}
.practice__lede em { color: var(--stone); }
.practice__detail { grid-column: 2 / 5; }
.practice__text { grid-column: 7 / 12; max-width: 560px; }
.practice__text > p { margin-bottom: 40px; }

.facts > div, .data > div, .partners__list > div, .contact__details > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}
.facts dt, .data dt, .partners__list dt, .contact__details dt {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 4px;
}
.facts dd, .data dd, .partners__list dd, .contact__details dd { font-size: 15px; line-height: 1.5; }
[data-theme="dark"] .data > div, [data-theme="dark"] .contact__details > div { border-top-color: var(--rule-dark); }
[data-theme="dark"] .data dt, [data-theme="dark"] .contact__details dt { color: var(--mist); }

/* ---------- Projects ---------- */
.work-anchor { height: 0; }
.project { padding-block: var(--section) 0; }
.project:last-of-type { padding-bottom: var(--section); }
.project__head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: clamp(36px, 4.5vw, 72px);
}
.project__year {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding-bottom: 0.9em;
  color: var(--stone);
}
.project__head .head__stem { height: clamp(48px, 5.4vw, 92px); margin-bottom: 0.55em; }
.project__title {
  font-family: var(--serif);
  font-size: clamp(46px, 6.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.014em;
  white-space: nowrap;
}
.project__head .head__bar { margin-bottom: 0.95em; }
.project__kicker {
  display: grid;
  justify-items: end;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
  padding-bottom: 0.7em;
  color: var(--stone);
}
.project__kicker span:first-child { color: var(--ink); }

/* Woodland: the feature */
.project--feature {
  background: var(--slate);
  color: var(--lime);
  padding-bottom: var(--section);
}
.project--feature .project__year, .project--feature .project__kicker { color: var(--mist); }
.project--feature .project__kicker span:first-child { color: var(--lime); }
.project--feature .project__title { font-size: clamp(64px, 11vw, 188px); line-height: 0.84; }
.project--feature .project__head .head__stem { height: clamp(64px, 8.6vw, 150px); margin-bottom: 0.4em; }

.aperture {
  --ap: 1;
  height: min(90vh, 64vw);
  overflow: hidden;
}
.aperture img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 48% 62%;
  clip-path: inset(0 calc((1 - var(--ap)) * 47%) 0 calc((1 - var(--ap)) * 47%));
  will-change: clip-path;
}

.woodland__story { margin-top: clamp(72px, 9vw, 140px); align-items: start; }
.woodland__words { grid-column: 2 / 6; padding-top: 8px; }
.woodland__words p:not(.lede) { color: rgba(241, 241, 238, 0.82); }
.woodland__approach { grid-column: 7 / -1; margin-right: calc(var(--pad) * -1); }
.woodland__approach figcaption { padding-left: 2px; }

.woodland__quote {
  margin: clamp(110px, 13vw, 200px) 0;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
}
.woodland__quote p {
  grid-column: 3 / 12;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 5.8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-indent: -0.42em;
}
.woodland__quote footer {
  grid-column: 3 / 12;
  margin-top: 24px;
  font-size: 13px;
  color: var(--mist);
}

.woodland__inside { align-items: start; }
.woodland__kitchen { grid-column: 1 / 8; margin-left: calc(var(--pad) * -1); }
.woodland__kitchen figcaption { padding-left: var(--pad); }
.woodland__hall { grid-column: 9 / 12; margin-top: clamp(80px, 16vw, 260px); }

.woodland__record { margin-top: clamp(96px, 11vw, 180px); align-items: end; }
.woodland__plan { grid-column: 1 / 8; }
.sheet { background: var(--lime); padding: clamp(16px, 2.6vw, 44px); }
.sheet img { mix-blend-mode: multiply; width: 100%; }
.woodland__data { grid-column: 9 / 13; }
.woodland__data .data { margin-bottom: 32px; }
.press { display: grid; grid-template-columns: minmax(110px, 0.42fr) 1fr; gap: 16px; font-size: 15px; line-height: 1.5; }
.press__label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); padding-top: 4px; }

.woodland__rear { width: 78%; margin: clamp(96px, 11vw, 180px) 0 0 auto; }
.woodland__rear figcaption { padding-left: 2px; }

/* Modern Victorian */
.mv__layout { align-items: start; row-gap: 48px; }
.mv__slot { grid-column: 1 / 9; grid-row: 1 / 3; margin-left: calc(var(--pad) * -1); }
.mv__slot figcaption { padding-left: var(--pad); }
.mv__words { grid-column: 10 / 13; grid-row: 1; }
.mv__inside { grid-column: 10 / 12; grid-row: 2; }

/* 34 Davenant Road */
.dav__layout { align-items: start; row-gap: 0; }
.dav__words { grid-column: 1 / 5; grid-row: 1; padding-right: 8px; }
.dav__rear { grid-column: 6 / -1; grid-row: 1; margin-right: calc(var(--pad) * -1); }
.dav__front { grid-column: 3 / 8; grid-row: 2; margin-top: clamp(48px, 6vw, 96px); }
.ticks { margin: 28px 0; border-top: 1px solid var(--rule); }
.ticks li {
  display: flex; align-items: center; gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.ticks li::before { content: ""; width: 2px; height: 14px; background: var(--signal); flex: none; }
.credit { font-size: 13px; color: var(--stone); }

/* North Oxford Home: one wide, centred plate */
.noh__layout { align-items: start; row-gap: clamp(36px, 4vw, 56px); }
.noh__dusk { grid-column: 2 / 12; }
.noh__lede { grid-column: 2 / 7; margin: 0; }
.noh__body { grid-column: 8 / 11; padding-top: 6px; }

/* A Home to Entertain */
.ent__garden { height: min(86vh, 56vw); overflow: hidden; }
.ent__garden img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.ent__layout { margin-top: clamp(56px, 7vw, 112px); align-items: start; row-gap: 48px; }
.ent__words { grid-column: 2 / 6; grid-row: 1; }
.ent__kitchen { grid-column: 7 / -1; grid-row: 1 / 3; margin-right: calc(var(--pad) * -1); }
.ent__stair { grid-column: 3 / 6; grid-row: 2; }

/* ---------- Stairs ---------- */
.stairs {
  background: var(--slate);
  color: var(--lime);
  padding-block: var(--section) calc(var(--section) * 0.8);
  overflow: hidden;
}
.stairs__intro { align-items: end; row-gap: 32px; }
.stairs__title {
  grid-column: 1 / 9;
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-indent: -0.4em;
  padding-left: 0.4em;
}
.stairs__note { grid-column: 9 / 13; color: rgba(241, 241, 238, 0.8); max-width: 40ch; }

.flight { margin-top: clamp(8px, 2vw, 32px); }
.flight__track {
  --rise: clamp(28px, 3.2vw, 52px);
  display: flex;
  align-items: flex-end;
  gap: var(--gut);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: calc(var(--rise) * 5 + 8px) var(--pad) 8px;
  scrollbar-width: none;
}
.flight__track::-webkit-scrollbar { display: none; }
.tread {
  position: relative;
  flex: 0 0 clamp(230px, 20.5vw, 340px);
  scroll-snap-align: start;
  padding-bottom: 20px;
}
.tread:nth-child(1) { margin-bottom: 0; }
.tread:nth-child(2) { margin-bottom: calc(var(--rise) * 1); }
.tread:nth-child(3) { margin-bottom: calc(var(--rise) * 2); }
.tread:nth-child(4) { margin-bottom: calc(var(--rise) * 3); }
.tread:nth-child(5) { margin-bottom: calc(var(--rise) * 4); }
.tread:nth-child(6) { margin-bottom: calc(var(--rise) * 5); }
/* the stair profile: a yellow line for each tread and riser */
.tread::before {
  content: ""; position: absolute; left: 0; right: calc(var(--gut) * -1); bottom: 0;
  height: 1px; background: var(--signal);
}
.tread::after {
  content: ""; position: absolute; right: calc(var(--gut) * -1); bottom: 0;
  width: 1px; height: var(--rise); background: var(--signal);
}
.tread:last-child::before { right: 0; }
.tread:last-child::after { display: none; }
.tread img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tread figcaption { color: var(--lime); font-size: 13.5px; margin-top: 14px; }
.tread figcaption span {
  display: block;
  font-size: 11.5px; letter-spacing: 0.14em; color: var(--mist);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.flight__controls {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 28px var(--pad) 0;
}
.flight__btn {
  width: 52px; height: 52px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  color: var(--lime);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, opacity 0.3s;
}
.flight__btn:hover:not(:disabled) { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.flight__btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Index ---------- */
.index { padding-block: var(--section); }
.index__layout { align-items: start; }
.index__list { grid-column: 1 / 8; border-bottom: 1px solid var(--rule); }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas: "year name place" "year note place";
  column-gap: 20px;
  align-items: baseline;
  padding: 20px 0 20px 0;
  border-top: 1px solid var(--rule);
  cursor: default;
  transition: padding-left 0.5s var(--ease-out);
}
.index__row::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 2px; height: 28px; background: var(--signal);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.index__year { grid-area: year; font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; }
.index__name { grid-area: name; font-family: var(--serif); font-size: clamp(23px, 2vw, 31px); line-height: 1.15; }
.index__place { grid-area: place; font-size: 13px; color: var(--stone); text-align: right; }
.index__note {
  grid-area: note; font-size: 14.5px; color: var(--stone); line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease, margin 0.5s var(--ease-out);
}
.index__thumb { display: none; }
.index__row.is-active { padding-left: 22px; }
.index__row.is-active::before { transform: scaleY(1); }
.index__row.is-active .index__note { max-height: 4em; opacity: 1; margin-top: 6px; }

.index__preview { grid-column: 9 / 13; position: sticky; top: calc(var(--hh) + 40px); }
.index__frame { position: relative; aspect-ratio: 4 / 5; background: var(--slate); overflow: hidden; }
.index__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
.index__frame img.is-swapping { opacity: 0; }
.index__blank {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 28px;
  font-family: var(--serif); font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1;
  color: var(--lime);
  opacity: 0; transition: opacity 0.45s ease;
}
.index__frame.is-blank img { opacity: 0; }
.index__frame.is-blank .index__blank { opacity: 1; }

/* ---------- Approach ---------- */
.approach { padding-block: calc(var(--section) * 0.4) var(--section); }
.approach__layout { align-items: start; }
.approach__aside { grid-column: 1 / 6; position: sticky; top: calc(var(--hh) + 40px); }
.approach__sketch img { background: #fff; padding: clamp(12px, 1.6vw, 24px); width: 100%; }
.principles { grid-column: 7 / 13; border-bottom: 1px solid var(--rule); }
.principle { padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--rule); }
.principle h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.006em;
  margin-bottom: 14px;
}
.principle p { max-width: 46ch; color: #383d46; }
.principle__image { width: 62%; margin-top: 32px; }

.services { margin-top: clamp(120px, 14vw, 220px); align-items: start; }
.services__title, .process__title {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(var(--hh) + 40px);
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.services__list { grid-column: 5 / 13; border-bottom: 1px solid var(--rule); }
.services__list li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: var(--gut);
  align-items: baseline;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.services__name { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }
.services__desc { font-size: 15.5px; color: #383d46; max-width: 42ch; }

.process { margin-top: clamp(110px, 12vw, 200px); align-items: start; }
.process__steps {
  --drop: clamp(28px, 3vw, 48px);
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* a section through a sloping site: each stage steps down, like Woodland into its hill */
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 18px 0 0;
  border-top: 1.5px solid var(--ink);
}
.step:nth-child(2) { margin-top: calc(var(--drop) * 1); }
.step:nth-child(3) { margin-top: calc(var(--drop) * 2); }
.step:nth-child(4) { margin-top: calc(var(--drop) * 3); }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: -1.5px;
  width: 1.5px; height: calc(var(--drop) + 1.5px); background: var(--ink);
}
.step__no { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.step__name { font-weight: 500; font-size: 16px; }
.step__desc { font-size: 14.5px; color: var(--stone); line-height: 1.5; }

/* ---------- Studio ---------- */
.studio { background: var(--lime); padding-block: var(--section); }
.studio__layout { align-items: start; }
.studio__portrait { grid-column: 1 / 6; margin-left: calc(var(--pad) * -1); }
.studio__words { grid-column: 7 / 13; }
.studio__name {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.012em;
}
.studio__role { margin-top: 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--stone); }
.studio__bio { margin-top: 36px; max-width: 58ch; }
.studio__bio p + p { margin-top: 1em; }
.voices { margin-top: clamp(56px, 6vw, 88px); display: grid; gap: 36px; }
.voice p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1.28;
  text-indent: -0.4em;
}
.voice footer { margin-top: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.partners { margin-top: clamp(56px, 6vw, 88px); }
.partners__title { font: 500 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact { background: var(--slate); color: var(--lime); padding-block: var(--section); }
.contact__layout { align-items: start; row-gap: 64px; }
.contact__intro { grid-column: 1 / 6; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin-bottom: 28px;
}
.contact__intro > p { color: rgba(241, 241, 238, 0.82); max-width: 44ch; }
.contact__details { margin-top: 44px; }
.contact__details dd a:not(.link-arrow) { border-bottom: 1px solid var(--rule-dark); transition: border-color 0.3s; }
.contact__details dd a:not(.link-arrow):hover { border-color: var(--signal); }
.contact__details .link-arrow { margin-top: 8px; font-size: 14px; }
.contact__social { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.enquiry { grid-column: 7 / 13; display: grid; gap: 26px; }
.enquiry__type { border: 0; padding: 0; margin: 0; }
.enquiry legend, .field label {
  display: block;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 12px;
}
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; margin-left: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--rule-dark);
  font-size: 14px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.choices label:hover span { border-color: var(--lime); }
.choices input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.choices input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  padding: 8px 0 12px;
  font-size: 17px;
  color: var(--lime);
  border-radius: 0;
  transition: border-color 0.3s;
  resize: vertical;
}
.field textarea { min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 169, 179, 0.7); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--signal); }
.field__error { display: none; margin-top: 8px; font-size: 13px; color: var(--signal); }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--signal); }
.enquiry__send { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border: 0;
  background: var(--signal);
  color: var(--ink);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
.button::after { content: "→"; transition: transform 0.35s var(--ease-out); }
.button:hover { background: var(--lime); }
.button:hover::after { transform: translateX(4px); }
.enquiry__status { font-size: 14px; color: var(--mist); max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer { background: #282e3a; color: var(--lime); padding-block: 72px 36px; }
.site-footer__inner { row-gap: 20px; align-items: end; }
.site-footer__brand { grid-column: 1 / 6; display: inline-flex; align-items: flex-end; gap: 18px; font-size: 15px; font-weight: 500; }
.site-footer__mark { width: 54px; height: 56px; color: var(--lime); }
.site-footer__tag { grid-column: 6 / 10; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--mist); }
.site-footer__nav { grid-column: 10 / 13; display: flex; justify-content: flex-end; gap: 20px; font-size: 14px; }
.site-footer__nav a:hover { color: var(--signal); }
.site-footer__small { grid-column: 1 / 10; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule-dark); font-size: 12.5px; color: var(--mist); }
.site-footer__note { grid-column: 10 / 13; text-align: right; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1099px) {
  .site-nav { gap: 22px; }
  .practice__lede { grid-column: 1 / -1; }
  .practice__detail { grid-column: 1 / 5; }
  .practice__text { grid-column: 6 / -1; }
  .woodland__words { grid-column: 1 / 6; }
  .woodland__quote p, .woodland__quote footer { grid-column: 2 / -1; }
  .woodland__hall { grid-column: 9 / 13; }
  .woodland__plan { grid-column: 1 / 9; }
  .woodland__data { grid-column: 9 / 13; }
  .mv__words { grid-column: 9 / 13; }
  .mv__inside { grid-column: 9 / 12; }
  .stairs__title { grid-column: 1 / -1; }
  .stairs__note { grid-column: 1 / 8; }
  .index__list { grid-column: 1 / 8; }
  .index__preview { grid-column: 8 / 13; }
  .services__title, .process__title { grid-column: 1 / -1; margin-bottom: 36px; position: static; }
  .noh__dusk { grid-column: 1 / -1; }
  .noh__lede { grid-column: 1 / 8; }
  .noh__body { grid-column: 8 / -1; }
  .services__list, .process__steps { grid-column: 1 / -1; }
  .contact__intro { grid-column: 1 / -1; }
  .enquiry { grid-column: 1 / 11; }
}

/* =========================================================
   Small screens: composed for a phone, not compressed
   ========================================================= */
@media (max-width: 899px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand__name { font-size: 13.5px; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid > * { grid-column: 1 / -1; }

  /* cover */
  .cover { min-height: 520px; }
  .cover__media img { object-position: 30% 70%; }
  .cover__text { top: 28px; right: var(--pad); }
  .cover__title { font-size: clamp(44px, 12.4vw, 76px); }
  .cover__bar { width: calc(100% + 28px); }
  .cover__intro { font-size: 15px; max-width: 26ch; }
  .cover__caption { left: calc(var(--pad) + 28px); justify-items: start; text-align: left; }
  .cover__caption a { justify-items: start; }

  .head { gap: 14px; }
  .head__meta { display: none; }

  /* practice */
  .practice__body { row-gap: 48px; }
  .practice__lede { font-size: clamp(28px, 7.6vw, 40px); }
  .practice__detail { grid-column: 1 / 5; }
  .practice__text { grid-column: 1 / -1; }

  /* project heads stack */
  .project__head { flex-wrap: wrap; row-gap: 14px; column-gap: 14px; }
  .project__year { order: 1; padding: 0; }
  .project__head .head__stem { order: 0; height: 22px; margin: 0; }
  .project__head .head__bar { order: 2; flex: 1 1 40px; margin: 0 0 6px; }
  .project__title { order: 3; flex: 1 0 100%; white-space: normal; }
  .project__kicker { order: 4; flex: 1 0 100%; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 0 14px; padding: 0; }
  .project--feature .project__head .head__stem { height: 22px; margin: 0; }
  .project--feature .project__title { font-size: clamp(64px, 20vw, 110px); }

  .aperture { height: 78vh; height: 78svh; }
  .aperture img { object-position: 46% 60%; }

  .woodland__story { row-gap: 48px; }
  .woodland__approach { grid-column: 1 / -1; margin-inline: calc(var(--pad) * -1) calc(var(--pad) * -1); }
  .woodland__approach figcaption { padding-inline: var(--pad); }
  .woodland__quote { grid-template-columns: 1fr; }
  .woodland__quote p, .woodland__quote footer { grid-column: 1; }
  .woodland__quote p { font-size: clamp(38px, 10.5vw, 60px); padding-left: 0.42em; }
  .woodland__quote footer { padding-left: 0.42em; }
  .woodland__inside { row-gap: 0; }
  .woodland__kitchen { grid-column: 1 / -1; margin-inline: calc(var(--pad) * -1); }
  .woodland__hall { grid-column: 2 / -1; margin-top: 48px; }
  .woodland__record { row-gap: 40px; }
  .woodland__plan { grid-column: 1 / -1; }
  .woodland__data { grid-column: 1 / -1; }
  .woodland__rear { width: auto; margin: 72px 0 0 14%; }

  .mv__layout, .noh__layout, .ent__layout { row-gap: 40px; }
  .mv__slot, .noh__dusk, .ent__kitchen, .dav__rear { grid-row: auto; grid-column: 1 / -1; margin-inline: calc(var(--pad) * -1); }
  .mv__slot figcaption, .noh__dusk figcaption { padding-inline: var(--pad); }
  .mv__words, .noh__words, .ent__words, .dav__words { grid-row: auto; }
  .mv__inside { grid-column: 3 / -1; grid-row: auto; }
  .noh__lede, .noh__body { grid-column: 1 / -1; }
  .ent__stair { grid-column: 3 / -1; grid-row: auto; }
  .dav__layout { row-gap: 40px; }
  .dav__words { order: -1; }
  .dav__front { grid-column: 1 / 6; grid-row: auto; margin-top: 0; }
  .dav__rear figcaption, .dav__front figcaption { padding-inline: var(--pad); }
  .dav__front figcaption { padding-left: 0; }
  .ent__garden { height: 62vh; }
  .ent__garden img { object-position: 52% 60%; }

  /* stairs: a sideways flight to swipe */
  .stairs__title { font-size: clamp(40px, 11vw, 64px); }
  .stairs__note { grid-column: 1 / -1; }
  .flight__track { --rise: 22px; }
  .tread { flex-basis: 66vw; }
  .flight__controls { padding-top: 20px; }
  .flight__btn { width: 46px; height: 46px; }

  /* index: thumbnails sit in the rows */
  .index__preview { display: none; }
  .index__row {
    grid-template-columns: 44px minmax(0, 1fr) 76px;
    grid-template-areas: "year name thumb" "year place thumb" "year note thumb";
    column-gap: 14px;
    align-items: start;
  }
  .index__row.is-active { padding-left: 0; }
  .index__row::before { display: none; }
  .index__year { padding-top: 6px; }
  .index__place { text-align: left; margin-top: 2px; }
  .index__note, .index__row.is-active .index__note { max-height: none; opacity: 1; margin-top: 4px; font-size: 14px; }
  .index__thumb {
    grid-area: thumb; display: block;
    width: 76px; height: 76px; object-fit: cover;
  }
  .index__thumb--blank {
    display: flex; align-items: flex-end; padding: 8px;
    background: var(--slate); color: var(--lime);
    font-size: 11px; line-height: 1.2;
  }

  /* approach */
  .approach__aside { position: static; grid-column: 1 / 6; margin-bottom: 48px; }
  .principles { grid-column: 1 / -1; }
  .principle__image { width: 78%; }
  .services__list li { grid-template-columns: 1fr; gap: 6px; }
  .process__steps {
    --drop: 0px;
    grid-template-columns: 1fr;
    padding-bottom: 0;
    gap: 0;
  }
  .step {
    margin-top: 0 !important;
    grid-template-columns: 28px 1fr;
    column-gap: 8px;
    padding: 16px 0 18px;
    border-top: 1px solid var(--rule);
  }
  .step::after { display: none; }
  .step:nth-child(2) { margin-left: 8%; }
  .step:nth-child(3) { margin-left: 16%; }
  .step:nth-child(4) { margin-left: 24%; }
  .step__no { grid-row: 1 / 3; padding-top: 3px; }
  .step__desc { grid-column: 2; }

  /* studio */
  .studio__portrait { grid-column: 1 / -1; margin-inline: calc(var(--pad) * -1) 18%; }
  .studio__words { margin-top: 48px; }

  /* contact */
  .enquiry { grid-column: 1 / -1; }
  .field-pair { grid-template-columns: 1fr; gap: 26px; }

  .site-footer__brand, .site-footer__tag, .site-footer__nav, .site-footer__small, .site-footer__note { grid-column: 1 / -1; }
  .site-footer__nav { justify-content: flex-start; flex-wrap: wrap; }
  .site-footer__small { margin-top: 24px; }
  .site-footer__note { text-align: left; border-top: 0; margin-top: 0; padding-top: 0; }
}

@media (max-width: 420px) {
  .brand__name { display: none; }
  .facts > div, .data > div, .partners__list > div, .contact__details > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .cover__media, .js .slot > img { clip-path: none; }
  .js .cover__stem, .js .cover__bar, .js .cover__title .line > span { transform: none; }
  .js .cover__intro, .js .cover__caption, .js .rise, .js .slot figcaption { opacity: 1; transform: none; }
  .aperture img { clip-path: none; }
}
