/* Hallmark · checked: 2026-11-16 · genre: editorial (inferred)
 * floor: see .work/hallmark-after.txt · fixed: 34, 38i, 48, 62, 63, 6a, 7, 19, 24 · structural: 58 printed
 * built: the project · redesign: polish · v2.0.0 */
/* Dexter Fire: design system + site styles.
   Colour strategy: Committed. Brand orange #fc4c02 carries the identity in
   large surfaces (the audience band, drawings, primary buttons); white space
   and near-black type carry the authority. Contrast notes:
   - ink on orange 5.5:1 (AA text) -> text on orange is always ink, never white
   - white on orange 3.4:1 -> large display text only, so we don't use it
   - orange on white 3.4:1 -> graphics/focus rings only, never body text
   - orange on --night 5.4:1 -> links on the dark footer are fine */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-next-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout shift near zero while fonts load. */
@font-face {
  font-family: "Jost Fallback";
  src: local("Arial");
  size-adjust: 96%;
  ascent-override: 106%;
  descent-override: 37%;
}
@font-face {
  font-family: "Atkinson Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
}

:root {
  --orange: #fc4c02;
  --orange-deep: oklch(0.52 0.19 37);
  --orange-soft: oklch(0.86 0.095 50); /* large orange surfaces: a lighter tint of the brand hue */
  --ink: oklch(0.2 0.012 40);
  --ink-2: oklch(0.42 0.014 40);
  --line: oklch(0.87 0.008 40);
  --line-strong: oklch(0.2 0.012 40 / 0.85);
  --paper: oklch(0.995 0.004 60); /* white, warmed a touch toward the brand hue */
  --mist: oklch(0.972 0.002 40);
  --night: oklch(0.18 0.012 40);
  --night-2: oklch(0.82 0.01 40);

  /* Colours used once or twice, kept here so every colour has a name. */
  --todo-bg: oklch(0.93 0.09 95);
  --todo-line: oklch(0.55 0.12 75);
  --line-ink: oklch(0.2 0.012 40 / 0.35);
  --line-on-dark: oklch(1 0 0 / 0.25);
  --line-on-dark-soft: oklch(1 0 0 / 0.12);
  --field-line: oklch(0.45 0.012 40);
  --danger: oklch(0.5 0.2 27);
  --danger-text: oklch(0.47 0.19 27);
  --danger-line: oklch(0.5 0.19 27);
  --danger-bg: oklch(0.96 0.03 27);
  --ok-bg: oklch(0.95 0.05 150);
  --ok-line: oklch(0.5 0.12 150);
  --shadow-ink: oklch(0.2 0.012 40 / 0.25);
  --shadow-soft: rgb(0 0 0 / 0.25);
  --hero-bg: oklch(0.2 0.012 220);
  --scrim-1: oklch(0.16 0.01 220 / 0.86);
  --scrim-2: oklch(0.16 0.01 220 / 0.72);
  --scrim-3: oklch(0.16 0.01 220 / 0.3);
  --scrim-4: oklch(0.16 0.01 220 / 0.55);
  --scrim-mobile: oklch(0.16 0.01 220 / 0.78);
  --hero-lead: oklch(0.95 0.005 220);
  --hero-muted: oklch(0.9 0.005 220);

  --font-display: "Jost", "Jost Fallback", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Fallback", system-ui, sans-serif;

  /* Type scale: 1.333 (perfect fourth); fluid only for display sizes. */
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lead: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --text-h4: 1.1875rem;
  --text-h3: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem);
  --text-h2: clamp(1.875rem, 1.45rem + 1.8vw, 2.875rem);
  --text-h1: clamp(2.375rem, 1.55rem + 3.4vw, 4.25rem);
  --text-display: clamp(2.5rem, 1.45rem + 4.3vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section: clamp(4rem, 2.8rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
  --wrap: 78rem;
  --measure: 68ch;

  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */

  --z-sticky: 100;
  --z-nav: 200;
  --z-skip: 400;
}

/* ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.2; }
h4 { font-size: var(--text-h4); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
p, ul, ol, dl { margin: 0; }
p { text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange-deep); }
.prose { max-width: var(--measure); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a, .link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.prose a:hover, .link:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.on-orange :focus-visible, .band :focus-visible { outline-color: var(--ink); }
.night :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }

strong { font-weight: 700; }
abbr[title] { text-decoration: underline dotted 1px; text-underline-offset: 0.2em; cursor: help; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.mist { background: var(--mist); }
.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 {
  position: absolute; left: var(--space-4); top: -10rem; z-index: var(--z-skip);
  background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4);
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: var(--space-4); }
main:focus { outline: none; }

/* Unconfirmed facts in preview builds (never present in --prod builds). */
mark.todo {
  background: var(--todo-bg);
  color: var(--ink);
  outline: 1px dashed var(--todo-line);
  padding: 0 0.2em;
  border-radius: 2px;
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.005em;
  line-height: 1.2; text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn:disabled:hover { background: var(--mist); color: var(--ink-2); border-color: var(--line); cursor: progress; transform: none; }
.btn-primary { background: var(--orange-soft); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px;
  transition: border-color 160ms var(--ease-out);
}
.arrow-link:hover { border-color: var(--ink); }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 4.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin-right: auto; min-height: 44px;
}
.brand .mark { width: 2.4rem; height: 2.4rem; color: var(--orange); flex: none; }
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav ul { list-style: none; padding: 0; }
.site-nav > ul { display: flex; gap: var(--space-1); }
.site-nav > ul > li > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font-family: var(--font-display); font-weight: 500; font-size: 1.03rem; text-decoration: none;
  border-radius: var(--radius); position: relative;
}
.site-nav > ul > li > a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 8px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 1rem; }
.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 0.9rem;
    font: 600 1rem/1 var(--font-display); color: var(--ink); background: transparent;
    border: 2px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle .bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform 220ms var(--ease-out), opacity 160ms var(--ease-out);
  }
  .nav-toggle .bars::before { top: 0; }
  .nav-toggle .bars span { top: 5px; }
  .nav-toggle .bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-3); padding-bottom: var(--space-4); }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li > a { width: 100%; padding: 0 var(--space-1); font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > ul > li > a::after { left: 0.25rem; right: auto; width: 2rem; bottom: 10px; }
  .js .site-nav:not(.is-open) { display: none; }
}

/* ── breadcrumbs ────────────────────────────────────────────────────── */
.crumbs { padding-top: var(--space-5); font-size: var(--text-sm); color: var(--ink-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: var(--space-2); color: var(--ink-2); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.crumbs a:hover { text-decoration-color: var(--orange); }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, var(--space-5) + 4vw, 6rem) clamp(var(--space-7), var(--space-6) + 4vw, 6rem); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
}
.hero h1.display { font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: var(--space-5); max-width: 54ch; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-6); }
.cta-row .phone { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.cta-row .phone span { color: var(--ink-2); font-weight: 500; }
.cta-row .phone:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.credline {
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-2); max-width: 54ch;
}
.credline strong { color: var(--ink); font-weight: 700; }
.hero-art { justify-self: center; width: 100%; max-width: min(30rem, 78vw); }
.page-hero { padding-block: clamp(var(--space-6), var(--space-4) + 3vw, 4.5rem) clamp(2.5rem, var(--space-5) + 3vw, 4.5rem); }
.page-hero .lead { margin-top: var(--space-5); max-width: 60ch; }
.page-hero .hero-art { max-width: 24rem; }

/* ── drawings ───────────────────────────────────────────────────────── */
.drawing { color: var(--ink); overflow: visible; }
.drawing text { font-family: var(--font-display); font-weight: 500; fill: var(--ink); }
.drawing .ln { stroke: currentColor; stroke-width: 1.25; fill: none; vector-effect: non-scaling-stroke; }
.drawing .ln-thin { stroke: var(--ink-2); stroke-width: 0.75; fill: none; vector-effect: non-scaling-stroke; }
.drawing .ln-heavy { stroke: currentColor; stroke-width: 2.25; fill: none; vector-effect: non-scaling-stroke; }
.drawing .dash { stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 5 4; fill: none; vector-effect: non-scaling-stroke; }
.drawing .dot { fill: var(--ink-2); }
.drawing .mark { stroke-dasharray: 3 3; }
.drawing .hose { stroke-dasharray: 6 4; }
.drawing .fire { fill: var(--orange); }
.drawing .fire-ln { stroke: var(--orange); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
.drawing .hatch { fill: url(#hatch); }

/* First-load choreography for the hero tower: the structure draws in from
   the ground up, then the protected stairs fill with orange, then the 18 m
   line lands. The resting state is the fully drawn drawing; animation only
   runs when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .anim .rise-x, .anim .rise-y { transform-box: fill-box; animation: 900ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
  .anim .rise-x { transform-origin: 0% 50%; animation-name: rise-x; }
  .anim .rise-y { transform-origin: 50% 100%; animation-name: rise-y; }
  .anim .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: rise-y 1100ms var(--ease-out) backwards; animation-delay: 700ms; }
  .anim .land { animation: land 700ms var(--ease-out) backwards; animation-delay: 1500ms; }
  .anim .land-2 { animation: land 700ms var(--ease-out) backwards; animation-delay: 1750ms; }
}
/* Lines are drawn in by scaling them out from their starting end, and every
   keyframe animates *from* a hidden state to the element's own resting state,
   so nothing animation-specific is left on the drawing once it has played.
   (A stroke-dasharray draw-in must not be used here: with
   vector-effect: non-scaling-stroke the dash length is measured in screen
   pixels, so lines stop short whenever the SVG renders larger than its viewBox.) */
@keyframes rise-x { from { transform: scaleX(0); } }
@keyframes rise-y { from { transform: scaleY(0); } }
@keyframes land { from { opacity: 0; transform: translateY(6px); } }

/* ── the orange band: two audiences ─────────────────────────────────── */
.band { background: var(--orange-soft); color: var(--ink); }
.doors { display: grid; gap: 0; }
@media (min-width: 52rem) { .doors { grid-template-columns: 1fr 1fr; } }
.door { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.door + .door { border-top: 2px solid var(--ink); }
@media (min-width: 52rem) {
  .door:first-child { padding-right: clamp(var(--space-6), var(--space-4) + 3vw, var(--space-8)); }
  .door + .door { border-top: 0; border-left: 2px solid var(--ink); padding-left: clamp(var(--space-6), var(--space-4) + 3vw, var(--space-8)); }
}
.door h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.door p { margin-top: var(--space-4); max-width: 46ch; font-size: 1.125rem; }
.door ul { list-style: none; padding: 0; margin-top: var(--space-5); border-top: 1px solid var(--line-ink); }
.door li { border-bottom: 1px solid var(--line-ink); }
.door li a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: 0.85rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-decoration: none;
}
.door li a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* ── section headings ───────────────────────────────────────────────── */
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(var(--space-6), var(--space-5) + 2vw, 3.5rem); }
@media (min-width: 56rem) {
  .section-head.split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: var(--space-8); }
}
.section-head p { color: var(--ink-2); font-size: 1.125rem; max-width: 58ch; }

/* ── service schedule (ruled list, not cards) ───────────────────────── */
.schedule { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.schedule li { border-bottom: 1px solid var(--line); }
.schedule a {
  display: grid; gap: var(--space-2) var(--space-6); padding-block: var(--space-5);
  text-decoration: none; color: var(--ink); position: relative;
}
@media (min-width: 56rem) {
  .schedule a { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr); align-items: baseline; padding-block: 1.6rem; }
}
.schedule .s-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); line-height: 1.2; letter-spacing: -0.01em; }
.schedule .s-what { color: var(--ink-2); }
.schedule .s-reg { font-size: var(--text-sm); color: var(--ink-2); }
.schedule a::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out);
}
.schedule a:hover::before, .schedule a:focus-visible::before { transform: scaleX(1); }
.schedule .tag {
  display: inline-block; margin-left: var(--space-2); vertical-align: 0.2em;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 0.1rem var(--space-2); border-radius: 99px; background: var(--orange-soft); color: var(--ink);
}

/* ── gateway sequence (a real sequence, so it's numbered) ───────────── */
.split { display: grid; gap: var(--space-7); }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); align-items: start; } }
.gateways { list-style: none; padding: 0; counter-reset: gw; position: relative; }
.gateways li { position: relative; padding: 0 0 var(--space-6) 4.25rem; counter-increment: gw; }
.gateways li:last-child { padding-bottom: 0; }
.gateways li::before {
  content: counter(gw); position: absolute; left: 0; top: -0.15rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  font: 700 1.25rem/1 var(--font-display); color: var(--ink); background: var(--orange-soft); border-radius: 50%;
}
.gateways.from-zero li::before { content: counter(gw); }
.gateways li::after { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0.25rem; width: 2px; background: var(--ink); opacity: 0.85; }
.gateways li:last-child::after { display: none; }
.gateways .gw-when { display: block; font-size: var(--text-sm); color: var(--ink-2); font-weight: 700; margin-bottom: 0.15rem; }
.gateways h3 { font-size: 1.375rem; }
.gateways p { margin-top: var(--space-2); max-width: 54ch; }
.gateways .gw-stat { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-2); }

/* ── process steps ──────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-6); counter-reset: st; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: st; border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.steps li::before { content: "Step " counter(st); display: block; font: 600 0.9375rem/1 var(--font-display); color: var(--orange-deep); margin-bottom: var(--space-3); }
.steps h3 { font-size: 1.375rem; }
.steps p { margin-top: var(--space-2); color: var(--ink-2); }

/* ── engineer intro ─────────────────────────────────────────────────── */
.person { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 56rem) { .person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); } }
.person-card { border: 2px solid var(--ink); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.person-card .mark { width: 3.5rem; height: 3.5rem; color: var(--orange); }
.person-card .p-name { font: 600 1.75rem/1.1 var(--font-display); letter-spacing: -0.015em; }
.person-card .p-role { color: var(--ink-2); }
.person-card dl { display: grid; gap: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.person-card dt { font-size: var(--text-sm); color: var(--ink-2); }
.person-card dd { margin: 0; font-weight: 700; }

/* ── at-a-glance facts on service pages ─────────────────────────────── */
.facts { display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); } }
@media (min-width: 72rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding-block: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.facts dt { font: 600 0.9375rem/1.3 var(--font-display); color: var(--orange-deep); }
.facts dd { margin: var(--space-2) 0 0; }

/* ── two-column content with sticky aside ───────────────────────────── */
.content-grid { display: grid; gap: var(--space-7); }
@media (min-width: 62rem) { .content-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-8); } }
.aside-box { border: 2px solid var(--ink); padding: var(--space-5); display: grid; gap: var(--space-4); align-content: start; }
@media (min-width: 62rem) { .aside-box { position: sticky; top: 6.5rem; } }
.aside-box h2 { font-size: 1.375rem; }
.aside-box p { color: var(--ink-2); font-size: var(--text-sm); }
.aside-box .btn { width: 100%; }
.aside-box .contact-lines { font-size: var(--text-sm); display: grid; gap: var(--space-2); justify-items: start; }

.deliverables { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.deliverables li { padding: 0.8rem 0 0.8rem var(--space-6); border-bottom: 1px solid var(--line); position: relative; }
.deliverables li::before { content: ""; position: absolute; left: 0.2rem; top: 1.35rem; width: 0.9rem; height: 2px; background: var(--orange); }

.callout { background: var(--mist); border: 1px solid var(--line); padding: var(--space-5); max-width: var(--measure); border-radius: var(--radius); }
.callout p + p { margin-top: var(--space-3); }
.callout .callout-title { font: 600 1.125rem/1.3 var(--font-display); margin-bottom: var(--space-2); }

.updated { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--ink-2); }

/* RIBA stage strip */
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-1); max-width: var(--measure); margin-top: var(--space-5); }
.stages li { background: var(--mist); border: 1px solid var(--line); padding: 0.6rem 0.4rem; text-align: center; min-width: 0; }
.stages li b { display: block; font: 700 1.125rem/1 var(--font-display); }
.stages li span { display: block; font-size: 0.75rem; line-height: 1.25; margin-top: 0.3rem; color: var(--ink-2); overflow-wrap: anywhere; }
.stages li.on { background: var(--orange-soft); border-color: var(--orange-soft); }
.stages li.on span { color: var(--ink); }
@media (max-width: 40rem) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.qa { border-bottom: 1px solid var(--line); padding-block: var(--space-5); }
.qa h3 { font-size: 1.3125rem; line-height: 1.3; }
.qa-a { margin-top: var(--space-3); max-width: var(--measure); }
.qa-a > * + * { margin-top: 0.75em; }
.qa-a a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.faq-group + .faq-group { margin-top: var(--space-8); }
.faq-group > h2 { margin-bottom: var(--space-5); }

/* ── related links ──────────────────────────────────────────────────── */
.related { list-style: none; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 48rem) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); } }
.related a { display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.1875rem/1.3 var(--font-display); }
.related a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* ── dark CTA + footer ──────────────────────────────────────────────── */
.night { background: var(--night); color: var(--paper); }
.night a:not(.btn) { color: var(--paper); }
.cta-final { padding-block: clamp(var(--space-8), var(--space-7) + 4vw, 7rem); }
.cta-final .cta-grid { display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 56rem) { .cta-final .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); } }
.cta-final h2 { font-size: var(--text-h1); line-height: 1.04; letter-spacing: -0.025em; max-width: 16ch; }
.cta-final p { margin-top: var(--space-4); color: var(--night-2); max-width: 48ch; line-height: 1.65; }
.cta-final .cta-side { display: grid; gap: var(--space-4); }
.cta-final .cta-side a.line { font: 600 1.25rem/1.3 var(--font-display); text-decoration: none; border-bottom: 1px solid var(--line-on-dark); padding-bottom: var(--space-3); display: flex; justify-content: space-between; gap: var(--space-3); overflow-wrap: anywhere; }
.cta-final .cta-side a.line:hover { border-bottom-color: var(--orange); }
.cta-final .cta-side a.line span { color: var(--night-2); font-weight: 500; font-size: 1rem; }

.site-footer { background: var(--night); color: var(--night-2); border-top: 1px solid var(--line-on-dark-soft); font-size: var(--text-sm); line-height: 1.6; }
.site-footer .f-grid { display: grid; gap: var(--space-7); padding-block: var(--space-8) var(--space-7); }
@media (min-width: 48rem) { .site-footer .f-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); } }
.site-footer .brand { color: var(--paper); margin: 0; }
.site-footer .f-blurb { margin-top: var(--space-4); max-width: 40ch; }
.site-footer h2 { font: 600 1rem/1.3 var(--font-display); color: var(--paper); letter-spacing: 0.01em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.site-footer ul a { display: inline-flex; min-height: 32px; align-items: center; color: var(--night-2); text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .f-contact a { color: var(--paper); }
.site-footer .f-legal { border-top: 1px solid var(--line-on-dark-soft); padding-block: var(--space-5) var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; }
.site-footer .f-legal p { max-width: 70ch; }

/* ── forms ──────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--space-5); max-width: 46rem; }
.form .row { display: grid; gap: var(--space-5); }
@media (min-width: 40rem) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font: 600 1.0625rem/1.3 var(--font-display); padding: 0; }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--ink-2); font-size: var(--text-sm); }
.field .hint { font-size: var(--text-sm); color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--field-line); border-radius: var(--radius);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger-text); font-weight: 700; font-size: var(--text-sm); }
.field .error:empty { display: none; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; }
.check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: 0.15rem; accent-color: var(--orange-deep); flex: none; }
.check label { font-family: var(--font-body); font-weight: 400; font-size: var(--text-base); line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--space-4) var(--space-5); border-radius: var(--radius); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-bg); border: 2px solid var(--ok-line); }
.form-status.err { background: var(--danger-bg); border: 2px solid var(--danger-line); }

.contact-grid { display: grid; gap: var(--space-8); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.contact-direct { display: grid; gap: var(--space-5); align-content: start; }
.contact-direct .big { font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.25 var(--font-display); text-decoration: none; overflow-wrap: anywhere; }
.contact-direct .big:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.contact-direct dt { font-size: var(--text-sm); color: var(--ink-2); }
.contact-direct dd { margin: 0.2rem 0 0; }
.contact-direct dl { display: grid; gap: var(--space-5); }

.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.checklist li { padding-left: 1.75rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45rem; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--orange-deep); border-bottom: 2px solid var(--orange-deep); transform: rotate(-45deg); }

/* 404 */
.notfound { min-height: 50svh; display: grid; align-content: center; }

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

@media print {
  .site-header, .site-footer, .cta-final, .band, .skip, .aside-box { display: none !important; }
  body { font-size: 11pt; }
  a { text-decoration: underline; }
}

/* ── tables + inline components inside prose ───────────────────────── */
.prose .gateways, .prose .deliverables, .prose .checklist, .prose .stages { padding-left: 0; }
.prose .gateways li + li, .prose .stages li + li { margin-top: 0; }
.prose .gateways h3 { margin-top: 0; }
.prose .gateways { margin-top: var(--space-5); }
.table-wrap { overflow-x: auto; max-width: var(--measure); border-top: 2px solid var(--ink); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
caption { text-align: left; font: 600 1rem/1.4 var(--font-display); padding: var(--space-3) 0; }
th, td { text-align: left; padding: 0.7rem var(--space-3) 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
tbody th { font-weight: 400; }
td { white-space: nowrap; }
.source { font-size: var(--text-sm); color: var(--ink-2); }
td.wrap-ok { white-space: normal; min-width: 12rem; }
.table-wide { max-width: none; }
.table-wide tbody th { width: 45%; font-weight: 700; }

/* Single-column grids on small screens: minmax(0, 1fr) stops wide content
   (tables, long words) from stretching the column past the viewport. */
.hero-grid, .content-grid, .split, .person, .contact-grid, .cta-final .cta-grid, .doors, .site-footer .f-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .cta-final .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
@media (min-width: 52rem) { .doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 48rem) { .site-footer .f-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); } }
@media (min-width: 62rem) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
.page-hero + .section-tight { padding-top: 0; }
.aside-box { align-self: start; }
@media (max-width: 55.99rem) { .page-hero .hero-art { max-width: min(22rem, 86vw); justify-self: start; } }

/* ── services dropdown ──────────────────────────────────────────────── */
.has-menu { display: flex; align-items: center; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 2rem; min-height: 44px; margin-left: calc(-1 * var(--space-2));
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.menu-toggle svg { transition: transform 200ms var(--ease-out); }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega-group { font: 600 0.9375rem/1.3 var(--font-display); color: var(--orange-deep); padding: 0 var(--space-3); margin-bottom: var(--space-2); }
.mega ul { display: grid; gap: 2px; }
.mega-group-next { margin-top: var(--space-4); }
.mega ul a { display: grid; gap: 0.1rem; padding: 0.6rem var(--space-3); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background-color 150ms var(--ease-out); }
.mega ul a:hover { background: var(--mist); }
.mega ul a:hover .m-name { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.mega ul a[aria-current="page"] { background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.m-name { font: 600 1.0625rem/1.3 var(--font-display); }
.m-what { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.4; }
.mega-all {
  display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4);
  padding: 0.9rem var(--space-3) 0; border-top: 1px solid var(--line);
  font: 600 1rem/1.3 var(--font-display); text-decoration: none; color: var(--ink);
}
.mega-all:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

@media (min-width: 62.0625rem) {
  .header-inner { position: relative; }
  .site-nav, .site-nav > ul, .has-menu { align-self: stretch; }
  .site-nav > ul > li { display: flex; align-items: center; }
  .mega {
    position: absolute; top: 100%; right: var(--gutter); z-index: var(--z-nav);
    width: min(44rem, calc(100% - 2 * var(--gutter)));
    background: var(--paper); border: 2px solid var(--ink); border-top: 4px solid var(--orange);
    padding: var(--space-5) var(--space-4) var(--space-4);
    box-shadow: 0 18px 40px -12px var(--shadow-ink);
    /* closing waits a moment so the pointer can travel from the trigger to the panel */
    transition: opacity 160ms var(--ease-out) 120ms, transform 160ms var(--ease-out) 120ms, visibility 0s linear 280ms;
  }
  .js .mega { visibility: hidden; opacity: 0; transform: translateY(-6px); }
  html:not(.js) .mega { display: none; }
  html:not(.js) .has-menu:hover .mega { display: block; }
  .mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .has-menu.is-open .mega,
  html:not(.js) .has-menu:focus-within .mega { display: block; visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (min-width: 62.0625rem) and (hover: hover) {
  .has-menu:hover .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .has-menu:hover .menu-toggle svg { transform: rotate(180deg); }
}

@media (max-width: 62rem) {
  .has-menu { flex-wrap: wrap; }
  .has-menu > a { flex: 1; }
  .menu-toggle { width: 3rem; margin-left: 0; border-bottom: 1px solid var(--line); border-radius: 0; align-self: stretch; }
  .mega { flex-basis: 100%; display: none; padding: var(--space-3) 0 var(--space-4); border-bottom: 1px solid var(--line); }
  .has-menu.is-open .mega, html:not(.js) .mega { display: block; padding-left: var(--space-3); }
  .mega-cols { display: grid; gap: var(--space-4); }
  .mega-group, .mega ul a, .mega-all { padding-inline: var(--space-1) 0; }
  .mega ul a { padding-block: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) { .mega { transform: none !important; } }

/* Projects: cards generated from src/content/projects.md */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-4); }
.project { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.project h2 { font-size: 1.375rem; line-height: 1.25; margin: 0; }
.project ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: grid; gap: var(--space-1); font-size: 0.9375rem; color: var(--ink-2); }
.project ul li { padding: 0; }
.project ul li::before { content: none; }
.project p { margin: 0; }

/* Photography in page heroes (stock building photos; see docs/image-credits.md) */
.page-hero .hero-photo { max-width: 34rem; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 55.99rem) { .page-hero .hero-photo { max-width: 100%; } }

/* Home hero: full-width looping video behind the headline (Pexels footage; see
   docs/image-credits.md). A dark gradient sits between video and text so white
   text keeps at least 4.5:1 contrast over the brightest frames. */
.hero-full {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: clamp(36rem, 82svh, 54rem);
  padding-block: clamp(6rem, var(--space-8) + 8vw, 10rem) clamp(var(--space-7), var(--space-6) + 4vw, 5.5rem);
  background: var(--hero-bg); color: var(--paper);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--scrim-1) 0%, var(--scrim-2) 45%, var(--scrim-3) 100%),
    linear-gradient(0deg, var(--scrim-4) 0%, transparent 55%);
}
.hero-full h1.display { color: var(--paper); max-width: 15ch; }
.hero-full .lead { color: var(--hero-lead); max-width: 52ch; }
.hero-full .cta-row .phone, .hero-full .cta-row .phone span { color: var(--paper); }
.hero-full .credline { color: var(--hero-muted); border-top-color: var(--line-on-dark); }
.hero-full .credline strong { color: var(--paper); }
.video-toggle {
  position: absolute; right: var(--space-4); bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: var(--space-2) 0.875rem;
  font: 600 0.875rem/1 var(--font-body); color: var(--ink); background: var(--paper);
  border: 0; border-radius: var(--radius); box-shadow: 0 1px 3px var(--shadow-soft); cursor: pointer;
}
.video-toggle:hover { background: var(--mist); }
.vt-icon { width: 0.75rem; height: 0.75rem; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.hero-full.is-paused .vt-icon { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 55.99rem) {
  .hero-full { min-height: 0; padding-block: var(--space-8) 5.5rem; }
  .hero-media::after { background: var(--scrim-mobile); }
}
