/* fonts: next/font/local output, self-hosted (public/fonts) */
@font-face{font-family:sddsSans;src:url(../fonts/inter.woff2) format("woff2");font-display:swap;font-weight:100 900;font-style:normal}
@font-face{font-family:"sddsSerif";src:url(../fonts/source-serif.woff2) format("woff2");font-display:swap;font-weight:200 900;font-style:normal}
@font-face{font-family:"sddsSerif";src:url(../fonts/source-serif-italic.woff2) format("woff2");font-display:swap;font-weight:200 900;font-style:italic}
:root{--font-sans:"sddsSans",-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif;--font-serif:"sddsSerif",Georgia,Times New Roman,serif}

/* ===== app/globals.css ===== */
/* ==========================================================================
   SAME DAY DOOR SERVICE - DESIGN SYSTEM
   Palette from the Local Howl Brand Guide. Motif from the real logo:
   a hexagon badge containing an open double door.
   Rule from the brand guide: "Signal, don't shout." Amber is for calls to
   action and critical emphasis only. Navy creates confidence. White space
   creates clarity. Photography supplies the colour.
   ========================================================================== */

:root {
  /* --- Brand palette (Local Howl Brand Guide, page 8) --- */
  --navy: #142a33;          /* Threshold Navy  */
  --steel: #58747b;         /* Service Steel   */
  --amber: #d79542;         /* Signal Amber    */
  --paper: #faf8f3;         /* Open Field      */

  /* --- Extended ramp built from those four --- */
  --navy-950: #081116;
  --navy-900: #0c1a20;
  --navy-800: #102229;
  --navy-700: #1b3a45;
  --navy-600: #24505e;

  --steel-400: #7e979d;
  --steel-300: #a3b7bb;
  --steel-200: #c7d4d7;
  --steel-100: #e3eaeb;

  --amber-bright: #e8ab5c;
  --amber-deep: #b87a2e;

  --paper-warm: #f3ede2;
  --paper-edge: #e6ddcd;

  /* Logo blue. Reserved for live / automated / interactive signals only,
     so the real logo never looks out of place on the page. */
  --signal-blue: #3880f8;

  --ink: #10202a;
  --ink-soft: #35505c;
  --ink-mute: #546d79;     /* 4.7:1 on the warm cream; it was 4.1:1 at #5d7682 */
  /* Small text on navy and deep surfaces. Service Steel itself is about 3:1 on
     navy and 3.8:1 on navy-950, under AA for small text, so --steel stays for
     rules, strokes, icons and large numerals, and anything meant to be read
     on a dark panel uses this: 7.1:1 on navy, 9.1:1 on navy-950, 5.9:1 on the
     translucent cards that sit on navy. */
  --ink-mute-dark: var(--steel-300);
  /* The same two hues one step darker, for small text on the creams: Service
     Steel is 4.3:1 on the warm cream and Signal Amber's deep tone 3.4:1 on
     paper, both under AA at label size. These read as the same colors. */
  --steel-ink: #526c73;   /* 4.8:1 on warm, 5.3:1 on paper */
  --amber-ink: #8a5a1c;   /* 5.1:1 on warm, 5.6:1 on paper (as .fo-cat) */

  /* --- Semantic --- */
  --bg: var(--paper);
  --fg: var(--ink);
  --rule: rgba(20, 42, 51, 0.12);
  --rule-strong: rgba(20, 42, 51, 0.22);
  --rule-dark: rgba(227, 234, 235, 0.16);

  /* --- Type --- */
  --font-display: var(--font-serif), Georgia, 'Times New Roman', serif;
  --font-body: var(--font-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* fluid scale */
  --t-hero: clamp(2.35rem, 1.5rem + 3.1vw, 4.5rem);
  --t-h1: clamp(2.25rem, 1.35rem + 3.4vw, 4.1rem);
  --t-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.9rem);
  --t-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --t-lede: clamp(1.08rem, 0.99rem + 0.42vw, 1.36rem);
  --t-body: clamp(1rem, 0.97rem + 0.16vw, 1.08rem);
  --t-small: 0.9rem;
  --t-eyebrow: 0.74rem;

  /* --- Rhythm --- */
  --section: clamp(4.5rem, 3rem + 6.2vw, 9rem);
  --section-tight: clamp(3rem, 2rem + 4vw, 5.5rem);
  --gutter: clamp(1.15rem, 0.7rem + 2.1vw, 2.75rem);
  --max: 1280px;
  --max-narrow: 760px;

  /* --- Form --- */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 32, 0.06), 0 2px 8px rgba(12, 26, 32, 0.05);
  --shadow: 0 2px 6px rgba(12, 26, 32, 0.07), 0 12px 32px rgba(12, 26, 32, 0.09);
  --shadow-lg: 0 4px 12px rgba(12, 26, 32, 0.09), 0 28px 70px rgba(12, 26, 32, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* The fixed phone call bar (900px and under): its height, border included.
     The body's bottom padding and anything that must clear the bar use this. */
  --callbar-h: 3.625rem;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr-h, 88px); }
.anchor-estimate { scroll-margin-top: 1rem; }
/* In the landing build a link with no page to go to stays as plain content. */
[data-static] { cursor: default; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.017em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.25; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--amber); color: var(--navy-950); }

/* Focus ring. The surface decides the colour, not the component. Signal Amber
   is only 2.2 to 2.5:1 on paper, cream and white, under the 3:1 a focus ring
   needs, so the light surfaces get the amber ink one step darker (5.1 to 5.9:1)
   and the navy surfaces keep Signal Amber (5.9:1 on navy, 7.5:1 on navy-950).
   Dark surfaces switch --focus-ring back to amber in the list below. */
:root { --focus-ring: var(--amber-ink); }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
.dark, .deep, .hero, .hx, .phero, .ftr, .crail, .callbar, .ticker-wrap, .owlb,
.sa-help, .contact-alert, .vp-quote, .dt-now, .wm-cell, .ror-q,
.p03-night, .p10-sch, .p11-route-cta, .p12-card-end, .p06lc-seg .is-on { --focus-ring: var(--amber); }
/* light cards set inside a navy band go back to the ink */
.cl-card, .p04st-card, .p07-ans, .p08st-note { --focus-ring: var(--amber-ink); }
/* on an amber panel the ring is navy (7:1) */
.hub-cta, .emg-band, .cc-verdict.is-call { --focus-ring: var(--navy-950); }
/* Many components draw their own ring as `2px solid var(--amber)`. Width and
   offset stay theirs; the colour follows the surface, so a ring on a cream
   panel never drops to 2.4:1. Labels that ring a focused radio or checkbox
   (the estimate form's urgency and contact choices) follow it too. */
:focus-visible { outline-color: var(--focus-ring) !important; }
:has(> input:focus-visible) { outline-color: var(--focus-ring) !important; }
/* A ring drawn over a photograph (the Our Work strip on the homepage) can land
   on any colour, so the amber band gets a navy band inside it: one of the two
   stands out from the picture underneath. Both are drawn on the scrim, which
   sits over the photo (the tile's own outline is painted under it). */
.wm-open:focus-visible .wm-scrim { box-shadow: inset 0 0 0 3px var(--focus-ring), inset 0 0 0 6px var(--navy-950); }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--max-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.section-tight { padding-block: var(--section-tight); position: relative; overflow-x: clip; }

.dark { background: var(--navy); color: var(--paper); }
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.deep { background: var(--navy-950); color: var(--paper); }
.warm { background: var(--paper-warm); }

/* Film grain, dark surfaces only. Very low opacity: a texture, not an effect. */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- type helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dark .eyebrow, .deep .eyebrow, .phero .eyebrow { color: var(--amber); }
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.lede { font-size: var(--t-lede); line-height: 1.58; color: var(--ink-soft); }
.dark .lede, .deep .lede { color: var(--steel-200); }

.display { font-family: var(--font-display); }
.serif-quote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1rem + 1.9vw, 2.5rem);
  line-height: 1.3;
  font-style: italic;
  letter-spacing: -0.015em;
}

/* Ghost watermark typography behind section headers.
   The strongest single "expensive" signal in the system. */
.ghost {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 2rem + 15vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--rule-strong);
  color: transparent;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  opacity: 0.55;
}
.dark .ghost, .deep .ghost { -webkit-text-stroke-color: var(--rule-dark); opacity: 0.9; }
.ghost-tl { top: -0.18em; left: -0.04em; }
.ghost-tr { top: -0.18em; right: -0.04em; }
/* The ghost rises a little above its section. Under a solid amber band that
   reads as outlines scratched into the band, so there the section clips it. */
.emg-band + .section { overflow: clip; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease),
              box-shadow .28s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; }

.btn-primary { background: var(--amber); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(20, 42, 51, 0.04); transform: translateY(-2px); }

.dark .btn-ghost, .deep .btn-ghost, .hero .btn-ghost, .phero .btn-ghost,
.hx-thr .btn-ghost, .hx-ap .btn-ghost, .hx-cyc .btn-ghost,
.hx-bp .btn-ghost, .hx-wall .btn-ghost, .hx-cross .btn-ghost { color: var(--paper); border-color: rgba(227,234,235,0.34); }
.dark .btn-ghost:hover, .deep .btn-ghost:hover, .hero .btn-ghost:hover, .phero .btn-ghost:hover,
.hx-thr .btn-ghost:hover, .hx-ap .btn-ghost:hover, .hx-cyc .btn-ghost:hover,
.hx-bp .btn-ghost:hover, .hx-wall .btn-ghost:hover, .hx-cross .btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: rgba(215,149,66,0.08); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* animated underline link */
.ulink {
  text-decoration: none;
  position: relative;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
}
.ulink::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }
.ulink svg { transition: transform .32s var(--ease); }
.ulink:hover svg { transform: translateX(4px); }
.dark .ulink, .deep .ulink, .phero .ulink { color: var(--amber); }
/* A standalone link is a tap target on a touch screen: at least 44px tall.
   The padding is whatever the line lacks of 44px, so the words stay put and
   the hover underline still sits 3px under them. Desktop keeps the tight box.
   (min-height covers browsers without the lh unit.) */
@media (max-width: 900px), (pointer: coarse) {
  .ulink { min-height: 44px; padding-block: max(0px, calc((44px - 1lh) / 2)); }
  .ulink::after { bottom: calc(max(0px, calc((44px - 1lh) / 2)) - 3px); }
}

/* ---------------------------------------------------------------- motif */
/* The hexagon comes straight from the logo badge. Used for icon chips,
   step numbers, list separators and avatars. */
.hex {
  display: grid;
  place-items: center;
  flex: none;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: var(--navy);
  color: var(--amber);
  width: 46px; height: 46px;
}
.hex-lg { width: 62px; height: 62px; }
.hex-sm { width: 30px; height: 30px; }
.hex-amber { background: var(--amber); color: var(--navy-950); }
.hex-paper { background: var(--paper); color: var(--navy); }
.hex-outline { background: transparent; border: 0; position: relative; color: var(--steel); }

/* Threshold frame: two hairlines like door jambs, the brand guide's
   "door-frame lines, measured grids" principle made literal. */
.framed { position: relative; }
.framed::before, .framed::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule) 12%, var(--rule) 88%, transparent);
  pointer-events: none;
}
.framed::before { left: 0; }
.framed::after { right: 0; }

/* ---------------------------------------------------------------- cards */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease);
  position: relative;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rule-strong); }
.dark .card, .deep .card {
  background: rgba(250, 248, 243, 0.045);
  border-color: var(--rule-dark);
  backdrop-filter: blur(2px);
}
.dark .card-hover:hover, .deep .card-hover:hover { background: rgba(250, 248, 243, 0.075); border-color: rgba(227,234,235,0.3); }

.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.2vw, 1.6rem); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* No-JS safety: never let a reveal hide real content. */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- misc */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.dark .rule, .deep .rule { background: var(--rule-dark); }

.sr-only {
  position: absolute; 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: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--navy-950);
  padding: 0.8rem 1.2rem; font-weight: 600; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- live status */
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  white-space: nowrap;
}
.live strong { font-weight: 700; color: var(--navy); }
.dark .live, .deep .live, .hero .live, .phero .live {
  background: rgba(8, 17, 22, 0.42);
  border-color: var(--rule-dark);
  color: var(--steel-200);
  backdrop-filter: blur(8px);
}
.dark .live strong, .deep .live strong, .hero .live strong, .phero .live strong { color: var(--paper); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--steel-400); flex: none; }
.live-open .live-dot { background: #3fbf6d; box-shadow: 0 0 0 0 rgba(63, 191, 109, 0.6); animation: pulse 2.4s infinite; }
.live-closed .live-dot { background: var(--amber); }
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(63, 191, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 109, 0); }
}
@media (max-width: 520px) { .live-detail { display: none; } }
.live-mini { min-width: 7.4rem; justify-content: center; padding: 0.3rem 0.7rem; font-size: 0.76rem; font-weight: 600; }

/* ---------------------------------------------------------------- header */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--amber); transform-origin: 0 50%; transform: scaleX(0);
}

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.hdr-stuck { border-bottom-color: var(--rule); box-shadow: 0 1px 24px rgba(12, 26, 32, 0.06); }

.hdr-bar { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem); min-height: 78px; }
/* the hexagon's points need clear space above and below, as in the footer,
   so the logo is a little smaller and padded rather than filling the bar */
.hdr-logo { display: block; flex: none; padding-block: clamp(6px, 0.6vw, 9px); }
.hdr-logo img { width: clamp(104px, 11vw, 152px); height: auto; }
@media (max-width: 900px) { .hdr-bar { min-height: 68px; } }

.hdr-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.hdr-item { position: static; }
.hdr-link {
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.75rem; border-radius: var(--r-sm);
  font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; position: relative;
  transition: color .24s var(--ease);
}
.hdr-link::after {
  content: ''; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.34rem;
  height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.hdr-link:hover { color: var(--navy); }
.hdr-link:hover::after, .hdr-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr-link.is-active { color: var(--navy); }

.caret {
  width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); opacity: 0.6;
}
/* the label goes to the page, the caret opens the menu: two targets, so the
   hub is one click away and the menu still works by keyboard and touch */
.hdr-split { display: inline-flex; align-items: center; }
.hdr-split .hdr-link-main { padding-right: 0.3rem; }
.hdr-split .hdr-link-main::after { right: 0.3rem; }
.hdr-caret {
  display: inline-grid; place-items: center; width: 26px; height: 34px; margin-left: -0.1rem;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-soft);
  transition: color .24s var(--ease), background-color .24s var(--ease);
}
.hdr-caret:hover, .hdr-caret[aria-expanded="true"] { color: var(--navy); background: rgba(20, 42, 51, 0.05); }
.hdr-caret[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-1px, -1px); opacity: 0.9; }
.caret { transition: transform .26s var(--ease); }

.hdr-cta { display: flex; align-items: center; gap: 0.9rem; flex: none; }
.hdr-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 0.18rem; line-height: 1; }
.hdr-tel {
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 700;
  color: var(--navy); text-decoration: none; letter-spacing: -0.015em;
}
.hdr-tel:hover { color: var(--amber-deep); }

/* --- mega menu --- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px var(--gutter) 0;
  animation: megaIn .26s var(--ease-out) both;
  pointer-events: none;
}
.mega-inner { pointer-events: auto; }
/* Centred on the same grid as the rest of the page, so it lines up with the
   logo on the left and the call-to-action on the right. */
.mega > .mega-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
.mega-sm > .mega-inner { max-width: 720px; margin-left: auto; margin-right: 0; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } }
.mega-inner {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem 2rem; padding: 1.7rem 2rem 1.3rem; }
.mega-col + .mega-col {}
.mega-head {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--steel); margin: 0.5rem 0 0.55rem;
}
.mega-col ul { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.mega-col a, .area-grid a {
  display: block; padding: 0.46rem 0.6rem; border-radius: var(--r-sm);
  text-decoration: none; transition: background .2s var(--ease);
}
.mega-col a:hover, .area-grid a:hover { background: var(--paper-warm); }
.mega-t { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.mega-t em { font-style: normal; font-size: 0.68rem; color: var(--amber-deep); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.4rem; }
.mega-d { display: block; font-size: 0.78rem; color: var(--ink-mute); line-height: 1.45; margin-top: 0.1rem; }

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.15rem 0.8rem; padding: 1.4rem 1.6rem 1.1rem; }

.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem 1.7rem; background: var(--paper-warm); border-top: 1px solid var(--rule);
}
.mega-foot p { margin: 0; font-size: 0.87rem; color: var(--ink-soft); }
.mega-all {
  display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem; margin-left: -0.45rem; border-radius: var(--r);
  color: var(--navy); transition: background-color .2s var(--ease);
}
.mega-all:hover { background: rgba(255, 255, 255, 0.7); }
.mega-all > svg { color: var(--amber-deep); transition: transform .26s var(--ease-out); }
.mega-all:hover > svg { transform: translateX(3px); }
.mega-all-n {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--paper); background: var(--navy); border-radius: var(--r-sm);
}
.mega-foot-alt { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* --- burger + mobile --- */
/* 44px square: the smallest comfortable tap target */
.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; width: 20px; height: 1.8px; background: var(--navy); transition: transform .32s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger span.x:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger span.x:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--hdr-h, 78px) 0 0; z-index: 95; background: var(--paper);
  transform: translateX(100%); transition: transform .42s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav-open { transform: none; }
.mnav-scroll { padding: 1.6rem var(--gutter) 7rem; }
.mnav-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-ink); margin: 1.6rem 0 0.7rem; }
.mnav-label:first-child { margin-top: 0; }
.mnav-label-link { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.mnav-all {
  display: block; margin: 0 0 1.2rem; padding: 0.85rem 1rem; border-radius: var(--r);
  background: var(--navy); color: var(--paper); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.mnav-group { margin-bottom: 1.1rem; }
.mnav-group-t { font-size: 0.8125rem; font-weight: 700; color: var(--steel); margin: 0 0 0.3rem; letter-spacing: 0.06em; }
.mnav-group a, .mnav-areas a {
  display: block; padding: 0.62rem 0; font-size: 1.02rem; font-weight: 600;
  color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mnav-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
/* landing build: the menu is the page's sections, set large */
.mnav-landing { display: grid; }
.mnav-landing a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.012em;
  color: var(--navy); text-decoration: none;
}
.mnav-landing a svg { flex: none; color: var(--amber-deep); }
/* the estimate item reads amber, in the amber ink: Signal Amber's deep tone is
   3.4:1 on paper, under AA at this weight; the ink is 5.6:1. The arrow keeps
   the deep tone (an icon needs 3:1). */
.mnav-landing a:last-child { color: var(--amber-ink); }
.mnav-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.mnav-foot .btn { width: 100%; }

/* --- fixed mobile call bar --- */
.callbar { display: none; }
/* The full navigation needs about 1180px. Below that it folds into the menu
   panel while the phone number and the Request Service button stay in the bar;
   below 900px those move to the fixed call bar. */
@media (max-width: 1179px) {
  .hdr-nav { display: none; }
  .burger { display: block; }
  .hdr-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .hdr-btn { display: none; }
  .hdr-phone { display: none; }
  /* The bar is exactly --callbar-h tall (plus the phone's home-indicator
     inset), and the body reserves the same, so nothing ends up under it. */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 94;
    height: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
    background: var(--navy); border-top: 1px solid var(--navy-700);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0 0.5rem; font-size: 0.94rem; font-weight: 700; text-decoration: none;
  }
  .callbar-tel { color: var(--paper); }
  .callbar-cta { background: var(--amber); color: var(--navy-950); }
  body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px)); }
  /* Keyboard focus: the bar's two halves fill it edge to edge, so their ring
     sits inside them (amber on the navy half, navy on the amber half), and a
     focused element further up the page scrolls clear of the bar, never under it. */
  .callbar a:focus-visible { outline-offset: -5px; }
  .callbar-cta { --focus-ring: var(--navy-950); }
  html { scroll-padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px) + 0.75rem); }
}
@media (max-width: 1080px) { .mega-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- footer */
.ftr { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem; position: relative; }
.ftr-top { display: grid; grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.ftr-logo { width: 182px; height: auto; margin-bottom: 1.3rem; }
.ftr-line { font-size: 1.12rem; color: var(--paper); line-height: 1.4; margin-bottom: 1.1rem; max-width: 22ch; letter-spacing: -0.01em; }
.ftr-rating { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: var(--steel-300); margin-bottom: 1.1rem; white-space: nowrap; }
.stars { display: inline-flex; gap: 1px; color: var(--amber); }
.stars svg { fill: currentColor; }

.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.8rem; }
.ftr-h { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.85rem; }
.ftr .ftr-h a { color: inherit; text-decoration: none; }
.ftr .ftr-h a:hover { color: var(--paper); }
.ftr-cols ul { list-style: none; margin: 0; padding: 0; }
.ftr-cols li { margin-bottom: 0.44rem; }
.ftr-cols a { font-size: 0.87rem; color: var(--steel-300); text-decoration: none; transition: color .22s var(--ease); }
.ftr-cols a:hover { color: var(--paper); }
.ftr-h > span { font-size: inherit; color: inherit; }
.ftr-areas-line { font-size: 0.87rem; line-height: 1.7; color: var(--steel-300); margin: 0; max-width: 24ch; }
.ftr-areas { columns: 2; column-gap: 1rem; }

.ftr-contact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  margin-top: clamp(2.4rem, 1.5rem + 3vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--rule-dark);
}
.ftr-contact-item { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; }
.ftr-contact-item em { display: block; font-style: normal; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute-dark); margin-bottom: 0.15rem; }
.ftr-contact-item strong { display: block; font-size: 0.94rem; font-weight: 600; color: var(--paper); line-height: 1.35; }
a.ftr-contact-item:hover strong { color: var(--amber); }

.ftr-notes { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule-dark); }
/* the promise and legal lines: small, so they get the readable grey */
.ftr-notes p { font-size: 0.79rem; line-height: 1.6; color: var(--ink-mute-dark); max-width: 78ch; margin-bottom: 0.5rem; }

.ftr-base {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-dark);
}
.ftr-base p { margin: 0; font-size: 0.79rem; color: var(--ink-mute-dark); }
.ftr-mark { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--steel-400) !important; }
.ftr .ftr-credit a { color: var(--amber); text-decoration: none; transition: color .22s var(--ease); }
.ftr .ftr-credit a:hover { color: var(--amber-bright); text-decoration: underline; text-underline-offset: 0.2em; }
/* phones: the promise lines and the base line are read, so 13px, not 12.6 */
@media (max-width: 600px) { .ftr-notes p, .ftr-base p { font-size: 0.8125rem; } }

@media (max-width: 920px) { .ftr-top { grid-template-columns: 1fr; } .ftr-cols { grid-template-columns: repeat(2, 1fr); } .ftr-contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ftr-cols { grid-template-columns: 1fr; } .ftr-areas { columns: 2; } }

/* ---------------------------------------------------------------- moving strips */
/* The Pause button for anything that moves on its own (the ticker, the
   reviews strip and the Our Work marquee; see MotionStrip in
   components/Ticker.jsx). Pressed means paused: the button turns amber and
   its face reads Play. Where a strip does not move (reduced motion, touch
   screens) the button is hidden, since there is nothing to pause. */
.motion { position: relative; }
.motion-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 36px; padding: 0.35rem 0.9rem; cursor: pointer;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent;
  font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.motion-btn:hover { border-color: var(--navy); color: var(--navy); }
/* a full-size tap target where there is no hover, i.e. on touch screens */
@media (hover: none) { .motion-btn { min-height: 44px; } }
.dark .motion-btn, .deep .motion-btn, .ticker-wrap .motion-btn { border-color: var(--rule-dark); color: var(--steel-200); }
.dark .motion-btn:hover, .deep .motion-btn:hover, .ticker-wrap .motion-btn:hover { border-color: var(--steel-300); color: var(--paper); }
/* the paused state is read from the strip's .is-paused, set by MotionStrip */
.motion.is-paused .motion-btn,
.dark .motion.is-paused .motion-btn, .deep .motion.is-paused .motion-btn { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.motion-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* the two faces share one cell, so the button keeps the width of the wider
   (Pause) and does not shift under the pointer when it is pressed */
.motion-btn-face { display: grid; }
.motion-btn-face > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; }
.motion-btn-play, .motion.is-paused .motion-btn-pause { visibility: hidden; }
.motion.is-paused .motion-btn-play { visibility: visible; }
@media (prefers-reduced-motion: reduce), (hover: none) { .motion-btn { display: none; } }

/* ---------------------------------------------------------------- ticker */
.ticker-wrap { background: var(--navy); }
.ticker {
  overflow: hidden; background: var(--navy); color: var(--steel-200);
  border-block: 1px solid var(--navy-700); padding-block: 0.85rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker-wrap:hover .ticker-track, .ticker-wrap.is-paused .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding-inline: 1.6rem; white-space: nowrap;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
}
.ticker-item svg { color: var(--amber); opacity: 0.85; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }
/* the button rides the right end of the band, on its own navy so the facts
   slide under it rather than through it */
.ticker-wrap .motion-btn {
  position: absolute; z-index: 1; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: var(--navy); box-shadow: -1.4rem 0 1.2rem -0.2rem var(--navy);
}
/* The same moving line with its icons on every screen size (the client
   asked for the phone to match the desktop). Under reduced motion only, it
   stands still: one copy of the facts, wrapped onto centered rows. */
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track {
    animation: none; width: auto; flex-wrap: wrap; justify-content: center;
    row-gap: 0.4rem; padding-inline: var(--gutter);
  }
  .ticker-dup { display: none; }
}
/* On a touch screen there is no hover to pause the line, so the Pause button
   stays, sized for a thumb, and the facts slide under it. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .ticker-wrap .motion-btn { display: inline-flex; min-height: 40px; right: 0.5rem; padding-inline: 0.7rem; }
}
@media (max-width: 600px) {
  .ticker { padding-block: 0.75rem; }
  .ticker-item { padding-inline: 1.1rem; font-size: 0.8rem; }
}

/* ==========================================================================
   HERO - The Threshold. Door leaves on hinges; the active leaf stands open.
   Portrait photography is the native fit, which is what this archive is.
   ========================================================================== */
.hx {
  position: relative;
  background: var(--navy-950);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(600px, 82vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(2.5rem, 4vh, 4rem);
  /* The lead form is docked over the hero's bottom edge, so the caption row
     needs clearance or it disappears behind the card. */
  padding-bottom: clamp(7rem, 11vh, 9.5rem);
}
/* On the concepts page nothing is docked below, so the hero can close up. */
.pick ~ .hx { padding-bottom: clamp(1.5rem, 3vh, 2.5rem); min-height: clamp(560px, 78vh, 820px); }
.hx-inner { position: relative; z-index: 5; flex: 1; display: flex; align-items: center; }
.hx-copy { max-width: 42rem; }
.hx .hero-h1 { margin-bottom: 1.2rem; }
.hx .hero-lede { margin-bottom: 1.6rem; max-width: 46ch; }
.hero-fill-7 { animation-duration: 7s !important; }

.thr-foot {
  position: relative; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 1.6rem;
}
.thr-caption { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; max-width: 34rem; }
.thr-caption span {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--amber);
}
.thr-caption { font-size: 0.89rem; color: var(--steel-200); }

/* ---------------------------------------------------------------- A: THRESHOLD */
/* The row: --x0 is where the headline ends (measured in Hero.jsx; 52% until
   then). Places 0 and 1 share the space behind the headline, place 2 is the
   open leaf in the clear, places 3 and 4 wait to its right. Every change
   moves each leaf one place, so left and width are what animate. */
.hx-thr { --x0: 52%; --gap: 3px; }
.hx-thr .thr-grid { position: absolute; inset: 0; z-index: 0; }
.leaf-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 20%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--navy-900); overflow: hidden;
  transform-origin: left center;
  transform: perspective(1800px) rotateY(34deg) scale(0.97);
  opacity: 0.72;
  filter: saturate(0.82) brightness(0.86);
  transition:
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 1.1s var(--ease),
    filter 1.1s var(--ease);
}
/* places animate only once Hero.jsx has measured --x0, so the row does not
   drift from the 52% default into place on every load */
.hx-thr[data-measured] .leaf-panel {
  transition:
    left 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 1.1s var(--ease),
    filter 1.1s var(--ease);
}
.leaf-k0 { left: 0; width: calc(var(--x0) / 2 - var(--gap)); }
.leaf-k1 { left: calc(var(--x0) / 2); width: calc(var(--x0) / 2 - var(--gap)); }
.leaf-k2 { left: var(--x0); width: calc((100% - var(--x0)) * 0.64 - var(--gap)); }
.leaf-k3 { left: calc(var(--x0) + (100% - var(--x0)) * 0.64); width: calc((100% - var(--x0)) * 0.18 - var(--gap)); }
.leaf-k4 { left: calc(var(--x0) + (100% - var(--x0)) * 0.82); width: calc((100% - var(--x0)) * 0.18); }
/* the leaf that wraps round: fade out, jump while unseen, fade back in. It
   goes under the others so its fading ghost never paints over a moving leaf. */
.hx-thr .leaf-panel.is-wrap, .hx-thr[data-measured] .leaf-panel.is-wrap {
  opacity: 0; z-index: -1;
  transition: opacity 0.3s var(--ease), left 0s linear 0.3s, width 0s linear 0.3s, transform 0s linear 0.3s, filter 0s linear 0.3s;
}
.leaf-panel.is-open {
  transform: perspective(1800px) rotateY(0deg) scale(1);
  opacity: 1;
  filter: none;
  z-index: 2;
}
.leaf-panel:hover:not(.is-open):not(.is-wrap) { opacity: 0.92; filter: none; transform: perspective(1800px) rotateY(20deg) scale(0.985); }
.leaf-photo { position: absolute; inset: 0; }
.leaf-photo picture, .leaf-photo img { width: 100%; height: 100%; }
.leaf-photo img { object-fit: cover; object-position: var(--focus, center 45%); }
.leaf-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,17,22,0.55), rgba(8,17,22,0.04) 34%, rgba(8,17,22,0.28));
}
/* the open leaf is in the clear now, so its tag needs its own shade on a bright sky */
.leaf-panel.is-open .leaf-veil {
  background:
    linear-gradient(to bottom, rgba(8,17,22,0.62), transparent 24%),
    linear-gradient(to top, rgba(8,17,22,0.8), transparent 58%);
}
/* hinge knuckles on the pivot edge */
.leaf-hinge { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; }
.leaf-hinge i { display: block; width: 5px; height: 26px; border-radius: 2px; background: rgba(215,149,66,0.5); }
.leaf-panel.is-open .leaf-hinge i { background: var(--amber); }
.leaf-tag {
  position: absolute; left: 0.9rem; top: 1rem; right: 0.6rem;
  display: flex; flex-direction: column; gap: 0.2rem; text-align: left;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel-200);
}
.leaf-tag em { font-style: normal; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; color: var(--amber); text-transform: none; }
/* The two leaves standing behind the headline lose their tags: faint text
   there only collides with the badge and the headline. The tag fades back
   in as its leaf moves into the clear. */
.leaf-tag { transition: opacity .6s var(--ease); }
.leaf-k0 .leaf-tag, .leaf-k1 .leaf-tag { opacity: 0; }
/* the two narrow leaves on the right keep only their number until there is room for the label */
@media (max-width: 1200px) { .leaf-k3 .leaf-tag-l, .leaf-k4 .leaf-tag-l { display: none; } }
/* The shade that keeps the headline readable ends where the open leaf
   begins, so the open photograph is never under it. */
.hx-thr .thr-scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to right,
    rgba(8,17,22,0.94) 0%,
    rgba(8,17,22,0.8) calc(var(--x0) * 0.55),
    rgba(8,17,22,0.34) calc(var(--x0) - 3rem),
    transparent var(--x0));
}
.hx-thr .hx-inner, .hx-thr .thr-foot { pointer-events: none; }
/* the words themselves take the pointer (select text, no accidental slide
   change); only the empty space around them lets clicks reach the leaves */
.hx-thr .hx-copy, .hx-thr .thr-caption, .hx-thr .hx-inner a, .hx-thr .thr-foot button { pointer-events: auto; }
/* the counter and controls sit on a plate so they read on any photograph */
.hx-thr .hero-nav {
  pointer-events: auto;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem; border-radius: var(--r);
  background: rgba(8, 17, 22, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hx-thr .hero-count { color: var(--steel-200); }

@media (max-width: 900px) {
  .hx-thr .thr-grid { display: block; }
  .leaf-panel:not(.is-open) { display: none; }
  .leaf-panel { position: absolute; inset: 0; width: auto; transform: none !important; opacity: 1; filter: none; }
  .leaf-panel .leaf-hinge, .leaf-panel .leaf-tag { display: none; }
  .hx-thr .thr-scrim { background: linear-gradient(to top, rgba(8,17,22,0.96) 22%, rgba(8,17,22,0.55) 72%, rgba(8,17,22,0.55)); }
  /* clear the fixed call bar so the caption and controls stay reachable */
  .hx { padding-bottom: calc(clamp(2rem, 5vh, 3rem) + var(--callbar-h) + 4px); min-height: auto; }
  .thr-foot { gap: 1rem; }
  .hero-badge { font-size: 0.64rem; letter-spacing: 0.12em; }
}


/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(2.5rem, 4vh, 4rem);
  padding-bottom: clamp(6rem, 9vh, 8rem);
  background: var(--navy-950);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}
.hero-layer.is-on { opacity: 1; }
.hero-layer picture, .hero-layer img { width: 100%; height: 100%; }
.hero-layer img { object-fit: cover; object-position: var(--focus, center 45%); }

/* Photography supplies the colour. The scrim just buys legibility. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,17,22,0.93) 0%, rgba(8,17,22,0.8) 26%, rgba(8,17,22,0.44) 48%, rgba(8,17,22,0.12) 70%, rgba(8,17,22,0.3) 100%),
    linear-gradient(to top, rgba(8,17,22,0.88) 0%, rgba(8,17,22,0.18) 42%, transparent 66%);
}

/* Threshold curtain, opens once on load. Two leaves, like the logo glyph. */
.threshold { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: var(--navy-950);
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
}
.leaf-l { left: 0; transform: translateX(0); }
.leaf-r { right: 0; transform: translateX(0); }
.hero-open .leaf-l { transform: translateX(-101%); }
.hero-open .leaf-r { transform: translateX(101%); }
@media (prefers-reduced-motion: reduce) {
  .leaf { display: none; }
}

.hero-inner { position: relative; z-index: 4; flex: 1; display: flex; align-items: center; }
.hero-copy { max-width: 46rem; }

.hero-badge .badge-long { display: inline; }
.hero-badge .badge-short { display: none; }
@media (max-width: 520px) {
  .hero-badge .badge-long { display: none; }
  .hero-badge .badge-short { display: inline; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(215, 149, 66, 0.35);
  background: rgba(215, 149, 66, 0.09);
  padding: 0.42rem 0.85rem; border-radius: 999px;
  margin: 0 0 1.3rem;
}

.hero-h1 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; font-size: var(--t-hero); line-height: 1.04; letter-spacing: -0.028em; margin: 0 0 1.25rem; max-width: 16ch; }
.hero-h1 > h1 { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.hero-line { display: block; overflow: hidden; }
.hero-line-2 { color: var(--amber); }
.hero-line > * { display: block; }

.hero-lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.16rem); line-height: 1.62; color: var(--steel-200);
  max-width: 50ch; margin: 0 0 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }

.hero-proof {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.87rem; color: var(--steel-200);
}
.hero-proof strong { color: var(--paper); font-weight: 700; }
/* the local-team line, under the stars. Hero.jsx measures its words, not its
   box, so it can be a full-width row without pushing the open leaf right. */
.hero-local {
  display: flex; align-items: center; gap: 0.55rem; margin: 0.7rem 0 0;
  font-size: 0.87rem; line-height: 1.5; color: var(--steel-200);
}
.hero-local svg { flex: none; color: var(--amber); }
.hero-local .local-short { display: none; }
.hero-sep { width: 1px; height: 18px; background: var(--rule-dark); }

/* Phones: the slide controls have to show above the fixed call bar without
   scrolling. Two lines of the local line was enough to push them under it, so
   a phone gets the short line and closer spacing. The controls come before the
   caption, so captions of one or two lines never move them under a thumb. */
@media (max-width: 900px) {
  .hx-thr { padding-top: 1.25rem; }
  .hx-thr .hero-badge { margin-bottom: 1rem; }
  .hx-thr .hero-h1 { margin-bottom: 1rem; }
  .hx-thr .hero-lede { margin-bottom: 1.1rem; }
  .hx-thr .hero-actions { gap: 0.6rem; margin-bottom: 1.1rem; }
  .hx-thr .hero-local { margin-top: 0.55rem; }
  .hx-thr .thr-foot { padding-top: 1rem; gap: 0.75rem; }
  .hx-thr .hero-nav { order: -1; }
}
@media (max-width: 520px) {
  .hero-local .local-long { display: none; }
  .hero-local .local-short { display: inline; }
}
/* A short phone screen: the call bar already carries the same two actions
   (call, free estimate), so the hero's own copies step aside for the controls. */
@media (max-width: 900px) and (max-height: 770px) {
  .hx-thr .hero-actions { display: none; }
  .hx-thr { padding-top: 1rem; }
  .hx-thr .hero-badge { margin-bottom: 0.75rem; }
  .hx-thr .hero-h1 { margin-bottom: 0.8rem; }
  .hx-thr .hero-lede { margin-bottom: 0.9rem; }
  .hx-thr .thr-foot { padding-top: 0.8rem; }
}

/* slider controls */
.hero-controls {
  position: relative; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  padding-top: 2rem;
}
.hero-caption { display: flex; flex-direction: column; gap: 0.25rem; max-width: 30rem; }
.hero-place { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--amber); }
.hero-text { font-size: 0.89rem; color: var(--steel-200); }

.hero-nav { display: flex; align-items: center; gap: 0.5rem; }
.hero-count {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; color: var(--steel-400); margin-right: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.hero-count strong { color: var(--paper); font-weight: 700; font-size: 0.88rem; }
.hero-bar { display: block; width: 68px; height: 1.5px; background: var(--rule-dark); position: relative; overflow: hidden; }
.hero-fill { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; animation: fill 8s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-fill { animation: none; transform: scaleX(1); } }

.hero-nav button {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--rule-dark); border-radius: var(--r-sm);
  color: var(--paper); cursor: pointer;
  transition: border-color .26s var(--ease), background .26s var(--ease), color .26s var(--ease);
}
.hero-nav button:hover { border-color: var(--amber); color: var(--amber); background: rgba(215,149,66,0.08); }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-bottom: 3.5rem; padding-top: 2.5rem; }
  .hero-layer img { object-position: center 38%; }
  .hero-controls { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-scrim { background: linear-gradient(to top, rgba(8,17,22,0.96) 18%, rgba(8,17,22,0.72) 62%, rgba(8,17,22,0.62) 100%); }
}

/* ---------------------------------------------------------------- lead form */
.lead {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
/* Docked: the card overlaps the hero's bottom edge. */
.lead-docked { margin-top: clamp(-6rem, -5vw, -3.5rem); }

.lead-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.6rem, 1rem + 1.8vw, 2.6rem) clamp(1.3rem, 0.8rem + 2vw, 2.6rem) 0;
}
.lead-title { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); margin-bottom: 0.6rem; }
.lead-sub { font-size: 0.95rem; color: var(--ink-mute); max-width: 52ch; margin: 0; }
.lead-aside { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.lead-tel { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.lead-tel em { display: block; font-style: normal; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); }
.lead-tel strong { display: block; font-family: var(--font-display); font-size: 1.28rem; color: var(--navy); letter-spacing: -0.015em; }
.lead-tel:hover strong { color: var(--amber-deep); }

.lead-form { padding: clamp(1.3rem, 0.8rem + 1.6vw, 2.2rem) clamp(1.3rem, 0.8rem + 2vw, 2.6rem) clamp(1.5rem, 1rem + 1.6vw, 2.2rem); }
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.2rem; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }

.f { display: flex; flex-direction: column; gap: 0.42rem; }
.lead-carried { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--amber-ink); display: flex; align-items: center; gap: 0.4rem; }
.lead-carried::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.f-full { margin-top: 1.2rem; }
.f > span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.f > span i { color: var(--amber-deep); font-style: normal; }
.f input, .f select, .f textarea {
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.96rem;
  transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
  width: 100%;
  font-family: inherit;
}
.f textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
@media (max-width: 520px) { .f textarea { min-height: 8rem; } }
.lead-chosen { margin: 0.8rem 0 0; }
.f input::placeholder, .f textarea::placeholder { color: #9aacb3; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none; border-color: var(--navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 42, 51, 0.08);
}

.lead-urgency { border: 0; padding: 0; margin: 1.3rem 0 0; }
.lead-urgency legend { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; padding: 0; margin-bottom: 0.55rem; }
.urg-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
@media (max-width: 860px) { .urg-row { grid-template-columns: repeat(2, 1fr); } }
.urg {
  display: flex; flex-direction: column; gap: 0.3rem; cursor: pointer;
  padding: 0.75rem 0.85rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  background: var(--paper); transition: all .24s var(--ease); position: relative;
}
.urg input { position: absolute; opacity: 0; pointer-events: none; }
.urg:hover { border-color: var(--steel); }
.urg-hint { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--steel); }
.urg-l { font-size: 0.83rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.urg-on { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 2px rgba(20,42,51,0.1); }
.urg-on .urg-hint { color: var(--amber-deep); }
.urg-alert .urg-hint { color: #b4432f; }
.urg-alert.urg-on { border-color: #b4432f; box-shadow: 0 0 0 2px rgba(180,67,47,0.12); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead-err {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1rem 0 0; padding: 0.75rem 0.9rem;
  background: rgba(180, 67, 47, 0.07); border: 1px solid rgba(180, 67, 47, 0.28);
  border-radius: var(--r-sm); color: #8d3322; font-size: 0.88rem;
}
.lead-submit { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.lead-note { margin: 0; font-size: 0.78rem; color: var(--ink-mute); max-width: 46ch; line-height: 1.5; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.lead-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem;
  padding: 0.95rem clamp(1.3rem, 0.8rem + 2vw, 2.6rem);
  background: var(--paper-warm); border-top: 1px solid var(--rule);
}
.lead-strip span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.79rem; font-weight: 500; color: var(--ink-soft); }
.lead-strip svg { color: var(--steel); }
@media (max-width: 600px) { .lead-strip span { font-size: 0.8125rem; } }

.lead-done { padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.3rem, 0.8rem + 2vw, 2.6rem); text-align: center; }
.lead-done .hex { margin: 0 auto 1.2rem; }
.lead-done h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.lead-done p { max-width: 46ch; margin: 0 auto 1.5rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- symptom finder */
.sym {
  display: grid; grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  align-items: start;
}
@media (max-width: 900px) { .sym { grid-template-columns: 1fr; } }

.sym-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.9rem; }
/* The whole list shows at every width. Stacked (900px and under) it used to
   scroll inside a 560px box, which hid half the symptoms and, on a short
   phone, caught the swipe meant for the page. A tap still brings the answer
   into view below it. */
.sym-opts { display: flex; flex-direction: column; gap: 0.35rem; }

.sym-opt {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 0.2rem 0.8rem; text-align: left; cursor: pointer;
  background: rgba(250, 248, 243, 0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  transition: all .26s var(--ease);
  color: var(--paper);
}
.sym-opt:hover { background: rgba(250, 248, 243, 0.09); border-color: var(--steel); }
.sym-opt.is-on { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.sym-fam { grid-column: 1; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute-dark); }
.sym-opt.is-on .sym-fam { color: rgba(12,26,32,0.65); }
.sym-q { grid-column: 1; font-size: 0.93rem; font-weight: 600; line-height: 1.35; }
.sym-go { grid-column: 2; grid-row: 1 / span 2; opacity: 0.4; transition: transform .26s var(--ease), opacity .26s; }
.sym-opt:hover .sym-go, .sym-opt.is-on .sym-go { opacity: 1; transform: translateX(3px); }
.sym-emg .sym-fam { color: #e08a72; }
.sym-emg.is-on { background: #c2452d; border-color: #c2452d; color: #fff; }
.sym-emg.is-on .sym-fam { color: rgba(255,255,255,0.75); }

.sym-panel {
  background: rgba(250, 248, 243, 0.045);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center;
}

.sym-empty { text-align: center; max-width: 42ch; margin: 0 auto; }
.sym-empty-hex { margin: 0 auto 1.2rem; color: var(--steel); border: 1px solid var(--rule-dark); clip-path: none; border-radius: 50%; }
.sym-empty h3 { color: var(--paper); margin-bottom: 0.7rem; }
.sym-empty p { color: var(--steel-300); font-size: 0.94rem; }
.sym-empty-quote {
  margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--rule-dark);
  font-family: var(--font-display); font-style: italic; font-size: 1.04rem;
  color: var(--steel-200) !important; line-height: 1.45;
}
.sym-empty-quote span { display: block; margin-top: 0.6rem; font-family: var(--font-body); font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }

.sym-result { animation: symIn .4s var(--ease-out) both; }
@keyframes symIn { from { opacity: 0; transform: translateY(10px); } }

.sym-urg {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1rem;
}
.sym-urg-emergency { background: rgba(194, 69, 45, 0.18); color: #f0917a; border: 1px solid rgba(194,69,45,0.4); }
.sym-urg-high { background: rgba(215, 149, 66, 0.16); color: var(--amber-bright); border: 1px solid rgba(215,149,66,0.36); }
.sym-urg-medium { background: rgba(88, 116, 123, 0.2); color: var(--steel-300); border: 1px solid var(--rule-dark); }
.sym-urg-low { background: rgba(88, 116, 123, 0.14); color: var(--steel-300); border: 1px solid var(--rule-dark); }

.sym-heading { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.18; letter-spacing: -0.018em; color: var(--paper); margin-bottom: 0.9rem; }
.sym-cause { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--rule-dark); }
.sym-cause span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); }
.sym-cause { font-size: 1.02rem; font-weight: 600; color: var(--paper); }

.sym-body { display: grid; gap: 1.3rem; margin-bottom: 1.8rem; }
@media (min-width: 1100px) { .sym-body { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
.sym-sub { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute-dark); margin-bottom: 0.4rem; }
.sym-body p:not(.sym-sub) { font-size: 0.91rem; line-height: 1.62; color: var(--steel-200); margin: 0; }

.sym-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- door timing */
/* The hold, drawn: a plan of a low-energy swing door in blueprint line work,
   and the whole cycle as a scale rule. Brand tones only: amber moves (opening
   and the playhead), paper holds, steel closes. */
.dt { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(1.4rem, 0.8rem + 2.4vw, 3.2rem); align-items: start; }
@media (max-width: 880px) { .dt { grid-template-columns: minmax(0, 1fr); } }

.dt-stage { position: relative; margin: 0; border: 1px solid var(--rule-dark); border-radius: var(--r); background: rgba(8, 17, 22, 0.35); overflow: hidden; }
.dt-svg { display: block; width: 100%; height: auto; }
.dt-gridline { fill: none; stroke: rgba(227, 234, 235, 0.045); stroke-width: 1; }
.dt-hatch { stroke: rgba(199, 212, 215, 0.34); stroke-width: 1; }
.dt-wall { stroke: var(--steel-300); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dt-jamb { fill: var(--navy-700); stroke: var(--steel-200); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dt-arc { fill: none; stroke: var(--steel); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; opacity: 0.8; }
.dt-operator { fill: none; stroke: var(--steel-200); stroke-width: 1; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.dt-plate { fill: rgba(215, 149, 66, 0.12); stroke: var(--amber); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .25s var(--ease); }
.dt-plate.is-hit { fill: var(--amber); }
.dt-leaf { fill: rgba(250, 248, 243, 0.1); stroke: var(--paper); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dt-edge { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.dt-hinge { fill: var(--navy-950); stroke: var(--amber); stroke-width: 1.5; }
.dt-label { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--steel-300); }
.dt-label-mute { fill: var(--ink-mute-dark); letter-spacing: 0.12em; }
.dt-shoulders { fill: var(--navy-800); stroke: var(--steel-200); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dt-head { fill: var(--paper); stroke: var(--navy-950); stroke-width: 1.5; }
@media (max-width: 600px) { .dt-label { font-size: 14px; letter-spacing: 0.1em; } }
.dt-person.is-waiting .dt-shoulders { stroke-dasharray: 2 2; }

.dt-now {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  padding: 0.8rem 1rem; border-top: 1px solid var(--rule-dark); background: rgba(8, 17, 22, 0.45);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-300);
}
.dt-now strong { color: var(--paper); font-weight: 700; }
.dt-left { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.dt-play {
  margin-left: auto; min-height: 36px; padding: 0.35rem 0.9rem; cursor: pointer;
  border: 1px solid var(--rule-dark); border-radius: 999px; background: transparent;
  font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-200);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.dt-play:hover { border-color: var(--steel); color: var(--paper); }
.dt-play:disabled { opacity: 0.4; cursor: default; }
.dt-play:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* a finger needs 44px; a mouse is fine with the slimmer pill */
@media (pointer: coarse) { .dt-play { min-height: 44px; } }
.dt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel-400); flex: none; }
.dt-opening { background: var(--amber); }
.dt-standingopen { background: var(--paper); }
.dt-closing { background: var(--steel-300); }

/* the scale rule */
.dt-rule { position: relative; padding-bottom: 0.2rem; }
.dt-rule-bands { display: flex; height: 38px; border: 1px solid var(--rule-dark); border-radius: 3px; overflow: hidden; }
.dt-band { display: grid; place-items: center; min-width: 0; transition: flex-grow .45s var(--ease-out); }
/* the seconds unit stays lower case inside the upper-case labels (5 s, not 5 S) */
.dt-u { text-transform: none; }
.dt-band em { font-style: normal; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 0.3rem; }
.dt-band-open { background: rgba(215, 149, 66, 0.16); color: var(--amber-bright); border-right: 1px solid var(--rule-dark); }
.dt-band-hold { background: rgba(250, 248, 243, 0.07); color: var(--paper); border-right: 1px solid var(--rule-dark); }
.dt-band-close { background: rgba(88, 116, 123, 0.18); color: var(--steel-200); }
.dt-ticks { position: relative; height: 10px; margin-top: 4px; }
.dt-ticks i { position: absolute; top: 0; width: 1px; height: 5px; background: var(--steel); transform: translateX(-0.5px); }
.dt-ticks i.is-major { height: 10px; background: var(--steel-200); }
.dt-playhead { position: absolute; top: -4px; height: 52px; width: 2px; margin-left: -1px; background: var(--amber); box-shadow: 0 0 10px rgba(215, 149, 66, 0.55); border-radius: 1px; }
.dt-rule-foot { display: flex; justify-content: space-between; margin-top: 0.35rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute-dark); }

/* presets */
.dt-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; margin-top: 1.4rem; }
.dt-presets button {
  display: grid; gap: 0.15rem; justify-items: start; min-height: 56px; padding: 0.6rem 0.8rem; cursor: pointer; text-align: left;
  border: 1px solid var(--rule-dark); border-radius: var(--r-sm); background: rgba(250, 248, 243, 0.03); color: var(--steel-200);
  font: inherit; transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.dt-presets b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--paper); line-height: 1; }
.dt-presets span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute-dark); }
.dt-presets button:hover { border-color: var(--steel); }
.dt-presets button.is-on { background: var(--amber); border-color: var(--amber); }
.dt-presets button.is-on b, .dt-presets button.is-on span { color: var(--navy-950); }
.dt-presets button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 420px) { .dt-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dt-slider { display: block; margin-top: 1.5rem; }
.dt-slider-l { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute-dark); margin-bottom: 0.7rem; }
.dt-slider-l strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--amber); text-transform: none; }
.dt-slider input[type='range'] { width: 100%; accent-color: var(--amber); height: 4px; cursor: pointer; }
.dt-scale { display: flex; justify-content: space-between; margin-top: 0.4rem; }
.dt-scale em { font-style: normal; font-size: 0.68rem; color: var(--ink-mute-dark); }

.dt-preset { margin-top: 1.5rem; padding: 1rem 1.1rem; background: rgba(250,248,243,0.05); border: 1px solid var(--rule-dark); border-radius: var(--r-sm); }
.dt-preset-t { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--paper); margin-bottom: 0.4rem; font-size: 0.95rem; }
.dt-preset-t svg { color: var(--amber); }
.dt-preset-n { margin: 0; font-size: 0.87rem; line-height: 1.6; color: var(--steel-200); }

.dt-foot { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--rule-dark); }
/* the hedge on the timing figures: it is the legally careful line, so it has
   to be easy to read, not tucked away in faint grey */
.dt-foot p { font-size: 0.85rem; line-height: 1.62; color: var(--ink-mute-dark); margin-bottom: 0.8rem; }

/* ---------------------------------------------------------------- reviews */
/* The strip runs edge to edge; its Pause button comes first in the markup
   (so it is reached before the moving cards) but sits under the strip,
   lined up with the right edge of the page column. */
.rev-motion { display: flex; flex-direction: column; }
.rev-motion > .motion-btn {
  order: 1; align-self: flex-end;
  margin: 0.9rem max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 0 0;
}
.rev {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rev-track { display: flex; gap: 1.1rem; width: max-content; animation: revscroll 68s linear infinite; padding-block: 0.4rem; }
.rev:hover .rev-track, .rev-motion.is-paused .rev-track { animation-play-state: paused; }
@keyframes revscroll { to { transform: translateX(-50%); } }
/* Without motion (reduced motion, or a touch screen, where there is no hover
   to pause a moving card long enough to read it) the loop copy is dropped
   and the row scrolls by hand, one card at a time, inside the page gutter. */
@media (prefers-reduced-motion: reduce), (hover: none) {
  .rev {
    --rev-in: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--rev-in);
    -webkit-mask-image: none; mask-image: none;
  }
  .rev-track { animation: none; padding-inline: var(--rev-in); }
  .rev-card { scroll-snap-align: start; }
  /* two classes, so it beats .rev-card's display: flex further down */
  .rev-card.rev-dup { display: none; }
}

.rev-card {
  flex: none; width: min(78vw, 360px); margin: 0;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.85rem;
}
.dark .rev-card, .deep .rev-card { background: rgba(250,248,243,0.05); border-color: var(--rule-dark); }
.rev-card blockquote { margin: 0; font-size: 0.93rem; line-height: 1.62; color: var(--ink-soft); flex: 1; }
.dark .rev-card blockquote, .deep .rev-card blockquote { color: var(--steel-200); }
.rev-card figcaption { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-mute); padding-top: 0.85rem; border-top: 1px solid var(--rule); }
.dark .rev-card figcaption, .deep .rev-card figcaption { border-color: var(--rule-dark); color: var(--ink-mute-dark); }
@media (max-width: 600px) { .rev-card figcaption { font-size: 0.8125rem; } }
.rev-card figcaption strong { color: var(--navy); font-weight: 700; }
.dark .rev-card figcaption strong, .deep .rev-card figcaption strong { color: var(--paper); }
.rev-card figcaption svg { color: var(--amber); }

.rev-stat { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.rev-stat p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.dark .rev-stat p, .deep .rev-stat p { color: var(--steel-200); }
.rev-stat strong { color: var(--navy); font-weight: 700; }
.dark .rev-stat strong, .deep .rev-stat strong { color: var(--paper); }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: minmax(240px, 0.75fr) 1.25fr; gap: clamp(1.5rem, 0.8rem + 3vw, 4rem); align-items: start; }
@media (max-width: 880px) { .faq { grid-template-columns: 1fr; } }
.faq-head h2 { margin-bottom: 0.8rem; }
.faq-head .lede { font-size: 1rem; }

.faq-list { border-top: 1px solid var(--rule); }
.dark .faq-list, .deep .faq-list { border-color: var(--rule-dark); }
.faq-item { border-bottom: 1px solid var(--rule); }
.dark .faq-item, .deep .faq-item { border-color: var(--rule-dark); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; color: var(--navy);
  transition: color .24s var(--ease);
}
.dark .faq-item summary, .deep .faq-item summary { color: var(--paper); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber-deep); }
.dark .faq-item summary:hover, .deep .faq-item summary:hover { color: var(--amber); }
.faq-icon { flex: none; margin-top: 2px; color: var(--steel); transition: transform .32s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--amber); }
.faq-a { padding: 0 0 1.35rem; max-width: 72ch; animation: faqIn .32s var(--ease-out) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-a p { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.dark .faq-a p, .deep .faq-a p { color: var(--steel-200); }

/* ---------------------------------------------------------------- section heads */
.sec-head {
  display: grid; grid-template-columns: minmax(280px, 1fr) 1fr;
  gap: clamp(1rem, 0.5rem + 2.5vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
}
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }
.sec-head .lede { margin: 0; }

/* ---------------------------------------------------------------- service cards */
.svc-grid { margin-bottom: 2rem; }
.svc-card { display: flex; flex-direction: column; gap: 0.85rem; text-decoration: none; }
.svc-card h3 { font-size: 1.22rem; }
.svc-card p { font-size: 0.91rem; line-height: 1.6; color: var(--ink-mute); flex: 1; margin: 0; }
.svc-go {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber-deep); margin-top: 0.3rem;
}
.svc-card .svc-go svg { transition: transform .3s var(--ease); }
.svc-card:hover .svc-go svg { transform: translateX(4px); }
.svc-more { display: flex; justify-content: center; margin-top: 0.5rem; }

/* corner frame lines on cards: the threshold motif */
.svc-card::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--amber); border-left: 2px solid var(--amber);
  border-radius: var(--r) 0 0 0;
  opacity: 0; transition: opacity .34s var(--ease);
}
.svc-card:hover::before { opacity: 1; }

/* ---------------------------------------------------------------- pull quote */
.pull { margin: 0; text-align: center; max-width: 54rem; margin-inline: auto; }
.pull .hex { margin: 0 auto 1.5rem; }
.pull blockquote { margin: 0 0 1.5rem; color: var(--navy); }
.pull figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.pull figcaption strong { font-size: 0.95rem; color: var(--navy); }
.pull figcaption span { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-ink); }
.dark .pull blockquote, .deep .pull blockquote { color: var(--paper); }
.dark .pull figcaption strong, .deep .pull figcaption strong { color: var(--paper); }
.dark .pull figcaption span, .deep .pull figcaption span { color: var(--steel-300); }

/* ---------------------------------------------------------------- work mosaic */
.work-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 0.9rem; margin-bottom: 2rem;
}
.work-cell {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--rule); display: block; text-decoration: none;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.work-cell-lg { grid-column: span 2; grid-row: span 2; }
.work-cell picture, .work-cell img { width: 100%; height: 100%; }
.work-cell img { object-fit: cover; }
/* House rule: the container lifts, the photograph does not move. */
.work-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-tag {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  background: rgba(8, 17, 22, 0.76); backdrop-filter: blur(6px);
  color: var(--paper); padding: 0.4rem 0.75rem; border-radius: var(--r-sm);
}
@media (max-width: 880px) {
  .work-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .work-cell-lg { grid-column: span 2; grid-row: span 1; grid-auto-rows: 230px; }
}

/* ---------------------------------------------------------------- reviews head */
.rev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- limits */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 0.8rem + 3vw, 4rem); align-items: start; }
@media (max-width: 860px) { .limits { grid-template-columns: 1fr; } }
.limits-copy h2 { margin-bottom: 0.9rem; }
.limits-note { margin-top: 1.2rem; font-size: 0.86rem; color: var(--steel); font-style: italic; }
.limits-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.limits-list li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--rule);
  font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5;
}
.limits-list .hex { margin-top: 1px; border: 1px solid var(--rule-strong); clip-path: none; border-radius: 50%; color: var(--steel); }

/* ---------------------------------------------------------------- area chips */
.area-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: #fff;
  font-size: 0.88rem; font-weight: 600; color: var(--navy); text-decoration: none;
  transition: all .26s var(--ease);
}
.chip svg { color: var(--steel); transition: color .26s var(--ease); }
.chip:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); transform: translateY(-2px); }
.chip:hover svg { color: var(--amber); }
.chip em { font-style: normal; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.chip-home { border-color: var(--amber); }
.chip:hover em { color: var(--amber); }
.dark .chip, .deep .chip { background: rgba(250,248,243,0.05); border-color: var(--rule-dark); color: var(--paper); }
.dark .chip svg, .deep .chip svg { color: var(--steel-300); }
.dark .chip:hover, .deep .chip:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.dark .chip:hover svg, .deep .chip:hover svg { color: var(--navy-950); }

/* ---------------------------------------------------------------- closing cta */
.cta { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1.5rem, 0.8rem + 3vw, 4rem); align-items: center; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { margin-bottom: 0.9rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.cta-list { list-style: none; margin: 0; padding: 0; }
.cta-list li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule-dark);
  font-size: 0.91rem; color: var(--steel-200); line-height: 1.5;
}
.cta-list li:first-child { border-top: 1px solid var(--rule-dark); }
.cta-list svg { color: var(--amber); flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------- page hero */
.phero {
  position: relative; background: var(--navy-950); color: var(--paper);
  padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: hidden; isolation: isolate;
}
.phero-bg { position: absolute; inset: 0; z-index: 0; }
.phero-bg picture, .phero-bg img { width: 100%; height: 100%; }
.phero-bg img { object-fit: cover; object-position: var(--focus); }
.phero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,17,22,0.95) 0%, rgba(8,17,22,0.86) 34%, rgba(8,17,22,0.52) 62%, rgba(8,17,22,0.3) 100%),
    linear-gradient(to top, rgba(8,17,22,0.95) 0%, rgba(8,17,22,0.3) 48%, rgba(8,17,22,0.55) 100%);
}
/* .phero-inner is a full .wrap, so the hero copy starts on the same grid edge as
   the header logo, the stats bar and the page body. The measure lives on the h1
   (20ch) and the lede (58ch), not on a narrower centered column. */
.phero-inner { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.phero-h1 { font-size: var(--t-h1); letter-spacing: -0.026em; margin-bottom: 1.1rem; max-width: 20ch; }
.phero-lede { font-size: var(--t-lede); line-height: 1.58; color: var(--steel-200); max-width: 58ch; margin-bottom: 1.8rem; }
.phero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; }

.crumbs { margin-bottom: 1.4rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; }
.crumbs a { color: var(--steel-400); text-decoration: none; transition: color .22s var(--ease); }
.crumbs a:hover { color: var(--amber); }
.crumbs svg { color: var(--steel); opacity: 0.5; }
.crumbs [aria-current] { color: var(--paper); font-weight: 600; }
/* PageHero breadcrumb on touch screens: each link gets a 44px tap target. The
   negative margins give the extra height and width back, so the words sit
   exactly where they do on desktop. */
@media (max-width: 900px), (pointer: coarse) {
  .phero .crumbs { margin-block: -0.72rem 0.68rem; }
  .phero .crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-inline: 0.3rem; margin-inline: -0.3rem; }
}

.phero-stats { position: relative; z-index: 2; background: rgba(8,17,22,0.72); backdrop-filter: blur(10px); border-top: 1px solid var(--rule-dark); }
.phero-stats dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding-block: 1.4rem; }
.phero-stats dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute-dark); margin-bottom: 0.3rem; }
.phero-stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.015em; color: var(--paper); line-height: 1.2; }
@media (max-width: 760px) { .phero-stats dl { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }

/* ---------------------------------------------------------------- service layout */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 3.5vw, 4.5rem); align-items: start; }
@media (max-width: 1000px) { .svc-layout { grid-template-columns: 1fr; } }

.prose { max-width: 72ch; }
.prose p { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }
.prose-lede { font-size: var(--t-lede) !important; color: var(--ink) !important; line-height: 1.6 !important; }
.prose-sec { margin-top: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); }
.prose-sec h2 { margin-bottom: 1rem; }
/* legal text (terms and privacy): sub-headings and plain lists inside a section */
.prose-sec h3 { font-size: 1.15rem; margin: 1.7rem 0 0.5rem; }
.prose-sec h4 { font-size: 1rem; font-weight: 600; margin: 1.3rem 0 0.4rem; color: var(--ink); }
.prose-sec ul { margin: 0.6rem 0 1.1rem; padding-left: 1.35rem; }
.prose-sec li { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); margin: 0.35rem 0; }
.prose-sec a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 0.15em; }

.prose-list { margin-top: 1.6rem; padding: 1.4rem 1.6rem; background: var(--paper-warm); border: 1px solid var(--rule); border-radius: var(--r); }
.prose-list-t { display: flex; align-items: center; gap: 0.55rem; font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy) !important; margin-bottom: 1rem !important; }
.prose-list-t svg { color: var(--amber-deep); }
.prose-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .prose-list ul { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.4rem; } }
.prose-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.prose-list li svg { color: var(--amber-deep); flex: none; margin-top: 3px; }

.prose-cards { margin-top: 1.6rem; }
.lifecard { display: flex; flex-direction: column; gap: 0.6rem; }
.lifecard-n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--paper-edge); line-height: 1; letter-spacing: -0.03em; }
.lifecard h3 { font-size: 1.05rem; }
.lifecard p { font-size: 0.88rem !important; line-height: 1.6 !important; color: var(--ink-mute) !important; margin: 0 !important; }

.prose-note { margin-top: 2.4rem; padding: 1.3rem 1.5rem; border-left: 3px solid var(--amber); background: var(--paper-warm); border-radius: 0 var(--r) var(--r) 0; }
.prose-note p { font-size: 0.89rem !important; line-height: 1.65 !important; color: var(--ink-soft) !important; margin-bottom: 0.6rem !important; }
.prose-note p:last-child { margin-bottom: 0 !important; }
.prose-note strong { color: var(--navy); }

/* rail */
.svc-rail { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 96px; }
@media (max-width: 1000px) { .svc-rail { position: static; } }
.rail-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; }
.rail-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.rail-p { font-size: 0.89rem; line-height: 1.6; color: var(--ink-mute); margin-bottom: 1.1rem; }
.rail-btn { width: 100%; margin-bottom: 0.6rem; }
.rail-list { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.55rem; }
.rail-list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; color: var(--ink-soft); }
.rail-list svg { color: var(--amber-deep); flex: none; }
.rail-alt { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.rail-alt h3 { color: var(--paper); }
.rail-alt .rail-p { color: var(--steel-200); margin-bottom: 0; }
.rail-alt .hex { margin-bottom: 1rem; }
.rail-areas { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.rail-areas a {
  font-size: 0.8rem; font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 0.34rem 0.7rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  transition: all .22s var(--ease);
}
.rail-areas a:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.rail-more { font-size: 0.85rem; }

/* ---------------------------------------------------------------- service groups */
.grp { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.grp:last-child { margin-bottom: 0; }
.grp-head { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.6rem; max-width: 62rem; }
.grp-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 0.5rem; }
.grp-head p { margin: 0; font-size: 0.97rem; line-height: 1.62; color: var(--ink-mute); max-width: 68ch; }
.home-tag { display: inline-block; margin-left: 0.55rem; font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--amber-deep); vertical-align: middle; border: 1px solid rgba(215,149,66,0.4); padding: 0.18rem 0.42rem; border-radius: 3px; }
.area-svc-link { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: border-color .2s var(--ease), color .2s var(--ease); }
.area-svc-link:hover { color: var(--amber-deep); border-color: var(--amber); }

/* ---------------------------------------------------------------- about */
.about-split { display: grid; grid-template-columns: minmax(0, 1.15fr) 0.85fr; gap: clamp(1.8rem, 1rem + 3.5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }
.about-fig { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); position: sticky; top: 96px; }
@media (max-width: 900px) { .about-fig { position: static; } }
.about-fig img { width: 100%; height: auto; }
.about-rail { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 96px; }
@media (max-width: 900px) { .about-rail { position: static; } }
.about-h3 { margin-top: 2rem; margin-bottom: 0.7rem; font-size: 1.25rem; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 60rem; }
.tl li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-bottom: 2rem; position: relative; }
.tl li:not(:last-child)::before {
  content: ''; position: absolute; left: 23px; top: 52px; bottom: 6px; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--rule-strong) 0 4px, transparent 4px 9px);
}
.tl-hex { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; }
.tl-y { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 0.3rem; }
.tl li h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.tl-d { margin: 0; font-size: 0.93rem; line-height: 1.62; color: var(--ink-mute); max-width: 62ch; }

.val { display: flex; flex-direction: column; gap: 0.6rem; }
.val-n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--amber); line-height: 1; letter-spacing: -0.03em; }
.val h3 { font-size: 1.08rem; }
.val p { margin: 0; font-size: 0.89rem; line-height: 1.62; color: var(--steel-200); }

/* ---------------------------------------------------------------- gallery */
.gal-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.gal-tab {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: #fff;
  font-size: 0.87rem; font-weight: 600; color: var(--ink-soft);
  transition: all .24s var(--ease);
}
.gal-tab span { font-size: 0.72rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.gal-tab:hover { border-color: var(--navy); color: var(--navy); }
.gal-tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.gal-tab.is-on span { color: var(--amber); }

.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 0.5rem + 1vw, 1.4rem); }
@media (max-width: 1000px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gal-grid { grid-template-columns: 1fr; } }

.gal-item {
  margin: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out);
}
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gal-item picture { display: block; background: var(--paper-warm); }
.gal-item img { width: 100%; height: 300px; object-fit: cover; object-position: center 45%; }
.gal-item figcaption { padding: 0.95rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.gal-cat { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber-deep); }
.gal-cap { font-size: 0.89rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 340px; gap: clamp(1.5rem, 0.8rem + 2.5vw, 3rem); align-items: start; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-rail { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 96px; }
@media (max-width: 1000px) { .contact-rail { position: static; } }
.contact-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 1.5rem; }
.contact-tel { display: block; padding-block: 1px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); font-weight: 700; letter-spacing: -0.025em; color: var(--navy); text-decoration: none; margin-bottom: 0.8rem; }
.contact-tel:hover { color: var(--amber-deep); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-list em { display: block; font-style: normal; font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.2rem; }
.contact-list strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
.contact-alert { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.contact-alert h3 { color: var(--paper); margin: 1rem 0 0.6rem; font-size: 1.15rem; }
.contact-alert p { font-size: 0.89rem; line-height: 1.6; color: var(--steel-200); margin-bottom: 0.8rem; }
.contact-alert-do { color: var(--amber) !important; font-weight: 600; }
.faq-block { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.faq-block:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- emergency */
.emg-band { background: var(--amber); color: var(--navy-950); }
.emg-band .hex-amber { background: var(--navy); color: var(--amber); }
.emg-band .emg h2 { color: var(--navy-950); }
.emg-band .emg p { color: rgba(8, 17, 22, 0.78); }
.emg-band .emg-btn { background: var(--navy); color: var(--paper); }
.emg-band .emg-btn:hover { background: var(--navy-700); }
.emg { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.emg h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 0.4rem; color: var(--paper); }
.emg p { margin: 0; font-size: 0.92rem; color: var(--steel-200); max-width: 58ch; line-height: 1.55; }
.emg > div { flex: 1 1 320px; }
.emg-btn { flex: none; }
.emg-case { display: flex; flex-direction: column; gap: 0.7rem; }
.emg-case h3 { font-size: 1.12rem; }
.emg-case p { margin: 0; font-size: 0.91rem; line-height: 1.62; color: var(--ink-mute); }
.limits-dark { border-color: var(--rule-dark); }
.limits-dark li { border-color: var(--rule-dark); color: var(--steel-200); }
.limits-dark .hex { border-color: var(--rule-dark); color: var(--amber); }
.nf { min-height: 70vh; display: flex; align-items: center; }
.nf-inner { max-width: 44rem; }
.nf-inner .hex { margin-bottom: 1.5rem; }
.nf-inner h1 { margin-bottom: 1rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.nf-links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- rotating headline */
/* The amber line changes with the open leaf. It is solid amber: the client
   found a photograph inside the letters broke the words up, so the leaves
   carry the pictures and the word stays plain type. A soft navy shadow keeps
   the letter edges clear of whatever photograph is behind them, and the line
   does not clip, so the shadow fades out instead of stopping at a hard edge. */
.hero-rot {
  position: relative;
  display: inline-block;
  vertical-align: top;
  overflow: visible;
}
/* On a phone the headline sits over the open photograph itself, under a
   thinner shade than the desktop column gets, so the word carries a little
   shade of its own. Measured against the brightest slide (the storefront
   window, 05) this keeps amber at better than 3:1 around the letters. */
@media (max-width: 900px) {
  .hx-thr .hero-rot::before {
    content: ""; position: absolute; inset: -0.25em -0.5em; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(8, 17, 22, 0.5), rgba(8, 17, 22, 0.35) 60%, rgba(8, 17, 22, 0));
  }
}
.hero-word {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.14em);
  transition: opacity .72s var(--ease), transform .72s var(--ease-out);
  color: var(--amber);
  text-shadow:
    0 0 2px rgba(8, 17, 22, 0.8), 0 0 8px rgba(8, 17, 22, 0.8),
    0 0 18px rgba(8, 17, 22, 0.8), 0 0 36px rgba(8, 17, 22, 0.7);
}
.hero-word.is-on { opacity: 1; transform: none; }
.hero-word-ghost { visibility: hidden; white-space: nowrap; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .hero-word { transition: none; }
}

/* ---------------------------------------------------------------- the opening */
/* One column: the elevation runs full width, a fixed-height read-out sits under
   it so nothing jumps as parts are selected, and the thirteen services read
   across the bottom in columns. Beside the drawing the list ran three times its
   height and the section towered. */
.ana { display: block; }

.ana-stage { position: relative; }
/* max-height letterboxed the viewBox inside a much taller box, which is where
   the dead space under the drawing came from. Cap the width instead and let the
   height follow the 900x560 aspect. */
.ana-svg { width: 100%; max-width: 1060px; height: auto; color: var(--steel-400); display: block; margin-inline: auto; }
.ana-el { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ana-hint { opacity: 0.45; }
.ana-scroll { max-width: 100%; }
@media (max-width: 720px) {
  .ana-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .ana-scroll .ana-svg { min-width: 620px; max-width: none; }
}

.ana-zone {
  fill: rgba(215, 149, 66, 0.1);
  stroke: var(--amber);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  animation: anaZone .42s var(--ease-out) both;
}
@keyframes anaZone { from { opacity: 0; transform: scale(0.985); transform-origin: center; } }

.ana-pin { cursor: pointer; outline: none; transition: opacity .3s var(--ease); }
.ana-pin:focus-visible .ana-pin-dot { stroke: var(--paper); stroke-width: 2; }
.ana-pin-hit { fill: transparent; }
.ana-pin-dot { fill: var(--amber); transition: transform .3s var(--ease-out); transform-origin: center; transform-box: fill-box; }
.ana-pin-halo {
  fill: none; stroke: var(--amber); stroke-width: 1.2; opacity: 0.35;
  transform-origin: center; transform-box: fill-box;
  animation: anaHalo 3.4s ease-out infinite; animation-delay: var(--d);
}
@keyframes anaHalo {
  0%   { transform: scale(0.45); opacity: 0.5; }
  55%  { transform: scale(1);    opacity: 0; }
  100% { transform: scale(1);    opacity: 0; }
}
.ana-pin.is-on .ana-pin-dot { transform: scale(1.5); }
.ana-pin.is-on .ana-pin-halo { animation: none; opacity: 0.9; transform: scale(1.1); }
.ana-pin.is-dim { opacity: 0.28; }
@media (prefers-reduced-motion: reduce) { .ana-pin-halo { animation: none; opacity: 0.4; } .ana-zone { animation: none; } }

/* read-out: one row, fixed height, so selecting a part never shifts the page */
.ana-read {
  display: grid;
  margin-top: 1.2rem; padding: 0.95rem 1.2rem;
  max-width: 1060px; margin-inline: auto;
  background: rgba(250, 248, 243, 0.05);
  border: 1px solid var(--rule-dark); border-radius: var(--r);
}
.ana-read-layer {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(180px, 0.9fr) 2fr auto;
  gap: 0.6rem 1.8rem; align-items: center;
  visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s linear .2s;
}
.ana-read-layer.is-shown { visibility: visible; opacity: 1; transition: opacity .2s var(--ease), visibility 0s; }
@media (max-width: 860px) { .ana-read-layer { grid-template-columns: 1fr; align-content: start; } }
.ana-read-part { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.015em; color: var(--paper); margin: 0; }
.ana-read-note { font-size: 0.9rem; line-height: 1.55; color: var(--steel-200); margin: 0; }
.ana-read-link { font-size: 0.84rem; white-space: nowrap; }
.ana-read-idle { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-mute-dark); margin: 0; }
.ana-read-idle svg { color: var(--amber); flex: none; }

/* the thirteen, across the bottom */
.ana-list { margin-top: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); }
.ana-list-h { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.9rem; }
.ana-list ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem 1rem;
}
@media (max-width: 1100px) { .ana-list ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .ana-list ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .ana-list ul { grid-template-columns: 1fr; } }

.ana-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 0.05rem 0.6rem; padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule-dark); text-decoration: none;
  transition: background .24s var(--ease), padding-left .24s var(--ease);
}
.ana-item-part { grid-column: 1; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute-dark); transition: color .24s var(--ease); }
.ana-item-name { grid-column: 1; font-size: 0.88rem; font-weight: 600; color: var(--paper); line-height: 1.3; }
.ana-item-go { grid-column: 2; grid-row: 1 / span 2; color: var(--steel); opacity: 0; transform: translateX(-4px); transition: all .26s var(--ease); }
.ana-item:hover, .ana-item.is-on { background: rgba(215, 149, 66, 0.1); padding-left: 0.85rem; }
.ana-item:hover .ana-item-part, .ana-item.is-on .ana-item-part { color: var(--amber); }
.ana-item:hover .ana-item-go, .ana-item.is-on .ana-item-go { opacity: 1; transform: none; color: var(--amber); }

/* ---------------------------------------------------------------- service plates */
.plate-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: clamp(1.4rem, 1rem + 1vw, 2.2rem); }
.plate-tab {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: transparent;
  font-size: 0.84rem; font-weight: 600; color: var(--ink-soft);
  transition: all .26s var(--ease);
}
.plate-tab svg { color: var(--steel); transition: color .26s var(--ease); }
.plate-tab em { font-style: normal; font-size: 0.7rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.plate-tab:hover { border-color: var(--navy); color: var(--navy); }
.plate-tab.is-on { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.plate-tab.is-on svg, .plate-tab.is-on em { color: var(--amber); }
.dark .plate-tab, .deep .plate-tab { border-color: var(--rule-dark); color: var(--steel-200); }
.dark .plate-tab em, .deep .plate-tab em { color: var(--ink-mute-dark); }
.dark .plate-tab:hover, .deep .plate-tab:hover { border-color: var(--steel); color: var(--paper); }
.dark .plate-tab.is-on, .deep .plate-tab.is-on { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.dark .plate-tab.is-on svg, .deep .plate-tab.is-on svg,
.dark .plate-tab.is-on em, .deep .plate-tab.is-on em { color: rgba(12,26,32,0.66); }

.plates {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 0.5rem + 1.2vw, 1.5rem);
}
@media (max-width: 1040px) { .plates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plates { grid-template-columns: 1fr; } }

.plate {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; background: #fff;
  border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden;
  transition: transform .44s var(--ease-out), box-shadow .44s var(--ease-out), border-color .3s var(--ease);
}
.dark .plate, .deep .plate { background: rgba(250,248,243,0.045); border-color: var(--rule-dark); }
.plate:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

/* the aperture */
.plate-ap { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-900); }
.plate-ap :is(picture, img) { width: 100%; height: 100%; display: block; }
/* the photograph never moves; only the plate lifts */
.plate-ap img { object-fit: cover; object-position: var(--focus, center 46%); }
.plate-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,17,22,0.72), rgba(8,17,22,0.08) 52%, rgba(8,17,22,0.34));
  transition: opacity .4s var(--ease);
}
.plate:hover .plate-veil { opacity: 0.72; }

/* amber jamb with hinge knuckles down the pivot edge */
.plate-jamb {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  display: flex; flex-direction: column; justify-content: space-evenly; align-items: center;
  background: rgba(215,149,66,0.28);
  transition: background .34s var(--ease);
}
.plate-jamb i { display: block; width: 5px; height: 20px; border-radius: 2px; background: var(--amber); opacity: 0.85; }
.plate:hover .plate-jamb { background: rgba(215,149,66,0.5); }

.plate-no {
  position: absolute; right: 0.85rem; top: 0.7rem;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--paper); opacity: 0.55;
  transition: opacity .34s var(--ease);
}
.plate:hover .plate-no { opacity: 0.9; }
.plate-grp {
  position: absolute; left: 1rem; bottom: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--paper);
}
.plate-grp svg { color: var(--amber); }

.plate-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.plate-title {
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.22; color: var(--navy);
}
.dark .plate-title, .deep .plate-title { color: var(--paper); }
.plate-desc { font-size: 0.87rem; line-height: 1.5; color: var(--ink-mute); flex: 1; }
.dark .plate-desc, .deep .plate-desc { color: var(--steel-200); }
.plate-go {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.45rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-ink);
}
.dark .plate-go, .deep .plate-go { color: var(--amber); }
.plate-go svg { transition: transform .32s var(--ease); }
.plate:hover .plate-go svg { transform: translateX(5px); }

/* the frame that draws itself around the plate on hover */
.plate-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.plate-frame-r {
  fill: none; stroke: var(--amber); stroke-width: 2;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset .72s var(--ease-out);
}
.plate:hover .plate-frame-r { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .plate-frame-r { transition: none; }
  .plate:hover { transform: none; }
}
.about-cap { padding: 0.7rem 0.9rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-mute); background: var(--paper-warm); border-top: 1px solid var(--rule); }
.about-fig-sm { position: static; }

/* ---------------------------------------------------------------- closing cta */
/* The CTA used to be near-black directly above a near-black footer, which read
   as one long dark slab with a seam in it. It is warm now, so the page lands
   light and the footer reads as a separate surface. */
.cta-band { border-top: 1px solid var(--rule); }
.cta-band .cta-list li { border-color: var(--rule); color: var(--ink-soft); }
.cta-band .cta-list li:first-child { border-top-color: var(--rule); }
.cta-band .cta-list svg { color: var(--amber-deep); }
.cta-band .ghost { -webkit-text-stroke-color: var(--rule-strong); opacity: 0.4; }
/* a hairline of amber where the warm CTA meets the dark footer */
.ftr { border-top: 3px solid var(--amber); }

/* ---------------------------------------------------------------- the opening, in motion */
.ana-head { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ana-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--rule-dark); background: transparent;
  color: var(--steel-200); font-size: 0.86rem; font-weight: 600;
  transition: all .26s var(--ease);
}
.ana-toggle:hover { border-color: var(--steel); color: var(--paper); }
.ana-toggle.is-on { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
/* two leaves that part inside the button, matching what the drawing does */
.ana-toggle-icon { position: relative; width: 16px; height: 16px; flex: none; }
.ana-toggle-icon i {
  position: absolute; top: 0; bottom: 0; width: 6px;
  border: 1px solid currentColor; border-radius: 1px;
  transition: transform .5s var(--ease-out);
}
.ana-toggle-icon i:first-child { left: 1px; }
.ana-toggle-icon i:last-child { right: 1px; }
.ana-toggle.is-on .ana-toggle-icon i:first-child { transform: translateX(-2px); }
.ana-toggle.is-on .ana-toggle-icon i:last-child { transform: translateX(2px); }
.ana-head-note { margin: 0; font-size: 0.83rem; color: var(--ink-mute-dark); }

/* sliding panels part on their track */
.ana-slide { transition: transform 1.1s cubic-bezier(0.33, 0, 0.2, 1); }
.ana-svg.is-open .ana-slide-l { transform: translateX(-104px); }
.ana-svg.is-open .ana-slide-r { transform: translateX(104px); }

/* The swing leaf. This is an elevation, so a door swinging toward the viewer
   foreshortens back to its hinge stile; it does not rotate in the plane of the
   drawing. Rotating it read as the door falling over. The arc under the opening
   already carries the direction of travel. */
.ana-leaf { transform-origin: 344px 273px; transition: transform 1.15s cubic-bezier(0.34, 0, 0.22, 1); }
.ana-svg.is-open .ana-leaf { transform: scaleX(0.26); }
/* the closer arm does genuinely pivot, so it keeps a small rotation */
.ana-arm { transition: transform 1.15s cubic-bezier(0.34, 0, 0.22, 1); transform-origin: 470px 142px; }
.ana-svg.is-open .ana-arm { transform: rotate(-14deg); }

/* the storefront leaf is hinged on its far stile, so it foreshortens the other way */
.ana-sfleaf { transform-origin: 820px 274px; transition: transform 1.15s cubic-bezier(0.34, 0, 0.22, 1); }
.ana-svg.is-open .ana-sfleaf { transform: scaleX(0.3); }

/* the swing arc is what actually says "this door opens", so brighten it */
.ana-arc { transition: opacity .7s var(--ease), stroke .7s var(--ease); }
.ana-svg.is-open .ana-arc { opacity: 1; stroke: var(--amber); }

/* the meeting lines only mean anything while the doors are shut */
.ana-meet { transition: opacity .6s var(--ease); }
.ana-svg.is-open .ana-meet { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .ana-slide, .ana-leaf, .ana-arm, .ana-sfleaf, .ana-meet, .ana-toggle-icon i { transition: none; }
}

/* ---------------------------------------------------------------- work marquee */
.wm { --gap: clamp(0.6rem, 0.4rem + 0.6vw, 1rem); display: grid; gap: var(--gap); }
.wm-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.wm-track { display: flex; gap: var(--gap); width: max-content; animation: wmDrift var(--sp) linear infinite; }
.wm-row[data-dir='r'] .wm-track { animation-direction: reverse; }
.wm-row:hover .wm-track { animation-play-state: paused; }
@keyframes wmDrift { to { transform: translateX(-50%); } }

.wm-cell {
  position: relative; flex: none; margin: 0;
  width: clamp(200px, 25vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--navy-900);
}
.dark .wm-cell, .deep .wm-cell { border-color: var(--rule-dark); }
.wm-cell :is(picture, img) { width: 100%; height: 100%; display: block; }
/* the row moves; the photograph inside it does not */
.wm-cell img { object-fit: cover; object-position: center 46%; }
/* the type tag on each cell is .wm-tag, in components/WorkMarquee.css */
.wm-foot { display: flex; justify-content: center; margin-top: clamp(1.4rem, 1rem + 1vw, 2.2rem); }

@media (prefers-reduced-motion: reduce) {
  .wm-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .wm-row { -webkit-mask-image: none; mask-image: none; }
}

/* landing build: the anatomy list is buttons that select in place
   (the service map's own rules live in components/ServiceMap.css) */
button.ana-item { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--rule-dark); cursor: pointer; }

/* ---------------------------------------------------------------- visit process */
.vp { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.6rem, 1rem + 3vw, 4rem); align-items: start; }
@media (max-width: 960px) { .vp { grid-template-columns: minmax(0, 1fr); } }
.vp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 1rem + 1.5vw, 2.2rem) clamp(1.2rem, 0.8rem + 1.5vw, 2rem); }
@media (max-width: 620px) { .vp-steps { grid-template-columns: 1fr; } }
.vp-step { position: relative; padding-top: 0.3rem; }
.vp-hex { font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; margin-bottom: 0.9rem; }
/* the fourth step is the one only this company does, so it carries the accent */
.vp-step:last-child .vp-hex { background: var(--amber); color: var(--navy-950); }
.vp-step h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.vp-step p { margin: 0; font-size: 0.9rem; line-height: 1.62; color: var(--ink-mute); }

.vp-quote {
  margin: 0; position: sticky; top: 100px;
  background: var(--navy); color: var(--paper);
  border-radius: var(--r); padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
}
@media (max-width: 960px) { .vp-quote { position: static; } }
.vp-quote blockquote {
  margin: 0 0 1.3rem; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.42; letter-spacing: -0.01em;
}
.vp-quote figcaption { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-dark); }
.vp-quote figcaption:last-child { margin-bottom: 0; }
.vp-quote figcaption strong { font-size: 0.93rem; }
.vp-quote figcaption span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.vp-quote .ulink { color: var(--amber); font-size: 0.86rem; }

/* ---------------------------------------------------------------- repair or replace */
.ror { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.4rem, 0.8rem + 2.5vw, 3rem); align-items: start; }
@media (max-width: 960px) { .ror { grid-template-columns: minmax(0, 1fr); } }
.ror-qs { display: grid; gap: 1rem; }
.ror-q {
  border: 1px solid var(--rule-dark); border-radius: var(--r); margin: 0;
  padding: 1.1rem 1.2rem 1.2rem; background: rgba(250,248,243,0.035);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.ror-q.is-done { border-color: rgba(215,149,66,0.45); background: rgba(215,149,66,0.05); }
/* A legend normally sits on the fieldset's top border, which ran the line
   straight behind each question. Floating it pulls it inside the box. */
.ror-q legend { float: left; width: 100%; display: flex; align-items: flex-start; gap: 0.7rem; padding: 0; font-weight: 600; font-size: 1rem; line-height: 1.4; color: var(--paper); }
.ror-q legend + * { clear: both; }
.ror-n { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; margin-top: 1px; }
.ror-hint { margin: 0.55rem 0 0.9rem; padding-left: calc(30px + 0.7rem); font-size: 0.84rem; line-height: 1.55; color: var(--ink-mute-dark); }
.ror-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-left: calc(30px + 0.7rem); }
.ror-opt {
  position: relative; cursor: pointer;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--rule-dark); font-size: 0.86rem; font-weight: 600; color: var(--steel-200);
  transition: all .24s var(--ease);
}
.ror-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ror-opt:hover { border-color: var(--steel); color: var(--paper); }
.ror-opt.is-on { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.ror-opt:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 560px) { .ror-hint, .ror-opts { padding-left: 0; } }

.ror-out {
  position: sticky; top: 100px; min-height: 360px;
  border: 1px solid var(--rule-dark); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  background: rgba(250,248,243,0.045);
  display: flex; flex-direction: column; justify-content: center;
  transition: border-color .4s var(--ease);
}
@media (max-width: 960px) { .ror-out { position: static; min-height: 0; } }
.ror-out.is-good { border-color: rgba(63,191,109,0.5); }
.ror-out.is-mid { border-color: rgba(215,149,66,0.55); }
.ror-out.is-bad { border-color: rgba(194,69,45,0.55); }
.ror-idle { text-align: center; }
.ror-idle-hex { margin: 0 auto 1rem; color: var(--steel); border: 1px solid var(--rule-dark); clip-path: none; border-radius: 50%; }
.ror-idle-h { font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); margin: 0 0 0.5rem; }
.ror-idle-p { font-size: 0.9rem; line-height: 1.6; color: var(--steel-300); max-width: 36ch; margin: 0 auto 1rem; }
.ror-progress { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0; }

.ror-verdict { animation: symIn .4s var(--ease-out) both; }
.ror-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.9rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(215,149,66,0.16); color: var(--amber-bright); border: 1px solid rgba(215,149,66,0.36);
}
.is-good .ror-badge { background: rgba(63,191,109,0.14); color: #7ddba2; border-color: rgba(63,191,109,0.4); }
.is-bad .ror-badge { background: rgba(194,69,45,0.18); color: #f0917a; border-color: rgba(194,69,45,0.4); }
.ror-verdict h3 { color: var(--paper); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); margin-bottom: 0.6rem; }
.ror-vp { font-size: 0.93rem; line-height: 1.62; color: var(--steel-200); margin: 0 0 1rem; }
.ror-causes { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--rule-dark); }
.ror-causes li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-dark); display: grid; gap: 0.3rem; }
.ror-causes strong { font-size: 0.9rem; color: var(--paper); }
.ror-causes span { font-size: 0.84rem; line-height: 1.55; color: var(--steel-300); }
.ror-note { font-size: 0.8rem; font-style: italic; color: var(--ink-mute-dark); margin: 0 0 1.2rem; }
.ror-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.ror-actions .ulink { color: var(--amber); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------------------------------------------------------------- inspection due */
.idue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 0.8rem + 2.5vw, 3rem); align-items: stretch; }
@media (max-width: 880px) { .idue { grid-template-columns: minmax(0, 1fr); } }
.idue-in { border: 1px solid var(--rule-dark); border-radius: var(--r-lg); padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); background: rgba(250,248,243,0.035); }
.idue-label { display: flex; align-items: center; gap: 0.5rem; font-size: 1.02rem; font-weight: 600; color: var(--paper); margin: 0 0 1.1rem; }
.idue-label svg { color: var(--amber); }
.idue-pick { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.9rem; }
.idue .f > span { color: var(--steel-300); }
.idue .f select { background: var(--navy-900); color: var(--paper); border-color: var(--rule-dark); }
.idue .f select:disabled { opacity: 0.45; }

/* Selects draw their own chevron so it sits clear of the border, the same
   distance in from the edge as the text is from the left, in every browser.
   It is set after the field, focus and dark-panel rules above because those
   use the background shorthand, which would otherwise wipe the image. */
.f select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2.75rem;
  --sel-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23142a33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.idue .f select {
  --sel-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23faf8f3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.f select, .f select:focus, .idue .f select {
  background-image: var(--sel-arrow);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
.idue-never { display: flex; align-items: center; gap: 0.55rem; margin-top: 1rem; font-size: 0.87rem; color: var(--steel-200); cursor: pointer; }
.idue-never input { accent-color: var(--amber); width: 16px; height: 16px; }
.idue-fine { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule-dark); font-size: 0.76rem; line-height: 1.55; color: var(--ink-mute-dark); }
.idue-out {
  border: 1px solid var(--rule-dark); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); background: rgba(250,248,243,0.045);
  display: flex; flex-direction: column; justify-content: center; min-height: 240px;
  transition: border-color .4s var(--ease);
}
.idue-out.is-good { border-color: rgba(63,191,109,0.5); }
.idue-out.is-mid { border-color: rgba(215,149,66,0.55); }
.idue-out.is-bad { border-color: rgba(194,69,45,0.55); }
.idue-idle { margin: 0; text-align: center; font-size: 0.93rem; color: var(--steel-300); }
.idue-res { animation: symIn .4s var(--ease-out) both; }
.idue-res h3 { color: var(--paper); font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); margin-bottom: 0.55rem; }
.idue-res > p:not(.ror-badge) { font-size: 0.93rem; line-height: 1.62; color: var(--steel-200); margin: 0 0 1.2rem; }

/* ---------------------------------------------------------------- closing-time check */
.cc { max-width: 1060px; }
.cc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.cc-row {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 0.4rem 1.6rem; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule-dark);
  transition: background-color .3s var(--ease);
}
.cc-n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--steel-400); line-height: 1; transition: color .3s var(--ease); }
.cc-row.is-no .cc-n { color: var(--amber); }
.cc-row.is-yes .cc-n { color: var(--steel-300); }
.cc-q { font-size: var(--t-h3); margin: 0 0 0.35rem; color: var(--paper); }
.cc-d { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--steel-200); max-width: 62ch; }
.cc-ans { display: inline-flex; border: 1px solid var(--rule-dark); border-radius: 999px; padding: 3px; }
.cc-btn {
  min-width: 4.4rem; min-height: 44px; padding: 0.62rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--steel-200); font: inherit; font-size: 0.88rem; font-weight: 700;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.cc-btn:hover { color: var(--paper); }
.cc-btn[aria-pressed="true"] { background: var(--paper); color: var(--navy-950); }
.cc-btn-no[aria-pressed="true"] { background: var(--amber); color: var(--navy-950); }
.cc-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cc-verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding: 1.3rem 1.5rem; min-height: 6.2rem;
  border: 1px dashed var(--rule-dark); border-radius: var(--r);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.cc-verdict.is-call { background: var(--amber); border: 1px solid var(--amber); }
.cc-verdict.is-fine { background: rgba(250,248,243,0.06); border: 1px solid var(--rule-dark); }
.cc-v-t { margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--paper); }
.cc-v-d { margin: 0; font-size: 0.92rem; color: var(--steel-200); max-width: 58ch; }
.cc-verdict.is-call .cc-v-t { color: var(--navy-950); }
.cc-verdict.is-call .cc-v-d { color: rgba(8, 17, 22, 0.8); }
.cc-v-idle { margin: 0; font-size: 0.92rem; color: var(--steel-300); font-style: italic; }
@media (max-width: 720px) {
  .cc-row { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .cc-n { font-size: 1.5rem; align-self: start; padding-top: 0.2rem; }
  .cc-ans { grid-column: 2; justify-self: start; margin-top: 0.6rem; }
  .cc-verdict .btn { width: 100%; }
}

/* ===== app/mono.css ===== */
/* ==========================================================================
   THE MONOGRAPH
   Service pages as numbered plates, and the /services contents page.
   Tone rule: paper and warm are both cream and never touch; dark and deep are
   both navy and never touch. Every band declares data-tone and
   scripts/tone.mjs checks every route.
   ========================================================================== */

.paper { background: var(--paper); }

/* ---------------------------------------------------------------- crumb rail */
.crail {
  background: var(--navy); color: rgba(250, 248, 243, 0.72);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  border-bottom: 1px solid var(--navy-700);
}
.crail-in { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 40px; }
.crail-nav { min-width: 0; }
.crail-nav ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; }
.crail-nav li { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.crail-nav li + li::before { content: '/'; margin: 0 0.7rem; opacity: 0.4; }
.crail-nav li:last-child { overflow: hidden; }
.crail-nav li:last-child span { overflow: hidden; text-overflow: ellipsis; }
.crail-nav a { color: rgba(250, 248, 243, 0.62); text-decoration: none; transition: color .2s var(--ease); }
.crail-nav a:hover { color: var(--paper); }
.crail-nav [aria-current] { color: var(--paper); }
.crail-plate { margin: 0; display: flex; align-items: center; gap: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.crail-plate b { color: var(--paper); font-weight: 700; }
.crail-plate em { font-style: normal; color: var(--steel-300); padding-left: 0.9rem; border-left: 1px solid rgba(227, 234, 235, 0.22); }
.crail-inside { background: transparent; border-bottom-color: rgba(227, 234, 235, 0.12); position: relative; z-index: 2; }
@media (max-width: 700px) {
  .crail-in { min-height: 36px; }
  .crail-plate em { display: none; }
  .crail-plate-group { display: none; }
  .crail-nav li:nth-child(2):not(:last-child) { display: none; }
  .crail-nav li:nth-child(3)::before { content: '/ \2026 /'; }
}
/* On a phone the plate number gives way to the page name: "Service 01 of 13"
   squeezed the current page down to "Automatic door..." */
@media (max-width: 420px) {
  .crail-plate { display: none; }
}
/* On a touch screen each crumb is a 44px tap target, so the rail is 44px tall
   (40px on desktop, 36px on a phone before). The side padding widens a short
   crumb ("Home") to 44px and the negative margin gives it back, so the words
   do not move. */
@media (max-width: 900px), (pointer: coarse) {
  .crail-in { min-height: 44px; }
  .crail-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.3rem; margin-inline: -0.3rem; }
  .crail-nav a:focus-visible { outline-offset: -2px; } /* the ring stays on the navy rail */
  .mh.mh-navy .crail-inside + .mh-numeral { top: 44px; }
}

/* ---------------------------------------------------------------- specimen hero */
.mh {
  --mh-pb: clamp(2.6rem, 2rem + 2.6vw, 4.4rem);
  position: relative; overflow-x: clip;
  padding-top: clamp(2.4rem, 1.6rem + 3vw, 4.6rem);
  padding-bottom: var(--mh-pb);
  z-index: 2;
}
.mh-paper { background: var(--paper); color: var(--ink); }
.mh-navy { color: var(--paper); padding-top: 0; }
.mh-navy .crail-inside + .mh-numeral { top: 40px; }
.mh-numeral {
  position: absolute; top: -0.06em; left: -0.035em; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(9rem, 4rem + 16vw, 21rem); line-height: 0.8; letter-spacing: -0.05em;
  -webkit-text-stroke: 1px rgba(20, 42, 51, 0.09); color: transparent;
  pointer-events: none; user-select: none;
  font-variant-numeric: lining-nums;
}
.mh-navy .mh-numeral { -webkit-text-stroke-color: rgba(227, 234, 235, 0.08); }
.mh-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 1rem + 4.2vw, 5.4rem); align-items: center;
}
.mh-navy .mh-grid { padding-top: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); }
@media (max-width: 980px) { .mh-grid { grid-template-columns: minmax(0, 1fr); } }
.mh-copy { position: relative; min-width: 0; }
.mh-eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem;
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--steel); margin: 0 0 1.3rem;
}
.mh-plate {
  display: inline-flex; align-items: center; padding: 0.34rem 0.6rem 0.3rem; border-radius: 2px;
  background: var(--navy); color: var(--paper); font-size: 0.64rem; letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}
.mh-navy .mh-plate { background: var(--paper); color: var(--navy-950); }
.mh-navy .mh-eyebrow { color: var(--steel-300); }
.mh-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 1.25rem + 3.1vw, 4rem);
  line-height: 1.05; letter-spacing: -0.028em; color: var(--navy);
  margin: 0 0 1.25rem; max-width: 17ch; text-wrap: balance;
}
.mh-navy .mh-h1 { color: var(--paper); }
.mh-lede { font-size: var(--t-lede); line-height: 1.6; color: var(--ink-soft); max-width: 47ch; margin: 0 0 1.9rem; }
.mh-navy .mh-lede { color: var(--steel-200); }
.mh-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.mh-proof {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin: 0;
  font-size: 0.85rem; color: var(--ink-mute);
}
.mh-proof strong { color: var(--navy); }
.mh-navy .mh-proof { color: var(--steel-300); }
.mh-navy .mh-proof strong { color: var(--paper); }
.mh-proof-item { display: inline-flex; align-items: center; gap: 0.75rem; }
.mh-proof-item::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--steel-300); }
@media (max-width: 600px) {
  .mh-proof { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .mh-proof-item::before { display: none; }
}
.mh-figure { position: relative; min-width: 0; margin-bottom: calc(-1 * (var(--mh-pb) + var(--sill))); z-index: 3; }
@media (max-width: 980px) { .mh-figure { margin-top: 0.6rem; } }

/* wide: copy above a wide plate */
.mh-wide .mh-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(1.8rem, 1rem + 2.4vw, 3rem); }
.mh-wide .mh-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 1rem clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.mh-wide .mh-copy > .mh-eyebrow, .mh-wide .mh-copy > .mh-h1 { grid-column: 1; }
.mh-wide .mh-copy > .mh-lede, .mh-wide .mh-copy > .mh-actions, .mh-wide .mh-copy > .mh-proof { grid-column: 2; }
.mh-wide .mh-h1 { grid-row: 2 / span 3; max-width: 15ch; margin: 0; align-self: end; }
.mh-wide .mh-lede { grid-row: 2; margin-bottom: 0.4rem; }
.mh-wide .mh-actions { grid-row: 3; margin-bottom: 0.4rem; }
.mh-wide .mh-proof { grid-row: 4; }
@media (max-width: 980px) {
  .mh-wide .mh-copy { grid-template-columns: minmax(0, 1fr); }
  .mh-wide .mh-copy > * { grid-column: 1 !important; grid-row: auto !important; }
  .mh-wide .mh-h1 { margin-bottom: 1rem; }
}

/* ---------------------------------------------------------------- folio (the aperture) */
.fo { margin: 0; position: relative; }
.fo-ap {
  position: relative; aspect-ratio: var(--ratio); overflow: hidden; border-radius: 2px;
  background: var(--navy-900); box-shadow: var(--shadow-lg);
}
@media (max-width: 700px) { .fo-ap { aspect-ratio: var(--ratio-m); } }
.fo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.fo-slide.is-on { opacity: 1; }
.fo-slide picture, .fo-slide img { display: block; width: 100%; height: 100%; }
.fo-slide img { object-fit: cover; object-position: var(--focus); }
@media (max-width: 700px) { .fo-slide img { object-position: var(--focus-m); } }
.fo-slide-draw {
  background:
    linear-gradient(rgba(20, 42, 51, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(20, 42, 51, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    #fbfaf6;
}
.fo-over { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
/* the drawn door frame: four hairlines that draw round the aperture once */
.fo-frame { position: absolute; inset: 14px; pointer-events: none; z-index: 3; --fc: rgba(250, 248, 243, 0.6); }
.fo-ap.is-drawing .fo-frame { --fc: rgba(20, 42, 51, 0.3); }
.fo-frame i { position: absolute; background: var(--fc); transition: background-color .6s var(--ease); }
.fo-frame i:nth-child(1) { left: 0; right: 0; top: 0; height: 1px; transform-origin: left; }
.fo-frame i:nth-child(2) { top: 0; bottom: 0; right: 0; width: 1px; transform-origin: top; }
.fo-frame i:nth-child(3) { left: 0; right: 0; bottom: 0; height: 1px; transform-origin: right; }
.fo-frame i:nth-child(4) { top: 0; bottom: 0; left: 0; width: 1px; transform-origin: bottom; }
.fo-draw .fo-frame i:nth-child(odd) { transform: scaleX(0); animation: foDrawX .42s var(--ease-out) forwards; }
.fo-draw .fo-frame i:nth-child(even) { transform: scaleY(0); animation: foDrawY .42s var(--ease-out) forwards; }
.fo-draw .fo-frame i:nth-child(1) { animation-delay: .2s; }
.fo-draw .fo-frame i:nth-child(2) { animation-delay: .5s; }
.fo-draw .fo-frame i:nth-child(3) { animation-delay: .8s; }
.fo-draw .fo-frame i:nth-child(4) { animation-delay: 1.1s; }
@keyframes foDrawX { to { transform: scaleX(1); } }
@keyframes foDrawY { to { transform: scaleY(1); } }
.fo-hinge { position: absolute; top: 14px; bottom: 14px; width: 6px; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; z-index: 4; }
.fo-hinge-left { left: 11px; }
.fo-hinge-right { right: 11px; }
.fo-hinge i { width: 6px; height: 28px; border-radius: 2px; background: var(--amber); box-shadow: 0 1px 3px rgba(8, 17, 22, 0.35); }
.fo-draw .fo-hinge i { opacity: 0; animation: foKnuckle .5s var(--ease-out) forwards; }
.fo-draw .fo-hinge i:nth-child(1) { animation-delay: 1.4s; }
.fo-draw .fo-hinge i:nth-child(2) { animation-delay: 1.52s; }
.fo-draw .fo-hinge i:nth-child(3) { animation-delay: 1.64s; }
@keyframes foKnuckle { from { opacity: 0; transform: scaleY(0.2); } to { opacity: 1; transform: none; } }
.fo-index {
  position: absolute; right: 1.1rem; top: 1.1rem; z-index: 4;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
  color: var(--paper); background: rgba(8, 17, 22, 0.62); backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem; border-radius: 3px;
}

/* the museum card, pinned over the lower edge of the plate */
.fo-cardbox {
  position: relative; z-index: 5;
  width: min(calc(100% - 2.4rem), 23rem); margin: -2.6rem 1.2rem 0 auto;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.15rem 1.35rem 1.2rem; box-shadow: var(--shadow);
}
@media (max-width: 700px) { .fo-cardbox { width: calc(100% - 1.4rem); margin: -1.6rem 0.7rem 0; } }
.fo-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #8a5a1c; margin: 0 0 0.3rem; }
.fo-title { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; letter-spacing: -0.012em; color: var(--navy); margin: 0 0 0.85rem; line-height: 1.25; }
.fo-spec { display: grid; gap: 0.45rem; margin: 0; }
.fo-spec > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 0.45rem; border-top: 1px solid var(--rule); }
.fo-spec dt { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.fo-spec dd { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--navy); text-align: right; }
.fo-note { margin: 0.8rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-mute); font-style: italic; }
.fo-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.fo-toc a {
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 0.4rem; align-items: baseline;
  padding: 0.5rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; color: var(--navy); transition: color .2s var(--ease), padding-left .25s var(--ease-out);
}
.fo-toc a:hover { color: var(--amber-deep); padding-left: 0.3rem; }
.fo-toc-n { font-family: var(--font-display); font-size: 0.95rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.fo-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.95rem; padding-top: 0.85rem; border-top: 1px solid var(--rule); }
.fo-nav > button {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); color: var(--navy);
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.fo-nav > button:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.fo-dots { display: flex; gap: 0.3rem; }
.fo-dots button { width: 28px; height: 44px; border: 0; padding: 0; cursor: pointer; background: transparent; position: relative; }
.fo-dots button::after { content: ''; position: absolute; left: 1px; right: 1px; top: 20px; height: 3px; border-radius: 2px; background: var(--paper-edge); transition: background-color .26s var(--ease); }
.fo-dots button.on::after { background: var(--amber); }

/* a horizontal label strip instead of a card (wide plates) */
.fo-card-strip .fo-cardbox { width: auto; margin: 0; border-radius: 0 0 var(--r) var(--r); border-top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 2rem; box-shadow: none; }
.fo-card-strip .fo-title { margin: 0; }
.fo-card-strip .fo-spec { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-left: auto; }
.fo-card-strip .fo-spec > div { border: 0; padding: 0; gap: 0.5rem; }
.fo-card-strip .fo-note { flex-basis: 100%; margin: 0; }

/* navy field: an amber hairline aperture on the Night Folio */
.mh-navy .fo-ap { background: var(--navy-950); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.mh-navy .fo-frame { --fc: rgba(215, 149, 66, 0.8); }
.mh-navy .fo-cardbox { background: var(--navy-800); border-color: var(--rule-dark); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.mh-navy .fo-title, .mh-navy .fo-spec dd { color: var(--paper); }
.mh-navy .fo-spec > div, .mh-navy .fo-nav { border-color: var(--rule-dark); }
.mh-navy .fo-spec dt, .mh-navy .fo-note { color: var(--steel-300); }
.mh-navy .fo-cat { color: var(--amber); }
.mh-navy .fo-nav > button { color: var(--paper); border-color: var(--rule-dark); }
.mh-navy .fo-nav > button:hover { background: var(--paper); color: var(--navy-950); }
.mh-navy .fo-dots button::after { background: rgba(227, 234, 235, 0.2); }
.mh-navy .fo-dots button.on::after { background: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .fo-draw .fo-frame i { animation: none !important; transform: none !important; }
  .fo-draw .fo-hinge i { animation: none; opacity: 1; }
  .fo-slide { transition: none; }
}

/* ---------------------------------------------------------------- loupe */
.loupe { position: absolute; z-index: 6; width: clamp(128px, 12vw, 200px); filter: drop-shadow(0 14px 26px rgba(8, 17, 22, 0.3)); }
.loupe-hex {
  display: block; aspect-ratio: 0.866; padding: 5px; background: var(--paper);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.loupe-hex picture, .loupe-hex img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.loupe-cap {
  display: table; margin: 0.5rem auto 0; padding: 0.34rem 0.55rem; text-align: center;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; line-height: 1.35;
  color: var(--navy); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
}
.mh-navy .loupe-cap, .dark .loupe-cap, .deep .loupe-cap { color: var(--paper); background: var(--navy-800); border-color: var(--rule-dark); }

/* ---------------------------------------------------------------- callouts */
.co { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.co-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co-lines line {
  stroke: rgba(250, 248, 243, 0.9); stroke-width: 1; filter: drop-shadow(0 0 2px rgba(8, 17, 22, 0.7));
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: coDraw .8s var(--ease-out) var(--d) forwards;
}
@keyframes coDraw { to { stroke-dashoffset: 0; } }
.co-dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 3px rgba(215, 149, 66, 0.3), 0 1px 4px rgba(8, 17, 22, 0.5);
  opacity: 0; animation: coFade .4s var(--ease-out) var(--d) forwards;
}
.co-label {
  position: absolute; transform: translate(0, -50%); white-space: nowrap;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--paper); background: rgba(8, 17, 22, 0.82); backdrop-filter: blur(4px);
  padding: 0.38rem 0.55rem; border-radius: 2px;
  opacity: 0; animation: coFade .5s var(--ease-out) var(--d) forwards;
}
.co-right { transform: translate(-100%, -50%); }
.co-center { transform: translate(-50%, -50%); }
@keyframes coFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .co-lines line { animation: none; stroke-dashoffset: 0; }
  .co-dot, .co-label { animation: none; opacity: 1; }
}

/* ---------------------------------------------------------------- bands */
.mb-sill { padding-top: calc(var(--section) + 56px); }
.mb.section-tight.mb-sill { padding-top: calc(var(--section-tight) + 56px); }
.mb-head { margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.4rem); }
.mb-head-split { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; gap: clamp(1rem, 0.5rem + 2.5vw, 3.5rem); align-items: end; }
.mb-head-split .lede { margin: 0; }
.mb-head-stack { max-width: 46rem; }
.mb-head-stack .lede { margin: 1rem 0 0; }
@media (max-width: 860px) { .mb-head-split { grid-template-columns: 1fr; align-items: start; } }

/* ---------------------------------------------------------------- answer rail */
.ar-answer { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5.4rem); align-items: start; }
@media (max-width: 900px) { .ar-answer { grid-template-columns: minmax(0, 1fr); } }
.ar-big {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 1.05rem + 1.55vw, 2.3rem); line-height: 1.28; letter-spacing: -0.016em;
  color: var(--paper); margin: 0; text-wrap: pretty; max-width: 30ch;
}
.ar-proof {
  display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.8rem 0 0; padding-top: 1.1rem;
  border-top: 1px solid var(--rule-dark); max-width: 60ch; font-size: 0.86rem; line-height: 1.55; color: var(--steel-200);
}
.ar-proof svg { color: var(--amber); flex: none; margin-top: 2px; }
.ar-links-h { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--steel-300); margin: 0.4rem 0 0.8rem; }
.ar-links ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.ar-links a {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0.6rem; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule-dark);
  color: var(--paper); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color .22s var(--ease), padding-left .3s var(--ease-out);
}
.ar-links a svg { color: var(--steel); transition: transform .3s var(--ease-out), color .22s var(--ease); }
.ar-links a:hover { color: var(--amber); padding-left: 0.4rem; }
.ar-links a:hover svg { color: var(--amber); transform: translateX(3px); }
.ar-n { font-size: 0.72rem; font-weight: 700; color: var(--steel); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
/* Small steel labels and numbers read in the lighter grey on a navy band:
   Service Steel is about 3:1 there, under AA for text this size. */
.dark :is(.ar-n, .st-n, .er-k, .ev-h, .colo-k, .colo-n, .ts-k, .fo-spec dt, .fo-toc-n, .fr-sm .fr-k, .bp-step-n, .bp-list-n),
.deep :is(.ar-n, .st-n, .er-k, .ev-h, .colo-k, .colo-n, .ts-k, .fo-spec dt, .fo-toc-n, .fr-sm .fr-k, .bp-step-n, .bp-list-n) { color: var(--ink-mute-dark); }

.ar-quote { max-width: 60rem; }
.ar-fig { margin: 0; }
.ar-q {
  margin: 0 0 1.5rem; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 1.1rem + 3vw, 3.6rem); line-height: 1.12; letter-spacing: -0.022em; color: var(--paper);
  text-wrap: balance;
}
.ar-fig figcaption { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: baseline; font-size: 0.9rem; color: var(--steel-300); }
.ar-fig figcaption strong { color: var(--paper); font-weight: 600; }
.ar-after { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule-dark); font-size: 1.02rem; line-height: 1.6; color: var(--steel-200); max-width: 58ch; }

.ar-display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.03em;
  color: var(--paper); margin: 0; max-width: 18ch; text-wrap: balance;
}
.ar-sub { margin: 1.6rem 0 0; max-width: 56ch; font-size: var(--t-lede); line-height: 1.58; color: var(--steel-200); }

.ar-legal {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.4rem, 1rem + 2vw, 3rem); align-items: start;
  padding: clamp(1.6rem, 1rem + 2.4vw, 3rem); border: 1px solid var(--rule-dark); border-radius: 3px;
  background: rgba(250, 248, 243, 0.03); max-width: 64rem;
}
.ar-seal { position: relative; display: grid; place-items: center; width: 58px; height: 58px; color: var(--amber); }
.ar-seal svg:first-child { position: absolute; inset: 0; }
.ar-legal-h { margin: 0 0 0.9rem; }
.ar-legal-t { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); line-height: 1.4; color: var(--paper); margin: 0; max-width: 46ch; }
.ar-legal-n { margin: 1.2rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--steel-200); max-width: 60ch; }
@media (max-width: 600px) { .ar-legal { grid-template-columns: 1fr; } }

.ar-path-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.2rem + 2vw, 3rem); }
.ar-path-head .lede { margin-top: 1rem; }
.ar-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.ar-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--rule-dark); }
.ar-steps li { position: relative; padding: 1.6rem 1.4rem 0 0; }
.ar-step-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--amber); background: var(--navy); }
.ar-steps li:last-child .ar-step-dot { background: var(--amber); }
.ar-step-t { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--paper); margin: 0 0 0.45rem; line-height: 1.3; }
.ar-step-d { font-size: 0.9rem; line-height: 1.6; color: var(--steel-200); margin: 0; }
@media (max-width: 860px) {
  .ar-steps { grid-auto-flow: row; }
  .ar-steps::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .ar-steps li { padding: 0 0 1.6rem 2.2rem; }
}

/* ---------------------------------------------------------------- chapters */
.ch-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 1rem + 4.5vw, 5.6rem); align-items: start; }
@media (max-width: 1000px) { .ch-rail { grid-template-columns: minmax(0, 1fr); } }
.ch-body { max-width: 47rem; min-width: 0; }
.ch-sec + .ch-sec { margin-top: clamp(2.8rem, 2rem + 3vw, 4.6rem); padding-top: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); border-top: 1px solid var(--rule); }
.dark .ch-sec + .ch-sec, .deep .ch-sec + .ch-sec { border-color: var(--rule-dark); }
.ch-h2 { font-size: var(--t-h2); margin: 0 0 1.2rem; max-width: 22ch; text-wrap: balance; scroll-margin-top: calc(var(--hdr-h, 80px) + 2rem); }
.ch-p { font-size: var(--t-body); line-height: 1.78; color: var(--ink-soft); margin: 0 0 1.15rem; max-width: 66ch; }
.ch-sec > .ch-h2 + .ch-p { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.2rem); color: var(--ink); line-height: 1.7; }
.dark .ch-p, .deep .ch-p { color: var(--steel-200); }
.dark .ch-sec > .ch-h2 + .ch-p, .deep .ch-sec > .ch-h2 + .ch-p { color: var(--paper); }
.ch-drop::first-letter {
  font-family: var(--font-display); font-weight: 600; float: left;
  font-size: 4.4em; line-height: 0.82; padding: 0.08em 0.12em 0 0; color: var(--navy);
}
.dark .ch-drop::first-letter, .deep .ch-drop::first-letter { color: var(--paper); }
.ch-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 820px) { .ch-cards { grid-template-columns: minmax(0, 1fr); } }
.ch-card { border-top: 1px solid var(--navy); padding-top: 1rem; }
.dark .ch-card, .deep .ch-card { border-color: var(--rule-dark); }
.ch-card-n { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--steel-300); line-height: 1; margin-bottom: 0.6rem; }
.ch-card h3 { font-size: 1.12rem; margin: 0 0 0.5rem; }
.ch-card p { font-size: 0.92rem; line-height: 1.62; color: var(--ink-mute); margin: 0; }
.dark .ch-card p, .deep .ch-card p { color: var(--steel-200); }

/* spec table */
.st { margin-top: clamp(1.6rem, 1rem + 1.5vw, 2.4rem); }
.st-t { display: flex; align-items: center; gap: 0.55rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.9rem; }
.st-t svg { color: var(--amber-deep); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem); border-bottom: 1px solid var(--rule); }
.st-c2 .st-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .st-c2 .st-list { grid-template-columns: minmax(0, 1fr); } }
.st-list li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0.4rem; padding: 0.82rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.st-n { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--steel-ink); font-variant-numeric: tabular-nums; }
.st-v { font-size: 0.95rem; line-height: 1.45; font-weight: 500; color: var(--navy); }
.dark .st-list, .deep .st-list, .dark .st-list li, .deep .st-list li { border-color: var(--rule-dark); }
.dark .st-v, .deep .st-v { color: var(--paper); }
.dark .st-t, .deep .st-t { color: var(--steel-300); }
.dark .st-t svg, .deep .st-t svg { color: var(--amber); }

/* estimate rail */
.er { position: sticky; top: calc(var(--hdr-h, 80px) + 1.5rem); display: grid; gap: 1rem; }
@media (max-width: 1000px) { .er { position: static; max-width: 30rem; } }
.er-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.warm .er-card { background: #fffdf9; }
.er-k { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.3rem; }
.er-h { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--navy); margin: 0 0 0.6rem; }
.er-p { font-size: 0.88rem; line-height: 1.6; color: var(--ink-mute); margin: 0 0 1.1rem; }
.er-btn { width: 100%; margin-bottom: 0.6rem; padding-block: 0.85rem; }
.er-list { list-style: none; margin: 0.6rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.45rem; }
.er-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.er-list svg { color: var(--amber-deep); }
.er-cred { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: var(--r-lg); background: var(--navy); color: var(--steel-200); }
.er-cred p { margin: 0; font-size: 0.84rem; line-height: 1.55; }
.er-cred strong { color: var(--paper); display: block; margin-bottom: 0.2rem; }

/* evidence strip */
.ev { margin-top: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
.ev-h { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.9rem; }
.ev-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .ev-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-fig:nth-child(3) { display: none; } }
.ev-fig { margin: 0; }
.ev-ap { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--navy-900); box-shadow: var(--shadow-sm); }
.ev-ap picture, .ev-ap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-fig figcaption { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.45; color: var(--ink-mute); }
.ev-n { font-weight: 700; color: var(--navy); margin-right: 0.3rem; }
.dark .ev-fig figcaption, .deep .ev-fig figcaption { color: var(--steel-300); }
.dark .ev-n, .deep .ev-n { color: var(--paper); }

/* ---------------------------------------------------------------- featured review */
.fr { margin: 0; }
.fr-k { display: flex; align-items: center; gap: 0.7rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--steel-300); margin: 0 0 1.4rem; }
.fr-q { margin: 0 0 1.4rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.018em; color: var(--paper); text-wrap: pretty; }
.fr-lg .fr-q { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); line-height: 1.4; max-width: 46ch; }
.fr-band.section-tight { padding-block: clamp(2.6rem, 2rem + 2.4vw, 4rem); }
.fr-band .ghost { display: none; }
.fr-sm .fr-q { font-size: 1.2rem; line-height: 1.45; color: var(--navy); }
.fr-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; font-size: 0.88rem; color: var(--steel-300); }
.fr-by strong { color: var(--paper); font-weight: 600; }
.fr-sm .fr-k { color: var(--steel); margin-bottom: 0.8rem; }
.fr-sm .fr-by { color: var(--ink-mute); }
.fr-sm .fr-by strong { color: var(--navy); }

/* ---------------------------------------------------------------- colophon */
.colo-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.2rem, 1rem + 5vw, 6rem); align-items: start; }
@media (max-width: 960px) { .colo-grid { grid-template-columns: minmax(0, 1fr); } }
.colo-h { font-size: var(--t-h2); margin: 0 0 1rem; max-width: 16ch; text-wrap: balance; }
.colo-cta .lede { max-width: 50ch; margin: 0 0 1.8rem; }
.colo-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.colo-promise { list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--rule-strong); display: grid; gap: 0.55rem; max-width: 56ch; }
.colo-promise li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.colo-promise svg { color: var(--amber-deep); margin-top: 3px; }
.colo-review { margin-top: 2rem; padding: 1.4rem 1.5rem; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.colo-k { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--steel-ink); margin: 0 0 0.8rem; }
.colo-next ol { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--rule-strong); }
.colo-row {
  display: grid; grid-template-columns: 64px 2.2rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--navy);
  transition: background-color .22s var(--ease);
}
.colo-row:hover { background: rgba(255, 255, 255, 0.5); }
.colo-row > svg { color: var(--steel); transition: transform .3s var(--ease-out), color .2s var(--ease); margin-right: 0.4rem; }
.colo-row:hover > svg { color: var(--amber-deep); transform: translateX(3px); }
.colo-thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 2px; background: var(--navy-900); }
.colo-thumb picture, .colo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.colo-thumb-mark { display: grid; place-items: center; background: var(--navy); color: var(--amber); }
.colo-n { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--steel-ink); font-variant-numeric: tabular-nums; }
.colo-t { display: grid; gap: 0.15rem; min-width: 0; }
.colo-n-also { font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.colo-t strong { font-size: 0.98rem; font-weight: 600; }
.colo-t em { font-style: normal; font-size: 0.8rem; line-height: 1.4; color: var(--ink-mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.colo-all { font-size: 0.9rem; }
.colo-areas { margin-top: 2.2rem; }
.colo-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.colo-chips a {
  font-size: 0.8rem; font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 0.45rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.colo-chips a:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
@media (max-width: 520px) { .colo-row { grid-template-columns: 52px 1.8rem minmax(0, 1fr); } .colo-row > svg { display: none; } .colo-thumb { width: 52px; height: 52px; } }
/* phones: the row's description is read, so 13px rather than 12.8 */
@media (max-width: 600px) { .colo-t em { font-size: 0.8125rem; } }

/* ---------------------------------------------------------------- type split */
.ts { position: relative; display: grid; gap: clamp(1.6rem, 1rem + 3vw, 4rem); padding-top: 2rem; }
.ts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ts-2, .ts-3 { grid-template-columns: minmax(0, 1fr); } }
.ts-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--amber); opacity: 0.8; }
.ts-col { min-width: 0; }
.ts-k { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.7rem; }
.dark .ts-k, .deep .ts-k { color: var(--amber); }
.ts-h { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 0.9rem; line-height: 1.2; }
.ts-d { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 0.9rem; max-width: 52ch; }
.dark .ts-d, .deep .ts-d { color: var(--steel-200); }
.ts-list { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.ts-list li { font-size: 0.92rem; color: var(--ink-soft); padding-left: 1rem; position: relative; }
.ts-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: currentColor; }
.dark .ts-list li, .deep .ts-list li { color: var(--steel-200); }
.ts-deeper { background: rgba(0, 0, 0, 0.22); padding: 1.6rem; margin: -0.4rem 0 0; border-radius: 2px; }

/* ---------------------------------------------------------------- faq band */
.faq-band .faq-head h2 { text-wrap: balance; }

/* ---------------------------------------------------------------- blueprint kit
   One line language for every drawing on the plates. Use inside an <svg>:
     .bp-line       0.8px structure line (navy on cream, paper on navy)
     .bp-thin       0.6px secondary line
     .bp-amber      the active or failing part, in signal amber
     .bp-fill-hatch fill="url(#<id>-hatch)"   material
     .bp-fill-rust  fill="url(#<id>-rust)"    rust
     .bp-dot        amber anchor dot
     .bp-label      Inter caps, 10px
     .bp-d          draws on when an ancestor gets .is-in (give the path
                    pathLength="1"; stagger with style="--bd: 300ms")
   ------------------------------------------------------------------------- */
.bp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bp-line { fill: none; stroke: var(--navy); stroke-width: 0.8; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.bp-thin { fill: none; stroke: var(--steel); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.bp-dash { stroke-dasharray: 4 4; }
.bp-amber { fill: none; stroke: var(--amber); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.bp-solid-amber { fill: var(--amber); stroke: none; }
.bp-hatch-line { stroke: rgba(20, 42, 51, 0.32); stroke-width: 1; }
.bp-rust-line { stroke: var(--amber); stroke-width: 1.2; }
.bp-grid-line { fill: none; stroke: rgba(20, 42, 51, 0.06); stroke-width: 1; }
.bp-arrowhead { fill: var(--navy); }
.bp-dot { fill: var(--amber); }
.bp-label { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--navy); }
.bp-label-mute { fill: var(--steel); }
.dark .bp-line, .deep .bp-line, .bp-on-dark .bp-line { stroke: var(--steel-200); }
.dark .bp-thin, .deep .bp-thin, .bp-on-dark .bp-thin { stroke: var(--steel); }
.dark .bp-hatch-line, .deep .bp-hatch-line, .bp-on-dark .bp-hatch-line { stroke: rgba(199, 212, 215, 0.3); }
.dark .bp-grid-line, .deep .bp-grid-line, .bp-on-dark .bp-grid-line { stroke: rgba(227, 234, 235, 0.05); }
.dark .bp-arrowhead, .deep .bp-arrowhead, .bp-on-dark .bp-arrowhead { fill: var(--steel-200); }
.dark .bp-label, .deep .bp-label, .bp-on-dark .bp-label { fill: var(--paper); }
.dark .bp-label-mute, .deep .bp-label-mute, .bp-on-dark .bp-label-mute { fill: var(--steel-300); }

.bp-d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out) var(--bd, 0ms); }
/* pathLength dash maths only works in user space: a non-scaling stroke makes
   Chrome measure the dash on screen and leaves lines partly undrawn */
.bp-d, .bp-d.bp-line, .bp-d.bp-thin, .bp-d.bp-amber { vector-effect: none; }
.is-in .bp-d { stroke-dashoffset: 0; }
.bp-fade { opacity: 0; transition: opacity .6s var(--ease-out) var(--bd, 0ms); }
.is-in .bp-fade { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .bp-d { stroke-dashoffset: 0; transition: none; }
  .bp-fade { opacity: 1; transition: none; }
}

/* step controls */
.bp-steps { margin-top: 1.4rem; }
.bp-steps-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: stretch; }
.bp-step, .bp-steps-nav {
  appearance: none; min-height: 44px; cursor: pointer; font: inherit;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--navy); border-radius: var(--r-sm);
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.bp-steps-nav { width: 44px; font-size: 1.05rem; }
.bp-steps-nav:disabled { opacity: 0.35; cursor: default; }
.bp-step { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.9rem; text-align: left; }
.bp-step-n { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--steel); }
.bp-step-t { font-size: 0.84rem; font-weight: 600; }
.bp-step:hover { border-color: var(--navy); }
.bp-step.is-on { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.bp-step.is-on .bp-step-n { color: var(--amber); }
.bp-step:focus-visible, .bp-steps-nav:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.bp-steps-dark .bp-step, .bp-steps-dark .bp-steps-nav { border-color: var(--rule-dark); color: var(--steel-200); }
.bp-steps-dark .bp-step:hover { border-color: rgba(250, 248, 243, 0.45); color: var(--paper); }
.bp-steps-dark .bp-step.is-on { background: var(--paper); border-color: var(--paper); color: var(--navy-950); }
.bp-steps-dark .bp-step.is-on .bp-step-n { color: var(--amber-deep); }
.bp-caption { margin: 1rem 0 0; min-height: 3.2em; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; color: var(--navy); max-width: 44ch; }
.bp-steps-dark .bp-caption { color: var(--paper); }

/* captions as a list */
.bp-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.bp-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.bp-list strong { color: var(--navy); font-weight: 600; }
.bp-list-n { font-family: var(--font-display); font-weight: 600; color: var(--steel); }
.dark .bp-list, .deep .bp-list, .dark .bp-list li, .deep .bp-list li { border-color: var(--rule-dark); }
.dark .bp-list li, .deep .bp-list li { color: var(--steel-200); }
.dark .bp-list strong, .deep .bp-list strong { color: var(--paper); }

/* ---------------------------------------------------------------- the wall band */
.hub-wall { padding-block: 0; overflow: hidden; }
.wb { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; min-height: clamp(520px, 44vw, 700px); }
@media (max-width: 900px) { .wb { grid-template-columns: minmax(0, 1fr); min-height: 0; } }
.wb-copy { padding-block: var(--section-tight); }
.wb-copy h2 { font-size: var(--t-h2); max-width: 16ch; margin: 0 0 1.1rem; }
.wb-copy .lede { max-width: 44ch; margin: 0 0 1.8rem; }
.wb-wall {
  position: relative; align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  height: clamp(520px, 44vw, 700px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
@media (max-width: 900px) { .wb-wall { height: 460px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--section-tight); } .wb-col:nth-child(3) { display: none; } }
.wb-col { overflow: hidden; }
.wb-track { display: flex; flex-direction: column; gap: 10px; animation: wbDrift var(--sp) linear infinite; }
.wb-up .wb-track { animation-direction: reverse; }
.wb-wall:hover .wb-track { animation-play-state: paused; }
@keyframes wbDrift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 5px)); } }
.wb-cell { flex: none; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--navy-900); }
.wb-cell picture, .wb-cell img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
@media (prefers-reduced-motion: reduce) {
  .wb-track { animation: none; }
  .wb-wall { -webkit-mask-image: none; mask-image: none; }
}


/* our work: the wall as a hero */
.wk-hero { position: relative; overflow: hidden; color: var(--paper); }
.wk-hero .wb-copy { padding-block: clamp(2.6rem, 2rem + 3vw, 5rem); }
.wb-h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.028em; color: var(--paper); margin: 0 0 1.2rem; max-width: 14ch; text-wrap: balance; }
.wk-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0 0 1.4rem; }
.wk-proof { display: flex; align-items: center; gap: 0.7rem; margin: 0; font-size: 0.86rem; color: var(--steel-300); }
.wk-proof strong { color: var(--paper); }
@media (min-width: 901px) { .wk-hero .wb-wall { height: clamp(560px, 48vw, 760px); } .wk-hero .wb { min-height: clamp(560px, 48vw, 760px); } }

/* ===== components/Header.css ===== */
/* ==========================================================================
   HEADER: the service areas menu
   Twenty-nine places in one row of compact columns. St. Louis County and the
   City take four columns, one per corridor; St. Charles County and Jefferson
   County take one each. Each county is a subgrid of the menu's six columns,
   so every column lines up whichever county it belongs to. The rest of the
   header lives in app/globals.css.
   ========================================================================== */

/* The two one-column counties get a little more width than a corridor, so
   "St. Charles County" and "Jefferson County" sit on one line together from
   about 1280px instead of one wrapping and the other not. */
.area-menu {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) repeat(2, minmax(0, 1.15fr)); grid-template-rows: auto auto 1fr;
  gap: 0 1.2rem; padding: 1.4rem 1.6rem 1.1rem;
}
.area-county > .mega-head { letter-spacing: 0.12em; }
/* Rows are shared too: a county name that wraps to two lines ("St. Charles
   County" in a narrow column) pushes every column's subtitle down with it. */
.area-county {
  grid-column: span var(--span, 1); grid-row: 1 / span 3;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
}
.area-county > .mega-head { grid-column: 1 / -1; grid-row: 1; align-self: end; margin: 0 0 0.55rem; padding: 0 0.6rem; }
.area-col { grid-row: 2 / span 2; display: grid; grid-template-rows: subgrid; align-content: start; }
.area-county > .mega-head svg { flex: none; color: var(--steel-300); }
/* a rule between the corridors and the two smaller counties */
.area-county + .area-county { position: relative; }
.area-county:nth-child(2)::before {
  content: ''; position: absolute; left: -0.6rem; top: 0; bottom: 0.3rem; width: 1px; background: var(--rule);
}
.area-col { min-width: 0; }
.area-col > ul { align-self: start; }
.area-col-t {
  margin: 0 0 0.2rem; padding: 0 0.6rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-mute);
}
.area-col ul { list-style: none; margin: 0; padding: 0; }
.area-col a {
  display: block; padding: 0.34rem 0.6rem; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--navy);
  text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease);
}
.area-col a:hover { background: var(--paper-warm); }
.area-col a:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

/* the mobile panel: one short heading per county above its two columns */
.mnav-group .mnav-areas { margin-top: 0.1rem; }

/* "Services" and "Service Areas" in the panel are links to the two hubs, so
   they get a 44px tap target. The margins give back the height the target
   adds, so the panel keeps its rhythm. */
.mnav .mnav-label-link { min-height: 44px; margin: 0.85rem 0 0; }
.mnav .mnav-label-link:first-child { margin-top: -0.75rem; }

/* Between the phone and the full navigation (700 to 1179px) the panel is as
   wide as a tablet, and one column of links ran nearly a metre of rule. There
   it reads in two newspaper columns: services, then areas and the company. */
@media (min-width: 700px) and (max-width: 1179px) {
  .mnav-scroll { columns: 2; column-gap: clamp(2rem, 5vw, 3.5rem); }
  .mnav-group, .mnav-all, .mnav-foot { break-inside: avoid; }
  .mnav-label { break-after: avoid; }
  .mnav-label-link + .mnav-all { break-before: avoid; }
  /* the second "Service Areas" label opens the right-hand column */
  .mnav .mnav-group + .mnav-label-link { break-before: column; margin-top: -0.75rem; }
}

/* ===== components/Footer.css ===== */
/* ==========================================================================
   FOOTER: the service areas band, and three link columns above it
   Twenty-nine places do not fit one footer column, so they get the full
   width under the link columns, in the same columns as the header menu:
   St. Louis County and the City by corridor, then St. Charles County and
   Jefferson County. Each county is a subgrid of one six-column grid, so the
   columns line up across counties. The rest of the footer is in
   app/globals.css.
   ========================================================================== */

/* The logo is drawn for a light ground: on navy-950 its navy "DOOR SERVICE"
   and truck disappear and it reads "SAME DAY". There is no reversed file, so it
   sits on a paper card. The card stands clear of the amber rule at the top of
   the footer (the footer's own top padding is the space above it) and the
   hexagon's points get real room on every side inside it. */
.ftr-tab {
  width: fit-content; margin: 0 0 1.6rem;
  padding: 2rem 2.2rem 1.8rem;
  background: var(--paper); border-radius: var(--r);
}
.ftr-tab .ftr-logo { display: block; width: 150px; height: auto; margin: 0; }

.ftr-cols.ftr-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* a column heading that is a link keeps the heading size, not the link size */
.ftr .ftr-h a { font-size: inherit; letter-spacing: inherit; }

.ftr-places { margin-top: clamp(2.4rem, 1.5rem + 3vw, 3.4rem); padding-top: 2rem; border-top: 1px solid var(--rule-dark); }
.ftr-places-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem 1.8rem; }
.ftr-county {
  grid-column: span var(--span, 1);
  display: grid; grid-template-columns: subgrid; align-content: start; row-gap: 0;
}
.ftr-county-t { grid-column: 1 / -1; margin: 0 0 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--paper); }
.ftr-corr { min-width: 0; }
.ftr-corr-t { margin: 0 0 0.55rem; font-size: 0.72rem; color: var(--ink-mute-dark); }
.ftr-places .ftr-areas { list-style: none; margin: 0; padding: 0; columns: 1; }
.ftr-places li { margin-bottom: 0.44rem; }
.ftr-places a { font-size: 0.87rem; color: var(--steel-300); text-decoration: none; transition: color .22s var(--ease); }
.ftr-places a:hover { color: var(--paper); }
.ftr-places .ftr-areas-line { max-width: none; }

/* the holiday line under the hours */
.ftr-contact-sub { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--steel-300); }

@media (max-width: 1100px) {
  .ftr-places-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr-county { grid-column: span 2; }
  .ftr-county:first-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) { .ftr-cols.ftr-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .ftr-cols.ftr-cols-3 { grid-template-columns: minmax(0, 1fr); }
  .ftr-places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .ftr-county { grid-column: span 1; }
  .ftr-county:first-child { grid-column: 1 / -1; row-gap: 1.1rem; }
}

/* Small text on the navy footer meets 4.5:1. --steel (#58747b) is only 3.8:1
   on navy-950, so the small labels go to steel-400 (6.2:1) and the guardrail
   lines people need to read (the same-day and commercial-only notes) to
   steel-300 (9.1:1). */
.ftr .ftr-contact-item em, .ftr .ftr-base p { color: var(--steel-400); }
.ftr .ftr-notes p { color: var(--steel-300); }

/* On phones and tablets every footer link is a 44px tap target: the link fills
   the row instead of the gap between rows. */
@media (max-width: 900px), (pointer: coarse) {
  .ftr .ftr-cols li, .ftr .ftr-places li { margin-bottom: 0; }
  .ftr .ftr-cols li a, .ftr .ftr-places li a { display: flex; align-items: center; min-height: 44px; }
  .ftr .ftr-h:has(a) { margin-bottom: 0.2rem; }
  .ftr .ftr-h a { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr a.ftr-contact-item { min-height: 44px; }
  .ftr-corr-t { margin-bottom: 0.1rem; }
}
