/* Settlement Post & Beam, alternate site, version 2 (2026-10-24).
   Newsreader carries the story, light at large sizes; Hanken Grotesk (the
   logo guide's sans) carries the facts. The colours are the logo's own ink
   and cream on a warm paper. Motion is slow and small: photos fade in as
   they load, words rise a few pixels into place the first time they come
   into view, and none of it runs for anyone whose device asks for less. */

:root {
  --paper: #F3F1EC;
  --paper-2: #E9E6DF;
  --sheet: #FFFFFF;
  --ink: #313731;          /* the logo's ink */
  --muted: #6B6A62;
  --rule: rgba(49, 55, 49, 0.14);
  --rule-2: rgba(49, 55, 49, 0.3);
  --night: #313731;
  --on-night: #ECEAE4;     /* the logo's cream */
  --on-night-2: #B4B6AE;
  --rule-night: rgba(236, 234, 228, 0.18);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --m: 52px;        /* page margin; the side rails live in it */
  --rail-x: 24px;   /* window edge to the middle of a rail's letters */
  --gap: 16px;      /* column gap */
  --maxw: 1480px;   /* widest the text and photos run */
  --sec: 112px;     /* space between sections */
  --mast: 72px;     /* masthead height */
  --rowcols: minmax(0, 2fr) minmax(0, 3.4fr) minmax(0, 2fr) minmax(0, 2.6fr) minmax(0, 2fr);
}
/* The rails keep about as much room as on the live site: their letters sit
   16 to 37px from the window edge and 20 to 52px from the words and photos.
   (Margins sized to centre the rails on phones and tablets, 47 / 63px, were
   tried and reverted on 2026-10-24.) */
@media (min-width: 640px)  { :root { --m: 72px; --rail-x: 32px; --gap: 20px; --sec: 136px; } }
@media (min-width: 1024px) { :root { --m: 88px; --rail-x: 40px; --gap: 24px; --sec: 184px; --mast: 96px; } }
@media (min-width: 1440px) { :root { --m: 104px; --rail-x: 44px; --gap: 28px; --sec: 208px; } }

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
/* focus moved by the menu after a tap: no ring (site.js quietFocus) */
.no-ring:focus, .no-ring:focus-visible { outline: none; }
main:focus { outline: none; }
::selection { background: rgba(49, 55, 49, 0.14); }

.wrap { width: min(calc(100% - 2 * var(--m)), var(--maxw)); margin-inline: auto; }
.nw { white-space: nowrap; }
.dot { padding: 0 0.18em; }
.skip {
  position: absolute; left: var(--m); top: -120px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  font-family: var(--sans); font-size: 14px;
}
.skip:focus { top: 8px; }

/* ── Type ─────────────────────────────────────────────────── */
.label {
  font-family: var(--sans); font-size: 12px; line-height: 1.4; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.cap { font-family: var(--sans); font-size: 13px; line-height: 1.55; letter-spacing: 0.01em; color: var(--muted); }
.h2 { font-size: clamp(32px, 8.4vw, 40px); line-height: 1.1; letter-spacing: -0.018em; }
.h3 { font-weight: 300; font-size: clamp(27px, 7vw, 32px); line-height: 1.15; letter-spacing: -0.012em; }
.body { color: var(--ink); }
@media (min-width: 1024px) {
  .h2 { font-size: clamp(40px, 3.3vw, 54px); line-height: 1.08; }
  .h3 { font-size: clamp(32px, 2.4vw, 38px); }
}

/* A text link with an arrow. The faint rule under it fills in on hover. */
.more {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 44px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink);
}
.more span {
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule-2), var(--rule-2));
  background-size: 0% 1px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  transition: background-size 0.7s var(--ease);
}
.more::after { content: "\2192"; transition: transform 0.6s var(--ease); }
.more:hover span { background-size: 100% 1px, 100% 1px; }
.more:hover::after { transform: translateX(4px); }

/* ── Side rails ───────────────────────────────────────────── */
/* Two links set on end in the page margins, like the notes printed along
   the edge of a drawing sheet. On tablets and computers every photo stops
   at the margin, so the rails sit on paper; on phones the photos run edge
   to edge (phones.css) and the rails change colour over them (site.js). */
.rail {
  position: fixed; top: 50%; z-index: 35;
  width: 44px; padding: 18px 0;
  writing-mode: vertical-rl; line-height: 44px; text-align: center; white-space: nowrap;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; opacity: 0.82;
  transition: opacity 0.45s ease;
}
.rail:hover, .rail:focus-visible { opacity: 1; }
.rail--left { left: calc(var(--rail-x) - 22px); transform: translateY(-50%) rotate(180deg); }
.rail--right { right: calc(var(--rail-x) - 22px); transform: translateY(-50%); }
/* What is under the letters (site.js): a photo, a pale photo or paper,
   the dark band; and, for a moment, a photo's edge. */
.rail.is-photo { color: #fff; opacity: 0.96; text-shadow: 0 0 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 0, 0, 0.35); }
.rail.is-pale { opacity: 0.9; text-shadow: 0 0 2px rgba(243, 241, 236, 0.7), 0 0 10px rgba(243, 241, 236, 0.8); }
.rail.is-dark { color: var(--on-night); }
.rail.is-crossing { opacity: 0 !important; pointer-events: none; transition: opacity 0.15s ease; }
.rail.is-away { opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
body.menu-open .rail { visibility: hidden; }
/* On phones the rails ease back while you read and return as you scroll,
   as they do on the live site. */
@media (max-width: 639px) {
  .motion body.rails-idle .rail:not(:focus-visible) { opacity: 0.28; transition: opacity 1s ease, color 0.6s ease; }
}

/* ── Masthead and menu ────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  transition: transform 0.6s var(--ease), box-shadow 0.4s ease;
}
.masthead.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.masthead.is-hidden { transform: translateY(-101%); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--mast); }
.masthead__logo { display: inline-flex; align-items: center; min-height: 44px; }
/* A step above the logo guide's 120px floor, so POST & BEAM reads on phones
   (Kayle, 2026-10-24: "a little bigger"; was 124 / 140 / 156, nav 14px). */
.masthead__logo img { width: 140px; height: auto; }
.masthead__nav { display: none; }
/* The menu button: three thin lines, their right end on the text column's
   edge, mirroring the logo on the left. */
.masthead__menu {
  display: inline-flex; align-items: center; justify-content: flex-end;
  min-height: 44px; min-width: 44px;
}
.burger { position: relative; display: block; width: 24px; height: 14px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: calc(50% - 0.75px); }
.burger span:nth-child(3) { bottom: 0; }
.burger--x span:nth-child(1) { top: calc(50% - 0.75px); transform: rotate(45deg); }
.burger--x span:nth-child(2) { opacity: 0; }
.burger--x span:nth-child(3) { bottom: auto; top: calc(50% - 0.75px); transform: rotate(-45deg); }
@keyframes cross-in { from { transform: rotate(0deg); } }
.motion .menu .burger--x span:nth-child(1), .motion .menu .burger--x span:nth-child(3) { animation: cross-in 0.7s var(--ease) 0.08s backwards; }
@media (min-width: 768px) {
  .masthead__logo img { width: 156px; }
  .masthead__menu[data-menu-open] { display: none; }
  .masthead__nav { display: flex; gap: clamp(24px, 2.6vw, 40px); }
  .masthead__nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    font-family: var(--sans); font-size: 15px; letter-spacing: 0.02em; text-decoration: none;
  }
  .masthead__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
  }
  .masthead__nav a:hover::after, .masthead__nav a[aria-current="page"]::after { transform: scaleX(1); }
}
@media (min-width: 1024px) { .masthead__logo img { width: 176px; } }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: 40px;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--mast); }
.menu__main { margin-top: 24px; border-top: 1px solid var(--rule); }
.menu__main a {
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 12px 0 13px;
  font-size: 34px; font-weight: 300; line-height: 1.15; letter-spacing: -0.015em;
  border-bottom: 1px solid var(--rule); text-decoration: none;
}
.menu__n {
  font-family: var(--sans); font-size: 12px; font-weight: 500; font-style: normal; letter-spacing: 0.1em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.menu__main a[aria-current="page"] .menu__t { font-style: italic; }
.menu__more { margin-top: 24px; display: grid; }
.menu__more a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--sans); font-size: 16px; text-decoration: none;
}
.menu__more a::after { content: "\2192"; margin-left: 0.5em; }
.menu__contact { margin-top: 24px; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); }
.menu__contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* ── Home: the cover ──────────────────────────────────────── */
.cover { padding-top: 4px; }
.cover__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
/* 34% across puts the three pendant lights (centred 42.6% across the photo) in the middle of the phone's 4:5
   frame (Kayle, 2026-10-24). Wider frames show the photo's full width, so it only matters on phones. */
.cover__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; }
.cover__credit { margin-top: 10px; text-align: right; }
.cover__foot { margin-top: 28px; }
.cover__title { font-size: clamp(38px, 11vw, 56px); line-height: 1.02; letter-spacing: -0.024em; }
.doors { margin-top: 32px; border-bottom: 1px solid var(--rule); }
.door {
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 6px; align-items: center;
  padding: 18px 0 20px; border-top: 1px solid var(--rule); text-decoration: none;
}
.door__label { grid-column: 1; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.door__line { grid-column: 1; font-size: 19px; line-height: 1.35; }
.door__arrow { grid-column: 2; grid-row: 1 / span 2; font-family: var(--sans); font-size: 18px; transition: transform 0.6s var(--ease); }
.door:hover .door__arrow { transform: translateX(5px); }
@media (min-width: 640px) {
  .cover__img { aspect-ratio: 3 / 2; }
  .cover__foot { margin-top: 40px; }
}
@media (min-width: 1024px) {
  /* Tall enough to fill the screen, short enough that the title shows
     beneath it before any scrolling. */
  .cover__img { aspect-ratio: auto; height: clamp(420px, calc(100svh - var(--mast) - 236px), 960px); }
  .cover__foot {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    align-items: start; margin-top: 28px;
  }
  .cover__title { grid-column: 1 / span 7; font-size: clamp(44px, 3.9vw, 64px); }
  .doors { grid-column: 9 / span 4; margin: 0; }
  .door { padding: 14px 0 16px; }
  .door__line { font-size: 18px; }
}

/* ── Home: intro, the structure spread ────────────────────── */
.intro { padding-top: var(--sec); }
.intro__lead { font-weight: 300; font-size: clamp(29px, 7.6vw, 36px); line-height: 1.2; letter-spacing: -0.016em; }
.intro__body { margin-top: 28px; max-width: 34em; }
@media (min-width: 1024px) {
  .intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .intro__lead { grid-column: 2 / span 10; font-size: clamp(40px, 3.6vw, 60px); line-height: 1.14; }
  .intro__body { grid-column: 7 / span 5; margin-top: 48px; font-size: 19px; }
}

.spread { padding-top: var(--sec); }
.spread__fig { overflow: hidden; background: var(--paper-2); }
.spread__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spread__text { margin-top: 36px; }
.spread__text .body { margin-top: 22px; }
.spread__text .more { margin-top: 18px; }
@media (min-width: 768px) {
  .spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .spread__fig { grid-column: 1 / span 6; }
  .spread__text { grid-column: 7 / span 6; margin-top: 0; }
}
@media (min-width: 1024px) {
  .spread__text { grid-column: 8 / span 4; }
}

/* ── Section heads ────────────────────────────────────────── */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  border-top: 1px solid var(--rule); padding-top: 20px;
}

/* A section head with a small label over the heading, and on a computer an
   optional line to its right (Our story, For homeowners, For architects). */
.section-head .h2 { margin-top: 14px; }
.section-head__aside { margin-top: 20px; max-width: 30em; }
@media (min-width: 1024px) {
  .section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .section-head__main { grid-column: 1 / span 7; }
  .section-head__aside { grid-column: 9 / span 4; margin: 0 0 0.35em; }
}

/* ── Home: selected projects ──────────────────────────────── */
.selected { padding-top: var(--sec); }
.plates { margin-top: 40px; display: grid; row-gap: 64px; }
.plate { display: block; text-decoration: none; }
.plate__img { display: block; background: var(--paper-2); }
.plate__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate--b .plate__img img, .plate--c .plate__img img { aspect-ratio: 4 / 5; }
.plate__cap { display: block; margin-top: 16px; }
.plate__name { display: block; font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.plate__meta { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); }
.plate__credit { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
@media (min-width: 768px) {
  .plates {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    row-gap: clamp(88px, 10vw, 168px); margin-top: 64px;
  }
  .plate--a, .plate--d {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  }
  .plate--a .plate__img { grid-column: 1 / span 8; }
  .plate--a .plate__cap { grid-column: 9 / span 4; margin: 0; }
  .plate--a .plate__img img { aspect-ratio: 5 / 4; }
  .plate--b { grid-column: 1 / span 6; }
  .plate--c { grid-column: 7 / span 6; margin-top: 34%; }
  .plate--d .plate__img { grid-column: 5 / span 8; grid-row: 1; }
  .plate--d .plate__cap { grid-column: 1 / span 4; grid-row: 1; margin: 0; }
  .plate--d .plate__img img { aspect-ratio: 5 / 4; }
}
@media (min-width: 1024px) {
  .plate--b { grid-column: 2 / span 5; }
  .plate--c { grid-column: 8 / span 4; margin-top: 46%; }
  .plate__name { font-size: 27px; }
}

/* ── Quotes ───────────────────────────────────────────────── */
.quote { padding-top: var(--sec); }
.quote__text p {
  font-style: italic; font-weight: 300; font-size: clamp(26px, 6.8vw, 32px); line-height: 1.3; letter-spacing: -0.01em;
  text-indent: -0.4em; /* the opening quote mark hangs in the margin */
}
.quote__by { margin-top: 28px; font-family: var(--sans); font-size: 13px; line-height: 1.5; letter-spacing: 0.01em; }
.quote__name { display: block; font-weight: 500; }
.quote__org { display: block; color: var(--muted); }
@media (min-width: 1024px) {
  .quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .quote__text, .quote__by { grid-column: 3 / span 8; }
  .quote__text p { font-size: clamp(34px, 3vw, 48px); line-height: 1.24; }
}

/* ── Home: the wide shop photo ────────────────────────────── */
.bleed { margin-top: var(--sec); }
.bleed__img { overflow: hidden; background: var(--paper-2); width: min(calc(100% - 2 * var(--m)), var(--maxw)); margin-inline: auto; }
.bleed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bleed figcaption { margin-top: 12px; }
@media (min-width: 768px) { .bleed img { aspect-ratio: 16 / 9; max-height: 92svh; } }

/* ── Home: six steps and the drawings ─────────────────────── */
.steps { padding-top: var(--sec); }
.steps__head .body { margin-top: 18px; max-width: 30em; }
@media (min-width: 1024px) {
  .steps__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .steps__head .h2 { grid-column: 1 / span 6; }
  .steps__head .body { grid-column: 8 / span 4; margin: 0 0 0.3em; }
}
.steps__list { margin-top: 48px; display: grid; border-top: 1px solid var(--rule); }
.step {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 8px;
  padding: 20px 0 22px; border-bottom: 1px solid var(--rule);
}
.step__n {
  grid-row: 1 / span 2; padding-top: 7px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.step__t { font-size: 23px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; }
.step__s { margin-top: 6px; font-size: 16px; line-height: 1.45; font-style: italic; font-weight: 300; color: var(--muted); }
@media (min-width: 640px) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
}
@media (min-width: 1024px) {
  /* Each step takes three rows of the list (number, title, line), so
     titles that run to two lines don't push their neighbours out of step. */
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(var(--gap) * 2); }
  .step { grid-template-columns: 1fr; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 26px 0 34px; }
  .step__n { grid-row: auto; padding: 0 0 18px; }
  .step__t { font-size: 26px; }
  .step__s { font-size: 17px; margin-top: 8px; }
}

.sheets { margin-top: clamp(64px, 8vw, 128px); display: grid; row-gap: 48px; }
.sheet__paper { overflow: hidden; background: var(--sheet); padding: clamp(12px, 1.8vw, 28px); box-shadow: 0 1px 2px rgba(49, 55, 49, 0.06), 0 0 0 1px rgba(49, 55, 49, 0.06); }
/* Two sheets of one set: the same size, the drawing fitted to each. */
.sheet__paper img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
/* The schematic's pavilion sits small on its sheet: a gentle crop of the
   white paper around it brings it up toward the shop drawing's scale,
   keeping the title strip along the bottom. */
.sheet--a .sheet__paper img { transform: scale(1.12); transform-origin: 50% 92%; }
.sheet figcaption { margin-top: 14px; max-width: 34em; }
.sheet__t { display: block; color: var(--ink); font-weight: 500; }
@media (min-width: 1024px) {
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gap) * 1.5); align-items: start; }
}
.steps__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 0 36px; }

/* ── Home: our story ──────────────────────────────────────── */
.homestory { padding-top: var(--sec); }
.homestory__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); }
.homestory__fig figcaption { margin-top: 12px; }
.homestory__text { margin-top: 44px; }
.homestory__text .h2 { margin-top: 16px; }
.homestory__text .body { margin-top: 22px; }
.homestory__text .more { margin-top: 18px; }
@media (min-width: 768px) {
  .homestory { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
  .homestory__fig { grid-column: 1 / span 5; }
  .homestory__text { grid-column: 7 / span 6; margin: 0; }
}
@media (min-width: 1024px) {
  .homestory__fig { grid-column: 2 / span 4; }
  .homestory__text { grid-column: 7 / span 5; }
}

/* ── Closing band and footer (the logo's ink) ─────────────── */
.closing {
  margin-top: var(--sec);
  background: var(--night); color: var(--on-night);
  padding: clamp(80px, 11vw, 168px) 0 clamp(64px, 8vw, 120px);
}
.closing__h { font-size: clamp(38px, 10.4vw, 52px); line-height: 1.04; letter-spacing: -0.024em; max-width: 12em; }
.closing__side { margin-top: 28px; }
.closing__body { font-size: 19px; line-height: 1.55; color: var(--on-night-2); max-width: 28em; }
.closing__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
@media (min-width: 1024px) {
  .closing__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .closing__h { grid-column: 1 / span 6; font-size: clamp(52px, 4.8vw, 80px); }
  .closing__side { grid-column: 8 / span 5; margin: 0; }
}

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; color: var(--on-night); border: 1px solid rgba(236, 234, 228, 0.5);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--on-night);
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn span { position: relative; }
.btn:hover { color: var(--night); border-color: var(--on-night); }
.btn:hover::before { transform: none; }
.closing__line {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--sans); font-size: 15px; text-decoration: none;
  background-image: linear-gradient(var(--rule-night), var(--rule-night));
  background-size: 100% 1px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat;
}
.closing__line:hover { background-image: linear-gradient(var(--on-night), var(--on-night)); }
.closing__extra { margin-top: 14px; }
.closing :focus-visible, .foot :focus-visible { outline-color: var(--on-night); }
.closing .more { color: var(--on-night); }

.foot { background: var(--night); color: var(--on-night); padding-bottom: 32px; font-family: var(--sans); font-size: 14px; }
.foot--alone { margin-top: var(--sec); padding-top: clamp(16px, 3vw, 40px); }
.foot--alone .foot__in { border-top-color: transparent; }
.foot__in { border-top: 1px solid var(--rule-night); padding-top: 56px; display: grid; row-gap: 40px; }
.foot__brand img { width: 200px; height: auto; }
.foot__tag { margin-top: 16px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 18px; color: var(--on-night-2); }
.foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.foot__nav a, .foot__contact a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.foot__nav a:hover, .foot__contact a:hover { text-decoration: underline; text-underline-offset: 0.32em; text-decoration-thickness: 1px; }
.foot__extra a { color: var(--on-night-2); }
.foot__label {
  margin-bottom: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-night-2);
}
.foot__base {
  margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule-night);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-size: 13px; letter-spacing: 0.02em; line-height: 1.5; color: var(--on-night-2);
}
@media (max-width: 639px) { .foot__dot { display: none; } }
/* Privacy, after the copyright: a 44px tap height without changing the line */
.foot__legal { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--on-night); text-decoration: none; }
.foot__legal:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .foot__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .foot__brand { grid-column: 1 / -1; }
  .foot__nav { grid-column: 1 / span 8; }
  .foot__contact { grid-column: 9 / span 4; }
}
@media (min-width: 1024px) {
  .foot__brand { grid-column: 1 / span 5; }
  .foot__nav { grid-column: 6 / span 4; }
  .foot__contact { grid-column: 10 / span 3; }
}

/* ── Page heads (Our work, stand-ins) ─────────────────────── */
.pagehead { padding-top: clamp(40px, 8vw, 136px); }
.pagehead__title { font-size: clamp(56px, 16vw, 88px); line-height: 0.96; letter-spacing: -0.035em; }
.pagehead__dek { margin-top: 22px; font-size: 19px; line-height: 1.5; max-width: 30em; }
@media (min-width: 1024px) {
  .pagehead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .pagehead__title { grid-column: 1 / span 7; font-size: clamp(96px, 8.8vw, 144px); }
  .pagehead__dek { grid-column: 8 / span 4; margin: 0 0 0.7em; font-size: 20px; }
}
.later__link { margin-top: 16px; }
@media (min-width: 1024px) { .later__link { grid-column: 8 / span 5; } }

/* ── Our work: index and photos ───────────────────────────── */
.toolbar {
  margin-top: clamp(48px, 7vw, 112px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.toolbar__count { font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }
.viewswitch { display: none; gap: 24px; }
.js .viewswitch { display: inline-flex; }
.viewswitch button {
  position: relative; min-height: 44px; min-width: 44px; padding: 0 2px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted);
  transition: color 0.4s ease;
}
.viewswitch button::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.viewswitch button:hover, .viewswitch button[aria-pressed="true"] { color: var(--ink); }
.viewswitch button[aria-pressed="true"]::after { transform: scaleX(1); }
.js:not(.view-index) [data-view-panel="index"],
.js.view-index [data-view-panel="photos"] { display: none; }

.index { padding-top: 8px; }
.group + .group { margin-top: clamp(80px, 9vw, 144px); }
.group__head { border-top: 1px solid var(--rule); padding-top: 20px; }
.group__desc { margin-top: 14px; font-size: 16px; line-height: 1.6; max-width: 36em; }
@media (min-width: 1024px) {
  .group__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; }
  .group__head .h3 { grid-column: 1 / span 4; }
  .group__desc { grid-column: 6 / span 6; margin: 0; font-size: 17px; }
}
.rows__head { display: none; }
.rows { margin-top: 28px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2px;
  padding: 24px 0 28px; border-top: 1px solid var(--rule); text-decoration: none;
}
.rows li:first-child .row { border-top: 0; padding-top: 0; }
.row__img { display: block; margin-bottom: 16px; background: var(--paper-2); }
.row__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row__name { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 4px; }
.row__status {
  display: block; margin-top: 8px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.row__place, .row__timber, .row__scale { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); }
.row__k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) {
  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto auto 1fr;
    column-gap: var(--gap); padding: 28px 0;
  }
  .rows li:first-child .row { padding-top: 0; }
  .row__img { grid-row: 1 / -1; margin: 0; }
  .row__img img { aspect-ratio: 4 / 3; }
  .row__name, .row__place, .row__timber, .row__scale { grid-column: 2; }
}
@media (min-width: 1024px) {
  .rows { margin-top: 0; }
  .rows__head {
    display: grid; grid-template-columns: var(--rowcols); column-gap: var(--gap);
    padding: 32px 0 12px; border-bottom: 1px solid var(--rule);
    font-family: var(--sans); font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  }
  .rows__head span:last-child { text-align: right; }
  .row { grid-template-columns: var(--rowcols); grid-template-rows: auto; align-items: center; padding: 18px 0; }
  .rows li:first-child .row { border-top: 0; padding-top: 18px; }
  .row__img { grid-row: auto; }
  .row__name, .row__place, .row__timber, .row__scale { grid-column: auto; }
  .row__name { font-size: 26px; margin: 0; }
  .row__place, .row__timber, .row__scale { font-size: 14px; color: var(--ink); }
  .row__scale { text-align: right; font-variant-numeric: tabular-nums; }
}

.photos { border-top: 1px solid var(--rule); padding-top: 28px; display: grid; row-gap: 56px; }
.photo { display: block; text-decoration: none; }
.photo__img { display: block; background: var(--paper-2); }
.photo__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.photo__cap { display: block; margin-top: 16px; }
.photo__name { display: block; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.photo__meta { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
@media (min-width: 768px) {
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 80px; }
}
@media (min-width: 1024px) { .photo__name { font-size: 27px; } }
.work__credit { margin-top: 40px; }

.words { padding-top: var(--sec); }
.words__list { margin-top: 48px; display: grid; row-gap: 64px; }
.words .quote__text p { font-size: clamp(24px, 6.2vw, 28px); }
@media (min-width: 1024px) {
  .words__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gap) * 3); }
  .words .quote__text p { font-size: clamp(28px, 2.2vw, 34px); }
}

.ig { padding-top: var(--sec); }
.ig__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ig__item { display: block; background: var(--paper-2); }
.ig__item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 640px) { .ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 1024px) { .ig__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } }

/* ── Project pages ────────────────────────────────────────── */
.phead { padding-top: clamp(28px, 5vw, 80px); container-type: inline-size; }
/* Sized to the column, so the longest single word ("Pennsylvania") fits. */
.phead__title { margin-top: 16px; font-size: clamp(36px, 17.5cqi, 84px); line-height: 0.98; letter-spacing: -0.032em; }
.phead__lede { margin-top: 24px; font-size: 19px; line-height: 1.5; max-width: 32em; }
@media (min-width: 1024px) {
  .phead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .phead__label { grid-column: 1 / -1; }
  .phead__title { grid-column: 1 / span 7; font-size: clamp(88px, 8.4vw, 140px); }
  .phead__lede { grid-column: 8 / span 5; margin: 0 0 0.8em; font-size: 20px; }
}

.phero { margin-top: clamp(40px, 6vw, 96px); }
.phero__img { overflow: hidden; background: var(--paper-2); width: min(calc(100% - 2 * var(--m)), var(--maxw)); margin-inline: auto; }
/* A project can give its first photo its own frame and focal point at each
   size, so the building stays whole: --ar-p / --pos-p on phones, -t tablets,
   -d computers, --pos for all three (set from the project's hero in project.cjs). */
.phero img { width: 100%; aspect-ratio: var(--ar-p, 4 / 5); object-fit: cover; object-position: var(--pos-p, var(--pos, 50% 50%)); }
.phero figcaption { margin-top: 12px; }
@media (min-width: 640px) { .phero img { aspect-ratio: var(--ar-t, 4 / 3); object-position: var(--pos-t, var(--pos, 50% 50%)); } }
@media (min-width: 1024px) { .phero img { aspect-ratio: var(--ar-d, 3 / 2); object-position: var(--pos-d, var(--pos, 50% 50%)); max-height: calc(100svh - 24px); } }

/* The frame sheet, drawn like a drawing's title block. Cell lines come
   from a 1px shadow on each cell's left and top; the band clips the ones
   that would fall on its outer edge, so empty cells stay clean. */
.sheetblock { margin-top: clamp(48px, 7vw, 112px); }
.tblock { border: 1px solid var(--ink); }
.tb-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.tb-band + .tb-band { border-top: 1px solid var(--ink); }
.tb { position: relative; min-width: 0; padding: 16px 14px 18px; box-shadow: -1px 0 0 0 var(--rule-2), 0 -1px 0 0 var(--rule-2); }
.tb--wide { grid-column: span 2; }
@media (max-width: 767px) {
  /* Two to a row on phones: an odd one out at the end takes the full row. */
  .tb-band > .tb:last-child:nth-child(odd) { grid-column: span 2; }
}
.tb dt { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tb dd { margin-top: 8px; font-family: var(--sans); font-size: 15px; line-height: 1.4; }
/* Names kept together elsewhere may break in a narrow cell
   ("Settlement Post & Beam (Mike Beganyi)"); the &nbsp; ties still hold. */
.tb dd .nw { white-space: normal; }
.tb dd a {
  text-decoration: none;
  background-image: linear-gradient(var(--rule-2), var(--rule-2)); background-size: 100% 1px;
  background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px;
}
.tb dd a::after { content: ""; position: absolute; inset: 0; } /* the whole cell is the link */
.tb dd a:hover { background-image: linear-gradient(currentColor, currentColor); }
.tb--num { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
/* The numbers share one size per band, the largest that lets the band's
   longest number (--len, its width in ems, from project.cjs) fit its cell. */
.tb-band--nums { container-type: inline-size; --c: 2; --pad: 28px; --nmax: 56px; }
.tb--num dd {
  margin: 0 0 12px;
  font-family: var(--serif); font-weight: 300; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(24px, calc((100cqi / var(--c) - var(--pad)) / var(--len, 2.8)), var(--nmax));
  font-variant-numeric: lining-nums; white-space: nowrap;
}
@media (min-width: 768px) {
  .tb-band--about { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tb-band--people, .tb-band--nums { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .tb[style*="--fill"] { grid-column: span var(--fill); }
  .tb { padding: 20px 22px 22px; }
  .tb dd { font-size: 16px; }
  .tb-band--nums { --c: var(--cols, 4); --pad: 44px; --nmax: 84px; }
  .tb--num dd { margin-bottom: 14px; }
}

.pstory { padding-top: var(--sec); }
.pstory__title { font-size: clamp(32px, 8.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; max-width: 14em; }
.pstory__title + .prose { margin-top: 36px; }
.prose { max-width: 31em; }
.prose p { margin-top: 1.05em; font-size: 18px; line-height: 1.68; }
.prose p:first-child { margin-top: 0; }
.inset { margin: 48px 0; }
.inset img { width: 100%; }
.inset figcaption { margin: 10px 0 0; }
@media (min-width: 640px) {
  .inset { margin: 56px 0; width: 70%; }
  .inset figcaption { margin: 12px 0 0; }
}
@media (min-width: 1024px) {
  .pstory { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .pstory__title { grid-column: 2 / span 8; font-size: clamp(46px, 4.2vw, 68px); }
  .pstory .prose { grid-column: 4 / span 6; }
  .pstory__title + .prose { margin-top: 64px; }
  .prose p { font-size: 19px; }
  .inset {
    grid-column: 4 / span 9; width: auto; margin: 80px 0;
    display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  }
  .inset img { grid-column: 5 / span 5; grid-row: 1; }
  .inset figcaption { grid-column: 1 / span 3; grid-row: 1; margin: 0; }
}

.gallery { padding-top: var(--sec); display: grid; row-gap: 56px; }
.g img { width: 100%; background: var(--paper-2); }
.g figcaption { margin-top: 12px; max-width: 30em; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(64px, 9vw, 152px); }
  .g--full, .g--wide, .gallery__credit { grid-column: 1 / -1; }
  .g--pa { grid-column: 1 / span 6; }
  .g--pb { grid-column: 7 / span 6; }
  .g--single { grid-column: 4 / span 9; }
}
@media (min-width: 1024px) {
  .g--full img { aspect-ratio: 3 / 2; object-fit: cover; }
  .g--pa { grid-column: 1 / span 5; }
  .g--pb { grid-column: 7 / span 6; margin-top: 22%; }
  .g--pa.g--flip { grid-column: 2 / span 6; margin-top: 18%; }
  .g--pb.g--flip { grid-column: 9 / span 4; margin-top: 0; }
  .g--wide, .g--single {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  }
  .g--wide img { grid-column: 1 / span 9; }
  .g--wide figcaption { grid-column: 10 / span 3; margin: 0; }
  .g--single img { grid-column: 7 / span 5; grid-row: 1; }
  .g--single figcaption { grid-column: 3 / span 3; grid-row: 1; margin: 0; }
}

.quote--project { padding-top: var(--sec); }

.pager { margin-top: var(--sec); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.pager__link { display: block; min-width: 0; padding: 22px 16px 26px 0; text-decoration: none; }
.pager__link--next { text-align: right; border-left: 1px solid var(--rule); padding: 22px 0 26px 16px; }
.pager__name { display: block; margin-top: 10px; font-size: clamp(21px, 5.6vw, 26px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.pager__all { border-top: 1px solid var(--rule); padding-top: 6px; }
@media (min-width: 1024px) { .pager__name { font-size: clamp(30px, 2.6vw, 42px); } }

/* ── Shared parts for the other pages ─────────────────────── */

/* A page whose title is a sentence (Process, Craft, Story...). */
.pagehead--sentence .pagehead__label { margin-bottom: 18px; }
.pagehead--sentence .pagehead__title { font-size: clamp(38px, 10.4vw, 52px); line-height: 1.04; letter-spacing: -0.026em; max-width: 15em; }
.pagehead--sentence .pagehead__dek { margin-top: 26px; max-width: 32em; }
.pagehead__dek p { font-size: 19px; line-height: 1.55; }
.pagehead__dek p + p { margin-top: 0.9em; }
@media (min-width: 1024px) {
  .pagehead--sentence .pagehead__label { grid-column: 1 / -1; }
  .pagehead--sentence .pagehead__title { grid-column: 1 / span 8; font-size: clamp(52px, 4.9vw, 82px); line-height: 1.02; }
  .pagehead--sentence .pagehead__dek { grid-column: 9 / span 4; margin: 0 0 0.45em; }
  .pagehead__dek p { font-size: 18px; }
}

/* A photo across the page with its caption under it (used between sections). */
.plate-wide { margin-top: var(--sec); }
.plate-wide__img { overflow: hidden; background: var(--paper-2); }
.plate-wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate-wide figcaption { margin-top: 12px; }
@media (min-width: 768px) { .plate-wide img { aspect-ratio: 16 / 9; max-height: 92svh; } }

/* Numbered chapters: a number, a title and its line on the left, the
   explanation on the right (Process, For architects & contractors). */
.chapters { margin-top: 48px; border-top: 1px solid var(--rule); }
.chapter { padding: 32px 0 40px; border-bottom: 1px solid var(--rule); }
.chapter__n { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.chapter__t { margin-top: 14px; font-size: clamp(27px, 7vw, 32px); font-weight: 300; line-height: 1.12; letter-spacing: -0.016em; }
.chapter__s { margin-top: 10px; font-size: 18px; line-height: 1.45; font-style: italic; font-weight: 300; color: var(--muted); max-width: 26em; }
.chapter__body { margin-top: 24px; max-width: 34em; }
.chapter__body p + p { margin-top: 1em; }
.chapter__body .more { margin-top: 12px; }
@media (min-width: 1024px) {
  .chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: 48px 0 56px; }
  .chapter__head { grid-column: 1 / span 5; }
  .chapter__t { font-size: clamp(32px, 2.6vw, 42px); }
  .chapter__body { grid-column: 7 / span 6; margin-top: 30px; }
}

/* Questions and answers that open in place (For homeowners, The craft). */
.qa { margin-top: 40px; border-top: 1px solid var(--rule); }
.qa__item { border-bottom: 1px solid var(--rule); }
.qa__q {
  display: grid; grid-template-columns: 1fr 24px; column-gap: 20px; align-items: center;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__t { font-size: clamp(21px, 5.6vw, 24px); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.qa__s { display: block; grid-column: 1; margin-top: 6px; font-size: 16px; line-height: 1.45; font-style: italic; font-weight: 300; color: var(--muted); }
.qa__sign { grid-column: 2; grid-row: 1; position: relative; width: 14px; height: 14px; justify-self: end; }
.qa__sign::before, .qa__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform 0.6s var(--ease); }
.qa__sign::after { transform: rotate(90deg); }
.qa__item[open] .qa__sign::after { transform: rotate(0deg); }
.qa__a { padding: 0 0 32px; max-width: 36em; }
.qa__a p + p, .qa__a p + ul, .qa__a ul + p { margin-top: 1em; }
.qa__a ul { padding-left: 1.1em; list-style: disc; }
.qa__a li + li { margin-top: 0.4em; }
.qa__q:hover .qa__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (min-width: 1024px) {
  .qa__q { padding: 26px 0; }
  .qa__t { font-size: clamp(24px, 1.9vw, 28px); }
  .qa__a { padding: 0 0 40px; margin-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); }
}

/* Films. A loop plays like a living photograph while it is on screen; a
   film waits for someone to press play. */
.film { position: relative; overflow: hidden; background: var(--paper-2); }
.film video { display: block; width: 100%; }
.film--loop .film__poster { width: 100%; height: auto; }
.film--loop video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.film--loop.is-playing video { opacity: 1; }
.film--play video { aspect-ratio: 16 / 9; object-fit: cover; background: #1f221f; }
.film__poster, .film__play { display: none; }
.film--loop .film__poster { display: block; }
.js .film--play .film__poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .film--play .film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 24px 0 20px;
  background: rgba(243, 241, 236, 0.94); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.5s ease, transform 0.6s var(--ease);
}
.film__icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.js .film--play .film__play:hover { background: var(--paper); transform: translate(-50%, -50%) scale(1.03); }
.js .film--play.is-playing .film__poster, .js .film--play.is-playing .film__play { display: none; }

/* Galleries: two landscapes side by side, and drawings on white paper. */
@media (min-width: 640px) {
  .g--da { grid-column: 1 / span 6; }
  .g--db { grid-column: 7 / span 6; }
}
@media (min-width: 1024px) {
  .g--da { grid-column: 1 / span 7; }
  .g--db { grid-column: 8 / span 5; align-self: end; }
}
.g__paper { background: var(--sheet); padding: clamp(10px, 1.6vw, 24px); box-shadow: 0 1px 2px rgba(49, 55, 49, 0.06), 0 0 0 1px rgba(49, 55, 49, 0.06); }
.g--drawing img { background: none; }

/* A subheading inside a story. */
.prose__h { margin: 2.2em 0 0.2em; font-size: clamp(25px, 6.4vw, 30px); font-weight: 300; line-height: 1.15; letter-spacing: -0.014em; }
.prose > .prose__h:first-child { margin-top: 0; }

/* Project cards on pages that point to a few projects. */
.cards { margin-top: 40px; display: grid; row-gap: 56px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 72px; margin-top: 56px; } }

/* ── Motion ───────────────────────────────────────────────── */
/* Photos fade in once loaded. */
.motion img[data-fade] { opacity: 0; transition: opacity 1.2s ease, transform 1.8s var(--ease); }
.motion img[data-fade].is-loaded { opacity: 1; }

/* The first photo on a page settles into place as it arrives. */
.motion .cover__img img, .motion .phero__img img { transform: scale(1.045); transition: opacity 1.6s ease, transform 3.2s var(--ease); }
.motion .cover__img img.is-loaded, .motion .phero__img img.is-loaded { transform: none; }

/* The words at the top of a page follow the photo in. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.motion .cover__foot > *, .motion .cover__credit, .motion .phead, .motion .pagehead { animation: rise 1.4s var(--ease) both; }
.motion .cover__credit { animation-delay: 0.5s; }
.motion .cover__title { animation-delay: 0.35s; }
.motion .doors { animation-delay: 0.6s; }
.motion .phead, .motion .pagehead { animation-delay: 0.15s; }

/* Words rise into place the first time they come into view. site.js adds
   "reveal" only once it is running, so nothing stays hidden without it. */
.motion.reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.motion.reveal [data-reveal] {
  transition: opacity 1.1s ease, transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* On a computer, project photos lean in slightly under the pointer. */
@media (hover: hover) and (pointer: fine) {
  .zoom { overflow: hidden; }
  .zoom img { transition: opacity 1.2s ease, transform 1.8s var(--ease); }
  a:hover .zoom img { transform: scale(1.03); }
  .plate:hover .plate__name, .row:hover .row__name, .photo:hover .photo__name, .pager__link:hover .pager__name {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  }
}

/* Answers open smoothly where the browser can animate it; elsewhere they
   simply open. */
@supports (interpolate-size: allow-keywords) {
  .motion { interpolate-size: allow-keywords; }
  .motion .qa__item::details-content { height: 0; overflow: clip; transition: height 0.7s var(--ease), content-visibility 0.7s allow-discrete; }
  .motion .qa__item[open]::details-content { height: auto; }
}

/* The menu fades up, its links one after another. */
.motion .menu { animation: menu-in 0.45s ease both; }
.motion .menu__main a, .motion .menu__more a { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.motion .rail { animation: rail-in 1.4s ease 0.9s backwards; }
@keyframes rail-in { from { opacity: 0; } }

@media print {
  .rail { display: none; }
  .masthead { position: static; }
  .motion img[data-fade], .motion.reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}


/* ── Pages move into each other (Kayle, 2026-10-24): tapping a project, its photo grows into the
   project page (site.js names the photo tapped); browsers without this simply change page. */
@view-transition { navigation: auto; }
::view-transition-group(hero) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
.phero__img img { view-transition-name: hero; }
.motion .phero__img img { transform: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── Drawings open full size (site.js; Kayle, 2026-10-24) ─── */
.zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(22, 25, 22, 0.97); display: flex; flex-direction: column; opacity: 0; transition: opacity 0.25s ease; }
.lb.is-on { opacity: 1; }
.lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 12px 8px; touch-action: pan-y pinch-zoom; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; padding: 2%; transition: opacity 0.2s ease; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 18px; color: rgba(236, 234, 228, 0.82); font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em; }
.lb__cap { flex: 1; min-width: 0; line-height: 1.45; }
.lb__n { white-space: nowrap; }
.lb button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #ECEAE4; font-size: 26px; line-height: 1; border-radius: 22px; }
.lb button:hover { background: rgba(236, 234, 228, 0.1); }
.lb__close { position: absolute; top: 8px; right: 8px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 6px; } .lb__next { right: 6px; }
@media (hover: none) { .lb__prev, .lb__next { display: none; } }
body.lb-open { overflow: hidden; }
body.lb-open .rail { visibility: hidden; }

/* ── For architects & contractors (architects-builders.html) ─ */

/* A "go further" link with its arrow typed in the words. */
.is-architects .more--typed { gap: 0.3em; }
.is-architects .more--typed::after { content: none; }
.is-architects .more .more__arrow { background-image: none; padding-bottom: 0; transition: transform 0.6s var(--ease); }
.is-architects .more--typed:hover .more__arrow { transform: translateX(4px); }

/* Links inside sentences: underlined; the padding gives a fingertip-high
   tap area without moving the lines or the words. */
.is-architects .chapter__body p > a, .is-architects .ab-intro a {
  padding: 14px 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule-2);
}
.is-architects .chapter__body p > a:hover { text-decoration-color: currentColor; }
.is-architects .chapter__body p > a:focus-visible { outline: none; background: rgba(49, 55, 49, 0.1); background-clip: content-box; text-decoration-color: currentColor; }

/* The roof photo, close under the page head. */
.is-architects .ab-roof { margin-top: clamp(40px, 6vw, 96px); }

/* How we work with you: a lead, then the practical line. */
.is-architects .ab-intro { padding-top: var(--sec); }
.is-architects .ab-intro__lead { font-weight: 300; font-size: clamp(21px, 5.6vw, 24px); line-height: 1.5; letter-spacing: -0.006em; max-width: 30em; }
.is-architects .ab-intro__body { margin-top: 28px; max-width: 32em; font-size: 17px; line-height: 1.65; }
@media (min-width: 1024px) {
  .is-architects .ab-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-architects .ab-intro__lead { grid-column: 2 / span 9; font-size: clamp(25px, 2vw, 31px); max-width: none; }
  .is-architects .ab-intro__body { grid-column: 7 / span 5; margin-top: 48px; font-size: 18px; }
}

/* The four steps (the shared numbered chapters), with step 02's figures
   running the full width under its words. */
.is-architects .ab-steps { padding-top: var(--sec); }
.is-architects .ab-steps .chapters { margin-top: 0; }
.is-architects .chapter__link { margin-top: 14px; }
.is-architects .ab-figs { margin-top: 48px; display: grid; row-gap: 48px; }
.is-architects .ab-fig figcaption { margin-top: 12px; max-width: 34em; }
.is-architects .ab-fig figcaption p { margin: 0; }
.is-architects .ab-fig__link { display: block; margin-top: 4px; }
.is-architects .ab-fig__link .more { font-size: 13px; }
.is-architects .ab-fig--film .film { aspect-ratio: 3 / 2; }
.is-architects .ab-fig--film .film__poster { height: 100%; object-fit: cover; }
.is-architects .ab-fig--drawing .g__paper img { width: 100%; }
@media (min-width: 768px) {
  .is-architects .ab-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
}
@media (min-width: 1024px) {
  .is-architects .ab-figs { grid-column: 1 / -1; margin-top: 64px; column-gap: calc(var(--gap) * 2); }
}

/* Recent work: two cards with the lines and facts the live page gives. */
.is-architects .ab-work { padding-top: var(--sec); }
.is-architects .work-card .photo__img img { aspect-ratio: 3 / 2; }
.is-architects .work-card__credit { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.is-architects .work-card .photo__cap { margin-top: 18px; }
.is-architects .work-card__desc { display: block; margin-top: 10px; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--ink); }
.is-architects .work-card__facts { display: block; margin-top: 18px; border-bottom: 1px solid var(--rule); }
.is-architects .work-card__row { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; column-gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.is-architects .work-card__k { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.is-architects .work-card__v { font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.is-architects .work-card__more { margin-top: 12px; }

/* Come see a frame in progress: a quiet note before the closing band. */
.is-architects .ab-visit { margin-top: var(--sec); padding-top: 28px; border-top: 1px solid var(--rule); }
.is-architects .ab-visit__body { margin-top: 20px; max-width: 30em; }
.is-architects .ab-visit__link { margin-top: 10px; }
@media (min-width: 1024px) {
  .is-architects .ab-visit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: 40px; }
  .is-architects .ab-visit__h { grid-column: 1 / span 6; }
  .is-architects .ab-visit__body { grid-column: 8 / span 5; margin: 0 0 0.2em; }
}


/* ── Contact (contact.html) ───────────────────────────────── */

/* The head: the title sits level with the top of the two lines beside it. */
@media (min-width: 1024px) { .is-contact .pagehead--sentence { align-items: start; } }

/* The links in the line under the title. */
.is-contact .pagehead__dek a {
  padding: 14px 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule-2);
}
.is-contact .pagehead__dek a:hover { text-decoration-color: currentColor; }

/* The form on the left, the other ways to reach us on the right. */
.is-contact .contact { margin-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(24px, 4vw, 64px); }
.is-contact .contact__details { margin-top: 80px; }
@media (min-width: 1024px) {
  .is-contact .contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .is-contact .contact__form { grid-column: 1 / span 6; }
  .is-contact .contact__details { grid-column: 9 / span 4; margin-top: 0; }
}

/* Fields: a small spaced label over a quiet underline. */
.is-contact .contact-form { display: flex; flex-direction: column; max-width: 36em; }
.is-contact .form-field { margin-bottom: 30px; }
.is-contact .form-label {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.is-contact .form-label__opt { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 15px; letter-spacing: 0; text-transform: none; }
.is-contact .form-input {
  display: block; width: 100%; margin: 0; padding: 10px 0 12px;
  font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.4; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.is-contact .form-input::placeholder { color: var(--muted); opacity: 0.75; }
.is-contact .form-input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.is-contact .form-input.has-error { border-bottom-color: #8A3B2E; }
.is-contact .form-select { position: relative; }
.is-contact .form-select::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.is-contact .form-select select { padding-right: 32px; cursor: pointer; }
.is-contact .form-select select:invalid { color: var(--muted); }
.is-contact .form-select select option { color: var(--ink); }
.is-contact .form-textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.is-contact .form-error { display: none; margin-top: 8px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #8A3B2E; }
.is-contact .form-error.visible { display: block; }
.is-contact .form-error a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* Send: a solid ink button; the honeypot sits off the page. */
.is-contact .form-submit { position: relative; margin-top: 6px; }
.is-contact .cf-bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.is-contact .form-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); cursor: pointer;
  transition: background 0.5s ease, color 0.5s ease;
}
.is-contact .form-button:hover { background: transparent; color: var(--ink); }
.is-contact .form-button:disabled { opacity: 0.6; cursor: default; }
.is-contact .form-button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* The thank-you takes the form's place once the message is sent. */
.is-contact .form-success { display: none; padding: 24px 0 0; font-size: 17px; line-height: 1.6; }
.is-contact .form-success.visible { display: block; }
.is-contact .form-success:focus { outline: none; }
.is-contact .form-success a { text-decoration: underline; text-underline-offset: 0.2em; }
.is-contact .contact-form.is-sent .form-field, .is-contact .contact-form.is-sent .form-submit { display: none; }
.is-contact .contact-form.is-sent .form-success { order: -1; padding: 0; font-size: 19px; }
.is-contact .form-success__title { font-size: clamp(38px, 10vw, 60px); font-weight: 300; line-height: 1.04; letter-spacing: -0.024em; margin-bottom: 14px; }

.is-contact .contact__note { margin-top: 32px; max-width: 30em; font-size: 16px; line-height: 1.6; color: var(--muted); }
.is-contact .contact__note a {
  color: var(--ink); overflow-wrap: anywhere; padding: 14px 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule-2);
}

/* The other ways to reach us, ruled like the frame sheet. */
.is-contact .contact__details dl { border-top: 1px solid var(--rule); }
.is-contact .cd { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.is-contact .cd dt { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.is-contact .cd dd { margin: 6px 0 0; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.is-contact .cd dd a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--rule-2);
}
.is-contact .cd dd a:hover { text-decoration-color: currentColor; }

/* The craft. Every rule is scoped to .is-craft. */

.is-craft .pagehead + .plate-wide { margin-top: clamp(40px, 6vw, 96px); }
@media (min-width: 768px) {
  .is-craft .plate-wide--pano img { aspect-ratio: 2800 / 1225; max-height: none; }
}

/* A section's opening: a rule, the label, the heading and its line. */
.is-craft .chead { margin-top: var(--sec); border-top: 1px solid var(--rule); padding-top: 22px; }
.is-craft .chead .h2 { margin-top: 16px; }
.is-craft .chead__intro { margin-top: 20px; max-width: 34em; }
@media (min-width: 1024px) {
  .is-craft .chead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: 28px; }
  .is-craft .chead .label { grid-column: 1 / -1; }
  .is-craft .chead .h2 { grid-column: 1 / span 6; }
  .is-craft .chead__intro { grid-column: 8 / span 5; margin: 0 0 0.3em; }
}

/* The making: three paragraphs set a size up, like an essay's opening. */
.is-craft .cr-making__text { margin-top: 28px; }
.is-craft .cr-making__text p { font-size: clamp(21px, 5.4vw, 23px); font-weight: 300; line-height: 1.5; letter-spacing: -0.005em; max-width: 30em; }
.is-craft .cr-making__text p + p { margin-top: 0.9em; }
@media (min-width: 1024px) {
  .is-craft .cr-making__text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 40px; }
  .is-craft .cr-making__text p { grid-column: 2 / span 8; font-size: clamp(24px, 1.9vw, 29px); }
}

/* The wood itself, inside each item. */
.is-craft .cr-wood { margin-top: 28px; background: var(--paper-2); }
.is-craft .cr-wood img { width: 100%; }
.is-craft .cr-wood--photo img { aspect-ratio: 3 / 2; object-fit: cover; }

/* The two shop photos. */
.is-craft .cr-pair { padding-top: var(--sec); }

/* The shop: the heading on the left, its two paragraphs beside it. */
.is-craft .chead__intro p + p { margin-top: 1em; }
@media (min-width: 1024px) {
  .is-craft .chead--side { align-items: start; }
  .is-craft .chead--side .chead__intro { grid-column: 7 / span 6; margin: 0.4em 0 0; }
}

/* ── For homeowners (owners.html) ─────────────────────────── */

/* The porch photo, close under the page head. */
.is-owners .owners-porch { margin-top: clamp(40px, 6vw, 96px); }

/* What a timber frame is, and what we do: set large, like a lead. */
.is-owners .owners-intro { padding-top: var(--sec); }
.is-owners .owners-intro p { font-weight: 300; font-size: clamp(21px, 5.6vw, 24px); line-height: 1.5; letter-spacing: -0.006em; max-width: 30em; }
.is-owners .owners-intro p + p { margin-top: 1em; }
@media (min-width: 1024px) {
  .is-owners .owners-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-owners .owners-intro p { grid-column: 3 / span 8; font-size: clamp(24px, 1.95vw, 30px); max-width: none; }
}

/* The questions: on a computer the heading stays in view on the left while
   the questions run down the right. */
.is-owners .owners-faq { padding-top: var(--sec); }
.is-owners .owners-faq__head .h2 { margin-top: 14px; }
/* Links in the answers. The padding gives each one a fingertip-high tap area
   without changing how the line looks (padding on a word in a line doesn't
   move the lines). */
.is-owners .qa__a a {
  padding: 14px 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--rule-2);
}
.is-owners .qa__a a:hover { text-decoration-color: currentColor; }
.is-owners .qa__a a:focus-visible { outline: none; background: rgba(49, 55, 49, 0.1); background-clip: content-box; text-decoration-color: currentColor; }
@media (min-width: 1024px) {
  .is-owners .owners-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .is-owners .owners-faq__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--mast) + 24px); padding-right: var(--gap); }
  .is-owners .owners-faq .qa { grid-column: 5 / span 8; margin-top: 0; }
  .is-owners .owners-faq .qa__a { margin-left: 0; max-width: 38em; }
}

/* Homes we've framed: two cards with the line the live page gives each. */
.is-owners .owners-homes { padding-top: var(--sec); }
.is-owners .home-card .photo__img img { aspect-ratio: 3 / 2; }
.is-owners .home-card__desc { display: block; margin-top: 10px; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--ink); }
.is-owners .home-card__more { margin-top: 10px; }
.is-owners .owners-homes__more { margin-top: 40px; }
@media (min-width: 1024px) { .is-owners .owners-homes__more { margin-top: 56px; } }


/* ── Privacy ─────────────────────────────────────────────── */
/* One quiet reading column, set like a project's story. */
.is-privacy .legal { margin-top: clamp(48px, 8vw, 112px); }
.is-privacy .legal .prose a { text-decoration: underline; text-underline-offset: 0.2em; }
.is-privacy .legal__date { margin-top: 2.8em; font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em; line-height: 1.6; color: var(--muted); }
@media (min-width: 1024px) {
  .is-privacy .legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-privacy .legal .prose { grid-column: 4 / span 6; }
}

/* The process. Every rule is scoped to .is-process. */

/* The first photo sits closer to the title than the sections below do. */
.is-process .pagehead + .plate-wide { margin-top: clamp(40px, 6vw, 96px); }

/* The line after the first photo, set large like a book's opening sentence. */
.is-process .pr-lead { padding-top: var(--sec); }
.is-process .pr-lead__text { font-size: clamp(25px, 6.6vw, 30px); font-weight: 300; line-height: 1.3; letter-spacing: -0.012em; max-width: 24em; }
@media (min-width: 1024px) {
  .is-process .pr-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-process .pr-lead__text { grid-column: 2 / span 9; font-size: clamp(32px, 2.7vw, 44px); line-height: 1.22; }
}

/* The six steps: their heading, then the chapters, split by two photos. */
.is-process .pr-steps { padding-top: var(--sec); }
.is-process .pr-head .body { margin-top: 18px; max-width: 30em; }
@media (min-width: 1024px) {
  .is-process .pr-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .is-process .pr-head .h2 { grid-column: 1 / span 6; }
  .is-process .pr-head .body { grid-column: 8 / span 4; margin: 0 0 0.3em; }
}
.is-process .chapters { margin-top: clamp(48px, 6vw, 80px); }
.is-process .chapters--after { margin-top: clamp(56px, 7vw, 112px); }
.is-process .chapter__body .more { margin-top: 16px; }

/* The two long panoramas keep their whole width on tablets and up. */
@media (min-width: 768px) {
  .is-process .plate-wide--pano img { aspect-ratio: 2800 / 1225; max-height: none; }
}

/* For homeowners: a quiet note, laid out like a chapter without its number. */
.is-process .pr-owners { margin-top: var(--sec); }
.is-process .pr-owners .h3 { margin-top: 14px; }
.is-process .pr-owners__body { margin-top: 22px; max-width: 34em; }
.is-process .pr-owners__body p + p { margin-top: 1em; }
.is-process .pr-owners__body .more { margin-top: 14px; }
@media (min-width: 1024px) {
  .is-process .pr-owners { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-process .pr-owners__head { grid-column: 1 / span 5; }
  .is-process .pr-owners__body { grid-column: 7 / span 6; margin-top: 30px; }
}

/* The sample job (proposal to shop drawings). Every rule is scoped to .is-sample. */

.is-sample .sj-section { scroll-margin-top: 24px; }

/* A section's opening: a rule, the label, the heading and its line. */
.is-sample .chead { margin-top: var(--sec); border-top: 1px solid var(--rule); padding-top: 22px; }
.is-sample .chead .h2 { margin-top: 16px; }
.is-sample .chead__intro { margin-top: 20px; max-width: 34em; }
@media (min-width: 1024px) {
  .is-sample .chead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: 28px; }
  .is-sample .chead .label { grid-column: 1 / -1; }
  .is-sample .chead .h2 { grid-column: 1 / span 6; }
  .is-sample .chead__intro { grid-column: 8 / span 5; margin: 0 0 0.3em; }
}

/* Figures follow their section's opening closely, and each other a little
   further apart. */
.is-sample .chead + figure, .is-sample .chead + .sj-four { margin-top: clamp(40px, 5vw, 80px); }
.is-sample figure + figure { margin-top: clamp(56px, 7vw, 112px); }

/* Captions: a title line in ink, then the sentence. */
.is-sample .sj-cap { margin-top: 14px; max-width: 34em; }
.is-sample .sj-cap__t { display: block; color: var(--ink); font-weight: 500; }

/* Drawings on white paper. */
.is-sample .sj-sheet img { width: 100%; background: none; }
.is-sample .sj-photo { background: var(--paper-2); }
.is-sample .sj-photo img { width: 100%; }

/* The 3D model: its poster until someone asks to spin it. */
.is-sample .sj-model__box { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--sheet); box-shadow: 0 0 0 1px rgba(49, 55, 49, 0.06); }
.is-sample .sj-model__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 15%; }
.is-sample .sj-model__viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--sheet); opacity: 0; transition: opacity 0.6s ease; }
.is-sample .sj-model__box.is-live .sj-model__viewer { opacity: 1; }
.is-sample .sj-model__btn {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px 0 20px; white-space: nowrap;
  background: var(--sheet); color: var(--ink); border: 1px solid var(--rule-2);
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  transition: border-color 0.5s ease, opacity 0.5s ease;
}
.is-sample .sj-model__btn:hover { border-color: var(--ink); }
.is-sample .sj-model__btn[disabled] { opacity: 0.85; cursor: default; }
.is-sample .sj-model__box.is-live .sj-model__btn { opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
/* a circle drawn most of the way round: "turn me" */
.is-sample .sj-model__icon { width: 13px; height: 13px; border: 1px solid currentColor; border-top-color: transparent; border-radius: 50%; transform: rotate(45deg); }
@media (min-width: 640px) {
  .is-sample .sj-model__box { aspect-ratio: 3 / 2; }
  .is-sample .sj-model__poster { object-fit: cover; object-position: 50% 50%; }
  .is-sample .sj-model__btn { bottom: 28px; }
}
@media (min-width: 1024px) {
  .is-sample .sj-model { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-sample .sj-model__box { grid-column: 2 / span 10; aspect-ratio: 16 / 10; }
  .is-sample .sj-model .sj-cap { grid-column: 2 / span 6; }
}

/* The two proposal pages, side by side at every size. */
.is-sample .sj-pages__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .is-sample .sj-pages__row { gap: var(--gap); } }
@media (min-width: 1024px) {
  .is-sample .sj-pages { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-sample .sj-pages__row { grid-column: 2 / span 10; }
  .is-sample .sj-pages .sj-cap { grid-column: 2 / span 6; }
}

/* The four schematic sheets, two by two from tablets up. */
.is-sample .sj-four { display: grid; gap: 16px; }
@media (min-width: 640px) { .is-sample .sj-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }

/* The links to the PDFs. */
.is-sample .sj-pdf { margin-top: 28px; }

/* A drawing (or photo) with its caption beside it on a computer. */
@media (min-width: 1024px) {
  .is-sample .sj-side { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .is-sample .sj-side > .sj-sheet { grid-column: 1 / span 7; }
  .is-sample .sj-side > .sj-photo { grid-column: 1 / span 8; }
  .is-sample .sj-side .sj-cap { grid-column: 9 / span 4; margin: 0; }
}

/* Plan, section and detail: three sheets in a row, their feet aligned. */
.is-sample .sj-three__row { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .is-sample .sj-three__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
  .is-sample .sj-three__row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1024px) {
  .is-sample .sj-three__row { grid-template-columns: 4fr 5fr 3fr; }
  .is-sample .sj-three__row > :nth-child(2) { grid-column: auto; grid-row: auto; }
}

/* Two raising photos side by side, then their caption. */
.is-sample .sj-two__row { display: grid; gap: 10px; }
@media (min-width: 640px) { .is-sample .sj-two__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }

/* The closing photo, in colour, on its own. */
@media (min-width: 640px) {
  .is-sample .sj-last { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-sample .sj-last .sj-photo { grid-column: 3 / span 8; }
}
@media (min-width: 1024px) { .is-sample .sj-last .sj-photo { grid-column: 4 / span 6; } }

/* Raising day. Every rule is scoped to .is-raising. */

/* The film sits right under the title, inside the page margins. */
.is-raising .rd-film { margin-top: clamp(40px, 6vw, 96px); }
.is-raising .rd-film figcaption { margin-top: 14px; max-width: 44em; }
.is-raising .rd-film figcaption a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.25em; text-decoration-color: var(--rule-2);
  /* a taller target for a finger, without moving the lines */
  display: inline-block; padding: 14px 0; margin: -14px 0;
}
.is-raising .rd-film figcaption a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* A section's opening: a rule, the label, the heading and its paragraphs. */
.is-raising .chead { margin-top: var(--sec); border-top: 1px solid var(--rule); padding-top: 22px; }
.is-raising .chead .h2 { margin-top: 16px; }
.is-raising .chead__intro { margin-top: 20px; max-width: 34em; }
.is-raising .chead__intro p + p { margin-top: 1em; }
@media (min-width: 1024px) {
  .is-raising .chead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: 28px; }
  .is-raising .chead .label { grid-column: 1 / -1; }
  .is-raising .chead .h2 { grid-column: 1 / span 6; }
  .is-raising .chead__intro { grid-column: 8 / span 5; margin: 0 0 0.3em; }
}

/* Each section's photos follow closer than the gap between sections. */
.is-raising .rd-section .gallery { padding-top: clamp(40px, 5vw, 80px); }

/* ── Our story (story.html) ───────────────────────────────── */

/* The shop photo: a long view, kept long on wider screens. */
.is-story .story-shop { margin-top: clamp(40px, 6vw, 96px); }
.is-story .story-shop img { aspect-ratio: 3 / 2; object-position: 42% center; }
@media (min-width: 768px) { .is-story .story-shop img { aspect-ratio: 2000 / 875; max-height: none; } }

/* 1996: the year set large, like a plate number, beside the telling. */
.is-story .origin { padding-top: var(--sec); }
.is-story .origin__year {
  font-family: var(--serif); font-weight: 300; font-size: clamp(88px, 26vw, 120px); line-height: 0.9; letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.is-story .origin__body { margin-top: 32px; max-width: 32em; }
.is-story .origin__body p { font-size: 18px; line-height: 1.68; }
.is-story .origin__body p + p { margin-top: 1.05em; }
@media (min-width: 1024px) {
  .is-story .origin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .is-story .origin__year { grid-column: 1 / span 5; font-size: clamp(132px, 12.4vw, 200px); margin-top: -0.06em; }
  .is-story .origin__body { grid-column: 7 / span 6; margin-top: 0; }
  .is-story .origin__body p { font-size: 19px; }
}

/* What we believe: the shared numbered chapters. */
.is-story .beliefs { padding-top: var(--sec); }

/* The family: three portraits, then the two without one yet. */
.is-story .team { padding-top: var(--sec); }
.is-story .team__grid { margin-top: 48px; display: grid; row-gap: 56px; }
.is-story .member__photo { background: var(--paper-2); }
.is-story .member__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.is-story .member__name { margin-top: 20px; font-size: 26px; font-weight: 400; line-height: 1.15; letter-spacing: -0.012em; }
.is-story .member__bio { margin-top: 12px; font-size: 17px; line-height: 1.62; }
.is-story .member__bio + .member__bio { margin-top: 0.8em; }
.is-story .team__more { margin-top: 56px; display: grid; row-gap: 40px; border-top: 1px solid var(--rule); padding-top: 32px; }
.is-story .member--text .member__name { margin-top: 0; }
.is-story .team__note { font-style: italic; font-weight: 300; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 22em; }
@media (min-width: 768px) {
  .is-story .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-story .team__more { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .is-story .member__bio { font-size: 16px; }
}
@media (min-width: 1024px) {
  .is-story .team__grid { margin-top: 64px; column-gap: calc(var(--gap) * 1.5); }
  .is-story .team__more { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(var(--gap) * 1.5); margin-top: 72px; padding-top: 40px; }
  .is-story .team__note { grid-column: 3; margin: 0; align-self: end; }
  .is-story .member__name { font-size: 28px; }
  .is-story .member__bio { font-size: 17px; }
}

/* The company we keep: an index of partners, ruled like Our work. */
.is-story .partners { padding-top: var(--sec); }
.is-story .partners__list { margin-top: 48px; border-top: 1px solid var(--rule); }
.is-story .partner { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.is-story .partner__cat {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.is-story .partner__name { margin-top: 12px; font-size: clamp(24px, 6.4vw, 28px); font-weight: 300; line-height: 1.15; letter-spacing: -0.014em; }
.is-story .partner__desc { margin-top: 14px; max-width: 34em; font-size: 17px; line-height: 1.62; }
@media (min-width: 1024px) {
  .is-story .partners__list { margin-top: 64px; }
  .is-story .partner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: 36px 0 40px; }
  .is-story .partner__cat { grid-column: 1 / span 3; }
  .is-story .partner__name { grid-column: 4 / span 3; margin: 0; font-size: clamp(26px, 2.2vw, 32px); }
  .is-story .partner__desc { grid-column: 7 / span 6; margin: 0; font-size: 18px; }
}

/* ── Phones ───────────────────────────────────────────────────
   Phone-only rules, loaded last so they have the final word.

   Photos stay inside the margins on phones, like every other size, so the
   side rails always sit on paper: a steady frame, never changing colour or
   stepping aside (Kayle, 2026-10-24: "I love the railings and really don't
   want to lose them"). The edge-to-edge version he tried the same day, with
   the rails changing colour over photos, is kept in
   versions/phones-edge-to-edge.css; copy it over this file to bring it back. */
