/* ==========================================================================
   Mills & Giles
   The palette is taken from the work itself: the deep lacquer of a painted
   island, unlacquered brass, plaster white and limestone, with the logo's
   charcoal for text. Type: Sorts Mill Goudy for reading and headlines,
   Jost for interface text.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --stone: #eeede8;
  --ink: #333333;
  --ink-soft: #5b5b57;
  --rule: rgba(51, 51, 51, 0.2);
  --brass: #8f6e2b;
  --brass-deep: #735721;
  --brass-lite: #d0ae66;
  --lacquer: #1c2e2a;
  --lacquer-deep: #15231f;
  --lacquer-ink: #f3f1e9;
  --lacquer-soft: rgba(243, 241, 233, 0.76);
  --lacquer-rule: rgba(243, 241, 233, 0.22);
  --room-on: #38463b;
  --error: #9b2c1f;

  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --hair: var(--rule);
  --line: var(--brass);

  --serif: "Sorts Mill Goudy", "Goudy Old Style", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", Futura, "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(20px, 4.5vw, 64px);
  --wrap: 1320px;
  --band: clamp(72px, 9vw, 136px);
  --header-h: 84px;
  --gap: clamp(12px, 1.6vw, 22px);
}

.tone-lacquer {
  --text: var(--lacquer-ink);
  --text-soft: var(--lacquer-soft);
  --hair: var(--lacquer-rule);
  --line: var(--brass-lite);
  background: var(--lacquer);
  color: var(--text);
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3 { font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 0.9rem + 2.6vw, 3.25rem); line-height: 1.07; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.9rem, 1.15rem + 2vw, 2.875rem); line-height: 1.12; letter-spacing: -0.008em; }
h3 { font-size: 1.5rem; line-height: 1.25; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 1px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--pad); top: -80px; z-index: 100; padding: 12px 18px;
  background: var(--brass-lite); color: var(--lacquer-deep); font: 500 0.9375rem/1 var(--sans); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons and links ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 2px; background: var(--ink); color: #fff;
  font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.015em; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 1px;
  pointer-events: none; transition: inset 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: #1f1f1f; }
.btn:hover::after { inset: 6px; border-color: var(--brass-lite); }
.btn--small { min-height: 44px; padding: 0 20px; }
.btn--brass { background: var(--brass-lite); color: var(--lacquer-deep); }
.btn--brass::after { border-color: rgba(21, 35, 31, 0.32); }
.btn--brass:hover { background: #dfc081; }
.btn--brass:hover::after { border-color: rgba(21, 35, 31, 0.7); }

.textlink {
  padding: 0; border: 0; background: none; color: var(--text); font: 500 0.9375rem/1.4 var(--sans);
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; cursor: pointer; transition: text-decoration-color 0.2s ease;
}
.textlink:hover { text-decoration-color: currentColor; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow 0.2s ease; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--lacquer-rule); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { display: block; width: auto; height: 58px; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font: 400 0.9375rem/1 var(--sans); }
.site-nav a:not(.btn) {
  padding: 14px 0; text-decoration: none;
  background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size 0.25s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { background-size: 100% 1.5px; }
.site-nav__tel { font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  --wrap-w: min(var(--wrap), 100vw - 2 * var(--pad));
  --house-w: calc(var(--wrap-w) * 0.6);
  --house-h: calc(var(--house-w) * 470 / 880);
  --under: calc(var(--house-h) * 22 / 470);
  padding-block: clamp(20px, 2.6vw, 40px) clamp(36px, 4vw, 60px);
  overflow-x: clip;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--house-w); grid-template-rows: 1fr auto auto;
  column-gap: clamp(24px, 3vw, 48px);
}
.hero__copy { grid-column: 1; grid-row: 1; padding-bottom: 32px; }
.hero__lede { max-width: 30em; margin-top: 20px; font-size: 1.125rem; line-height: 1.55; color: var(--text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

.hero__figure { position: relative; grid-column: 2; grid-row: 1 / 3; align-self: end; margin-bottom: calc(var(--under) * -1); }
.hero__figure.is-zoomed { box-shadow: 0 0 0 1px var(--hair); }
.hero__figure.is-zoomed .house { overflow: hidden; }
.house-reset {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: 500 0.9375rem/1 var(--sans);
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; cursor: pointer;
}

.rooms {
  grid-column: 1; grid-row: 2; display: flex; align-items: baseline; gap: 0 16px; padding-bottom: 10px;
  font: 400 0.9375rem/1 var(--sans);
}
.rooms__lead { flex: none; }
.rooms__hint { color: var(--text-soft); }
.rooms__tabs { display: flex; flex-wrap: wrap; gap: 0 16px; }
.rooms__tabs button {
  min-height: 34px; padding: 0; border: 0; color: var(--text-soft); font: inherit; cursor: pointer;
  background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 4px) / 0 2px no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}
.rooms__tabs button:hover { color: var(--text); }
.rooms__tabs button[aria-selected="true"] { color: var(--text); font-weight: 500; background-size: 100% 2px; }

.rooms__panels {
  grid-column: 1; grid-row: 3; display: flex; align-items: flex-start; gap: 18px; padding-top: 16px;
  min-height: 104px; font: 400 0.9375rem/1.55 var(--sans); color: var(--text-soft);
}
.rooms__photo { position: relative; flex: none; display: block; width: 132px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--lacquer-deep); }
.rooms__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rooms__text { min-width: 0; }
.room-panel { max-width: 34em; }
.room-panel + .room-panel { margin-top: 12px; }
.room-panel strong { font: italic 400 1.3125rem/1 var(--serif); color: var(--text); margin-right: 2px; }
.js .room-panel:not(.is-active) { display: none; }

/* ---------- the house drawing ---------- */

.house { display: block; width: 100%; height: auto; overflow: visible; }
.house .hs-cut { fill: var(--lacquer-ink); }
.house .hs-ln { fill: none; stroke: var(--lacquer-ink); stroke-width: 1.15; }
.house .hs-fine { fill: none; stroke: var(--lacquer-ink); stroke-width: 0.55; }
.house .hs-fill { fill: var(--room-bg); stroke: var(--lacquer-ink); stroke-width: 1.15; transition: fill 0.35s ease; }
.house .hs-hw { fill: none; stroke: var(--brass-lite); stroke-width: 1.5; stroke-linecap: round; }
.house .hs-dot { fill: var(--brass-lite); }
.house .hs-roof { fill: none; stroke: var(--brass-lite); stroke-width: 6.5; stroke-linejoin: miter; stroke-miterlimit: 8; }
.house .hs-roof--cap { stroke-width: 9; }
.house .hs-grade { fill: none; stroke: var(--lacquer-ink); stroke-width: 1.3; }
.house .hs-earth { opacity: 0.7; }
.house .hs-wash { fill: transparent; transition: fill 0.35s ease; }
.house .hs-shell,
.house .hs-roofs,
.house .hs-ground { pointer-events: none; }
.house .room { --room-bg: var(--lacquer); cursor: pointer; }
.house .room.is-active { --room-bg: var(--room-on); }
.house .room.is-active .hs-wash { fill: var(--room-on); }

@media (prefers-reduced-motion: no-preference) {
  .house.is-drawing .hs-d {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hs-draw 1.15s cubic-bezier(0.55, 0, 0.2, 1) var(--d, 0s) forwards;
  }
  .house.is-drawing .hs-grade { animation-duration: 1.4s; }
  .house.is-drawing .hs-roof { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1); }
  .house.is-drawing .hs-cut,
  .house.is-drawing .hs-dot { opacity: 0; animation: hs-fade 0.7s ease var(--d, 0s) forwards; }
  .house.is-drawing .room .hs-dot { animation-delay: calc(var(--d, 0s) + 0.8s); }
  .house.is-drawing .room.is-active { --room-bg: var(--lacquer); }
  .house.is-drawing .room.is-active .hs-wash { fill: transparent; }
}
@keyframes hs-draw { to { stroke-dashoffset: 0; } }
@keyframes hs-fade { to { opacity: 1; } }

/* ---------- bands ---------- */

.band { padding-block: var(--band); }
.band--stone { background: var(--stone); }

.split-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 7vw, 112px);
  row-gap: 16px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px);
}
.split-head p { color: var(--text-soft); max-width: 28em; }

/* ---------- statement and finish details ---------- */

.statement__lead {
  max-width: 22em; font-size: clamp(1.75rem, 0.9rem + 2.7vw, 3.375rem); line-height: 1.14;
  letter-spacing: -0.014em; text-wrap: pretty;
}
.statement__body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 24em)); justify-content: end;
  gap: 20px clamp(32px, 5vw, 72px); margin-top: clamp(32px, 4vw, 56px); font-size: 1.0625rem; color: var(--text-soft);
}
.finishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.finishes li:nth-child(even) { margin-top: clamp(24px, 4vw, 60px); }
.finishes__frame { position: relative; aspect-ratio: 5 / 7; overflow: hidden; background: var(--stone); }
.finishes__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finishes figcaption,
.plate figcaption { padding-top: 10px; font: 400 0.875rem/1.4 var(--sans); color: var(--text-soft); }

/* ---------- latest project ---------- */

.latest__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 7vw, 112px);
  row-gap: 20px; align-items: start; margin-bottom: clamp(36px, 4vw, 56px);
}
.latest__about h3 { font-size: 1.625rem; padding-top: 0.35em; }
.latest__about p { margin-top: 10px; color: var(--text-soft); max-width: 32em; font-size: 1.0625rem; }
.latest__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 3vw, 44px); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 14px; font-family: var(--sans); }
.facts dt { font-size: 0.8125rem; line-height: 1.3; color: var(--text-soft); }
.facts dd { font-size: 1rem; line-height: 1.4; }

/* ---------- photo mosaic ---------- */

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.mosaic + .mosaic { margin-top: var(--gap); }
.plate { display: flex; flex-direction: column; min-width: 0; }
.plate__frame {
  position: relative; display: block; flex: 1 1 auto; aspect-ratio: 3 / 2; overflow: hidden;
  background: rgba(51, 51, 51, 0.08); cursor: zoom-in;
}
.plate__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate--a1 { grid-column: 1 / 9; }
.plate--a2 { grid-column: 9 / 13; }
.plate--b { grid-column: span 4; }
.plate--half { grid-column: span 6; }
.plate--full { grid-column: 1 / -1; }
.plate--c1 { grid-column: 1 / 5; grid-row: 3; }
.plate--c2 { grid-column: 1 / 5; grid-row: 4; }
.plate--c3 { grid-column: 5 / 13; grid-row: 3 / 5; }
.plate--a2 .plate__frame,
.plate--c3 .plate__frame { aspect-ratio: auto; }
.plate--full .plate__frame { aspect-ratio: 16 / 9; }

.viewer {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: clamp(12px, 2vw, 28px); border: 0; background: var(--lacquer-deep); color: var(--lacquer-ink);
  font: 400 0.9375rem/1.4 var(--sans);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.viewer::backdrop { background: var(--lacquer-deep); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer__count { color: var(--lacquer-soft); }
.viewer__stage { position: relative; min-height: 0; cursor: zoom-out; }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.viewer__caption { text-align: center; color: var(--lacquer-soft); }
.viewer button {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--lacquer-ink);
  font: 500 0.9375rem/1 var(--sans); text-decoration: underline; text-decoration-color: var(--brass-lite);
  text-decoration-thickness: 1.5px; text-underline-offset: 5px; cursor: pointer;
}
.viewer :focus-visible { outline-color: var(--brass-lite); }

/* ---------- cabinetry ---------- */

.cabinetry__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "figure head" "figure key"; grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 7vw, 112px); row-gap: 44px;
}
.cabinetry__head { grid-area: head; }
.cabinetry__head p { margin-top: 22px; color: var(--text-soft); max-width: 33em; }
.cabinetry__figure { grid-area: figure; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
.cabinetry__figure figcaption { margin-top: 18px; font: 400 0.875rem/1.5 var(--sans); color: var(--text-soft); }
.cabinetry__key { grid-area: key; }

.cab { display: block; width: 100%; height: auto; }
.cab-ln { fill: none; stroke: var(--lacquer-ink); stroke-width: 1.4; }
.cab-fine { fill: none; stroke: var(--lacquer-ink); stroke-width: 0.75; opacity: 0.8; }
.cab-heavy { fill: none; stroke: var(--lacquer-ink); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.cab-hatch path { fill: none; stroke: var(--lacquer-ink); stroke-width: 0.7; opacity: 0.32; }
.cab-brassfill { fill: rgba(208, 174, 102, 0.3); stroke: var(--brass-lite); stroke-width: 1.5; stroke-linejoin: round; }
.cab-brass { fill: none; stroke: var(--brass-lite); stroke-width: 2.2; }
.cab-hw { fill: none; stroke: var(--brass-lite); stroke-width: 1.5; stroke-linecap: round; }
.cab-level { fill: none; stroke: var(--brass-lite); stroke-width: 1.4; stroke-dasharray: 7 5; }
.cab-leader { fill: none; stroke: var(--brass-lite); stroke-width: 1.2; }
.cab-tip { fill: var(--brass-lite); }
.cab-bubble { fill: var(--lacquer); stroke: var(--brass-lite); stroke-width: 1.5; }
.cab-call text { fill: var(--brass-lite); font: 500 15px var(--sans); }

.key { counter-reset: key; border-top: 1px solid var(--hair); }
.key li {
  counter-increment: key; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 20px;
  padding-block: 22px; border-bottom: 1px solid var(--hair);
}
.key li::before {
  content: counter(key); grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px;
  border: 1.5px solid var(--brass-lite); border-radius: 50%; color: var(--brass-lite); font: 500 0.875rem/1 var(--sans);
}
.key h3 { grid-column: 2; font-size: 1.4375rem; }
.key p { grid-column: 2; margin-top: 6px; font: 400 1rem/1.55 var(--sans); color: var(--text-soft); max-width: 32em; }
.cabinetry__note { margin-top: 28px; font-style: italic; max-width: 30em; }

/* ---------- what we build ---------- */

.build__grid,
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 7vw, 112px);
  row-gap: 48px; align-items: start;
}
.build__intro p { margin-top: 22px; color: var(--text-soft); max-width: 31em; }
.build__intro .textlink { display: inline-block; margin-top: 26px; }
.scope { border-top: 1.5px solid var(--ink); }
.scope li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; align-items: baseline;
  padding-block: 20px 22px; border-bottom: 1px solid var(--hair);
}
.scope p { font: 400 1rem/1.55 var(--sans); color: var(--text-soft); }

/* ---------- process ---------- */

.pole {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 40px); counter-reset: step; border-top: 1.5px solid var(--ink);
}
.pole::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 14px); opacity: 0.4;
}
.pole li { position: relative; counter-increment: step; padding-top: 40px; }
.pole li::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 24px; background: var(--brass); }
.pole li::after { content: counter(step); position: absolute; left: 11px; top: 7px; font: 500 0.875rem/1 var(--sans); color: var(--brass-deep); }
.pole p { margin-top: 10px; font: 400 1rem/1.55 var(--sans); color: var(--text-soft); }

/* ---------- contact and forms ---------- */

.contact__intro > p { margin-top: 22px; color: var(--text-soft); max-width: 26em; }
.reach { margin-top: 36px; border-top: 1px solid var(--hair); }
.reach > div {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding-block: 14px; border-bottom: 1px solid var(--hair);
}
.reach dt { font: 400 0.9375rem/1.4 var(--sans); color: var(--text-soft); }
.reach dd { font: 400 1.0625rem/1.45 var(--sans); overflow-wrap: anywhere; }
.reach a { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font: 500 0.9375rem/1.3 var(--sans); }
.field__opt { font-weight: 400; color: var(--text-soft); }
.field input,
.field select,
.field textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid rgba(51, 51, 51, 0.5);
  border-radius: 2px; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 148px; }
.field select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23333' stroke-width='1.6'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; padding: 12px 13px; }
.field__hint,
.field__error { margin-top: 8px; font: 400 0.875rem/1.4 var(--sans); }
.field__hint { color: var(--text-soft); }
.field__error { color: var(--error); font-weight: 500; }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form__note { font: 400 0.875rem/1.45 var(--sans); color: var(--text-soft); max-width: 30em; }

/* ---------- inner pages ---------- */

.pagehead { padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 84px); }
.pagehead h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.016em; max-width: 16em; }
.pagehead__lede { margin-top: 22px; max-width: 34em; color: var(--text-soft); font-size: 1.125rem; }
.pagehead__lede .textlink { font: inherit; color: var(--text); }
.pagehead__back { margin-bottom: 26px; }
.pagehead .facts { margin-top: 26px; }
.projects-page { padding-top: clamp(48px, 6vw, 88px); }

.project + .project { margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--hair); }
.project__head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(40px, 7vw, 112px);
  row-gap: 20px; align-items: start; margin-bottom: clamp(28px, 3vw, 44px);
}
.project__head h2 a { text-decoration: none; }
.project__note { color: var(--text-soft); font-size: 1.0625rem; max-width: 32em; }
.project__more { margin-top: clamp(22px, 2.4vw, 32px); }

.archive__year { margin: clamp(48px, 6vw, 80px) 0 24px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); font-size: 1.75rem; }
.archive__year:first-child { margin-top: 0; }
.archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) var(--gap); }
.archive a { display: block; text-decoration: none; }
.archive__cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.archive__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive h3 { margin-top: 14px; font-size: 1.375rem; }
.archive p { margin-top: 4px; font: 400 0.9375rem/1.45 var(--sans); color: var(--text-soft); }
.empty { max-width: 30em; color: var(--text-soft); }
.empty .textlink { display: inline-block; margin-top: 18px; }
.project-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--hair);
}

/* ---------- details shared by the forms and links ---------- */

code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.field input,
.field select,
.field textarea { transition: border-color 0.15s ease; }
.field input[type="file"] { padding: 12px 14px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.form__note a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.reach a:hover { text-decoration-color: currentColor; }
.project__head h2 a:hover,
.archive a:hover h3 { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

.page { padding-block: var(--band); }

/* ---------- posting page ---------- */

.post__wrap > * { max-width: 760px; }
.post__wrap > .post__login { max-width: 420px; }
.notice { padding: 28px clamp(20px, 3vw, 36px); background: var(--stone); }
.notice p { margin-top: 12px; color: var(--text-soft); }

.post__photos { border-top: 1px solid var(--hair); }
.post__photos:empty { display: none; }
.post__photos li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px 18px;
  padding-block: 16px;
  border-bottom: 1px solid var(--hair);
}
.post__thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.post__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post__fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px 14px; align-content: start; }
.post__fields .field label { font-size: 0.8125rem; margin-bottom: 4px; font-weight: 400; color: var(--text-soft); }
.post__fields .field input,
.post__fields .field select { min-height: 44px; padding: 9px 12px; font-size: 1rem; }
.post__row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font: 400 0.875rem/1 var(--sans); color: var(--text-soft); }
.post__row-actions .textlink { min-height: 32px; font-size: 0.875rem; }

.post__existing { margin-top: clamp(56px, 7vw, 96px); }
.post__rule { margin-top: 10px; font: 400 0.9375rem/1.5 var(--sans); color: var(--text-soft); }
.post__list { margin-top: 20px; border-top: 1px solid var(--hair); }
.post__list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--hair);
}
.post__list h3 { font-size: 1.25rem; }
.post__list p { font: 400 0.875rem/1.45 var(--sans); color: var(--text-soft); }
.post__signout { margin-top: 28px; min-height: 44px; }


@media (max-width: 639px) {
  .post__photos li { grid-template-columns: 96px minmax(0, 1fr); }
  .post__fields { grid-template-columns: minmax(0, 1fr); }
  .post__list li { grid-template-columns: 72px minmax(0, 1fr); }
  .post__list li .textlink { grid-column: 2; justify-self: start; }
}

/* ---------- footer ---------- */

.site-footer { padding-block: clamp(56px, 6vw, 88px) 36px; font: 400 0.9375rem/1.5 var(--sans); }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  column-gap: clamp(32px, 6vw, 96px); row-gap: 40px;
}
.site-footer__brand img { display: block; width: 210px; height: auto; }
.site-footer__brand p { margin-top: 18px; color: var(--text-soft); max-width: 22em; }
.site-footer__nav,
.site-footer__reach { display: grid; align-content: start; justify-items: start; gap: 4px; }
.site-footer a {
  padding-block: 7px; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 4px) / 0 1.5px no-repeat;
  transition: background-size 0.25s ease;
}
.site-footer a:hover { background-size: 100% 1.5px; }
.site-footer__legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding-top: 24px; border-top: 1px solid var(--hair); color: var(--text-soft); font-size: 0.875rem;
}

/* ---------- responsive ---------- */

@media (min-width: 1080px) and (max-height: 700px) {
  h1 { font-size: clamp(2.125rem, 0.9rem + 2.2vw, 2.75rem); }
  .hero { padding-top: 12px; }
  .hero__copy { padding-bottom: 20px; }
  .hero__lede { margin-top: 14px; }
  .hero__actions { margin-top: 18px; }
}

@media (max-width: 1079px) {
  :root { --header-h: 68px; }
  .brand img { height: 46px; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--text);
    border-radius: 2px; background: none; color: var(--text); font: 500 0.9375rem/1 var(--sans); cursor: pointer;
  }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--pad) 24px; background: var(--lacquer); border-bottom: 1px solid var(--hair); font-size: 1.0625rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--hair); background: none; }
  .site-nav .btn { margin-top: 20px; min-height: 52px; }

  .hero__grid { display: block; }
  .hero__copy { padding-bottom: 0; }
  .hero__copy h1 { max-width: 14em; }
  .hero__figure { margin-top: clamp(28px, 6vw, 56px); margin-bottom: 0; }
  .rooms { flex-direction: column; gap: 0; padding: 20px 0 0; }
  .rooms__lead { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
  .rooms__tabs { gap: 0 20px; }
  .rooms__tabs button { min-height: 44px; }
  .rooms__panels { padding-top: 8px; min-height: 8.5em; }

  .statement__body { grid-template-columns: minmax(0, 1fr); justify-content: start; max-width: 34em; }
  .cabinetry__grid,
  .build__grid,
  .contact__grid,
  .split-head,
  .latest__head,
  .project__head { grid-template-columns: minmax(0, 1fr); }
  .cabinetry__grid { grid-template-areas: "head" "figure" "key"; }
  .cabinetry__figure { position: static; max-width: 560px; }

  .pole { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1.5px solid var(--ink); row-gap: 36px; }
  .pole::before {
    inset: 0 auto 0 0; width: 7px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 14px);
  }
  .pole li { padding: 0 0 0 44px; }
  .pole li::before { top: 16px; width: 24px; height: 2px; }
  .pole li::after { top: -8px; left: 14px; }
  .pole h3 { padding-top: 2px; }

  .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .hero__figure { margin-top: 12px; }
  .house { aspect-ratio: 880 / 560; }
}

@media (max-width: 639px) {
  body { font-size: 1.125rem; }
  .finishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finishes li:nth-child(even) { margin-top: 28px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate--a1,
  .plate--c3,
  .plate--full { grid-column: 1 / -1; grid-row: auto; }
  .plate--a2,
  .plate--b,
  .plate--half,
  .plate--c1,
  .plate--c2 { grid-column: auto; grid-row: auto; }
  .plate--a2 .plate__frame,
  .plate--b .plate__frame,
  .plate--half .plate__frame,
  .plate--c1 .plate__frame,
  .plate--c2 .plate__frame { aspect-ratio: 4 / 5; }
  .plate--c3 .plate__frame,
  .plate--full .plate__frame { aspect-ratio: 3 / 2; }
  .scope li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .reach > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .archive { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn,
  .form__send .btn,
  .latest__links .btn { width: 100%; }
  .rooms__photo { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
