/* Generated by tools/build.mjs from src/css. Edit those files, not this one. */
/* ===== 00-base.css ===== */
/* Engel Build: design system ("Ink and title block")
   Built by Lumen adl. Deep ink and paper, the client's navy as the accent on light,
   brass only on dark. Archivo (variable width) with IBM Plex Mono labels.
   Square geometry, 2px radius. The client's wordmark is the only rounded form.

   Contents: fonts · tokens · contexts · base · type · buttons · header · menu · hero ·
   page hero · title blocks · sections · jobs · ledger · lightbox · services · spec lists ·
   split · owner · process · FAQ · quote form · contact rows · footer · call bar ·
   prose · utilities · motion */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --ink: #0c1521;
  --ink-2: #111c2a;
  --ink-deep: #070d15;
  --paper: #f3f1ec;
  --stone: #e9e5dd;
  --white: #fbfaf7;
  --navy: #14498f;
  --navy-d: #0e3a74;
  --brass: #c69a5b;
  --sky-300: #8cc4e3;
  --err: #a8241c;
  --ok: #1f6b45;
  --line-input: #7a828d; /* form control borders: 3.9:1 on white, 3.4:1 on paper */

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(16px, 1.8vw, 24px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --hdr: 72px;
  --r: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Light context (default) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: #2c3542;
  --fg-muted: #4c5562;
  --rule-strong: rgba(12, 21, 33, 0.9);
  --rule: rgba(12, 21, 33, 0.16);
  --accent: var(--navy);
  --tick: var(--navy);
  --focus: var(--navy);
}

/* Dark context: anything inside these gets light-on-ink colours */
.is-dark,
.site-header,
.site-footer,
.hero,
.page-hero,
.sec--ink,
.menu,
.action-bar {
  --bg: var(--ink);
  --fg: #f3f1ec;
  --fg-2: #c9cfd6;
  --fg-muted: #a3acb8;
  --rule-strong: rgba(243, 241, 236, 0.42);
  --rule: rgba(243, 241, 236, 0.16);
  --accent: #f3f1ec;
  --tick: var(--brass);
  --focus: var(--brass);
  color: var(--fg);
}
/* Light islands inside dark sections (the quote form card) */
.is-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: #2c3542;
  --fg-muted: #4c5562;
  --rule-strong: rgba(12, 21, 33, 0.9);
  --rule: rgba(12, 21, 33, 0.16);
  --accent: var(--navy);
  --tick: var(--navy);
  --focus: var(--navy);
  color: var(--fg);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
a[href^="tel:"],
a[href^="sms:"] {
  white-space: nowrap;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
::selection {
  background: #cfdcef;
  color: var(--ink);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Wordmark (the client's logo, drawn as SVG paths) */
.wordmark .eb-a {
  fill: var(--navy);
}
.wordmark .eb-b {
  fill: #4e9cc7;
}
.wordmark .eb-c {
  fill: var(--navy-d);
}
.is-dark .wordmark .eb-a,
.site-header .wordmark .eb-a,
.site-footer .wordmark .eb-a,
.menu .wordmark .eb-a,
.is-dark .wordmark .eb-c,
.site-footer .wordmark .eb-c {
  fill: #fff;
}
.is-dark .wordmark .eb-b,
.site-header .wordmark .eb-b,
.site-footer .wordmark .eb-b,
.menu .wordmark .eb-b {
  fill: var(--sky-300);
}

/* ---------- Type ---------- */
.label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.muted {
  color: var(--fg-muted);
}
.h1 {
  font-weight: 800;
  font-stretch: 84%;
  font-size: clamp(2.75rem, 1rem + 5.6vw, 6.75rem);
  line-height: 0.93;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h1--page {
  font-size: clamp(2.5rem, 1.1rem + 4.4vw, 5.25rem);
}
.h2 {
  font-weight: 780;
  font-stretch: 86%;
  font-size: clamp(2.25rem, 1.15rem + 3.1vw, 4.375rem);
  line-height: 0.97;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h3 {
  font-weight: 740;
  font-stretch: 88%;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h4 {
  font-weight: 700;
  font-stretch: 92%;
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.4375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--fg-2);
}
.body-2 {
  color: var(--fg-muted);
}

/* Text link with an arrow */
.tlink {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 44px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.tlink .i {
  width: 18px;
  height: 18px;
  margin-bottom: 1px;
  transition: transform 0.25s var(--ease);
}
.tlink:hover .i {
  transform: translateX(3px);
}
.is-dark .tlink,
.sec--ink .tlink,
.page-hero .tlink,
.hero .tlink {
  border-bottom-color: var(--brass);
}

/* Inline links in running text */
.inline-links a,
.prose a,
.qa-a a,
.lead a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.sec--ink .lead a,
.is-dark .lead a {
  text-decoration-color: var(--brass);
}

/* ---------- Buttons ---------- */
/* Markup: <a class="btn btn--navy"><span class="btn-label">Get a quote</span><span class="btn-cell"><svg class="i"><use href="#i-arrow"/></svg></span></a> */
.btn {
  display: inline-flex;
  align-items: stretch;
  min-height: 52px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
/* Photo cards and service rows: no browser tap box over the whole photo or row (they get their own
   press state in 10-v3.css). Plain text links keep the default as their tap feedback. */
.tk-link,
.frame[data-job],
.svc3-row {
  -webkit-tap-highlight-color: transparent;
}
.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  white-space: nowrap;
}
.btn-label .i {
  width: 19px;
  height: 19px;
}
.btn-cell {
  display: grid;
  place-items: center;
  width: 52px;
  border-left: 1px solid rgba(12, 21, 33, 0.18);
}
.btn-cell .i {
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-cell .i {
  transform: translateX(3px);
}
.btn--lg {
  min-height: 58px;
  font-size: 1.0625rem;
}
.btn--lg .btn-cell {
  width: 58px;
}
.btn--sm {
  min-height: 46px;
  font-size: 0.9375rem;
}
.btn--sm .btn-label {
  padding: 0 16px;
}
.btn--sm .btn-cell {
  width: 46px;
}
.btn--block {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.btn--block.btn--center {
  justify-content: center;
}
.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
}
.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy .btn-cell {
  border-left-color: rgba(255, 255, 255, 0.28);
}
.btn--navy:hover {
  background: var(--navy-d);
}
.btn--line {
  border-color: var(--rule-strong);
  color: var(--fg);
}
.btn--line .btn-cell {
  border-left-color: var(--rule-strong);
}
.btn--line:hover {
  border-color: var(--fg);
  background: rgba(127, 127, 127, 0.08);
}
.btn--ink-line {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ink-line .btn-cell {
  border-left-color: var(--ink);
}
.btn--ink-line:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn[disabled],
.btn[aria-disabled="true"],
.btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.hdr {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--hdr);
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  text-decoration: none;
}
.brand .wordmark {
  height: 22px;
  width: auto;
}
.brand-tag {
  display: grid;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--rule-strong);
  color: var(--fg-2);
  font-size: 0.6875rem;
  line-height: 1.35;
}
@media (max-width: 1240px) {
  .brand-tag {
    display: none;
  }
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 28px;
}
.nav a,
.hdr-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brass);
}
.hdr-phone {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hdr-phone .i {
  width: 18px;
  height: 18px;
  color: var(--brass);
}
.hdr-phone:hover .num {
  text-decoration: underline;
  text-decoration-color: var(--brass);
}
.btn--hdr {
  min-height: 44px;
  font-size: 0.9375rem;
}
.btn--hdr .btn-label {
  padding: 0 18px;
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  background: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
@media (max-width: 1180px) {
  .hdr,
  .nav ul {
    gap: 20px;
  }
  .hdr-phone {
    padding-left: 20px;
  }
}
@media (max-width: 999px) {
  .nav,
  .btn--hdr {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .hdr-phone {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 899px) {
  :root {
    --hdr: 60px;
  }
  .brand .wordmark {
    height: 18px;
  }
  .hdr {
    gap: 12px;
  }
  .menu-btn .menu-word {
    display: none;
  }
  .menu-btn {
    width: 44px;
    padding: 0;
  }
}
@media (max-width: 380px) {
  .brand .wordmark {
    height: 16px;
  }
  .hdr-phone .i {
    display: none;
  }
  .hdr-phone {
    font-size: 0.875rem;
  }
}

/* ---------- Menu (native dialog, phones and tablets) ---------- */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
}
.menu::backdrop {
  background: rgba(7, 13, 21, 0.6);
}
.menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr);
  border-bottom: 1px solid var(--rule);
}
.menu .menu-btn {
  display: inline-flex;
}
.menu-top .wordmark {
  height: 18px;
  width: auto;
}
.menu-links {
  margin-top: 8px;
}
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  font-weight: 760;
  font-stretch: 86%;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu-links .label {
  color: var(--brass);
}
.menu-links a[aria-current="page"] .t {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.menu-foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 10px;
}
.menu-foot .label {
  color: var(--fg-muted);
  margin-top: 8px;
  text-align: center;
}
.menu[open] .menu-inner {
  animation: fade-down 0.3s var(--ease);
}
@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ---------- Home hero ---------- */
.hero {
  background: var(--ink);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gap);
  min-height: clamp(640px, calc(100svh - var(--hdr)), 920px);
}
.hero-copy {
  grid-column: 1 / 8;
  grid-row: 1;
  align-self: center;
  padding: clamp(56px, 7vh, 96px) 0 48px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.eyebrow .sep {
  width: 28px;
  height: 1px;
  background: var(--tick);
}
.hero .h1 {
  max-width: 12.8ch;
}
.hero-lead {
  max-width: 36em;
  margin-top: 30px;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
}
.hero .cta-row,
.page-hero .cta-row {
  margin-top: 36px;
}
.facts {
  grid-column: 1 / 8;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 40px;
  border-top: 1px solid var(--rule-strong);
}
.facts > div {
  padding: 16px 20px 0;
  border-left: 1px solid var(--rule);
}
.facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts dt {
  color: var(--fg-muted);
}
.facts dd {
  margin-top: 6px;
  font-weight: 600;
  font-size: 1rem;
}
.facts dd a {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.hero-media {
  grid-column: 8 / -1;
  grid-row: 1 / -1;
  position: relative;
  margin-right: calc(-1 * var(--edge));
  background: #1a2533;
}
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.92) contrast(1.03);
}
@media (max-width: 1180px) {
  .facts dd {
    font-size: 0.9375rem;
  }
}
@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .hero-media {
    grid-column: 1;
    grid-row: 1;
    margin: 0 calc(-1 * var(--gutter));
    height: clamp(230px, 36svh, 380px);
  }
  .hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 21, 33, 0), rgba(12, 21, 33, 0.55));
    pointer-events: none;
  }
  .hero-media img {
    object-position: 50% 32%;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 28px 0 24px;
  }
  .hero .eyebrow {
    margin-bottom: 14px;
  }
  .hero-lead {
    margin-top: 16px;
  }
  .hero .cta-row {
    margin-top: 22px;
  }
  .facts {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }
  .facts > div,
  .facts > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
  .facts dd {
    margin-top: 0;
    text-align: right;
  }
  .facts dd a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .facts > div:has(a) {
    padding-block: 0;
  }
}
@media (max-width: 760px) {
  .hero .cta-row .btn,
  .page-hero .cta-row .btn {
    width: 100%;
    justify-content: space-between;
  }
  .hero .cta-row .btn--line,
  .page-hero .cta-row .btn--line {
    justify-content: center;
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--ink);
  overflow: clip;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  min-height: clamp(520px, 72svh, 760px);
}
.page-hero-copy {
  grid-column: 1 / 8;
  align-self: center;
  padding: clamp(48px, 7vh, 88px) 0;
}
.page-hero .h1 {
  max-width: 14ch;
}
.page-hero .hero-lead {
  margin-top: 26px;
}
.page-hero-media {
  grid-column: 8 / -1;
  position: relative;
  margin-right: calc(-1 * var(--edge));
  background: #1a2533;
}
.page-hero-media picture,
.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero-media img {
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.9) contrast(1.03);
}
/* Text-only variant (projects, quote, legal pages) */
.page-hero--short .page-hero-grid {
  min-height: 0;
}
.page-hero--short .page-hero-copy {
  grid-column: 1 / -1;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
}
.page-hero--short .h1 {
  max-width: 16ch;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--fg-muted);
}
.crumbs a {
  color: var(--fg-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.crumbs a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--fg-muted);
}
@media (max-width: 899px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .page-hero-copy {
    grid-column: 1;
    padding: 40px 0 36px;
  }
  .page-hero-media {
    grid-column: 1;
    margin: 0 calc(-1 * var(--gutter));
    aspect-ratio: 4 / 3;
  }
  .page-hero-media img {
    object-position: 50% 45%;
  }
  /* Keeps the photo caption readable on light photos */
  .page-hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 21, 33, 0), rgba(12, 21, 33, 0.6));
    pointer-events: none;
  }
}

/* ---------- Title blocks (drawing-sheet captions) ---------- */
.tb {
  display: flex;
  align-items: stretch;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tb > a,
.tb > button {
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
}
.tb-no,
.tb-t {
  display: flex;
  align-items: center;
  padding: 10px 14px;
}
.tb-no {
  flex: none;
  white-space: nowrap;
  border-right: 1px solid currentColor;
}
.tb--photo {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--ink);
  color: #f3f1ec;
  border-top: 1px solid rgba(243, 241, 236, 0.16);
  border-right: 1px solid rgba(243, 241, 236, 0.16);
}
.tb--photo .tb-no {
  color: var(--brass);
  border-right-color: rgba(243, 241, 236, 0.16);
}
.tb--photo .i {
  width: 16px;
  height: 16px;
  align-self: center;
  margin-right: 14px;
  transition: transform 0.25s var(--ease);
}
.tb--photo > a,
.tb--photo > button {
  min-height: 44px;
}
.tb--photo > a:hover .i,
.tb--photo > button:hover .i {
  transform: translate(2px, -2px);
}
.tb--under {
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
}
.tb--under .tb-no {
  color: var(--accent);
  border-right-color: var(--rule);
  padding-left: 0;
}
.sec--ink .tb--under .tb-no,
.is-dark .tb--under .tb-no {
  color: var(--brass);
}
@media (max-width: 899px) {
  .hero .tb--photo,
  .page-hero .tb--photo {
    left: var(--gutter);
    bottom: 10px;
    border: 0;
    background: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }
  .hero .tb--photo .tb-no,
  .page-hero .tb--photo .tb-no {
    padding-left: 0;
  }
}

/* ---------- Sections ---------- */
.sec {
  padding-block: clamp(80px, 9vw, 144px);
}
.sec--tight {
  padding-block: clamp(56px, 6vw, 96px);
}
.sec--ink {
  background: var(--ink);
}
.sec--stone {
  background: var(--stone);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.intro > .h2,
.intro > .h3,
.intro > :first-child {
  grid-column: 1 / 8;
}
.intro-side {
  grid-column: 9 / -1;
}
.intro-side .tlink {
  margin-top: 14px;
}
@media (max-width: 899px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro > .h2,
  .intro > .h3,
  .intro > :first-child,
  .intro-side {
    grid-column: 1;
  }
  .intro-side {
    margin-top: 20px;
  }
}

/* ---------- Job cards ---------- */
.jobs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 56px) var(--gap);
}
.jobs--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jobs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.job {
  scroll-margin-top: calc(var(--hdr) + 24px);
}
.job-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.job-ph {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dcd7cd;
}
.job-ph picture,
.job-ph img {
  width: 100%;
  height: 100%;
}
.job-ph img {
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 0.7s var(--ease);
}
.job-link:hover .job-ph img {
  transform: scale(1.03);
}
.job-count {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: #f3f1ec;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.job-meta {
  display: flex;
  align-items: center;
  margin-top: 16px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.job-no {
  padding: 8px 12px 8px 0;
  border-right: 1px solid var(--rule);
  color: var(--accent);
}
.sec--ink .job-no,
.is-dark .job-no {
  color: var(--brass);
}
.job-type {
  padding: 8px 0 8px 12px;
  color: var(--fg-muted);
}
.job-t {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.3125rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.job-arrow {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.job-link:hover .job-t {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.job-link:hover .job-arrow {
  transform: translate(2px, -2px);
}
.job-d {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.job:target .job-meta {
  border-top-color: var(--accent);
  border-top-width: 2px;
}
@media (max-width: 999px) {
  .jobs,
  .jobs--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  /* Two columns on phones so every job is visible without swiping */
  .jobs,
  .jobs--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .jobs--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .jobs:not(.jobs--2) .job-t {
    font-size: 1.0625rem;
    margin-top: 10px;
  }
  .jobs:not(.jobs--2) .job-arrow {
    display: none;
  }
  .jobs:not(.jobs--2) .job-meta {
    font-size: 0.6875rem;
  }
  .jobs:not(.jobs--2) .job-no {
    padding-right: 8px;
  }
  .jobs:not(.jobs--2) .job-type {
    padding-left: 8px;
  }
}


/* Cards with descriptions need the full width on small phones */
@media (max-width: 560px) {
  .jobs--desc {
    grid-template-columns: minmax(0, 1fr);
  }
  .jobs--desc .job-t {
    font-size: 1.25rem;
  }
  .jobs--desc .job-arrow {
    display: block;
  }
}

/* ---------- Ledger (projects index) ---------- */
.ledger {
  border-top: 1px solid var(--rule-strong);
}
.ledger li {
  border-bottom: 1px solid var(--rule);
}
.ledger a {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  min-height: 64px;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s;
}
.ledger a:hover .l-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.ledger .job-no {
  border: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.ledger .l-title {
  font-weight: 720;
  font-stretch: 90%;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.ledger .l-type {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.ledger .i {
  align-self: center;
  color: var(--accent);
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .ledger a {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  }
  .ledger .job-no {
    grid-row: span 2;
  }
  .ledger .l-type {
    grid-column: 2;
  }
  .ledger .i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(100% - 24px, 1180px);
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(7, 13, 21, 0.86);
}
.lightbox[open] {
  animation: fade-up 0.3s var(--ease);
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.lb-grid {
  display: grid;
  max-height: calc(100dvh - 24px);
}
@media (min-width: 860px) {
  .lb-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}
.lb-media {
  position: relative;
  min-height: 0;
  background: var(--ink);
}
.lb-media img {
  width: 100%;
  height: 100%;
  max-height: min(80dvh, 860px);
  object-fit: contain;
}
@media (max-width: 859px) {
  .lb-media img {
    max-height: 56dvh;
  }
}
.lb-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
}
.lb-nav button,
.lb-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-left: 1px solid rgba(243, 241, 236, 0.16);
  background: var(--ink);
  color: #f3f1ec;
  cursor: pointer;
}
.lb-nav button:hover,
.lb-close:hover {
  background: #1a2533;
}
.lb-nav button[hidden] {
  display: none;
}
.lb-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  border-left: 1px solid rgba(243, 241, 236, 0.16);
  border-bottom: 1px solid rgba(243, 241, 236, 0.16);
  --focus: var(--brass);
}
.lb-nav button {
  --focus: var(--brass);
}
.lb-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto;
}
.lb-body .tb {
  border-bottom: 1px solid var(--rule);
}
.lb-body .tb-no {
  color: var(--navy);
  padding-left: 0;
  border-right-color: var(--rule);
}
.lb-body h2 {
  font-weight: 780;
  font-stretch: 86%;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.lb-body p {
  color: var(--fg-muted);
}
.lb-count {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lb-body .cta-row {
  margin-top: 8px;
}

/* ---------- Services (spec sheet) ---------- */
.svc-list {
  border-top: 1px solid var(--rule-strong);
}
.svc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-block: clamp(32px, 3.4vw, 48px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--hdr) + 24px);
}
.svc-n {
  grid-column: 1 / 3;
  font-weight: 200;
  font-stretch: 75%;
  font-size: clamp(3.5rem, 2rem + 4.2vw, 6.5rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--tick);
  font-variant-numeric: tabular-nums;
}
.svc-head {
  grid-column: 3 / 7;
}
.svc-cat {
  color: var(--fg-muted);
}
.svc-t {
  margin-top: 10px;
  font-weight: 760;
  font-stretch: 86%;
  font-size: clamp(1.75rem, 1.1rem + 1.7vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.svc-p {
  grid-column: 7 / 10;
  padding-top: 26px;
  color: var(--fg-2);
}
.svc-spec {
  grid-column: 10 / -1;
  padding-top: 26px;
}
.svc-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin-top: 26px;
}
.svc-act .tlink {
  color: var(--fg-2);
}
.svc-act .tlink:hover {
  color: var(--fg);
}
.svc-thumb {
  display: none;
}
@media (max-width: 760px) {
  .svc-spec {
    display: none;
  }
  .svc-act .tlink {
    display: none;
  }
}
.refs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  margin-top: 4px;
}
.refs .label {
  color: var(--fg-muted);
  margin-right: 2px;
}
.refs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-color: var(--tick);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.refs a:hover {
  color: var(--tick);
}
@media (max-width: 1180px) {
  .svc-n {
    grid-column: 1 / 2;
  }
  .svc-head {
    grid-column: 2 / 7;
  }
}
@media (max-width: 899px) {
  .svc {
    grid-template-columns: 64px minmax(0, 1fr);
    row-gap: 0;
  }
  .svc-n {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 3.25rem;
  }
  .svc-head {
    display: contents;
  }
  .svc-cat {
    grid-column: 2;
    grid-row: 1;
  }
  .svc-t {
    grid-column: 2;
    grid-row: 2;
  }
  .svc-p {
    grid-column: 2;
    grid-row: 3;
    padding-top: 16px;
  }
  .svc-spec {
    grid-column: 2;
    grid-row: 4;
    padding-top: 18px;
  }
  .svc-act {
    grid-column: 2;
    grid-row: 5;
    margin-top: 18px;
  }
}

/* ---------- Spec lists and spec cards ---------- */
.spec li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--fg);
}
.spec li:first-child {
  border-top: 1px solid var(--rule);
}
.spec li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--tick);
  transform: translateY(-2px);
}
.spec--lg li {
  font-size: 1.0625rem;
  padding: 12px 0;
}
/* A grid of titled blocks, each opening with a title-block rule */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(32px, 3vw, 44px) var(--gap);
}
.spec-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}
.spec-card .label {
  color: var(--accent);
}
.sec--ink .spec-card .label {
  color: var(--brass);
}
.spec-card p {
  color: var(--fg-muted);
}
.sec--ink .spec-card p {
  color: var(--fg-2);
}

/* ---------- Split: photo and text ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.split-media {
  grid-column: 1 / 6;
}
.split-copy {
  grid-column: 7 / -1;
  display: grid;
  gap: 22px;
  align-content: start;
}
.split--flip .split-media {
  grid-column: 8 / -1;
  grid-row: 1;
}
.split--flip .split-copy {
  grid-column: 1 / 7;
  grid-row: 1;
}
.ph {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dcd7cd;
}
.ph picture,
.ph img {
  width: 100%;
  height: 100%;
}
.ph img {
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
}
.split-copy .cta-row {
  margin-top: 6px;
}
@media (max-width: 899px) {
  .split,
  .split--flip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .split-media,
  .split-copy,
  .split--flip .split-media,
  .split--flip .split-copy {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---------- Owner ---------- */
.owner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.owner-media {
  grid-column: 1 / 6;
}
.owner-copy {
  grid-column: 7 / -1;
}
.owner-copy .h2 {
  max-width: 12ch;
}
.owner-copy .lead {
  margin-top: 32px;
  max-width: 32em;
}
.owner-p {
  margin-top: 18px;
  max-width: 34em;
  color: var(--fg-muted);
}
.card-tb {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr;
  margin-top: 40px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.card-tb > div {
  padding: 14px 16px;
  border-left: 1px solid var(--rule);
}
.card-tb > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.card-tb dt {
  color: var(--fg-muted);
}
.card-tb dd {
  margin-top: 4px;
  font-weight: 650;
  font-size: 1.0625rem;
}
.card-tb dd a {
  text-decoration: none;
}
.card-tb dd a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.owner-copy .cta-row {
  margin-top: 32px;
}
@media (max-width: 899px) {
  .owner {
    grid-template-columns: minmax(0, 1fr);
  }
  .owner-media,
  .owner-copy {
    grid-column: 1;
  }
  .owner-copy {
    margin-top: 56px;
  }
}
@media (max-width: 760px) {
  .card-tb {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-tb > div,
  .card-tb > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-left: 0;
  }
  .card-tb > div + div {
    border-top: 1px solid var(--rule);
  }
  .card-tb dd {
    margin-top: 0;
    text-align: right;
  }
  .owner-copy .cta-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---------- Process (dimension line) ---------- */
.dim {
  position: relative;
  height: 1px;
  margin-top: 40px;
  background: var(--fg);
}
.dim::before,
.dim::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 1px;
  height: 17px;
  background: var(--fg);
}
.dim::before {
  left: 0;
}
.dim::after {
  right: 0;
}
.dim-label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 0 14px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}
.step {
  position: relative;
  padding: 36px 24px 0 0;
}
.step::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -9px;
  width: 1px;
  height: 18px;
  background: var(--fg);
  transform: rotate(45deg);
}
.step:first-child::before {
  display: none;
}
.step-n {
  color: var(--accent);
}
.step-t {
  margin-top: 14px;
  font-weight: 720;
  font-stretch: 90%;
  font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.step-d {
  margin-top: 10px;
  max-width: 24em;
  color: var(--fg-muted);
}
.step .tlink {
  margin-top: 8px;
}
.steps--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 899px) {
  .steps,
  .steps--3 {
    grid-template-columns: minmax(0, 1fr);
    margin-left: 8px;
    border-left: 1px solid var(--fg);
  }
  .dim {
    display: none;
  }
  .step {
    padding: 0 0 36px 28px;
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step::before,
  .step:first-child::before {
    display: block;
    left: -9px;
    top: 4px;
    width: 17px;
    height: 1px;
    transform: rotate(-45deg);
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.faq-intro {
  grid-column: 1 / 5;
}
.faq-intro .lead {
  margin-top: 24px;
  max-width: 20em;
}
.qa-list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--rule-strong);
}
.qa {
  border-bottom: 1px solid var(--rule);
}
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:hover > span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.qa-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fg);
  border-radius: var(--r);
}
.qa-icon::before,
.qa-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--fg);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
}
.qa-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.qa[open] .qa-icon {
  background: var(--fg);
}
.qa[open] .qa-icon::before,
.qa[open] .qa-icon::after {
  background: var(--bg);
}
.qa[open] .qa-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.qa-a {
  max-width: 46em;
  padding: 0 60px 26px 0;
  color: var(--fg-muted);
}
.qa-a > * + * {
  margin-top: 12px;
}
@media (max-width: 899px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-intro,
  .qa-list {
    grid-column: 1;
  }
  .qa-list {
    margin-top: 36px;
  }
}
@media (max-width: 760px) {
  .qa-a {
    padding-right: 0;
  }
}

/* ---------- Quote section ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.quote-aside {
  grid-column: 1 / 6;
}
.quote-grid > .form-card {
  grid-column: 7 / -1;
}
.quote-aside .lead {
  margin-top: 28px;
  max-width: 26em;
}
@media (min-width: 900px) {
  .quote-aside {
    position: sticky;
    top: calc(var(--hdr) + 32px);
  }
}
@media (max-width: 899px) {
  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .quote-grid > .quote-aside,
  .quote-grid > .form-card {
    grid-column: 1;
  }
  .quote-grid > .form-card {
    margin-top: 44px;
  }
}

/* Contact rows */
.contact-rows {
  margin-top: 44px;
  border-top: 1px solid var(--rule-strong);
}
.contact-rows a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.contact-rows .label {
  color: var(--fg-muted);
}
.contact-rows .v {
  font-weight: 650;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  letter-spacing: -0.01em;
  min-width: 0;
  overflow-wrap: break-word;
}
.contact-rows .i {
  color: var(--tick);
}
.contact-rows a:hover .v {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
@media (max-width: 760px) {
  .contact-rows a {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
    padding: 12px 0;
  }
  .contact-rows .label {
    grid-column: 1;
    grid-row: 1;
  }
  .contact-rows .v {
    grid-column: 1;
    grid-row: 2;
  }
  .contact-rows .i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* ---------- Quote form ---------- */
.form-card {
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--r);
  background: var(--paper);
  scroll-margin-top: calc(var(--hdr) + 16px);
}
.sec:not(.sec--ink) .form-card,
.page-quote .form-card {
  background: var(--white);
  border: 1px solid var(--rule);
}
.qf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.qf-step {
  color: var(--navy);
}
.qf-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(56%, 300px);
}
.qf-bar li {
  padding-top: 8px;
  border-top: 3px solid #d3cec4;
  color: var(--fg-muted);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qf-bar li.on {
  border-top-color: var(--navy);
  color: var(--ink);
}
.form-step {
  display: grid;
  gap: 24px;
  min-width: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}
.form-step[hidden] {
  display: none;
}
.qf-legend {
  float: left;
  width: 100%;
  padding: 0;
  font-weight: 780;
  font-stretch: 86%;
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.qf-legend + * {
  clear: both;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field-row {
  display: grid;
  gap: 24px;
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field > label,
.field > legend,
.field > .label-t {
  padding: 0;
  font-weight: 650;
  font-size: 1rem;
}
.opt {
  font-weight: 400;
  color: var(--fg-muted);
}
.hint {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-input);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input::placeholder {
  color: #626a75; /* 5.5:1 on white */
}
.input:hover {
  border-color: var(--ink);
}
.input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
textarea.input {
  min-height: 132px;
  resize: vertical;
}
.has-error .input {
  border-color: var(--err);
  box-shadow: inset 0 0 0 1px var(--err);
}
.has-error .choice {
  border-color: var(--err);
}
.field-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--err);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field-error[hidden] {
  display: none;
}
.field-error .i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
/* Choice tiles: real checkboxes and radios */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choices--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid #cfcac0;
  border-radius: var(--r);
  background: #fff;
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.choice--wide {
  grid-column: 1 / -1;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.choice-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
  background: #fff;
}
.choice input[type="radio"] + .choice-box {
  border-radius: 50%;
}
.choice:hover {
  border-color: var(--ink);
}
.choice:has(input:checked) {
  border-color: var(--navy);
  background: #eef2f8;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.choice input[type="checkbox"]:checked + .choice-box {
  border-color: var(--navy);
  background: var(--navy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.choice input[type="radio"]:checked + .choice-box {
  border-color: var(--navy);
  background: radial-gradient(circle, var(--navy) 0 4.5px, #fff 5px);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .choices,
  .choices--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .choice {
    min-height: 54px;
  }
}
/* Photos */
.photo-drop {
  display: grid;
  gap: 10px;
}
.photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 14px;
  border: 1px dashed var(--line-input);
  border-radius: var(--r);
  background: #fff;
  color: var(--navy);
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.photo-btn small {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 0.875rem;
}
.photo-btn:hover,
.photo-drop.is-over .photo-btn {
  border-color: var(--navy);
  background: #eef2f8;
}
.photo-status {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.photo-drop.is-busy .photo-btn {
  cursor: progress;
}
.photo-input:focus-visible + .photo-btn {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.thumbs:empty {
  display: none;
}
.thumbs li {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--stone);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.thumbs button .i {
  width: 16px;
  height: 16px;
}
.qf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.qf-note {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-2);
  font-weight: 600;
  cursor: pointer;
}
.btn-back:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form-note {
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.form-note a {
  color: var(--navy);
  font-weight: 600;
}
.licence-note {
  color: var(--fg-muted);
  font-size: 0.8125rem;
}
.form-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-left: 3px solid var(--err);
  background: #fbeceb;
  color: #5e1712;
  font-size: 0.9375rem;
}
.form-alert[hidden] {
  display: none;
}
.form-alert .i {
  color: var(--err);
  margin-top: 2px;
}
.form-alert a {
  color: inherit;
  font-weight: 700;
}
.send-failed {
  display: none;
  margin-bottom: 20px;
}
.send-failed:target {
  display: flex;
}
.hp {
  display: none;
}
.form-done {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.form-done[hidden] {
  display: none;
}
.form-done .tick {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: #fff;
}
.form-done .tick .i {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
.form-done h3 {
  font-weight: 780;
  font-stretch: 86%;
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.form-done p {
  color: var(--fg-muted);
}
@media (max-width: 760px) {
  .qf-head {
    flex-direction: column;
    align-items: stretch;
  }
  .qf-bar {
    width: 100%;
  }
  .qf-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .qf-actions .btn {
    justify-content: space-between;
  }
  .qf-actions .btn-back {
    justify-content: center;
  }
}
/* Without JavaScript every step shows at once and the form posts normally */
.no-js .form-step[hidden] {
  display: grid;
}
.no-js .js-only {
  display: none !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  padding: clamp(64px, 7vw, 104px) 0 20px;
}
.ft-cta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  padding-bottom: clamp(48px, 5vw, 72px);
}
.ft-cta .h2 {
  grid-column: 1 / 7;
  /* condensed like the other v3 section heads (.proc3-side .h2, .bi-plan-side .h2) */
  font-stretch: 76%;
}
/* Six columns hold both buttons side by side from 900px */
.ft-cta .cta-row {
  grid-column: 7 / -1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.ft-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}
.ft-brand {
  grid-column: 1 / 5;
}
.ft-logo {
  display: inline-block;
  padding: 4px 0;
}
.ft-logo .wordmark {
  width: 132px;
  height: auto;
}
.ft-brand p {
  margin-top: 24px;
  max-width: 22em;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
/* Contact gets three columns, so the email address fits on one line from 900px up */
.ft-col:nth-of-type(2) {
  grid-column: 5 / 8;
}
.ft-col:nth-of-type(3) {
  grid-column: 8 / 11;
}
.ft-col:nth-of-type(4) {
  grid-column: 11 / -1;
}
.ft-col .label {
  margin-bottom: 10px;
  color: var(--fg-muted);
  font-size: 0.75rem;
}
.ft-col a,
.ft-col li > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-size: 0.9375rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ft-col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--brass);
}
.ft-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 64px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.ft-base p {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.ft-base a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}
.ft-base a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.licence {
  flex-basis: 100%;
  color: var(--fg-2);
}
/* Pages that already end with the quote form skip the footer's call to action */
.page-home .ft-cta,
.page-quote .ft-cta,
.page-decks .ft-cta,
.page-built-ins .ft-cta,
.page-doors .ft-cta {
  display: none;
}
@media (max-width: 899px) {
  .ft-cta {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
  .ft-cta .h2,
  .ft-cta .cta-row {
    grid-column: 1;
    justify-content: flex-start;
  }
  .ft-cta .cta-row {
    flex-wrap: wrap;
  }
  .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft-brand,
  .ft-col:nth-of-type(2) {
    grid-column: 1 / -1;
  }
  .ft-col:nth-of-type(3) {
    grid-column: 1;
  }
  .ft-col:nth-of-type(4) {
    grid-column: 2;
  }
}
@media (max-width: 760px) {
  /* Stacked, the two buttons run full width like every other stacked pair */
  .ft-cta .cta-row .btn {
    width: 100%;
    justify-content: space-between;
  }
  .ft-cta .cta-row .btn--line {
    justify-content: center;
  }
}
@media (max-width: 599px) {
  /* Contact runs full width on phones, so the email address doesn't split; More follows it */
  .ft-col:nth-of-type(3),
  .ft-col:nth-of-type(4) {
    grid-column: 1 / -1;
  }
}

/* ---------- Phone call bar ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid rgba(243, 241, 236, 0.16);
  transform: translateY(105%);
  transition: transform 0.35s var(--ease);
}
.action-bar .btn {
  min-height: 50px;
  justify-content: center;
}
.action-bar .btn-label {
  padding: 0 10px;
  gap: 8px;
}
.action-bar .btn--light {
  justify-content: center;
}
.action-bar .btn-cell {
  width: 50px;
}
.action-bar.is-visible {
  transform: none;
}
/* Phones and tablets: below 1000px the header has no quote button, so the bar carries it */
@media (max-width: 999px) {
  .action-bar {
    display: grid;
    padding-inline: max(var(--gutter), calc((100% - 720px) / 2));
  }
  html {
    scroll-padding-bottom: 88px;
  }
}

/* ---------- Prose (privacy and long text) ---------- */
.prose {
  max-width: 44rem;
  color: var(--fg-2);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.2em;
  color: var(--fg);
  font-weight: 760;
  font-stretch: 88%;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.prose h3 {
  margin-top: 1.8em;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.1875rem;
}
.prose ul {
  padding-left: 0;
}
.prose ul li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.prose ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--tick);
  transform: translateY(-2px);
}
.prose li + li {
  margin-top: 0.5em;
}

/* Centred confirmation pages (thanks, 404) */
.center-page {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 24px;
  min-height: 60vh;
  padding-block: clamp(56px, 8vw, 128px);
}
.center-page .lead {
  max-width: 34em;
}
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover {
  border-color: var(--fg);
  background: rgba(127, 127, 127, 0.08);
}

/* ---------- Utilities ---------- */
.mt-s {
  margin-top: 16px;
}
.mt-m {
  margin-top: 32px;
}
.mt-l {
  margin-top: clamp(48px, 5vw, 72px);
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  @view-transition {
    navigation: auto;
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes reveal {
      from {
        opacity: 0.4;
        transform: translateY(20px);
      }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .action-bar,
  .menu {
    display: none !important;
  }
}

/* ===== 10-v3.css ===== */
/* Engel Build v3: the "drawn, then built" layer.
   Sits on 00-base.css. Every job photo has a ruled line drawing traced over it
   (images/drawings/*.svg): the hero draws itself before the photo is revealed, and a
   square lens shows the drawing under the cursor. Motion uses transform, opacity,
   clip-path and stroke-dashoffset only, and switches off for reduced motion.

   Contents: tokens · type and links · buttons · header · menu · frames, drawings and lens ·
   hero · tape · work track · services · owner · process · FAQ · quote · form · footer ·
   reveals · reduced motion */

/* ---------- Tokens ---------- */
:root {
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sheet: #101b29;
  --lens: 200px;
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}
.hero3 {
  --bg: var(--ink);
  --fg: #f3f1ec;
  --fg-2: #c9cfd6;
  --fg-muted: #a3acb8;
  --rule-strong: rgba(243, 241, 236, 0.42);
  --rule: rgba(243, 241, 236, 0.16);
  --accent: #f3f1ec;
  --tick: var(--brass);
  --focus: var(--brass);
  color: var(--fg);
}

/* ---------- Type and links ---------- */
.h-xl {
  font-weight: 800;
  font-stretch: 68%;
  font-size: clamp(3rem, 0.9rem + 6.6vw, 8.75rem);
  line-height: 0.86;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
/* Words that rise into place (built by tools/build.mjs from data-split) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.02em 0.14em;
  margin: -0.06em -0.02em -0.14em;
}
.w > span {
  display: inline-block;
}
.ulink,
.tlink {
  --tl: currentColor;
  text-decoration: none;
  border-bottom: 0;
  background: linear-gradient(var(--tl), var(--tl)) 0 100% / 100% 1px no-repeat;
}
.ulink {
  padding-bottom: 3px;
  color: var(--fg);
  font-weight: 600;
}
.sec--ink .tlink,
.hero3 .tlink,
.page-hero .tlink,
.is-dark .tlink,
.hero3 .ulink,
.sec--ink .ulink {
  --tl: var(--brass);
}
@media (hover: hover) {
  .ulink:hover,
  .tlink:hover {
    animation: u-wipe 0.75s var(--ease-io);
  }
}
@keyframes u-wipe {
  0% {
    background-size: 100% 1px;
    background-position: 100% 100%;
  }
  48% {
    background-size: 0 1px;
    background-position: 100% 100%;
  }
  52% {
    background-size: 0 1px;
    background-position: 0 100%;
  }
  100% {
    background-size: 100% 1px;
    background-position: 0 100%;
  }
}

/* ---------- Buttons ---------- */
.btn {
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-cell {
  position: relative;
  overflow: hidden;
}
@media (hover: hover) {
  .btn:hover .btn-cell .i {
    transform: none;
    animation: arrow-swap 0.55s var(--ease-out);
  }
}
@keyframes arrow-swap {
  0% {
    transform: none;
  }
  38% {
    transform: translateX(150%);
    opacity: 0;
  }
  39% {
    transform: translateX(-150%);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.btn--hdr .btn-cell {
  width: 44px;
}

/* ---------- Header ---------- */
.site-header {
  transition: transform 0.45s var(--ease-io);
}
.site-header.is-hidden {
  transform: translateY(-101%);
}
.brand-tag {
  display: none;
}
.nav a {
  text-decoration: none;
  background: linear-gradient(var(--brass), var(--brass)) 0 calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-io);
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: none;
  background-size: 100% 1px;
}
.hdr-time {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hdr-time .sq {
  width: 6px;
  height: 6px;
  background: var(--brass);
}
@media (min-width: 1280px) {
  .hdr-time {
    display: inline-flex;
    padding-left: 28px;
    border-left: 1px solid var(--rule);
  }
  .hdr-time + .hdr-phone {
    padding-left: 0;
    border-left: 0;
  }
}
.hdr-k {
  display: none;
  color: var(--fg-muted);
  font-weight: 500;
}
@media (min-width: 1000px) {
  .hdr-phone .i {
    display: none;
  }
  .hdr-k {
    display: inline;
  }
}
.mb-lines {
  position: relative;
  display: block;
  width: 20px;
  height: 10px;
}
.mb-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-io), width 0.35s var(--ease-io);
}
.mb-lines i:first-child {
  top: 0;
}
.mb-lines i:last-child {
  bottom: 0;
  width: 62%;
}
.menu-btn:hover .mb-lines i:last-child {
  width: 100%;
}
.mb-x i:first-child {
  transform: translateY(4.25px) rotate(45deg);
}
.mb-x i:last-child {
  width: 100%;
  transform: translateY(-4.25px) rotate(-45deg);
}
@media (max-width: 899px) {
  .menu-btn {
    width: auto;
    padding: 0 12px;
  }
}

/* ---------- Menu ---------- */
.menu[open] {
  animation: menu-drop 0.6s var(--ease-io) both;
}
.menu[open] .menu-inner {
  animation: none;
}
@keyframes menu-drop {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}
.menu .menu-btn .menu-word {
  display: inline;
}
.menu-links {
  margin-top: 12px;
}
.menu-links a {
  min-height: 74px;
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 3.5rem);
  font-weight: 780;
  font-stretch: 74%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.menu-links .t {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
}
.menu-links .t > span {
  display: block;
}
.menu-links .i {
  width: 26px;
  height: 26px;
  color: var(--brass);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.menu-links a:hover .i,
.menu-links a:focus-visible .i,
.menu-links a[aria-current="page"] .i {
  opacity: 1;
  transform: none;
}
.menu-links a[aria-current="page"] .t {
  text-decoration: none;
}
.menu-links li:nth-child(1) { --k: 0; }
.menu-links li:nth-child(2) { --k: 1; }
.menu-links li:nth-child(3) { --k: 2; }
.menu-links li:nth-child(4) { --k: 3; }
.menu-links li:nth-child(5) { --k: 4; }
.menu-links li:nth-child(6) { --k: 5; }
.menu-foot {
  gap: 20px;
}
/* The last link's own rule separates the links from the contact lines (no second rule) */
.mf-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
/* Short phones (667–740px tall): tighter rows, so "Get a quote" is on the first screen */
@media (max-height: 760px) {
  .menu-links a {
    min-height: 56px;
    font-size: 2rem;
  }
  .menu-foot {
    padding-top: 16px;
  }
}
/* 4-inch phones (568px tall): the quote button follows the links, ahead of the contact lines */
@media (max-height: 600px) {
  .menu-foot .btn {
    order: -1;
  }
}
/* "Doors and openings" stays on one line at 320px */
@media (max-width: 340px) {
  .menu-links a {
    font-size: 2rem;
  }
}
.mf-k {
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.mf-v {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-size: 1.625rem;
  font-weight: 700;
  font-stretch: 86%;
  letter-spacing: -0.015em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.mf-mail {
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 100%;
  overflow-wrap: anywhere;
}
.mf-note {
  color: var(--fg-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Frames, drawings and the lens ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sheet);
}
.frame picture,
.frame > picture img,
.frame .trace-layer img,
.frame .trace-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}
.frame > picture img {
  object-fit: cover;
  object-position: 50% 50%;
}
/* Press (in place of the browser's tap box): a photo that opens a job dims toward the sheet behind it
   while held, then comes back slowly */
.tk-link .tk-frame > picture,
.frame[data-job] > picture {
  transition: opacity 0.6s var(--ease-out);
}
.tk-link:active .tk-frame > picture,
.frame[data-job]:active > picture {
  opacity: 0.8;
  transition-duration: var(--t-press, 90ms);
}
.trace-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background-color: rgba(12, 21, 33, 0.9);
  /* drafting-sheet grid */
  background-image:
    linear-gradient(rgba(243, 241, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: opacity 0.3s var(--ease);
}
.trace-layer img {
  object-fit: cover;
  object-position: 50% 50%;
}
.frame.is-drawing .trace-layer {
  opacity: 1;
}
.frame.is-lens .trace-layer {
  opacity: 1;
  clip-path: inset(
    calc(var(--ly) - var(--lens) / 2) calc(100% - var(--lx) - var(--lens) / 2) calc(100% - var(--ly) - var(--lens) / 2)
      calc(var(--lx) - var(--lens) / 2)
  );
}
.frame.is-drawing.is-lens .trace-layer {
  clip-path: none;
}
.lens-ring {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: var(--lens);
  height: var(--lens);
  pointer-events: none;
  opacity: 0;
  transform: translate(calc(var(--lx) - 50%), calc(var(--ly) - 50%));
  transition: opacity 0.25s;
}
.lens-ring::before,
.lens-ring::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--brass);
  /* corner ticks only */
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0 / 14px 14px no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 14px 14px no-repeat,
    linear-gradient(#000 0 0) 0 100% / 14px 14px no-repeat,
    linear-gradient(#000 0 0) 100% 100% / 14px 14px no-repeat;
  mask:
    linear-gradient(#000 0 0) 0 0 / 14px 14px no-repeat,
    linear-gradient(#000 0 0) 100% 0 / 14px 14px no-repeat,
    linear-gradient(#000 0 0) 0 100% / 14px 14px no-repeat,
    linear-gradient(#000 0 0) 100% 100% / 14px 14px no-repeat;
}
.lens-ring::after {
  inset: 0;
  -webkit-mask: none;
  mask: none;
  border-color: rgba(198, 154, 91, 0.55);
}
.lens-ring span {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  padding: 3px 6px;
  background: var(--ink);
  color: var(--brass);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.frame.is-lens .lens-ring {
  opacity: 1;
}
.frame.is-drawing .lens-ring {
  opacity: 0;
}
.frame.is-lens {
  cursor: crosshair;
}

/* The inline (self-drawing) version of a drawing */
.trace--inline {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.trace--inline .l-main {
  stroke: #f3f1ec;
  stroke-width: calc(var(--u) * 1.6px);
}
.trace--inline .l-detail {
  stroke: rgba(243, 241, 236, 0.8);
  stroke-width: calc(var(--u) * 1.05px);
}
.trace--inline .l-context {
  stroke: rgba(243, 241, 236, 0.5);
  stroke-width: calc(var(--u) * 1px);
}
.trace--inline .l-guide {
  stroke: rgba(243, 241, 236, 0.32);
  stroke-width: calc(var(--u) * 0.8px);
}
.trace--inline .l-dim {
  stroke: var(--brass);
  stroke-width: calc(var(--u) * 1px);
}
.trace--inline .l-dim text {
  fill: var(--brass);
  stroke: none;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: calc(var(--u) * 14px);
  letter-spacing: 0.06em;
}
.trace--inline .dash {
  stroke-dasharray: calc(var(--u) * 6px) calc(var(--u) * 5px);
}

/* "Show the drawing" toggle */
.draw-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(243, 241, 236, 0.28);
  border-radius: var(--r);
  background: rgba(12, 21, 33, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f3f1ec;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.draw-toggle:hover {
  border-color: var(--brass);
}
.dt-box {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--brass);
}
.draw-toggle[aria-pressed="true"] .dt-box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--brass);
}

/* Photo captions */
.cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  max-width: calc(100% - 32px);
}
.cap a {
  display: grid;
  gap: 2px;
  padding: 14px 18px 14px 0;
  padding-left: max(16px, 0px);
  background: var(--ink);
  color: #f3f1ec;
  text-decoration: none;
}
.cap-t {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.cap-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brass);
  font-size: 0.8125rem;
  font-weight: 600;
}
.cap-more .i {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease-out);
}
.cap a:hover .cap-more .i {
  transform: translate(2px, -2px);
}
.v-cap {
  position: absolute;
  left: -30px;
  top: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--fg-muted);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Home hero ---------- */
.hero3 {
  position: relative;
  background: var(--ink);
  overflow: clip;
}
.hero3-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  min-height: clamp(640px, calc(100svh - var(--hdr) - 52px), 960px);
}
.hero3-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 8;
  align-self: end;
  padding: 72px 0 clamp(48px, 7vh, 88px);
}
.hero3-h {
  font-weight: 400;
}
.hero3-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vh, 32px);
  color: var(--fg-2);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
.hero3-kicker .sq,
.sq {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--brass);
}
.hero3-line {
  display: block;
  max-width: 11ch;
  font-size: clamp(3rem, 0.4rem + 7.6vw, 9rem);
  font-weight: 800;
  font-stretch: 70%;
  /* Descenders (g, p, y) clear the line below at every width; 0.94 still touches */
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero3-lead {
  max-width: 34em;
  margin-top: clamp(24px, 3.4vh, 36px);
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}
.hero3 .cta-row {
  margin-top: clamp(26px, 3.6vh, 38px);
}
.hero3-alt {
  margin-top: 18px;
  font-size: 0.9375rem;
}
.hero3-media {
  grid-column: 8 / -1;
  margin-right: calc(-1 * var(--edge));
  min-height: 100%;
}
.hero3-media > picture {
  position: absolute;
  inset: 0;
}
.battens {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  pointer-events: none;
}
.battens i {
  flex: 1;
  background: var(--sheet);
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.battens i:nth-child(1) { --i: 0; }
.battens i:nth-child(2) { --i: 1; }
.battens i:nth-child(3) { --i: 2; }
.battens i:nth-child(4) { --i: 3; }
.battens i:nth-child(5) { --i: 4; }
.battens i:nth-child(6) { --i: 5; }
.battens i:nth-child(7) { --i: 6; }
.battens i:nth-child(8) { --i: 7; }
.hero3 .trace-layer--inline {
  background-color: transparent;
}
.hero3-media.is-lens .trace-layer--inline,
.hero3-media.is-drawing .trace-layer--inline {
  background-color: rgba(12, 21, 33, 0.88);
}
@media (max-width: 999px) {
  .hero3-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero3-media {
    grid-column: 1;
    grid-row: 1;
    margin: 0 calc(-1 * var(--gutter));
    min-height: 0;
    height: clamp(300px, 47svh, 600px);
  }
  .hero3-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 32px 0 44px;
  }
  .hero3-line {
    max-width: 12ch;
    font-size: clamp(2.875rem, 0.9rem + 8.6vw, 5.25rem);
  }
  .draw-toggle {
    top: 12px;
    right: var(--gutter);
  }
}
@media (max-width: 760px) {
  .hero3 .cta-row .btn {
    width: 100%;
    justify-content: space-between;
  }
  .hero3 .cta-row .btn--line {
    justify-content: center;
  }
}

/* Inner page variant: crumbs, a shorter hero, the same photo block */
.hero3--page .hero3-grid {
  min-height: clamp(560px, calc(86svh - var(--hdr)), 860px);
}
.hero3--page .hero3-copy {
  padding-top: 56px;
}
.hero3--page .hero3-line {
  max-width: 13ch;
  font-size: clamp(2.75rem, 0.5rem + 5.6vw, 6.75rem);
}
.crumbs3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vh, 32px);
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.crumbs3 a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--fg-2);
  text-decoration: none;
}
.crumbs3 a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}
.crumbs3 li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--fg-muted);
}
/* Text-only variant (projects, quote, legal pages) */
.hero3--short .hero3-grid {
  min-height: 0;
}
.hero3--short .hero3-copy {
  grid-column: 1 / -1;
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 88px);
}
.hero3--short .hero3-line {
  max-width: 14ch;
  font-size: clamp(3rem, 0.6rem + 7vw, 9rem);
}
@media (max-width: 999px) {
  .hero3--page .hero3-media {
    height: clamp(240px, 38svh, 500px);
  }
}

/* ---------- Tape (decorative measuring band under the hero) ---------- */
.tape {
  position: relative;
  height: 52px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
}
.tape-run {
  display: flex;
  width: max-content;
  height: 100%;
  background-image:
    linear-gradient(90deg, var(--brass) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 236, 0.22) 1px, transparent 1px);
  background-size:
    120px 18px,
    24px 11px,
    6px 6px;
  background-repeat: repeat-x;
  background-position: 0 0;
}
.tape-run span {
  display: flex;
  align-items: flex-end;
  width: 120px;
  padding: 0 0 10px 5px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Work track ---------- */
.work {
  position: relative;
  background: var(--paper);
  padding: clamp(80px, 9vw, 140px) 0 clamp(72px, 8vw, 120px);
}
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.work-head .h-xl {
  max-width: 13ch;
}
@media (min-width: 1000px) {
  .work-head .h-xl {
    max-width: none;
    font-size: clamp(3rem, 0.6rem + 5vw, 7.25rem);
  }
}
.work-count {
  display: flex;
  gap: 8px;
  padding-bottom: 0.4em;
  color: var(--fg-muted);
  font-family: var(--f-mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.work-count [data-work-n] {
  color: var(--navy);
}
/* A readout for the horizontal track only: hidden on the stacked grid (phones, tablets, reduced motion) */
.work:not(.is-h) .work-count {
  display: none;
}
.work-rail {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: clamp(40px, 5vw, 72px) auto 0;
}
.tk-panel--intro {
  max-width: 34em;
  margin-bottom: 48px;
}
.tk-lead {
  color: var(--fg-2);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}
.tk-panel--intro .tlink {
  margin-top: 20px;
}
.tk-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(48px, 5vw, 80px);
  align-items: start;
}
.tk {
  grid-column: span 4;
}
.tk:nth-child(1) {
  grid-column: 1 / 7;
}
.tk:nth-child(2) {
  grid-column: 7 / -1;
  margin-top: 96px;
}
.tk-link {
  display: block;
  color: var(--fg);
  text-decoration: none;
}
.tk-media {
  display: flex;
  gap: 10px;
}
.tk-frame {
  flex: 1;
  aspect-ratio: 3 / 4;
}
.tk-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 2px;
  margin-top: 16px;
}
.tk-no {
  grid-row: 1 / 3;
  padding-top: 0.32em;
  color: var(--navy);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.tk-t {
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.tk-t {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-io);
  justify-self: start;
}
.tk-link:hover .tk-t,
.tk-link:focus-visible .tk-t {
  background-size: 100% 1px;
}
.tk-type {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.tk-panel--end {
  display: grid;
  gap: 24px;
  justify-items: start;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}
.tk-end-t {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 780;
  font-stretch: 80%;
  letter-spacing: -0.025em;
  line-height: 1;
}
.work-foot {
  display: none;
}
@media (max-width: 999px) {
  .tk,
  .tk:nth-child(1),
  .tk:nth-child(2) {
    grid-column: span 6;
    margin-top: 0;
  }
  .tk:nth-child(1) {
    grid-column: 1 / -1;
  }
  .tk:nth-child(even) {
    margin-top: 48px;
  }
  .tk:nth-child(1) .tk-frame {
    aspect-ratio: 4 / 4.4;
  }
  .tk-frame--2 {
    display: none;
  }
  .tk-cap {
    grid-template-columns: 1fr;
  }
  .tk-no {
    grid-row: auto;
    padding: 0;
  }
  .tk-t {
    font-size: 1.0625rem;
  }
  .tk-type {
    font-size: 0.875rem;
  }
  /* Home: 8 cards would leave the last one alone in its row, so it spans the row like the first */
  .work .tk:last-child:nth-child(even) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .work .tk:last-child:nth-child(even) .tk-frame {
    aspect-ratio: 4 / 4.4;
  }
}

/* Horizontal mode (site.js adds .is-h on wide screens with motion allowed) */
.work.is-h {
  padding: 0;
  height: var(--work-h, 300vh);
}
.work.is-h .work-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(40px, 6vh, 72px) 0 clamp(24px, 3.4vh, 36px);
}
.work.is-h .work-rail {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  overflow: visible;
}
.work.is-h .work-track {
  --tk-h: clamp(260px, calc(100svh - 23rem), 620px);
  display: flex;
  align-items: center;
  gap: clamp(40px, 4.4vw, 80px);
  width: max-content;
  padding-inline: var(--edge);
  will-change: transform;
}
.work.is-h .tk-list {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 4.4vw, 80px);
}
.work.is-h .tk,
.work.is-h .tk:nth-child(1),
.work.is-h .tk:nth-child(2) {
  margin: 0;
}
.work.is-h .tk-frame {
  flex: none;
  height: var(--tk-h);
  width: auto;
}
.work.is-h .tk:nth-child(3n + 2) .tk-frame {
  height: calc(var(--tk-h) * 0.8);
}
.work.is-h .tk:nth-child(3n + 2) {
  margin-top: calc(var(--tk-h) * 0.1);
}
.work.is-h .tk-frame img {
  translate: var(--px, 0) 0;
  scale: 1.14;
}
.work.is-h .tk-panel--intro {
  width: clamp(300px, 26vw, 420px);
  margin: 0;
  align-self: center;
}
.work.is-h .tk-panel--end {
  width: clamp(300px, 24vw, 380px);
  margin: 0;
  align-self: center;
}
.work.is-h .work-foot {
  display: block;
}
.work-progress {
  position: relative;
  height: 1px;
  background: var(--rule);
}
.work-progress span {
  position: absolute;
  inset: -1px 0 0;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--wp, 0));
}

/* ---------- Services ---------- */
.svc3 {
  position: relative;
  padding: clamp(96px, 10vw, 168px) 0;
  background: var(--ink);
}
.svc3-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
.svc3-intro {
  grid-column: 1 / 5;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 40px);
}
.svc3-h {
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.svc3-lead {
  max-width: 19em;
  margin-top: 20px;
  color: var(--fg-2);
  font-size: 1.125rem;
}
.svc3-intro .btn {
  margin-top: 32px;
}
.svc3-list {
  grid-column: 5 / -1;
  border-top: 1px solid var(--rule-strong);
}
.svc3-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 44px;
  grid-template-areas:
    "draw name arrow"
    "draw p arrow";
  column-gap: clamp(20px, 2.4vw, 36px);
  row-gap: 10px;
  align-items: center;
  padding: clamp(26px, 2.6vw, 38px) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}
.svc3-draw {
  grid-area: draw;
  align-self: center;
  color: var(--brass);
}
.mini {
  width: 128px;
  height: auto;
  stroke-width: 1.25;
  overflow: visible;
}
.mini .g {
  opacity: 0.45;
}
.mini .h {
  opacity: 0.45;
}
.mini .d {
  opacity: 0.7;
}
.svc3-name {
  grid-area: name;
  align-self: end;
  font-size: clamp(2rem, 0.9rem + 3vw, 4.25rem);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 0.92;
  letter-spacing: -0.032em;
  transition: transform 0.55s var(--ease-out), color 0.3s;
}
.svc3-p {
  grid-area: p;
  align-self: start;
  max-width: 38em;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.svc3-arrow {
  grid-area: arrow;
  justify-self: end;
  width: 28px;
  height: 28px;
  color: var(--brass);
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .svc3-row:hover .svc3-name {
    transform: translateX(14px);
  }
  .svc3-row:hover .svc3-arrow {
    opacity: 1;
    transform: translateX(6px);
  }
  .svc3-list:hover .svc3-row:not(:hover) .svc3-name {
    color: rgba(243, 241, 236, 0.42);
  }
}
/* Touch: the row's name nudges along while pressed (in place of the browser's tap box) */
@media (hover: none) {
  .svc3-row:active .svc3-name {
    transform: translateX(8px);
    transition-duration: var(--t-press, 90ms), 0.3s;
  }
}
@media (max-width: 999px) {
  .svc3-intro,
  .svc3-list {
    grid-column: 1 / -1;
    position: static;
  }
  .svc3-row {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "draw name"
      "p p";
    row-gap: 14px;
  }
  .mini {
    width: 76px;
  }
  .svc3-arrow {
    display: none;
  }
  .svc3-name {
    align-self: center;
    font-size: clamp(1.75rem, 1rem + 3.4vw, 2.75rem);
  }
}

/* ---------- Owner ---------- */
.owner3 {
  position: relative;
  padding: clamp(96px, 10vw, 168px) 0 clamp(88px, 9vw, 150px);
  background: var(--paper);
}
.owner3-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(40px, 5vw, 72px);
}
.owner3-grid > .statement {
  grid-column: 1 / 10;
  grid-row: 1;
}
.statement {
  font-size: clamp(1.75rem, 0.95rem + 2.5vw, 3.625rem);
  font-weight: 430;
  font-stretch: 90%;
  line-height: 1.1;
  letter-spacing: -0.024em;
  text-indent: 18%;
}
.statement h2 {
  display: inline;
  font: inherit;
  font-weight: 800;
  font-stretch: 78%;
}
.statement p {
  display: inline;
  text-wrap: wrap;
}
/* Words darken as they cross the reading line (CSS scroll timeline; no script). Each word is its own
   box with its own timeline: the view is inset to end at the reading line (62% down the screen), so a
   line of words darkens while it crosses that line, one line after another. They start from a grey
   that still passes 3:1 for large text. Without view timelines, or with reduced motion: all ink. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sw {
      display: inline-block;
      text-indent: 0;
      animation: sw-lit linear both;
      animation-timeline: view(block 0% 38%);
      animation-range: entry -20% entry 120%;
    }
  }
}
@keyframes sw-lit {
  from {
    color: #7f8186;
  }
}
.owner3-media {
  grid-column: 10 / -1;
  grid-row: 1 / 3;
  z-index: 2;
  align-self: start;
  margin-top: calc(-1 * clamp(160px, 15vw, 260px));
  aspect-ratio: 3 / 4;
  overflow: visible;
}
.owner3-media > picture {
  overflow: hidden;
}
.owner3-media .trace-layer {
  inset: 0;
}
.owner3-foot {
  grid-column: 4 / 9;
  grid-row: 2;
  display: grid;
  gap: 28px;
  justify-items: start;
}
.owner3-p {
  max-width: 28em;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}
@media (min-width: 1000px) {
  /* Clear of the photo's vertical caption, which hangs into the column gap */
  .owner3-grid > .statement {
    padding-right: clamp(40px, 4vw, 64px);
  }
  /* The caption hangs from the photo's foot, which is always on paper */
  .owner3-media .v-cap {
    top: auto;
    bottom: 0;
  }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  /* Too narrow for the photo to reach up into the ink section and still keep its caption on paper:
     it sits level with the statement instead */
  .owner3-media {
    margin-top: 0;
  }
}
@media (max-width: 999px) {
  .owner3-grid > .statement {
    grid-column: 1 / -1;
  }
  .statement {
    text-indent: 0;
  }
  .owner3-media {
    grid-column: 4 / -1;
    grid-row: 2;
    margin-top: 0;
  }
  .owner3-foot {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .v-cap {
    left: -26px;
  }
}

/* ---------- Process ---------- */
.proc3 {
  padding: clamp(96px, 10vw, 168px) 0;
}
.proc3-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
.proc3-side {
  grid-column: 8 / -1;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 40px);
}
.proc3-side .h2 {
  font-stretch: 76%;
  max-width: 12ch;
}
@media (min-width: 1000px) {
  .pstep {
    padding: 72px 0 96px;
  }
  .pstep:first-child {
    padding-top: 8px;
  }
  .pnode {
    top: 80px;
  }
}
.proc3-stage {
  position: relative;
  aspect-ratio: 4 / 3.4;
  margin-top: 36px;
  border: 1px solid rgba(12, 21, 33, 0.16);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20, 73, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 73, 143, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--ink);
}
.ps {
  position: absolute;
  inset: 10% 12% 22%;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.ps.is-on {
  opacity: 1;
}
.ps .drawing {
  width: 100%;
  height: 100%;
}
.proc3-num {
  --lh: 0.8;
  position: absolute;
  right: 18px;
  bottom: 14px;
  height: calc(var(--lh) * 1em);
  overflow: hidden;
  color: var(--navy);
  font-size: clamp(4.5rem, 2rem + 4vw, 7.5rem);
  font-weight: 200;
  font-stretch: 62%;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pn-roll {
  display: block;
  transform: translateY(calc((var(--step, 1) - 1) * var(--lh) * -1em));
  transition: transform 0.8s var(--ease-io);
}
.pn-roll span {
  display: block;
  height: calc(var(--lh) * 1em);
  line-height: calc(var(--lh) * 1em);
}
.proc3-steps {
  grid-column: 1 / 7;
  grid-row: 1;
  position: relative;
  padding-left: 56px;
}
.pstep {
  position: relative;
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
}
.pstep:first-child {
  padding-top: 4px;
  border-top: 0;
}
.pnode {
  position: absolute;
  left: -56px;
  top: 48px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--navy);
  background: var(--stone);
  transition: background-color 0.3s;
}
.pstep:first-child .pnode {
  top: 12px;
}
.pstep.is-on .pnode {
  background: var(--navy);
}
.pstep-t {
  font-size: clamp(1.625rem, 1.15rem + 1.3vw, 2.5rem);
  font-weight: 780;
  font-stretch: 82%;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: color 0.4s;
}
html.js .proc3 .pstep:not(.is-on) .pstep-t {
  color: #6b6f75; /* 3.9:1 on stone: still readable before it lights up */
}
.pstep-n {
  display: none;
}
.pstep p {
  max-width: 30em;
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 1.0625rem;
}
.pstep .tlink {
  margin-top: 12px;
}
.proc3-line {
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 56px;
  width: 1px;
  background: rgba(12, 21, 33, 0.18);
}
.proc3-line span {
  position: absolute;
  inset: 0 -0.5px;
  background: var(--navy);
  transform-origin: 50% 0;
  transform: scaleY(var(--pl, 1));
}
html.js .proc3-line span {
  transform: scaleY(var(--pl, 0));
}
@media (max-width: 999px) {
  .proc3-side {
    grid-column: 1 / -1;
    position: static;
  }
  .proc3-side .h2 {
    max-width: none;
  }
  .proc3-stage {
    display: none;
  }
  .proc3-steps {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 40px;
  }
  .pnode {
    left: -40px;
  }
  .pstep-n {
    display: inline-block;
    min-width: 1.1em;
    color: var(--navy);
    font-weight: 300;
  }
}

/* ---------- Construction drawings (src/partials/draw-*.html) ---------- */
.drawing {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.drawing .d-1 {
  stroke-width: 1.5px;
}
.drawing .d-2 {
  stroke-width: 1px;
}
.drawing .d-3 {
  stroke-width: 0.75px;
}
.drawing .d-acc {
  color: var(--navy);
}
.sec--ink .drawing .d-acc,
.is-dark .drawing .d-acc,
.hero3 .drawing .d-acc,
.svc3 .drawing .d-acc,
.quote3 .drawing .d-acc {
  color: var(--brass);
}
.drawing .d-fill {
  fill: currentColor;
}
.drawing .d-txt {
  fill: currentColor;
  stroke: none;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawing--hero .d-txt {
  font-size: 11px;
}
.drawing.is-tiny .d-txt {
  display: none;
}
/* Draw-in. site.js sets --k = screen px per drawing unit (the strokes don't scale, so dash
   lengths are in screen px) and adds .is-k; the transition only runs once drawn, so arming
   never flashes. Without JS or with reduced motion the drawings simply show complete. */
@media (prefers-reduced-motion: no-preference) {
  /* Drawings with their own choreography (data-motion) skip this generic draw-in. */
  html.js .drawing.is-k:not([data-motion]) :is(path, line, rect, circle, ellipse, polyline) {
    stroke-dasharray: var(--k) 9999;
    stroke-dashoffset: var(--k);
  }
  html.js .drawing.is-k:not([data-motion]) :is(.d-txt, .d-fill) {
    opacity: 0;
  }
  html.js :is(.is-on, .is-in) > .drawing.is-k:not([data-motion]) :is(path, line, rect, circle, ellipse, polyline),
  html.js .drawing.is-k:not([data-motion]).is-in :is(path, line, rect, circle, ellipse, polyline) {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.55, 0, 0.25, 1);
  }
  html.js :is(.is-on, .is-in) > .drawing.is-k:not([data-motion]) .d-1 > *,
  html.js .drawing.is-k:not([data-motion]).is-in .d-1 > * {
    transition-delay: 0.25s;
  }
  html.js :is(.is-on, .is-in) > .drawing.is-k:not([data-motion]) .d-2 > *,
  html.js .drawing.is-k:not([data-motion]).is-in .d-2 > * {
    transition-delay: 0.6s;
  }
  html.js :is(.is-on, .is-in) > .drawing.is-k:not([data-motion]) .d-acc > *,
  html.js .drawing.is-k:not([data-motion]).is-in .d-acc > * {
    transition-delay: 1s;
  }
  html.js :is(.is-on, .is-in) > .drawing.is-k:not([data-motion]) :is(.d-txt, .d-fill),
  html.js .drawing.is-k:not([data-motion]).is-in :is(.d-txt, .d-fill) {
    opacity: 1;
    transition: opacity 0.6s 1.4s;
  }
}

/* ---------- FAQ ---------- */
.faq3 {
  padding: clamp(96px, 10vw, 160px) 0;
}
.faq3-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.faq3-head,
.faq3 .qa-list {
  grid-column: 3 / 11;
}
.faq3-head .h2 {
  font-stretch: 78%;
}
.faq3-intro {
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 1.125rem;
}
.faq3-intro a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.faq3 .qa-list {
  margin-top: clamp(36px, 4vw, 56px);
}
.qa summary {
  min-height: 84px;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 680;
  font-stretch: 92%;
}
.qa-icon,
.qa[open] .qa-icon {
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
}
.qa-icon::before,
.qa-icon::after,
.qa[open] .qa-icon::before,
.qa[open] .qa-icon::after {
  width: 18px;
  background: var(--fg);
}
.qa[open] .qa-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.qa-icon::after {
  transition: transform 0.35s var(--ease-io), opacity 0.35s;
}
.qa::details-content {
  block-size: 0;
  overflow-y: clip;
  transition:
    block-size 0.45s var(--ease-io),
    content-visibility 0.45s allow-discrete;
}
.qa[open]::details-content {
  block-size: auto;
}
@media (max-width: 999px) {
  .faq3-head,
  .faq3 .qa-list {
    grid-column: 1 / -1;
  }
}

/* ---------- Quote section ---------- */
.quote3 {
  padding: clamp(96px, 10vw, 160px) 0 clamp(88px, 9vw, 140px);
}
.quote3-h {
  max-width: 11ch;
}
.quote3-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  margin-top: clamp(40px, 5vw, 80px);
}
.quote3-aside {
  grid-column: 1 / 5;
}
.quote3-grid > .form-card {
  grid-column: 6 / -1;
}
.quote3-talk {
  margin-top: 40px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.rows3 {
  margin-top: 10px;
  border-top: 1px solid var(--rule-strong);
}
.rows3 a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}
.rows3 .k {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.rows3 .v {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 650;
  overflow-wrap: anywhere;
  transition: transform 0.4s var(--ease-out);
}
.rows3 a:hover .v {
  transform: translateX(6px);
}
/* Beside the form, the email address scales with its column so it stays on one line */
@media (min-width: 1000px) {
  .rows3 a[href^="mailto:"] .v {
    font-size: min(clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem), 2.34vw - 6.7px);
  }
}
/* Very narrow phones (320): a narrower key column and a 16px address keep it on one line */
@media (max-width: 374px) {
  .rows3 a {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .rows3 a[href^="mailto:"] .v {
    font-size: 1rem;
  }
}
@media (max-width: 999px) {
  .quote3-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .quote3-aside,
  .quote3-grid > .form-card {
    grid-column: 1 / -1;
  }
  .quote3-aside {
    display: contents;
  }
  .quote3-aside .lead {
    grid-row: 1;
  }
  .quote3-grid > .form-card {
    grid-row: 2;
  }
  .quote3-talk {
    grid-row: 3;
    margin-top: 8px;
  }
  .rows3 {
    grid-row: 4;
    margin-top: -24px;
  }
}

/* ---------- Quote form: stepper, success docket ---------- */
.qf-head {
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
}
.qf-step {
  width: fit-content;
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}
.qf-bar {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 16px;
}
.qf-bar::before,
.qf-bar::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: calc(66.667% + 0px);
  height: 1px;
  background: var(--line-input);
}
.qf-bar::after {
  background: var(--navy);
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  transition: transform 0.55s var(--ease-io);
}
.qf-bar li,
.qf-bar li.on {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 0;
  border: 0;
  overflow: visible;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted);
  white-space: normal;
}
.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line-input);
  border-radius: var(--r);
  background: var(--white);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--fg-muted);
  transition: background-color 0.3s, border-color 0.3s;
}
.node svg {
  position: absolute;
  inset: 4px;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.qf-bar li.cur .node {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.qf-bar li.cur,
.qf-bar li.done {
  color: var(--ink);
}
.qf-bar li.done .node {
  border-color: var(--navy);
  background: var(--navy);
}
.qf-bar li.done .node span {
  opacity: 0;
}
.qf-bar li.done .node svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.4s var(--ease-out) 0.15s;
}
.qf-bar li {
  align-content: start; /* every label hangs from the same line under its node */
}
.lbl {
  line-height: 1.25;
}
/* Narrow cards: the three labels run together, and each step's own heading already names it */
@media (max-width: 599px) {
  .qf-bar .lbl {
    display: none;
  }
}
.form-done .level {
  width: 160px;
  height: 28px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.5;
}
.lv-vial {
  fill: rgba(20, 73, 143, 0.08);
}
.lv-bubble {
  fill: var(--navy);
  stroke: none;
  opacity: 0.85;
}
.docket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 24px;
  border-top: 1px dashed var(--rule-strong);
}
.docket dt,
.docket dd {
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}
.docket dt {
  padding-right: 24px;
  color: var(--fg-muted);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.docket dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.form-done .tick {
  display: none;
}

/* ---------- Footer ---------- */
.ft-big {
  display: block;
  padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 4.4vw, 64px);
  color: var(--fg);
  text-decoration: none;
}
.ft-big-k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(8px, 1.4vw, 18px);
  color: var(--fg-muted);
  font-size: 1rem;
}
.ft-big-k::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brass);
}
.ft-num {
  display: block;
  margin-left: -0.035em;
  font-size: calc((min(100vw, var(--max) + 2 * var(--gutter)) - 2 * var(--gutter)) / 4.5);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.8;
  letter-spacing: -0.018em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ft-num > span {
  display: inline-block;
  transition: color 0.3s, transform 0.5s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 28ms);
}
/* The groups never split, but the number can wrap between them (with user text spacing, say):
   the spaces are ordinary inline spaces that allow a break, inside a line that otherwise doesn't */
.ft-num > .sp {
  display: inline;
  white-space: normal;
  word-spacing: 0.041em; /* tops the space up to a 0.14em gap */
}
@media (hover: hover) {
  .ft-big:hover .ft-num > span {
    color: var(--brass);
    transform: translateY(-0.03em);
  }
}
.ft-h {
  margin-bottom: 10px;
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.ft-mail {
  overflow-wrap: anywhere;
}

/* ---------- Reveals (site.js adds .is-in once, as each block scrolls into view) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: plays from the first paint, no script needed */
  .hero3-line .w > span {
    animation: rise 1.05s var(--ease-out) both;
    animation-delay: calc(0.12s + var(--w) * 55ms);
  }
  .hero3-kicker {
    animation: fade 0.8s var(--ease) 0.05s both;
  }
  .hero3 [data-fade] {
    animation: fade-up 0.9s var(--ease-out) both;
  }
  .hero3-lead[data-fade] {
    animation-delay: 0.55s;
  }
  .hero3 .cta-row[data-fade] {
    animation-delay: 0.68s;
  }
  .hero3-alt[data-fade] {
    animation-delay: 0.8s;
  }
  .hero3 .trace--inline :is(line, polyline, path, rect, circle, ellipse):not(.dash) {
    stroke-dasharray: 1;
    animation: draw 0.8s cubic-bezier(0.45, 0, 0.2, 1) var(--d, 0s) both;
  }
  .hero3 .trace--inline :is(.dash, text) {
    animation: fade 0.5s ease var(--d, 0s) both;
  }
  /* The drawing lingers on the uncovered photo for a beat (its lines sit on the real edges),
     then fades. The photo is painted from the start under the battens, so LCP isn't delayed. */
  .hero3 .trace-layer--inline {
    animation: trace-out 0.65s ease 2.15s backwards;
  }
  .hero3 .battens i {
    animation: batten-open 0.75s var(--ease-io) backwards;
    animation-delay: calc(1.25s + var(--i) * 45ms);
  }
  .hero3 .cap,
  .hero3 .draw-toggle {
    animation: fade 0.6s ease 2.4s backwards;
  }
  .tape {
    animation: fade 1s ease 1.6s backwards;
  }
  @supports (animation-timeline: scroll()) {
    .tape-run {
      animation: tape linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140vh;
    }
  }

  /* Headings marked data-split */
  html.js [data-split]:not(.hero3-line) .w > span {
    transition: translate 1.05s var(--ease-out);
    transition-delay: calc(var(--w) * 45ms);
  }
  html.js [data-split]:not(.hero3-line):not(.is-in) .w > span {
    translate: 0 110%;
  }

  /* Photos wipe up into their frames */
  html.js [data-reveal="photo"] .frame,
  html.js .frame[data-reveal="photo"] {
    transition: clip-path 1.15s var(--ease-io);
  }
  html.js [data-reveal="photo"]:not(.is-in) .frame,
  html.js .frame[data-reveal="photo"]:not(.is-in) {
    clip-path: inset(100% 0 0 0);
  }
  html.js .work:not(.is-h) [data-reveal="photo"] .frame > picture img,
  html.js .frame[data-reveal="photo"] > picture img {
    transition: scale 1.5s var(--ease-out);
  }
  html.js .work:not(.is-h) [data-reveal="photo"]:not(.is-in) .frame > picture img,
  html.js .frame[data-reveal="photo"]:not(.is-in) > picture img {
    scale: 1.14;
  }
  html.js .tk:nth-child(3n + 2) .frame {
    transition-delay: 0.08s;
  }
  html.js .tk:nth-child(3n) .frame {
    transition-delay: 0.16s;
  }

  /* Menu links rise in */
  .menu[open] .menu-links .t > span {
    animation: rise 0.8s var(--ease-out) both;
    animation-delay: calc(0.14s + var(--k, 0) * 50ms);
  }
  .menu[open] .menu-foot {
    animation: fade-up 0.7s var(--ease-out) 0.42s both;
  }

  /* Success: the bubble settles in the level */
  .form-done:not([hidden]) .lv-bubble {
    animation: settle 1.3s cubic-bezier(0.3, 0, 0.2, 1) 0.2s both;
  }
  .form-done:not([hidden]) .lv-mark {
    animation: mark 0.5s ease 1.45s both;
  }
}
@keyframes rise {
  from {
    transform: translateY(110%);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes trace-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes batten-open {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}
@keyframes tape {
  to {
    transform: translateX(-30%);
  }
}
@keyframes settle {
  0% {
    transform: translateX(-26px);
  }
  55% {
    transform: translateX(4px);
  }
  78% {
    transform: translateX(-1.5px);
  }
  100% {
    transform: none;
  }
}
@keyframes mark {
  50% {
    stroke: var(--brass);
  }
}

/* Reduced motion: everything rests in its final state */
@media (prefers-reduced-motion: reduce) {
  .battens {
    display: none;
  }
  .work.is-h .tk-frame img {
    translate: none;
  }
}

/* ---------- Lightbox: full-screen viewer ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
  background: var(--ink-deep);
  color: var(--fg);
}
.lightbox::backdrop {
  background: rgba(7, 13, 21, 0.7);
}
.lightbox[open] {
  animation: lb-in 0.55s var(--ease-io) both;
}
@keyframes lb-in {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
.lb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  height: 100%;
  max-height: none;
}
.lb-media {
  position: relative;
  display: grid;
  min-height: 0;
  padding: clamp(16px, 3vh, 40px);
  background: none;
}
.lb-frame {
  min-height: 0;
  background: none;
}
.lb-frame picture,
.lb-frame > picture img,
.lb-frame .trace-layer img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.lb-frame .trace-layer {
  background-color: rgba(7, 13, 21, 0.86);
  background-image: none;
}
.lb-frame .trace-layer img {
  object-fit: contain;
}
.lb-frame.is-swap > picture img {
  animation: lb-swap 0.6s var(--ease-out);
}
@keyframes lb-swap {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
}
.lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border: 1px solid rgba(243, 241, 236, 0.22);
  border-radius: var(--r);
  background: rgba(7, 13, 21, 0.7);
  color: #f3f1ec;
  cursor: pointer;
}
.lb-arrow:hover {
  border-color: var(--brass);
}
.lb-prev {
  left: clamp(16px, 2vw, 32px);
}
.lb-next {
  right: clamp(16px, 2vw, 32px);
}
.lb-arrow[hidden] {
  display: none;
}
.lb-draw {
  top: clamp(24px, 4vh, 48px);
  right: clamp(24px, 3vw, 48px);
}
.lb-draw[hidden] {
  display: none;
}
.lb-count {
  position: absolute;
  left: clamp(24px, 3vw, 48px);
  bottom: clamp(20px, 3vh, 40px);
  z-index: 6;
  margin: 0;
  padding: 4px 8px;
  background: rgba(7, 13, 21, 0.7);
  color: var(--fg-2);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lb-count:empty {
  display: none;
}
.lb-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vh, 36px) clamp(24px, 2.4vw, 40px) 28px;
  border-left: 1px solid var(--rule);
  background: var(--ink);
  overflow-y: auto;
}
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.lb-no {
  display: flex;
  gap: 12px;
  color: var(--brass);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lb-type {
  color: var(--fg-muted);
}
.lb-close,
.lb-close:hover {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  padding: 0 0 0 12px;
  border: 0;
  background: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.lb-close .i {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.lb-close:hover .i {
  transform: rotate(90deg);
}
.lb-body h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.lb-desc {
  color: var(--fg-2);
  font-size: 1.0625rem;
}
.lb-body .cta-row {
  margin-top: 6px;
}
.lb-jobs {
  margin-top: auto;
  padding-top: 24px;
}
.lb-jobs-k {
  margin-bottom: 10px;
  color: var(--fg-muted);
  font-size: 0.875rem;
}
/* One row, however many jobs there are */
.lb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}
.lb-strip button {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-top: 2px solid transparent;
  background: var(--sheet);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s;
}
.lb-strip button:hover,
.lb-strip button[aria-current="true"] {
  opacity: 1;
}
.lb-strip button[aria-current="true"] {
  border-top-color: var(--brass);
}
.lb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 999px) {
  /* A fixed photo row (133vw lets a 3:4 photo fill the width); the text follows and the sheet scrolls */
  .lb-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: min(62dvh, 133vw) auto;
    overflow-y: auto;
  }
  .lb-media {
    padding: 0;
  }
  .lb-body {
    border-left: 0;
    overflow: visible;
  }
  .lb-top {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -20px -24px 0;
    padding: 6px 24px 10px;
    background: var(--ink);
  }
  .lb-draw {
    top: 12px;
    right: 12px;
  }
  .lb-arrow {
    width: 48px;
    height: 48px;
    margin-top: -24px;
  }
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .lb-count {
    left: 12px;
    bottom: 12px;
  }
  .lb-jobs {
    margin-top: 8px;
  }
}

/* ---------- Grain on ink, page transitions, hero drift ---------- */
.hero3,
.svc3,
.quote3,
.site-footer {
  position: relative;
}
.hero3::after,
.svc3::after,
.quote3::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  /* The grain sits under the section's content, so it only ever lies on the flat ink. Its specks are
     pre-mixed to what a white soft-light blend gives on that ink (#0c1521 -> #2a425a; #070d15 -> #1a2d42
     on the footer), so it looks the same with no blend mode: blending a whole section every frame
     dropped scroll frames on software-composited machines. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1633 0 0 0 0 .257 0 0 0 0 .3514 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.site-footer::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1011 0 0 0 0 .1749 0 0 0 0 .257 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero3 > *,
.svc3 > *,
.quote3 > *,
.site-footer > * {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    view-transition-name: site-header;
  }
  ::view-transition-old(root) {
    animation: vt-out 0.4s var(--ease-io) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 0.75s var(--ease-io) both;
  }
  @supports (animation-timeline: view()) {
    .hero3-media > picture img,
    .hero3-media .trace-layer--inline svg {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
/* The outgoing page keeps its own colours (no fade over the paper canvas, which turned ink pages grey)
   and drifts up a little while the new page wipes up over it, sheet over sheet */
@keyframes vt-out {
  to {
    transform: translateY(-2%);
  }
}
@keyframes vt-in {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes hero-drift {
  to {
    translate: 0 10%;
    scale: 1.06;
  }
}
/* The owner photo overlaps the ink section above, so it lifts off a dark sheet like the hero */
.owner3-media {
  --plate: var(--sheet);
}
.draw-toggle[hidden] {
  display: none;
}
/* A gridded drafting sheet to sit a construction drawing on */
.draw-box {
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--rule);
  background-image:
    linear-gradient(color-mix(in srgb, var(--fg) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
/* Battens overlap by a pixel so no seam of photo shows between them */
.battens i + i {
  margin-left: -1px;
}

/* ===== 20-draw-battens-builtin.css ===== */
/* Engel Build: motion for the batten wall and mudroom bench drawings (built-ins page).
   Both play once (data-motion="play" gets .is-play from site.js), in the order a carpenter builds the thing.
   Lines are ruled with stroke-dashoffset (--k = screen px per unit; the strokes don't scale, so a dash of
   var(--k) covers a stroke whose pathLength is set just under 1, or under total/longest for several strokes);
   parts arrive by transform about their real pivot; labels fade last.
   Without JS, before --k is measured, or with reduced motion: the finished drawing, still. */

/* The pendant's occluder: the shade (fill + 2.5-unit halo) and its cord (3.5-unit halo: the batten edges 2 units
   either side go) knock out the battens behind them in the section colour. Static, so the finished drawing is the
   same with or without motion. */
.drawing--battens .bt-occ {
  fill: var(--bg);
  stroke: var(--bg);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.drawing--battens .bt-halo {
  stroke: var(--bg);
  stroke-width: 7px;
  stroke-linecap: butt;
}
/* Only there while things move: the plumb bob, the seat's face (so the back doesn't show through it while it is
   lowered) and the cupboard door's edge. The sheet on the built-ins page is white, not --bg. */
.drawing--battens .bt-bob,
.drawing--builtin :is(.bi-occ, .bi-edge) {
  opacity: 0;
}
.drawing--builtin .bi-occ {
  fill: var(--bb-plate, var(--bg));
  stroke: none;
}
.bi-sheet-draw .drawing--builtin {
  --bb-plate: var(--white);
}
/* Too small for labels (site.js adds .is-tiny): the BATTEN leader and its dot go with the label */
.drawing--battens.is-tiny .bt-lab--2:not(text) {
  display: none;
}

/* ---------- Timeline (--at start, --t duration, --e easing of a ruled line) ---------- */
/* Batten wall, 4.45 s: room, plumb line, battens, pendant, light, pitch chain, labels */
.drawing--battens .bt-ceil { --at: 0s; --t: 0.65s; }
.drawing--battens .bt-bench { --at: 0.08s; --t: 0.68s; }
/* ruled at an even pace (in-out), starting on the plumb line as it comes to rest */
.drawing--battens .bt-battens { --at: 1.68s; --t: 1.3s; --e: cubic-bezier(0.37, 0, 0.63, 1); }
.drawing--battens .bt-wit { --at: 3.6s; --t: 0.3s; }
.drawing--battens .bt-chain { --at: 3.67s; --t: 0.42s; }
.drawing--battens .bt-tick { --at: 3.75s; --t: 0.2s; }
.drawing--battens .bt-tick + .bt-tick { --at: 3.81s; }
.drawing--battens .bt-tick + .bt-tick + .bt-tick { --at: 3.87s; }
.drawing--battens .bt-tick + .bt-tick + .bt-tick + .bt-tick { --at: 3.93s; }
.drawing--battens .bt-lab--1 { --at: 3.85s; }
.drawing--battens .bt-lab--2 { --at: 3.9s; }
.drawing--battens .bt-lab--3 { --at: 3.95s; }
.drawing--battens .bt-lab--4 { --at: 4s; }

/* Mudroom bench, 4.4 s: room, carcass, back, shelf and dividers, seat, (hold) door, levels, chain, labels */
.drawing--builtin .bi-ceil { --at: 0s; --t: 0.6s; }
.drawing--builtin .bi-floor { --at: 0.06s; --t: 0.6s; }
.drawing--builtin .bi-side { --t: 0.62s; }
.drawing--builtin .bi-side--1 { --at: 0.28s; }
.drawing--builtin .bi-side--2 { --at: 0.37s; }
.drawing--builtin .bi-side--3 { --at: 0.46s; }
.drawing--builtin .bi-face { --at: 0.78s; --t: 0.38s; }
.drawing--builtin .bi-tb { --at: 0.84s; --t: 0.56s; }
/* V-groove back, ruled down left to right; the pen lifts over the PANEL label (--a top half, --b bottom) */
.drawing--builtin .bi-groove { --t: 0.38s; }
.drawing--builtin :is(.bi-groove--a, .bi-groove--b) { --t: 0.19s; }
.drawing--builtin .bi-groove:nth-child(1) { --at: 1.2s; }
.drawing--builtin .bi-groove:nth-child(2) { --at: 1.25s; }
.drawing--builtin .bi-groove:nth-child(3) { --at: 1.3s; }
.drawing--builtin .bi-groove:nth-child(4) { --at: 1.35s; }
.drawing--builtin .bi-groove:nth-child(5) { --at: 1.4s; }
.drawing--builtin .bi-groove:nth-child(6) { --at: 1.6s; }
.drawing--builtin .bi-groove:nth-child(7) { --at: 1.45s; }
.drawing--builtin .bi-groove:nth-child(8) { --at: 1.65s; }
.drawing--builtin .bi-groove:nth-child(9) { --at: 1.5s; }
.drawing--builtin .bi-groove:nth-child(10) { --at: 1.7s; }
.drawing--builtin .bi-groove:nth-child(11) { --at: 1.55s; }
.drawing--builtin .bi-groove:nth-child(12) { --at: 1.6s; }
.drawing--builtin .bi-groove:nth-child(13) { --at: 1.65s; }
.drawing--builtin .bi-groove:nth-child(14) { --at: 1.7s; }
.drawing--builtin .bi-shelf { --at: 1.8s; }
.drawing--builtin .bi-div--up { --at: 1.95s; }
.drawing--builtin .bi-div--lo { --at: 2.05s; }
.drawing--builtin .bi-datum { --at: 3.4s; --t: 0.38s; }
.drawing--builtin .bi-level { --t: 0.36s; }
.drawing--builtin .bi-level:nth-child(16) { --at: 3.48s; }
.drawing--builtin .bi-level:nth-child(17) { --at: 3.56s; }
.drawing--builtin .bi-level:nth-child(18) { --at: 3.64s; }
.drawing--builtin .bi-level:nth-child(19) { --at: 3.72s; }
.drawing--builtin .bi-wit { --at: 3.68s; --t: 0.3s; }
.drawing--builtin .bi-chain { --at: 3.74s; --t: 0.48s; }
.drawing--builtin .bi-ctick { --at: 3.98s; --t: 0.22s; }
.drawing--builtin .bi-lab--1 { --at: 4s; }
.drawing--builtin .bi-lab--2 { --at: 4.05s; }
.drawing--builtin .bi-lab--3 { --at: 4.1s; }

@media (prefers-reduced-motion: no-preference) {
  /* Pivots: the hook in the ceiling, the ceiling rose, the cupboard's hinge, the door's free edge */
  html.js .drawing--battens[data-motion] .bt-swing {
    transform-box: view-box;
    transform-origin: 112px 40px;
  }
  html.js .drawing--battens[data-motion] :is(.bt-sway, .bt-cord) {
    transform-box: view-box;
    transform-origin: 278.5px 40px;
  }
  html.js .drawing--builtin[data-motion] .bi-door {
    transform-box: view-box;
    transform-origin: 477.5px 280px;
  }
  html.js .drawing--builtin[data-motion] .bi-edge {
    transform-box: view-box;
    transform-origin: 358.5px 0;
  }

  /* A ruled line */
  html.js .drawing.is-k[data-motion] :is(.bt-d, .bi-d) {
    stroke-dasharray: var(--k);
  }
  html.js .drawing.is-k[data-motion]:not(.is-play) :is(.bt-d, .bi-d) {
    stroke-dashoffset: var(--k);
  }
  html.js .drawing.is-k[data-motion].is-play :is(.bt-d, .bi-d) {
    animation: bb-draw var(--t, 0.6s) var(--e, cubic-bezier(0.45, 0, 0.2, 1)) var(--at, 0s) backwards;
  }

  /* Before play */
  html.js .drawing.is-k[data-motion]:not(.is-play) :is(.bt-plumb, .bt-pend, .bt-cone, .bt-lab, .bi-shelf, .bi-div, .bi-seat, .bi-swing, .bi-door, .bi-lab) {
    opacity: 0;
  }

  /* Batten wall */
  /* The bob is hung from a hook in the ceiling once the ceiling is ruled past it, hangs, then free-falls on its
     line (the line's dashes ride down with it, clipped at the ceiling), catches, swings once and settles plumb.
     It is unhooked once the first batten has been ruled down the line. */
  html.js .drawing--battens.is-k[data-motion].is-play .bt-swing {
    animation: bb-swing 1.27s linear 0.55s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-plumb {
    animation: bb-drop 0.43s cubic-bezier(0.33, 0, 0.67, 0.33) 0.55s backwards, bb-fade 0.19s linear 0.18s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-bob {
    animation: bb-drop 0.43s cubic-bezier(0.33, 0, 0.67, 0.33) 0.55s backwards, bb-bob-on 1.92s linear 0.18s backwards;
  }
  /* The pendant is hung (a quick fade, not a cross-fade), lowers on its cord and sways to rest */
  html.js .drawing--battens.is-k[data-motion].is-play .bt-rose {
    animation: bb-fade 0.1s cubic-bezier(0.16, 1, 0.3, 1) 2.55s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-shade {
    animation: bb-lower 0.72s cubic-bezier(0.45, 0, 0.22, 1) 2.55s backwards, bb-fade 0.1s cubic-bezier(0.16, 1, 0.3, 1) 2.55s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-cord {
    animation: bb-pay-out 0.72s cubic-bezier(0.45, 0, 0.22, 1) 2.55s backwards, bb-fade 0.1s cubic-bezier(0.16, 1, 0.3, 1) 2.55s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-sway {
    animation: bb-sway 1.25s linear 2.55s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-cone {
    animation: bb-lamp 0.52s linear 3.64s backwards;
  }
  html.js .drawing--battens.is-k[data-motion].is-play .bt-lab {
    animation: bb-fade 0.45s cubic-bezier(0.16, 1, 0.3, 1) var(--at) backwards;
  }

  /* Mudroom bench */
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-shelf {
    animation: bb-shelf 0.5s linear var(--at) backwards;
  }
  /* each pair of dividers is pushed in from the left along its housings and settles (the same hand as the seat; the
     fade only brings it in, so most of the travel is seen) */
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-div {
    animation: bb-fade 0.12s linear var(--at) backwards, bb-slide 0.55s cubic-bezier(0.3, 0, 0.15, 1) var(--at) backwards;
  }
  /* the seat is lowered on and set down; its face hides the back behind it until it has landed */
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-seat {
    animation: bb-fade 0.14s linear 2.4s backwards, bb-seat-lower 0.6s cubic-bezier(0.3, 0, 0.15, 1) 2.4s backwards;
  }
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-occ {
    animation: bb-face 0.72s linear 2.4s backwards;
  }
  /* once the seat is down: the door appears open at 78 degrees and swings shut; the swing notation follows */
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-door {
    animation: bb-fade 0.12s linear 2.9s backwards, bb-door-shut 0.8s linear 2.95s backwards;
  }
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-edge {
    animation: bb-door-edge 0.8s linear 2.95s backwards;
  }
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-swing {
    animation: bb-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1) 3.62s backwards;
  }
  html.js .drawing--builtin.is-k[data-motion].is-play .bi-lab {
    animation: bb-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1) var(--at) backwards;
  }
}

@keyframes bb-draw {
  from { stroke-dashoffset: var(--k); }
  to { stroke-dashoffset: 0; }
}
@keyframes bb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Plumb line. The bob free-falls (s = t^2, the timing function), its line riding down with it; the line hangs
   a little off plumb, catches as the bob lands and makes one damped swing (equal half-periods) to plumb */
@keyframes bb-drop {
  from { transform: translateY(-326px); }
  to { transform: translateY(0); }
}
@keyframes bb-swing {
  0% { transform: rotate(1.35deg); animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0.33); }
  33.86% { transform: rotate(1.2deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  66.93% { transform: rotate(-0.35deg); animation-timing-function: cubic-bezier(0.45, 0, 0.45, 1); }
  100% { transform: rotate(0deg); }
}
@keyframes bb-bob-on {
  0% { opacity: 0; }
  10%, 83% { opacity: 1; }
  100% { opacity: 0; }
}
/* Pendant: the shade drops 95 units while the cord pays out from the rose on the same curve (stays joined) */
@keyframes bb-lower {
  from { transform: translateY(-95px); }
  to { transform: translateY(0); }
}
@keyframes bb-pay-out {
  from { transform: scaleY(0.0404); }
  to { transform: scaleY(1); }
}
@keyframes bb-sway {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  55% { transform: rotate(1.3deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  78% { transform: rotate(-0.4deg); animation-timing-function: cubic-bezier(0.45, 0, 0.45, 1); }
  100% { transform: rotate(0deg); }
}
/* The lamp warms up: quickly to half, then full */
@keyframes bb-lamp {
  0% { opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1); }
  30% { opacity: 0.55; animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1); }
  100% { opacity: 1; }
}
@keyframes bb-slide {
  from { transform: translateX(-22px); }
  to { transform: translateX(0); }
}
@keyframes bb-shelf {
  0% { opacity: 0; transform: translateY(-14px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bb-seat-lower {
  from { transform: translateY(-40px); }
  to { transform: translateY(0); }
}
@keyframes bb-face {
  0%, 84% { opacity: 1; }
  100% { opacity: 0; }
}
/* Door: scaleX = cos(angle) about the hinge as it swings from 78 degrees open to shut (angle eased in-out, sampled),
   so the leaf lands softly by itself. Its 18 mm free edge (inside the door, so in the door's scaled frame) shows
   3.5 sin(angle) wide: scaleX = tan(angle) about the free edge, at the same samples. */
@keyframes bb-door-shut {
  0% { transform: scaleX(0.2079); }
  6.25% { transform: scaleX(0.2151); }
  12.5% { transform: scaleX(0.2378); }
  18.75% { transform: scaleX(0.2776); }
  25% { transform: scaleX(0.3355); }
  31.25% { transform: scaleX(0.4118); }
  37.5% { transform: scaleX(0.5047); }
  43.75% { transform: scaleX(0.6091); }
  50% { transform: scaleX(0.7163); }
  56.25% { transform: scaleX(0.8147); }
  62.5% { transform: scaleX(0.8937); }
  68.75% { transform: scaleX(0.9479); }
  75% { transform: scaleX(0.9791); }
  81.25% { transform: scaleX(0.9937); }
  87.5% { transform: scaleX(0.9988); }
  93.75% { transform: scaleX(0.9999); }
  100% { transform: scaleX(1); }
}
@keyframes bb-door-edge {
  0% { opacity: 1; transform: scaleX(4.7046); }
  6.25% { transform: scaleX(4.5398); }
  12.5% { transform: scaleX(4.084); }
  18.75% { transform: scaleX(3.4609); }
  25% { transform: scaleX(2.8074); }
  31.25% { transform: scaleX(2.2126); }
  37.5% { transform: scaleX(1.7106); }
  43.75% { transform: scaleX(1.3021); }
  50% { transform: scaleX(0.9742); }
  56.25% { transform: scaleX(0.7118); }
  62.5% { transform: scaleX(0.5021); }
  68.75% { transform: scaleX(0.336); }
  75% { transform: scaleX(0.2075); }
  81.25% { transform: scaleX(0.1126); }
  87.5% { transform: scaleX(0.0482); }
  93.75% { transform: scaleX(0.0116); }
  100% { opacity: 1; transform: scaleX(0.001); }
}

/* ===== 20-draw-deck-frame.css ===== */
/* ---------- Deck frame drawing (src/partials/draw-hero.html): a scroll-driven assembly ----------
   site.js sets --p (0 -> 1) as the drawing rises through the screen (data-motion="scrub"). Every part (.m)
   has its own window of the scroll, [--a, --a + --l], and its pose is computed straight from --p: scrolling
   builds the frame in the order a carpenter would (set out; back posts and bearer; front footings, posts and
   bearer; joists slid along the bearers; boards from the back edge; the stair), then dimensions and labels
   arrive. Scrolling back takes it apart. The windows are timed so each beat starts on screen.
   Each member sits on a fill in the section background (.f) and the members are painted back to front, so a
   part that arrives later covers the lines behind it. A static mask (.f) after each row of posts hides it
   until it rises through the ground. The footings and the pitch line are revealed by clip rectangles that
   slide (.hf-wipe, travel --d).
   Poses are calc() from --p rather than paused animations: less style work per scroll frame. --hf-t is the
   part's progress (0 -> 1), --hf-e the eased distance still to go (1 -> 0): (1-t)^4 settles (quart out),
   (1-t)^3 (cubic out), (1-t)^3 (1 + 3t) eases in and settles softly (a pen, a lift), (1-t)^2 (1 + 2t) is
   smoothstep (a swing). Parts are fully opaque after the first fifth of their move, so a placement reads as
   a placement and no line shows through a fill. Only transform, opacity and stroke-dashoffset change.
   Without JS or with reduced motion none of this applies: the finished drawing shows, still. */
@property --hf-t {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --hf-e {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.drawing--hero .f {
  fill: var(--bg);
  stroke: none;
}
.sec--stone .drawing--hero {
  --bg: var(--stone);
}
/* Too small for labels (site.js hides .d-txt): the leaders and their dots go too */
.drawing--hero.is-tiny .hf-ldr {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .drawing--hero[data-motion] .m {
    --hf-t: clamp(0, (var(--p, 0) - var(--a, 0)) / var(--l, 1), 1);
    --hf-e: pow(1 - var(--hf-t), 4);
  }
  /* Set-out lines, dimensions, leaders: drawn as with a pen. Until site.js has measured --k they wait. */
  html.js .drawing--hero[data-motion]:not(.is-k) .hf-draw {
    opacity: 0;
  }
  html.js .drawing--hero[data-motion].is-k .hf-draw {
    --hf-e: calc(pow(1 - var(--hf-t), 3) * (1 + 3 * var(--hf-t)));
    stroke-dasharray: var(--k);
    /* a length (x 1px), not a bare number: Firefox drops a unitless calc() here */
    stroke-dashoffset: calc(var(--k) * var(--hf-e) * 1px);
    opacity: min(1, var(--hf-t) * 60); /* hides the zero-length dash (a square cap) at each line's start */
  }
  /* Footings dug from the ground line down; the pitch line extends from the bottom nosing up (pen) */
  html.js .drawing--hero[data-motion] .hf-wipe {
    transform: translateY(calc(var(--hf-e) * var(--d)));
  }
  html.js .drawing--hero[data-motion] .hf-wipe--pen {
    --hf-e: calc(pow(1 - var(--hf-t), 3) * (1 + 3 * var(--hf-t)));
  }
  /* A row of posts rises out of the ground */
  html.js .drawing--hero[data-motion] .hf-post {
    --hf-e: calc(pow(1 - var(--hf-t), 3) * (1 + 3 * var(--hf-t)));
    transform: translateY(calc(var(--hf-e) * 142px));
  }
  /* Bearers are lowered onto the posts */
  html.js .drawing--hero[data-motion] .hf-bearer {
    --hf-e: pow(1 - var(--hf-t), 3);
    transform: translateY(calc(var(--hf-e) * -48px));
    opacity: min(1, var(--hf-t) * 5);
  }
  /* Joists slide along both bearers onto their centre marks (half a spacing, so never into a neighbour);
     the end joist, which would hang off the bearer ends, is lowered instead */
  html.js .drawing--hero[data-motion] .hf-joist {
    transform: translateX(calc(var(--hf-e) * -46px));
    opacity: min(1, var(--hf-t) * 5);
  }
  html.js .drawing--hero[data-motion] .hf-joist--end {
    transform: translateY(calc(var(--hf-e) * -24px));
  }
  /* Boards are laid one after another from the back edge */
  html.js .drawing--hero[data-motion] .hf-board {
    --hf-e: pow(1 - var(--hf-t), 3);
    transform: translateY(calc(var(--hf-e) * -18px));
    opacity: min(1, var(--hf-t) * 5);
  }
  /* Stringers hang from the end joist and swing down onto the ground about the top fixing (it lands: no
     overshoot) */
  html.js .drawing--hero[data-motion] .hf-stringer {
    --hf-e: calc(pow(1 - var(--hf-t), 2) * (1 + 2 * var(--hf-t)));
    transform-box: view-box;
    transform-origin: var(--o);
    transform: rotate(calc(var(--hf-e) * 20deg));
    opacity: min(1, var(--hf-t) * 5);
  }
  /* Treads drop onto the stringer cuts, bottom to top */
  html.js .drawing--hero[data-motion] .hf-tread {
    --hf-e: pow(1 - var(--hf-t), 3);
    transform: translateY(calc(var(--hf-e) * -20px));
    opacity: min(1, var(--hf-t) * 5);
  }
  html.js .drawing--hero[data-motion] .hf-label {
    --hf-e: pow(1 - var(--hf-t), 3);
    transform: translateY(calc(var(--hf-e) * 5px));
    opacity: var(--hf-t);
  }
}

/* ===== 20-draw-door.css ===== */
/* ---------- Door drawings in motion: draw-door, draw-404 (play once) ----------
   draw-door: the brick opening is laid course by course, the frame stands on its sill, the leaf and
   its glazing are drawn, the hardware ticks in, the cut at lock height drops into the section, the
   lever is pressed and the leaf swings out about its hinge while its tip draws the swing arc.
   draw-404: the opening draws with the leaf closed in it, the swing arc is swept, then the door opens
   once to its drawn 25 degrees and stays there (no overshoot: a well-hung door stays where it's left).
   The elevation follows the plan honestly: the face narrows by cos θ about the hinge line, the edge
   widens from nothing by sin θ.
   Parts: .pen draws (dash = var(--k), see 10-v3.css), .rv draws a mask stroke that reveals static
   strokes in order, .tick places small hardware, .lbl/.dots are the labels (last).
   Timing sits on each part: --de delay, --du duration. Without JS or with reduced motion nothing here
   applies, the masks are solid and the drawing is complete. */
@media (prefers-reduced-motion: no-preference) {
  /* dash = the drawing's --k (the whole stroke, see 10-v3.css); the long gap keeps the pattern from
     wrapping onto the stroke's far end, where a zero-length dash would show as a square cap */
  html.js :is(.drawing--door, .drawing--404)[data-motion] .pen {
    stroke-dasharray: var(--k, 10) 100;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion] .rv {
    stroke-dasharray: 1 100;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion] .tick {
    transform-box: fill-box;
    transform-origin: 50% 50%;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion] .tick--y {
    --t0: scaleY(0.2);
  }

  /* Before play */
  html.js :is(.drawing--door, .drawing--404)[data-motion]:not(.is-play) .pen {
    stroke-dashoffset: var(--k, 10);
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion]:not(.is-play) .rv {
    stroke-dashoffset: 1;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion]:not(.is-play) :is(.tick, .lbl, .dots) {
    opacity: 0;
  }

  /* Play. Fill mode "backwards", not "both": once a part finishes it falls back to its own style, which
     is the drawing at rest, so no held transform or opacity keeps it on a compositor layer (a held one
     re-rasterises the lines and the last frame no longer matches the still drawing) */
  html.js :is(.drawing--door, .drawing--404)[data-motion].is-play .pen {
    animation: door-pen var(--du, 0.5s) var(--ez, cubic-bezier(0.45, 0, 0.2, 1)) var(--de, 0s) backwards;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion].is-play .rv {
    animation: door-rv var(--du, 0.5s) var(--ez, cubic-bezier(0.45, 0, 0.2, 1)) var(--de, 0s) backwards;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion].is-play .tick {
    animation: door-tick var(--du, 0.32s) var(--ease-out) var(--de, 0s) backwards;
  }
  html.js :is(.drawing--door, .drawing--404)[data-motion].is-play :is(.lbl, .dots) {
    animation: door-fade var(--du, 0.26s) var(--ease-out) var(--de, 0s) backwards;
  }

  /* draw-door: lever pressed about its spindle, then the leaf swings; the arc mask shares its clock */
  html.js .drawing--door[data-motion] {
    --sw-de: 2.8s;
    --sw-du: 1.15s;
    --sw-ez: cubic-bezier(0.65, 0, 0.35, 1);
  }
  html.js .drawing--door[data-motion] .lever {
    transform-box: view-box;
    transform-origin: 119.5px 250px;
  }
  html.js .drawing--door[data-motion] .sec-leaf {
    transform-box: view-box;
    transform-origin: 241.5px 528px;
  }
  html.js .drawing--door[data-motion].is-play .lever {
    animation:
      door-pen var(--du) cubic-bezier(0.45, 0, 0.2, 1) var(--de) backwards,
      door-lever 0.9s linear 2.62s backwards;
  }
  html.js .drawing--door[data-motion].is-play .sec-leaf {
    animation:
      door-pen var(--du) cubic-bezier(0.45, 0, 0.2, 1) var(--de) backwards,
      door-swing var(--sw-du) var(--sw-ez) var(--sw-de) backwards;
  }
  html.js .drawing--door[data-motion].is-play .rv-arc {
    animation: door-rv var(--sw-du) var(--sw-ez) var(--sw-de) backwards;
  }

  /* draw-404: the door opens. Plan leaf, elevation face and edge share one clock and the same stops;
     the backwards fill holds all three closed from the start, so they are drawn closed */
  html.js .drawing--404[data-motion] {
    --op-de: 2.05s;
    --op-du: 1.2s;
  }
  html.js .drawing--404[data-motion] .nf-leaf {
    transform-box: view-box;
    transform-origin: 134px 461px;
  }
  html.js .drawing--404[data-motion] .nf-face {
    transform-box: view-box;
    transform-origin: 134px 0;
  }
  html.js .drawing--404[data-motion] .nf-edge {
    transform-box: view-box;
    transform-origin: 253px 0;
  }
  html.js .drawing--404[data-motion].is-play .nf-leaf {
    animation:
      door-pen var(--du) cubic-bezier(0.45, 0, 0.2, 1) var(--de) backwards,
      nf-open-plan var(--op-du) linear var(--op-de) backwards;
  }
  html.js .drawing--404[data-motion].is-play .nf-face {
    animation: nf-open-face var(--op-du) linear var(--op-de) backwards;
  }
  /* The edge has no width while the door is closed: it needs no draw-on, it appears as the door opens */
  html.js .drawing--404[data-motion].is-play .nf-edge {
    animation: nf-open-edge var(--op-du) linear var(--op-de) backwards;
  }
}

/* Too small for labels (site.js adds .is-tiny and the shared rule hides .d-txt): the leaders and their
   dots go with the labels, so nothing points at an empty margin */
.drawing--404.is-tiny :is(.ldr, .dots),
.drawing--door.is-tiny :is(.ldr, .dots) {
  display: none;
}

@keyframes door-pen {
  from {
    stroke-dashoffset: var(--k, 10);
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes door-rv {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes door-tick {
  from {
    opacity: 0;
    transform: var(--t0, scale(0.3));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes door-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Closed (leaf across the opening, against its stops) to the drawn open position */
@keyframes door-swing {
  from {
    transform: rotate(90deg);
  }
  to {
    transform: none;
  }
}
/* Press, hold while the latch clears, let go */
@keyframes door-lever {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
  }
  24% {
    transform: rotate(30deg);
  }
  46% {
    transform: rotate(30deg);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  80%,
  100% {
    transform: none;
  }
}

/* draw-404: the door opens from closed to its drawn 25 degrees, θ = 25° · ease(u) with
   ease = cubic-bezier(.5, 0, .25, 1) (a hand pushes, the leaf coasts to rest), sampled every 10 percent
   and run linear, so the three parts share exact stops and the projection holds at every frame.
   Plan: rotate(θ − 25°) about the hinge (134, 461).
   Elevation face: scaleX(cos θ / cos 25°) about the hinge line x = 134 (1.1034 closed).
   Edge: moves with the face edge, translateX(119 (scale − 1)), and widens by sin θ / sin 25° (0 closed). */
@keyframes nf-open-plan {
  0% {
    transform: rotate(-25deg);
  }
  10% {
    transform: rotate(-24.6deg);
  }
  20% {
    transform: rotate(-23.04deg);
  }
  30% {
    transform: rotate(-19.33deg);
  }
  40% {
    transform: rotate(-12.92deg);
  }
  50% {
    transform: rotate(-7.26deg);
  }
  60% {
    transform: rotate(-3.85deg);
  }
  70% {
    transform: rotate(-1.86deg);
  }
  80% {
    transform: rotate(-0.73deg);
  }
  90% {
    transform: rotate(-0.16deg);
  }
  100% {
    transform: none;
  }
}
@keyframes nf-open-face {
  0% {
    transform: scaleX(1.1034);
  }
  10% {
    transform: scaleX(1.1034);
  }
  20% {
    transform: scaleX(1.1027);
  }
  30% {
    transform: scaleX(1.098);
  }
  40% {
    transform: scaleX(1.0789);
  }
  50% {
    transform: scaleX(1.0509);
  }
  60% {
    transform: scaleX(1.029);
  }
  70% {
    transform: scaleX(1.0146);
  }
  80% {
    transform: scaleX(1.0058);
  }
  90% {
    transform: scaleX(1.0013);
  }
  100% {
    transform: none;
  }
}
@keyframes nf-open-edge {
  0% {
    transform: translateX(12.302px) scaleX(0);
  }
  10% {
    transform: translateX(12.299px) scaleX(0.0163);
  }
  20% {
    transform: translateX(12.225px) scaleX(0.0808);
  }
  30% {
    transform: translateX(11.66px) scaleX(0.2338);
  }
  40% {
    transform: translateX(9.394px) scaleX(0.4952);
  }
  50% {
    transform: translateX(6.059px) scaleX(0.721);
  }
  60% {
    transform: translateX(3.454px) scaleX(0.8539);
  }
  70% {
    transform: translateX(1.734px) scaleX(0.93);
  }
  80% {
    transform: translateX(0.694px) scaleX(0.9727);
  }
  90% {
    transform: translateX(0.157px) scaleX(0.9939);
  }
  100% {
    transform: none;
  }
}

/* ===== 20-draw-minis.css ===== */
/* ==========================================================================
   Services minis (svg.mini in a.svc3-row): small motion vignettes
   Each drawing shows how the thing is built or how it works, in at most 1.2 s, and ends on the drawing.
   In view: plays once, 300 ms after its row scrolls in (.svc3-row.is-in, plus the batch stagger --d),
   so it runs where it can be seen, not at the fold.
   Hover (desktop) and keyboard focus: nothing happens for the first 160 ms (300 ms for the deck and the
   battens), so a pointer crossing the list leaves every drawing alone. After that the replay runs. The deck and the battens are re-inked
   over a pencil ghost of themselves; the door and the cupboard swing their doors; the arch's compass
   comes back and runs over the finished arc. Nothing disappears outright on hover.
   The replay is appended after the in-view animation ("animation: A, A-0, A-h"): A-0 holds the replay's
   first frame through the part's own delay, A-h plays it. On leave the list returns to the finished A.
   Markup: src/partials/mini-*.html. A part's kind is its class:
     rise   grows up from its base (posts, studs)        .top: hangs down from its top instead
     drop   lowers --dy into place and fades in          lower a heavy group lowered --dy, opaque at once
     draw   ruled in (pathLength = number of subpaths)   grow  extends from its left end
     ride   slides in from --dx                          fade  fades in
     tool   a drafting tool: in, hold, out               sweep the compass arm (rotates 180°, then holds)
     lf     a door leaf (see below)                      ghost the drawing in pencil, under a hover replay
   --at is the part's start time. --ath, --mth and --meh override delay, duration and easing on hover.
   Without JS or with reduced motion, nothing moves and the drawing is complete.
   ========================================================================== */

/* The ground and hidden lines read solid (as the v3 draw-in left them) */
.mini .g,
.mini .h {
  stroke-dasharray: none;
}
/* Resting opacity of the faint line weights, for keyframes that fade in */
.mini .d {
  --op: 0.7;
}
.mini .h {
  --op: 0.45;
}
/* Tools, ghosts and leaf-only lines are invisible at rest */
.mini .tool,
.mini .ghost,
.mini .lf .e,
.mini .lf .o1,
.mini .lf .o2 {
  opacity: 0;
}
.mini .tool {
  stroke-width: 0.8;
}
/* A leaf's occluders take the section background, so lines behind an open leaf are hidden; the
   hairline stroke closes the seam between the two triangles */
.mini .lf .o1,
.mini .lf .o2 {
  fill: var(--bg);
  stroke: var(--bg);
  stroke-width: 0.3;
}

/* Door leaves in perspective.
   The eye sits at (--cx, --cy) of the drawing, --D viewBox units in front of it. The leaf is hinged on
   x = --hx and runs --w units toward --dir (1 right, -1 left), from y --t to --b. The registered --mn-th
   is its angle toward the viewer. Every line of the leaf gets the exact affine map of its projection:
     .v  a vertical at distance --u from the hinge: moves and grows about eye level
     .hz a horizontal from --u1 to --u2 at height --y: becomes the segment between its projected ends
     .o1/.o2 the two triangles of the leaf face (background fill), so what is behind the leaf is hidden
     .e  leaf edges that lie on frame lines when shut: they fade out over the last few degrees, so the
         closed leaf is exactly the drawing. */
@property --mn-th {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
/* Registered as numbers so each step of the projection computes once per element, per frame */
@property --mn-c {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --mn-sn {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --mn-s {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --mn-s1 {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --mn-s2 {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --mn-p1x {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --mn-p2x {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --mn-p1y {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --mn-p2y {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --mn-kx {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --mn-ky {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --mn-x1 {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.mini--door {
  --cx: 60;
  --cy: 44;
  --D: 400;
}
.mini--builtin {
  --cx: 59;
  --cy: 42;
  --D: 320;
}

/* Neutralise the v3 draw-in (10-v3.css "Small drawings draw themselves in"). Once those rules are
   deleted from 10-v3.css, this block can go. */
@media (prefers-reduced-motion: no-preference) {
  html.js .mini path,
  html.js .mini .g,
  html.js .mini .h {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
  html.js .svc3-row:not(.is-in) .mini path {
    stroke-dashoffset: 0;
  }
  .svc3-row.is-in:hover .mini path {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* ---- Kinds: keyframes (in view, hover, hover's first frame), duration, easing ---- */
  html.js .mini .rise {
    --mk: mn-rise;
    --mkh: mn-rise-h;
    --mk0: mn-rise-0;
    --mt: 0.4s;
    --me: var(--ease-out);
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }
  html.js .mini .rise.top {
    --mt: 0.22s;
    --me: cubic-bezier(0.3, 0.6, 0.3, 1);
    transform-origin: 50% 0;
  }
  html.js .mini .drop {
    --mk: mn-drop;
    --mkh: mn-drop-h;
    --mk0: mn-drop-0;
    --mt: 0.3s;
    --me: cubic-bezier(0.2, 0.75, 0.25, 1);
  }
  html.js .mini .lower {
    --mk: mn-lower;
    --mkh: mn-lower-h;
    --mk0: mn-drop-0;
    --mt: 0.5s;
    --me: cubic-bezier(0.3, 0.45, 0.2, 1);
  }
  html.js .mini .draw {
    --mk: mn-draw;
    --mkh: mn-draw-h;
    --mk0: mn-draw-0;
    --mt: 0.38s;
    --me: cubic-bezier(0.45, 0, 0.2, 1);
  }
  html.js .mini .grow {
    --mk: mn-grow;
    --mkh: mn-grow-h;
    --mk0: mn-grow-0;
    --mt: 0.48s;
    --me: cubic-bezier(0.45, 0, 0.2, 1);
    transform-box: fill-box;
    transform-origin: 0 50%;
  }
  html.js .mini .ride {
    --mk: mn-ride;
    --mkh: mn-ride-h;
    --mk0: mn-ride-0;
    --mt: 0.48s;
    --me: cubic-bezier(0.45, 0, 0.2, 1);
  }
  html.js .mini .fade {
    --mk: mn-fade;
    --mkh: mn-fade-h;
    --mk0: mn-fade-0;
    --mt: 0.15s;
    --me: linear;
  }
  /* The deck's and the battens' hover replay re-inks the drawing over a faint pencil ghost of itself,
     so nothing vanishes while the pointer rests and nothing flashes when it moves on */
  html.js .mini .ghost {
    --mk: none;
    --mt: 0s;
    --me: linear;
    --mkh: mn-ghost-h;
    --ath: 0ms;
  }
  html.js .mini .tool {
    --mk: mn-tool;
    --mkh: mn-tool-h;
    --mt: 0.76s;
    --me: linear;
  }
  /* The arm turns in the first 500 ms (easing inside the keyframes), then holds at 180° while the
     compass fades: the sweep ends exactly when the tool does */
  html.js .mini .sweep {
    --mk: mn-sweep;
    --mkh: mn-sweep-h;
    --mt: 0.66s;
    --me: linear;
    transform-box: view-box;
    transform-origin: 60px 40px;
  }
  html.js .mini--arch .arc {
    --mt: 0.5s;
    --me: cubic-bezier(0.45, 0, 0.3, 1);
  }
  html.js .mini .lf.swing {
    --mk: mn-swing;
    --mkh: mn-swing-h;
    --mt: 1.15s;
    --me: linear;
  }
  /* Cupboard leaves: hung open, they swing shut in view; on hover they open and close like the door */
  html.js .mini .lf.shut {
    --mk: mn-shut;
    --mt: 0.56s;
    --me: cubic-bezier(0.5, 0, 0.2, 1);
    --mkh: mn-swing-h;
    --mth: 1s;
    --meh: linear;
    --ath: 0ms;
  }
  /* On hover the cupboard and the arch keep their parts: only the doors and the compass work */
  html.js .mini--builtin :is(.rise, .drop, .lower),
  html.js .mini--arch :is(.rise, .drop, .arc) {
    --mkh: none;
    --mk0: none;
  }
  html.js .mini--arch .tool {
    --ath: 0ms;
  }
  html.js .mini--arch .sweep {
    --ath: 100ms;
  }

  /* ---- Before the row scrolls in: every part on its first frame ---- */
  html.js .svc3-row:not(.is-in) .mini .rise {
    transform: scaleY(0);
  }
  html.js .svc3-row:not(.is-in) .mini :is(.drop, .lower, .fade, .ride) {
    opacity: 0;
  }
  html.js .svc3-row:not(.is-in) .mini .draw {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
  }
  html.js .svc3-row:not(.is-in) .mini .grow {
    transform: scaleX(0);
  }

  /* ---- Play once in view (+300 ms), replay on hover / focus after an intent (--mi) ----
     The first entry must be the same in all three rules, or hover would retime the in-view play.
     --mi is 160 ms; the deck and the battens, whose replay dims the drawing, wait 300 ms (the same as
     the in-view lead-in, so a row that scrolls in under a resting pointer plays once, cleanly). */
  html.js .mini:is(.mini--deck, .mini--battens) {
    --mi: 300ms;
  }
  html.js .svc3-row.is-in .mini :is(.rise, .drop, .lower, .draw, .grow, .ride, .fade, .tool, .sweep, .lf, .ghost) {
    animation: var(--mk) var(--mt) var(--me) calc(var(--d, 0ms) + var(--at, 0ms) + 300ms) backwards;
  }
  html.js .svc3-row.is-in:focus-visible .mini :is(.rise, .drop, .lower, .draw, .grow, .ride, .fade, .tool, .sweep, .lf, .ghost) {
    animation:
      var(--mk) var(--mt) var(--me) calc(var(--d, 0ms) + var(--at, 0ms) + 300ms) backwards,
      var(--mk0, none) var(--ath, var(--at, 0ms)) linear var(--mi, 160ms),
      var(--mkh) var(--mth, var(--mt)) var(--meh, var(--me)) calc(var(--mi, 160ms) + var(--ath, var(--at, 0ms)));
  }
  @media (hover: hover) {
    html.js .svc3-row.is-in:hover .mini :is(.rise, .drop, .lower, .draw, .grow, .ride, .fade, .tool, .sweep, .lf, .ghost) {
      animation:
        var(--mk) var(--mt) var(--me) calc(var(--d, 0ms) + var(--at, 0ms) + 300ms) backwards,
        var(--mk0, none) var(--ath, var(--at, 0ms)) linear var(--mi, 160ms),
        var(--mkh) var(--mth, var(--mt)) var(--meh, var(--me)) calc(var(--mi, 160ms) + var(--ath, var(--at, 0ms)));
    }
  }

  /* ---- Door leaves: projection of each line from --mn-th ---- */
  html.js .mini .lf {
    --mn-c: cos(var(--mn-th));
    --mn-sn: sin(var(--mn-th));
  }
  html.js .mini .lf * {
    transform-box: view-box;
    transform-origin: 0 0;
  }
  html.js .mini .lf .v {
    --mn-s: calc(var(--D) / (var(--D) - var(--u) * var(--mn-sn)));
    --mn-p1x: calc(var(--cx) + (var(--hx) + var(--dir) * var(--u) * var(--mn-c) - var(--cx)) * var(--mn-s));
    transform: matrix(1, 0, 0, var(--mn-s), calc(var(--mn-p1x) - var(--hx) - var(--dir) * var(--u)), calc(var(--cy) * (1 - var(--mn-s))));
  }
  html.js .mini .lf .hz {
    --mn-s1: calc(var(--D) / (var(--D) - var(--u1) * var(--mn-sn)));
    --mn-s2: calc(var(--D) / (var(--D) - var(--u2) * var(--mn-sn)));
    --mn-p1x: calc(var(--cx) + (var(--hx) + var(--dir) * var(--u1) * var(--mn-c) - var(--cx)) * var(--mn-s1));
    --mn-p2x: calc(var(--cx) + (var(--hx) + var(--dir) * var(--u2) * var(--mn-c) - var(--cx)) * var(--mn-s2));
    --mn-p1y: calc(var(--cy) + (var(--y) - var(--cy)) * var(--mn-s1));
    --mn-p2y: calc(var(--cy) + (var(--y) - var(--cy)) * var(--mn-s2));
    --mn-kx: calc((var(--mn-p2x) - var(--mn-p1x)) / (var(--dir) * (var(--u2) - var(--u1))));
    --mn-ky: calc((var(--mn-p2y) - var(--mn-p1y)) / (var(--dir) * (var(--u2) - var(--u1))));
    --mn-x1: calc(var(--hx) + var(--dir) * var(--u1));
    transform: matrix(
      var(--mn-kx),
      var(--mn-ky),
      0,
      1,
      calc(var(--mn-p1x) - var(--mn-kx) * var(--mn-x1)),
      calc(var(--mn-p1y) - var(--mn-ky) * var(--mn-x1) - var(--y))
    );
  }
  html.js .mini .lf :is(.o1, .o2) {
    --mn-s: calc(var(--D) / (var(--D) - var(--w) * var(--mn-sn)));
    --mn-kx: calc(((var(--cx) + (var(--hx) + var(--dir) * var(--w) * var(--mn-c) - var(--cx)) * var(--mn-s)) - var(--hx)) / (var(--dir) * var(--w)));
  }
  html.js .mini .lf .o1 {
    --mn-ky: calc((var(--cy) + (var(--t) - var(--cy)) * var(--mn-s) - var(--t)) / (var(--dir) * var(--w)));
    transform: matrix(
      var(--mn-kx),
      var(--mn-ky),
      0,
      var(--mn-s),
      calc(var(--hx) * (1 - var(--mn-kx))),
      calc(var(--t) * (1 - var(--mn-s)) - var(--mn-ky) * var(--hx))
    );
  }
  html.js .mini .lf .o2 {
    --mn-ky: calc((var(--cy) + (var(--b) - var(--cy)) * var(--mn-s) - var(--b)) / (var(--dir) * var(--w)));
    transform: matrix(var(--mn-kx), var(--mn-ky), 0, 1, calc(var(--hx) * (1 - var(--mn-kx))), calc(var(--mn-ky) * var(--hx) * -1));
  }
  html.js .mini .lf :is(.e, .o1, .o2) {
    opacity: clamp(0, var(--mn-sn) * 6, 1);
  }
}

/* In view (A), hover (A-h: states its end, so it never blends with a still-running A), and the
   hover's held first frame (A-0) */
@keyframes mn-rise {
  from {
    transform: scaleY(0);
  }
}
@keyframes mn-rise-h {
  from {
    transform: scaleY(0);
  }
  to {
    transform: none;
  }
}
@keyframes mn-rise-0 {
  from,
  to {
    transform: scaleY(0);
  }
}
@keyframes mn-drop {
  from {
    transform: translateY(var(--dy, -6px));
    opacity: 0;
  }
  40% {
    opacity: var(--op, 1);
  }
}
@keyframes mn-drop-h {
  from {
    transform: translateY(var(--dy, -6px));
    opacity: 0;
  }
  40% {
    opacity: var(--op, 1);
  }
  to {
    transform: none;
    opacity: var(--op, 1);
  }
}
@keyframes mn-drop-0 {
  from,
  to {
    transform: translateY(var(--dy, -6px));
    opacity: 0;
  }
}
/* Heavy members: solid almost at once, so they read as lowered, not faded in */
@keyframes mn-lower {
  from {
    transform: translateY(var(--dy, -6px));
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
}
@keyframes mn-lower-h {
  from {
    transform: translateY(var(--dy, -6px));
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes mn-draw {
  from {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 0;
  }
}
@keyframes mn-draw-h {
  from {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 0;
  }
}
@keyframes mn-draw-0 {
  from,
  to {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
  }
}
@keyframes mn-grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes mn-grow-h {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}
@keyframes mn-grow-0 {
  from,
  to {
    transform: scaleX(0);
  }
}
@keyframes mn-ride {
  from {
    transform: translateX(var(--dx, 0px));
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
}
@keyframes mn-ride-h {
  from {
    transform: translateX(var(--dx, 0px));
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes mn-ride-0 {
  from,
  to {
    transform: translateX(var(--dx, 0px));
    opacity: 0;
  }
}
@keyframes mn-fade {
  from {
    opacity: 0;
  }
}
@keyframes mn-fade-h {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--op, 1);
  }
}
@keyframes mn-fade-0 {
  from,
  to {
    opacity: 0;
  }
}
@keyframes mn-tool {
  0%,
  100% {
    opacity: 0;
  }
  14%,
  84% {
    opacity: 0.7;
  }
}
@keyframes mn-tool-h {
  0%,
  100% {
    opacity: 0;
  }
  14%,
  84% {
    opacity: 0.7;
  }
}
@keyframes mn-ghost-h {
  0%,
  86% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
  }
}
/* 500 of 660 ms turning, in step with the arc's draw (same curve), then held */
@keyframes mn-sweep {
  from {
    transform: none;
    animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
  }
  75.7576%,
  to {
    transform: rotate(180deg);
  }
}
@keyframes mn-sweep-h {
  from {
    transform: none;
    animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
  }
  75.7576%,
  to {
    transform: rotate(180deg);
  }
}
/* The door opens toward you, slows at about 64°, and closes softly into the stop */
@keyframes mn-swing {
  0% {
    --mn-th: 0deg;
    animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
  }
  45% {
    --mn-th: 64deg;
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
  }
  100% {
    --mn-th: 0deg;
  }
}
@keyframes mn-swing-h {
  0% {
    --mn-th: 0deg;
    animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1);
  }
  45% {
    --mn-th: 64deg;
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
  }
  100% {
    --mn-th: 0deg;
  }
}
/* Cupboard leaves are hung open, then swing shut */
@keyframes mn-shut {
  from {
    --mn-th: 66deg;
  }
}

/* ===== 20-draw-round-deck.css ===== */
/* Round-deck framing plan (src/partials/draw-deck.html): scroll-driven setting out of a deck round a tree.
   Generated together with the partial (gen-deck.mjs in the motion scratchpad): edit both or neither.
   site.js sets --p (0 -> 1) on the svg as it rises up the screen. Every moving part (.m) has its own window
   of --p (--a start, --l length) and its progress in it, --rd-q (0 -> 1), so scrolling back runs it backwards.
   Everything is styled straight from --rd-q with polynomial easing; there are no CSS animations:
   - a paused transform animation, even at rest, makes Chromium re-rasterise the whole svg slightly soft,
     and seeking ~40 paused animations every scroll frame costs more main-thread time than plain styles;
   - dash offsets are calc(... * var(--k) * 1px): Firefox drops a unitless calc() around --k, but takes
     this px form (checked in Chromium and Firefox);
   - the progress values are registered numbers (@property, below), so each resolves once per element
     instead of being re-substituted as text into every calc (about half the style cost per scroll frame).
   Easings: pen 1-(1-t)³(1+3t) (soft start and landing) for lines that are drawn and the line run out; smoothstep
   t²(3-2t) for the swing and the circles it traces (one expression, so pencil and line stay locked); quartic
   out for things that are set down (centre mark, posts, bearers); cubic out for the labels.
   Story: the tree; its centre marked; a trammel line runs out from the trunk and swings once, its pin drawing
   the opening and its tip the deck edge; posts, bearers, full joists left to right, trimmers either side of the
   trunk; boards back to front in pairs, covering the frame as they go (rd-cv: the covered share of a line,
   from its far end, is (--p - --pb) * --sl, at most --rm), the last board's edge; then the dimension, the
   leader dots, leaders drawn out from the parts, and the labels.
   Without JS, before --k is measured, or with reduced motion: the finished drawing (rd-mo parts hidden). */
@property --rd-q {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --rd-g {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --rd-s {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --rd-u {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
/* motion-only parts: the full joists, the rear trimmer and its joists (covered by the boards in the finished
   drawing), and the trammel's r 34 pin */
.drawing--deck :is(.rd-mo, .rd-pin) {
  opacity: 0;
}
/* Too small for labels (site.js adds .is-tiny and the shared rule hides .d-txt): the leaders and their dots
   go with them, so nothing points at an empty margin */
.drawing--deck.is-tiny :is(.rd-ldr, .rd-dots) {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .drawing--deck[data-motion].is-k .m {
    --rd-q: clamp(0, (var(--p, 0) - var(--a, 0)) / var(--l, 1), 1);
  }
  html.js .drawing--deck[data-motion].is-k .rd-st {
    opacity: 0;
  }
  /* lines that are drawn: the dash is the longest subpath (pathLength), offset by what is still to draw.
     The opacity hides the square cap of the first, near-zero-length dash. */
  html.js .drawing--deck[data-motion].is-k :is(.rd-ln, .rd-trace, .rd-inner) {
    stroke-dasharray: var(--k) 9999; /* the long gap: no zero-length dash (a cap dot) at a hidden line's end */
    stroke-dashoffset: calc((1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 + 3 * var(--rd-q)) * var(--k) * 1px);
    opacity: min(1, var(--rd-q) * 60);
  }
  /* lines the boards cover: drawn, then hidden from the far end back to the board front */
  html.js .drawing--deck[data-motion].is-k .rd-cv {
    stroke-dashoffset: calc(max((1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 + 3 * var(--rd-q)), clamp(0, (var(--p, 0) - var(--pb)) * var(--sl), var(--rm))) * var(--k) * 1px);
  }
  /* and those covered completely go once the board over them is down */
  html.js .drawing--deck[data-motion].is-k .rd-z {
    opacity: clamp(0, min(var(--rd-q) * 60, (var(--pz) - var(--p, 0)) * 300), 1);
  }
  /* the opening and the deck edge, traced by the pin and the tip of the swinging line */
  html.js .drawing--deck[data-motion].is-k .rd-trace {
    stroke-dashoffset: calc((1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 + 2 * var(--rd-q)) * var(--k) * 1px);
  }
  /* the inner face of the rim, drawn as the tip passes over it (same window as the swing) */
  html.js .drawing--deck[data-motion].is-k .rd-inner {
    --rd-u: clamp(0, (1 - (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 + 2 * var(--rd-q)) - 0.1351) / 0.4412, 1);
    stroke-dashoffset: calc((1 - var(--rd-u)) * var(--k) * 1px);
    opacity: min(1, var(--rd-u) * 60);
  }
  /* the centre mark: dot and centre-line ticks open out from the middle of the tree */
  html.js .drawing--deck[data-motion].is-k .rd-centre {
    transform-box: view-box;
    transform-origin: 236px 216px;
    transform: scale(calc(1 - 0.45 * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q))));
    opacity: clamp(0, var(--rd-q) * 2.5, 1);
  }
  /* the trammel: one 360° clockwise swing about the centre (--a, --l). --rd-s is the line's length
     (1 = deck radius), run out from the trunk first (--ga, --gl) */
  html.js .drawing--deck[data-motion].is-k .rd-swing {
    transform-box: view-box;
    transform-origin: 236px 216px;
    transform: rotate(calc((1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 + 2 * var(--rd-q)) * -360deg));
    --rd-g: clamp(0, (var(--p, 0) - var(--ga)) / var(--gl), 1);
    --rd-s: calc(1 - (1 - var(--rd-g)) * (1 - var(--rd-g)) * (1 - var(--rd-g)) * (1 + 3 * var(--rd-g)));
  }
  html.js .drawing--deck[data-motion].is-k .rd-arm {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    transform: scale(var(--rd-s));
    opacity: clamp(0, var(--rd-g) * 30, 1);
  }
  html.js .drawing--deck[data-motion].is-k .rd-tip {
    transform: translate(calc((var(--rd-s) - 1) * 132.0945px), calc((var(--rd-s) - 1) * -103.3783px));
    opacity: clamp(0, var(--rd-g) * 30, 1);
  }
  /* the pin at r 34 shows once the line has run out past it, and is lifted off as the line settles */
  html.js .drawing--deck[data-motion].is-k .rd-pin {
    opacity: min(clamp(0, (var(--rd-s) - 0.0709) * 30, 1), clamp(0, (var(--oa) + var(--ol) - var(--p, 0)) / var(--ol), 1));
  }
  /* the dashed swing mark, once the line has landed (its dashes are separate subpaths, so it fades) */
  html.js .drawing--deck[data-motion].is-k .rd-mark {
    opacity: var(--rd-q);
  }
  /* posts are set down: each crossed square settles from half size about its own centre */
  html.js .drawing--deck[data-motion].is-k .rd-post {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transform: scale(calc(1 - 0.5 * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q))));
    opacity: clamp(0, var(--rd-q) * 2.5, 1);
  }
  /* hidden bearers slide along their length onto the posts */
  html.js .drawing--deck[data-motion].is-k .rd-slide {
    transform: translateX(calc((1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * -16px));
    opacity: clamp(0, var(--rd-q) * 2, 1);
  }
  /* leader dots touch the parts first; the leaders are drawn out from them; the labels follow */
  html.js .drawing--deck[data-motion].is-k .rd-dots {
    opacity: var(--rd-q);
  }
  html.js .drawing--deck[data-motion].is-k .rd-labels {
    transform: translateY(calc((1 - var(--rd-q)) * (1 - var(--rd-q)) * (1 - var(--rd-q)) * 5px));
    opacity: var(--rd-q);
  }
}

/* ===== 20-draw-skylight-arch.css ===== */
/* Engel Build: motion for the skylight section and the arched opening (doors and openings page).
   Both play once (data-motion="play" gets .is-play from site.js) in the order the work happens.
   - Ruled lines: stroke-dashoffset var(--k) -> 0. Every draw path carries pathLength = total / longest stroke
     (x 0.996), so a dash of var(--k) covers its longest stroke and all its strokes rule at one pen speed. The dash
     exists only before and during the draw (it lives in the keyframes); at rest every line is the still drawing's
     solid stroke.
   - Dashed lines are never moved. The approved dashes are revealed in place: the skylight's rays by one clip
     wavefront (#sk-front, its edge square to the rays), the arch's springing line, centre line and dashed circle
     by mask strokes (#ar-m-*, the .rv technique of 20-draw-door.css). Nothing slides, so nothing aliases, and the
     end frame is the approved drawing by construction.
   - Fill mode "backwards": a finished part falls back to its own style (the drawing at rest), so no held animation
     keeps it on a layer after the sequence.
   - Timeline per part: --at start, --t duration, --e easing (pen: cubic-bezier(.45,0,.2,1)).
   Without JS, before --k is measured, or with reduced motion: the finished drawing, still. The clip and masks apply
   only while motion runs, and their ids must be unique on a page (one copy of each partial per page). */

.drawing--arch .x-mo {
  display: none;
}

/* Too small for labels (site.js adds .is-tiny and the shared rule hides .d-txt): the leaders go with them */
.drawing--skylight.is-tiny :is(.sk-lead, .sk-dots) {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  /* ---------- Shared ---------- */
  html.js .drawing--arch.is-k[data-motion] .x-mo {
    display: inline;
  }
  html.js .drawing--arch.is-k[data-motion] .x-still {
    display: none;
  }
  html.js :is(.drawing--skylight, .drawing--arch).is-k[data-motion]:not(.is-play) path[pathLength]:not(:where(.ar-rv)) {
    stroke-dasharray: var(--k);
    stroke-dashoffset: var(--k);
  }
  html.js :is(.drawing--skylight, .drawing--arch).is-k[data-motion].is-play path[pathLength]:not(:where(.ar-rv)) {
    animation: skar-draw var(--t, 0.5s) var(--e, cubic-bezier(0.45, 0, 0.2, 1)) var(--at, 0s) backwards;
  }
  /* fades */
  html.js :is(.drawing--skylight, .drawing--arch).is-k[data-motion]:not(.is-play) :is(.sk-dots, .sk-labs > *, .ar-labs > *, .ar-arm-pen, .ar-tick) {
    opacity: 0;
  }
  html.js :is(.drawing--skylight, .drawing--arch).is-k[data-motion].is-play :is(.sk-dots, .sk-labs > *, .ar-labs > *, .ar-arm-pen) {
    animation: skar-fade var(--t, 0.3s) var(--e, var(--ease-out)) var(--at) backwards;
  }

  @keyframes skar-draw {
    from {
      stroke-dasharray: var(--k);
      stroke-dashoffset: var(--k);
    }
    to {
      stroke-dasharray: var(--k);
      stroke-dashoffset: 0;
    }
  }
  @keyframes skar-fade {
    from {
      opacity: 0;
    }
  }
  @keyframes skar-rv {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  /* ---------- Skylight, 4.47 s: roof and framing, the lining, then daylight ---------- */
  /* 1. The roof, ceiling and framing that are already there: quiet, in build order (joists before the ceiling) */
  .drawing--skylight .sk-raf--l { --at: 0s; --t: 0.55s; }
  .drawing--skylight .sk-raf--r { --at: 0.14s; --t: 0.55s; }
  .drawing--skylight .sk-jtop { --at: 0.06s; --t: 0.6s; }
  .drawing--skylight .sk-joist { --at: 0.14s; --t: 0.38s; }
  .drawing--skylight .sk-trim { --at: 0.4s; --t: 0.38s; }
  .drawing--skylight .sk-ceil { --at: 0.4s; --t: 0.55s; }
  .drawing--skylight .sk-frame { --at: 0.55s; --t: 0.45s; }
  .drawing--skylight .sk-insul { --at: 0.58s; --t: 0.55s; }
  .drawing--skylight .sk-sheet--l { --at: 0.78s; --t: 0.42s; }
  .drawing--skylight .sk-sheet--r { --at: 0.88s; --t: 0.42s; }
  .drawing--skylight .sk-curb { --at: 0.92s; --t: 0.32s; }
  .drawing--skylight .sk-unit { --at: 0.98s; --t: 0.36s; }
  .drawing--skylight .sk-glass { --at: 1.04s; --t: 0.34s; }
  .drawing--skylight .sk-flash { --at: 1.08s; --t: 0.3s; }
  /* battens drop onto the rafters along the roof's normal (5:12 pitch) */
  .drawing--skylight .sk-bat--1 { --at: 0.62s; }
  .drawing--skylight .sk-bat--2 { --at: 0.69s; }
  .drawing--skylight .sk-bat--3 { --at: 0.76s; }
  html.js .drawing--skylight.is-k[data-motion]:not(.is-play) .sk-bat {
    opacity: 0;
  }
  html.js .drawing--skylight.is-k[data-motion].is-play .sk-bat {
    animation: sk-drop 0.4s var(--ease-out) var(--at) backwards;
  }
  /* 2. The lining: both sides run down from the curb to the ceiling and arrive together (2.14), then a beat */
  .drawing--skylight .sk-lin { --at: 1.42s; --t: 0.72s; }
  /* 3. Daylight: one plane wavefront at constant speed (light doesn't ease). The clip rect's lower edge is square to
     the rays (direction 0.44996, 0.89305) and slides from 131 to 608 units along them: the first ray starts at
     2.24 s, R1 lands on the lining at 2.86 s, the rest come to rest in the room at 3.47 / 3.51 / 3.59 / 3.64 s. */
  html.js .drawing--skylight.is-k[data-motion] .sk-rays {
    clip-path: url(#sk-front);
  }
  .drawing--skylight .sk-front {
    transform-box: view-box;
    transform-origin: 0 0;
    transform: rotate(-26.741deg) translateY(608px);
  }
  html.js .drawing--skylight.is-k[data-motion]:not(.is-play) .sk-front {
    transform: rotate(-26.741deg) translateY(131px);
  }
  html.js .drawing--skylight.is-k[data-motion].is-play .sk-front {
    animation: sk-front 1.42s linear 2.23s backwards;
  }
  /* 4. Labels once the light has landed: dots touch the parts, then each leader draws out and its label follows,
     one unit at a time, top to bottom */
  .drawing--skylight .sk-dots { --at: 3.72s; --t: 0.2s; }
  .drawing--skylight .sk-lead { --t: 0.3s; }
  .drawing--skylight .sk-labs > * { --t: 0.26s; }
  .drawing--skylight .sk-lead--1 { --at: 3.8s; }
  .drawing--skylight .sk-labs > :nth-child(1) { --at: 3.94s; }
  .drawing--skylight .sk-lead--2 { --at: 3.845s; }
  .drawing--skylight .sk-labs > :nth-child(2) { --at: 3.985s; }
  .drawing--skylight .sk-lead--3 { --at: 3.89s; }
  .drawing--skylight .sk-labs > :nth-child(3) { --at: 4.03s; }
  .drawing--skylight .sk-lead--4 { --at: 3.935s; }
  .drawing--skylight .sk-labs > :nth-child(4) { --at: 4.075s; }
  .drawing--skylight .sk-lead--5 { --at: 3.98s; }
  .drawing--skylight .sk-labs > :nth-child(5) { --at: 4.12s; }
  .drawing--skylight .sk-lead--6 { --at: 4.025s; }
  .drawing--skylight .sk-labs > :nth-child(6) { --at: 4.165s; }
  .drawing--skylight .sk-lead--7 { --at: 4.07s; }
  .drawing--skylight .sk-labs > :nth-child(7) { --at: 4.21s; }

  @keyframes sk-drop {
    from {
      opacity: 0;
      transform: translate(-2.3px, -5.5px);
    }
  }
  @keyframes sk-front {
    from {
      transform: rotate(-26.741deg) translateY(131px);
    }
    to {
      transform: rotate(-26.741deg) translateY(608px);
    }
  }

  /* ---------- Arch, 4.40 s: set out, strike the arch with the compass, finish ---------- */
  /* 1. Plates, wall ends, studs and noggings */
  .drawing--arch .ar-floor { --at: 0s; --t: 0.6s; }
  .drawing--arch .ar-top { --at: 0.06s; --t: 0.6s; }
  .drawing--arch .ar-break { --at: 0.16s; --t: 0.55s; }
  .drawing--arch .ar-stud--l { --at: 0.26s; }
  .drawing--arch .ar-stud--r { --at: 0.34s; }
  .drawing--arch .ar-nog--l { --at: 0.48s; --x: -10px; }
  .drawing--arch .ar-nog--r { --at: 0.54s; --x: 10px; }
  html.js .drawing--arch.is-k[data-motion]:not(.is-play) :is(.ar-stud, .ar-nog) {
    opacity: 0;
  }
  html.js .drawing--arch.is-k[data-motion].is-play .ar-stud {
    animation: ar-rise 0.55s var(--ease-out) var(--at) backwards;
  }
  html.js .drawing--arch.is-k[data-motion].is-play .ar-nog {
    animation: ar-slide 0.45s var(--ease-out) var(--at) backwards;
  }
  /* 2. Springing line (one pass, left to right, jumping the opening), centre line ruled up, centre marked.
     The approved dashes stay put; a mask stroke along each line reveals them in place. */
  html.js .drawing--arch.is-k[data-motion] .ar-spr {
    mask: url(#ar-m-spr);
  }
  html.js .drawing--arch.is-k[data-motion] .ar-cl {
    mask: url(#ar-m-cl);
  }
  html.js .drawing--arch.is-k[data-motion] .ar-circ {
    mask: url(#ar-m-circ);
  }
  html.js .drawing--arch.is-k[data-motion] .ar-rv {
    stroke-dasharray: 1 100;
  }
  html.js .drawing--arch.is-k[data-motion]:not(.is-play) .ar-rv {
    stroke-dashoffset: 1;
  }
  html.js .drawing--arch.is-k[data-motion].is-play .ar-rv {
    animation: skar-rv var(--t) var(--e, cubic-bezier(0.45, 0, 0.2, 1)) var(--at) backwards;
  }
  .drawing--arch .ar-rv--spr { --at: 0.72s; --t: 0.58s; }
  .drawing--arch .ar-rv--cl { --at: 1.04s; --t: 0.45s; }
  .drawing--arch .ar-cross { --at: 1.14s; --t: 0.22s; }
  .drawing--arch .ar-dot { --at: 1.24s; }
  html.js .drawing--arch.is-k[data-motion] .ar-dot {
    transform-box: fill-box;
    transform-origin: 50% 50%;
  }
  html.js .drawing--arch.is-k[data-motion]:not(.is-play) .ar-dot {
    opacity: 0;
  }
  html.js .drawing--arch.is-k[data-motion].is-play .ar-dot {
    animation: ar-pop 0.3s var(--ease-out) var(--at) backwards;
  }
  /* 3. The compass: the arm draws out to the left springing point and sweeps 180 degrees about the centre while
     the arc rules under its pen (1.86 s + 1.30 s, same easing, so the pen sits on the arc's end in every frame).
     It holds 120 ms on the right springing point, then swings back 51.776 degrees and stays: it becomes the radius
     (line 3.2 -> 72 from the centre, pen r 2.5: the approved .ar-rad and .ar-pen, which show without motion). */
  .drawing--arch .ar-arm-line { --at: 1.46s; --t: 0.3s; --e: var(--ease-out); }
  .drawing--arch .ar-arm-pen { --at: 1.64s; --t: 0.16s; }
  .drawing--arch .ar-arc { --at: 1.86s; --t: 1.3s; --e: cubic-bezier(0.5, 0, 0.3, 1); }
  html.js .drawing--arch.is-k[data-motion] .ar-arm {
    transform-box: view-box;
    transform-origin: 250px 126px;
  }
  html.js .drawing--arch.is-k[data-motion]:not(.is-play) .ar-arm {
    transform: rotate(-180deg);
  }
  html.js .drawing--arch.is-k[data-motion].is-play .ar-arm {
    transform: rotate(-51.776deg);
    animation: ar-compass 1.92s linear 1.86s backwards;
  }
  /* 4. Jambs drop to the floor, the circle completes in dashes below once the arm has risen clear, skirting
     returns */
  .drawing--arch .ar-jamb { --at: 3.24s; --t: 0.48s; --e: cubic-bezier(0.6, 0, 0.4, 1); }
  .drawing--arch .ar-rv--circ { --at: 3.4s; --t: 0.55s; }
  html.js .drawing--arch.is-k[data-motion]:not(.is-play) .ar-circ {
    opacity: 0;
  }
  html.js .drawing--arch.is-k[data-motion].is-play .ar-circ {
    animation: skar-fade 0.4s linear 3.4s backwards;
  }
  .drawing--arch .ar-skirt { --at: 3.52s; --t: 0.42s; }
  /* 5. Dimensions, then labels: RADIUS locks in as the arm lands, the rest in build order */
  .drawing--arch .ar-dim { --at: 3.62s; --t: 0.4s; }
  .drawing--arch .ar-tick { --at: 3.94s; }
  html.js .drawing--arch.is-k[data-motion].is-play path.ar-tick {
    animation:
      skar-draw 0.16s cubic-bezier(0.45, 0, 0.2, 1) var(--at) backwards,
      skar-fade 0.12s linear var(--at) backwards;
  }
  .drawing--arch .ar-labs > :nth-child(2) { --at: 3.8s; }  /* RADIUS */
  .drawing--arch .ar-labs > :nth-child(5) { --at: 3.86s; }  /* STUD */
  .drawing--arch .ar-labs > :nth-child(1) { --at: 3.92s; }  /* SPRINGING LINE */
  .drawing--arch .ar-labs > :nth-child(3) { --at: 3.98s; }  /* CENTRE */
  .drawing--arch .ar-labs > :nth-child(4) { --at: 4.04s; }  /* JAMB */
  .drawing--arch .ar-labs > :nth-child(6) { --at: 4.1s; }  /* SKIRTING */

  @keyframes ar-rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }
  @keyframes ar-slide {
    from {
      opacity: 0;
      transform: translateX(var(--x));
    }
  }
  @keyframes ar-pop {
    from {
      opacity: 0;
      transform: scale(0.2);
    }
  }
  /* sweep 1.30 s (= .ar-arc), hold 0.12 s, swing back to the radius 0.50 s (lands 3.78 s) */
  @keyframes ar-compass {
    0% {
      transform: rotate(-180deg);
      animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1);
    }
    67.7083% {
      transform: rotate(0deg);
    }
    73.9583% {
      transform: rotate(0deg);
      animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
    }
    100% {
      transform: rotate(-51.776deg);
    }
  }
}

/* ===== 20-draw-steps.css ===== */
/* Engel Build: motion for the process-stage drawings (src/partials/draw-step-1..4.html).
   Each drawing is a short vignette of the thing working (storyboard in the partials' comments):
   1 the phone buzzes and wakes, a message settles in, the reply follows · 2 a tape pays out, is tugged back
   onto the edge, locks · 3 a quote writes in and is signed · 4 a push broom sweeps twice and throws the dust
   onto the pile.
   Trigger: the stage step turning on (.ps.is-on, site.js), or .is-play on test-bench copies and copies
   outside the stage (engine). Play once: a step that turns off mid-play freezes where it is (paused) and
   fades out as it is; when it comes back on it carries on from there, and once finished it stays on the
   approved drawing. Steps 2-4 wait on their first frame (invisible) until first lit; step 1 is on from page
   load, so it waits until the first step lights. In place, every beat starts 0.2s later (--d0) so it falls
   after the stage's 0.4s cross-fade has mostly run.
   Only transform, opacity and stroke-dashoffset change. Each transform/opacity keyframe set carries a no-op
   `stroke-miterlimit: 4` (the default) so Chrome runs it on the main thread and draws the moving parts as
   crisply as the still ones: compositor-drawn SVG is soft on 1x screens and visibly sharpens when it stops.
   Draw-ons use the long-gap dash (var(--k) 100): no zero-length dash, so no square-cap dot at a hidden end.
   Nothing loops; every sequence ends by 2.4s on the approved drawing (fill-mode backwards: once a part has
   played it hands back to its static markup, which is the approved drawing). Reduced motion or no JS:
   nothing here applies. */
@media (prefers-reduced-motion: no-preference) {
  /* ----- Pivots ----- */
  html.js .drawing--step-1 .s1-phone { transform-box: view-box; transform-origin: 63px 59px; }
  html.js .drawing--step-1 .s1-b1 { transform-box: view-box; transform-origin: 50px 62px; }
  html.js .drawing--step-1 .s1-b2 { transform-box: view-box; transform-origin: 78px 72px; }
  html.js .drawing--step-2 .s2-case { transform-box: view-box; transform-origin: 78px 82px; }
  html.js .drawing--step-2 .s2-reel { transform-box: view-box; transform-origin: 50px 58px; }
  html.js .drawing--step-3 .s3-lift { transform-box: fill-box; transform-origin: 50% 50%; }
  /* the head rocks on its front bristle tips (local coordinates: the point travels with the push) */
  html.js .drawing--step-4 .s4-tilt { transform-box: view-box; transform-origin: 109.5px 100px; }
  html.js .drawing--step-4 .s4-bristles { transform-box: fill-box; transform-origin: 50% 0; }
  html.js .drawing--step-4 .s4-pile { transform-box: fill-box; transform-origin: 50% 100%; }

  /* In place: start after the stage cross-fade. The bench and other pages keep 0. */
  html.js .ps > .drawing[class*="drawing--step-"] { --d0: 0.2s; }

  /* ----- 1 · Get in touch: phone. Buzz, wake, message, reply, dimension (ends 2.14s) ----- */
  html.js .drawing--step-1.is-k :is(.s1-t, .s1-t4, .s1-ext, .s1-ext2, .s1-dim, .s1-tick) { stroke-dasharray: var(--k) 100; }
  html.js :is(.is-dark, .sec--ink) .drawing--step-1 .s1-glass { --g0: 0.35; }
  html.js .drawing--step-1.is-k .s1-phone { animation: s1-buzz 0.42s linear calc(var(--d0, 0s) + 0.1s) backwards; }
  html.js .drawing--step-1.is-k .s1-glass { animation: s1-wake 0.4s var(--ease-out) calc(var(--d0, 0s) + 0.16s) backwards; }
  html.js .drawing--step-1.is-k .s1-b1 { animation: s1-pop 0.34s linear calc(var(--d0, 0s) + 0.5s) backwards; }
  html.js .drawing--step-1.is-k .s1-t { animation: steps-draw 0.3s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 0.64s + var(--i, 0) * 50ms) backwards; }
  html.js .drawing--step-1.is-k .s1-b2 { animation: s1-pop 0.34s linear calc(var(--d0, 0s) + 1.05s) backwards; }
  html.js .drawing--step-1.is-k .s1-t4 { animation: steps-draw 0.3s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.25s) backwards; }
  html.js .drawing--step-1.is-k .s1-ext2 { animation: steps-draw 0.2s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.45s) backwards; }
  html.js .drawing--step-1.is-k .s1-dim { animation: steps-draw 0.5s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.57s) backwards; }
  html.js .drawing--step-1.is-k .s1-ext { animation: steps-draw 0.4s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.65s) backwards; }
  html.js .drawing--step-1.is-k .s1-tick { animation: steps-draw 0.16s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.98s) backwards; }

  /* ----- 2 · Measure up: tape measure. Pay out, tug back onto the edge, lock, dimension (ends 2.0s) ----- */
  html.js .drawing--step-2.is-k :is(.s2-ext, .s2-dim, .s2-tick) { stroke-dasharray: var(--k) 100; }
  html.js .drawing--step-2.is-k .s2-blade { animation: s2-pay 0.95s linear calc(var(--d0, 0s) + 0.12s) backwards; }
  html.js .drawing--step-2.is-k .s2-reel { animation: s2-reel 0.95s linear calc(var(--d0, 0s) + 0.12s) backwards; }
  html.js .drawing--step-2.is-k .s2-min { animation: s2-blur 0.36s linear calc(var(--d0, 0s) + 0.26s) backwards; }
  html.js .drawing--step-2.is-k .s2-case { animation: s2-recoil 0.45s linear calc(var(--d0, 0s) + 0.9s) backwards; }
  html.js .drawing--step-2.is-k .s2-lock { animation: s2-lock 0.14s cubic-bezier(0.3, 0, 0.2, 1) calc(var(--d0, 0s) + 1.05s) backwards; }
  html.js .drawing--step-2.is-k .s2-ext { animation: steps-draw 0.2s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.3s) backwards; }
  html.js .drawing--step-2.is-k .s2-dim { animation: steps-draw 0.5s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.42s) backwards; }
  html.js .drawing--step-2.is-k .s2-tick { animation: steps-draw 0.16s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 1.84s) backwards; }

  /* ----- 3 · Quote: sheet and pencil. Write in at one pen speed, sign, set down (ends 2.2s) ----- */
  html.js .drawing--step-3.is-k :is(.s3-w, .s3-col, .s3-sig) { stroke-dasharray: var(--k) 100; }
  html.js .drawing--step-3.is-k .s3-w {
    animation: steps-draw calc(0.12s + var(--len, 30) * 4ms) cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 0.08s + var(--i, 0) * 50ms + var(--o, 0s)) backwards;
  }
  html.js .drawing--step-3.is-k .s3-col { animation: steps-draw 0.67s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--d0, 0s) + 0.18s) backwards; }
  html.js .drawing--step-3.is-k .s3-sig { animation: steps-draw 0.6s cubic-bezier(0.4, 0, 0.6, 1) calc(var(--d0, 0s) + 1.22s) backwards; }
  html.js .drawing--step-3.is-k .s3-pencil { animation: s3-pencil 1.25s linear calc(var(--d0, 0s) + 0.95s) backwards; }
  html.js .drawing--step-3.is-k .s3-lift { animation: s3-lift 1.25s linear calc(var(--d0, 0s) + 0.95s) backwards; }

  /* ----- 4 · Build and tidy up: push broom. Two strokes, the dust onto the pile (ends 1.85s) ----- */
  html.js .drawing--step-4.is-k .s4-push { animation: s4-push 1.75s linear calc(var(--d0, 0s) + 0.1s) backwards; }
  html.js .drawing--step-4.is-k .s4-tilt { animation: s4-tilt 1.75s linear calc(var(--d0, 0s) + 0.1s) backwards; }
  html.js .drawing--step-4.is-k .s4-bristles { animation: s4-drag 1.75s linear calc(var(--d0, 0s) + 0.1s) backwards; }
  html.js .drawing--step-4.is-k .s4-pile { animation: s4-pile 1.75s linear calc(var(--d0, 0s) + 0.1s) backwards; }
  html.js .drawing--step-4.is-k .s4-a {
    animation: s4-fly-x var(--xd) cubic-bezier(0.3, 0.3, 0.5, 1) calc(var(--d0, 0s) + var(--tc)) backwards,
      s4-fly-y var(--yd) linear calc(var(--d0, 0s) + var(--tf)) backwards;
  }
  html.js .drawing--step-4.is-k .s4-c {
    animation: s4-fly-x var(--xd) cubic-bezier(0.3, 0.3, 0.5, 1) calc(var(--d0, 0s) + var(--tc)) backwards,
      s4-fly-y var(--yd) linear calc(var(--d0, 0s) + var(--tf)) backwards, s4-carry var(--xd) linear calc(var(--d0, 0s) + var(--tc)) backwards;
  }

  /* ----- When it runs ----- */
  /* A bench copy before Replay: no animation (the final drawing). */
  html.js .drawing[data-motion][data-manual][class*="drawing--step-"]:not(.is-play) * {
    animation: none;
  }
  /* Paused where it is: a stage step that is off (play once, see the top), and copies outside the stage
     until .is-play. */
  html.js .ps:not(.is-on) > .drawing[data-motion][class*="drawing--step-"] *,
  html.js :not(.ps) > .drawing[data-motion][class*="drawing--step-"]:not([data-manual]):not(.is-play) * {
    animation-play-state: paused;
  }
  /* Step 1 is on from page load: hold it until the first step lights (its own rule: a browser without
     :has() drops it alone and simply plays step 1 at load). */
  html.js .proc3:not(:has(.pstep.is-on)) .ps > .drawing--step-1[data-motion] * {
    animation-play-state: paused;
  }
}

@keyframes steps-draw {
  from { stroke-dashoffset: var(--k); }
  to { stroke-dashoffset: 0; }
}

/* 1 */
/* asleep, the screen is darker than the page (black tint: .12 on paper, .35 on ink) */
@keyframes s1-wake {
  from { stroke-miterlimit: 4; opacity: var(--g0, 0.12); }
  to { opacity: 0; }
}
/* a bubble settles in from its tail tip (or corner): no overshoot */
@keyframes s1-pop {
  0% { stroke-miterlimit: 4; transform: scale(0.6); opacity: 0; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  40% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
/* two 150ms bursts, 120ms apart */
@keyframes s1-buzz {
  0%, 36%, 64%, 100% { stroke-miterlimit: 4; transform: none; }
  6%, 18%, 70%, 82% { transform: translateX(0.8px) rotate(0.3deg); }
  12%, 24%, 76%, 88% { transform: translateX(-0.8px) rotate(-0.3deg); }
  30%, 94% { transform: translateX(0.4px) rotate(0.15deg); }
}

/* 2: the blade runs 2.2 u past the edge and is tugged back onto it (the one overshoot); the reel turns
   with it (62 u of tape ~ 270deg, 2.2 u ~ 9.5deg) */
@keyframes s2-pay {
  0% { stroke-miterlimit: 4; transform: translateX(-62px); animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  80% { transform: translateX(2.2px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { transform: none; }
}
@keyframes s2-reel {
  0% { stroke-miterlimit: 4; transform: rotate(270deg); animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1); }
  80% { transform: rotate(-9.5deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { transform: none; }
}
/* above 2 u per 60Hz frame (0.33-0.55s) the 4 u minor graduations alias (stand still or creep back):
   dim them while the blade runs that fast, a stand-in for motion blur */
@keyframes s2-blur {
  0% { stroke-miterlimit: 4; opacity: 1; }
  19%, 75% { opacity: 0.25; }
  100% { opacity: 1; }
}
/* the case gives with the tug, about its mouth, and comes back without reversing */
@keyframes s2-recoil {
  0% { stroke-miterlimit: 4; transform: none; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  25% { transform: rotate(-0.8deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { transform: none; }
}
@keyframes s2-lock {
  from { stroke-miterlimit: 4; transform: translateY(-1.8px); }
  to { transform: none; }
}

/* 3: the pencil moves from rest to the start of the signature, follows it (keyframe i at arc fraction i/40,
   at the time the signature's cubic-bezier(.4,0,.6,1) draw-on reaches it, so the tip stays on the leading
   end), then lands back at rest. Generated from the signature path. */
@keyframes s3-pencil {
  0% { stroke-miterlimit: 4; transform: none; animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1); }
  21.6% { transform: translate(4px, 10.5px); animation-timing-function: linear; }
  26.79% { transform: translate(4.53px, 9.76px); animation-timing-function: linear; }
  28.92% { transform: translate(5.03px, 9.01px); animation-timing-function: linear; }
  30.54% { transform: translate(5.51px, 8.25px); animation-timing-function: linear; }
  31.92% { transform: translate(5.99px, 7.47px); animation-timing-function: linear; }
  33.13% { transform: translate(6.46px, 6.7px); animation-timing-function: linear; }
  34.24% { transform: translate(6.94px, 5.94px); animation-timing-function: linear; }
  35.26% { transform: translate(7.45px, 5.18px); animation-timing-function: linear; }
  36.22% { transform: translate(8.01px, 4.47px); animation-timing-function: linear; }
  37.13% { transform: translate(8.67px, 3.85px); animation-timing-function: linear; }
  38% { transform: translate(9.51px, 3.61px); animation-timing-function: linear; }
  38.83% { transform: translate(10.25px, 4.11px); animation-timing-function: linear; }
  39.64% { transform: translate(10.73px, 4.88px); animation-timing-function: linear; }
  40.43% { transform: translate(11.09px, 5.71px); animation-timing-function: linear; }
  41.2% { transform: translate(11.45px, 6.54px); animation-timing-function: linear; }
  41.95% { transform: translate(11.87px, 7.34px); animation-timing-function: linear; }
  42.7% { transform: translate(12.38px, 8.09px); animation-timing-function: linear; }
  43.43% { transform: translate(13.05px, 8.69px); animation-timing-function: linear; }
  44.16% { transform: translate(13.92px, 8.82px); animation-timing-function: linear; }
  44.88% { transform: translate(14.69px, 8.36px); animation-timing-function: linear; }
  45.6% { transform: translate(15.28px, 7.67px); animation-timing-function: linear; }
  46.32% { transform: translate(15.76px, 6.91px); animation-timing-function: linear; }
  47.04% { transform: translate(16.19px, 6.11px); animation-timing-function: linear; }
  47.77% { transform: translate(16.57px, 5.29px); animation-timing-function: linear; }
  48.5% { transform: translate(16.92px, 4.45px); animation-timing-function: linear; }
  49.25% { transform: translate(17.25px, 3.61px); animation-timing-function: linear; }
  50% { transform: translate(17.56px, 2.76px); animation-timing-function: linear; }
  50.77% { transform: translate(17.86px, 1.91px); animation-timing-function: linear; }
  51.56% { transform: translate(18.16px, 1.05px); animation-timing-function: linear; }
  52.37% { transform: translate(18.55px, 0.23px); animation-timing-function: linear; }
  53.2% { transform: translate(19.19px, -0.37px); animation-timing-function: linear; }
  54.07% { transform: translate(19.98px, -0.03px); animation-timing-function: linear; }
  54.98% { transform: translate(20.49px, 0.71px); animation-timing-function: linear; }
  55.94% { transform: translate(20.89px, 1.53px); animation-timing-function: linear; }
  56.96% { transform: translate(21.23px, 2.37px); animation-timing-function: linear; }
  58.07% { transform: translate(21.53px, 3.22px); animation-timing-function: linear; }
  59.28% { transform: translate(21.82px, 4.08px); animation-timing-function: linear; }
  60.66% { transform: translate(22.1px, 4.94px); animation-timing-function: linear; }
  62.28% { transform: translate(22.37px, 5.8px); animation-timing-function: linear; }
  64.41% { transform: translate(22.66px, 6.66px); animation-timing-function: linear; }
  69.6% { transform: translate(23px, 7.5px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  100% { transform: none; }
}

/* in the air the pencil comes a touch closer (top view); on the paper it is at 1 */
@keyframes s3-lift {
  0% { stroke-miterlimit: 4; transform: none; animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  10.8% { transform: scale(1.03); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  21.6%, 69.6% { transform: none; animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
  84% { transform: scale(1.035); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  100% { transform: none; }
}

/* 4: fractions of 1.75s from 0.1s. Stroke 1 (6 u) 0-0.42s, pull back 0.51-0.88s, stroke 2 (3.5 u)
   0.92-1.26s, back to rest 1.34-1.75s, no overshoot. */
@keyframes s4-push {
  0% { stroke-miterlimit: 4; transform: none; animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1); }
  24%, 29.14% { transform: translateX(6px); animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1); }
  50.29%, 52.57% { transform: none; animation-timing-function: cubic-bezier(0.45, 0, 0.3, 1); }
  72%, 76.57% { transform: translateX(3.5px); animation-timing-function: cubic-bezier(0.35, 0, 0.2, 1); }
  100% { transform: none; }
}
/* as a stroke stops, the head rocks forward on its front bristle tips (the heel lifts at most 0.7 u) */
@keyframes s4-tilt {
  0%, 18.29% { stroke-miterlimit: 4; transform: none; animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
  26.29% { transform: rotate(0.8deg); animation-timing-function: cubic-bezier(0.5, 0, 0.4, 1); }
  37.71%, 67.43% { transform: none; animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
  74.29% { transform: rotate(0.5deg); animation-timing-function: cubic-bezier(0.5, 0, 0.4, 1); }
  84.57%, 100% { transform: none; }
}
/* the bristles trail the stroke, and spring forward as it stops (that throws the dust) */
@keyframes s4-drag {
  0% { stroke-miterlimit: 4; transform: none; }
  9.14% { transform: skewX(-7deg); }
  19.43% { transform: skewX(-5deg); }
  25.14% { transform: skewX(4deg); }
  30.09%, 37.71% { transform: none; }
  42.29% { transform: skewX(5deg); }
  49.14% { transform: skewX(3deg); }
  53.71% { transform: none; }
  59.43% { transform: skewX(-5deg); }
  67.43% { transform: skewX(-4deg); }
  72.97% { transform: skewX(3deg); }
  77.71% { transform: skewX(1.5deg); }
  85.71% { transform: skewX(4deg); }
  92.57% { transform: skewX(2deg); }
  100% { transform: none; }
}
/* the pile grows as each stroke's dust lands on it (0.6-0.8s, 1.56-1.78s); after stroke 1 its crest holds
   up the highest speck (129, 93.5) */
@keyframes s4-pile {
  0%, 28.57% { stroke-miterlimit: 4; transform: scale(0.6, 0.45); animation-timing-function: cubic-bezier(0.3, 0.5, 0.4, 1); }
  40%, 83.43% { transform: scale(0.9, 0.9); animation-timing-function: cubic-bezier(0.3, 0.5, 0.4, 1); }
  96%, 100% { transform: none; }
}
/* a speck: --x/--y where it starts (relative), --h the height of its arc. It moves along the floor from
   --tc (x) and leaves the floor at --tf (y); both end together, when it lands. */
@keyframes s4-fly-x {
  from { stroke-miterlimit: 4; translate: calc(var(--x) * 1px) 0; }
  to { translate: 0 0; }
}
@keyframes s4-fly-y {
  0% { stroke-miterlimit: 4; transform: translateY(calc(var(--y) * 1px)); animation-timing-function: cubic-bezier(0.3, 0.6, 0.6, 1); }
  45% { transform: translateY(calc(var(--y) * 0.55px - var(--h) * 1px)); animation-timing-function: cubic-bezier(0.4, 0, 0.7, 0.4); }
  100% { transform: none; }
}
/* second-stroke specks: out of the bristles, then into the pile */
@keyframes s4-carry {
  0% { stroke-miterlimit: 4; opacity: 0; }
  8%, 72% { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== 20-motion.css ===== */
/* Engel Build motion layer: src/css/20-motion.css (loads after 10-v3.css).
   Principles: things are set out, then built. Lines draw, sheets lift, words rise out of
   a baseline. Nothing bounces, nothing loops, nothing follows the cursor.
   Only transform, opacity, clip-path and stroke-dashoffset animate. Entrances are
   slower than exits. Reduced motion: everything rests in its final state. */

/* ---------- Tokens (v3 already defines --ease-out and --ease-io) ---------- */
:root {
  --t-press: 90ms; /* :active */
  --t-out: 200ms; /* anything leaving */
  --t-hover: 280ms; /* hover in */
  --t-ui: 440ms; /* menus, dialogs, form steps arriving */
  --t-text: 760ms; /* fade-ups */
  --t-rise: 1050ms; /* words rising out of their mask */
  --t-rule: 1000ms; /* hairlines and dimension lines */
  --t-photo: 1150ms; /* a sheet lifting off a photo */
  --t-draw: 900ms; /* one drawing layer */
  --stagger: 80ms; /* between siblings, capped at 5 steps */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* settle: every entrance (v3) */
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1); /* a mask crossing a whole frame (v3) */
  --ease-draw: cubic-bezier(0.45, 0, 0.2, 1); /* a pen: steady start, soft stop */
  --ease-hover: cubic-bezier(0.215, 0.61, 0.355, 1); /* small moves */
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0); /* exits */
}

/* ---------- Header: returns faster than it leaves ---------- */
.site-header {
  transition: transform 450ms var(--ease-out);
}
.site-header.is-hidden {
  transition: transform 280ms var(--ease-in);
}
/* No blinking: a looping animation is the opposite of calm (and WCAG 2.2.2) */
.hdr-time .sq {
  animation: none;
}
/* Home work run (wide screens, motion on): while the header shows (site.js sets html.hdr-on) the pinned
   heading steps down out from under it, in step with the header. The pin's top padding is
   clamp(40px, 6vh, 72px) (10-v3.css), so this leaves the heading 8px clear of the header. */
.hdr-on .work.is-h .work-head {
  transform: translateY(calc(var(--hdr) - clamp(40px, 6vh, 72px) + 8px));
}
@media (prefers-reduced-motion: no-preference) {
  .work.is-h .work-head {
    transition: transform 280ms var(--ease-in);
  }
  .hdr-on .work.is-h .work-head {
    transition: transform 450ms var(--ease-out);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* ---------- Section headings: line by line (site.js sets --l per word) ---------- */
  html.js [data-split]:not(.hero3-line) .w > span {
    transition-delay: calc(var(--d, 0ms) + var(--l, 0) * 90ms);
  }

  /* ---------- Photos: a sheet in the section colour lifts off, its ruled edge sweeping up.
     Transform only (the v3 clip-path wipe repaints on the main thread every frame). ---------- */
  .work,
  .owner3,
  .faq3 {
    --plate: var(--paper);
  }
  .sec--stone {
    --plate: var(--stone);
  }
  .sec--ink {
    --plate: var(--ink);
  }
  html.js [data-reveal="photo"] .frame,
  html.js .frame[data-reveal="photo"] {
    clip-path: none !important;
  }
  html.js [data-reveal="photo"] .frame::after,
  html.js .frame[data-reveal="photo"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    background: var(--plate, var(--paper));
    border-bottom: 1px solid var(--rule-strong);
    transition: transform var(--t-photo) var(--ease-io) var(--d, 0ms);
    pointer-events: none;
  }
  html.js [data-reveal="photo"] .tk-frame--2::after {
    transition-delay: calc(var(--d, 0ms) + 80ms);
  }
  /* The plate shrinks up into the top edge (it never leaves the frame, so a frame that
     doesn't clip, like the owner photo, can't park it over the text above). */
  html.js [data-reveal="photo"] .frame::after,
  html.js .frame[data-reveal="photo"]::after {
    transform-origin: 50% 0;
  }
  html.js [data-reveal="photo"].is-in .frame::after,
  html.js .frame[data-reveal="photo"].is-in::after {
    transform: scaleY(0);
  }

  /* ---------- Hairlines that draw (add data-rule to any element with a top rule) ---------- */
  html.js [data-rule] {
    position: relative;
    border-top-color: transparent;
  }
  html.js [data-rule]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: var(--rule-strong);
    transform-origin: 0 50%;
    transition: transform var(--t-rule) var(--ease-draw) var(--d, 0ms);
  }
  html.js [data-rule]:not(.is-in)::before {
    transform: scaleX(0);
  }

  /* ---------- Menu: closes too (site.js adds .is-closing, then calls close()) ---------- */
  .menu[open]::backdrop {
    animation: fade 300ms var(--ease-out) both;
  }
  .menu.is-closing {
    animation: eb-out-up var(--t-out) var(--ease-in) both;
  }
  .menu.is-closing::backdrop {
    animation: eb-fade-out var(--t-out) var(--ease-in) both;
  }
  .menu-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--rule);
    transform-origin: 0 50%;
  }
  .menu-links a {
    position: relative;
    border-bottom-color: transparent;
  }
  .menu[open] .menu-links a::after {
    animation: eb-draw-x 800ms var(--ease-draw) both;
    animation-delay: calc(0.2s + var(--k, 0) * 50ms);
  }
  .menu-links li:nth-child(2) { --k: 1; }
  .menu-links li:nth-child(3) { --k: 2; }
  .menu-links li:nth-child(4) { --k: 3; }
  .menu-links li:nth-child(5) { --k: 4; }
  .menu-links li:nth-child(6) { --k: 5; }

  /* ---------- Lightbox: sheet rises, an ink plate lifts off the photo, text follows ---------- */
  .lightbox[open] {
    animation: eb-sheet-in var(--t-ui) var(--ease-out) both;
  }
  .lightbox[open]::backdrop {
    animation: fade 320ms var(--ease-out) both;
  }
  .lb-media {
    overflow: hidden;
  }
  .lightbox[open] .lb-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--sheet, #101b29);
    border-bottom: 1px solid var(--brass);
    animation: eb-lift 800ms var(--ease-io) 120ms both;
    pointer-events: none;
  }
  .lightbox[open] [data-lb-media] > picture:not([class]) img {
    animation: eb-settle 1200ms var(--ease-out) 120ms both;
  }
  .lightbox[open] .lb-body > * {
    animation: fade-up 600ms var(--ease-out) both;
  }
  .lightbox[open] .lb-body > :nth-child(1) { animation-delay: 200ms; }
  .lightbox[open] .lb-body > :nth-child(2) { animation-delay: 260ms; }
  .lightbox[open] .lb-body > :nth-child(3) { animation-delay: 320ms; }
  .lightbox[open] .lb-body > :nth-child(4) { animation-delay: 380ms; }
  .lightbox[open] .lb-body > :nth-child(5) { animation-delay: 440ms; }
  /* Next/previous photo: the new one slides 3% in from the side of travel over the old */
  [data-lb-media] {
    position: relative;
  }
  [data-lb-media] > picture {
    display: block;
  }
  [data-lb-media] > picture.is-entering {
    position: relative;
    z-index: 1;
    animation: eb-photo-in 460ms var(--ease-out) both;
  }
  [data-lb-media] > picture.is-leaving {
    position: absolute;
    inset: 0;
    animation: eb-photo-out 240ms var(--ease-in) both;
  }
  .lightbox.is-closing {
    animation: eb-sheet-out var(--t-out) var(--ease-in) both;
  }
  .lightbox.is-closing::backdrop {
    animation: eb-fade-out var(--t-out) var(--ease-in) both;
  }

  /* ---------- Quote form ---------- */
  .field-error,
  .form-alert {
    transition:
      clip-path 320ms var(--ease-out),
      opacity 320ms var(--ease-out);
  }
  @starting-style {
    .field-error,
    .form-alert {
      clip-path: inset(0 0 100% 0);
      opacity: 0;
    }
  }
  /* The bubble finds level once, with one small overshoot (no wobble) */
  .form-done:not([hidden]) .lv-bubble {
    animation: eb-level 1100ms var(--ease-out) 200ms both;
  }

  /* ---------- Phone call bar: rises in, buttons follow; drops away quickly ---------- */
  .action-bar .btn {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 120ms linear,
      transform 0s linear 120ms;
  }
  .action-bar.is-visible .btn {
    opacity: 1;
    transform: none;
    transition:
      opacity 420ms var(--ease-out),
      transform 520ms var(--ease-out);
  }
  .action-bar.is-visible .btn:nth-child(1) { transition-delay: 140ms; }
  .action-bar.is-visible .btn:nth-child(2) { transition-delay: 190ms; }
  .action-bar.is-visible .btn:nth-child(3) { transition-delay: 240ms; }

  /* ---------- FAQ answer ---------- */
  .qa[open] .qa-a {
    animation: fade-up 420ms var(--ease-out) both;
  }
}

.action-bar {
  transition: transform 240ms var(--ease-in);
}
.action-bar.is-visible {
  transition: transform 520ms var(--ease-out);
}

/* ---------- Hover (fine pointers only) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* The arrow leaves through the cell's right edge and comes back from the left.
     v3's arrow-swap moves the <svg>; moving the <use> inside it means the <svg> clips it,
     so the same rule also works for arrows that have no clipping cell (tlink, captions). */
  .btn:hover .btn-cell .i,
  .tlink:hover .i,
  .cap a:hover .i,
  .ledger a:hover .i {
    animation: none;
    transform: none;
  }
  .btn:hover .btn-cell .i use,
  .btn:focus-visible .btn-cell .i use,
  .tlink:hover .i use {
    animation: eb-conveyor 520ms both;
  }
  .cap a:hover .i use,
  .ledger a:hover .i use {
    animation: eb-conveyor-ne 520ms both;
  }
  /* Job cards: the photo leans in slowly */
  .tk-frame img {
    transition: transform 1100ms var(--ease-out);
  }
  .tk-link:hover .tk-frame img {
    transform: scale(1.035);
  }
  /* Services rows: a brass rule draws along the row, leaves to the right */
  .svc3-row {
    position: relative;
  }
  .svc3-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform var(--t-out) var(--ease-in);
    pointer-events: none;
  }
  .svc3-row:hover::after,
  .svc3-row:focus-visible::after {
    transform: none;
    transform-origin: 0 50%;
    transition: transform 700ms var(--ease-out);
  }
  /* Contact rows and ledger rows: a quiet fill sweeps in behind the row */
  .rows3 a,
  .ledger a {
    position: relative;
    isolation: isolate;
  }
  .rows3 a::before,
  .ledger a::before {
    content: "";
    position: absolute;
    inset: 0 -10px;
    z-index: -1;
    background: var(--stone);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform var(--t-out) var(--ease-in);
  }
  .rows3 a::before {
    background: rgba(243, 241, 236, 0.05);
  }
  .rows3 a:hover::before,
  .ledger a:hover::before {
    transform: none;
    transform-origin: 0 50%;
    transition: transform 520ms var(--ease-out);
  }
}

/* ---------- Keyframes ---------- */
@keyframes eb-draw-x {
  from { transform: scaleX(0); }
}
@keyframes eb-lift {
  to { transform: translateY(calc(-100% - 2px)); }
}
@keyframes eb-settle {
  from { transform: scale(1.08); }
}
@keyframes eb-fade-out {
  to { opacity: 0; }
}
@keyframes eb-out-up {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes eb-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
}
@keyframes eb-sheet-out {
  to { opacity: 0; transform: translateY(12px); }
}
@keyframes eb-photo-in {
  from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 3%)); }
}
@keyframes eb-photo-out {
  to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -1.5%)); }
}
@keyframes eb-level {
  0% { transform: translateX(-26px); }
  70% { transform: translateX(1.5px); }
  100% { transform: none; }
}
@keyframes eb-conveyor {
  0% { transform: none; animation-timing-function: var(--ease-in); }
  42% { transform: translateX(100%); animation-timing-function: steps(1, end); }
  43% { transform: translateX(-100%); animation-timing-function: var(--ease-out); }
  100% { transform: none; }
}
@keyframes eb-conveyor-ne {
  0% { transform: none; animation-timing-function: var(--ease-in); }
  42% { transform: translate(100%, -100%); animation-timing-function: steps(1, end); }
  43% { transform: translate(-100%, 100%); animation-timing-function: var(--ease-out); }
  100% { transform: none; }
}

/* ---------- Reduced motion: also zero the delays, so nothing waits hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    transition-delay: 0s !important;
  }
}

/* ===== 50-built-ins.css ===== */
/* Built-ins page (v3): the entry bench taken apart beside its drawing, the batten wall
   photo beside its elevation, and the measuring sketch. The hero, statement, FAQ and
   quote section are shared components from 10-v3.css. */

/* ---------- Hero photo below 1000px: favour the seat and the cubbies ----------
   The photo is mostly white wall up top. Shift the crop down, and move the inline
   drawing by the same amount so it stays on the photo (its SVG uses "slice"). */
@media (max-width: 999px) {
  .page-built-ins .hero3-media > picture img {
    object-position: 50% 68%;
  }
  .page-built-ins .hero3-media .trace--inline {
    position: absolute;
    left: 0;
    top: 68%;
    height: auto;
    aspect-ratio: 1438 / 1917;
    transform: translateY(-68%);
  }
}

/* ---------- The entry bench: statement, parts, drawing ---------- */
.bi-bench {
  padding: clamp(96px, 10vw, 168px) 0 clamp(88px, 9vw, 150px);
  background: var(--paper);
}
.bi-bench-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(56px, 6vw, 104px);
}
.bi-bench .statement {
  grid-column: 1 / 11;
}
.bi-parts {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: center;
}
.bi-parts-h {
  max-width: 14ch;
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.bi-dl {
  margin: clamp(24px, 2.6vw, 36px) 0 0;
  border-top: 1px solid var(--rule-strong);
}
.bi-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  column-gap: var(--gap);
  padding: 15px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.bi-dl dt {
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.bi-dl dd {
  margin: 0;
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.45;
}
.bi-also {
  max-width: 30em;
  margin-top: 24px;
  color: var(--fg-2);
  font-size: 1.0625rem;
}
.bi-parts .cta-row {
  margin-top: 32px;
  gap: 16px 28px;
}
/* A drafting sheet: paper, a faint navy grid, the drawing in the middle */
.bi-sheet {
  grid-column: 7 / -1;
  grid-row: 2;
  margin: 0;
}
.bi-sheet-draw {
  display: grid;
  place-items: center;
  padding: clamp(32px, 4vw, 64px) clamp(24px, 3.4vw, 56px);
  border: 1px solid rgba(12, 21, 33, 0.16);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(20, 73, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 73, 143, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--ink);
}
.bi-sheet .drawing {
  max-width: 500px;
}
.bi-sheet .d-txt {
  font-size: 10.5px;
}
/* 1000–1180px: the sheet narrows with its column, so the labels grow to hold about 9px on screen */
@media (min-width: 1000px) {
  .bi-sheet .d-txt {
    font-size: clamp(10.5px, 24.27px - 1.167vw, 12.6px);
  }
}
.bi-sheet figcaption,
.bi-walls-draw figcaption {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* Below 1000px: heading, then the drawing, then the parts it names */
@media (max-width: 999px) {
  .bi-bench-grid {
    display: flex;
    flex-direction: column;
    row-gap: 0;
  }
  .bi-parts {
    display: contents;
  }
  .bi-parts-h {
    order: 1;
    margin-top: 72px;
  }
  .bi-sheet {
    order: 2;
    margin-top: 28px;
  }
  .bi-dl {
    order: 3;
    margin-top: 36px;
  }
  .bi-also {
    order: 4;
  }
  .bi-parts .cta-row {
    order: 5;
  }
}
@media (min-width: 1000px) and (max-width: 1199px), (max-width: 560px) {
  .bi-dl > div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }
}
@media (max-width: 599px) {
  /* About 9px on screen at 390 (font units are the 460-wide viewBox) */
  .bi-walls-draw .d-txt {
    font-size: 12px;
  }
}
@media (max-width: 560px) {
  .bi-sheet-draw {
    padding: 28px 12px 20px;
  }
  .bi-sheet .d-txt {
    font-size: 15px;
  }
}

/* ---------- Feature walls (ink): heading, photo and elevation, trims ---------- */
.bi-walls {
  padding: clamp(96px, 10vw, 168px) 0 clamp(88px, 9vw, 144px);
  background: var(--ink);
}
.bi-walls-h {
  max-width: 15ch;
}
.bi-walls-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  margin-top: clamp(48px, 6vw, 96px);
}
.bi-walls-photo {
  grid-column: 1 / 6;
  aspect-ratio: 3 / 4;
  margin: 0;
}
.bi-walls-copy {
  grid-column: 7 / -1;
  align-self: end;
}
.bi-walls-lead {
  max-width: 30em;
  color: var(--fg-2);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
}
.bi-walls-draw {
  max-width: 560px;
  margin: clamp(40px, 5vw, 72px) 0 0;
}
.bi-walls-draw figcaption {
  max-width: 34em;
  margin-top: 18px;
}
.bi-trims {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(72px, 8vw, 128px);
  border-top: 1px solid var(--rule-strong);
}
.bi-trims li {
  padding-top: clamp(24px, 2.6vw, 36px);
}
.bi-trims li:first-child {
  grid-column: 1 / 6;
}
.bi-trims li:last-child {
  grid-column: 7 / -1;
}
.bi-trims h3 {
  font-size: clamp(1.75rem, 1rem + 2.2vw, 3.25rem);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.bi-trims p {
  max-width: 32em;
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 1.0625rem;
}
.bi-trims a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.bi-walls-cta {
  margin-top: clamp(40px, 5vw, 64px);
  gap: 16px 28px;
}
@media (max-width: 999px) {
  .bi-walls-photo,
  .bi-walls-copy {
    grid-column: 1 / -1;
  }
  .bi-walls-photo {
    width: min(100%, 560px);
  }
  .bi-trims li:first-child,
  .bi-trims li:last-child {
    grid-column: 1 / -1;
  }
  .bi-trims li + li {
    margin-top: 28px;
    border-top: 1px solid var(--rule);
  }
}

/* ---------- Planning (stone): sticky heading, questions, the measuring sheet ---------- */
.bi-plan {
  padding: clamp(96px, 10vw, 160px) 0;
}
.bi-plan-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
}
.bi-plan-side {
  grid-column: 1 / 5;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 40px);
}
.bi-plan-side .h2 {
  max-width: 9ch;
  font-stretch: 76%;
}
.bi-plan-lead {
  max-width: 22em;
  margin-top: 22px;
  color: var(--fg-2);
  font-size: 1.125rem;
}
.bi-plan-main {
  grid-column: 6 / -1;
}
.bi-qs {
  border-top: 1px solid var(--rule-strong);
}
.bi-qs li {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--rule);
}
.bi-qs h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);
  font-weight: 780;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.025em;
}
.bi-qs p {
  max-width: 34em;
  margin-top: 12px;
  color: var(--fg-2);
}
.bi-measure {
  margin-top: clamp(64px, 7vw, 104px);
  border: 1px solid rgba(12, 21, 33, 0.16);
  background: var(--paper);
}
.bi-measure-h {
  padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.8vw, 40px) 0;
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);
  font-weight: 780;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.025em;
}
.bi-measure-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.8vw, 40px) clamp(28px, 3vw, 40px);
}
.bi-alcove {
  margin: 0;
  color: var(--ink);
}
.bi-alcove .drawing {
  max-width: 400px;
  margin-inline: auto;
}
.bi-alcove .d-txt {
  font-size: 12px;
}
.bi-alcove .bi-solid {
  stroke-dasharray: none;
}
.bi-hatch {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.3;
}
.bi-k {
  color: var(--navy);
}
.bi-k text {
  fill: #fff;
  stroke: none;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  text-anchor: middle;
}
.bi-check li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.bi-check li:first-child {
  border-top: 1px solid var(--rule-strong);
}
.bi-key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  background: var(--navy);
  color: #fff;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1;
}
.bi-check p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.bi-check strong {
  display: block;
  color: var(--fg);
  font-weight: 700;
  font-stretch: 92%;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.bi-photos {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 1rem;
}
.bi-measure-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 22px clamp(20px, 2.8vw, 40px);
  border-top: 1px solid rgba(12, 21, 33, 0.16);
  background: var(--white);
}
.bi-measure-cta {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  font-weight: 780;
  font-stretch: 82%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (max-width: 1199px) {
  .bi-measure-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .bi-alcove .drawing {
    max-width: 360px;
  }
}
@media (max-width: 999px) {
  .bi-plan-side,
  .bi-plan-main {
    grid-column: 1 / -1;
    position: static;
  }
  .bi-plan-side .h2 {
    max-width: none;
  }
}
@media (max-width: 560px) {
  .bi-measure {
    margin-inline: calc(-1 * var(--gutter) / 2);
  }
  .bi-alcove .d-txt {
    font-size: 14px;
  }
  .bi-k text {
    font-size: 15px;
  }
  .bi-measure-foot .cta-row {
    width: 100%;
  }
  .bi-measure-foot .btn {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .bi-measure-foot .btn--ink-line {
    justify-content: center;
  }
}

/* ===== 50-decks.css ===== */
/* Decks page (/decks), v3. Uses the shared hero, statement, FAQ and quote components;
   this file only lays out what is particular to the page: the jobs spread (EB-01, EB-03 and
   the round-deck framing plan), the deck-frame drawing under the statement, the price list
   with its sticky intro, and the timber/composite table. Everything is prefixed dk-. */

/* ---------- Jobs spread ---------- */
.dk-work {
  background: var(--paper);
  padding: clamp(88px, 9vw, 150px) 0 clamp(80px, 8vw, 128px);
}
.dk-work-h {
  max-width: 4.9em;
}
.dk-job {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.dk-job--01 {
  margin-top: clamp(48px, 6vw, 96px);
}
.dk-job--03 {
  margin-top: clamp(96px, 11vw, 176px);
}
.dk-f {
  margin: 0;
  cursor: pointer;
}
.dk-f--main {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  aspect-ratio: 1 / 1.08;
}
/* Favour the deck over the shade sails (the drawing layer moves with the photo) */
.dk-f--main > picture img,
.dk-f--main .trace-layer img {
  object-position: 50% 85%;
}
.dk-f--side {
  grid-column: 9 / -1;
  grid-row: 1;
  aspect-ratio: 3 / 4;
  margin-top: clamp(40px, 5vw, 80px);
}
.dk-job--01 .dk-cap {
  grid-column: 9 / -1;
  grid-row: 2;
  margin-top: 28px;
}
.dk-job--03 .dk-cap {
  grid-column: 1 / 6;
  grid-row: 1;
}
.dk-f--tree {
  grid-column: 8 / -1;
  grid-row: 1 / 3;
  aspect-ratio: 3 / 4;
}
.dk-plan {
  grid-column: 1 / 7;
  grid-row: 2;
  margin: clamp(40px, 4.4vw, 64px) 0 0;
}
html.js .dk-f--side[data-reveal="photo"] {
  transition-delay: 0.12s;
}

/* Captions: job number, title, one plain sentence, a link that opens the job */
.dk-no {
  color: var(--navy);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.dk-t {
  margin-top: 10px;
  font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.75rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.dk-d {
  max-width: 30em;
  margin-top: 14px;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.5;
}
.dk-cap .tlink {
  margin-top: 18px;
}

/* The round-deck framing plan, on a drafting-sheet grid */
.dk-plan-draw {
  padding: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  border: 1px solid rgba(12, 21, 33, 0.16);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(20, 73, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 73, 143, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--ink);
}
.dk-plan-draw .drawing {
  max-width: 540px;
  margin-inline: auto;
}
.dk-plan-cap {
  max-width: 34em;
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.dk-plan-k {
  color: var(--fg);
  font-weight: 650;
}
/* 1000–1320px: the plan and the frame drawing sit in narrow desktop columns. Font units are the
   viewBox, so the labels grow as the drawings narrow, holding about 9px on screen */
@media (min-width: 1000px) {
  .dk-plan-draw .d-txt {
    font-size: clamp(9px, 22.4px - 1.03vw, 12.2px);
  }
  .dk-frame-box .d-txt {
    font-size: clamp(11px, 24.1px - 1.111vw, 13px);
  }
}

.dk-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(80px, 9vw, 140px);
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}
.dk-end-t {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 780;
  font-stretch: 80%;
  letter-spacing: -0.025em;
  line-height: 1;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dk-f > picture img {
    transition: scale 1.5s var(--ease-out);
  }
  .dk-f.is-in:hover > picture img {
    scale: 1.03;
  }
}

@media (max-width: 999px) {
  .dk-job {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .dk-f--main {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 4 / 4.5;
  }
  .dk-f--side {
    grid-column: 3 / -1;
    grid-row: 2;
    margin-top: 12px;
  }
  .dk-job--01 .dk-cap {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .dk-job--03 .dk-cap {
    grid-column: 1 / -1;
  }
  .dk-f--tree {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 28px;
    aspect-ratio: 4 / 4.6;
  }
  .dk-plan {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
@media (max-width: 599px) {
  .dk-plan-draw .d-txt {
    font-size: 15.5px;
  }
  .dk-end .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Under the boards: statement and the deck-frame drawing (ink) ---------- */
.dk-frame {
  position: relative;
  padding: clamp(96px, 10vw, 168px) 0 clamp(72px, 8vw, 136px);
}
.dk-frame-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(40px, 5vw, 72px);
}
.dk-statement {
  grid-column: 1 / 11;
}
.dk-frame-draw {
  grid-column: 2 / -1;
  margin: 0;
}
.dk-frame-box {
  width: min(100%, 1120px);
  margin-left: auto;
}
/* Labels sit in a halo of the section colour, so JOIST reads over the boards, and BEARER sits just past
   the height dimension instead of across it */
.dk-frame-box .d-txt {
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 0.5em;
  stroke-linejoin: round;
}
.dk-frame-box .t-bearer {
  transform: translateX(18px);
}
/* The shared statement darkens words toward ink; on ink they brighten toward paper instead */
.dk-frame .sw {
  color: color-mix(in srgb, #f3f1ec calc(var(--o, 1) * 100%), #7f8186);
}
@media (max-width: 999px) {
  .dk-statement {
    grid-column: 1 / -1;
  }
  .dk-frame-draw {
    grid-column: 1 / -1;
  }
  /* Font units are the 1200-wide viewBox: grow as the drawing narrows, holding about 9px on screen */
  .dk-frame-box .d-txt {
    font-size: clamp(15px, 31.4px - 1.967vw, 20px);
  }
}
@media (max-width: 599px) {
  .dk-frame {
    padding-bottom: 48px;
  }
  .dk-frame-box .d-txt {
    font-size: clamp(20px, 55px - 5.9vw, 32px);
    letter-spacing: 0.04em;
  }
  /* STRINGER would run off the left edge at this size: it hangs under its leader instead */
  .dk-frame-box .t-stringer {
    text-anchor: middle;
    transform: translate(6px, 28px);
  }
}

/* ---------- Price: sticky intro beside the list (stone) ---------- */
.dk-price {
  padding: clamp(96px, 10vw, 160px) 0;
}
.dk-price-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
.dk-price-intro {
  grid-column: 1 / 5;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 40px);
}
.dk-price-h {
  max-width: 12ch;
  text-wrap: balance;
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.dk-price-lead {
  max-width: 19em;
  margin-top: 20px;
  color: var(--fg-2);
  font-size: 1.125rem;
}
.dk-price-intro .btn {
  margin-top: 32px;
}
.dk-factors {
  grid-column: 6 / -1;
  border-top: 1px solid var(--rule-strong);
}
.dk-factors li {
  padding: clamp(22px, 2.2vw, 32px) 0 clamp(22px, 2.2vw, 30px);
  border-bottom: 1px solid var(--rule);
}
.dk-f-t {
  font-size: clamp(1.625rem, 1.05rem + 1.6vw, 2.625rem);
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -0.028em;
  line-height: 0.98;
}
.dk-factors p {
  max-width: 36em;
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.dk-factors a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (max-width: 999px) {
  .dk-price-intro,
  .dk-factors {
    grid-column: 1 / -1;
    position: static;
  }
}

/* ---------- Timber or composite (paper) ---------- */
.dk-boards {
  padding: clamp(96px, 10vw, 160px) 0;
  background: var(--paper);
}
.dk-boards-head {
  max-width: 44rem;
}
.dk-boards-h {
  font-size: clamp(2.75rem, 1rem + 4.6vw, 5.75rem);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.9;
  letter-spacing: -0.036em;
}
.dk-boards-head .lead {
  max-width: 32em;
  margin-top: 24px;
}
.dk-compare {
  width: 100%;
  margin-top: clamp(40px, 5vw, 72px);
  border-collapse: collapse;
  text-align: left;
}
.dk-compare thead th {
  padding: 0 24px 16px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 780;
  font-stretch: 78%;
  letter-spacing: -0.022em;
  line-height: 1;
  vertical-align: bottom;
}
.dk-compare .dk-corner {
  width: 18%;
  border-bottom: 1px solid var(--rule-strong);
}
.dk-compare tbody th,
.dk-compare tbody td {
  padding: 20px 24px 22px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.dk-compare tbody th {
  font-weight: 650;
  font-size: 1.0625rem;
}
.dk-compare tbody td {
  color: var(--fg-2);
  line-height: 1.5;
}
.dk-k {
  display: none;
}
.dk-boards-note {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 38em;
  margin-top: 36px;
  color: var(--fg-2);
}
@media (max-width: 759px) {
  .dk-compare,
  .dk-compare tbody,
  .dk-compare tr,
  .dk-compare th,
  .dk-compare td {
    display: block;
  }
  .dk-compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .dk-compare tbody {
    border-top: 1px solid var(--rule-strong);
  }
  .dk-compare tbody tr {
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--rule);
  }
  .dk-compare tbody th,
  .dk-compare tbody td {
    padding: 0;
    border: 0;
  }
  .dk-compare tbody th {
    font-size: 1.25rem;
    font-weight: 780;
    font-stretch: 80%;
    letter-spacing: -0.015em;
  }
  .dk-compare tbody td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    margin-top: 10px;
    font-size: 0.9375rem;
  }
  .dk-k {
    display: block;
    color: var(--fg);
    font-weight: 650;
  }
}

/* ---------- FAQ: the council rules list ---------- */
.dk-rules {
  margin: 14px 0 16px;
}
.dk-rules li {
  color: var(--fg-2);
}

/* The deck frame stays pinned while you scroll past it, so the build has room to play out
   (site.js maps the track's scroll to --p). Without motion it is a normal figure. */
@media (prefers-reduced-motion: no-preference) {
  html.js .dk-frame-draw[data-scrub-track] {
    height: 200vh;
  }
  @media (max-width: 599px) {
    /* the phone drawing is short, so a shorter pin keeps the build from dragging */
    html.js .dk-frame-draw[data-scrub-track] {
      height: 130vh;
    }
  }
  html.js .dk-frame-draw[data-scrub-track] .dk-frame-box {
    position: sticky;
    top: max(16px, calc(50vh - 0.29 * min(100vw - 32px, 1120px)));
  }
}

/* ===== 50-doors.css ===== */
/* Doors and openings (/doors-and-openings), v3.
   Sections: doors (run-in statement, hinge photo, door drawing on a sheet, signs of a well-hung door) ·
   measuring guide (stone, sticky drawing) · skylight shafts (ink, a question as the heading) ·
   framing and arches (paper, big heading) · FAQ (stone) · quote (ink).
   Everything is prefixed dr- so nothing leaks onto other pages. */

/* ---------- Shared on this page ---------- */
.dr-h2 {
  font-size: clamp(2.125rem, 1.4rem + 2vw, 3.375rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.dr-h3 {
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  font-weight: 780;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
:where(.dr-doors, .dr-sky, .dr-arch, .dr-measure) figure {
  margin: 0;
}
/* Drawing captions: plain sans, quiet */
.dr-doors-draw figcaption,
.dr-sky-draw figcaption,
.dr-arch-draw figcaption {
  max-width: 36em;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* The construction drawings' part labels, a touch larger than the partials' default */
:is(.dr-doors-draw, .dr-sky-draw, .dr-arch-draw) .drawing .d-txt {
  font-size: 11px;
}

/* ---------- Doors ---------- */
.dr-doors {
  position: relative;
  padding: clamp(96px, 10vw, 168px) 0 clamp(88px, 9vw, 150px);
  background: var(--paper);
}
.dr-doors-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(56px, 7vw, 112px);
}
.dr-doors .statement {
  grid-column: 1 / 12;
  grid-row: 1;
}
.dr-doors-photo {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: start;
  aspect-ratio: 3 / 4;
}
.dr-doors-draw {
  grid-column: 6 / 10;
  grid-row: 2;
  align-self: start;
  margin-top: clamp(40px, 7vw, 120px);
}
.dr-signs {
  grid-column: 10 / -1;
  grid-row: 2;
  align-self: end;
}

/* A drafting sheet: fine grid, hairline border, title strip at the bottom */
.dr-sheet {
  padding: clamp(20px, 2vw, 32px) clamp(18px, 1.8vw, 28px) 0;
  border: 1px solid var(--rule);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(20, 73, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 73, 143, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--ink);
}
.dr-sheet .drawing {
  max-width: 360px;
  margin-inline: auto;
}
.dr-sheet figcaption {
  margin: clamp(16px, 2vw, 24px) calc(-1 * clamp(18px, 1.8vw, 28px)) 0;
  padding: 12px clamp(18px, 1.8vw, 28px) 14px;
  border-top: 1px solid var(--rule);
  background: var(--white);
  font-size: 0.875rem;
}

.dr-signs-list {
  margin-top: 24px;
  border-top: 1px solid var(--rule-strong);
}
.dr-signs-list li {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.5;
}
.dr-signs-list strong {
  color: var(--fg);
  font-weight: 700;
}
.dr-signs .cta-row {
  margin-top: 28px;
  column-gap: 24px;
}

@media (max-width: 1179px) {
  .dr-doors-photo {
    grid-column: 1 / 6;
  }
  .dr-doors-draw {
    grid-column: 6 / -1;
    margin-top: clamp(32px, 6vw, 72px);
  }
  .dr-signs {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .dr-signs .dr-h3 {
    max-width: 14em;
  }
  .dr-signs-list {
    columns: 2;
    column-gap: var(--gap);
  }
  .dr-signs-list li {
    break-inside: avoid;
  }
}
@media (max-width: 699px) {
  .dr-doors-photo {
    grid-column: 1 / 12;
  }
  /* The sheet runs edge to edge on phones, so the drawing keeps its labels */
  .dr-doors-draw {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0 calc(-1 * var(--gutter));
    padding-inline: 8px;
    border-inline: 0;
  }
  /* A wider right margin keeps the longest label (GLAZING BAR) off the screen edge */
  .dr-doors-draw {
    padding-right: 30px;
  }
  .dr-sheet figcaption {
    margin-inline: -8px;
    padding-inline: var(--gutter);
  }
  .dr-doors-draw figcaption {
    margin-right: -30px;
  }
  .dr-signs {
    grid-row: 4;
  }
  .dr-signs-list {
    columns: auto;
  }
}

/* Drawings on phones: the skylight and arch drawings bleed off the left edge, and the part
   labels grow so they stay legible (site.js hides them on any drawing under 300px wide) */
@media (max-width: 699px) {
  :is(.dr-sky-draw, .dr-arch-draw) .drawing {
    width: calc(100% + var(--gutter));
    max-width: none;
    margin-left: calc(-1 * var(--gutter));
  }
  :is(.dr-sky-draw, .dr-arch-draw) .drawing .d-txt {
    font-size: 12.5px;
  }
  .dr-sky-draw .drawing .d-txt {
    font-size: 15px;
  }
  .dr-doors-draw .drawing .d-txt {
    font-size: 11.5px;
  }
}

/* ---------- Measuring guide (stone) ---------- */
.dr-measure {
  padding: clamp(88px, 9vw, 150px) 0;
}
.dr-measure-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  align-items: start;
}
.dr-measure-copy {
  grid-column: 1 / 6;
}
.dr-measure-lead {
  max-width: 30em;
  margin-top: 20px;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}
.dr-measure-fig {
  grid-column: 7 / -1;
  justify-self: center;
  width: min(100%, 470px);
  position: sticky;
  top: calc(var(--hdr) + 32px);
  color: var(--ink);
}
.dr-key {
  margin-top: clamp(32px, 3.4vw, 48px);
  border-top: 1px solid var(--rule-strong);
}
.dr-key li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.dr-key-k {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1.0625rem;
}
.dr-key-t {
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 92%;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dr-key p {
  margin-top: 6px;
  max-width: 32em;
  color: var(--fg-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.dr-measure-photos {
  max-width: 30em;
  margin-top: 24px;
  color: var(--fg-2);
  font-size: 1rem;
}
.dr-measure-copy .cta-row {
  margin-top: 32px;
}
.dr-measure-note {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

/* The measuring drawing (uses the shared .drawing draw-in) */
.dr-m .m-hatch {
  opacity: 0.2;
}
.dr-m .m-knock {
  fill: var(--stone);
}
/* Its letters stay visible at any size (the shared .is-tiny rule hides .d-txt labels) */
.dr-m :is(.m-tag, .m-k) {
  stroke: none;
  font-family: var(--f-mono);
  font-weight: 500;
  text-transform: uppercase;
}
.dr-m .m-tag {
  fill: currentColor;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.dr-m .m-k {
  fill: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
/* Phones: the view titles grow as the drawing narrows (520-wide viewBox), about 9px on screen at 360 */
@media (max-width: 599px) {
  .dr-m .m-k {
    font-size: clamp(12px, 24px - 2.5vw, 16px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .drawing.dr-m.is-k :is(.m-tag, .m-k) {
    opacity: 0;
  }
  html.js .drawing.dr-m.is-k.is-in :is(.m-tag, .m-k) {
    opacity: 1;
    transition: opacity 0.6s 1.4s;
  }
}

@media (max-width: 999px) {
  /* Phones and tablets: heading and lead, then the drawing, then the key and the buttons */
  .dr-measure-grid {
    row-gap: 0;
  }
  .dr-measure-copy {
    display: contents;
  }
  .dr-measure-copy > *,
  .dr-measure-fig {
    grid-column: 1 / -1;
  }
  .dr-measure-copy > .dr-h2 {
    grid-row: 1;
  }
  .dr-measure-lead {
    grid-row: 2;
  }
  .dr-measure-fig {
    grid-row: 3;
    position: static;
    justify-self: start;
    width: min(100%, 440px);
    margin-top: 40px;
  }
  .dr-key {
    grid-row: 4;
  }
  .dr-measure-photos {
    grid-row: 5;
  }
  .dr-measure-copy .cta-row {
    grid-row: 6;
  }
  .dr-measure-note {
    grid-row: 7;
  }
}
@media (max-width: 760px) {
  .dr-measure-copy .btn {
    width: 100%;
    justify-content: space-between;
  }
  .dr-measure-copy .btn--ink-line {
    justify-content: center;
  }
  .dr-key li {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 18px 0;
  }
  .dr-key-k {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* ---------- Skylight shafts (ink) ---------- */
.dr-sky {
  padding: clamp(96px, 10vw, 168px) 0;
}
.dr-sky-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.dr-q {
  grid-column: 1 / 8;
  grid-row: 1;
  max-width: 15ch;
  font-size: clamp(2.625rem, 1rem + 4.6vw, 6rem);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.9;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.dr-sky-a {
  grid-column: 8 / -1;
  grid-row: 1;
  align-self: end;
  color: var(--fg-2);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.625rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.dr-sky-photo {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: start;
  margin-top: clamp(48px, 6vw, 96px);
  aspect-ratio: 3 / 4;
}
.dr-sky-side {
  grid-column: 7 / -1;
  grid-row: 2;
  align-self: end;
  padding-top: clamp(48px, 6vw, 96px);
}
.dr-sky-draw {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.dr-sky-draw figcaption {
  margin-top: 18px;
}
.dr-sky-p {
  max-width: 34em;
  margin-top: 24px;
  color: var(--fg-2);
  font-size: 1.0625rem;
}
.dr-sky-side .cta-row {
  margin-top: 28px;
}
@media (max-width: 999px) {
  .dr-q {
    grid-column: 1 / -1;
  }
  .dr-sky-a {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 34em;
    margin-top: clamp(24px, 4vw, 40px);
  }
  .dr-sky-photo {
    grid-column: 1 / 8;
    grid-row: 3;
  }
  .dr-sky-side {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-top: 48px;
  }
}
@media (max-width: 699px) {
  .dr-sky-photo {
    grid-column: 1 / -1;
    margin-top: 40px;
  }
  .dr-sky-side .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Framing and arches ---------- */
.dr-arch {
  padding: clamp(96px, 10vw, 168px) 0 clamp(88px, 9vw, 150px);
  background: var(--paper);
}
.dr-arch-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(40px, 5vw, 72px);
}
.dr-arch-h {
  grid-column: 1 / 8;
  grid-row: 1;
}
.dr-arch-copy {
  grid-column: 1 / 7;
  grid-row: 2;
}
.dr-arch-lead {
  max-width: 26em;
  color: var(--fg);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.dr-arch-p {
  max-width: 34em;
  margin-top: 20px;
  color: var(--fg-2);
}
.dr-arch-copy .cta-row {
  margin-top: 32px;
}
/* The photo rides alongside the heading, copy and drawing */
.dr-arch-photo {
  grid-column: 8 / -1;
  grid-row: 1 / 4;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 32px);
  aspect-ratio: 3 / 4;
}
.dr-arch-draw {
  grid-column: 1 / 7;
  grid-row: 3;
  margin-top: clamp(8px, 2vw, 32px);
  color: var(--ink);
}
.dr-arch-draw .drawing {
  max-width: 560px;
}
.dr-arch-draw figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 999px) {
  .dr-arch-h,
  .dr-arch-copy {
    grid-column: 1 / -1;
  }
  .dr-arch-photo {
    grid-column: 1 / 8;
    grid-row: 3;
    position: relative;
    top: auto;
  }
  .dr-arch-draw {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0;
  }
}
@media (max-width: 699px) {
  .dr-arch-photo {
    grid-column: 1 / -1;
  }
  .dr-arch-copy .btn {
    width: 100%;
    justify-content: space-between;
  }
}
/* Below 360 the heading wraps between "Framing" and "arches": more leading so the g clears the h */
@media (max-width: 359px) {
  .dr-arch-h {
    line-height: 0.98;
  }
}

/* ===== 50-projects.css ===== */
/* Projects page (/projects): the job book. A text-only hero, an index of every job
   (one row each, jumping to the job further down), then each job laid out as its own
   spread, and a closing call to action. Spreads use the 12-column grid from
   1100px; below that they stack, with the insets varied so it doesn't read as a card list. */

/* ---------- Hero ---------- */
.pj-hero .hero3-copy {
  padding-bottom: clamp(48px, 5.4vw, 88px);
}
.pj-hero .hero3-line {
  max-width: none;
  font-size: clamp(3.75rem, 1rem + 11vw, 12rem);
}
@media (min-width: 1300px) {
  .pj-hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .pj-hero .hero3-h {
    grid-column: 1 / 9;
  }
  .pj-hero-side {
    grid-column: 9 / -1;
    padding-bottom: 0.5rem;
  }
  .pj-hero .hero3-lead {
    margin-top: 0;
  }
}

/* ---------- Index: one row per job ---------- */
.pj-index {
  padding-top: clamp(64px, 7vw, 112px);
}
.pj-rows {
  border-top: 1px solid var(--rule-strong);
}
.pj-row {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(7rem, 15rem) 24px;
  column-gap: var(--gap);
  row-gap: 2px;
  align-items: baseline;
  padding: clamp(14px, 1.5vw, 22px) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
}
.pj-row-no {
  color: var(--navy);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.pj-row-t {
  font-size: clamp(1.5rem, 0.9rem + 1.8vw, 2.75rem);
  font-weight: 720;
  font-stretch: 80%;
  line-height: 1.04;
  letter-spacing: -0.024em;
  transition:
    transform 0.55s var(--ease-out),
    color 0.3s;
}
.pj-row-type {
  color: var(--fg-muted);
  font-size: 1rem;
}
.pj-row-i {
  align-self: center;
  width: 22px;
  height: 22px;
  color: var(--navy);
  opacity: 0.35;
  transform: rotate(90deg);
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease-out);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* As on the home services rows: a rule draws along the row (navy, as this is paper) */
  .pj-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform var(--t-out, 200ms) var(--ease-in, ease-in);
    pointer-events: none;
  }
  .pj-row:hover::after,
  .pj-row:focus-visible::after {
    transform: none;
    transform-origin: 0 50%;
    transition: transform 700ms var(--ease-out);
  }
}
@media (hover: hover) {
  .pj-row:hover .pj-row-t {
    transform: translateX(12px);
  }
  .pj-row:hover .pj-row-i {
    opacity: 1;
    transform: rotate(90deg) translateX(4px);
  }
  .pj-rows:hover .pj-row:not(:hover) .pj-row-t {
    color: rgba(12, 21, 33, 0.34);
  }
}
@media (max-width: 699px) {
  .pj-row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    padding: 16px 0 14px;
  }
  .pj-row-no {
    grid-row: 1 / 3;
    padding-top: 0.45em;
    font-size: 0.75rem;
  }
  .pj-row-type {
    grid-column: 2;
    font-size: 0.9375rem;
  }
  .pj-row-i {
    display: none;
  }
}

/* ---------- Job spreads ---------- */
.pj-band {
  padding-block: clamp(96px, 10vw, 160px);
}
.pj {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.pj + .pj {
  margin-top: clamp(104px, 12vw, 192px);
}
.pj-fig {
  position: relative;
  min-width: 0;
}
.pj-frame {
  aspect-ratio: 3 / 4;
  color: inherit;
}
.pj-cap {
  max-width: 26em;
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.pj-copy {
  min-width: 0;
}
.pj-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.pj-no {
  color: var(--navy);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.sec--ink .pj-no {
  color: var(--brass);
}
.pj-type {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.pj-t {
  max-width: 12ch;
  margin-top: 14px;
  font-size: clamp(2.25rem, 1.2rem + 2.8vw, 4.375rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.92;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.pj-d {
  max-width: 30em;
  margin-top: 20px;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
}
/* Bottom-aligned, so the two underlines sit on one line; stacked pairs keep some air */
.pj-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
  margin-top: 22px;
}
.pj-links .ulink {
  font-weight: 500;
  color: var(--fg-2);
}
/* Crops that aren't 3:4 move the photo and its drawing together */
.pj--03 .pj-frame > picture img,
.pj--03 .pj-frame .trace-layer img {
  object-position: 50% 84%;
}
.pj--07 .pj-frame > picture img,
.pj--07 .pj-frame .trace-layer img {
  object-position: 50% 46%;
}
.pj--09 .pj-frame > picture img,
.pj--09 .pj-frame .trace-layer img {
  object-position: 50% 62%;
}

@media (min-width: 1100px) {
  /* 01: the opener, a big photo on the left and the copy set mid-height beside it */
  .pj--01 .pj-fig--a {
    grid-column: 1 / 7;
    grid-row: 1;
  }
  .pj--01 .pj-frame {
    aspect-ratio: 4 / 5;
  }
  .pj--01 .pj-copy {
    grid-column: 8 / -1;
    grid-row: 1;
    align-self: center;
  }
  .pj--01 .pj-t {
    font-size: clamp(3rem, 1rem + 3.6vw, 5.25rem);
  }

  /* 02: the copy low on the left, the bench on the right */
  .pj--02 .pj-copy {
    grid-column: 2 / 6;
    grid-row: 1;
    align-self: end;
  }
  .pj--02 .pj-fig--a {
    grid-column: 7 / 12;
    grid-row: 1;
  }

  /* 03: a wide crop running off the left edge, the copy in the narrow column */
  .pj--03 .pj-fig--a {
    grid-column: 1 / 10;
    grid-row: 1;
    margin-left: calc(-1 * var(--edge));
  }
  .pj--03 .pj-frame {
    aspect-ratio: 4 / 3;
  }
  .pj--03 .pj-copy {
    grid-column: 10 / -1;
    grid-row: 1;
    align-self: end;
  }
  .pj--03 .pj-t {
    font-size: clamp(2.25rem, 1rem + 1.8vw, 3.25rem);
  }

  /* 04: the copy top left, the door set lower, the hinge detail higher on the right */
  .pj--04 .pj-copy {
    grid-column: 1 / 5;
    grid-row: 1;
    padding-top: 8px;
  }
  .pj--04 .pj-fig--a {
    grid-column: 5 / 10;
    grid-row: 1;
    margin-top: clamp(96px, 10vw, 168px);
  }
  .pj--04 .pj-fig--b {
    grid-column: 10 / -1;
    grid-row: 1;
  }

  /* 05: a smaller photo, with the title set large beside it */
  .pj--05 .pj-fig--a {
    grid-column: 1 / 5;
    grid-row: 1;
  }
  .pj--05 .pj-copy {
    grid-column: 6 / -1;
    grid-row: 1;
    align-self: end;
  }
  .pj--05 .pj-t {
    max-width: 10ch;
    font-size: clamp(3.5rem, 0.8rem + 5.4vw, 7.25rem);
    line-height: 0.88;
  }

  /* 06: the copy mid-height on the left, the boardwalk running off the right edge */
  .pj--06 .pj-copy {
    grid-column: 1 / 6;
    grid-row: 1;
    align-self: center;
  }
  .pj--06 .pj-fig--a {
    grid-column: 7 / -1;
    grid-row: 1;
    margin-right: calc(-1 * var(--edge));
  }
  .pj--06 .pj-frame {
    aspect-ratio: 4 / 5;
  }

  /* 07: a square crop looking straight up the shaft, the copy beside it */
  .pj--07 .pj-fig--a {
    grid-column: 2 / 8;
    grid-row: 1;
  }
  .pj--07 .pj-frame {
    aspect-ratio: 1;
  }
  .pj--07 .pj-copy {
    grid-column: 9 / -1;
    grid-row: 1;
    padding-top: clamp(48px, 6vw, 112px);
  }

  /* 08: the arch in the middle, the copy stepped down over its corner */
  .pj--08 .pj-fig--a {
    grid-column: 3 / 8;
    grid-row: 1;
  }
  .pj--08 .pj-copy {
    position: relative;
    z-index: 1;
    grid-column: 7 / 12;
    grid-row: 2;
    margin-top: -96px;
    padding: 32px 0 0 clamp(24px, 2.4vw, 40px);
    background: var(--stone);
  }

  /* 09: the last one wide and low, the copy underneath on the left */
  .pj--09 .pj-fig--a {
    grid-column: 2 / 12;
    grid-row: 1;
  }
  .pj--09 .pj-frame {
    aspect-ratio: 3 / 2;
  }
  .pj--09 .pj-copy {
    grid-column: 2 / 7;
    grid-row: 2;
    margin-top: 36px;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .pj {
    row-gap: 32px;
  }
  .pj-copy {
    grid-column: 1 / 11;
  }
  .pj-fig--a {
    grid-column: 1 / 9;
  }
  /* Two photos side by side, the second smaller */
  .pj--04 .pj-fig--a {
    grid-column: 1 / 8;
    grid-row: 1;
  }
  .pj--04 .pj-fig--b {
    grid-column: 8 / -1;
    grid-row: 1;
  }
  .pj--04 .pj-copy {
    grid-row: 2;
  }
  /* Photo beside the copy */
  .pj--02 .pj-copy,
  .pj--05 .pj-copy {
    grid-column: 1 / 7;
    grid-row: 1;
    align-self: end;
  }
  .pj--02 .pj-fig--a,
  .pj--05 .pj-fig--a {
    grid-column: 7 / -1;
    grid-row: 1;
  }
  .pj--05 .pj-copy {
    grid-column: 7 / -1;
  }
  .pj--05 .pj-fig--a {
    grid-column: 1 / 7;
  }
  .pj--03 .pj-fig--a {
    grid-column: 1 / -1;
    margin-left: calc(-1 * var(--gutter));
  }
  .pj--03 .pj-frame {
    aspect-ratio: 4 / 3;
  }
  .pj--03 .pj-copy {
    grid-column: 4 / -1;
  }
  .pj--06 .pj-fig--a {
    grid-column: 4 / -1;
    grid-row: 1;
    margin-right: calc(-1 * var(--gutter));
  }
  .pj--06 .pj-copy {
    grid-row: 2;
  }
  .pj--07 .pj-fig--a {
    grid-column: 1 / 10;
  }
  .pj--07 .pj-frame {
    aspect-ratio: 1;
  }
  .pj--07 .pj-copy {
    grid-column: 3 / -1;
  }
  .pj--08 .pj-fig--a {
    grid-column: 3 / 10;
  }
  .pj--08 .pj-copy {
    grid-column: 5 / -1;
  }
  .pj--09 .pj-fig--a {
    grid-column: 1 / -1;
  }
  .pj--09 .pj-frame {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 699px) {
  .pj {
    row-gap: 24px;
  }
  .pj-fig--a,
  .pj-copy {
    grid-column: 1 / -1;
  }
  .pj-fig--b {
    grid-column: 4 / -1;
  }
  /* Photos first, then the copy */
  .pj-fig--a {
    grid-row: 1;
  }
  .pj-fig--b {
    grid-row: 2;
    margin-top: -8px;
  }
  .pj-copy {
    grid-row: 3;
  }
  .pj--02 .pj-fig--a,
  .pj--08 .pj-fig--a {
    grid-column: 3 / -1;
  }
  .pj--05 .pj-fig--a {
    grid-column: 1 / 11;
  }
  .pj--03 .pj-fig--a {
    margin-inline: calc(-1 * var(--gutter));
  }
  .pj--03 .pj-frame {
    aspect-ratio: 1;
  }
  .pj--06 .pj-fig--a {
    grid-column: 2 / -1;
    margin-right: calc(-1 * var(--gutter));
  }
  .pj--07 .pj-frame {
    aspect-ratio: 1;
  }
  .pj-t {
    max-width: 13ch;
    font-size: clamp(2.25rem, 1.2rem + 4.6vw, 3rem);
  }
  .pj--05 .pj-t {
    font-size: clamp(2.75rem, 1.2rem + 7vw, 3.75rem);
  }
}

/* ---------- Closing call to action ---------- */
.pj-end {
  padding-block: clamp(104px, 11vw, 176px) clamp(96px, 10vw, 160px);
  border-top: 1px solid var(--rule);
}
.pj-end-h {
  max-width: 12ch;
}
.pj-end-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
}
.pj-end-h {
  grid-column: 1 / -1;
}
.pj-end-side {
  grid-column: 7 / -1;
  display: grid;
  justify-items: start;
  gap: 28px;
}
.pj-end-side .lead {
  max-width: 30em;
}
.pj-end-call {
  color: var(--fg-muted);
}
.pj-end-call .ulink {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 999px) {
  .pj-end-side {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .pj-end .cta-row,
  .pj-end .cta-row .btn {
    width: 100%;
  }
  .pj-end .cta-row .btn {
    justify-content: space-between;
  }
  .pj-end .cta-row .btn--ink-line {
    justify-content: center;
  }
}
/* The page ends with its own call to action, so the footer skips its one */
.page-projects .ft-cta {
  display: none;
}

/* ===== 50-quote-legal.css ===== */
/* Quote, thanks, privacy and 404 pages. All four open with a text-only ink hero
   (hero3--short); the quote page carries its form inside it. */

/* ---------- Quote page: the question, then the form straight away ---------- */
/* The form is the page: no call bar here */
.page-quote .action-bar {
  display: none !important;
}
/* One column on phones and tablets, in reading order: the question, the lead, the form,
   what happens next, then the other ways in. */
.qp-grid {
  padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 128px);
}
.qp .hero3-line {
  max-width: 12ch;
}
.qp-lead {
  max-width: 24em;
}
.qp .form-card {
  margin-top: 32px;
}
.qp-next {
  max-width: 30em;
  margin-top: 36px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.qp-next strong {
  color: var(--fg);
  font-weight: 600;
}
.qp .quote3-talk {
  margin-top: 36px;
}
.qp .rows3 {
  margin-top: 10px;
}
@media (min-width: 1100px) {
  /* Desktop: the question and the ways in on the left, the form beside them from the top.
     The last row takes up whatever height the form needs, so the left column stays packed. */
  .qp-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto) 1fr;
    column-gap: var(--gap);
    align-items: start;
  }
  .qp-grid > * {
    grid-column: 1 / 6;
  }
  .qp .crumbs3 {
    grid-row: 1;
  }
  .qp .hero3-h {
    grid-row: 2;
  }
  .qp-lead {
    grid-row: 3;
  }
  .qp-next {
    grid-row: 4;
    margin-top: 28px;
  }
  .qp .quote3-talk {
    grid-row: 5;
    margin-top: 32px;
  }
  .qp .rows3 {
    grid-row: 6;
  }
  .qp-grid > .form-card {
    grid-column: 7 / -1;
    grid-row: 1 / -1;
    margin-top: 0;
  }
}

/* Recent work under the form: a run-in line, then four jobs */
.qp-runin {
  max-width: 34em;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem);
  font-stretch: 92%;
  line-height: 1.22;
  letter-spacing: -0.016em;
}
.qp-runin h2 {
  display: inline;
  font: inherit;
  font-weight: 800;
  font-stretch: 76%;
}
.qp-runin p {
  display: inline;
  color: var(--fg-2);
}
.qp-work .tk-list {
  margin-top: clamp(40px, 5vw, 72px);
}
.qp-work .tk,
.qp-work .tk:nth-child(1),
.qp-work .tk:nth-child(2) {
  grid-column: span 3;
  margin-top: 0;
}
.qp-work .tk:nth-child(even) {
  margin-top: 56px;
}
.qp-work .tk-frame--2 {
  display: none;
}
.qp-all {
  margin-top: clamp(40px, 4vw, 56px);
}
@media (max-width: 999px) {
  .qp-work .tk,
  .qp-work .tk:nth-child(1),
  .qp-work .tk:nth-child(2) {
    grid-column: span 6;
  }
  .qp-work .tk:nth-child(even) {
    margin-top: 40px;
  }
  .qp-work .tk:nth-child(1) .tk-frame {
    aspect-ratio: 3 / 4;
  }
}

/* ---------- Thanks ---------- */
.page-thanks .action-bar,
.page-thanks .ft-cta {
  display: none !important;
}
.qt .hero3-line {
  max-width: 13ch;
}
.qt .hero3-lead {
  max-width: 30em;
}
.ql-next-sec {
  padding-block: clamp(80px, 9vw, 144px);
}
.ql-next-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: center;
}
.ql-draw {
  grid-column: 1 / 6;
  width: 100%;
  max-width: 440px;
  color: var(--ink);
}
.ql-next-copy {
  grid-column: 7 / -1;
}
.ql-h {
  font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.ql-steps {
  margin-top: 28px;
  border-top: 1px solid var(--rule-strong);
  counter-reset: step;
}
.ql-steps li {
  position: relative;
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: 1.0625rem;
  line-height: 1.5;
  counter-increment: step;
}
.ql-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 13px;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 300;
  font-stretch: 62%;
  line-height: 1;
}
.ql-steps strong {
  color: var(--fg);
  font-weight: 650;
}
@media (max-width: 999px) {
  .ql-next-copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .ql-draw {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 260px;
  }
}

/* ---------- Privacy ---------- */
.qv-hero .hero3-line {
  max-width: 12ch;
}
.qv {
  padding-block: clamp(64px, 7vw, 112px) clamp(88px, 9vw, 144px);
}
.qv-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
  align-items: start;
}
.qv-short {
  grid-column: 1 / 5;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}
.qv-short-h {
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: 76%;
  line-height: 1;
  letter-spacing: -0.024em;
}
.qv-short-list {
  margin-top: 14px;
}
.qv-short-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.45;
}
.qv-short-foot {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.qv-short-foot a {
  color: var(--accent);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.qv-prose {
  grid-column: 6 / -1;
}
.qv-prose .qv-intro {
  color: var(--fg);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.qv-prose h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.98;
  letter-spacing: -0.028em;
}
@media (min-width: 1000px) {
  .qv-short {
    position: sticky;
    top: calc(var(--hdr) + 32px);
  }
}
@media (max-width: 999px) {
  .qv-short,
  .qv-prose {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */
/* On paper rather than ink, so it doesn't sit ink-on-ink against the footer */
.nf.hero3 {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: #2c3542;
  --fg-muted: #4c5562;
  --rule-strong: rgba(12, 21, 33, 0.9);
  --rule: rgba(12, 21, 33, 0.16);
  --accent: var(--navy);
  --tick: var(--navy);
  --focus: var(--navy);
  background: var(--paper);
  color: var(--fg);
}
/* The hero's grain is pre-mixed for ink; on paper it is left off */
.nf.hero3::after {
  content: none;
}
.nf .sq {
  background: var(--navy);
}
.nf .ulink {
  --tl: var(--navy);
}
.nf .drawing .d-acc {
  color: var(--navy);
}
.nf .hero3-copy {
  grid-column: 1 / 8;
}
.nf .hero3-line {
  max-width: 10ch;
}
.nf-draw {
  grid-column: 9 / -1;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 400px;
  padding-block: 56px;
}
/* 1000–1320px the drawing narrows with its column (about 300px at 1000): labels grow to hold about 9px
   on screen, and ARCHITRAVE moves above the head as on phones */
@media (min-width: 1000px) and (max-width: 1319px) {
  .nf-draw .d-txt {
    font-size: clamp(9px, 22.2px - 1vw, 12.2px);
    letter-spacing: 0.04em;
  }
  .nf-draw .t-architrave {
    text-anchor: end;
    transform: translate(-4px, -15px);
  }
}
.nf-nav {
  margin-top: clamp(32px, 4vw, 48px);
}
.nf-nav[data-fade] {
  animation-delay: 0.68s;
}
.nf-links {
  max-width: 34rem;
  border-top: 1px solid var(--rule-strong);
}
.nf-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 720;
  font-stretch: 82%;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-decoration: none;
}
.nf-links span {
  transition: transform 0.45s var(--ease-out);
}
.nf-links .i {
  width: 22px;
  height: 22px;
  color: var(--navy);
  opacity: 0.5;
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .nf-links a:hover span {
    transform: translateX(10px);
  }
  .nf-links a:hover .i {
    opacity: 1;
    transform: translateX(4px);
  }
}
.nf .hero3-alt {
  margin-top: 28px;
  color: var(--fg-2);
}
@media (max-width: 999px) {
  .nf .hero3-copy {
    grid-column: 1;
    padding-bottom: 32px;
  }
  .nf-draw {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    max-width: 300px;
    padding: 0 0 56px;
  }
  /* Labels about 9px on screen (font units are the 400-wide viewBox). ARCHITRAVE would cross the wall
     line at that size, so it sits above the head instead, ending over its leader */
  .nf-draw .d-txt {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .nf-draw .t-architrave {
    text-anchor: end;
    transform: translate(-4px, -15px);
  }
}
