/* ==========================================
   Bramwell-McKay Brick Staining, styles.css
   Mobile-first. WW machine, Nawkaw register.
   Identity: gold accent on a charcoal + white
   system, navy as complementary dark. Calm
   motion only: fades, count-up, slider.
   ========================================== */

/* ---------- Self-hosted type (latin subset, variable weight) ----------
   Public Sans, picked by Vazul at the Sep 1 2026 type review, replacing
   the Archivo heading / Hanken Grotesk body pairing. ONE face now carries
   headings and body both, at medium headline weight (--w-head), which is
   the change that buys the commercial-enterprise register: lighter, wider
   headlines instead of the old 700/800 card titles.
   TODO(asset:font): revisit against Kate's logo files when they land. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/public-sans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS Variables ---------- */
:root {
  /* Brand values per the official brand sheet (raw/assets/logos-brand,
     Aug 29 2026): Worn Gold #C6953F, Coal #1D1D1E. These supersede the
     Aug 28 operator readings (#C7953F / #1D1D1D) by one imperceptible unit.
     This block and index.html's inline critical CSS token block must
     change together.
     Navy re-tuned at Kate's Aug 29 call: BAM-Capital-style blue, richer
     and bluer than the old #20293E, brighter than the too-dark call
     swatch. Candidates rendered in design-review/navy-candidates:
     A #243252 (brightest), B #1E2B49 (applied), C #192440 (darkest). */
  --gold: #C6953F;
  --gold-hover: #AF8337;
  /* Small gold TEXT on white or the light band (Vazul, Oct 6 2026, option 2
     of the contrast board): 5.03:1 on white, 4.54:1 on #F5F3EE. Gold fills,
     rules, buttons, logos and large type keep --gold / --gold-hover. */
  --gold-text: #8C692C;
  --charcoal: #1D1D1E;
  --charcoal-2: #2A2A2A;
  --navy: #1E2B49;
  --navy-hover: #16213B;
  --white: #FFFFFF;
  --light-band: #F5F3EE;
  --hairline: #E7E3DA;
  --ink: #333333;
  --ink-soft: #555555;
  --font-heading: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Headline weight, one token (Vazul, Sep 1 2026). Every real heading reads
     this; uppercase micro-labels, buttons and chips keep their own 600/700,
     which is the two-tier split the type lab was built to test. Change the
     headline weight of the whole site here. */
  --w-head: 500;
  /* 1200 to 1380, +15% (Vazul, Sep 1 2026): wider page, larger images, more
     white space, for the enterprise read. He asked for 10 to 15 and this is
     the top of it. NOTE FOR ANY FUTURE CHANGE: this token sizes every photo
     box on the site, and the exact-fit image rungs in scripts/optimize-fit-
     crops.sh are pinned to those measured boxes, so moving it means
     regenerating the rungs and re-checking with
     design-review/check-image-resolution.js or the moire comes back. It is
     also duplicated in index.html's critical CSS block and has to match. */
  --max-width: 1380px;
  --nav-height: 103px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: var(--nav-height);
  background-color: var(--charcoal);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 0 0 4px 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
  outline: 3px solid var(--charcoal);
  outline-offset: -3px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hover);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  margin-bottom: 3rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

/* ---------- Buttons ----------
   Calm: color transitions only, no lifts, no wiggles. */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--charcoal);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

/* Navy outline variant. Vazul, Sep 1 2026: the endorser band's About Us
   button in brand navy rather than charcoal, and the key band CTA restyled
   to match it (outline that fills on hover, in place of the gold fill).
   Kept as a modifier rather than a change to .btn-secondary itself, so the
   outlined buttons on the other pages stay charcoal until that is ruled on
   separately. Same specificity as the base rule, so it has to stay BELOW it
   in source order; .on-dark and .partner-band are more specific and keep
   their white outlines, which is what dark bands need. */
.btn-secondary--navy {
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary--navy:hover {
  background-color: var(--navy);
  color: var(--white);
}

.on-dark .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.on-dark .btn-secondary:hover {
  background-color: var(--white);
  color: var(--charcoal);
}

.btn-full {
  width: 100%;
}

/* ---------- Section headings ----------
   Straight short gold rule, centered. No skew, no rotation. */
section h2 {
  text-align: center;
  padding-bottom: 18px;
  position: relative;
  font-size: 1.8rem;
  font-weight: var(--w-head);
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--gold);
}

.h2-left h2,
h2.h2-left {
  text-align: left;
}

.h2-left h2::after,
h2.h2-left::after {
  left: 0;
  transform: none;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--charcoal);
  height: var(--nav-height);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}

/* .logo-mark is the retired gold hyphen. The markup now runs .logo-diamond
   (see the header logomark block further down) and no page uses this class any
   more; the rules are left in place only because the white-header override at
   the foot of this file also targets it and both sessions touch that block. */
.nav-logo .logo-mark {
  color: var(--gold);
}

/* Kate settled the subline as BRICK & MASONRY STAINING on call 4 (Sep 1 2026),
   ten characters longer than BRICK STAINING. At the old 0.95rem/0.24em it ran
   about 300px wide and ate the space the nav links need between 1024 and 1280,
   so the size and the tracking both come down. Do not put 0.24em back without
   re-checking the header at 1024.
   WEIGHT 300, NOT 600 (Vazul, Sep 1 2026, comparing against the real lockup on
   bramwellmckay.com): "the small text resting underneath is a little bit
   thinner than the one we currently have". He is right, and it was the fault
   that made the lockup read as two headlines stacked rather than as a name
   with a tagline under it. The wider tracking is part of the same fix; a light
   weight needs the extra space or it closes up. Net width is unchanged, so
   this does not reopen the header-fit problem above. */
/* SUPERSEDED by the artwork lockup block further down this file, which sets
   these off --lockup-h. Kept only because the cascade order makes it harmless
   and two sessions write this region. Tune the LATER rule, not this one. */
.nav-logo .logo-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: none;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  color: #D6D6D6;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  background-color: var(--gold);
  color: var(--charcoal);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Translate first, then rotate, so each outer bar drops exactly onto the
   middle bar's centre line (2px bar + 5px gap = 7px) and pivots there. The
   old rotate-then-translate moved the bars in rotated space, which landed
   each arm 0.7px left and 0.8px past centre: a visibly lopsided X. */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

/* Fading alone left the bar's ends ghosting behind the X on iPhone Safari;
   collapse it to zero width and take it out of paint entirely */
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  visibility: hidden;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   MEGA MENU
   Full-width panels under the fixed header.
   Desktop: instant on hover/focus. Mobile:
   accordion groups inside the overlay.
   ========================================== */
.nav-item {
  position: relative;
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #D6D6D6;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-drop-btn:hover,
.nav-item.open > .nav-drop-btn {
  color: var(--gold);
}

.nav-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item.open > .nav-drop-btn .nav-caret {
  transform: rotate(180deg);
}

.mega-panel {
  display: none;
}

.mega-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.mega-blurb {
  color: #C9C9C9;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 340px;
}

.mega-intro-cta {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
  transition: color 0.2s ease;
}

.mega-intro-cta:hover {
  color: var(--gold-hover);
}

.mega-group-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8F8F8F;
  margin-bottom: 12px;
}

.mega-sublinks {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mega-sublinks a {
  font-size: 0.85rem;
  color: #C9C9C9;
  transition: color 0.2s ease;
}

.mega-sublinks a:hover {
  color: var(--gold);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  background-color: var(--white);
  padding: 48px 0 88px;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: left;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: var(--w-head);
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 560px;
  margin: 0 0 1.4rem;
  line-height: 1.7;
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero-checks li {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--charcoal);
}

.hero-checks li::before {
  content: "\2713";
  color: var(--gold-hover);
  font-weight: 800;
  margin-right: 10px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-proof {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1.6rem;
  max-width: 520px;
}

.hero-proof strong {
  color: var(--charcoal);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* ==========================================
   Before / After Comparison Carousel

   One wipe frame that holds several comparison pairs, a thumbnail rail
   underneath, and prev/next arrows. Extended from the single-pair slider
   Aug 31 2026 (Vazul: the same pair was repeating across pages, and a
   visitor could not tell more than one job existed).

   TO ADD A FOURTH PAIR: add one more .ba-pair block inside .ba-slider with
   its data-ba-label / data-ba-before / data-ba-after / data-ba-caption
   attributes. The rail, the counter, the arrows, and the frame labels are
   all built from the pairs at runtime, so nothing else needs touching.

   Wipe position is one custom property on .ba-slider (--ba-pos), not an
   inline clip-path per figure, so every stacked pair wipes together and the
   scrub stays a single DOM write per frame no matter how many pairs exist.
   ========================================== */
.ba-carousel {
  width: 100%;
  max-width: 880px;
  margin: 2.25rem auto 0;
}

.ba-slider {
  /* Declared here, not on .ba-carousel, so a bare slider with no carousel
     around it still has a valid wipe position before the script runs. */
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  aspect-ratio: 3 / 2;
  background: var(--charcoal-2);
  contain: layout style paint;
  touch-action: pan-y;
}

/* Inside a carousel the frame is the carousel's own width, at every
   breakpoint; the 560px cap only governs a bare legacy slider. */
.ba-carousel .ba-slider {
  max-width: 100%;
}

/* ---------- Stacked pairs: only the active one is visible ---------- */
.ba-pair {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.ba-pair.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

/* Without JS the rail never gets built, so the first pair is the whole
   component and it must be visible on its own. */
.ba-pair:first-child {
  opacity: 1;
  visibility: visible;
}

.ba-carousel.is-ready .ba-pair:first-child:not(.is-active) {
  opacity: 0;
  visibility: hidden;
}

.ba-slider__after,
.ba-slider__before {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-slider__after {
  z-index: 1;
}

.ba-slider__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-slider__after img,
.ba-slider__before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider__before img {
  filter: brightness(0.96) saturate(0.88);
}

.ba-slider__after img {
  filter: brightness(1.06) saturate(1.08);
}

/* ---------- Per-pair framing.

   The photos are real job photos, not a locked-off tripod pair, so the
   two halves of a pair were shot at different distances and aspect
   ratios. object-position pulls each one so the same building lands in
   the same place across the wipe line. Values are eyeballed against the
   rendered frame (design-review/snap-ba.js), not calculated. CSP forbids
   style attributes, so the nudges live here, keyed by pair. ---------- */
/* Full home color change. The "before" is 1350x1165 and fills the frame
   width, so only its vertical crop matters; the "after" is 1677x938 and
   fills the frame height, so only its horizontal crop does. Both land the
   chimney and the roof line in the same place. */
.ba-pair[data-ba-fit='cream-change'] .ba-slider__before img {
  object-position: 50% 42%;
}

.ba-pair[data-ba-fit='cream-change'] .ba-slider__after img {
  object-position: 33% 50%;
}

/* New brick on a commercial building against the older wall beside it
   (Vazul, Sep 2 2026). Both halves are 4:3 phone frames in a 3:2 box, so
   cover trims only the height and only the vertical value bites. The two
   shots were taken from different spots six days apart and the "after" sits
   about 70px higher in the frame, which is almost exactly the trim, so the
   pair goes to the two ends of it to hold the base of the wall steady
   across the wipe. */
.ba-pair[data-ba-fit='addition-match'] .ba-slider__before img {
  object-position: 50% 100%;
}

.ba-pair[data-ba-fit='addition-match'] .ba-slider__after img {
  object-position: 50% 0%;
}

/* Same house new against the same house at 25 years. The 25-year shot
   (1424x1105) carries a lot of foreground lawn, so its crop is taken off
   the bottom to hold the roof line steady across the wipe. */
.ba-pair[data-ba-fit='cream-age'] .ba-slider__before img {
  object-position: 28% 50%;
}

.ba-pair[data-ba-fit='cream-age'] .ba-slider__after img {
  object-position: 50% 8%;
}

/* ---------- Per-pair frame shape.

   The chimney pair (Kate, Oct 21 2026: "Can you zoom this photo out on the
   before and after slide?"). Both of its source frames are tall phone-screen
   shots that the 3:2 frame already shows edge to edge, so the only way to
   show more chimney is a taller frame, not a wider crop. The slider follows
   the ACTIVE pair's data-ba-aspect and every other pair keeps 3:2, so the
   band grows only while the chimney is selected. :has() is the one hook
   that lets the frame follow its child without a script write; browsers
   without it keep the 3:2 frame and cover-crop the square, which is what
   shipped before. ---------- */
.ba-slider:has(> .ba-pair.is-active[data-ba-aspect='square']) {
  aspect-ratio: 1 / 1;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  touch-action: pan-y;
}

.ba-slider__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.ba-slider__knob {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  color: var(--charcoal);
}

.ba-slider__handle:focus-visible {
  outline: none;
}

.ba-slider__handle:focus-visible .ba-slider__line {
  /* Two-tone ring stays visible over any photo content */
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--charcoal);
}

.ba-slider__handle:focus-visible .ba-slider__knob {
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--charcoal);
}

.ba-slider__label {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 4px 12px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 1.5px;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.ba-slider--active .ba-slider__label {
  transition: none;
}

.ba-slider--active .ba-slider__before {
  will-change: clip-path;
}

/* Only the pair on screen is worth promoting; the hidden ones would
   otherwise take a compositor layer each for a scrub they never show. */
.ba-slider--active .ba-pair:not(.is-active) .ba-slider__before {
  will-change: auto;
}

.ba-slider--active .ba-slider__handle {
  will-change: left;
}

.ba-slider__label--before {
  left: 12px;
  background: rgba(28, 28, 28, 0.82);
  color: var(--white);
}

.ba-slider__label--after {
  right: 12px;
  background: var(--gold);
  color: var(--charcoal);
}

/* ---------- "2 / 3" on the photo: the fastest way to say there is more
   than one job in here. Bottom right, clear of both labels and the
   handle. JS-built, so it never shows with the script off. ---------- */
.ba-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 11px;
  background: rgba(29, 29, 30, 0.78);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  border-radius: 1.5px;
  pointer-events: none;
}

/* ---------- The sentence for the pair on screen ---------- */
.ba-caption {
  margin: 18px auto 0;
  max-width: 60ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: opacity 0.25s ease;
}

.ba-caption.is-swapping {
  opacity: 0;
}

/* ---------- Control strip: arrows flanking a thumbnail rail.

   The arrows sit BELOW the frame rather than over it on purpose. On a
   desktop the frame scrubs on hover with no click, so an arrow floating
   inside it would drag the wipe to the edge every time you reached for
   it. Down here, navigating and comparing never fight. ---------- */
.ba-controls {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Testimonial-arrow geometry (see .testimonial-arrow), one size down
   because these sit under a photo rather than beside a heading. */
.ba-nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-top: 12px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ba-nav svg {
  width: 16px;
  height: 16px;
}

.ba-nav:hover,
.ba-nav:focus-visible {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.ba-nav:focus-visible,
.ba-thumb:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.ba-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px;
}

.ba-rail::-webkit-scrollbar {
  display: none;
}

.ba-thumb {
  flex: 0 0 auto;
  width: 96px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  scroll-snap-align: center;
  font: inherit;
}

.ba-thumb__frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  opacity: 0.55;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.ba-thumb__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* THE RAIL IS PHOTOS ONLY (Vazul, Sep 3 2026): "we don't need to name each
   photo ... it should just be the photos". The .ba-thumb__label span and its
   selected-state colour came out with it. The name is still carried, as the
   button's aria-label (js/script.js), so the tablist keeps a per-job name for
   assistive tech; nothing prints it. Selection reads on the frame alone now:
   dimmed at 0.55, full opacity plus a gold inset ring when chosen. */
.ba-thumb:hover .ba-thumb__frame,
.ba-thumb:focus-visible .ba-thumb__frame {
  opacity: 0.85;
}

.ba-thumb[aria-selected='true'] .ba-thumb__frame {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--gold);
}


/* Narrow phones: 75px is the widest thumb that still fits three of them
   between the two arrows at 390px, so the whole rail is visible without a
   scroll. A fourth or fifth pair overflows and the rail starts scrolling,
   which is the behaviour we want at that point anyway. */
@media (max-width: 479px) {
  .ba-thumb {
    width: 75px;
  }

  .ba-rail {
    gap: 9px;
  }

  .ba-controls {
    gap: 7px;
  }

  /* Keep the arrows centred on the shorter thumbnail frames. */
  .ba-nav {
    margin-top: 5px;
  }
}

/* Plain functional hint below the slider */
.ba-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- Placeholder proof slots ----------
   Used ONLY where a real photo has not arrived yet. Never ships live. */
.todo-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #8C8577;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(0,0,0,0.045) 18px 36px),
    var(--light-band);
  border: 2px dashed #B8AE9C;
}

.todo-photo--dark {
  color: #A9A9A9;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,0.05) 18px 36px),
    var(--charcoal-2);
  border-color: #4A4A4A;
}

.todo-photo small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0;
  max-width: 300px;
}

/* ==========================================
   AUDIENCE SPLIT (directly under the hero)
   Two large clean cards, Nawkaw-style.
   ========================================== */
/* WHITE-RANGE TEST (Vazul, Sep 1 2026): the top of the homepage, stats bar
   through key band, runs on ONE ground instead of five. The ask was whether
   the page reads more enterprise when the ground stops changing under the
   reader. Reverting is four background tokens.
   SECOND PASS, same day, his ruling: the hairline seams come out too. The
   first pass separated the five white bands with a 1px rule on each; he read
   the lines as closing the page in rather than opening it. Section padding is
   now the ONLY separator in the range, which is the more confident version of
   the same idea. The .band-seam rule and its three classes are gone, and the
   stats bar's own border-bottom went with them, since it was the one remaining
   line in the range and leaving it would have been the inconsistent half. */
.audience-split {
  background-color: var(--white);
  padding: 72px 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease;
}

.audience-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.audience-card__media {
  aspect-ratio: 16 / 9;
  position: relative;
}

.audience-card__body {
  padding: 30px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.audience-card h3 {
  text-align: left;
  padding-bottom: 0;
  font-size: 1.5rem;
  font-weight: var(--w-head);
}

.audience-card p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
}

.audience-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.audience-link::after {
  content: "\2192";
  color: var(--gold-hover);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.audience-link:hover {
  color: var(--gold-hover);
}

.audience-link:hover::after {
  transform: translateX(3px);
}

/* ==========================================
   CREDENTIALS / PROOF STRIP (institutional signals)
   Mobile: stacked rows, tap expands the proof line inline.
   Desktop (1024+): five tiles, hover/focus opens a proof card.
   ========================================== */
.credentials {
  background-color: var(--white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
}

.cred-stats {
  display: grid;
  grid-template-columns: 1fr;
}

.cred-stat {
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.cred-stat:last-child {
  border-bottom: none;
}

.cred-stat__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.cred-stat__trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.cred-stat .stat-number {
  flex: 0 0 104px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.1;
}

.cred-stat .stat-number .stat-suffix {
  color: var(--gold-hover);
}

.cred-stat .stat-label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.cred-stat__hint {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #BDB7AC;
  transition: color 0.2s ease;
}

.cred-stat.open .cred-stat__hint,
.cred-stat:focus-within .cred-stat__hint {
  color: var(--gold-hover);
}

.cred-stat__detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.cred-stat.open .cred-stat__detail {
  max-height: 220px;
}

.cred-stat__detail p {
  padding: 0 4px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 1024px) and (hover: hover) {
  .cred-stat:hover .cred-stat__trigger {
    background-color: var(--light-band);
  }

  .cred-stat:hover .cred-stat__hint {
    color: var(--gold-hover);
  }

  .cred-stat:hover .cred-stat__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ==========================================
   VALUE PROP GRID
   ========================================== */
.value-grid-section {
  background-color: var(--light-band);
  padding: 72px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2.5rem;
}

.value-card {
  text-align: center;
  padding: 24px 16px;
  border: none;
  background: transparent;
}

.value-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  color: var(--gold-hover);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h3 {
  font-size: 1.08rem;
  font-weight: var(--w-head);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================
   FEATURED GUIDES BAND (homepage)
   Expanded from the one-card comparison band
   at Vazul's Aug 29 request (docs/04-05
   amended): one navy lead card, still exactly
   one stat and one line of the paint argument,
   plus two white support cards (warranty,
   commercial scale) and a view-all button to
   /resources. Teasers only; the education
   lives on the linked pages. The small gold
   diamond on each tag is the sanctioned brand
   accent (docs/10), kept tiny on purpose.
   ========================================== */
.featured-band {
  background-color: var(--light-band);
  padding: 64px 0;
}

.featured-band .section-subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.featured-lead,
.featured-card {
  border-radius: 3px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-lead {
  background: var(--navy);
}

.featured-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 29, 30, 0.08);
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 12px;
}

.featured-lead .featured-tag {
  color: var(--gold);
}

.featured-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.featured-lead h3,
.featured-card h3 {
  font-size: 1.3rem;
  font-weight: var(--w-head);
  margin-bottom: 10px;
}

.featured-lead h3 {
  font-size: 1.5rem;
  color: var(--white);
}

.featured-lead p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #C9C9C9;
  margin-bottom: 20px;
}

.featured-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.featured-lead__stat {
  width: 100%;
  padding-top: 22px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.featured-lead__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1.05;
}

.featured-lead__label {
  display: block;
  font-size: 0.9rem;
  color: #C9C9C9;
  margin-top: 6px;
  max-width: 300px;
}

.featured-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.featured-link::after {
  content: "\2192";
  color: var(--gold-hover);
  transition: transform 0.2s ease;
}

.featured-lead .featured-link {
  color: var(--gold);
}

.featured-lead .featured-link::after {
  color: var(--gold);
}

.featured-card .featured-link {
  color: var(--charcoal);
}

.featured-lead .featured-link:hover {
  color: var(--white);
}

.featured-card .featured-link:hover {
  color: var(--gold-hover);
}

.featured-link:hover::after {
  transform: translateX(3px);
}

.featured-band__cta {
  text-align: center;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .featured-band {
    padding: 88px 0;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .featured-lead {
    grid-column: 1 / -1;
    padding: 38px 40px;
  }

  .featured-card {
    padding: 32px 32px;
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1.25fr 1fr;
  }

  .featured-lead {
    grid-column: 1;
    grid-row: 1 / 3;
  }
}

/* ---------- Credentials band (homepage): logo marquee of certifications
   and associations, in the third-party logos' own colors (Vazul, Sep 2
   2026). What holds the mixed colors together as one strip is not
   desaturation, it is that every mark is height-normalized and multiplied
   into the band at export, so no logo carries a visible white box.
   Continuous scroll that never pauses (Vazul, Sep 2 2026: no hover
   pause, no hover brighten); a static scrollable row under
   prefers-reduced-motion (the aria-hidden duplicate set exists only for
   the seamless loop and is removed there). ---------- */
/* White, matching the proofgrid above it (Vazul, Oct 5 2026). The logos
   were re-exported onto white in the same change (?v=3), so the band and
   the marks have to change together. */
.affil-band {
  background-color: var(--white);
  padding: 64px 0;
}

.affil-band .section-subtitle {
  max-width: 620px;
  margin: 0 auto 44px;
}

.affil-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.affil-track {
  display: flex;
  width: max-content;
  animation: affil-scroll 90s linear infinite;
}

.affil-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex-shrink: 0;
}

/* The webp files are pre-multiplied onto the band color (#FFFFFF since
   Oct 5 2026; #F5F3EE before) at
   export, so their white crop boxes vanish into the band without CSS
   blending (an animated transform isolates mix-blend-mode, so it cannot
   be done live). This is why a color change here is a re-export and not
   a CSS edit. Source crops: handoff/raw/assets/logos-brand/
   association-logos-color/. Recipe: resize to 120px height, multiply
   onto #FFFFFF, cwebp -q 86. Every mark sits at full strength; the
   height normalization is what holds the mixed colors together. */
.affil-set img {
  height: 52px;
  width: auto;
}

@keyframes affil-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .affil-band {
    padding: 88px 0;
  }

  .affil-set {
    gap: 72px;
    padding-right: 72px;
  }

  .affil-set img {
    height: 62px;
  }
}

/* Pause control for the strip (WCAG 2.2.2, Oct 6 2026). Same ring as the
   review arrows so it reads as one family of controls. */
.affil-controls {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.affil-toggle[hidden] {
  display: none;
}

.affil-toggle .affil-toggle__play,
.affil-toggle[aria-pressed="true"] .affil-toggle__pause {
  display: none;
}

.affil-toggle[aria-pressed="true"] .affil-toggle__play {
  display: block;
}

.affil-band.is-paused .affil-track {
  animation-play-state: paused;
}

/* Phones swipe, endless both ways (Vazul, Oct 6 2026: "a forever continuous
   looped scroll horizontally either way", mobile only). script.js adds
   .is-swipe below 768px and takes the track over: it drifts at the
   marquee's own pace, a finger drags it either way and a flick coasts, and
   the position wraps every one set width, which the duplicate set makes
   seamless, so there is no end in either direction. The CSS animation has
   to stop because the script now owns the transform. pan-y hands vertical
   drags back to the page. Without JS the class never lands and the plain
   CSS marquee runs as before. */
.affil-marquee.is-swipe {
  touch-action: pan-y;
  cursor: grab;
}

.affil-marquee.is-swipe .affil-track {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .affil-track {
    animation: none;
  }

  /* Nothing moves here, so there is nothing to pause. */
  .affil-controls {
    display: none;
  }

  .affil-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0 24px;
  }

  .affil-set[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Resources index page (/resources): grouped grids of the same
   white guide cards. ---------- */
.resource-section {
  padding: 40px 0 12px;
}

.resource-section h2 {
  margin-bottom: 26px;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   OLD WAY / NEW WAY (the full paint vs stain
   education; used on the comparison page at
   /residential/brick-staining-vs-painting,
   NOT on the homepage, per the Aug 2026 ruling)
   ========================================== */
.old-new {
  background-color: var(--charcoal);
  padding: 72px 0;
}

.old-new h2 {
  color: var(--white);
}

.old-new .section-subtitle {
  color: #C9C9C9;
}

.old-new-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 2.5rem;
}

.way-card {
  border-radius: 3px;
  padding: 34px 32px;
}

.way-card--old {
  background: var(--charcoal-2);
  border: 1px solid #3D3D3D;
}

.way-card--new {
  background: var(--white);
  border: 1px solid var(--gold);
}

.way-card__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 1.5px;
  margin-bottom: 16px;
}

.way-card--old .way-card__tag {
  background: #3D3D3D;
  color: #D6D6D6;
}

.way-card--new .way-card__tag {
  background: var(--gold);
  color: var(--charcoal);
}

.way-card h3 {
  font-size: 1.3rem;
  font-weight: var(--w-head);
  margin-bottom: 12px;
}

.way-card--old h3 {
  color: var(--white);
}

.way-card p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.way-card--old p {
  color: #C9C9C9;
}

.way-card--new p {
  color: var(--ink);
}

.way-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.way-list li {
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
}

.way-card--old .way-list li {
  color: #C9C9C9;
}

.way-card--old .way-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  /* No red on the web (docs/10); the X reads as muted gray on the dark card */
  color: #8F8F8F;
  font-weight: 700;
}

.way-card--new .way-list li {
  color: var(--ink);
}

.way-card--new .way-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold-hover);
  font-weight: 800;
}

.way-cost {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.way-card--old .way-cost {
  border-top-color: #4A4A4A;
  color: #E0E0E0;
}

/* ==========================================
   PROOF BAND (case-study teasers)
   ========================================== */
.proof-band {
  background-color: var(--white);
  padding: 72px 0;
}

.case-teasers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 2.5rem;
}

/* No card border: the image sits flush and the block reads as a plate, not a
   boxed tile. Premium/commercial read (Vazul, Sep 1 2026). */
.case-teaser {
  background: var(--white);
  overflow: hidden;
}

.case-teaser__media {
  aspect-ratio: 4 / 3;
  position: relative;
}

/* The whole card is the link (Vazul, Oct 4 2026: no sliders in this row,
   one finished shot per card). Hovering the photo, the heading or the line
   under it turns the copy gold and eases the photo in a touch, so the card
   reads as something you can open. */
a.case-teaser {
  display: block;
  color: inherit;
  text-decoration: none;
}

.case-teaser__media .asset-fill img {
  transition: transform 0.5s ease;
}

.case-teaser__body h3,
.case-teaser__body p {
  transition: color 0.2s ease;
}

a.case-teaser:hover .case-teaser__body h3,
a.case-teaser:hover .case-teaser__body p,
a.case-teaser:focus-visible .case-teaser__body h3,
a.case-teaser:focus-visible .case-teaser__body p {
  color: var(--gold-hover);
}

a.case-teaser:hover .case-teaser__media .asset-fill img,
a.case-teaser:focus-visible .case-teaser__media .asset-fill img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .case-teaser__media .asset-fill img {
    transition: none;
  }
  a.case-teaser:hover .case-teaser__media .asset-fill img,
  a.case-teaser:focus-visible .case-teaser__media .asset-fill img {
    transform: none;
  }
}

/* No side padding: with the box gone, the copy aligns flush to the image edge. */
.case-teaser__body {
  padding: 18px 0 0;
}

.case-teaser__body h3 {
  color: var(--charcoal);
  font-size: 1.05rem;
  font-weight: var(--w-head);
  margin-bottom: 6px;
}

.case-teaser__body p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.proof-band-cta {
  text-align: center;
  margin-top: 2.75rem;
}

/* Campus portfolio band on /commercial/schools-universities (Vazul, Oct 5
   2026). The count leads in gold, and the search reuses the /case-studies
   field styling with a submit button on the end, since this one navigates. */
.campus-proof {
  background-color: var(--light-band);
}

.campus-proof__n {
  color: var(--gold);
}

.campus-proof__search {
  max-width: 760px;
  margin: 2rem auto 0;
}

.campus-proof__search .cs-search__hint {
  justify-content: center;
}

.campus-proof .case-teaser {
  background: transparent;
}

.campus-proof__search .cs-search {
  gap: 10px;
}

.campus-proof__search .cs-search__input {
  padding-right: 18px;
}

.campus-proof__search .btn {
  flex: none;
  align-self: stretch;
}

/* ==========================================
   TESTIMONIAL WALL (vertical stack, no carousel)
   ========================================== */
.testimonials {
  background-color: var(--light-band);
  padding: 72px 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.25rem;
}

.rating-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}

.rating-stars {
  font-size: 1.5rem;
  color: #A66A00;
  letter-spacing: 3px;
}

.rating-source {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.testimonial-wall {
  columns: 1;
  column-gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 26px 28px 22px;
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(29, 29, 29, 0.1);
}

/* Oversized opening quote; height clips its line box so the
   quote text tucks up beneath it. */
.testimonial-card::before {
  content: "\201C";
  display: block;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  height: 0.55em;
  overflow: hidden;
  color: var(--gold);
  margin-bottom: 12px;
}

.testimonial-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.testimonial-location {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.stars {
  color: #A66A00;
  font-size: 0.95rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
  overflow-wrap: break-word;
}

.testimonial-text p {
  margin: 0;
}

.testimonial-meta {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

/* Carousel: JS adds .is-slider to the wrapper, lays the cards out as
   one flex row, and slides the row a card at a time with a transform,
   looping through the full set. With JS off (nav stays [hidden]) the
   wall keeps its column layout and every card simply renders. */
.testimonial-carousel.is-slider {
  overflow: hidden;
}

.testimonial-carousel.is-slider .testimonial-wall {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
}

.testimonial-carousel.is-slider .testimonial-card {
  flex: 0 0 100%;
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .testimonial-carousel.is-slider .testimonial-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonial-carousel.is-slider .testimonial-card {
    flex-basis: calc((100% - 48px) / 3);
  }
}

.testimonial-nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 1.75rem;
}

.testimonial-nav[hidden] {
  display: none;
}

.testimonial-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-arrow svg {
  width: 18px;
  height: 18px;
}

/* Hover highlights the circle ring in gold; the fill and the arrow
   glyph stay as they are (Vazul, Aug 29). */
.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* ==========================================
   PROCESS STRIP (light, 5 steps)
   ========================================== */
.process {
  background-color: var(--white);
  padding: 72px 0;
}

/* ==========================================
   PROCESS PANELS (all four process sections)
   Five cut-corner panels, the logomark shape used as UI chrome. Each one
   closes on a footer strip naming what the client receives at that stage,
   which is the information the old column strip never carried.
   The panels are STONE ON WHITE, not white on stone; the reason is in the
   markup comment on the homepage section and it is a band-seam constraint,
   not a taste call. It holds on the other three pages for the same reason:
   .process is white on every page that has one.

   SOLE PROCESS COMPONENT AS OF SEP 2 2026. Vazul asked for /services,
   /residential and /commercial to match the homepage, so the old
   .process-strip / .process-step (round gold number badges, five hairline
   columns) was deleted with them rather than left as an unused second way
   to draw the same section. Its last use is in git at 3ab028c.
   ========================================== */
.proc-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 2.75rem;
  list-style: none;
}

.proc-panel {
  /* 28px is the .cut-corners value; 24 reads right at this panel size and
     still reads as the logomark rather than as an accident. */
  --corner-cut: 24px;
  clip-path: polygon(var(--corner-cut) 0, 100% 0, 100% calc(100% - var(--corner-cut)), calc(100% - var(--corner-cut)) 100%, 0 100%, 0 var(--corner-cut));
  background-color: var(--light-band);
  padding: 26px 22px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.proc-panel:hover {
  box-shadow: 0 14px 34px rgba(29, 29, 30, 0.13);
}

/* Gold rule wiping in from the left is the hover affordance. It is inset
   to the padding so it never runs into the top-left corner cut. */
.proc-panel__rule {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  /* Main site: no box with one highlighted side, so the bar never shows. */
  display: none;
}

/* Ghosted numeral: a tint of the ink rather than the hairline token,
   because hairline on stone is too close to disappear entirely. */
.proc-panel__n {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(29, 29, 30, 0.16);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.proc-panel:hover .proc-panel__n {
  color: var(--gold);
}

.proc-panel h3 {
  font-size: 1.06rem;
  font-weight: var(--w-head);
  margin-bottom: 9px;
}

.proc-panel > p {
  font-size: 0.89rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 22px;
  /* pushes every footer strip to the bottom so the rules line up across
     the row whatever the copy length does */
  flex: 1;
}

/* The foot is a DEEPER tone than the panel, never a lighter one. White here
   matches the section ground, which reads as the panel ending early and the
   deliverable floating loose underneath it. Derived from the ink token so it
   composites correctly on the stone rather than being a one-off hex. */
.proc-panel__foot {
  border-top: 1px solid var(--hairline);
  margin: 0 -22px;
  padding: 13px 22px 20px;
  background-color: rgba(29, 29, 30, 0.045);
}

.proc-panel__foot span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

/* Two lines are reserved so the footer rule, the label and the white strip
   land on the same baseline across all five panels. */
.proc-panel__foot b {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: var(--w-head);
  line-height: 1.45;
  min-height: 2.9em;
  color: var(--charcoal);
}

@media (min-width: 700px) {
  .proc-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Same orphan rule the portfolio band uses: in a two-column grid an odd
     last child is exactly the definition of orphaned, so stage 05 spans the
     row instead of sitting beside a hole. Five is odd and fixed here, but
     the test is written so it stops matching on its own if a stage is ever
     added or removed. */
  .proc-panel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1050px) {
  .proc-panels {
    grid-template-columns: repeat(5, 1fr);
  }

  /* five across is odd by definition; the orphan rule must not follow it up */
  .proc-panel:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* One line is enough once the panels are full width and the deliverable
   never wraps. */
@media (max-width: 699px) {
  .proc-panel__foot b {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proc-panel,
  .proc-panel__rule,
  .proc-panel__n {
    transition: none;
  }

  .proc-panel__rule {
    transform: scaleX(1);
  }
}

/* ==========================================
   MISSION (contained, one section)
   ========================================== */
.mission {
  background-color: var(--charcoal);
  padding: 72px 0;
}

.mission h2 {
  color: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 2.5rem;
}

.mission-media {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.mission-text p {
  color: #D6D6D6;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.mission-text p strong {
  color: var(--white);
}

.mission-slogan {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--gold);
  margin: 1.25rem 0;
}

.mission-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mission-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ==========================================
   FAQ SECTION
   Always open, no accordion (Vazul, Nov 7 2026: "I don't want dropdowns; I
   want to display the question and the answer next to it"). Each item is a
   row between hairline rules: the question (h3) on the left, the answer (p)
   beside it from 900px up, stacked below that. Plain text in the DOM, no
   button, no toggle, nothing hidden, so every answer is visible to readers
   and crawlers and matches the FAQPage schema word for word.
   The .faq-more line is the hub page's link to the deeper page an answer
   comes from (/faq), and is navigation, not part of the answer text.
   ========================================== */
.faq {
  background-color: var(--light-band);
  padding: 72px 0;
}

.faq--white {
  background-color: var(--white);
}

.faq-list {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-align: left;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 64ch;
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

.faq-answer a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--navy-accent);
}

.faq-answer .faq-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
}

.faq-answer .faq-more::after {
  content: "\2192";
  color: var(--gold-hover);
  transition: transform 0.2s ease;
}

.faq-answer .faq-more:hover {
  color: var(--navy-accent);
}

.faq-answer .faq-more:hover::after {
  transform: translateX(3px);
}

.faq-all {
  max-width: 1080px;
  margin: 28px auto 0;
  text-align: right;
}

@media (min-width: 900px) {
  .faq-item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    padding: 30px 0;
  }
}

/* ---------- /faq hub: topic groups and the topic index ---------- */
.faq-hub {
  background: var(--white);
  padding: 56px 0 80px;
}

.faq-toc {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.faq-toc a {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.faq-toc a:hover {
  color: var(--navy-accent);
}

.faq-group {
  padding-top: 56px;
  scroll-margin-top: var(--nav-height);
}

.faq-group h2 {
  text-align: left;
  font-size: 1.5rem;
}

.faq-group h2::after {
  left: 0;
  transform: none;
}

.faq-group .faq-list {
  max-width: none;
  margin-top: 1.75rem;
}

/* ==========================================
   FINAL CTA + CONTACT FORM
   ========================================== */
.contact {
  background-color: var(--charcoal);
  padding: 72px 0 84px;
}

.contact h2 {
  color: var(--white);
}

.contact .section-subtitle {
  color: #C9C9C9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 2.5rem;
}

.contact-form {
  background: var(--white);
  border-radius: 3px;
  padding: 32px;
}

/* Phones (Kate, Oct 6 2026): hero padding, .page-body padding, the grid's
   top margin and the form's top padding stacked up to about an inch of
   white between "inside a week" and the Name field. The form is white on
   white, so its top padding was never visible as a panel edge. Drop the two
   that only add air, and halve .page-body's top padding on this page only. */
@media (max-width: 767px) {
  .page-body:has(.contact-grid) {
    padding-top: 32px;
  }

  .contact-grid {
    margin-top: 0;
  }

  .contact-form {
    padding-top: 0;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}

/* Red is excluded from the web palette (docs/10); warnings run dark amber. */
.required {
  color: var(--gold-hover);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #8F8F8F;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group ::placeholder {
  color: #6B6B6B;
  opacity: 1;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-hover);
  box-shadow: 0 0 0 2px rgba(177, 142, 30, 0.25);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #8A5A00;
}

.form-group textarea {
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 2px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #EEF3E6;
  color: #2F4A1E;
  border: 1px solid #5E7D3A;
}

/* Moss green (Vazul, Oct 6 2026, off a rendered board): a warm green tuned
   to sit beside the gold button. The check mark is CSS so the message text
   stays plain for screen readers. */
.form-status.success::before {
  content: "\2713\00A0";
  font-weight: 600;
}

/* Shown while the lead is in flight. Google Apps Script takes 4 to 7 seconds
   to answer, so the visitor reads what is happening instead of a frozen
   button. The trailing dots animate only when motion is allowed. */
.form-status.pending {
  display: block;
  background-color: #F7F6F2;
  color: var(--ink-soft);
  border: 1px solid #D8D4C8;
}

.form-status.pending::after {
  content: "...";
}

@media (prefers-reduced-motion: no-preference) {
  .form-status.pending::after {
    content: "";
    animation: form-dots 1.2s steps(4, end) infinite;
  }

  @keyframes form-dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
  }
}

.form-status.error-msg {
  display: block;
  background-color: #FBF3E3;
  color: #6E4700;
  border: 1px solid #8A5A00;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* The contact blocks appear on two grounds: the white /contact page and the
   charcoal .contact section on the homepage. Base colors are the light-ground
   set; the .contact overrides below carry the on-dark set. */
.contact-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.contact-block p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Site-wide in-content link standard (bold charcoal, gold underline); the
   phone number below keeps its own display treatment. */
.contact-block p a:not(.contact-phone) {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.contact-block p a:not(.contact-phone):hover {
  color: var(--gold-hover);
}

.contact-phone {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-hover);
  display: inline-block;
}

.contact .contact-block h3 {
  color: var(--white);
}

.contact .contact-block p {
  color: #C9C9C9;
}

.contact .contact-block p a:not(.contact-phone) {
  color: var(--white);
}

.contact .contact-phone {
  color: var(--gold);
}

.contact-email {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- /contact proof panel (Aug 31 2026) ----------
   /contact is now the only page on the site with a form, so every CTA lands
   here and some visitors arrive without having read a legitimacy signal.
   The panel repeats the homepage stat bar's four numbers at sidebar scale.
   Light band ground with a gold left edge; it reads as a card without
   competing with the form. */
.contact-proof {
  background-color: var(--light-band);
  box-shadow: 0 0 0 1px var(--hairline);
  padding: 24px 24px 26px 27px;
}

.contact-proof h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.contact-proof__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-proof__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 12px;
}

.contact-proof__num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-hover);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.contact-proof__label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The /contact form is long. Once the grid goes two-up the sidebar sticks, so
   the phone number and the proof stay on screen the whole way down instead of
   leaving a column of empty white beside the lower half of the form.
   .contact-grid already sets align-items:start at this breakpoint, which is
   what makes sticky work. .contact-info is now unique to /contact. */
@media (min-width: 768px) {
  .contact-info {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
  }
}

/* ---------- Final CTA band: the two routes (operator, Aug 31 2026) ----------
   The homepage 3-field form is retired. The band now presents the only two
   sanctioned ways in as a pair of panels: the full form at /contact (white
   ground, primary weight) and the phone (raised navy panel). Both were square
   corners as of Sep 1 2026 (Vazul: the corner cut read as the panel being cut
   off, same call he made on the photos). Panels use a translucent white wash
   rather than a border. The .contact-* form styles above stay: /contact still
   uses every one of them. */
.contact-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.5rem;
  text-align: left;
}

.route {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 34px;
}

.route--form {
  background-color: var(--white);
}

.route--call {
  background-color: rgba(255, 255, 255, 0.06);
}

.route__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

/* Gold that acts as text goes to --gold-hover on white, per the header rule. */
.route--form .route__label {
  color: var(--gold-hover);
}

.route--call .route__label {
  color: var(--gold);
}

.route__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--w-head);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.route--form .route__title {
  color: var(--charcoal);
}

.route--call .route__title {
  color: var(--white);
}

.route__text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.route--form .route__text {
  color: var(--ink-soft);
}

.route--call .route__text {
  color: #C9C9C9;
  margin-bottom: 0;
}

.route__phone {
  margin-bottom: 1.1rem;
}

.route--call .contact-phone {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}

/* The CTA sits at the foot of the panel whatever the copy length, so the two
   panels stay visually level on desktop. */
.route__cta {
  margin-top: auto;
}

/* ---------- Final CTA band: the meta row ----------
   Where we work / what happens next / the architect route. Carries what the
   old right-hand contact-info column carried, laid flat under a hairline so
   the two routes above keep all the weight. */
.contact-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
}

.contact-meta h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-meta p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #C9C9C9;
}

.contact-meta a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.contact-meta a:hover {
  color: var(--gold);
}

/* Routes go side by side, then the meta row spreads to three, at the same
   900px fork the rest of the homepage bands use. */
@media (min-width: 900px) {
  .contact-routes {
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    margin-top: 3rem;
  }

  .route {
    padding: 44px 40px 46px;
  }

  .route__title {
    font-size: 1.75rem;
  }

  .route--call .contact-phone {
    font-size: 2rem;
  }

  .contact-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
/* EXPERIMENT(footer-brick): dark footer + faint running-bond brick outline,
   under review. Revert = delete the background-image/size lines. Tile is
   140x64 (one brick 70x32); bump stroke-opacity (0.06) to taste. */
.site-footer {
  background-color: #141414;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='64'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='2' d='M0 0H140M0 32H140M0 64H140M0 0V32M70 0V32M140 0V32M35 32V64M105 32V64'/%3E%3C/svg%3E");
  background-size: 140px 64px;
  color: #C9C9C9;
  padding: 56px 0 0;
}

.footer-brand {
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-mark {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.9rem;
  color: #9A9A9A;
  max-width: 300px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

/* h2 since Oct 6 2026 (heading order: the footer follows the page's h2s);
   h4 kept so a page not yet swept still styles. */
.footer-grid h2,
.footer-grid h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-grid a {
  color: #C9C9C9;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-office__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-office__row svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 10px;
  max-width: 380px;
}

.footer-nav li {
  font-size: 0.9rem;
}

.footer-email {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-connect__social-h {
  margin-top: 28px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #4A4A4A;
  border-radius: 50%;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-bottom {
  /* EXPERIMENT(footer-brick): was #333, lifted for the lighter background */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #9A9A9A;
}

.footer-bottom a {
  color: #9A9A9A;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* Builder credit: the name carries in gold so it reads before the legal links */
.footer-credit__name {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit:hover .footer-credit__name {
  color: var(--white);
}

/* ==========================================
   SCROLL ANIMATIONS (restrained fades only)
   ========================================== */
.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================
   STICKY MOBILE CALL BAR
   Thumb zone, safe-area aware, 56px tap target.
   ========================================== */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--charcoal);
  display: flex;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cta.visible {
  transform: translateY(0);
}

.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.mobile-cta__call {
  background: var(--gold);
  color: var(--charcoal);
}

.mobile-cta__estimate {
  background: var(--charcoal);
  color: var(--white);
}

/* ==========================================
   HOVER-ONLY EFFECTS (mouse devices)
   ========================================== */
@media (hover: hover) {
  .ba-slider {
    cursor: ew-resize;
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-left,
  .fade-in-right,
  .fade-in-up,
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   RESPONSIVE, under 1024px
   ========================================== */
@media (max-width: 1023px) {
  html, body {
    overflow-x: clip;
  }

  html {
    touch-action: manipulation;
  }

  /* Seal sub-pixel gaps between color bands */
  main > * + * {
    margin-top: -1px;
  }

  /* Mobile hamburger menu overlay */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--charcoal);
    padding: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Row styling is NOT keyed to .open. Removing .open starts the 0.2s fade;
     when padding and dividers hung off .open too, they vanished on the same
     frame, the rows collapsed, and the bare Portfolio and Colors text lingered
     through the fade on its own. The panel now fades out exactly as it looked. */
  .nav-links > li {
    border-bottom: 1px solid #3A3A3A;
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links .nav-item a {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 14px 24px;
    min-height: 48px;
  }

  /* Mega menu, mobile: accordion groups inside the overlay.
     Stretch overrides the base align-items:center so rows span full width. */
  .nav-links {
    align-items: stretch;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-drop-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .nav-item.open > .mega-panel {
    display: block;
    background: #161616;
  }

  .mega-intro,
  .mega-choice__img,
  .mega-choice__desc {
    display: none;
  }

  .nav-links .mega-panel a {
    padding: 12px 24px 12px 44px;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .mega-group-label {
    padding: 12px 24px 4px 44px;
    margin-bottom: 0;
  }

  .mega-sublinks {
    gap: 0;
  }

  /* One number drives the whole lockup now: see the artwork block. */
  .nav-logo {
    --lockup-h: 34px;
  }
}

@media (max-width: 379px) {
  .hero h1 {
    font-size: 1.7rem;
  }
}

/* ==========================================
   RESPONSIVE, 480px+
   ========================================== */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: flex-start;
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-wall {
    columns: 2;
  }
}

/* ==========================================
   RESPONSIVE, 768px+
   ========================================== */
@media (min-width: 768px) {
  .hero {
    padding: 96px 0 72px;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-sub {
    font-size: 1.15rem;
    margin: 0 0 1.8rem;
  }

  .hero-checks li {
    font-size: 1.08rem;
  }

  .hero .btn {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .ba-slider {
    max-width: 100%;
  }

  section h2 {
    font-size: 2.05rem;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .old-new-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-teasers {
    grid-template-columns: repeat(3, 1fr);
  }

  .mission-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .audience-split,
  .value-grid-section,
  .old-new,
  .proof-band,
  .testimonials,
  .process,
  .mission,
  .faq,
  .contact {
    padding: 120px 0;
  }

  .credentials {
    padding: 24px 0;
  }
}

/* ==========================================
   RESPONSIVE, 1024px+
   ========================================== */
@media (min-width: 1024px) {
  /* Keyword-bearing nav labels are longer; tighten below 1200px */
  .nav-links {
    display: flex;
    gap: 20px;
    height: 100%;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .nav-drop-btn {
    font-size: 0.84rem;
  }

  /* Mega menu, desktop: full-width panel pinned under the fixed header.
     li spans the full header height so hover never drops in the gap. */
  .nav-item {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .nav-item:hover > .nav-drop-btn {
    color: var(--gold);
  }

  /* .pointer-parked is the tab you just clicked, held shut until the pointer
     leaves it (see "Parked tabs" in script.js). The tab still lights up under
     the pointer, since it is still a live link; only the caret and the panel
     wait. */
  /* .nav-intent means script.js is tracking the pointer's path and decides
     which panel is open (see "Hover intent" there), so bare :hover stands down.
     Without JS the :hover half still works, exactly as it used to. */
  .nav-links:not(.nav-intent) .nav-item:hover:not(.pointer-parked) > .nav-drop-btn .nav-caret,
  .nav-item.hover-open > .nav-drop-btn .nav-caret {
    transform: rotate(180deg);
  }

  .mega-panel {
    display: block;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    padding: 48px 0 72px;
    background-color: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 32px 56px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* No transition on the closed state, so leaving the menu takes the panel
       away on the spot (Vazul, Sep 3 2026). The fade rides the open state
       below, which means it plays on the way in and not on the way out. */
  }

  .nav-links:not(.nav-intent) .nav-item:hover:not(.pointer-parked) > .mega-panel,
  .nav-item.hover-open > .mega-panel,
  .nav-item.open > .mega-panel,
  .nav-item:focus-within > .mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.12s ease;
  }

  /* Vertical padding lives on .mega-panel, not here: the later
     `.container { padding: 0 40px }` shorthand would zero it. */
  .mega-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 44px;
  }

  .mega-intro {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 44px;
  }

  .nav-cta-mobile {
    display: none;
  }

  .nav-hamburger {
    display: none;
  }

  .mobile-cta {
    display: none !important;
  }

  .container {
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 2.8rem;
    max-width: 720px;
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cred-stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .cred-stat {
    border-bottom: none;
  }

  .cred-stat__trigger {
    display: block;
    padding: 18px 8px 14px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.2s ease;
  }

  .cred-stat .stat-number {
    display: block;
    font-size: 2.2rem;
  }

  .cred-stat .stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
  }

  .cred-stat__hint {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-top: 10px;
  }

  .cred-stat__detail {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 250px;
    max-height: none;
    margin-left: -125px;
    background-color: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(29, 29, 29, 0.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 30;
  }

  .cred-stat:first-child .cred-stat__detail {
    left: 0;
    margin-left: 0;
  }

  .cred-stat:last-child .cred-stat__detail {
    left: auto;
    right: 0;
    margin-left: 0;
  }

  .cred-stat.open .cred-stat__detail,
  .cred-stat:focus-within .cred-stat__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .cred-stat__detail p {
    padding: 14px 16px;
    text-align: center;
    font-size: 0.88rem;
  }

  .testimonial-wall {
    columns: 3;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1.3fr 1fr;
    gap: 48px;
  }
}

/* ==========================================
   RESPONSIVE, 1200px+
   ========================================== */
@media (min-width: 1200px) {
  .nav-links {
    gap: 28px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-drop-btn {
    font-size: 0.9rem;
  }

  /* Mega sublinks keep their own scale regardless of nav link sizing */
  .mega-sublinks a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

/* ==========================================
   IN-CONTENT TEXT LINKS (site-wide standard)
   Bold charcoal text, gold underline.
   ========================================== */
.content p a,
.content li a,
.content td a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.content p a:hover,
.content li a:hover,
.content td a:hover {
  color: var(--gold-hover);
}

/* ==========================================
   INTERIOR PAGE LAYOUT (service pages)
   ========================================== */
.page-hero {
  background: var(--white);
  margin-top: var(--nav-height);
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--gold-hover);
}

.breadcrumbs .sep {
  margin: 0 7px;
  color: #B8AE9C;
}

.page-hero .section-label {
  text-align: left;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 720px;
}

.page-hero .hero-ctas {
  margin-top: 1.6rem;
}

/* ---------- Photographic page hero (section landing pages) ----------
   Vazul's pick, Sep 1 2026, from the five rendered hero options (the decision
   and the four options it beat are logged in docs/RUNNING-CHANGES.md). It runs
   on the three section landing pages only, /residential, /commercial and
   /services. The deeper pages under them keep the white .page-hero on purpose:
   a photograph marks a section front door, and the pages that are documents
   still look like documents. /commercial/architects-engineers in particular
   must stay a spec sheet.

   Every rule below that collides with a plain .page-hero rule is written as the
   compound .page-hero.page-hero--photo, because the responsive .page-hero block
   further down this file would otherwise win on source order and put the white
   hero's padding and type sizes back at 768px and up. */
.page-hero.page-hero--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 400px;
  padding: 0;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 0;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  margin: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The scrim is two different designs, because the text does two different
   things at the two sizes.

   On a phone the copy runs the full width of the band, so there is no cool
   side of the frame to hide it on and a horizontal gradient buys nothing: the
   right-hand end of every line would sit on bare photo. The mobile scrim is
   therefore vertical only, and it goes hard from the middle down. The photo
   survives as the top third and as texture under the type.

   From 768px up the copy is capped at 38rem in a much wider band, so it always
   sits in the left half, and a horizontal pass can carry the contrast while a
   gentler vertical one keeps the top of the frame open and the building
   legible as a photograph.

   Both are measured, not estimated: design-review/hero-contrast.js hides the
   text, screenshots the line boxes, finds the lightest pixel behind any glyph
   and checks it against WCAG AA. Re-run it if a hero photo is ever swapped,
   because these numbers are tuned against these three crops. */
.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(18, 18, 18, 0.28) 0%,
    rgba(18, 18, 18, 0.44) 20%,
    rgba(18, 18, 18, 0.90) 50%,
    rgba(18, 18, 18, 0.95) 100%);
}

.page-hero.page-hero--photo > .container {
  position: relative;
  z-index: 2;
  padding-top: 32px;
  padding-bottom: 30px;
}

.page-hero--photo .breadcrumbs,
.page-hero--photo .breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero--photo .breadcrumbs a:hover {
  color: var(--gold);
}

.page-hero--photo .breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.45);
}

.page-hero.page-hero--photo h1 {
  color: var(--white);
  font-size: 1.9rem;
  max-width: 15ch;
  margin-bottom: 0.7rem;
}

.page-hero.page-hero--photo .page-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 34rem;
}

@media (min-width: 768px) {
  .page-hero.page-hero--photo {
    height: clamp(360px, 30vw, 440px);
  }

  .page-hero--photo .page-hero__scrim {
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.24) 0%, rgba(18, 18, 18, 0.06) 42%, rgba(18, 18, 18, 0.62) 100%),
      linear-gradient(90deg, rgba(18, 18, 18, 0.76) 0%, rgba(18, 18, 18, 0.42) 52%, rgba(18, 18, 18, 0.08) 100%);
  }

  .page-hero.page-hero--photo > .container {
    padding-top: 40px;
    padding-bottom: 42px;
  }

  .page-hero.page-hero--photo h1 {
    font-size: clamp(2.1rem, 3.2vw, 2.7rem);
    letter-spacing: -0.025em;
  }

  .page-hero.page-hero--photo .page-lead {
    font-size: 1.08rem;
    max-width: 38rem;
  }
}

.page-body {
  padding: 56px 0 64px;
  background: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.content {
  max-width: 760px;
}

.content h2 {
  text-align: left;
  padding-bottom: 14px;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.content h2::after {
  left: 0;
  transform: none;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.content ul {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content ul li {
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.content ol {
  margin: 0 0 1.25rem;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-card-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
}

/* Focusable so a keyboard can scroll it sideways on a phone (WCAG 2.1.1). */
.table-scroll:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 540px;
}

.cost-table th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
}

.cost-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 14px;
  vertical-align: top;
}

.cost-table tr:nth-child(even) td {
  background: var(--light-band);
}

.cost-table td strong {
  color: var(--charcoal);
}

.toc {
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 22px 26px;
  margin: 1.5rem 0 2rem;
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 0;
}

.toc li {
  font-size: 0.95rem;
}

.toc a {
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.toc a:hover {
  color: var(--gold-hover);
}

.answer-box {
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 20px 24px;
  margin: 1.25rem 0 1.75rem;
}

.answer-box p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.cta-band {
  background-color: var(--charcoal);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .section-subtitle {
  color: #C9C9C9;
  margin-bottom: 1.75rem;
}

.cta-band .btn {
  min-width: 220px;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}

.photo-strip .todo-photo {
  min-height: 200px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0 1.5rem;
}

.related-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.related-links a::before {
  content: "\2192";
  color: var(--gold-hover);
  font-weight: 700;
}

.related-links a:hover {
  color: var(--gold-hover);
}

@media (min-width: 480px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .page-hero {
    padding: 72px 0 56px;
  }

  .page-hero h1 {
    font-size: 2.3rem;
  }

  .page-lead {
    font-size: 1.15rem;
  }

  .page-body {
    padding: 72px 0 88px;
  }

  .content h2 {
    font-size: 1.7rem;
  }
}

/* ---------- CSP-safe utility classes (no inline style attributes anywhere:
   the nonce-based CSP blocks style attributes without unsafe-inline) ---------- */
.offscreen-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* .form-alt-note removed Aug 31 2026: its only user was the homepage short
   form's "prefer the full form?" line, and there is no longer a short form
   to prefer. /contact is the only form on the site. */

.content--center {
  max-width: 800px;
  margin: 0 auto;
}

.content .old-new-grid {
  margin-top: 1.5rem;
}

/* ==========================================
   TEMP DESIGN STAND-INS (Task 4.5)
   Watermarked photography used ONLY for local
   design evaluation. The Dockerfile deploy gate
   fails any build containing these. Each slot is
   replaced 1:1 as real files land in raw/assets/.
   ========================================== */
.temp-asset {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.temp-asset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.temp-asset::after {
  content: 'TEMP';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  transform: rotate(-22deg);
  pointer-events: none;
  background: repeating-linear-gradient(-22deg, transparent 0 42px, rgba(0, 0, 0, 0.06) 42px 84px);
}

/* Fake the "before" side of the slider on the duplicated stand-in */
.temp-asset--before img {
  filter: sepia(0.4) saturate(0.45) brightness(0.82) !important;
}

.photo-strip .temp-asset {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

/* ==========================================
   TEAM PAGE
   ========================================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 1rem 0 2rem;
}

/* Section subtext under the two team headings (Kate, Oct 5 2026: "Bramwell-McKay"
   over "The People Behind the Application"). Same voice as the card role line. */
.team-sub {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 0;
}

.team-card {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}

.team-card__media {
  aspect-ratio: 4 / 3;
  position: relative;
}

.team-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 22px 24px 26px;
}

.team-card__body h2 {
  text-align: left;
  padding-bottom: 0;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.team-card__body h2::after {
  content: none;
}

.team-card__role {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 10px;
}

.team-card__body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0;
}

.team-card__body p + p:not(.team-card__role) {
  margin-top: 0.7em;
}

/* Partner bios (Vazul, Oct 5 2026): a short lead shows, the full bio sits
   behind a native <details> toggle so the three cards stay level. */
.team-card__more {
  margin-top: 0.7em;
}

.team-card__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.team-card__more summary::-webkit-details-marker {
  display: none;
}

.team-card__more summary::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.team-card__more[open] summary::after {
  content: "\2212";
}

.team-card__more summary:hover {
  color: var(--gold-hover);
}

.team-card__more-close,
.team-card__more[open] .team-card__more-open {
  display: none;
}

.team-card__more[open] .team-card__more-close {
  display: inline;
}

.team-card__more[open] summary {
  margin-bottom: 0.7em;
}

/* Warranty certificate preview (Vazul, Oct 5 2026). A plain hairline
   frame; never the corner cut on the image itself. */
.doc-preview {
  max-width: 720px;
  margin: 1.75rem auto 2.25rem;
}

.doc-preview__media {
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 28px rgba(29, 29, 30, 0.12);
  background: var(--white);
}

.doc-preview__media img {
  width: 100%;
  height: auto;
}

.doc-preview__caption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.gallery-filterbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.gallery-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gallery-filter-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 72px;
}

.gallery-filter {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-filter:hover {
  border-color: var(--gold-hover);
  color: var(--charcoal);
}

.gallery-filter.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.gallery-filter:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item > .temp-asset,
.gallery-item > picture,
.gallery-item > img {
  aspect-ratio: 4 / 3;
  display: block;
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ==========================================
   CASE STUDY CARDS
   ========================================== */
.case-study-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 1.5rem 0 2rem;
}

.case-study-card {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr;
}

.case-study-card__body {
  padding: 24px 26px 28px;
}

.case-study-card__body h2 {
  text-align: left;
  padding-bottom: 0;
  font-size: 1.35rem;
  margin: 8px 0 10px;
}

.case-study-card__body h2::after {
  content: none;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.case-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1.5px;
  background: var(--gold);
  color: var(--charcoal);
}

.case-years {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ==========================================
   SERVICE AREAS
   ========================================== */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 2.5rem;
}

.area-card {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--white);
  padding: 26px 28px;
}

.area-card h2 {
  text-align: left;
  padding-bottom: 12px;
  font-size: 1.3rem;
}

.area-card h2::after {
  left: 0;
  transform: none;
  width: 36px;
}

/* ---------- Service areas, rebuilt state by state (Kate, call 4, Sep 1 2026,
   modelled on wackyweedeating.com/service-areas, which she named as the
   reference). One section per state, one card per town, and every town gets a
   description written from scratch so the page can never read as spun
   boilerplate. The state name took the h2, so the town cards moved down to h3
   and need their own rule: the h2 rules above are kept because other pages
   still use .area-card with an h2. The structure is deliberately expandable,
   one .area-state block per state as each is confirmed. ---------- */
.area-state {
  margin-bottom: 3.5rem;
}

.area-state:last-of-type {
  margin-bottom: 2rem;
}

.area-state__head {
  margin-bottom: 1.75rem;
}

.area-state__head h2 {
  text-align: left;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: var(--w-head);
}

.area-state__head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
}

.area-state__lead {
  color: var(--ink-soft);
  max-width: 66ch;
  line-height: 1.7;
}

.area-card h3 {
  text-align: left;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
  font-weight: var(--w-head);
}

.area-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--gold);
}

/* Town cards link out to their own geo pages as the rollout lands. Without
   this the link renders as plain body text inside the card, which is how the
   first build shipped and why it is here: the .content p a rule does not reach
   into .area-card. Same treatment as body links so the page reads as one. */
.area-card p a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.area-card p a:hover {
  color: var(--navy-accent);
}

.area-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 12px;
}

.area-card .related-links {
  margin: 0;
}

/* ---------- Town search (Vazul, Sep 2 2026) ----------
   Sixty cards across five states is too many to scan, so the page filters.
   The FIELD ITSELF REUSES .cs-search from /case-studies rather than growing a
   second search style on the site; only the wrapper, the gate and the empty
   state live here.
   PROGRESSIVE ENHANCEMENT: .area-finder is display:none until script.js puts
   .js-areas-ready on <html>, so a visitor without JS gets the whole list and
   never meets an input that does nothing. Same contract as .cs-rail. */
.area-finder {
  display: none;
  max-width: 640px;
  margin: 0 0 2.75rem;
}

.js-areas-ready .area-finder {
  display: block;
}

/* The case study status line is a full-width rule under a toolbar. Here it is
   a short count under a 640px field, so the rule would dangle. */
.area-finder .cs-status {
  margin: 18px 0 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.area-empty {
  margin-bottom: 3rem;
}

/* The five state sections are a flex column ONLY so the search can reorder
   them: a state holding a town-name match lifts above a state that matched on
   keywords alone. Flex changes nothing at rest, the sections are full-width
   blocks either way. */
.area-states {
  display: flex;
  flex-direction: column;
}

/* NAME MATCHES ARE GOLD (Vazul, Sep 2 2026). Typing "nashville" matches all
   eight Tennessee towns, because every one of them carries "nashville metro"
   in its keywords, and the town actually called Nashville was getting lost in
   its own metro. Ranked matches now sort to the front and the ones that
   matched on the NAME are marked here, so the answer to the question asked is
   visibly different from the towns near it.
   The heading uses --gold-hover, not --gold: Worn Gold cannot reach 4.5:1 on
   white at any size, and this h3 is 1.3rem at heading weight, which clears the
   3:1 large-text bar on the darker gold and nothing else. */
.area-card--match {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.area-card--match h3 {
  color: var(--gold-hover);
}

/* A hidden card is a hidden grid item and a hidden state is a hidden block;
   neither has a display of its own to lose to [hidden], but both are restated
   so a later display rule on either cannot silently un-hide a filtered card. */
.area-card[hidden],
.area-state[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Four people: two by two, so no card is stranded alone on a second row. */
  .team-grid--two {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-study-card {
    grid-template-columns: 2fr 3fr;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   KATE V1 REVIEW RULINGS (Aug 28, 2026)
   1. Full-bleed hero  2. Slider to proof band
   3. Navy secondary accent  4. Compact highlights
   ========================================== */

/* Navy promoted: active secondary accent for small UI (names, stars, arrows) */
:root {
  --navy-accent: #2E4A7A;
}

.stars,
.rating-stars {
  color: var(--navy-accent);
}

.testimonial-name {
  color: var(--navy-accent);
}

.related-links a::before,
.audience-link::after {
  color: var(--navy-accent);
}

/* ---------- Full-bleed hero ---------- */
.hero-full {
  position: relative;
  margin-top: var(--nav-height);
  min-height: 520px;
  height: 64vh;
  max-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-full__bg {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-full__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.66) 0%, rgba(18, 18, 18, 0.42) 55%, rgba(18, 18, 18, 0.66) 100%);
}

.hero-full__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 72px 24px;
}

.hero-full__display {
  color: var(--white);
  font-size: 1.9rem;
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.hero-full__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 1.75rem;
}

.hero-full__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-full .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.hero-full .btn-secondary:hover {
  background-color: var(--white);
  color: var(--charcoal);
}

/* ---------- Proof timeline: before / after / 25 years later ----------
   Kate's ruling: three photos beat a drag slider, because the third frame
   proves the finish lasts. */
.proof-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.proof-timeline__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: var(--charcoal-2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.proof-timeline__photo {
  width: 100%;
  height: 100%;
  margin: 0;
}

.proof-timeline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-timeline__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 12px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 1.5px;
  background: rgba(28, 28, 28, 0.82);
  color: var(--white);
  pointer-events: none;
}

.proof-timeline__item--later .proof-timeline__label {
  background: var(--gold);
  color: var(--charcoal);
}

.proof-timeline__caption {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.proof-timeline__note {
  max-width: 620px;
  margin: 1.75rem auto 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .proof-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Compact highlights strip (roughly half a screen) ---------- */
.value-grid-section {
  padding: 52px 0;
}

.value-grid {
  gap: 10px 24px;
  margin-top: 1.75rem;
}

.value-card {
  padding: 12px 10px;
}

.value-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
}

.value-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.82rem;
  max-width: 230px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-full {
    height: 70vh;
  }

  .hero-full__display {
    font-size: 2.5rem;
  }

  .hero-full__sub {
    font-size: 1.12rem;
  }

  .value-grid-section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .hero-full__display {
    font-size: 2.75rem;
  }

  .value-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  .value-card p {
    font-size: 0.78rem;
  }
}

@media (min-width: 1200px) {
  .hero-full__display {
    font-size: 3rem;
  }
}

/* Navy as the second background (operator, Aug 28): the conversion band and
   the featured guides lead card run navy (the lead card sets it in its own
   block); mission and footer stay matte black. */
.contact {
  background-color: var(--navy);
}

/* The darker hover gold reads 4.09:1 on navy; the brand gold reads 5.19:1
   (WCAG 1.4.3, Oct 6 2026). */
.contact .section-label {
  color: var(--gold);
}

/* Super-minimal hero copy (operator, Aug 28): H1 is the small keyword+geo
   kicker (the Nawkaw pattern), the hook is a non-heading display line, one
   fragment subline, one primary CTA. */
.hero-full__kicker {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-full__display {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 820px;
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {
  .hero-full__display {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-full__display {
    font-size: 3.4rem;
  }
}

@media (min-width: 1200px) {
  .hero-full__display {
    font-size: 3.7rem;
  }
}

/* Operator request (Aug 28): no TEMP watermark on the hero background. The
   image is still a temp-asset: the Dockerfile deploy gate and LAUNCH_BLOCKERS
   entry keep it from ever shipping. */
.hero-full .temp-asset::after {
  content: none;
}

/* Hero copy R&D (operator, Aug 28): lighter and smaller display line so the
   eye has one clear path (kicker, display, fragments, CTA); darker shade for
   text clarity. Later rules win the cascade over the earlier hero sizes. */
.hero-full__display {
  font-size: 1.9rem;
  font-weight: var(--w-head);
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 760px;
}

.hero-full__overlay {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.76) 0%, rgba(16, 16, 16, 0.55) 55%, rgba(16, 16, 16, 0.76) 100%);
}

@media (min-width: 768px) {
  .hero-full__display {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-full__display {
    font-size: 2.8rem;
  }
}

@media (min-width: 1200px) {
  .hero-full__display {
    font-size: 3rem;
  }
}

/* Operator request (Aug 28): the audience split gets an "Our Services" title
   and each card is clickable edge to edge (the card itself is the link;
   "Explore ..." is now a styled span inside it). Navy band tried and rejected
   same day: the section stays on the warm light band so the page alternates
   white / light / white around it. */
.audience-split h2 {
  margin-bottom: 2.25rem;
}

/* Pin the photo to the fixed-ratio media box so mismatched source ratios
   cannot stretch it: both cards crop identically and stay the same height. */
.audience-card__media {
  overflow: hidden;
}

.audience-card__media .temp-asset {
  position: absolute;
  inset: 0;
}

.audience-card:hover .audience-link,
.audience-card:focus-visible .audience-link {
  color: var(--gold-hover);
}

.audience-card:hover .audience-link::after,
.audience-card:focus-visible .audience-link::after {
  transform: translateX(3px);
}

.audience-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Vazul request (Aug 29 2026): the Our Services dropdown swaps the big photo
   cards for two compact rows. Small square thumb, label beside it, one-liner
   under the label. Desktop only: the mobile menu keeps its flat link list. */
@media (min-width: 1024px) {
  /* Vazul (Aug 29, second pass): no boxes around the rows, thumb enlarged
     2.5x (68px to 170px), text stays beside its image. */
  /* Vazul (Aug 29, third pass): title tops out level with the thumb's top
     edge, description bottoms out level with its bottom edge. The text
     column matches the 170px thumb height and space-between does the rest. */
  .mega-choice {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    height: 100%;
    position: relative;
  }

  /* Vazul (Aug 30): at rest the rows read as static art, so nothing said
     "click me". Hover now moves three things at once: the photo eases in,
     a gold rule wipes across under the row, and the label goes gold with
     its arrow stepping right. The rule is pinned to the thumb's 170px
     rather than to the row box, because the grid stretches .mega-choice
     to the tallest column and the rule must not follow it down. */
  .mega-choice::after {
    content: "";
    position: absolute;
    top: 186px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .mega-choice:hover::after,
  .mega-choice:focus-visible::after {
    transform: scaleX(1);
  }

  .mega-choice__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 170px;
    min-width: 0;
  }

  .mega-choice:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
  }

  .mega-choice__img {
    flex: 0 0 auto;
    width: 170px;
    height: 170px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--charcoal-2);
  }

  .mega-choice__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .mega-choice:hover .mega-choice__img img,
  .mega-choice:focus-visible .mega-choice__img img {
    transform: scale(1.07);
  }

  .mega-choice__title {
    display: block;
    font-family: var(--font-heading);
    font-weight: var(--w-head);
    font-size: 1.05rem;
    line-height: 1.15;
    color: var(--white);
    transition: color 0.2s ease;
  }

  .mega-choice__title::after {
    content: "\2192";
    color: var(--gold);
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .mega-choice:hover .mega-choice__title::after,
  .mega-choice:focus-visible .mega-choice__title::after {
    transform: translateX(4px);
  }

  .mega-choice:hover .mega-choice__title,
  .mega-choice:focus-visible .mega-choice__title {
    color: var(--gold-hover);
  }

  .mega-choice__desc {
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #B5B5B5;
  }
}

/* ==========================================
   KEY BAND (homepage assumptive close)
   Left: label, headline, short why, two CTAs.
   Right: four big owned numbers in a hairline
   grid, MLG pattern. White band so it breaks
   the light-band run between the comparison
   card and the testimonial wall.
   ========================================== */
.key-band {
  background-color: var(--white);
  padding: 72px 0;
}

.key-band .section-label {
  text-align: left;
}

.key-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.key-band__content h2 {
  margin-bottom: 1.1rem;
}

.key-band__content p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.6rem;
}

/* Site-wide in-content link standard (bold charcoal, gold underline), same
   treatment as .contact-block and .content prose. Needed since the homepage
   key band inherited the reading off-ramp from the retired Featured Guides
   band: without this the links render at --ink-soft body weight with no
   underline, so nothing marks them as links. */
.key-band__content p a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.key-band__content p a:hover {
  color: var(--gold-hover);
}

.key-band__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Homepage key band header (operator, Aug 31 2026) ----------
   Was a single narrow column: headline, a 480px paragraph, and the CTAs,
   with the right 60% of the container empty and the proof timeline starting
   below it. Stacked under the endorser band's own left rail it read as the
   same block twice.
   Revised same day on Vazul's call: the two-column header (headline left,
   off-ramp and CTAs right) put too much weight in that floating right block.
   Now the headline sits over ONE continuous text block that runs the full
   container width to the right border, set in two text columns. Full width as
   a single measure is ~140 characters, roughly twice the readable limit, so
   the columns are what let the block reach the border without the line length
   going with it. commercial.html and services.html keep .key-band__grid,
   which is untouched. ---------- */
.key-band__header h2 {
  /* The headline left .key-band__content, so it lost that rule's margin and
     the gold rule landed on top of the text block. */
  margin-bottom: 1.4rem;
}

.key-band__body p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.key-band__body p:last-child {
  margin-bottom: 0;
}

/* Site-wide in-content link standard, inherited from .key-band__content p a
   when the off-ramp lived in the right column. */
.key-band__body p a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.key-band__body p a:hover {
  color: var(--gold-hover);
}

/* One CTA, below the timeline: the three frames have just made its case. */
.key-band__ctas--after {
  margin-top: 44px;
}

/* Tried two text columns first and rejected it: with exactly two paragraphs
   they land one per column, which rebuilds the very split this replaced. One
   full-width measure it is. The block is only three lines, so the long line
   length costs less than the split did. */

.key-band__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}

.key-stat {
  background-color: var(--white);
  padding: 26px 22px 28px;
}

.key-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--charcoal);
}

.key-stat__number::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background-color: var(--gold);
  margin: 12px 0 10px;
}

.key-stat__label {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (min-width: 480px) {
  .key-band__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .key-band__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
  }

  .key-stat {
    padding: 34px 28px 36px;
  }

  .key-stat__number {
    font-size: 2.7rem;
  }
}

/* ---------- Proof timeline (Vazul, Aug 30 2026): replaces the homepage
   stat grid inside .key-band. Three frames, Before / After / 25 Years
   After, on a hairline rail with gold nodes (desktop) or a vertical
   hairline connector with a gold chevron (stacked mobile). The photos
   are the section centerpiece; the content column sits above them.
   commercial.html and services.html keep the key-stat grid, so those
   rules stay untouched. ---------- */
.proof-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

/* Vazul, Sep 1 2026: the frames were still capped by the older case-study
   .proof-timeline rule's max-width: 1040px, a leftover from the narrower
   page. Inside the key band the strip fills the container instead, so each
   frame goes from 325px to 423px wide at full width. */
.key-band .proof-timeline {
  max-width: none;
}

.proof-step {
  position: relative;
}

.proof-step__media {
  position: relative;
  /* Vazul, Aug 31 2026: bigger frames. 4:3 rather than 3:2 adds ~35px of
     height at the same width and crops the three sources (1.16, 1.79 and 1.29)
     less hard, while the strip stays inside the page's 1200px grid. */
  /* 4:3 IS STILL THE DEFAULT AND EVERY EXISTING PAGE KEEPS IT. The variable is
     the whole change (Sep 3 2026): a set that is not landscape can override the
     box from its own <ol> instead of being centre-cropped into this one. See
     .proof-timeline--square and --portrait below. */
  aspect-ratio: var(--step-ratio, 4 / 3);
  overflow: hidden;
}

.proof-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .proof-step__media img {
    transition: transform 0.5s ease;
  }

  .proof-step:hover .proof-step__media img {
    transform: scale(1.04);
  }
}

/* Echo of the key-stat gold bar, so the band keeps its signature. */
.proof-step__caption {
  display: block;
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.proof-step__caption::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background-color: var(--gold);
  margin-bottom: 10px;
}

/* Stacked mobile: hairline connector with a gold chevron in each gap. */
.proof-step + .proof-step::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background-color: var(--hairline);
}

.proof-step + .proof-step::after {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

@media (min-width: 768px) {
  .proof-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
    padding-top: 30px;
    position: relative;
  }

  /* The rail: one hairline across the strip, a gold node over each frame. */
  .proof-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--hairline);
  }

  .proof-step::before,
  .proof-step + .proof-step::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: var(--gold);
    border: 3px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px var(--hairline);
  }

  .proof-step + .proof-step::after {
    content: none;
  }
}

/* ==========================================
   DESIGN POLISH PASS (operator, Aug 28 evening)
   Corporate restraint: real type pairing, gold
   discipline (3 above the fold), navy accents,
   neutral scrim, slim stats, header air.
   ========================================== */

/* ---------- Typography system ---------- */
/* Sep 1 2026: the Archivo / Hanken Grotesk pairing collapsed into one face.
   Public Sans carries display, headings and body. Its @font-face is declared
   once at the top of this file; hanken-grotesk-var-latin.woff2 stays in
   fonts/ as a vetted candidate but is no longer downloaded by any page. */
:root {
  --font-display: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: var(--font-display);
}

/* Corporate register: big + medium weight + tight tracking, never heavy */
h1, h2, h3, h4 {
  font-weight: var(--w-head);
}

section h2 {
  font-weight: var(--w-head);
}

.hero-full__display {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 960px;
}

.hero-full__kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  display: block;
}

.hero-full__sub {
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---------- Header air ----------
   The header carries no static bottom edge (Vazul, Sep 2 2026). It reads
   cleaner without one, and the .scrolled shadow below announces the bar the
   moment the page moves, which is the only time a fixed bar needs to. Kept as
   an explicit `none` rather than deleted so the charcoal-header block above
   and the white-header block near the foot of this file cannot reintroduce it
   by accident. */
.site-header {
  border-bottom: none;
}

@media (min-width: 1200px) {
  .nav-links {
    gap: 32px;
  }

  .nav-links a {
    font-size: 0.9375rem;
  }
}

/* ---------- Gold discipline: the header call-to-action stays off gold ----------
   (the phone button this rule was written for is gone; see the navy header
   CTA section at the end of this file) */
.nav-cta-mobile {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  animation: none;
}

.nav-cta-mobile:hover {
  background-color: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.nav-logo .logo-mark {
  color: var(--white);
}

/* Navy takes small link accents and hovers on light backgrounds */
.nav-links a:hover {
  color: var(--white);
}

.audience-link:hover,
.related-links a:hover,
.breadcrumbs a:hover,
.toc a:hover {
  color: var(--navy-accent);
}

.content p a:hover,
.content li a:hover,
.content td a:hover {
  color: var(--navy-accent);
}

/* ---------- Hero: neutral charcoal scrim ----------
   Operator request (Aug 30): scrim lightened 15% so more of the brick photo
   reads through. Keep this in sync with the critical CSS in index.html. */
.hero-full__overlay {
  background: linear-gradient(180deg, rgba(16, 17, 19, 0.425), rgba(16, 17, 19, 0.638));
}

/* ---------- Trust strip (under the hero) ---------- */
.trust-strip {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
}

.trust-strip__item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-strip__item {
    white-space: nowrap;
  }
}

/* ---------- Slim stats bar ---------- */
/* Border-bottom removed Sep 1 2026 with the white-range seams: it was the last
   horizontal rule left between two sections in the range. */
.stats-bar {
  background: var(--white);
  padding: 40px 0 32px;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 0;
}

.stats-bar .stat {
  text-align: center;
  padding: 0 16px;
}

.stats-bar .stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
  line-height: 1.1;
}

.stats-bar .stat__number .stat-suffix,
.stats-bar .stat__number .fact__suffix {
  color: inherit;
}

.stats-bar .stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.45;
}

.stats-bar__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 22px;
}

.stats-bar__note a {
  font-weight: 600;
  color: var(--navy-accent);
}

@media (min-width: 768px) {
  .stats-bar {
    padding: 48px 0 40px;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-bar .stat + .stat {
    border-left: 1px solid rgba(29, 29, 29, 0.09);
  }

  .stats-bar .stat__number {
    font-size: 2.4rem;
  }
}

/* Operator request (Aug 28): the slim stats bar gains a section intro (the
   title carries the scale claim) and each stat regains its proof disclosure:
   hover or keyboard focus opens a floating proof card on desktop, tap
   expands the row inline on mobile. */
.stats-bar--titled {
  padding: 64px 0 44px;
}

.stat__trigger {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: center;
}

.stat__trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.stat__hint {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-top: 8px;
  color: #BDB7AC;
  transition: color 0.2s ease;
}

.stats-bar .stat.open .stat__hint,
.stats-bar .stat__trigger:focus-visible .stat__hint,
.stats-bar .stat:hover .stat__hint {
  color: var(--gold-hover);
}

/* Mobile and narrow: the proof expands inline under the tile */
.stat__detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.stats-bar .stat.open .stat__detail {
  max-height: 220px;
}

.stat__detail p {
  padding: 10px 8px 2px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .stats-bar--titled {
    padding: 72px 0 52px;
  }

  .stats-bar .stat {
    position: relative;
  }

  /* Desktop: the proof floats as a card under the tile */
  .stat__detail {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 260px;
    margin-left: -130px;
    max-height: none;
    background-color: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(29, 29, 29, 0.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 30;
  }

  .stats-bar .stat:first-child .stat__detail {
    left: 0;
    margin-left: 0;
  }

  .stats-bar .stat:last-child .stat__detail {
    left: auto;
    right: 0;
    margin-left: 0;
  }

  .stats-bar .stat.open .stat__detail,
  .stats-bar .stat__trigger:focus-visible + .stat__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .stat__detail p {
    padding: 14px 16px;
    text-align: center;
  }
}

@media (min-width: 768px) and (hover: hover) {
  .stats-bar .stat:hover .stat__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ==========================================
   PARTNER CTA BAND (navy, split layout:
   heading left, hairline divider, white button)
   ========================================== */
.partner-band {
  background-color: var(--navy);
  padding: 72px 0;
}

.partner-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.partner-band h2 {
  text-align: left;
  padding-bottom: 0;
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.partner-band h2::after {
  content: none;
}

.partner-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

.partner-band__divider {
  display: none;
}

.btn--white {
  background-color: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background-color: #E8EAF0;
  color: var(--navy);
}

.partner-band__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* White outline variant on the navy band; padding trimmed 2px to
   match the borderless white button's height. */
.partner-band .btn-secondary {
  color: var(--white);
  border-color: var(--white);
  padding: 11px 24px;
}

.partner-band .btn-secondary:hover {
  background-color: var(--white);
  color: var(--navy);
}

@media (min-width: 768px) {
  .partner-band {
    padding: 96px 0;
  }

  .partner-band__inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .partner-band__text {
    flex: 1;
  }

  .partner-band__divider {
    display: block;
    width: 1px;
    align-self: stretch;
    min-height: 96px;
    background: rgba(255, 255, 255, 0.25);
  }

  .partner-band h2 {
    font-size: 2.1rem;
  }

  .partner-band .btn {
    white-space: nowrap;
    padding: 15px 32px;
  }

  .partner-band .btn-secondary {
    padding: 13px 30px;
  }
}

/* ==========================================
   KATE CALL 2 (Aug 29 2026) OVERRIDES
   Brand motifs from the official kit (docs 10):
   the cut-corner brick shape and quiet gold
   texture. Rule: subtle, less is more, clean.
   ========================================== */

/* ---------- Corner-cutout motif utility (logomark geometry: top-left and
   bottom-right corners cut).

   NEVER PUT THIS ON A PHOTOGRAPH (Vazul, Sep 1 2026). He read the clipped
   corners as the image being cut off rather than as the logomark shape, and
   ruled it off every photo on the site. It came off all 18 photo containers
   that carried it in the same change, and off the two homepage contact route
   panels later the same day for the same reason. UI chrome only from here:
   the lightbox zoom badges are the only remaining user.
   docs/10 carries the rule under DO NOT USE. ---------- */
.cut-corners {
  /* 16px read as an accident; 28px reads as the logomark shape on purpose. */
  --corner-cut: 28px;
  clip-path: polygon(var(--corner-cut) 0, 100% 0, 100% calc(100% - var(--corner-cut)), calc(100% - var(--corner-cut)) 100%, 0 100%, 0 var(--corner-cut));
}

/* ================= THE LOCKUP, BUILT FROM THE REAL ARTWORK ================
   Vazul, Sep 2 2026: use the actual logo out of the brand package rather than
   approximating Stevie Sans, which the package does not ship as a font.
   So the wordmark is now an IMAGE and everything below is driven off one
   number, --lockup-h, using the proportions measured off the brand package's
   own Primary Logo (2187x220 px):

     mark          x 0..369, full height      ->  1.677 x lockup height wide
     gap to text   x 369..429                 ->  0.273 x lockup height
     name line     x 429..2187, y 0..129      ->  0.586 x lockup height tall
     tagline       y 168..220                 ->  0.236 x lockup height tall

   In that artwork the mark is exactly as tall as the two-line text block
   beside it, which is what Kate asked for on call 4, so honouring the ratios
   honours her note automatically. CHANGE --lockup-h AND NOTHING ELSE.

   WHY 38px AND NOT 47px: at true proportions an all-caps wordmark is wide.
   The old text lockup was about 330px; the artwork at a 47px mark comes to
   466px, which overruns the nav between 1024 and 1280. 38px lands it at about
   380px, close enough to the old footprint that the verified header fit still
   holds. If the nav ever loses links, this can go back up.
   ========================================================================= */
.nav-logo {
  --lockup-h: 38px;
}

.nav-logo__mark {
  width: auto;
  height: var(--lockup-h);
  flex-shrink: 0;
}

.nav-logo__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--lockup-h) * 0.08);
}

/* The wordmark artwork. Width is auto so the aspect ratio can never be
   squashed by a stray width rule, which is the failure this whole block is
   arranged to avoid. Rungs are exact 1x and 2x of the 24px source height. */
.nav-logo__name {
  display: block;
  height: calc(var(--lockup-h) * 0.586);
  width: auto;
}

/* The subline used to be tracked out to 0.55em so it justified to the full
   width of the wordmark. Vazul (Oct 4 2026): that read as gappy, so it is now
   set at roughly the wordmark's own letter spacing and is allowed to run
   shorter than the name line. The negative margin cancels the trailing
   letter-space after the last N. */
.nav-logo .logo-sub {
  display: block;
  font-size: calc(var(--lockup-h) * 0.29);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
}

/* .logo-diamond is RETIRED from the lockups: the diamond is inside the
   wordmark artwork now. The rule stays because the shape is a brand motif
   (docs/10) and is the obvious thing to reach for if a badge or a divider
   ever wants it. Nothing in the markup uses it today. */
.logo-diamond {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin: 0 0.2em;
  background: var(--gold);
  transform: rotate(45deg);
  vertical-align: 0.14em;
}

/* ---------- Footer redesign (Kate: the old one was never designed).
   Coal ground, faint gold brand-brick pattern, gold top rule, brand row
   with the real logomark, then the existing grid. ---------- */
.site-footer {
  background-color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='88'%3E%3Cg fill='none' stroke='%23C6953F' stroke-opacity='0.04' stroke-width='1.5'%3E%3Cpath transform='translate(4,8)' d='M10 0 H68 V20 L58 30 H0 V10 Z'/%3E%3Cpath transform='translate(88,8)' d='M10 0 H68 V20 L58 30 H0 V10 Z'/%3E%3Cpath transform='translate(-38,52)' d='M10 0 H68 V20 L58 30 H0 V10 Z'/%3E%3Cpath transform='translate(46,52)' d='M10 0 H68 V20 L58 30 H0 V10 Z'/%3E%3Cpath transform='translate(130,52)' d='M10 0 H68 V20 L58 30 H0 V10 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 168px 88px;
  padding: 64px 0 0;
}

/* Below 1024px the fixed call bar (.mobile-cta) covers the last 56px of
   the page, so the footer gets that much dark ground under it and the
   copyright line scrolls clear. */
@media (max-width: 1023px) {
  .site-footer {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 0;
}

/* Matched to the header's height-first rule (Kate, call 4): the footer mark
   stands the height of the brand name plus the tagline beside it. */
.footer-brand__mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

/* The footer runs the same artwork lockup as the header, in the white cut,
   on the same --lockup-h ratios. It gets its own variable because the footer
   has the full container width and can afford to be bigger than the header,
   where the nav links are competing for the same row. The footer is also why
   both a dark and a light wordmark file exist: one lockup, two grounds.
   NOTE the earlier .footer-logo rule sets display:flex with a row direction
   for the old text lockup. This overrides it to a column; if that rule is ever
   deleted, delete the override with it. */
.footer-logo {
  --lockup-h: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--lockup-h) * 0.08);
}

/* Sized by width, not height. With a fixed height, the global img
   max-width:100% clamped the width on phones and squashed the artwork to
   about 9.7:1 (Vazul, Oct 6 2026). Width is the 0.586 height times the
   artwork's 13.625:1 ratio; height:auto keeps the ratio when it clamps. */
.footer-logo__name {
  display: block;
  width: calc(var(--lockup-h) * 0.586 * 13.625);
  max-width: 100%;
  height: auto;
}

.footer-logo .logo-sub {
  display: block;
  font-size: calc(var(--lockup-h) * 0.29);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-right: -0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-logo {
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1.4fr 1fr;
    gap: 48px;
  }
}

/* ---------- Testimonials, MLG-style: wider, open, minimal. The work
   speaks; the cards lose their boxes. Vazul request (Aug 29 2026): same
   warm light band as the Our Services section, no longer white. ---------- */
.testimonials {
  background-color: var(--light-band);
  padding: 96px 0 84px;
}

/* Section rhythm (2.5rem) by default. Where the carousel is live, its
   arrow row below the header carries its own spacing, so the header
   itself stays tight. */
.testimonials-header {
  margin-bottom: 2.5rem;
}

.testimonials-header:has(+ .testimonial-carousel.is-slider) {
  margin-bottom: 1.5rem;
}

.testimonials-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

/* Scoped to the homepage .testimonials section only; the reviews page
   keeps its carded style. */
.testimonials .testimonial-wall {
  max-width: var(--max-width);
  column-gap: 56px;
}

.testimonials .testimonial-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 4px;
  margin-bottom: 52px;
  box-shadow: none;
}

.testimonials .testimonial-card:hover {
  transform: none;
  box-shadow: none;
}

.testimonials .testimonial-card::before {
  font-size: 4rem;
  height: 0.5em;
  margin-bottom: 16px;
}

.testimonials .testimonial-text {
  font-size: 1.06rem;
  line-height: 1.75;
}

.testimonials .testimonial-meta {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  max-width: 320px;
}

@media (min-width: 1024px) {
  .testimonials .testimonial-wall {
    columns: 3;
  }
}

/* Slider mode keeps the same open spacing as the column layout. */
.testimonials .testimonial-carousel.is-slider .testimonial-wall {
  gap: 56px;
}

.testimonials .testimonial-carousel.is-slider .testimonial-card {
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .testimonials .testimonial-carousel.is-slider .testimonial-card {
    flex-basis: calc((100% - 56px) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonials .testimonial-carousel.is-slider .testimonial-card {
    flex-basis: calc((100% - 112px) / 3);
  }
}

/* Phones swipe, endless both ways (Vazul, Oct 6 2026: "swipe left and
   right to see the other testimonials", then "a forever continuous looped
   scroll horizontally either way", mobile only). Below 768px script.js
   adds .is-endless, clones the cards behind the real set and drives the
   row by transform with a position that wraps every one set width, so
   neither direction has an end. The card follows the finger and settles
   one card at a time; the next card peeks in at the right edge as the cue
   that there is more. The carousel bleeds to the screen edge so the peek
   is not cut at the container line. pan-y hands vertical drags back to
   the page. Desktop and tablet keep the looping slide unchanged. */
@media (max-width: 767px) {
  .testimonials .testimonial-carousel.is-slider {
    margin: 0 -24px;
    padding: 0 24px;
  }

  .testimonials .testimonial-carousel.is-slider .testimonial-wall {
    gap: 32px;
  }

  .testimonials .testimonial-carousel.is-endless .testimonial-wall {
    transition: none;
    touch-action: pan-y;
  }

  .testimonials .testimonial-carousel.is-slider .testimonial-card {
    flex-basis: 84%;
  }
}

/* ---------- Third-party endorser band (new at Kate call 2): the
   restoration experts who vetted the product. Navy ground, gold label,
   designated photo on the right (Vazul, Aug 29). ---------- */
/* Vazul request (Aug 29 2026): endorser band flipped from navy to white;
   text colors flipped with it.
   Amended Aug 31 2026 (operator): white to the warm light band. Two reasons.
   (1) endorser and key-band were the page's only same-ground neighbours, so
   the seam between them read as one long white scroll with two left-aligned
   headlines floating in it. (2) It gives the page a rule instead of an
   accident: statement bands (endorser, credo) sit on the warm ground, proof
   bands (key band, process) sit on white. Still light, still charcoal text,
   so Vazul's "not navy" ruling stands. One token to revert. */
/* WHITE-RANGE TEST (Vazul, Sep 1 2026): warm ground to white. This band was
   moved warm on Aug 31 precisely because endorser + key band were the page's
   only same-ground neighbours and the seam vanished. That failure is handled
   here by the hairline seam rather than by a colour change. */
/* ==========================================
   HOMEPAGE POSITIONING BAND (Vazul, Sep 1 2026)
   Statement band directly under the hero, holding the "what this is and who
   it is for" argument that used to only exist further down the page.
   Two-column chapter opener: label and headline hold the left, the argument
   and the CTA run down the right, so three paragraphs keep a readable measure
   instead of spanning a 1380px slab. Warm ground on purpose, so the page still
   alternates dark hero / warm band / white stats across the seam.
   Homepage only.
   ========================================== */
/* 88 -> 64 on Sep 2 2026, option D off the options board. Half of the band's
   compression is here; the other half is the photo's 16:9 to 21:9 crop. */
/* White, not the warm band (Vazul, Sep 2 2026, option 02 off the seam bench,
   artifact 7be474fb-0819-44eb-a252-826853d5ade8). The hero plate sits in white
   and used to butt straight into this band's cream, so the photo's bottom edge
   was also the colour change and the plate read as cropped. Painting this band
   white removes the seam outright, and the band's own 64px of top padding
   becomes the clear space under the photo, so it costs no page height.
   KNOWN TRADE-OFF, ruled and accepted: the homepage alternated white / cream
   down its whole length and this puts three white sections in a row (hero,
   this band, proofgrid) before the cream returns at .affil-band
   (layout since changed: services band now sits above this one, and
   .affil-band went white Oct 5 2026). Do not
   "restore the alternation" here in a later sweep without asking Vazul. */
.intro-band {
  background-color: var(--white);
  padding: 64px 0;
}

.intro-band__grid {
  display: grid;
  gap: 28px;
}

.intro-band__head .section-label {
  text-align: left;
}

.intro-band h2 {
  color: var(--charcoal);
  padding-bottom: 18px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  text-wrap: balance;
}

.intro-band__body p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.intro-band__body p:last-of-type {
  margin-bottom: 0;
}

/* Crew photo under the argument. Square corners by rule: the cut-corner
   logomark shape is UI chrome and never lands on a photograph. */
.intro-band__photo {
  margin: 48px 0 0;
}

.intro-band__photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .intro-band__photo {
    margin-top: 64px;
  }
}

/* Full-container photo band between two white sections (/services, Vazul,
   Oct 5 2026). Same box and square corners as the homepage intro band photo;
   the neighbours' own padding supplies the air above and below. */
.photo-band {
  background-color: var(--white);
}

.photo-band__photo {
  margin: 0;
}

.photo-band__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two columns, two children, nothing placed by hand. The explicit rows and the
   bottom-anchored third child are gone with the button they existed to hold
   (Vazul, Sep 2 2026). The open ground under the headline is now the intended
   composition, not a fault to patch: he read it as the enterprise look. */
@media (min-width: 900px) {
  .intro-band__grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 0 64px;
    align-items: start;
  }
}

.endorser {
  background-color: var(--white);
  padding: 88px 0;
}

.endorser .section-label {
  text-align: left;
}

.endorser h2 {
  color: var(--charcoal);
  text-align: left;
  padding-bottom: 0;
  margin-bottom: 1.4rem;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  /* The narrow measure of the bleed composition otherwise orphans "living." on
     a line of its own. */
  text-wrap: balance;
}

.endorser p {
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 1rem;
}

.endorser__text .btn {
  margin-top: 1.75rem;
}

/* ---------- CONTAINED PANEL COMPOSITION (Vazul, Sep 1 2026), picked from the
   four rendered in the compositions artifact and then pulled back inside the
   margin the same day. It shipped as a full bleed off the right screen edge;
   Kate's ruling is that the large photo panels keep a margin on both sides,
   and Vazul confirmed it reads cleaner. The copy holds a capped measure and
   the three facts we already own run as a credential rail so "40 years" stops
   being a word buried inside a sentence.

   What this replaced: a boxed 1.25fr/1fr module with the photo carrying the
   full text-column height. The diagnosis behind the change was that the band
   read plain because the composition was the internet default and because the
   section's strongest facts were dissolved into an 81-word paragraph, not
   because it lacked any decoration.

   The section drops .container in index.html, so the padding below does the
   container's job on the left and lets the right run to the viewport. ---------- */
.endorser__inner {
  display: grid;
  gap: 40px;
  padding: 0 24px;
}

.endorser__imagewrap {
  margin: 0;
}

.endorser__imagewrap img {
  width: 100%;
  height: auto;
}

/* Credential rail. Hairline separated so it reads as a record rather than a
   decorative stat row: the fact carries the weight, the label stays quiet. */
.endorser__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.endorser__facts > div {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--hairline);
}

.endorser__facts dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.endorser__facts dd {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* CAPTION SLOT: styled and ready, deliberately NOT in the markup. A caption is
   the cheapest premium move available, because a captioned photograph reads as
   documentation where an uncaptioned one reads as decoration. It only works if
   the line under it is true. As of Sep 3 2026 the slot holds a real job
   photograph (the boom-lift crew frame) rather than a designated stand-in, so
   the only thing missing is the building name, city and year, and that comes
   from Vazul rather than Kate. See the note in index.html. */
.endorser__caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .endorser__inner {
    /* Mirror of .product-band__inner: capped measure first, fluid photo column
       second, so the two bands read as one system (photo left, then photo
       right) at identical geometry. The cap is 560 rather than 660 for the
       reason spelled out on the product band: the row stops growing at
       --max-width, so every pixel the text takes past that point comes
       straight out of the photo. */
    grid-template-columns: minmax(0, clamp(340px, 40vw, 560px)) 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    /* BOTH edges track .container. The bleed that shipped earlier on Sep 1 is
       reverted: Kate's ruling is that the large photo panels stay inside the
       margin, and Vazul confirmed it reads cleaner. */
    padding: 0 max(24px, calc((100% - var(--max-width)) / 2 + 24px));
  }

  .endorser__imagewrap {
    height: auto;
  }

  /* Same panel as .product-band__imagewrap img: 7/8 portrait, 820px cap, cover.
     Only the crop bias differs, since it is a different photograph. Since the
     Sep 3 2026 photo swap the source is portrait (1200x1600) and TALLER than
     7/8, so cover is driven by WIDTH and object-position's vertical term is the
     one that bites: 38% keeps both crew members and the stone band in frame and
     takes the trim off the lift basket at the bottom. The band still wants a
     source wider than 1372 for retina; see RUNNING-CHANGES. */
  .endorser__imagewrap img {
    aspect-ratio: 7 / 8;
    height: auto;
    max-height: 820px;
    object-fit: cover;
    object-position: 50% 38%;
  }

  .endorser__facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .endorser__facts > div {
    padding: 18px 22px 14px 0;
    border-bottom: 0;
  }

  .endorser__facts > div + div {
    padding-left: 26px;
    border-left: 1px solid var(--hairline);
  }
}

/* ---------- Product band (Aug 29 2026): commercial rebuild of the old
   Wix site's "Product Tested & Proven To Last" section. Coal ground so
   it reads as the homepage's one dark centerpiece between the hero and
   the contact form; gold takes every accent the original gave to red
   (docs/10). Before/after stack left, product story right; chips sit
   bottom-left, which was originally the corner the cut-corners clip left
   intact. The photos are unclipped now, but the placement stays: bottom-left
   is out of the way of the zoom badge at top-right. ---------- */
/* WHITE-RANGE TEST (Vazul, Sep 1 2026): the coal centrepiece flipped to
   white with the rest of the top range, text set flipped with it. The
   .on-dark class came off the section in index.html so the outline button
   goes back to charcoal. To revert: charcoal ground, --white headings,
   #C9C9C9 body, #A6A6A6 caption, --gold label, and .on-dark back on. */
/* Vertical padding is set with .endorser and .credo-band in the band-rhythm
   block near the end of this file; the three share it. */
.product-band {
  background-color: var(--white);
}

.product-band .section-label {
  text-align: left;
}

.product-band h2 {
  color: var(--charcoal);
  text-align: left;
  padding-bottom: 0;
  margin-bottom: 1.4rem;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
}

.product-band__lead {
  color: var(--ink-soft);
  font-size: 1.13rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2.2rem;
}

/* ---------- CONTAINED PANEL COMPOSITION (Vazul, Sep 1 2026). The kitty-corner
   before/after pair left this band for residential.html and a single commercial
   photograph took the slot.

   This started as .endorser__inner reflected, photo bleeding off the LEFT screen
   edge, and Vazul pulled it back the same day: "I don't know if I like it
   completely up against the side. Can we leave some white space and make the
   image a little bit smaller if we have to?" So the padding below is symmetric
   and the photo's left edge lands on the container's left margin, in line with
   every other section on the page. The panel loses about 55px of width to that
   and is the better for it: the endorser band below still bleeds right, so the
   page now reads contained-then-bleeding rather than two bleeds in a row.

   The panel treatment itself (7/8, 820px cap, cover) is still deliberately the
   endorser's, because the two photographs sit back to back and a different
   ratio on each would read as an accident.

   The section drops .container in index.html even though it no longer bleeds:
   the grid needs the padding on .product-band__inner itself to keep the text
   measure capped independently of the photo column. ---------- */
.product-band__inner {
  display: grid;
  gap: 40px;
  padding: 0 24px;
}

.product-band__imagewrap {
  margin: 0;
}

.product-band__imagewrap img {
  width: 100%;
  height: auto;
}

/* Retained for the kitty-corner before/after module, which now lives in the
   body copy on residential.html. The stack styles below travel with it. */
.product-band__media {
  display: grid;
  gap: 22px;
  align-content: center;
}

.product-band__photo {
  position: relative;
  margin: 0;
}

.product-band__photo img {
  width: 100%;
  height: auto;
}

/* ---------- Kitty-corner before/after swap (Vazul, Sep 1 2026) ----------
   The pair sits on a diagonal instead of stacked: one frame top-left, one
   bottom-right, overlapping by about a third. The switch promotes either
   frame to the top-left front slot and the other travels to the back.

   Bare photos: no matte, no border, no corner clip. Depth is carried by the
   size gap and the drop-shadow alone (Vazul, Sep 1 2026, second pass).

   SQUARE, NOT SCRAPBOOK (Vazul, Sep 1 2026, third pass): the frames carried
   a 1.6deg tilt and he ruled it out. Every edge is now axis-aligned, both
   frames flush to the stack's own edges, and the transforms carry no
   rotation at all. If a tilt is ever wanted back it belongs on the frames,
   not on the stack, and the aspect-ratio below has to grow to cover the
   corners a rotation swings outside the box.

   SIZE IS THE POINT: the front frame is double the back one, so the swap
   grows the incoming photo and shrinks the outgoing one rather than just
   trading corners. Both frames are laid out at the FRONT size and the back
   one is scaled down, so a single transform carries position and size
   together on one timing function.

   Geometry, if any of these are retuned. p is the photo ratio 722/962.
     card-w  front frame width, share of the stack
     back    back frame's scale factor
     shift-x = (1 - card-w * back) / card-w      pins it flush right
     shift-y = (H/W - card-w * back * p) / (card-w * p)   flush bottom
     H/W     = card-w * (1 + back) * (p - 1) + 1
   That last line is what makes the corner overlap equal in both axes; drop
   it and the frames meet on a slant instead of at a corner. Current numbers
   are card-w 72%, back 0.5, overlap 8% of the stack width, which is about a
   fifth of the small frame. transform-origin is pinned top-left because the
   shifts are measured from there; moving it silently breaks every value
   above. ---------- */
.ba-stack {
  --ba-card-w: 72%;
  --ba-back-scale: 0.5;
  --ba-shift-x: 88.89%;
  --ba-shift-y: 85.19%;
  /* Lands 8% past 1, so the frame coming forward overshoots its size a hair
     and settles back. The growth is the message, so it gets the emphasis. */
  --ba-swap-ease: cubic-bezier(0.5, 0.02, 0.22, 1.08);
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 73.05;
}

.ba-stack__card {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ba-card-w);
  aspect-ratio: 962 / 722;
  transform-origin: 0 0;
  transition:
    transform 0.7s var(--ba-swap-ease),
    filter 0.7s ease;
}

.ba-stack__card > a {
  display: block;
  height: 100%;
}

.ba-stack__card img {
  height: 100%;
  object-fit: cover;
}

/* Front frame: full size, top-left, lifted off the band. Back frame: half
   size, flush to the bottom-right, set back with a little less light. The
   shadow values are identical on purpose. Filters render before transforms,
   so scale(0.5) halves the shadow along with the photo and the small frame
   gets a proportionally small one for free. Same function list on both, so
   the swap interpolates instead of snapping. */
.product-band__media[data-ba-front="before"] .ba-stack__card--before,
.product-band__media[data-ba-front="after"] .ba-stack__card--after {
  z-index: 2;
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(0 18px 30px rgba(29, 29, 30, 0.32)) brightness(1) saturate(1);
}

.product-band__media[data-ba-front="before"] .ba-stack__card--after,
.product-band__media[data-ba-front="after"] .ba-stack__card--before {
  z-index: 1;
  transform: translate(var(--ba-shift-x), var(--ba-shift-y)) scale(var(--ba-back-scale));
  filter: drop-shadow(0 18px 30px rgba(29, 29, 30, 0.32)) brightness(0.96) saturate(0.94);
}

/* The back frame is scaled to half, which drags its Before/After chip down
   with it to about 7px type. Counter-scaling by 1.5 lands the chip at three
   quarters of natural size: readable, still visibly the small frame's. The
   origin is its own bottom-left anchor so the correction does not walk it
   off the corner, and it rides the same timing as the swap so the chip
   grows and shrinks with the photo instead of popping at the end. */
.ba-stack__card .ba-chip {
  transform-origin: 0 100%;
  transform: scale(1);
  transition: transform 0.7s var(--ba-swap-ease);
}

.product-band__media[data-ba-front="before"] .ba-stack__card--after .ba-chip,
.product-band__media[data-ba-front="after"] .ba-stack__card--before .ba-chip {
  transform: scale(1.5);
}

/* Switch: segmented pill, gold thumb slides under the active half. Hidden
   until the script wires it up so a no-JS page never shows a dead control.
   Unbordered per the no-outlines pass; the light-band ground is what marks
   it as a control now. The keyboard focus ring below is NOT part of that
   rule, it only appears on tab and removing it would strand keyboard users. */
.ba-switch {
  position: relative;
  display: none;
  justify-self: start;
  align-items: stretch;
  padding: 4px;
  background: var(--light-band);
}

.js-ba-ready .ba-switch {
  display: inline-flex;
}

.ba-switch__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--gold);
  transition: transform 0.45s var(--ba-swap-ease, cubic-bezier(0.62, 0.03, 0.24, 1));
}

.product-band__media[data-ba-front="after"] .ba-switch__thumb {
  transform: translateX(100%);
}

.ba-switch__btn {
  position: relative;
  z-index: 1;
  min-width: 104px;
  padding: 10px 20px;
  border: 0;
  background: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.35s ease;
}

.ba-switch__btn[aria-pressed="true"] {
  color: var(--charcoal);
  cursor: default;
}

.ba-switch__btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ba-stack__card,
  .ba-stack__card .ba-chip,
  .ba-switch__thumb,
  .ba-switch__btn {
    transition: none;
  }
}

.ba-chip {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 5px 14px;
  background: rgba(29, 29, 30, 0.85);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ba-chip--after {
  background: var(--gold);
  color: var(--charcoal);
}

.product-band__caption {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* The module standing in body copy on residential.html rather than in a band
   grid. It needs the vertical breathing room the paragraphs around it get,
   which .product-band__media never had to supply for itself. */
.patch-swap {
  margin: 2.25rem 0 2.5rem;
}

.product-points {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}

.product-point {
  position: relative;
  padding-left: 26px;
}

/* Gold diamond marker, the small brand accent from docs/10. */
.product-point::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

.product-point h3 {
  color: var(--charcoal);
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}

.product-point p {
  color: var(--ink);
  line-height: 1.65;
  max-width: 560px;
}

.product-band__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .product-band__inner {
    /* The capped measure is the SECOND column here, so the photo column is the
       fluid one and takes whatever the text does not need. The cap is 560 rather
       than the endorser's 660 because this band is contained on BOTH sides: the
       content row stops growing at --max-width, so every pixel the text takes
       past that point comes straight out of the photo, and a 660 cap made the
       panel SHRINK as the monitor got wider. 560 is also the measure the lead
       paragraph and the point copy already cap themselves at. */
    grid-template-columns: 1fr minmax(0, clamp(340px, 40vw, 560px));
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    /* Both edges track .container exactly, so the photo's left edge sits on the
       same margin as every headline on the page. */
    padding: 0 max(24px, calc((100% - var(--max-width)) / 2 + 24px));
  }

  /* Same panel as .endorser__imagewrap img. The crop is biased hard RIGHT: the
     source is landscape and the panel is portrait, so cover is driven by HEIGHT
     and only the horizontal position does anything here. 80% puts the building's
     corner near the centre of the frame and keeps the banded second face and the
     glass return in shot; lower values slide off to a flat wall of brick. The
     max-height keeps the ratio from turning into a tower on wide monitors. Note
     this crop needs MORE vertical pixels than the 1025px source has; see the
     image-resolution item in RUNNING-CHANGES. */
  .product-band__imagewrap img {
    aspect-ratio: 7 / 8;
    height: auto;
    max-height: 820px;
    object-fit: cover;
    object-position: 80% 50%;
  }
}

/* ---------- Durability module: stylized 3-state brick (before, after,
   25 years later, identical). Clearly an illustration, never a photo.
   AI renders with real alpha; the soft drop-shadow seats them on the card.
   Hover gives an interactive-lite tilt. ---------- */
.proof-brick {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bricks sit directly on the white band: no card ground behind them.
   Real photos (the swap slot) keep the card treatment above. */
.proof-timeline__media:has(.proof-brick) {
  background: none;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}

.proof-brick img {
  width: 82%;
  height: auto;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 14px 16px rgba(29, 29, 29, 0.28));
}

.proof-timeline__media:hover .proof-brick img {
  transform: rotate(-2.5deg) scale(1.03);
}

.proof-timeline__illnote {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1.25rem;
}

/* ---------- Audience cards: Nawkaw-style images, premium and clean.
   Vazul request (Aug 29 2026): 50% taller than the 5 / 2 slim crop, so
   the residential/commercial photos carry more weight. Grown another 50%
   (Vazul, Sep 1 2026): the grid column fixes the width, so height is the
   only lever and 5 / 3 became 10 / 9. The photos are served from the
   1441px full crop below, which is 4 / 3 native and so fills the taller
   box without losing the building to a side crop. Pulled back about 20%
   (Vazul, Sep 1 2026: "reduce the size of those images by about 20%"):
   width is still grid-driven, so 10 / 9 became 25 / 18, which is a fifth
   less height and lands between the 5 / 3 and 10 / 9 versions. A second
   identical cut (Vazul, Sep 2 2026: "20% less height" again) took 25 / 18
   to 125 / 72, so the box is now 64% of the 10 / 9 height and slightly
   slimmer than the 5 / 3 it grew from. The 4 / 3 source is being cropped
   hard top and bottom at this ratio; if it goes shorter again the crop,
   not the box, is the thing to revisit. ---------- */
.audience-card__media {
  aspect-ratio: 125 / 72;
}

/* Vazul request (Aug 29 2026): slow, quiet zoom on hover. Long duration
   and a tiny scale keep it corporate rather than flashy; the media box
   already clips overflow. The global reduced-motion block disables it. */
.audience-card__media img {
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.audience-card:hover .audience-card__media img,
.audience-card:focus-visible .audience-card__media img {
  transform: scale(1.05);
}

/* ---------- Mega menu: service cards carry small thumbs. The About panel
   is a plain link list since Oct 12 2026 (Vazul): its photo card and the
   "Who We Are" title it carried are gone, folded into one "About Us" link. ---------- */
.mega-blurb {
  max-width: 300px;
}

/* .process-alt lived here: a bordered stone aside under the /services five
   steps. Vazul cut its only instance on Sep 2 2026 ("this section can be
   removed"), so the rules went with it rather than sitting unused. In git at
   3ab028c if the quiet-aside pattern is ever wanted again. */

/* ---------- Credo band (Aug 29 2026): the building-first statement
   between the two navy bands (partner CTA above, contact below).
   Light ground; the standard gold underline is swapped for one small
   gold diamond per the motif rule (docs/10).
   Vazul (Aug 29, second pass): upgraded from a centered statement to a
   split layout mirroring the endorser band, designated commercial photo
   on the LEFT, text right, for a corporate big-business read. ---------- */
.credo-band {
  background-color: var(--light-band);
  padding: 96px 0;
}

.credo-band .section-label {
  text-align: left;
}

.credo-band h2 {
  text-align: left;
  padding-bottom: 0;
  margin-bottom: 1.1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.credo-band h2::after {
  content: none;
}

.credo-band__diamond {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0 0 1.6rem;
}

.credo-band p {
  max-width: 620px;
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Same spacing as .endorser__text .btn, so the two mirrored bands sit their
   secondary button at the same distance below the copy. */
.credo-band__text .btn {
  margin-top: 1.75rem;
}

.credo-band__inner {
  display: grid;
  gap: 40px;
}

.credo-band__imagewrap {
  margin: 0;
}

.credo-band__imagewrap img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .credo-band {
    padding: 108px 0;
  }
}

@media (min-width: 900px) {
  /* Image column widened from 1fr to 1.25fr (Vazul, Sep 1 2026) so this photo
     lands at the same size as the endorser band's: ~700px wide against its
     ~724px, both capped at 820px tall. Text keeps a comparable measure. */
  .credo-band__inner {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 72px;
  }

  /* Same panel treatment as .endorser__imagewrap img: 7/8 upright rectangle,
     cover crop, 820px ceiling. The cut-corners clip was dropped from the figure
     in index.html in the same change, so the two photographs now read as one
     pair rather than two different image styles on one page. */
  .credo-band__imagewrap img {
    aspect-ratio: 7 / 8;
    height: auto;
    max-height: 820px;
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* ---------- Asset fill utility: same fill/crop behavior the temp-asset
   wrapper provided, without the TEMP watermark. For real/designated
   images dropped into fixed-aspect media boxes. ---------- */
.asset-fill {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
}

.asset-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audience-card__media .asset-fill {
  position: absolute;
  inset: 0;
}

/* ---------- Downloads / document library (Kate call 2, Aug 29 2026:
   "Downloads" agenda topic). Cards extend .featured-card; the status pill
   marks placeholder documents until real PDFs land (TODO(asset:docs)). ---------- */
.dl-card .dl-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 1rem;
}

.dl-card .dl-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.dl-card .dl-status a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl-card .dl-status a:hover {
  color: var(--gold-hover);
}

/* ---------- Whitespace pass (Aug 29 2026, Vazul): the page should feel
   open and commercial, never crowded. Every content band gets more air,
   with a bigger step-up on desktop. Appended last so these win the
   cascade over the per-band paddings above. ---------- */
.audience-split,
.proof-band,
.key-band,
.process,
.featured-band {
  padding: 88px 0;
}

.stats-bar--titled {
  padding: 72px 0 52px;
}

/* .product-band joined this rhythm Sep 1 2026, when it became the mirror of the
   endorser band directly below it. The two bleeds sit back to back, so an 88/112
   band against a 96/120 one showed as an uneven gutter between them. */
.product-band,
.endorser,
.credo-band {
  padding: 96px 0;
}

.testimonials {
  padding: 104px 0 92px;
}

.partner-band {
  padding: 80px 0;
}

.contact {
  padding: 88px 0 100px;
}

@media (min-width: 900px) {
  .audience-split,
  .proof-band,
  .key-band,
  .process,
  .featured-band {
    padding: 112px 0;
  }

  .stats-bar--titled {
    padding: 84px 0 64px;
  }

  .product-band,
  .endorser,
  .credo-band {
    padding: 120px 0;
  }

  .testimonials {
    padding: 120px 0 108px;
  }

  .partner-band {
    padding: 96px 0;
  }

  .contact {
    padding: 112px 0 120px;
  }
}

/* ==========================================
   WHITE HEADER (Vazul, Aug 29 2026)
   The fixed top bar flips from charcoal to
   white; mega panels and the mobile overlay
   follow. Text colors invert, and gold
   accents that act as text use --gold-hover
   for contrast on white. Previewed in
   design-review/whitehdr-*.png.
   ========================================== */
.site-header {
  background-color: var(--white);
  /* No hairline (Vazul, Sep 2 2026). See the "Header air" block above. This
     also has to stay in sync with index.html's inline critical CSS. */
  border-bottom: none;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-logo {
  color: var(--charcoal);
}

.nav-logo .logo-mark {
  color: var(--gold);
}

.nav-links a,
.nav-drop-btn {
  color: var(--ink);
}

.nav-links a:hover,
.nav-drop-btn:hover,
.nav-item.open > .nav-drop-btn {
  color: var(--gold-hover);
}

.nav-hamburger span {
  background-color: var(--charcoal);
}

/* The header ghost button was white-on-charcoal (gold
   discipline pass); on white it flips to charcoal */
.nav-cta-mobile {
  color: var(--charcoal);
  border-color: rgba(0, 0, 0, 0.3);
}

.nav-cta-mobile:hover {
  background-color: transparent;
  border-color: var(--gold-hover);
  color: var(--gold-hover);
}

.mega-blurb {
  color: var(--ink-soft);
}

.mega-group-label {
  color: #8a8a8a;
}

.mega-sublinks a {
  color: var(--ink-soft);
}

.mega-sublinks a:hover {
  color: var(--gold-hover);
}

.mega-intro-cta {
  color: var(--gold-hover);
}

@media (min-width: 1024px) {
  .nav-item:hover > .nav-drop-btn {
    color: var(--gold-hover);
  }

  .mega-panel {
    background-color: var(--white);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 32px 56px rgba(0, 0, 0, 0.18);
  }

  .mega-intro {
    border-right-color: rgba(0, 0, 0, 0.1);
  }

  .mega-choice__title {
    color: var(--charcoal);
  }

  .mega-choice__desc {
    color: var(--ink-soft);
  }
}

@media (max-width: 1023px) {
  .nav-links {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .nav-links > li {
    border-bottom-color: var(--hairline);
  }

  .nav-item.open > .mega-panel {
    background: var(--light-band);
  }
}

/* ---------- Services page buildout (Aug 30 2026): sub-links inside the
   audience fork cards, and the four-up who-we-work-with router. The fork
   cards became <article> wrappers (an <a> cannot nest the sub-links), so
   the hover lift now rides the card element itself. ---------- */
.audience-card__links {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.audience-card__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.audience-card__links a::after {
  content: ' \2192';
  color: var(--gold);
}

.audience-card__links a:hover {
  color: var(--navy-accent);
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.5rem;
}

.persona-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--white);
  transition: box-shadow 0.25s ease;
}

.persona-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.persona-card h3 {
  font-size: 1.05rem;
}

.persona-card p {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .persona-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================
   PHOTO VIEWER (lightbox)
   Operator request, Aug 31 2026: the key-band timeline photos read soft at
   one-third column width on a desktop. Clicking a frame now opens the
   full-size file in a viewer with left/right navigation.
   Ground rules: coal backdrop, gold used once per view (the label rule
   and the active thumbnail), arrows borrowed from the testimonial
   carousel so hover highlights the ring and leaves the glyph alone
   (operator ruling, Aug 29). Triggers stay real links to the image
   file, so the photo is reachable with the script off.
   ========================================== */

/* ---------- Trigger: any photo frame that opens the viewer ---------- */
a[data-lightbox] {
  display: block;
  position: relative;
  color: inherit;
}

a[data-lightbox] img {
  display: block;
}

/* Only when the viewer is wired up; a bare link keeps the default cursor. */
.js-lightbox-ready a[data-lightbox] {
  cursor: zoom-in;
}

/* Top right. The photos themselves are no longer clipped (Sep 1 2026), but
   the badge keeps the logomark cut at badge size: it is chrome, not a
   photograph, so the motif still belongs on it. */
.lb-zoom {
  --corner-cut: 9px;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(29, 29, 30, 0.78);
  /* Vazul, Sep 1 2026: white, not gold. The badge is a UI affordance, not a
     brand accent, and it sits on every clickable photo on the site. The SVG
     inherits this through currentColor, so this one line covers all of them. */
  color: var(--white);
  pointer-events: none;
}

.js-lightbox-ready .lb-zoom {
  display: flex;
}

.lb-zoom svg {
  width: 16px;
  height: 16px;
}

/* Pointer devices get the quiet version until the frame is hovered.
   Touch devices, where there is no hover, keep it visible. */
@media (hover: hover) {
  .lb-zoom {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  a[data-lightbox]:hover .lb-zoom,
  a[data-lightbox]:focus-visible .lb-zoom {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ---------- The viewer ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(29, 29, 30, 0.97);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(29, 29, 30, 0.92);
}

.lightbox:not([open]) {
  display: none;
}

.lightbox__frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 14px 24px;
}

/* Photo and caption travel as one block, centered in the window, so a
   tall phone does not strand the picture in the middle of nowhere with
   its caption pinned to the floor. The photo's ceiling is the window
   height minus the room the caption and rail need. */
.lightbox__figure {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lightbox__stage {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 250px);
  max-height: calc(100dvh - 250px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Caption: the key-band's gold bar, then the step label, the sentence
   from the figure below the photo, and the position in the set.
   The rule spans exactly the photo above it (--lb-photo-width, measured
   live by the script), so the block reads as part of the picture
   instead of a bar floating across the screen. */
.lightbox__caption {
  position: relative;
  flex-shrink: 0;
  width: var(--lb-photo-width, 100%);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'label count'
    'text  text';
  align-items: baseline;
  column-gap: 20px;
  row-gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* The gold bar from the timeline captions, carried into the viewer. */
.lightbox__caption::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--gold);
}

.lightbox__label {
  grid-area: label;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox__text {
  grid-area: text;
  margin: 0;
  max-width: 62ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.lightbox__count {
  grid-area: count;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons: testimonial-arrow geometry on a coal ground ---------- */
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(29, 29, 30, 0.72);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lightbox__btn svg {
  width: 18px;
  height: 18px;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* The browser's own focus ring is blue, which the palette excludes, so
   the site's gold ring replaces it here as everywhere else. */
.lightbox__btn:focus-visible,
.lightbox__thumb:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__arrow--prev {
  left: 16px;
}

.lightbox__arrow--next {
  right: 16px;
}

/* ---------- Thumbnail rail: which of the three you are looking at ---------- */
.lightbox__rail {
  flex-shrink: 0;
  display: none;
  gap: 12px;
}

.lightbox__thumb {
  width: 84px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.45;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox__thumb:hover,
.lightbox__thumb:focus-visible {
  opacity: 0.8;
}

.lightbox__thumb[aria-current='true'] {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--gold);
}

@media (min-width: 768px) {
  .lightbox__frame {
    padding: 76px 96px 32px;
    gap: 26px;
  }

  /* Desktop also has to clear the thumbnail rail. */
  .lightbox__img {
    max-height: calc(100vh - 320px);
    max-height: calc(100dvh - 320px);
  }

  .lightbox__rail {
    display: flex;
  }

  .lightbox__close {
    top: 24px;
    right: 28px;
  }

  .lightbox__arrow--prev {
    left: 28px;
  }

  .lightbox__arrow--next {
    right: 28px;
  }

  .lightbox__caption {
    grid-template-areas:
      'label count'
      'text  count';
    align-items: start;
  }

  .lightbox__count {
    align-self: center;
  }
}

/* ---------- Motion: fade the viewer in, cross-fade between photos ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .lightbox[open] .lightbox__frame {
    transform: scale(0.985);
    transition: transform 0.22s ease;
  }

  .lightbox.is-open {
    opacity: 1;
  }

  .lightbox.is-open .lightbox__frame {
    transform: none;
  }

  .lightbox__img {
    transition: opacity 0.18s ease;
  }

  .lightbox.is-swapping .lightbox__img {
    opacity: 0;
  }
}

/* ==========================================
   SPEC PAGE LAYOUT (Sep 1 2026, Vazul)
   Built for /commercial/architects-engineers, the page our target
   audience actually lands on. The old version was one 760px column of
   thirteen h2s, paragraphs, and bullet lists: correct, unreadable.
   The competitor's answer to the same problem is a list of brochure
   links that each open a PDF, so the page itself says nothing. This is
   the opposite: every answer sits on the page, in the shape of the
   thing it describes (properties as a card grid, the CSI section as a
   grouped table, the match sequence as numbered steps, the record as
   numbers), and each source PDF is attached to the claim it backs
   instead of being dumped in a list at the end.
   Generic on purpose: any other spec-heavy page can adopt it.
   ========================================== */

/* ---------- Datasheet header strip, directly under the hero.
   The six facts a specifier checks before reading anything. ---------- */
.spec-summary {
  background: var(--charcoal);
  padding: 0;
}

.spec-summary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.spec-summary__item {
  background: var(--charcoal);
  padding: 22px 4px 24px;
}

.spec-summary__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 9px;
}

.spec-summary__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

/* ---------- Rail plus content. Below 1024px the rail collapses into a
   static "on this page" box above the content (same markup). ---------- */
/* minmax(0, 1fr) plus min-width: 0, not plain 1fr: a grid item defaults to
   min-width: auto, so the 540px-min spec table inside .table-scroll would
   push the whole column past the viewport and scroll the page sideways. */
.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.spec-layout > * {
  min-width: 0;
}

.spec-rail {
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 20px 22px 22px;
}

.spec-rail__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.spec-rail__list {
  list-style: none;
  counter-reset: rail;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.spec-rail__link {
  counter-increment: rail;
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--charcoal);
  padding: 7px 0 7px 30px;
  position: relative;
  transition: color 0.2s ease;
}

.spec-rail__link::before {
  content: counter(rail, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color 0.2s ease;
}

.spec-rail__link:hover {
  color: var(--gold-hover);
}

.spec-rail__downloads {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
}

.spec-rail__downloads::after {
  content: " \2193";
  color: var(--gold-hover);
}

.spec-rail__downloads:hover {
  color: var(--gold-hover);
}

/* ---------- One numbered content block ---------- */
.spec-block {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.spec-block + .spec-block {
  margin-top: 64px;
}

.spec-block__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--charcoal);
  margin-bottom: 1.5rem;
}

.spec-block__num {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-hover);
  flex-shrink: 0;
}

.spec-block h2 {
  font-size: 1.4rem;
  font-weight: var(--w-head);
  letter-spacing: -0.01em;
  text-align: left;
  padding: 0;
  margin: 0;
}

.spec-block h2::after {
  display: none;
}

.spec-block h3 {
  font-size: 1.02rem;
  margin: 2rem 0 0.7rem;
}

.spec-block > p {
  max-width: 68ch;
}

.spec-lead {
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Prose keeps a comfortable measure; tables and grids use the full column. */
.spec-layout .content {
  max-width: none;
}

/* ---------- Property cards (system behavior, one claim each) ---------- */
.prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.75rem 0 0;
}

.prop-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 22px 22px 24px;
}

.prop-card h3 {
  font-size: 0.98rem;
  font-weight: var(--w-head);
  margin: 0 0 8px;
}

.prop-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- The CSI section as a grouped table. Group rows replace the
   flat eleven-row list; the part reference travels with each provision
   so a specifier can find it in the PDF. ---------- */
.spec-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Group rows sit between the dark thead and the data rows, so they read
   as a third level: light ground, charcoal text, gold rule under. */
.spec-table .spec-table__group th {
  background: var(--light-band);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 14px 10px;
  border-bottom: 2px solid var(--gold);
}

.spec-table tr:nth-child(even) td {
  background: transparent;
}

.spec-table tbody tr:nth-child(odd) td {
  background: var(--light-band);
}

.spec-table .spec-table__group + tr td {
  background: var(--white);
}

.spec-ref {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
}

/* ---------- Inline document card: the source PDF sits beside the claim
   it backs, not in a list at the bottom of the page. ---------- */
.doc-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 16px 20px 16px 22px;
  margin: 1.25rem 0 1.5rem;
}

.doc-inline__title {
  font-family: var(--font-heading);
  font-weight: var(--w-head);
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.doc-inline__title:hover {
  color: var(--gold-hover);
}

.doc-inline__meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Substrate chips ---------- */
.chip-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 1.5rem 0 0;
}

.chip-cols h3 {
  margin-top: 0;
}

/* Scoped to .content so these beat the ".content ul" column-flex default
   that every other list on an interior page wants. */
.content .chip-grid,
.chip-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.content .chip-grid li,
.chip-grid li {
  padding: 0;
  line-height: 1;
}

.chip-grid li::before {
  display: none;
}

.chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
}

.chip--blocked {
  color: var(--ink-soft);
  background: var(--white);
  border-style: dashed;
  font-weight: 500;
}

.chip-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Numbered sequence (the match order, color last) ---------- */
/* Scoped to .content for the same reason as .chip-grid: the interior-page
   ".content ol" default indents and gaps every ordered list. */
.content .step-list,
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content .step-list li,
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 54px;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 2px;
}

/* The rail down the numbers, stopping at the last step: a 1px hairline drawn
   as a background line, not a side bar (no side stripes, Nov 3 2026). */
.step-list li:not(:last-child) {
  background: linear-gradient(var(--hairline), var(--hairline)) no-repeat 16.5px 40px / 1px calc(100% - 46px);
}

.step-list li:last-child {
  padding-bottom: 0;
}

.step-list__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--w-head);
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 5px;
  padding-top: 6px;
}

.step-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Callout: a statement worth stopping on ---------- */
.spec-callout {
  background: var(--light-band);
  box-shadow: 0 0 0 1px var(--hairline);
  border-radius: 3px;
  padding: 22px 26px 22px 29px;
  margin: 1.75rem 0;
}

.spec-callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 66ch;
}

.spec-callout p + p {
  margin-top: 0.9rem;
}

/* ---------- Warranty terms as a definition grid ---------- */
.term-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  margin: 1.75rem 0 1.5rem;
}

.term {
  background: var(--white);
  padding: 20px 22px;
}

.term__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 8px;
}

.term__body {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* ---------- The record: numbers on a coal inset inside the white page,
   so the field history reads as evidence, not as more prose. ---------- */
.record-stats {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 1.75rem 0;
}

.record-stat {
  background: var(--charcoal);
  padding: 26px 26px 28px;
}

.record-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--gold);
  margin-bottom: 8px;
}

.record-stat__label {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #C9C9C9;
}

/* ---------- Document library, grouped by what the document is FOR ---------- */
.doc-group + .doc-group {
  margin-top: 2rem;
}

.doc-group__label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* A group holding one document runs the full column rather than leaving
   half a row empty. */
.doc-grid--single {
  grid-template-columns: 1fr;
}

.doc-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 20px 22px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.doc-card__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--w-head);
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: 7px;
}

.doc-card__title::after {
  content: " \2193";
  color: var(--gold-hover);
}

.doc-card:hover .doc-card__title {
  color: var(--gold-hover);
}

.doc-card__what {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.doc-card__meta {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Closing pair: continuing education and design-phase support ---------- */
/* White, not light-band: the FAQ directly below is already light-band, and
   two beige bands in a row read as one long empty stretch. The rule and the
   heading carry the break instead. */
.spec-closing {
  background: var(--white);
  padding: 56px 0 64px;
  border-top: 1px solid var(--hairline);
}

.spec-closing h2 {
  margin-bottom: 2rem;
}

.spec-closing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.closing-card {
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 30px 28px 32px;
}

.closing-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
}

.closing-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.closing-card .related-links {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .spec-summary__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .record-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-grid--single {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .spec-summary__item {
    padding: 26px 4px 28px;
  }

  .term-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chip-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .spec-closing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-block + .spec-block {
    margin-top: 80px;
  }

  .spec-block h2 {
    font-size: 1.6rem;
  }
}

@media (min-width: 1024px) {
  .spec-summary__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .spec-layout {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 64px;
  }

  /* The rail follows the reader down a long technical page and marks
     where they are. Static box below 1024px. */
  .spec-rail {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
    background: transparent;
    border: none;
    border-left: 1px solid var(--hairline);
    border-radius: 0;
    padding: 4px 0 4px 20px;
  }

  .spec-rail__link {
    padding-left: 32px;
  }

  /* Active section: the gold marker slides to the block you are reading. */
  .spec-rail__link.is-active {
    color: var(--charcoal);
  }

  .spec-rail__link.is-active::after {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--gold);
  }

  .spec-rail__link.is-active::before {
    color: var(--charcoal);
  }
}

@media (min-width: 1200px) {
  .spec-summary__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .spec-summary__item {
    padding: 28px 18px 30px;
  }

  .spec-summary__item:first-child {
    padding-left: 0;
  }

  .spec-summary__item:last-child {
    padding-right: 0;
  }
}

/* ==========================================
   AUDIENCE FORK: FLAT COMMERCIAL TREATMENT
   Vazul, Aug 31 2026, from the Nawkaw "Our Services" screenshot. Their
   photos sit straight on the band with nothing around them and their type
   is lighter than ours; our white cards, 1px borders, hover shadow and
   700-weight titles were reading residential on a homepage an architect
   is routed to (docs/01 hybrid rule). This block strips the container so
   the photos sit on the band, quiets the type, and adds the scannable
   scope row the competitor's version does not have.

   Appended last so it wins over the original card rules above without
   editing them, and applied to the component rather than the homepage
   alone: the same fork runs on /services, which is COMMERCIAL register,
   so a boxed version there would be the wrong one. .persona-card and the
   bare .audience-link elsewhere are deliberately untouched.
   ========================================== */
.audience-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: none;
}

.audience-card:hover {
  box-shadow: none;
}

/* Stacked cards need more air between them than columns do, and with no
   card edge the column gap has to do the separating on its own. */
.audience-grid {
  row-gap: 48px;
  column-gap: 32px;
}

/* No side padding: the text column now lines up with the photo edge,
   which is what makes a borderless block read as deliberate. */
.audience-card__body {
  padding: 26px 0 0;
  gap: 12px;
}

.audience-card h3 {
  font-size: 1.35rem;
  font-weight: var(--w-head);
  letter-spacing: -0.005em;
}

/* No measure cap: the grid column is already a 55 to 62 character line at
   every breakpoint, and capping it on top of that left the copy floating
   in half its column. */
.audience-card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Scope row: three things behind the click, in the small letterspaced
   caps a spec sheet uses. Keeps its hairline above so the two columns
   share one alignment line (the paragraph is the flex spacer, so the
   rules and the links sit level however long the copy runs). */
.audience-card__scope {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  column-gap: 22px;
  row-gap: 9px;
}

.audience-card__scope li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Marker rather than a separator: a middot between items orphans onto the
   next line the moment the row wraps (it did at 390 and again in the
   900 to 1100 band, where the two columns are narrowest). Every item
   carrying its own gold diamond, the brand's own accent shape at a size
   docs/10 would call a small detail, wraps cleanly at any width. */
.audience-card__scope li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Sentence case, navy, medium weight: the uppercase row above already
   carries the caps, and two shouting lines in a row was half of why the
   old card read like a brochure. */
.audience-card .audience-link {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy-accent);
  margin-top: 4px;
}

.audience-card:hover .audience-link::after,
.audience-card:focus-visible .audience-link::after {
  color: var(--gold-hover);
}

/* Vazul, Sep 1 2026: the whole card is one click target but only the small
   Explore link moved on hover, so the title never looked clickable. Hovering
   the photo or the body now takes the h3 to the same gold the Explore link
   already goes to. On /services the title is also its own anchor, because a
   heading that highlights and then does nothing when clicked is worse than
   one that never highlighted. */
.audience-card h3 {
  transition: color 0.2s ease;
}

.audience-card h3 a {
  color: inherit;
}

.audience-card:hover h3,
.audience-card:focus-within h3 {
  color: var(--gold-hover);
}

/* Homepage section head: "Our Services" moved to the eyebrow, so the h2
   states the proposition instead of labelling the section. Extra air
   under it because there is no card edge to start the grid any more.
   TRACKING OVERRIDE REMOVED Sep 2 2026 (Vazul: match the H1). This rule used
   to carry `letter-spacing: -0.005em`, the only heading on the site set looser
   than the -0.015em default on `h1, h2, h3, h4`. The family and weight always
   matched the H1 (Public Sans, --w-head); the slack tracking was what made the
   line read as a different face. It now inherits the default like every other
   heading. Do not reintroduce a per-section letter-spacing here. */
#services h2 {
  margin-bottom: 2.75rem;
  font-weight: var(--w-head);
}

@media (min-width: 900px) {
  .audience-grid {
    column-gap: 44px;
  }

  .audience-card h3 {
    font-size: 1.5rem;
  }

  .audience-card__body {
    padding-top: 30px;
  }

  #services h2 {
    margin-bottom: 3.25rem;
  }
}

/* ---------- Spec-page figures (Sep 1 2026, Vazul: "it is still just text").
   Two kinds of image earn a place on a page for specifiers. Drawings, for
   the two mechanisms prose cannot carry (where the pigment sits in the wall,
   and how a blend ratio is reproduced), and photographs, for the only two
   things a drawing cannot prove: that the method was actually executed, and
   that it held. Everything here is built to sit inside .spec-block. ---------- */
.spec-figure {
  margin: 2.25rem 0 0;
}

.spec-figure__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1rem;
}

.spec-figure__num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hover);
  flex-shrink: 0;
}

.spec-figure__title {
  font-size: 1rem;
  font-weight: var(--w-head);
  margin: 0;
}

.spec-figure__frame {
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 22px 22px 20px;
}

.spec-figure__caption {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 12px 0 0;
  max-width: 74ch;
}

/* The drawing itself */
.dg {
  display: block;
  width: 100%;
  height: auto;
}

/* Two panels of the same 320x240 frame. Each carries its own drawing, title
   and keyed notes, so the pair compares side by side on a desktop and stacks
   into two readable drawings on a phone. They were one 660-wide SVG first,
   which squeezed each panel to about 150px at 390px and lost the detail. */
.content .dg-cols,
.dg-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.dg-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dg-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gold);
}

/* Scoped to .content so they beat the interior-page ".content ol" and
   ".content ul li" defaults (22px indent, column flex, gold square marker). */
.content .dg-notes,
.dg-notes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.content .dg-notes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.content .dg-notes__item,
.dg-notes__item {
  display: block;
  position: relative;
  padding-left: 28px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.content .dg-notes__item::before {
  display: none;
}

.dg-notes__key,
.dg-key text {
  font-family: var(--font-heading);
  font-weight: 700;
}

.dg-notes__key {
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.7rem;
}

/* Keyed callouts inside the SVG, matching .dg-notes__key */
.dg-key circle {
  fill: var(--gold);
}

.dg-key text {
  fill: var(--charcoal);
  font-size: 11px;
  text-anchor: middle;
}

/* Vapor movement. Charcoal, not gold: gold on the tan brick body loses
   too much contrast to read as a direction. */
.dg-flow path {
  stroke: var(--charcoal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.8;
}

/* The bar the blocked arrows stop against, under the coating film. */
.dg-flow .dg-stop {
  stroke-width: 3.5;
  opacity: 1;
}

/* Blend elevations: three panels of the same wall, side by side, because an
   architect compares rather than clicks through. No JS, nothing hidden. */
.content .wall-set,
.wall-set {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.wall-set .wall-step {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wall-set .wall-step::before {
  display: none;
}

.wall-step__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--w-head);
  color: var(--charcoal);
}

.wall-step__num {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--gold);
  border-radius: 2px;
  font-size: 0.72rem;
}

.dg--wall {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--white);
}

.wall-step__note {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* A photograph standing in for the claim right above it. */
.spec-proof {
  margin: 1.75rem 0 2rem;
}

.spec-proof .ba-slider {
  max-width: 560px;
  margin-left: 0;
}

.spec-proof__caption {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 12px 0 0;
  max-width: 60ch;
}

@media (min-width: 700px) {
  .content .dg-cols,
  .dg-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .content .wall-set,
  .wall-set {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 768px) {
  .spec-figure {
    margin-top: 2.75rem;
  }

  .spec-figure__frame {
    padding: 28px 28px 24px;
  }
}

/* ==========================================
   SUBSTRATE STRIP (/services "What we stain")
   Rebuilt Aug 31 2026 (Vazul: six mini-sections
   with a lot of text, and the boxed subhead
   above them looked wrong). Each substrate is
   now a thin gold line mark drawn from the
   brand brick glyph plus its name, with the
   detail line behind a disclosure so the row
   reads as a spec strip. Mechanics match
   .stats-bar .stat: inline expand on tap below
   1024, floating card on hover at 1024 and up
   where the six-across row leaves no room.
   Motif rule (docs/10): line only, gold on
   stone, never a dominant graphic.
   ========================================== */
.substrate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 4px;
  margin-top: 1.75rem;
}

.substrate {
  position: relative;
}

.substrate__trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 18px 8px 14px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.substrate__trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.substrate__mark {
  display: block;
  width: 44px;
  height: 32px;
  color: var(--gold);
  transition: color 0.2s ease, transform 0.2s ease;
}

.substrate__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The h3 only carries the outline (WAI-ARIA accordion pattern: heading wraps
   the button). All of the type lives on the label inside. */
.substrate__name {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* Two lines reserved so "Manufactured & Cast Stone" does not push its own
   chevron below the ones on the single-word tiles beside it. */
.substrate__label {
  display: block;
  min-height: 2.6em;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.substrate__hint {
  display: block;
  width: 13px;
  height: 13px;
  color: #BDB7AC;
  transition: color 0.2s ease, transform 0.2s ease;
}

.substrate.open .substrate__hint {
  color: var(--gold-hover);
  transform: rotate(180deg);
}

/* Below 1024 the grid has room, so the detail expands inline under the tile. */
.substrate__detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.substrate.open .substrate__detail {
  max-height: 200px;
}

.substrate__detail p {
  margin: 0;
  padding: 2px 12px 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

@media (min-width: 600px) {
  .substrate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .substrate-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 2rem;
  }

  .substrate__trigger {
    padding: 20px 6px 16px;
  }

  .substrate__label {
    font-size: 0.88rem;
  }

  /* Six across leaves no room to push a paragraph in, so the detail floats
     as a card under the tile. Same geometry as .stat__detail. */
  .substrate__detail {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 250px;
    margin-left: -125px;
    max-height: none;
    background-color: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(29, 29, 29, 0.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 30;
  }

  .substrate:first-child .substrate__detail {
    left: 0;
    margin-left: 0;
  }

  .substrate:last-child .substrate__detail {
    left: auto;
    right: 0;
    margin-left: 0;
  }

  .substrate__detail p {
    padding: 14px 16px;
  }

  /* Keyboard reveal only. NOT :focus-within, which also matches the focus a
     mouse click leaves behind and pinned the card open after the pointer had
     moved away (Vazul, Aug 31 2026). :focus-visible does not match a mouse
     click, so on desktop this is hover on, hover off, and nothing else.
     :has() is needed because the heading wraps the button, which leaves the
     detail outside the trigger's sibling chain. */
  .substrate.open .substrate__detail,
  .substrate:has(.substrate__trigger:focus-visible) .substrate__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .substrate__trigger:hover {
    background-color: var(--white);
    border-color: var(--hairline);
    transform: translateY(-2px);
  }

  .substrate__trigger:hover .substrate__mark {
    color: var(--gold-hover);
    transform: scale(1.06);
  }

  .substrate__trigger:hover .substrate__hint {
    color: var(--gold-hover);
  }

  .substrate:hover .substrate__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .substrate__trigger,
  .substrate__mark,
  .substrate__hint,
  .substrate__detail {
    transition: none;
  }

  .substrate__trigger:hover {
    transform: none;
  }

  .substrate__trigger:hover .substrate__mark {
    transform: none;
  }
}

/* ==========================================
   PORTFOLIO BAND (Vazul, Sep 1 2026)
   ==========================================
   Homepage "Our Portfolio" section, built from the Nawkaw portfolio band he
   supplied as the reference: eyebrow, headline and lead on the left, a ruled
   aside on the right carrying the one link out, then a row of project cards
   underneath.

   Where ours deliberately parts company with theirs: their card is a photo and
   a name, which asks to be taken on faith. Ours carries the receipt the whole
   brand rests on, a badge for the kind of job and a record line stating what
   was photographed and when, because "photographed, revisited, re-photographed"
   is the format /case-studies is built around (docs/08).

   Card count is not fixed. The grid is auto-fit with a 420px floor, so it runs
   two up today and three up the moment a third documented project has real
   photographs to stand on (RUNNING-CHANGES: the commercial photo gap).

   White ground, sitting between the light-band services fork above and the coal
   product band below, so the page steps light, white, dark through the whole
   proof spine. This is the docs/05 slot-4 position the case-study teasers were
   specified for in the first place.
   ========================================== */
.portfolio-band {
  background-color: var(--white);
  padding: 88px 0;
}

.portfolio-band .section-label {
  text-align: left;
}

.portfolio-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  /* The head no longer floats above the cards, it sits on a rule that the
     cards hang from. Structure is most of what reads as enterprise here:
     one horizontal datum across the full container, every card top aligned
     to it, every card bottom rule parallel to it. (Vazul, Sep 2 2026.) */
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.portfolio-head h2 {
  margin-bottom: 0;
}

.portfolio-head__lead {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* The link out. Underlined on the baseline rather than boxed, so the two
   gold buttons already on this page (key band, contact band) keep their
   weight and this reads as navigation, not a third ask. */
.portfolio-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.portfolio-explore svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.portfolio-explore:hover,
.portfolio-explore:focus-visible {
  color: var(--gold-hover);
  border-bottom-color: var(--gold-hover);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* 38px, and the number is arithmetic, not taste. THE CONTENT ROW IS 1300, NOT
     1332 (fixed Sep 2 2026, Vazul: the three cards "seem a little bit blurry").
     .container is 24px of padding at line 150 but the 1024px block at line 3424
     overrides it to 40px, so on every desktop the row is 1380 - 80 = 1300. This
     gutter was 36 on the belief that the row was 1332, which put the column at
     (1300 - 72) / 3 = 409.328px while every rung and every sizes in the band
     still said 420. Two things came out of that, and both of them read as blur:
     the browser resampled a 420 file into a 409.33 box at 1.03x, which is inside
     the 1.0x-2.0x band where Chromium uses plain bilinear with no mipmap
     (docs/13), and the column was FRACTIONAL, so at DPR2 the box was 818.656
     device pixels and cards two and three started on half a pixel. A photograph
     composited at a sub-pixel offset resamples no matter how many pixels you
     feed it, which is why the lightbox looked sharp and the cards did not.
     38 makes it exact: (1300 - 76) / 3 = 408 on the nose, offsets 0 / 446 / 892,
     all integers at DPR1 and at DPR2. 408 rather than a rounder 412 because
     commercial-brick-precast-corner is 1534x1025 and its 4:5 crop tops out at
     820 wide, so 816 is the largest 2x rung all three photographs can serve
     natively. The column has to stay a multiple of 4 so the 4:5 height is a
     whole number at both densities. If this gutter ever moves again, recut the
     rungs in the portfolio block of scripts/optimize-fit-crops.sh with it.
     THE EARLIER 24px EXPERIMENT still stands as answered: Vazul ruled the width
     stays as it was ("the width can stay the same for those three photos"), and
     going 36 -> 38 takes 1.3px off a card, which is not a width change. Real
     width needs two cards per row or a wider container for this one band. */
  gap: 44px 38px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.portfolio-card__media {
  position: relative;
  margin: 0 0 18px;
  /* 408x510 at >=1380px, a 4:5 portrait box (Vazul, Sep 2 2026, off the shape
     options board at claude.ai/code/artifact/f4b2580b-ab9a-402c-97c7-89836612ba67).
     THE STEP THIS REPLACES IS WORTH KEEPING, because the obvious instinct is to
     go back to it: the box was briefly 420x364, which is "30% taller" than the
     original 420x280 and is exactly what he first asked for. It reads as a
     SQUARE. A 3:2 frame sits only 30% away from square to begin with, so +30%
     spent the entire distance and landed at 1.154:1, 15% off square. Height on
     this box is not a dial you nudge; it is either a landscape rectangle or a
     portrait one, and the middle reads as a mistake. 4:5 is the first stop that
     is unambiguously portrait.
     THE RUNGS WERE RECUT FOR THIS and had to be: 4:5 at 2x wants 1020 device
     pixels of height and the old 3:2 rungs topped out at 744. See the portfolio
     block in scripts/optimize-fit-crops.sh for the ladder.
     They were recut a SECOND time on Sep 2 2026, to 408x510 and 816x1020, when
     the 420 this box was believed to be turned out to be 409.328. All three now
     sit at a true 2x with nothing upscaled. The gutter note above has the whole
     story; the short version is that the content row is 1300, not 1332. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--charcoal-2);
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* The category badge moved OFF the meta row and ONTO the photograph, which is
   the single change that does most of the work here. Three cards abreast put
   three gold pills in a row directly under three photographs, and the row of
   pills read louder than the photographs did. On the image it is a caption
   instead of a label, the type stack underneath collapses to one small-caps
   receipt line and a title, and the band gets quieter as it gets fuller.
   This is chrome ON a photo, never a clip OF one: the corner-cut rule
   (docs/10) is untouched, exactly as .ba-chip is on the case study pages. */
.portfolio-card__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 14px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* THE CARD IS A PHOTOGRAPH AND A TITLE, NOTHING ELSE (Vazul, Sep 2 2026: "get
   rid of the subtext under each photo. Just have the title there"). The record
   line (.portfolio-card__record, the small-caps "Photographed again 25 years
   on") and the description paragraph (.portfolio-card__desc) both came out of
   the markup, and their rules came out of here with them. The badge is
   untouched: it sits ON the photograph, so it is not subtext.
   READ THIS BEFORE PUTTING EITHER BACK. The record line was a deliberate
   differentiator, and the band's own lead paragraph still argues for it in as
   many words: "A case study is not a photo and a headline." The cards are now
   exactly a photo and a headline. That tension is real, it is flagged in
   RUNNING-CHANGES.md, and it is a COPY decision for Kate's review pass, not
   something a later sweep should quietly resolve by restoring the line. */
.portfolio-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  /* Inherits the description's old spacer job: with the paragraph gone the
     title is the only flexible child, so it has to be the thing that stretches
     or the closing rules stop lining up the moment one title wraps to two lines
     and its neighbours do not. That is exactly the ragged-bottom look the rule
     below exists to prevent. */
  flex: 1 1 auto;
  font-size: 1.3rem;
  line-height: 1.28;
  margin: 0 0 18px;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.portfolio-card__title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--gold-hover);
  transition: transform 0.2s ease;
}

/* The card closes on a rule rather than on ragged text. Three cards of
   different description lengths ended three different distances down the
   page, which is the thing that reads as a blog roll instead of a portfolio.
   The body is pushed apart so the rules line up across the row whatever the
   copy does, and the rule itself is the hover affordance: a gold line wipes
   across it from the left. */
.portfolio-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.portfolio-card__rule {
  position: relative;
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}

.portfolio-card__rule::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.portfolio-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* THE ORPHAN RULE, and it is the reason this band does not fall apart
     between 768 and 1200. Three cards in two columns leaves the last one
     alone in the left cell with half a row of white beside it, which is the
     single most unfinished-looking state the section can be in and it covers
     every tablet and small laptop. So an odd last card stops being a column
     and becomes a full-width horizontal entry: photograph left, text right,
     same parts in a different arrangement.

     :last-child:nth-child(odd) is the whole test. It fires only when the last
     card also sits in an odd position, which in a two-column grid is exactly
     the definition of orphaned. Add a fourth card and it stops matching on its
     own, with nothing to remember. */
  .portfolio-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 36px;
  }

  /* The horizontal orphan card keeps the ORIGINAL 3:2 box. The +30% height the
     three-up cards gained (Vazul, Sep 2 2026) is right for a photograph sitting
     ABOVE its text and wrong for one sitting BESIDE it: in the 5fr/6fr split a
     taller box outruns the copy column and reopens the white gap on the right
     that this whole orphan rule exists to close. Verified at 1024. */
  .portfolio-card:last-child:nth-child(odd) .portfolio-card__media {
    margin-bottom: 0;
    aspect-ratio: 3 / 2;
  }

  /* The rule under the text would hang in mid-air next to a photograph that is
     taller than the copy, so the horizontal card drops it (below) and closes on
     the title instead. With the rule gone the title's bottom margin has nothing
     under it, so it comes off here too. */
  .portfolio-card:last-child:nth-child(odd) .portfolio-card__title {
    margin-bottom: 0;
  }

  .portfolio-card:last-child:nth-child(odd) .portfolio-card__rule {
    display: none;
  }
}

/* Three abreast once each card can hold its title on two lines and its
   description on four. At the 1380 container the box is the 408 the rungs are
   cut for; between 1200 and 1380 it is (100vw - 156) / 3, which is what the
   sizes attribute on each card states. Above here the orphan rule above never
   fires, because three cards fill three columns exactly. */
@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-card:last-child:nth-child(odd) {
    display: flex;
    grid-column: auto;
    gap: 0;
  }

  /* Rejoining the three-up grid means taking the tall box back off the 768 rule
     above, which still matches at this width. Both properties have to be
     restored here, not just the margin. */
  .portfolio-card:last-child:nth-child(odd) .portfolio-card__media {
    margin-bottom: 18px;
    aspect-ratio: 4 / 5;
  }

  .portfolio-card:last-child:nth-child(odd) .portfolio-card__title {
    margin-bottom: 18px;
  }

  .portfolio-card:last-child:nth-child(odd) .portfolio-card__rule {
    display: block;
  }
}

@media (min-width: 900px) {
  .portfolio-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 56px;
  }

  .portfolio-head__aside {
    padding-left: 56px;
    border-left: 1px solid var(--hairline);
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .portfolio-card:hover .portfolio-card__title {
    color: var(--gold-hover);
  }

  .portfolio-card:hover .portfolio-card__title svg {
    transform: translate(3px, -3px);
  }

  /* Slow and small on purpose. The photographs are the proof on this band, so
     the motion has to read as the card waking up rather than as the picture
     moving. 1.04 over half a second, on the same easing as the rule wipe. */
  .portfolio-card:hover .portfolio-card__media img {
    transform: scale(1.04);
  }

  .portfolio-card:hover .portfolio-card__rule::after,
  .portfolio-card:focus-visible .portfolio-card__rule::after {
    transform: scaleX(1);
  }

  .portfolio-explore:hover svg {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card__title svg,
  .portfolio-card__media img,
  .portfolio-card__rule::after,
  .portfolio-explore svg {
    transition: none;
  }

  .portfolio-card:hover .portfolio-card__title svg,
  .portfolio-card:hover .portfolio-card__media img,
  .portfolio-explore:hover svg {
    transform: none;
  }
}

/* ---------- Case study pages: two-frame photo sets ----------
   The individual case study pages reuse the key band's .proof-timeline
   component. It is hard-wired to three columns, which is right for a
   before / after / revisit set; a before/after pair gets two. */
@media (min-width: 768px) {
  .proof-timeline--pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Two frames at full container width. Vazul, Sep 2 2026: "enlarge every single
   one of the existing images, so that they're a much bigger part of the case
   study." The base component caps at 1040px and runs three across, which gives
   a 325px frame; dropping the cap to the 1200px container and going two across
   gives 584. That is 1.80x the width and 3.2x the area, and it is the largest
   the set can go without upscaling the 1172px 2005 close-up (see the note in
   scripts/optimize-fit-crops.sh).

   THE RAIL AND ITS NODES COME OFF, and not only for looks. The node is absolutely
   positioned at top: -30px inside each .proof-step, which lands it on the rail
   only for frames in the first row. The 2019 set is four frames in two rows, so
   the second row would have drawn two gold dots floating in the row gap with no
   rail behind them. Killing it is also the honest call: the rail draws a
   sequence, and once the page splits into a 2005 block and a 2019 block the
   frames inside each block are views of one visit, not steps through time. The
   two blocks carry the sequence now, and their headings say so.

   Column gap stays 32 because the 584px box and its 1168px rung are computed
   from it. Row gap is free, so it runs wider. */
@media (min-width: 768px) {
  .proof-timeline--wide {
    grid-template-columns: repeat(2, 1fr);
    /* 1204, NOT the full 1300 container, and the number is set by the archive
       rather than by taste. The 2005 close-up is the smallest frame in the file
       at 1172x1167; a 4:3 crop of it is 1172x879 and that is every pixel it
       has. Two 586px boxes plus the 32px gutter is 1204, which makes 1172 an
       exact 2x rung. Filling the container instead would put the box at 634,
       need 1268, and upscale that one frame by 1.08x, which is the aliasing
       band docs/13 exists to keep photographs out of. Widen this only when a
       bigger 2005 close-up exists, and there is not one: it is the only close
       shot in their 2005 set. */
    max-width: var(--band-max, 1204px);
    margin-inline: auto;
    gap: 44px 32px;
    padding-top: 0;
  }

  .proof-timeline--wide::before,
  .proof-timeline--wide .proof-step::before {
    content: none;
  }
}

/* One frame, not a set. /case-studies/commercial-facade-precast documents a
   finished facade with no before state, so it gets a single centred frame at
   the photo's own 3:2 rather than the 4:3 the timeline crops sets to.
   THE 750px CAP IS NOT TASTE, it is the resolution rule in docs/13: the source
   is 1534px wide, so filling the 1040px case-study measure would mean upscaling
   and landing at 1.44x on a DPR1 desktop, in the middle of the aliasing band.
   At 750 the single rung is a true 2x at both ends. Do not widen this without
   a wider photograph. */
.proof-timeline--single {
  /* 800 to match .content--center, which is the text measure directly below it.
     At 750 the frame sat just inside the paragraphs on both sides and read as a
     misalignment. The rung cost of matching is in optimize-fit-crops.sh. */
  max-width: 800px;
  margin-inline: auto;
  /* The base component hard-wires three columns above 768 and draws a rail with
     a gold node over each frame. One frame in that grid lands in column one at
     a third of the width, under a rail running off to two empty cells. All
     three have to come off: the column count, the rail, and the node. */
  grid-template-columns: 1fr;
  padding-top: 0;
}

.proof-timeline--single::before,
.proof-timeline--single .proof-step::before {
  content: none;
}

.proof-timeline--single .proof-step__media {
  aspect-ratio: 800 / 534;
}

/* ---------- /case-studies index: cards that now go somewhere ----------
   Two of the three entries have their own page as of Sep 1 2026. The base
   `a` rule is colour:inherit with no underline, so a linked title would be
   indistinguishable from the unlinked one still sitting beside it. Gold on
   hover plus a trailing arrow is the affordance; the third card keeps a
   plain heading, which is now a meaningful difference rather than an
   inconsistency. */
.case-study-card__body h2 a {
  color: inherit;
  transition: color 0.2s ease;
}

.case-study-card__body h2 a::after {
  content: '\2192';
  display: inline-block;
  margin-left: 10px;
  color: var(--gold-hover);
  transition: transform 0.2s ease;
}

.case-study-card__body h2 a:hover,
.case-study-card__body h2 a:focus-visible {
  color: var(--gold-hover);
}

@media (min-width: 1024px) and (hover: hover) {
  .case-study-card__body h2 a:hover::after {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-card__body h2 a::after {
    transition: none;
  }

  .case-study-card__body h2 a:hover::after {
    transform: none;
  }
}

/* The two published entries carry a one-line summary; the unpublished one
   still has nothing true to say, so it keeps a bare heading. */
.case-study-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================
   HEADER CTA (Vazul, Aug 31 2026)
   The placeholder phone button is gone from
   the bar. Contact takes its place as the one
   header action, filled so it reads as a
   button rather than a sixth nav link.
   Navy, not gold: the hero's "Request a Quote"
   is gold, and a gold header button made the
   two near-twins with no hierarchy between
   them (compared side by side in
   design-review/navcta-*.png). Navy keeps the
   gold ration at three above the fold, per the
   gold discipline rule in docs/05.
   ========================================== */
.nav-cta-mobile {
  background-color: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta-mobile:hover {
  background-color: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--white);
}

@media (min-width: 1024px) {
  /* Extra air so the button reads as separate from the link row,
     not as the last item in it. */
  .nav-item--cta {
    margin-left: 12px;
  }

  .nav-item--cta > a {
    display: inline-flex;
    align-items: center;
    background-color: var(--navy);
    border: 1px solid var(--navy);
    color: var(--white);
    padding: 11px 34px;
    border-radius: 2px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .nav-item--cta > a:hover {
    background-color: var(--navy-hover);
    border-color: var(--navy-hover);
    color: var(--white);
  }
}

/* The link row hides its focus ring behind a colour change; a filled
   button needs a real one, and navy-on-navy would not show. */
.nav-item--cta > a:focus-visible,
.nav-cta-mobile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Phones: the bar is logo + CTA + hamburger with no room to spare, and it
   was already overflowing slightly with the old "Call" button (the logo has
   white-space: nowrap, so it silently spilled under it rather than wrapping).
   "Contact" is the wider word, so the lockup gives back the difference. The
   logo subtitle sets the logo's width here, not the wordmark: it is the
   0.24em tracking that makes it the longer line. */
@media (max-width: 479px) {
  .nav-container {
    padding: 0 16px;
    gap: 10px;
  }

  /* PHONES RUN THE STACKED LOCKUP, and this is the one real cost of moving to
     the brand's own artwork. The single-line wordmark is all caps, caps are
     wide, and at any legible size it runs under the Contact button below about
     768px. The stacked lockup (BRAMWELL over diamond MCKAY) is an official
     lockup on the brand sheet, so this is a brand-sanctioned swap rather than
     a compromise we invented, and <picture> means the desktop file is never
     downloaded here.
     THE SUBLINE COMES OFF WITH IT. Under a 146px-wide stacked block, BRICK &
     MASONRY STAINING would have to set at about 7px to justify, which is not
     readable. Flagged for Vazul in RUNNING-CHANGES; the alternative is keeping
     the old mixed-case CSS lockup on phones, which fits but stops matching the
     real logo. Verified by screenshot at 390, 360 and 320. */
  .nav-logo {
    --lockup-h: 40px;
  }

  /* The stacked artwork is 3.64:1 rather than 13.6:1, so it takes the full
     lockup height instead of the single line's 0.586 of it. */
  .nav-logo__name {
    height: var(--lockup-h);
  }

  .nav-logo .logo-sub {
    display: none;
  }

  .nav-cta-mobile {
    padding: 7px 13px;
    font-size: 0.85rem;
  }
}

/* 320px still ran the lockup under the button. That overflow predates this
   change, but the old ghost button was transparent so the logo showed
   through it and read as merely tight; a filled button turns the same
   overflow into a hard clip. So the narrowest phones get one more step
   down rather than a clipped brand name. */
/* Widened 359 -> 389 on Sep 1 2026 with the call-4 lockup. The longer subline
   and the taller (height-driven) logomark together added about 20px to the
   brand block, and 360 to 389 was the band where the name line ran under the
   Contact button. 390 still fits on the 767px step and is left there. */
@media (max-width: 389px) {
  .nav-container {
    padding: 0 12px;
    gap: 8px;
  }

  .nav-logo {
    --lockup-h: 36px;
  }

  .nav-cta-mobile {
    padding: 6px 11px;
    font-size: 0.8rem;
  }

  .nav-hamburger {
    padding: 8px 4px;
  }
}

/* One more step for the 320px class of phone. The 389px step above holds down
   to about 340; below that the longer call-4 subline puts the name line back
   under the Contact button. Same principle as the step above: shrink the
   lockup rather than let it clip. */
@media (max-width: 339px) {
  .nav-logo {
    --lockup-h: 32px;
  }
}

/* The bar is space-between with three children, which strands the CTA in
   open space on tablets. It belongs beside the hamburger. No effect on
   phones, where there is no free space to absorb. */
@media (max-width: 1023px) {
  .nav-cta-mobile {
    margin-left: auto;
  }
}

/* Homepage hero CTA in brand navy (Vazul, Sep 1 2026). Scoped to the
   homepage hero, every other Request a Quote on the site is still gold. */
.hero-full__ctas .btn-primary {
  background-color: var(--white);
  color: var(--navy);
}

/* Vazul, Sep 2 2026: the arrow-reveal animation is gone and this button now
   behaves exactly like the Explore Colors button in the product band, a plain
   fill inversion on the base .btn 0.2s transition. So the hover inverts to
   navy again and the colour is the feedback. */
.hero-full__ctas .btn-primary:hover,
.hero-full__ctas .btn-primary:focus-visible {
  background-color: var(--navy);
  color: var(--white);
}

/* ==========================================
   MECHANISM SPLIT + CONDITIONS BAND (services page)
   ==========================================
   Vazul, Sep 1 2026: "How the system works" and "The limits, stated
   plainly" were a 760px .content column of bullets in a 1440px page,
   so the right half sat empty and the block read like a document.
   Option C of three rendered mockups was picked.

   The mechanism now runs as a split: a drawn cross-section of the wall
   on one side, the five claims as a ruled list on the other. The limits
   become a navy data band, because four of them are numbers we can
   state outright. Copy is the approved wording, unchanged.

   The diagram is an illustration and is captioned as one. It is not a
   photo of real work and must never be presented as one (hard rule,
   handoff/CLAUDE.md). It is inline SVG for the same reason the
   substrate marks are: no extra request, no CSP surface. */
.mechanism-section {
  padding: 64px 0;
  background: var(--white);
}

.mechanism-section .section-label,
.conditions-band .section-label {
  text-align: left;
}

.mechanism-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.mechanism-head p {
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
}

.mechanism-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.mechanism-figure {
  background: var(--light-band);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 24px 22px 20px;
  margin: 0;
  /* Caps the drawing between the 940px breakpoint and the split, where
     the figure would otherwise run the full container width. */
  max-width: 640px;
}

/* The two panels stack on phones. Side by side in one 520-unit drawing,
   the in-panel labels fell to about 7px at 390px wide. */
.xsec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.mechanism-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 480px) {
  .xsec {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.mechanism-figure figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* The claim list. Rules top and bottom of every row, no bullet: the
   gold square marker belongs to prose lists, this is a spec strip. */
.mechanism-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mechanism-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.mechanism-list li:first-child {
  border-top: 1px solid var(--hairline);
}

.mechanism-list strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--charcoal);
  display: block;
  margin-bottom: 4px;
}

.mechanism-list span {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- The limits as a navy data band ---------- */
.conditions-band {
  padding: 60px 0 64px;
  background: var(--navy);
}

.conditions-band h2 {
  color: var(--white);
}

.conditions-band .section-label {
  color: var(--gold);
}

.conditions-band .mechanism-head p {
  color: #BFC6D6;
}

/* 1px gap over a lighter ground draws the rules between cells, so the
   grid reads as a table without a table's markup. */
.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #334060;
  border: 1px solid #334060;
}

.condition {
  background: var(--navy);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.condition__key {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.condition__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.condition__note {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #BFC6D6;
  margin: 0;
}

.conditions-links {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #334060;
}

.conditions-links .related-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
}

.conditions-links .related-links a {
  color: var(--white);
}

.conditions-links .related-links a::before {
  color: var(--gold);
}

.conditions-links .related-links a:hover,
.conditions-links .related-links a:focus-visible {
  color: var(--gold);
}

@media (min-width: 700px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 940px) {
  .mechanism-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .conditions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Header: full-spread link set (Vazul, Sep 1 2026, option C off the
   nav options board). The bar was tuned for a 1200 container, logo hard left
   and everything else hard right, so widening to 1380 opened about 400px of
   dead air between the logo and the first label and the whole thing read
   right-heavy. The link set now takes the entire middle and distributes
   evenly, so the full width is used and no gap is bigger than any other.

   GAP GOES TO 0 ON PURPOSE, and this is the part that is easy to undo by
   accident: with a gap still set, space-evenly distributes only what is LEFT
   after the gaps, so the two shoulders end up exactly one gap narrower than
   the spaces between labels, and the first and last links drift toward the
   logo and the CTA. Zero gap makes all six spaces equal, which is the whole
   point of this layout. If someone puts the gap back, the drift comes back.

   Labels also go 0.9375rem -> 1.02rem with a little more tracking. That was
   the "bigger text" half of the same request and it is independent of the
   layout, so it lives in its own block below. ---------- */
@media (min-width: 1024px) {
  .nav-links {
    flex: 1;
    gap: 0;
    justify-content: space-evenly;
  }
}

@media (min-width: 1200px) {
  .nav-links a,
  .nav-drop-btn {
    font-size: 1.02rem;
    letter-spacing: 0.03em;
  }

  .nav-cta-mobile {
    font-size: 0.97rem;
    padding: 10px 20px;
  }
}

/* ============================================================
   PROOF GRID  (Sep 1 2026, operator)
   Replaces the four-tile .stats-bar on the homepage. The old
   section answered durability four times; this one answers five
   different objections and every card carries a source link,
   which is the thing the competitor's equivalent section cannot
   do. Layout chosen off a rendered options board: big cards,
   four across, copy trimmed to one sentence. A carousel and a
   click-to-expand variant were built and rejected, both because
   they hide half an argument behind an interaction the architect
   Kate routes here will not make.
   Register note: the BIA is glossed ONCE in the section lead, so
   the cards can stay tight. Do not repeat the gloss per card.
   ============================================================ */
.proofgrid {
  background: var(--white);
  padding: 64px 0 52px;
}

/* Header is LEFT aligned, matching the rendered board the layout was picked
   from. .section-label centres by default, so both new bands opt out. */
.proofgrid .section-label,
.recordrow .section-label {
  text-align: left;
}

.proofgrid__lead {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 64ch;
}

/* ---------- Proof carousel (Vazul, Sep 1 2026, correcting the static grid
   an earlier build shipped). Four cards visible at a time, square controls,
   and a real horizontal scroller underneath so drag and swipe work with or
   without the buttons. Without JS the nav stays hidden and the track is a
   plain overflow scroller, so they all remain reachable. ---------- */
.proofcar {
  margin-top: 34px;
}

.proofcar__vp {
  /* Containing block for the cards' absolute .sr-only spans. Without it they
     escape the overflow clip and the off-screen cards widen the whole
     homepage, so it scrolls sideways (Vazul, Oct 6 2026). */
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--hairline);
  scroll-snap-type: x mandatory;
  /* Buttons and swipe are the interface; the bar itself is noise. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.proofcar__vp::-webkit-scrollbar {
  display: none;
}

.proofcar__vp:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .proofcar__vp {
    scroll-behavior: smooth;
  }
}

.proofcar__track {
  display: flex;
  align-items: stretch;
}

/* ---------- LOOP MODE (Vazul, Sep 1 2026: "move just one at a time instead,
   looping continuously as a carousel, going through 7, 8, and then back to 1").
   Added by the script, never present in the served HTML, and that split is the
   point: the base rules above leave a native horizontal scroller, so a reader
   with no JS still reaches every card by swiping. Once the script runs the row
   becomes transform-driven instead, because a real infinite loop moves the
   cards in the DOM and scrollLeft fights that (rotating a node out from under
   a scroll position makes the row jump).
   Same rotation mechanism as the testimonial carousel further up this file, so
   fix bugs in both. ---------- */
.proofcar__vp.is-loop {
  overflow: hidden;
  scroll-snap-type: none;
}

.proofcar__vp.is-loop .proofcar__track {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .proofcar__vp.is-loop .proofcar__track {
    transition: none;
  }
}

.proofcar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.proofcar__nav[hidden] {
  display: none;
}

/* Was two fixed 34px dots when this paged four at a time. Stepping by one means
   one dot per card, so they have to fit next to the count and the arrows at
   390px however many cards there are. They share the leftover space and cap at
   the original 34px, rather than overflowing the nav row. */
.proofcar__dots {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 340px;
}

.proofcar__dots button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 34px;
  height: 4px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--hairline);
  transition: background-color 0.2s ease;
}

.proofcar__dots button[aria-current="true"] {
  background: var(--gold);
}

.proofcar__dots button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.proofcar__count {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.proofcar__arrows {
  display: flex;
  gap: 10px;
}

/* Square on purpose. The round .testimonial-arrow is a different control on
   a different kind of set; this is the one drawn on the board. */
.proofcar__arrow {
  width: 46px;
  height: 46px;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.proofcar__arrow svg {
  width: 17px;
  height: 17px;
}

.proofcar__arrow:hover:not(:disabled),
.proofcar__arrow:focus-visible {
  border-color: var(--navy);
  color: var(--navy);
}

.proofcar__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.proof-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.proof-item__n {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.proof-item h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: var(--w-head);
  letter-spacing: -0.008em;
  line-height: 1.22;
  color: var(--charcoal);
  margin: 0;
}

.proof-item p {
  font-size: 0.92rem;
  line-height: 1.56;
  color: var(--ink-soft);
  margin: 0;
}

.proof-item__src {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.proof-item__src a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 43, 73, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

.proof-item__src a:hover,
.proof-item__src a:focus-visible {
  border-bottom-color: var(--navy);
}

.proof-item__src .ext {
  display: inline-block;
  margin-left: 3px;
  opacity: 0.55;
  font-size: 0.68rem;
}

/* SOURCE STRIP DELETED (Vazul, Sep 1 2026): "Remove that horizontal line, all
   the links, and the 'where all this comes from' part. We already have that in
   each item horizontally." The .proofgrid__sources rules went with the markup
   rather than being left dead in the sheet, because he ruled it out rather than
   parked it. If a source strip is ever wanted again it belongs at the foot of a
   commercial page, and it should be rebuilt against that page's layout.

   NEVER GUTTER THESE BY nth-child (Vazul, Sep 2 2026: "the text keeps
   realigning and readjusting"). That is exactly what an earlier build did, and
   it is why this section wobbled on every click: the loop moves cards through
   the DOM, so nth-child is VISUAL position, and the card that was flush at slot
   four picked up a 30px gutter the moment it rotated to slot three. Outer width
   never changed, so the slide distance was fine, but the CONTENT box got 30px
   narrower and the copy rewrapped, one heading or one source line jumping to a
   second row and shoving the card heights with it.
   THE RULE NOW: every card carries the SAME padding-right in a given
   breakpoint, so a card wraps identically in all four slots and the row is
   static through a full rotation. The gutter is paid for by an overwide basis
   instead, N x (100%/N + 30px/N) = 100% + 30px, which keeps the columns exactly
   30px apart, keeps the last one flush with the container edge, and lets the
   trailing gutter fall off the end where .is-loop's overflow:hidden clips it.
   Anything added here later must stay position-independent for the same
   reason. */
@media (min-width: 640px) {
  /* Two in view: 2 x (50% + 15px) = 100% + 30px. */
  .proof-item { flex-basis: calc(50% + 15px); padding-right: 30px; }
}

@media (min-width: 1024px) {
  .proofgrid { padding: 76px 0 60px; }
  /* Four in view, the board's layout: 4 x (25% + 7.5px) = 100% + 30px. */
  .proof-item { flex-basis: calc(25% + 7.5px); }
}

/* ============================================================
   COLOR STEPS  (Vazul, Sep 1 2026)
   The four-step "how your color is decided" sequence on /colors. Type scale,
   gold tabular number and hairline rules are lifted from .proof-item on
   purpose: that is the card language he picked off the decisions board for the
   homepage proof carousel, and this is the same kind of object, so it should
   not invent a second one. It is NOT built on .proof-item itself, because those
   rules are welded to the carousel's flex-basis paging.
   Deliberately not the old .process-step either: that component drew round gold
   badges and this page's neighbours went square on Sep 1 2026, so reusing it
   would have reintroduced the circle the operator just removed sitewide. It was
   deleted outright on Sep 2 2026 when the process sections went to .proc-panel.
   Semantic <ol>, because unlike the proof cards these four are ordered and the
   order is the whole point. list-style is off; the numbers are drawn.
   ============================================================ */
.color-steps {
  background: var(--white);
  padding: 64px 0 52px;
}

.color-steps .section-label {
  text-align: left;
}

.color-steps__lead {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 64ch;
}

.color-steps__list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}

.color-step {
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.color-step__n {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.color-step h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: var(--w-head);
  letter-spacing: -0.008em;
  line-height: 1.22;
  color: var(--charcoal);
  margin: 0;
}

.color-step p {
  font-size: 0.92rem;
  line-height: 1.56;
  color: var(--ink-soft);
  margin: 0;
}

/* The facts rescued from the prose this section replaced. Quieter than a step,
   because it is a footnote to the sequence rather than a fifth item in it. */
.color-steps__note {
  margin-top: 24px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 72ch;
}

.color-steps__note a {
  color: var(--navy);
}

@media (min-width: 640px) {
  /* Two across. 2n is the right-hand step of each pair, so it drops its gutter
     to keep the row flush with the container edge. Same rule as .proof-item. */
  .color-steps__list { grid-template-columns: repeat(2, 1fr); }
  .color-step { padding-right: 30px; }
  .color-step:nth-child(2n) { padding-right: 0; }
}

@media (min-width: 1024px) {
  .color-steps { padding: 76px 0 60px; }
  /* Four across, the board's layout. 4n is the flush one now and 2n gets its
     gutter back. */
  .color-steps__list { grid-template-columns: repeat(4, 1fr); }
  .color-step:nth-child(2n) { padding-right: 30px; }
  .color-step:nth-child(4n) { padding-right: 0; }
}

/* ============================================================
   RECORD ROW  (Sep 1 2026, operator)
   NAME COLLISION WARNING: the class is .recordrow__stat, NOT .record-stat.
   A .record-stat already exists in this stylesheet with background:
   var(--charcoal) for a dark band elsewhere, and the first build of this
   section used that name and rendered charcoal text on a charcoal ground
   with the numbers invisible. Do not rename it back.
   The 400 pulled out of the tiles and given its own moment. On
   its own the number is trivia; the BIA's line that documented
   history is the proof standard for this category is what makes
   it mean anything, so the lead carries that and never drops it.
   ============================================================ */
.recordrow {
  background: var(--white);
  padding: 8px 0 60px;
}

.recordrow__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--hairline);
}

.recordrow__stat {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.recordrow__fig {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.recordrow__fig .unit { color: var(--gold); }

.recordrow__stat h3 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: var(--w-head);
  color: var(--charcoal);
  margin: 10px 0 0;
  line-height: 1.3;
}

.recordrow__stat p {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .recordrow__grid { grid-template-columns: repeat(4, 1fr); }
  .recordrow__stat { padding: 24px 26px 24px 0; }
  .recordrow__fig { font-size: 2.4rem; }
}

/* ============================================================
   FINISH CHART  (Sep 1 2026, operator)
   Warranty term by FINISH TYPE, never by company. Naming a
   competitor breaks the docs/01 ban on competitor comparison and
   is exactly the "too salesy" read Kate warned about; the finish
   framing also generalises, which hits harder. Bars are class
   positions, NOT measurements: no perm figure is printed for our
   own product because none has ever been measured. Do not add
   one without a written source. See docs/08 and docs/12.
   ============================================================ */
.finishchart {
  background: var(--charcoal);
  padding: 32px 24px 28px;
  margin-top: 34px;
}

.finishchart h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--w-head);
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}

.finishchart__lead {
  margin: 9px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #B9B7AE;
  max-width: 62ch;
}

.finishchart__track {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finish-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
}

.finish-row__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.finish-row__label em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.76rem;
  color: #A3A199;
  margin-top: 3px;
  line-height: 1.4;
}

.finish-row__bar {
  height: 38px;
  background: #33332F;
  position: relative;
  overflow: hidden;
}

.finish-row__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.finish-row__fill--paint { width: 16%; background: #4A4943; color: #D6D4CC; }
.finish-row__fill--polymer { width: 36%; background: #6E6C61; color: #F2F0EA; }
.finish-row__fill--mineral { width: 100%; background: var(--gold); color: #241A08; }

.finishchart__cite {
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid #3A3A35;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #A3A199;
}

.finishchart__cite a { color: #D8B979; }

/* .content p a (0,2,1) beats a plain .finishchart__cite a, and on this page the
   chart sits inside .content, so the link rendered dark on the dark panel with
   only its underline visible. This selector outranks it. */
.finishchart p.finishchart__cite a {
  color: #D8B979;
  border-bottom-color: rgba(216, 185, 121, 0.55);
}

.finishchart p.finishchart__cite a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

@media (min-width: 720px) {
  .finishchart { padding: 38px 40px 32px; }
  .finish-row {
    grid-template-columns: 190px 1fr;
    gap: 20px;
  }
}

/* ============================================================
   SQUARE CONTROLS  (Sep 1 2026, operator: "check all the circle
   buttons across our site and make them square as well")
   Every pill and circle that is a BUTTON squares off. Decorative
   round things are deliberately untouched: the proof-step number
   badges, the chip-grid bullet dots, and the dl-status indicator
   dot, none of which are controls. (The process-step badge was on
   this list until Sep 2 2026, when that component was deleted.)
   ============================================================ */
.ba-nav,
.testimonial-arrow,
.lightbox__btn,
.footer-social a,
.gallery-filter,
.chip,
.dl-card .dl-status {
  border-radius: 0;
}

.ba-slider__knob { border-radius: 0; }

/* ============================================================
   COLOR BAND  (Sep 1 2026, operator)
   The homepage's answer to the competitor's color section, and
   deliberately NOT a copy of it. They publish a swatch catalog;
   our system has no chart, because the formula is mixed on site
   against the brick that is already there. site/colors.html has
   said so all along: "custom mixed, not picked from a chart."
   Building a swatch grid would mean inventing a palette that
   does not exist, so the section sells the absence instead.
   The four changes are the four already written on /colors.
   PHOTOS ONLY, NEVER GENERATED IMAGES (Kate's rule, and the hard
   rule in handoff/CLAUDE.md). The frames ship as obvious empty
   placeholders until her batch lands; do not fill them with
   stand-in photography from another project, because a card
   captioned "darker and richer" IS a claim about that photo.
   Treatment: hover or focus fades back to the before. Two others
   were built and rendered (split frame, wipe slider); the wipe
   stays on the comparison carousel where one pair gets a full
   column. Swapping treatments is a small change if Vazul picks
   differently.
   ============================================================ */
.color-band {
  background: var(--light-band);
  padding: 64px 0 56px;
}

.color-band__lead {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}

.color-band .section-label { text-align: left; }

/* THE PLATE (Vazul, Sep 2 2026: "one big, massive, really amazing image").
   Full container width, natural aspect, no crop and no corner treatment: it
   is a photograph, and docs/10 keeps the .cut-corners shape off every one of
   those. The four kinds of change sit under it as text, so the plate is the
   only image in the section and gets to be as large as the container allows.
   Box measures 1300px at full width: 1380 max-width less the 40px padding
   .container takes at the desktop breakpoint, not the 24px it uses on mobile.
   The srcset's sizes attribute states all three of those widths. */
.color-band__plate {
  margin: 34px 0 0;
  line-height: 0;
  background: var(--hairline);
}

.color-band__plate img {
  display: block;
  width: 100%;
  height: auto;
}

/* THE PLATE AS A BEFORE-AND-AFTER SLIDER (Vazul, Oct 10 2026). The images are
   absolutely stacked inside a slider, so the box can no longer take its height
   from the file; the 2.235 ratio moves onto the box and the images fill it.
   Lifts the bare-slider 560px cap and keeps the plate's full container width. */
.ba-slider.color-band__plate {
  max-width: none;
  margin: 34px 0 0;
  aspect-ratio: 1334 / 597;
  /* The plate's line-height: 0 would flatten the Before/After chips. */
  line-height: normal;
}

.ba-slider.color-band__plate img {
  height: 100%;
}

.color-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 30px;
  border-top: 1px solid var(--hairline);
}

.color-change {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.color-change h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.color-change p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* The four 168px hover frames that used to live here came out Sep 2 2026
   when the section went to one plate. Their CSS went with them: the frame
   button, the two stacked shots, the opacity crossfade, the hatched empty
   fill, the before/after chips and the tap-or-hover hint. Nothing else on
   the site used any of it, and the JS toggle in js/script.js came out in
   the same commit. If a per-change comparison ever returns, the four
   illustration styles are still rendered at
   claude.ai/code/artifact/1ada9cf1-e48f-4eff-8968-fe3e3014cbfd. */

.color-band__limit {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 2px solid var(--charcoal);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.color-band__limit h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.color-band__limit p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.color-band__limit a { color: var(--navy); }

@media (min-width: 640px) {
  .color-band__grid { grid-template-columns: repeat(2, 1fr); }
  .color-change { padding-right: 24px; }
  .color-change:nth-child(2n) { padding-right: 0; }
}

@media (min-width: 1024px) {
  .color-band { padding: 76px 0 64px; }
  .color-band__grid { grid-template-columns: repeat(4, 1fr); }
  .color-change { padding: 26px 24px 28px 0; }
  .color-change:nth-child(2n) { padding-right: 24px; }
  .color-change:nth-child(4n) { padding-right: 0; }
  .color-band__limit {
    grid-template-columns: minmax(190px, 0.7fr) 1fr;
    gap: 30px;
  }
}

/* ==========================================
   PROOF BAND, SPLIT LAYOUT (/residential only)
   Vazul, Sep 2 2026. His three instructions, in order: left-align the text
   above the slider, put the big image directly under it, and stand the job
   pickers up vertically on the right-hand side of the image instead of
   under it. The CTA moved with them, to the foot of that right column.

   SCOPE: modifier classes only. Applied to /residential and, from Sep 2
   2026, /services. /commercial still runs the same .ba-carousel centred
   under a centred heading, so nothing here touches the base component.

   THE FRAME WIDTH IS DELIBERATELY STILL 880 CSS px. That is the box its
   exact-fit derivatives were cut for (scripts/optimize-fit-crops.sh line
   "Comparison carousel"), and every extra pixel of frame width puts the
   brick courses back into Chromium's 1.0x-2.0x aliasing band, which is the
   shimmer the whole exact-fit pass exists to kill
   (handoff/docs/13-image-resolution.md). The band's spare width goes to the
   right-hand column instead, which is text and 96px thumbs and does not
   care. If the frame ever does need to grow, cut its rungs FIRST.

   The right column carries, top to bottom: the arrows and the vertical
   thumbnail rail, the caption for whichever job is on screen, the drag
   hint, and the CTA pinned to the bottom edge of the photo.
   ========================================== */
.proof-band--split .proof-band__head {
  max-width: 780px;
}

.proof-band--split .section-label {
  text-align: left;
}

.proof-band--split .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  max-width: 62ch;
}

.proof-band--split .ba-carousel {
  max-width: 100%;
  margin: 2.25rem 0 0;
}

/* Phones and small tablets keep the stacked component: photo, caption,
   rail, hint, then the button. Only the CTA's spacing changes, because it
   now lives inside the carousel rather than as a sibling below it. */
.proof-band--split .proof-band-cta {
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .proof-band--split .ba-carousel--split {
    display: grid;
    /* Column 1 is pinned to the frame's exact-fit box; column 2 takes
       whatever the container has left. */
    grid-template-columns: minmax(0, 880px) minmax(240px, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 44px;
    align-items: start;
  }

  .proof-band--split .ba-slider {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .proof-band--split .ba-controls {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    gap: 14px;
  }

  /* The rail runs down the column. It scrolls on the other axis now, and
     the snap axis follows it. */
  .proof-band--split .ba-rail {
    flex-direction: column;
    align-items: flex-start;
    overflow-x: visible;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    gap: 14px;
  }

  /* Width hugs the thumbnail rather than the column: with the label gone
     there is nothing to its right, and a full-width button would put a strip
     of dead clickable space beside every photo. */
  .proof-band--split .ba-thumb {
    display: block;
    width: 96px;
  }

  .proof-band--split .ba-thumb__frame {
    width: 96px;
  }

  /* Prev and next now move the rail up and down, so the chevrons turn to
     match. They stay left-aligned with the thumbnails above and below. */
  .proof-band--split .ba-nav {
    margin-top: 0;
    margin-left: 28px;
  }

  .proof-band--split .ba-nav svg {
    transform: rotate(90deg);
  }

  .proof-band--split .ba-caption {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin: 26px 0 0;
    max-width: none;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
  }

  .proof-band--split .ba-hint {
    grid-column: 2;
    grid-row: 3;
    text-align: left;
    margin-top: 14px;
  }

  .proof-band--split .proof-band-cta {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    text-align: left;
    margin-top: 28px;
  }

  /* /services closes the column with two buttons where /residential has one.
     Side by side they overrun the column, so a pair stacks and takes the
     column width, squaring off against the caption rule above it. The
     :has() guard keeps a lone button at its content width, which is how
     /residential was signed off. */
  .proof-band--split .proof-band-cta:has(.btn + .btn) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* The band's closing paragraph, Sep 2 2026. The colour answer is split around
   the slider: the short "almost certainly" runs in .section-subtitle above,
   and the caveat lands here, under the whole grid, where the reader has just
   watched a wall change. Full width of the container, but held to the head's
   measure so the two halves of the paragraph line up as one column. */
.proof-band--split .proof-band__foot {
  max-width: 62ch;
  margin: 2.5rem 0 0;
  color: var(--ink-soft);
}

/* This paragraph lives outside .content, so the site-wide in-content link
   standard above does not reach it. Restated here, unchanged. */
.proof-band--split .proof-band__foot a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.proof-band--split .proof-band__foot a:hover {
  color: var(--gold-hover);
}


/* ==========================================================================
   HOMEPAGE HERO: CINEMATIC (Vazul, Oct 4 2026)
   Option 10 off the ten-option hero bench, then tuned on a second board.
   His picks, in his words where it matters:
     - full screen, the photograph behind a header that is clear until you
       hover it or scroll ("when you're on the homepage, it looks more full")
     - every line of text enters the same way: Rise, each line sliding up out
       of a mask in order (rule, kicker, two headline lines, subhead, button)
     - fine chevrons as the scroll cue, no word
     - headline kept at its size but thinner (300; it was 500)
     - header: scroll-linked fade over the first 480px of scroll, and a
       0.6s fade on hover (he asked for roughly half of 1.2s)
   Replaces THE PLATE (Sep 2 2026), which lived here. Selectors are doubled
   (.hero-full.hero-cine) for the same reason the plate's were: about ten
   single-class .hero-full rules are scattered across this file.
   Sizes here must stay in sync with the critical CSS in index.html.
   ========================================================================== */
.hero-full.hero-cine {
  display: block;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: none;
  margin-top: 0;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-cine .hero-full__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  will-change: transform;
}

/* Mobile drift (Oct 6 2026): the same 0.4x parallax the desktop JS draws,
   run by the browser on the scroll itself so it never lags the page. 100vh
   of scroll moves the photo 40vh. Without scroll-timeline support the photo
   simply scrolls with the page. */
@keyframes cineDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 40vh, 0); }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-cine .hero-full__bg {
      animation: cineDrift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}

/* Slow settle: the photograph eases from 108% to 100% over nine seconds. */
.hero-cine .hero-full__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.08);
  animation: cineSettle 9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

@keyframes cineSettle {
  to { transform: scale(1); }
}

/* The plate's corner-weighted scrim, plus a band across the top so the clear
   header's white links read against a bright sky in any photograph. */
.hero-cine .hero-full__overlay {
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.5) 0%, rgba(10, 12, 16, 0) 22%),
    linear-gradient(to top, rgba(16, 17, 19, 0.84) 0%, rgba(16, 17, 19, 0.56) 36%, rgba(16, 17, 19, 0.16) 68%, rgba(16, 17, 19, 0.1) 100%),
    linear-gradient(to right, rgba(16, 17, 19, 0.52) 0%, rgba(16, 17, 19, 0) 58%);
}

.hero-cine__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: left;
  padding-bottom: max(170px, 20vh);
}

/* Desktop reads vertically centred (Vazul, Oct 4 2026, second pass: a 20vh
   raise still "feels too low... should be closer to vertically center").
   The block centres in the space below the nav, with a small padding bias
   so it sits a touch above geometric centre, which reads as centred under
   a top-heavy header. Tablet and phone stay bottom-anchored. */
@media (min-width: 1024px) {
  .hero-cine__content {
    top: var(--nav-height);
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4vh;
  }
}

.hero-cine__rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 20px;
  transform-origin: left center;
  animation: cineDraw 0.9s cubic-bezier(0.7, 0, 0.2, 1) 0.15s both;
}

@keyframes cineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-full.hero-cine .hero-full__kicker {
  margin: 0 0 18px;
}

.hero-full.hero-cine .hero-full__display {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: none;
  margin: 0;
}

.hero-full.hero-cine .hero-full__sub {
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 16px 0 0;
}

.hero-full.hero-cine .hero-full__ctas {
  justify-content: flex-start;
  margin-top: 26px;
}

/* Rise. Each .rv is a mask; its .rv__in slides up out of it. The bottom
   padding keeps descenders inside the mask. */
.hero-cine .rv {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero-cine .rv__in {
  display: block;
  animation: cineRise 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-cine .hero-full__ctas > .rv__in {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cine .rv--0 > .rv__in { animation-delay: 0.35s; }
.hero-cine .rv--1 > .rv__in { animation-delay: 0.46s; }
.hero-cine .rv--2 > .rv__in { animation-delay: 0.57s; }
.hero-cine .rv--3 > .rv__in { animation-delay: 0.68s; }
.hero-cine .rv--4 > .rv__in { animation-delay: 0.79s; }

@keyframes cineRise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

/* Once the entrance is over, script.js adds --done and the masks open, so the
   button's focus ring and hover lift are never clipped. */
.hero-cine.hero-cine--done .rv {
  overflow: visible;
}

/* Hold every entrance on its first frame until the page is revealed (body
   fades in only once the stylesheet and the hero image are ready), so the
   motion is actually seen rather than finished behind opacity 0. */
body:not(.css-loaded) .hero-cine *,
body:not(.css-loaded) .hero-cine *::before,
body:not(.css-loaded) .hero-cine *::after {
  animation-play-state: paused;
}

/* Scroll cue: two fine chevrons pulsing down. The outer box takes the
   scroll fade from script.js; the inner box takes the late fade-in. */
.hero-cine__cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  width: 26px;
  height: 34px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-cine__chev {
  position: relative;
  display: block;
  width: 26px;
  height: 34px;
  animation: cineCueIn 1s ease 1.6s both;
}

.hero-cine__chev svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 12px;
  /* Two pulses, then it rests in place: an endless loop is motion that
     runs past five seconds with no way to stop it (WCAG 2.2.2). */
  animation: cineChev 2.2s ease-in-out 2;
}

.hero-cine__chev svg + svg {
  top: 11px;
  animation-delay: 0.25s;
}

@keyframes cineCueIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cineChev {
  0% { opacity: 0; transform: translateY(-5px); }
  40% { opacity: 0.95; }
  80%, 100% { opacity: 0; transform: translateY(7px); }
}

/* Below 1024px the fixed 56px call bar (.mobile-cta) slides up over the
   foot of the hero, so the cue and the copy both lift clear of it. */
@media (max-width: 1023px) {
  .hero-cine__cue {
    bottom: calc(56px + 18px + env(safe-area-inset-bottom, 0px));
  }

  .hero-cine__content {
    padding-bottom: max(150px, 16vh);
  }
}

@media (max-width: 767px) {

  .hero-full.hero-cine .hero-full__sub {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cine .hero-full__bg img,
  .hero-cine__rule,
  .hero-cine .rv__in,
  .hero-cine__chev,
  .hero-cine__chev svg {
    animation: none;
    transform: none;
  }

  .hero-cine .rv {
    overflow: visible;
  }

  .hero-cine__chev svg {
    opacity: 0.8;
  }
}

/* ==========================================================================
   CLEAR HEADER OVER THE CINEMATIC HERO (Vazul, Oct 4 2026)
   Homepage only: index.html's head script puts .hdr-over on <html>, and only
   when JS runs, so without JS the header is the ordinary solid white bar.
   Two numbers drive it, set by script.js on .site-header:
     --solid  0 to 1, the white ground (scroll-linked over the first 480px)
     --txt    0 to 1, white links to ink links, switched over a narrow band
              in the middle of --solid so text never sits grey on grey
   Hovering the bar, focusing into it, or opening any menu forces both to 1
   over 0.6s. The mega panels and the mobile overlay are untouched: they are
   the same markup, same script, same white panels as every other page.
   ========================================================================== */
@property --solid {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --txt {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

/* The clear state is a dark transparent, not transparent white. Safari on
   iPhone tints the status bar from the fixed header's colour, and read the old
   rgba(255,255,255,0) as white over a dark photo (Vazul, Oct 13 2026). The mix
   is premultiplied, so any --solid above 0 still paints pure white. */
html.hdr-over .site-header {
  --solid: 0;
  --txt: 0;
  background-color: color-mix(in srgb, #ffffff calc(var(--solid) * 100%), rgba(29, 29, 30, 0));
  box-shadow: 0 2px 20px rgba(0, 0, 0, calc(var(--solid) * 0.12));
  -webkit-backdrop-filter: blur(calc(var(--solid) * 16px));
  backdrop-filter: blur(calc(var(--solid) * 16px));
  transition: --solid 0.12s linear, --txt 0.12s linear;
}

html.hdr-over .site-header:focus-within {
  --solid: 1 !important;
  --txt: 1 !important;
  transition: --solid 0.6s cubic-bezier(0.4, 0, 0.2, 1), --txt 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover only where there is a real pointer. On iPhone a tap fires :hover
   first, the logo crossfade reads to Safari as content appearing, and it
   swallowed the tap: the hamburger needed two taps to open (Vazul, Oct 13
   2026). Opening the menu still whitens the bar through the :has() rule. */
@media (hover: hover) and (pointer: fine) {
  html.hdr-over .site-header:hover {
    --solid: 1 !important;
    --txt: 1 !important;
    transition: --solid 0.6s cubic-bezier(0.4, 0, 0.2, 1), --txt 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Separate rule on purpose: a browser without :has() would throw away the
   whole selector list above if this sat in it. */
html.hdr-over .site-header:has(.nav-item.open, .nav-item.hover-open, .nav-links.open) {
  --solid: 1 !important;
  --txt: 1 !important;
  transition: --solid 0.6s cubic-bezier(0.4, 0, 0.2, 1), --txt 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Leaving the bar fades back over the same 0.6s instead of the scroll rate;
   script.js holds this class for the length of the fade. */
html.hdr-over .site-header.hdr-leaving {
  transition: --solid 0.6s cubic-bezier(0.4, 0, 0.2, 1), --txt 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The tab under the pointer when it leaves drops its gold hover at the same
   moment, and its own 0.2s colour transition then chased the moving --ink:
   gold, a muddy grey, then white, a beat behind the rest (Vazul, Oct 13
   2026). With that transition off for the fade, every tab rides --txt. */
html.hdr-over .site-header.hdr-leaving .nav-links > li > a {
  transition: none;
}

/* Logo: the white twins sit exactly over the colour artwork and crossfade. */
.nav-logo__light,
.nav-logo__light-name {
  display: none;
}

html.hdr-over .nav-logo,
html.hdr-over .nav-logo__stack {
  position: relative;
}

html.hdr-over .nav-logo__light {
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: calc(1 - var(--txt));
}

html.hdr-over .nav-logo__light-name {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: calc(1 - var(--txt));
}

html.hdr-over .nav-logo > .nav-logo__mark:not(.nav-logo__light),
html.hdr-over .nav-logo__stack > picture:not(.nav-logo__light-name) {
  opacity: var(--txt);
}

/* Top-level links read --ink, so redefining it on the link row turns them
   white without touching their own hover rules. The panels underneath get
   the real value back. */
@media (min-width: 1024px) {
  html.hdr-over .site-header .nav-links {
    --ink: color-mix(in srgb, #333333 calc(var(--txt) * 100%), #ffffff);
  }

  html.hdr-over .site-header .mega-panel {
    --ink: #333333;
  }

  html.hdr-over .site-header .nav-item--cta > a {
    background-color: color-mix(in srgb, var(--navy) calc(var(--txt) * 100%), transparent);
    border-color: color-mix(in srgb, var(--navy) calc(var(--txt) * 100%), rgba(255, 255, 255, 0.85));
  }

  html.hdr-over .site-header .nav-item--cta > a:hover {
    background-color: var(--navy-hover);
    border-color: var(--navy-hover);
  }
}

@media (max-width: 1023px) {
  html.hdr-over .site-header .nav-cta-mobile {
    background-color: color-mix(in srgb, var(--navy) calc(var(--txt) * 100%), transparent);
    border-color: color-mix(in srgb, var(--navy) calc(var(--txt) * 100%), rgba(255, 255, 255, 0.85));
  }

  html.hdr-over .site-header .nav-hamburger span {
    background-color: color-mix(in srgb, var(--charcoal) calc(var(--txt) * 100%), #ffffff);
  }
}

/* ============================================================
   /residential, Sep 2 2026 (Vazul): the "Why stain instead of
   paint?" body copy is replaced by three real sections, placed
   per map P1 off the decision board.

     .paintfail  "Why we will not paint your brick", after the
                 slider, where the objection actually arrives.
     .roads      the fifteen year fork, after the key band, once
                 the testimonials have earned the right to talk
                 about money.
     the handhold reuses the homepage's shipped .contact /
                 .contact-routes / .route components rather than
                 inventing a second contact pattern, and replaces
                 the old .cta-band on this page.

   The board deliberately kept the fork's own-price column empty
   (variant A2): the argument is that THEIR bill repeats, and our
   number belongs in a calm sentence under the table rather than
   in a comparison a stranger reads in the first minute.
   ============================================================ */

.paintfail {
  background-color: var(--light-band);
  padding: 72px 0;
}

.paintfail__head {
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.paintfail__head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: 1.1rem;
}

.paintfail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .paintfail__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.paintfail__item figure { margin: 0; }

/* The plates are images now (Vazul, Sep 2 2026), generated rather than
   photographed, illustrating the failure mode and never a BM job. The
   sourcing rules for them live on the section in residential.html.
   object-fit guards the frame if a future swap is not 4:3; the sources
   shipped here are. No corner cut on any of them: these are photographic
   media, and .cut-corners is UI chrome only. */
.paintfail__plate {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--light-band);
  border: 1px solid var(--hairline);
}

.paintfail__caption {
  display: block;
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.paintfail__caption::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background-color: var(--gold);
  margin-bottom: 10px;
}

.paintfail__foot {
  margin-top: 2.5rem;
}

/* ---------- The fifteen year fork ---------- */
.roads-band {
  background-color: var(--charcoal);
  padding: 72px 0 80px;
}

.roads-band h2 { color: var(--white); }

.roads-band .section-subtitle {
  color: #C9C6C0;
  max-width: 62ch;
  margin-left: 0;
  text-align: left;
}

.roads__fork {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: #3A3A3B;
  border-top: 1px solid #3A3A3B;
  margin-top: 2.75rem;
}

@media (min-width: 900px) {
  .roads__fork { grid-template-columns: 1fr 1fr; }
}

.road {
  background-color: var(--charcoal);
  padding: 34px 30px 36px;
}

.road--stain {
  background-color: var(--light-band);
  color: var(--ink);
}

.road__tag {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.road--stain .road__tag { color: var(--gold-hover); }

.road__h {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: var(--w-head);
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 10px 0 26px;
}

.road--stain .road__h { color: var(--charcoal); }

.road__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.road__list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid #353536;
  font-size: 0.95rem;
}

.road--stain .road__list li { border-top-color: var(--hairline); }
.road__list li:first-child { border-top: 0; }

.road__yr {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E8E8C;
}

.road--stain .road__yr { color: var(--ink-soft); }
.road__what { color: #D6D4D0; }
.road--stain .road__what { color: var(--ink); }

.road__amt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  white-space: nowrap;
  text-align: right;
}

.road--stain .road__amt { color: var(--charcoal); }
.road__amt--quiet { color: #8A8A88; font-weight: 400; } /* 4.87:1 on charcoal */
.road--stain .road__amt--quiet { color: var(--gold-hover); font-weight: 600; }

/* Phone widths: the amount drops under the description instead of sitting
   beside it. Added Sep 3 2026 with the "$20,000 to $30,000" figures on the
   stain side. The amount is nowrap, so a three-column row at 390px squeezed
   the middle column to one word per line and the long amounts overlapped it.
   Fixes the paint side's "up to $60,000" row too, which had the same squeeze. */
@media (max-width: 599px) {
  .road__list li {
    grid-template-columns: 74px minmax(0, 1fr);
    row-gap: 5px;
  }

  .road__amt {
    grid-column: 2;
    text-align: left;
  }
}

.road__total {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px solid #4A4A4B;
}

.road--stain .road__total { border-top-color: var(--gold); }

.road__total dt {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E8E8C;
}

.road--stain .road__total dt { color: var(--ink-soft); }

.road__total dd {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.road--stain .road__total dd { color: var(--charcoal); }

.road__note {
  font-size: 0.88rem;
  color: #A5A3A0;
  margin-top: 6px;
}

.road--stain .road__note { color: var(--ink-soft); }

.roads__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 2.5rem;
}

.roads__foot p {
  color: #C9C6C0;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
  max-width: 60ch;
}

.roads__foot p a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.roads__foot p a:hover { color: var(--gold); }

/* ---------- Handhold additions to the shipped .route component ---------- */
.route__list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.route--form .route__list { color: var(--ink-soft); }
.route--call .route__list { color: #C9C9C9; margin-bottom: 0; }

.route__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.route__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  background-color: var(--gold);
  transform: rotate(45deg);
}

.route--call .route__fine {
  font-size: 0.88rem;
  color: #A5A3A0;
  margin: 0.9rem 0 1.4rem;
}

.paintfail .section-label,
.roads-band .section-label { text-align: left; }

/* The handhold's call route runs text, number, hours, then promises, which is
   one more block than the homepage's version of .route--call. These spacing
   rules are scoped to .handhold so the homepage contact band is untouched. */
.handhold .route--call .route__text { margin-bottom: 1.35rem; }
.handhold .route__phone { margin-bottom: 0.4rem; }
.handhold .route--call .route__fine { margin: 0 0 1.35rem; }

/* ==========================================================================
   MANUFACTURER'S CASE FILE
   /case-studies/plymouth-office-brick-staining-color-continuity.

   WHY THIS BLOCK EXISTS. The source page this layout is built against
   (goldstandardstaining.com/cs108) carries every fact about the job inside a
   photographed paper form: the project name, the year, the level, who hired
   it, what was wrong, what was done. All of it is pixels. A screen reader gets
   nothing, a search engine gets nothing, and on a phone it is unreadable
   without pinch-zooming. So this component runs the scan and a transcription
   of it side by side. The scan stays because it is the receipt and it is the
   reason the transcription can be trusted; the transcription is what anyone
   can actually read.

   The rail is fixed at 320px rather than fractional so the scanned form keeps
   a predictable size next to a column of prose whose length varies per case.
   Below 860px the two stack, form first, because the form is the artifact.
   ========================================================================== */
.casefile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin: 34px 0 30px;
}

@media (min-width: 860px) {
  .casefile {
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 48px;
  }
}

.casefile__scan {
  margin: 0;
  /* Pinned rather than fluid so the scan has exactly two useful rungs. See the
     note in scripts/optimize-fit-crops.sh. Grew 320 to 440 on Sep 2 2026 with
     the photographs; the block moved out of the 800px text measure to the full
     container in the same change, so the transcription still gets 712px. */
  max-width: 440px;
}

.casefile__scan img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  background: var(--white);
}

.casefile__scan figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.casefile__rows {
  margin: 0;
}

/* Each row is its own grid rather than the <dl> being one two-column grid,
   because a dd here can run to four lines while its dt is one word, and a
   single grid would leave the label floating in the middle of the gap. */
.casefile__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.casefile__row:first-child {
  padding-top: 0;
}

@media (min-width: 560px) {
  .casefile__row {
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }
}

.casefile__row dt {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.casefile__row dd {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink);
}


/* .content h2:first-child zeroes its top margin, which is right when the block
   opens a page section and wrong when it opens one sitting directly under a row
   of photo captions. The case-file layout alternates timeline, prose, timeline,
   prose, so it hits that case twice. Scoped to its own class rather than to
   `.proof-timeline + .content` on purpose: the three older case study pages use
   that same adjacency and would silently move if this were written positionally. */
.content--after-frames h2:first-child {
  margin-top: 2.6rem;
}

/* ==========================================
   AUDIENCE FORK: CONTAINED DIPTYCH (option F)
   Vazul, Sep 2 2026, off the Services Band Studies board
   (claude.ai/code/artifact/792f6ea0-e46b-4472-bf94-0acbb5ced499). The
   diagnosis was that this band breaks all five habits the sections above
   it share: it was the only centred head on the upper page, the only
   symmetric block, it gave nothing any scale, it carried no hairlines or
   micro-labels, and its air was uniform rather than composed.

   He picked option E, the full-bleed diptych, then named the one thing
   wrong with it: nothing else below the hero bleeds to the viewport edge,
   so E was introducing a page-level behaviour for a single band. F is E's
   treatment on B's footprint. Contained, the plate's left edge lands on
   the same line as the eyebrow, the headline, the gold rule, the intro
   band photograph and the portfolio grid, and that alignment is the thing
   that reads deliberate.

   SCOPED TO .audience-split--plate ON PURPOSE. /services runs the same
   .audience-card fork and keeps the flat treatment until rolling it out
   is his call, so the block above is untouched and still wins there.
   ========================================== */
.audience-split--plate .section-label {
  text-align: left;
}

/* The lead sits between the headline and the plate, so the headline's own
   bottom margin (#services h2, 2.75rem) would double up the gap. */
.audience-split--plate h2 {
  margin-bottom: 0;
}

.audience-split__lead {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* Zero gutter: the two photographs are meant to read as one plate split by
   the seam, not as two images with space between them. Stacked on phones
   the seam becomes a horizontal gold line and does the same job. */
.audience-plate {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
}

.audience-seam {
  display: block;
  height: 2px;
  background: var(--gold);
}

/* 460 stacked, not the 340 the board predicted. At 390 the copy block runs
   about 270px on its own, so a 340 panel left the micro-label and the h3
   sitting above the shade on bright sky. Photo has to stay readable above
   the type or the panel stops being a photograph. */
.audience-panel {
  position: relative;
  display: block;
  height: 460px;
  overflow: hidden;
}

/* Fixed object-position per panel rather than an inline style: style-src in
   nginx.conf is 'self' plus a nonce with no unsafe-inline, so a style
   attribute is silently dropped on deploy and works on localhost. */
.audience-panel--res .asset-fill img {
  object-position: 50% 58%;
}

.audience-panel--com .asset-fill img {
  object-position: 44% 50%;
}

.audience-panel .asset-fill img {
  transition: transform 0.5s ease;
}

.audience-panel:hover .asset-fill img,
.audience-panel:focus-visible .asset-fill img {
  transform: scale(1.05);
}

/* Strengthened through the middle of the panel, not just at the foot: the
   gold micro-label lands where the residential house is still bright, and a
   polite gradient failed contrast on that panel every time. */
/* Stacked, the copy occupies roughly the bottom 58% of the panel, so the
   shade has to hold near-solid that far up. The desktop gradient below is
   the one rendered on the board and is lighter through the middle. */
.audience-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 20, 0.96) 0%,
    rgba(18, 18, 20, 0.93) 40%,
    rgba(18, 18, 20, 0.80) 62%,
    rgba(18, 18, 20, 0.30) 82%,
    rgba(18, 18, 20, 0) 96%
  );
}

.audience-panel__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 26px 28px;
  color: var(--white);
}

.audience-panel__micro {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 13px;
}

.audience-panel h3 {
  font-size: 1.5rem;
  font-weight: var(--w-head);
  line-height: 1.15;
  color: var(--white);
  padding-bottom: 0;
  transition: color 0.2s ease;
}

.audience-panel p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 42ch;
  margin: 12px 0 18px;
}

.audience-panel .audience-link {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  margin-top: 0;
}

.audience-panel:hover h3,
.audience-panel:focus-within h3,
.audience-panel:hover .audience-link,
.audience-panel:focus-visible .audience-link {
  color: var(--gold);
}

.audience-panel:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

@media (min-width: 900px) {
  /* Two panels and a 2px seam, no gutter. At the 1380 container that is
     649 / 2 / 649. */
  .audience-plate {
    margin-top: 56px;
    grid-template-columns: 1fr 2px 1fr;
  }

  .audience-seam {
    height: auto;
  }

  .audience-panel {
    height: 600px;
  }

  /* The gradient the board rendered: lighter through the middle so the brick
     colour survives, which is the whole product. It only works at 600. */
  .audience-panel__scrim {
    background: linear-gradient(
      to top,
      rgba(18, 18, 20, 0.96) 0%,
      rgba(18, 18, 20, 0.90) 26%,
      rgba(18, 18, 20, 0.66) 48%,
      rgba(18, 18, 20, 0.16) 74%,
      rgba(18, 18, 20, 0) 90%
    );
  }

  .audience-panel__copy {
    padding: 0 44px 44px;
  }

  .audience-panel h3 {
    font-size: 1.875rem;
  }

  /* Three lines held open on both sides, side by side only. The two blurbs
     are 2 and 3 lines, and bottom-anchored copy on unequal blurbs puts the
     two h3s at different heights, which reads as a bug. The copy is approved
     and cannot be evened out, so the box is evened out instead. Stacked there
     is nothing to align, so the hold would just be dead space. */
  .audience-panel p {
    min-height: calc(3 * 1.65em);
  }

  .audience-split--plate {
    padding: 128px 0;
  }
}

/* ==========================================
   /COMMERCIAL REBUILD (Sep 2 2026)
   Components added for the commercial hub rebuild. Scoped to the sections
   that use them; nothing here restyles a shared component. Appended at the
   end of the file on purpose, because a parallel session was editing
   styles.css at the same time and an append cannot collide with an insert.
   ========================================== */

/* Left-align the eyebrow and open space under the gold rule in every new
   band on this page. .section-label is centred by default and section h2
   carries only 18px of padding under the rule, so a lead paragraph set with
   margin-top 0 lands on the rule. Both are fixed here rather than on the
   shared components. */
.specband .section-label,
.worktypes .section-label,
.fitcheck .section-label,
.access-band .section-label,
.routes .section-label {
  text-align: left;
}

.specband h2,
.worktypes h2,
.fitcheck h2,
.access-band h2,
.routes h2 {
  margin-bottom: 22px;
}

.conditions-band .mechanism-head h2 {
  margin-bottom: 18px;
}

/* ---------- FACT RAIL: five checkable facts under the hero ---------- */
.factrail {
  background-color: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: 34px 0 30px;
}

.factrail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.factrail__item + .factrail__item {
  border-top: 1px solid var(--hairline);
}

.factrail__item a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}

.factrail__item a:hover .factrail__v,
.factrail__item a:focus-visible .factrail__v {
  color: var(--gold-hover);
}

.factrail__v {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: var(--w-head);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s ease;
}

.factrail__l {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.factrail__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .factrail__list {
    grid-template-columns: repeat(5, 1fr);
  }

  .factrail__item + .factrail__item {
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }

  .factrail__item a {
    padding: 4px 24px 4px 0;
  }

  .factrail__item + .factrail__item a {
    padding-left: 28px;
  }

  .factrail__foot {
    margin-top: 30px;
    padding-top: 26px;
  }
}

/* ---------- THE SYSTEM: static spec grid reusing .proof-item ---------- */
.specband {
  background-color: var(--white);
  padding: 72px 0;
}

.specband__lead {
  max-width: 68ch;
  color: var(--ink);
  line-height: 1.72;
  margin: 0 0 34px;
}

.specgrid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 56px;
  border-top: 1px solid var(--hairline);
}

/* .proof-item is the homepage carousel card. Its flex sizing is inert on a
   grid child, so the component itself needs no override and the homepage
   carousel is untouched. Only the last-row border is tidied here. */
@media (min-width: 860px) {
  .specgrid {
    grid-template-columns: 1fr 1fr;
  }

  .specgrid .proof-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

.specband__more {
  margin: 30px 0 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------- SCOPE OF WORK: the six commercial work types ---------- */
.worktypes {
  background-color: var(--light-band);
  padding: 76px 0;
}

.worktypes__lead {
  max-width: 62ch;
  color: var(--ink);
  margin: 0 0 38px;
}

/* ---------- SUITABILITY: the when / when-not pair ---------- */
.fitcheck {
  background-color: var(--white);
  padding: 76px 0;
}

.fitcheck__lead {
  max-width: 66ch;
  color: var(--ink);
  line-height: 1.72;
  margin: 0 0 36px;
}

.fitcheck__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--charcoal);
}

.fitcheck__col {
  padding: 26px 0 30px;
}

.fitcheck__col + .fitcheck__col {
  border-top: 1px solid var(--hairline);
}

.fitcheck__col h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.fitcheck__col--yes h3 {
  color: var(--navy);
}

.fitcheck__col--no h3 {
  color: var(--gold-hover);
}

.fitcheck__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fitcheck__col li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  line-height: 1.65;
  max-width: 54ch;
}

.fitcheck__col li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.fitcheck__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 11px;
  height: 1px;
  background-color: var(--navy);
}

.fitcheck__col--no li::before {
  background-color: var(--gold);
}

.fitcheck__col li:first-child::before {
  top: 12px;
}

@media (min-width: 900px) {
  .fitcheck__cols {
    grid-template-columns: 1fr 1fr;
  }

  .fitcheck__col {
    padding-right: 48px;
  }

  .fitcheck__col + .fitcheck__col {
    border-top: 0;
    border-left: 1px solid var(--hairline);
    padding-left: 48px;
    padding-right: 0;
  }
}

/* ---------- MOCKUP NOTE: pulled out of the process strip ---------- */
.mockup-note {
  margin-top: 40px;
  padding: 24px 28px 24px 31px;
  background-color: var(--light-band);
  box-shadow: 0 0 0 1px var(--hairline);
}

.mockup-note__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 8px;
}

.mockup-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.72;
  max-width: 82ch;
}

/* ---------- ON SITE: occupancy, access, sequencing ---------- */
.access-band {
  background-color: var(--white);
  padding: 76px 0;
}

.access-band__lead {
  max-width: 54ch;
  color: var(--ink);
  margin: 0 0 26px;
}

.access-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.access-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.access-list b {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}

.access-list span {
  color: var(--ink);
  line-height: 1.68;
}

.access-band__photo {
  margin: 40px 0 0;
}

.access-band__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.access-band__text {
  max-width: 78ch;
}

@media (min-width: 1024px) {
  .access-list li {
    grid-template-columns: 148px 1fr;
    gap: 24px;
  }

  .access-list b {
    padding-top: 4px;
  }

  .access-band__photo {
    margin-top: 52px;
  }
}

/* ---------- GO DEEPER: the three audience routes, typographic ---------- */
.routes {
  background-color: var(--light-band);
  padding: 76px 0;
}

.routes__lead {
  max-width: 60ch;
  color: var(--ink);
  margin: 0 0 34px;
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.routecard {
  display: block;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.routecard__n {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-hover);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.routecard h3 {
  font-size: 1.24rem;
  font-weight: var(--w-head);
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  color: var(--charcoal);
  transition: color 0.18s ease;
}

.routecard p {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.68;
  max-width: 46ch;
}

.routecard__go {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.18s ease;
}

.routecard:hover h3,
.routecard:focus-visible h3 {
  color: var(--navy);
}

.routecard:hover .routecard__go,
.routecard:focus-visible .routecard__go {
  color: var(--gold-hover);
}

@media (min-width: 900px) {
  .route-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
    border-bottom: 1px solid var(--hairline);
  }

  .routecard {
    border-bottom: 0;
    padding-right: 8px;
  }
}

/* ---------- CTA BAND: the quiet second route ---------- */
.cta-band__alt {
  margin: 20px 0 0;
  font-size: 0.92rem;
}

.cta-band__alt a {
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(198, 149, 63, 0.55);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.cta-band__alt a:hover,
.cta-band__alt a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* Year marker above each photo block on the case-file layout. Deliberately a
   gold label plus a rule rather than a display h2: after Vazul's Sep 2 2026
   enlargement the photographs ARE the section, and a 1.5rem heading over a
   584px frame competed with them for the eye. It aligns to the container rather
   than to the 800px text measure, because the frames it labels span the full
   container while the prose between them does not. */
.frameset-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 58px 0 24px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.frameset-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--hairline);
}

/* The marker supplies the space, so the strip below it does not add its own. */
.frameset-head + .proof-timeline {
  margin-top: 0;
}

/* ==========================================================================
   MORE CASE STUDIES BAND
   Vazul, Sep 2 2026: "add suggested articles or something right below there so
   all of these case studies are interconnected... allowing users to explore
   more." Sits on all four case study pages, directly above the closing CTA
   band, and each page shows the other three.

   Cards are a photograph and a title, nothing else. That is his Sep 1 ruling on
   the homepage portfolio cards ("get rid of the subtext under each photo, just
   have the title there") applied to the same job here, and it is why this is a
   new component rather than a reuse of .case-study-card on /case-studies, which
   carries a badge, a record line and a paragraph.
   ========================================================================== */
.more-cases {
  padding: 70px 0 82px;
  border-top: 1px solid var(--hairline);
}

.more-cases__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.more-cases__head .section-label {
  margin: 0;
}

.more-cases__all {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}

.more-cases__all:hover {
  color: var(--gold);
}

.more-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 32px;
}

@media (min-width: 768px) {
  .more-cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.more-case {
  display: block;
  text-decoration: none;
  color: inherit;
}

.more-case figure {
  margin: 0;
  overflow: hidden;
}

/* No .cut-corners here and none anywhere near it: these are photographs, and
   the logomark shape is UI chrome only (Vazul, Sep 1 2026, docs/10). */
.more-case img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.more-case:hover img {
  transform: scale(1.03);
}

.more-case__title {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.more-case:hover .more-case__title {
  color: var(--gold);
}

/* Per-case band widths. The cap is always set by the SMALLEST photograph the
   source archive holds, never by taste, so each imported case study gets its own
   number. 1204 is the default (case 108, smallest frame 1172). Case 059's
   booklet bottoms out at 1091, so its band is 1122. */
.proof-timeline--band-1122 {
  --band-max: 1122px;
}

/* Case 013's cap is not set by its smallest photograph but by its largest box:
   every 2019 frame in that file is 2016x1512, and two of them span the whole
   band, so 1008 is the widest band a 2016px rung can feed at a true 2x. */
.proof-timeline--band-1008 {
  --band-max: 1008px;
}

/* An establishing frame across the whole band. Used for the one photograph that
   also runs as the page hero: the hero is a 10:3 letterbox cut from a 3:2
   source, so it reads as texture rather than as a building, and the frame has to
   appear whole somewhere (Vazul, Sep 2 2026). Full width is what stops it
   reading as a duplicate of the hero and makes it the establishing shot. */
@media (min-width: 768px) {
  .proof-timeline--wide .proof-step--full {
    grid-column: 1 / -1;
  }
}

/* THE FRAME BOX TAKES ITS RATIO FROM THE SET, Sep 3 2026. Every case study
   built before this one came out of the partner archive, which is landscape
   scans throughout, so the 4:3 box above was a safe universal and nothing ever
   needed to override it. The first case study shot on our own phones is not
   landscape: four pairs, two of them portrait at about 1025x1535 and one square
   at 1254. A 4:3 centre crop of a 2:3 frame keeps half the height, and on that
   set the half it throws away is the load-bearing half, the top of the chimney
   in one frame and the masked meter in another. Set the ratio on the <ol> and
   every frame inside it follows, because custom properties inherit.

   THE RUNGS HAVE TO MATCH THE BOX OR THIS BUYS NOTHING: a 3/4 box fed a 4:3
   file just moves the crop into the browser. Rows are in
   scripts/optimize-fit-crops.sh, cut at the same ratio as the class here. */
.proof-timeline--square { --step-ratio: 1 / 1; }
.proof-timeline--portrait { --step-ratio: 3 / 4; }

/* ==========================================
   /COMMERCIAL 2.0, THE IMAGE PASS (Sep 2 2026)
   Vazul picked 1A, 2A-as-a-carousel and 3C off the image board
   (claude.ai/code/artifact/533340e3-5cd5-4785-a8da-1e112bcd68c7).
   Appended rather than inserted because a parallel session edits this file.
   ========================================== */

/* ---------- STATEMENT PLATE: one big image under the fact rail ---------- */
.plate-band {
  background-color: var(--white);
  padding: 56px 0 8px;
}

.plate-band__fig {
  margin: 0;
}

.plate-band__fig img {
  display: block;
  width: 100%;
  height: auto;
}

.plate-band__cap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.plate-band__cap a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  text-decoration: none;
  justify-self: start;
  white-space: nowrap;
}

.plate-band__cap a:hover,
.plate-band__cap a:focus-visible {
  color: var(--gold-hover);
}

@media (min-width: 900px) {
  .plate-band__cap {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 40px;
  }

  .plate-band__cap span {
    max-width: 86ch;
  }
}

/* ---------- WORK TABS ----------
   Vazul, Oct 6 2026: option 01 off the switcher board, replacing the swipe
   carousel. Six named tabs over one 3:2 photograph; a tab swaps photo and
   text in place. Same day: the text moved to the RIGHT of the photo and took
   in the six written rows that used to sit under the tabs (Vazul: "it would
   save a little bit of space"). Desktop is photo 2fr, text 1fr, so the photo
   box is about 860px at the full container and the 880 / 1760 rungs fit it.
   Panels share one grid cell, so the stage is always as tall as the tallest
   caption and the rows below never jump when a tab changes. Without the
   script (.is-tabs absent) the panels simply stack. */
.worktabs {
  margin: 0;
}

.worktabs__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0 0 16px;
}

.worktabs__list[hidden] {
  display: none;
}

.worktabs__tab {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--hairline);
  background: var(--white);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.worktabs__tab span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-hover);
}

.worktabs__tab:hover {
  border-color: var(--navy);
}

.worktabs__tab:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.worktabs__tab[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.worktabs__tab[aria-selected="true"] span {
  color: var(--gold);
}

.worktabs__stage {
  display: grid;
  gap: 40px;
}

.worktabs.is-tabs .worktabs__stage {
  gap: 0;
}

.worktabs.is-tabs .worktabs__panel {
  grid-area: 1 / 1;
}

.worktabs.is-tabs .worktabs__panel:not(.is-active) {
  visibility: hidden;
}

.worktabs.is-tabs .worktabs__panel.is-active {
  animation: worktabs-in 0.28s ease;
}

@keyframes worktabs-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.worktabs__fig {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--hairline);
}

.worktabs__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worktabs__panel {
  display: grid;
  gap: 20px;
  align-items: start;
}

.worktabs__text {
  max-width: 64ch;
}

.worktabs__n {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}

.worktabs__text h3 {
  font-size: 1.3rem;
  font-weight: var(--w-head);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 4px 0 10px;
  color: var(--charcoal);
}

.worktabs__text p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.worktabs__when {
  margin-top: 12px !important;
  font-size: 0.92rem;
  color: var(--ink-soft) !important;
}

.worktabs__when span,
.worktabs__cap span {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  margin-right: 8px;
}

.worktabs__cap {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  line-height: 1.6 !important;
  color: var(--ink-soft) !important;
}

.worktabs__cap a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  text-decoration: none;
  white-space: nowrap;
}

.worktabs__cap a:hover,
.worktabs__cap a:focus-visible {
  color: var(--gold-hover);
}

@media (min-width: 700px) {
  .worktabs__list { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: one row of six, underlined, on a hairline rule; photo left,
   text right. */
@media (min-width: 1024px) {
  .worktabs__panel {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
  }

  .worktabs__list {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
  }

  .worktabs__tab {
    margin-bottom: -1px;
    padding: 10px 8px 12px 0;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--ink-soft);
  }

  .worktabs__tab:hover {
    color: var(--charcoal);
  }

  .worktabs__tab[aria-selected="true"] {
    background: none;
    color: var(--charcoal);
    border-bottom-color: var(--gold);
  }

  .worktabs__tab[aria-selected="true"] span {
    color: var(--gold-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  .worktabs.is-tabs .worktabs__panel.is-active { animation: none; }
  .worktabs__tab { transition: none; }
}

/* ---------- THE RECEIPT: the fourteen-year pair plus the case form ---------- */
.receipt {
  background-color: var(--light-band);
  padding: 76px 0;
}

.receipt .section-label {
  text-align: left;
}

.receipt h2 {
  margin-bottom: 22px;
}

.receipt__lead {
  max-width: 78ch;
  color: var(--ink);
  line-height: 1.72;
  margin: 0 0 38px;
}

.receipt__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.receipt__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background-color: var(--hairline);
}

.receipt__frame {
  position: relative;
  margin: 0;
  min-width: 0;
}

.receipt__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.receipt__year {
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--charcoal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 10px 18px;
  font-variant-numeric: tabular-nums;
}

.receipt__year--gold {
  background-color: var(--gold);
  color: var(--charcoal);
}

.receipt__cap {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 78ch;
}

.receipt__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.receipt__file {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  padding: 22px;
}

.receipt__filelabel {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin-bottom: 14px;
}

.receipt__form {
  margin: 0;
  border: 1px solid var(--hairline);
}

.receipt__form img {
  display: block;
  width: 100%;
  height: auto;
}

.receipt__facts {
  margin: 16px 0 0;
}

.receipt__facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.86rem;
}

.receipt__facts div:last-child {
  border-bottom: 0;
}

.receipt__facts dt {
  color: var(--ink-soft);
  margin: 0;
}

.receipt__facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--charcoal);
}

.receipt__attr {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .receipt__grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 40px;
  }
}

/* ==========================================
   CASE STUDY LIBRARY (Vazul, Sep 2 2026)
   ==========================================
   /case-studies was an 800px column of eleven cards with no way in but the
   scrollbar. This is the faceted library that replaces it: a plain-English
   search over every word on every card, four facet groups down a sticky rail,
   and a results grid. Built to hold 400 files, not 11.

   THE COMPONENT IS SCOPED TO .cs-library ON PURPOSE. The gallery has its own
   .gallery-filter bar with different mechanics (three groups, no search, no
   counts, no URL state) and the two must not be merged into one half-good
   filter. If they ever converge, converge deliberately.

   THE RAIL IS HIDDEN UNTIL THE SCRIPT MARKS THE PAGE READY. Without JS the
   eleven cards are all in the HTML and all visible, which is the hard rule in
   handoff/CLAUDE.md; what a no-JS reader must never get is a filter bar that
   does nothing. Same pattern as .js-lightbox-ready.

   THE RAIL AND GAP WIDTHS ARE ARITHMETIC, NOT TASTE. The lead photographs ship
   at a 638x478 rung, and design-review/check-image-resolution.js paints this
   page at 1440 wide at DPR 1 and DPR 2, failing any image whose file pixels
   land between 1.03x and 1.90x of the device pixels it is painted into. That
   puts the painted image box in a narrow safe window: at or above 309.7 so
   DPR 2 reads 638/(2*box) at 1.03x or under, and at or below 319 so DPR 2
   still picks the 638 rung rather than the 1200 one. Aim for the middle of
   that window, 314 or 315.

   The measured chain at 1440: .container is 1380 wide with 40 of padding, so
   the library gets 1300. 1300 - 258 rail - 44 gap = 998 of results. Three
   columns with two 24px gutters is (998 - 48) / 3 = 316.67 of card, and the
   card's own 1px border each side leaves 314.67 of image. DPR 1 reads
   638/314.67 = 2.03x, DPR 2 reads 638/629.3 = 1.01x. Both clear.

   MOVE ANY OF THOSE FOUR NUMBERS AND THE BRICK COURSES START TO MOIRE.
   Re-measure with node design-review/check-image-resolution.js, and if a new
   box is genuinely wanted, add its 2x rung to scripts/optimize-fit-crops.sh
   first. */
.cs-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 0.5rem 0 1rem;
}

/* ---------- Search ---------- */
.cs-search {
  position: relative;
  display: flex;
  align-items: center;
}

.cs-search__icon {
  position: absolute;
  left: 20px;
  display: flex;
  color: var(--ink-soft);
  pointer-events: none;
}

.cs-search__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 18px 52px 18px 54px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.cs-search__input::placeholder {
  color: var(--ink-soft);
  opacity: 0.85;
}

.cs-search__input:hover {
  border-color: var(--gold-hover);
}

.cs-search__input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 43, 73, 0.12);
}

/* Safari draws its own clear affordance on type=search and it sits on top of
   ours. Ours is the one that also resets the aria-live count. */
.cs-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cs-search__clear {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--light-band);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cs-search__clear:hover {
  background: var(--charcoal);
  color: var(--white);
}

.cs-search__clear:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

/* The button sets display:flex, and an author display always beats the UA
   [hidden] rule, so `el.hidden = true` alone left the clear cross sitting in
   an empty field. Both searches that use this component drive it that way. */
.cs-search__clear[hidden] {
  display: none;
}

/* ---------- Facet rail ---------- */
/* Below 1024 the rail is a dropdown under the Filters button and starts
   closed (Vazul, Oct 6 2026: search bar, then "Filters", then the list).
   The 1024 block below turns it back into the always-open sticky column. */
.cs-rail {
  display: none;
}

.js-cs-ready .cs-rail.is-open {
  display: block;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 14px 16px 18px;
  /* Tuck the panel up under its button: the library's grid gap is 28px and a
     dropdown wants to hang off the control that opened it, not float 28px
     below. */
  margin-top: -18px;
}

/* ---------- Filters button (phones and tablets only) ---------- */
.cs-filters-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.js-cs-ready .cs-filters-toggle {
  display: inline-flex;
}

.cs-filters-toggle:hover {
  border-color: var(--gold-hover);
}

.cs-filters-toggle:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

.cs-filters-toggle[aria-expanded="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.cs-filters-toggle__chevron {
  transition: transform 0.2s ease;
}

.cs-filters-toggle[aria-expanded="true"] .cs-filters-toggle__chevron {
  transform: rotate(180deg);
}

/* How many facets are in play, so a view opened from a link like
   /case-studies?structure=educational does not read as unfiltered while the
   dropdown is closed. */
.cs-filters-toggle__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.cs-filters-toggle__n[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cs-filters-toggle__chevron {
    transition: none;
  }
}

.cs-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--charcoal);
}

.cs-rail__title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0;
  padding: 0;
}

.cs-rail__title::after {
  content: none;
}

.cs-rail__clear {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

.cs-rail__clear:hover {
  color: var(--gold-hover);
}

.cs-rail__clear:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

.cs-facet {
  padding-top: 18px;
}

.cs-facet__legend {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
  padding: 0;
}

.cs-facet__legend::after {
  content: none;
}

/* Below 1024 the four groups sit above the results, so wrapping pills would
   put roughly half a phone screen of filters between the reader and the first
   case study. One nowrap row per group that scrolls sideways holds the same
   options in a quarter of the height, and it is the filter pattern a phone
   reader already knows. The rail's own scrollbar is the only sideways scroll
   on the page; the body still never moves. */
.cs-facet__opts {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cs-facet__opts::-webkit-scrollbar {
  display: none;
}

.cs-chip {
  flex: 0 0 auto;
}

/* The chip is a pill below 1024 and a ledger row on the rail above it. Same
   markup either way; only the layout changes. */
.cs-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cs-chip:hover:not(:disabled) {
  border-color: var(--gold-hover);
  color: var(--charcoal);
}

.cs-chip.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.cs-chip:disabled {
  opacity: 0.4;
  cursor: default;
}

.cs-chip:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

.cs-chip__note {
  display: none;
}

.cs-chip__n {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
  /* 0.82 is the floor for 4.5:1 on white (WCAG 1.4.3). */
  opacity: 0.82;
}

/* ---------- Results ---------- */
.cs-lead {
  text-align: left;
  margin: 0 0 22px;
}

.cs-status {
  margin: 0 0 28px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.cs-results {
  margin: 0;
}

/* [hidden] loses to the display:grid the card sets, so it is restated here. */
.cs-results .case-study-card[hidden] {
  display: none;
}

.cs-empty {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--light-band);
  padding: 40px 32px;
  text-align: center;
}

.cs-empty h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  padding: 0;
}

.cs-empty h3::after {
  content: none;
}

.cs-empty p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 22px;
}

/* Progressive disclosure control under the results. Ships hidden in the HTML
   and is revealed by script, so a no-JS visitor gets every card and never sees
   a dead button. See the comment on it in case-studies.html. */
.cs-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.cs-more[hidden] {
  display: none;
}

.cs-footnote {
  margin-top: 2rem;
  color: var(--ink-soft);
}

/* ---------- The plate: the card IS the photograph (Vazul, Sep 3 2026) ----------
   "I like the template where you hover over each card, more information
   displays, and clicking it takes you to the actual case study. It makes each
   of the individual cards look more premium, professional, and enterprise-
   feeling."

   The white body box below the photo is gone. Every fact the card used to
   print underneath now sits ON the photograph in two states:
     at rest   the tag row top-left, the title and the record line bottom-left
     on hover  the summary expands under a gold rule, plus the link cue
   Hover and keyboard focus drive the same state, so a tab user sees exactly
   what a mouse user sees.

   THE SUMMARY IS NEVER REMOVED FROM THE DOM, only revealed. A crawler, a
   no-JS reader and a screen reader all still get it. A touch device gets
   everything except the expansion, which is why the resting state has to
   carry the tags, the title and the record line on its own. It does.

   NO COPY CHANGED. The .case-years string is the same string it has always
   been; it only moved onto the photograph.

   TWO ACROSS, NOT THREE (same call). The three-across rule that used to run
   from 1380 up is deleted below. That takes the photo box from 314.66 to 487
   and every card image was recut at 974x730 to match, per docs/13 and the
   table in scripts/optimize-fit-crops.sh. Do not change this grid without
   recutting that rung or the moire comes straight back. */
.cs-results .case-study-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  background: var(--charcoal);
  overflow: hidden;
}

.cs-results .case-teaser__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

/* The tag row sits on the photograph, so the outlined chips need a ground of
   their own. On a bright sky a hairline outline in ink-soft is invisible. */
.cs-results .case-study-meta {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
  gap: 6px;
}

/* NO backdrop-filter HERE (Vazul, Oct 4 2026). The 3px blur the chips used to
   carry is a permanent compositor surface per chip, and "Show more" stacks
   them: 24 cards is about 60 surfaces, the fifth batch is 300+. In Chrome
   that is where the hover reveal started rendering as a stuck, half-painted
   band that only repainted on scroll, while the image zoom (a plain
   transform) kept working. The ground is a shade darker to carry the
   legibility the blur was adding on bright skies. */
.cs-results .case-chip {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(29, 29, 30, 0.5);
}

.cs-results .case-chip--record {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

/* The scrim is the body's own background rather than a pseudo-element, so it
   is exactly as tall as the text it has to keep legible and it grows with the
   reveal instead of being a fixed band. */
.cs-results .case-study-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 54px 20px 18px;
  background: linear-gradient(to top,
    rgba(29, 29, 30, 0.92) 0%,
    rgba(29, 29, 30, 0.74) 40%,
    rgba(29, 29, 30, 0.28) 74%,
    rgba(29, 29, 30, 0) 100%);
  transition: background 0.35s ease;
}

.cs-results .case-study-card__body h2 {
  font-size: 1.12rem;
  line-height: 1.32;
  margin: 0 0 6px;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.cs-results .case-study-card__body h2 a {
  color: inherit;
}

.cs-results .case-years {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

/* 0fr to 1fr animates a height the content decides, which max-height cannot do
   without a magic number that clips the longest summary. The inner div is the
   clip box; grid rows cannot animate without one. */
.cs-results .case-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.38s cubic-bezier(0.2, 0.7, 0.3, 1),
              opacity 0.3s ease;
}

.cs-results .case-reveal > div {
  overflow: hidden;
}

.cs-results .case-reveal p {
  margin: 11px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(198, 149, 63, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* The link cue is a ::after and NOT real text on purpose. script.js builds the
   search haystack from card.textContent, so a literal "View the case study"
   in the markup would make every card match a search for "study". */
.cs-results .case-reveal > div::after {
  content: 'View the case study \2192';
  display: block;
  margin-top: 11px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Second-tier tag beside the gold structure badge: project type, then the
   certification level. Outline rather than filled, so the badge stays the one
   thing the eye lands on. */
.case-chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 1.5px;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}

.case-chip--record {
  border-color: var(--navy);
  color: var(--navy);
}

@media (min-width: 640px) {
  .cs-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .cs-library {
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .cs-searchbar {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  /* Desktop never sees the Filters button; the rail is always open here and
     the panel chrome the open state adds on phones comes off. */
  .js-cs-ready .cs-filters-toggle {
    display: none;
  }

  .js-cs-ready .cs-rail,
  .js-cs-ready .cs-rail.is-open {
    display: block;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
  }

  .cs-rail {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    /* The rail holds 18 rows and four legends, which fits a 900px window with
       room to spare. The cap is the guard for the day a fifth facet or a new
       state lands: it scrolls inside itself rather than running off the bottom
       of a laptop screen. */
    max-height: calc(100vh - var(--nav-height) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Ledger rows, not pills: a 280px rail cannot hold pills without ragging,
     and a ruled list with the count on the right is the read an architect
     already knows from a schedule. */
  .cs-facet__opts {
    display: block;
    overflow-x: visible;
  }

  .cs-chip {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 5px 0 5px 14px;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
  }

  .cs-chip:hover:not(:disabled) {
    border-left-color: transparent;
    color: var(--charcoal);
  }

  .cs-chip.is-active {
    background: none;
    color: var(--charcoal);
    font-weight: 700;
    border-left-color: transparent;
  }

  .cs-chip__label {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .cs-chip__note {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
  }

  .cs-chip__n {
    font-size: 0.8rem;
    color: var(--ink-soft);
    opacity: 1;
  }
}

/* ---------- The whole card is the link (Vazul, Sep 2 2026) ----------
   "I can click on the image, any of the text, or literally anywhere in
   between." Implemented as a stretched pseudo-element on the headline anchor
   rather than by wrapping the card in an <a>, for three reasons that all
   matter here: the accessibility tree still sees exactly ONE link per card
   with the case study's title as its name, rather than a link whose name is
   the whole card read aloud; the tag chips stay outside the link, so they can
   become filter buttons later without nesting interactive elements; and the
   chips are now ON the photograph, where a nested control would be worse
   still.

   ::before is used because ::after on this anchor already draws the gold
   arrow, which the plate suppresses in favour of the reveal's own cue. The
   hover state is driven from the CARD, since the pointer is almost never over
   the headline when the card is hovered.

   THE PLATE IS THE CONTAINING BLOCK, NOT THE CARD (Vazul, Oct 6 2026: "I have
   to click and then click a second time"). The body is position:absolute, so
   inset:0 only covered the text plate and a click on the photograph did
   nothing. The pseudo now runs far above the plate and the card's own
   overflow:hidden trims it to the card, so every pixel of the card is the
   link at any plate height. */
.cs-results .case-study-card__body h2 a::before {
  content: '';
  position: absolute;
  top: -2000px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* The plate carries its own link cue inside the reveal, so the headline's
   inline arrow would be a second one. */
.cs-results .case-study-card__body h2 a::after {
  content: none;
}

/* Hover and focus-within are one state. Everything the card does, it does for
   both, so a keyboard user is never shown less than a mouse user.

   HOVER ONLY WHERE THERE IS A REAL POINTER (Oct 6 2026). On a phone or iPad
   the first tap fires :hover, Safari sees the summary appear and holds the
   tap there as a "hover", and only the second tap opens the case study. With
   no hover reveal on touch, one tap is one visit. Keyboard focus still opens
   the plate everywhere. */
.cs-results .case-study-card:focus-within .case-study-card__body {
  background: linear-gradient(to top,
    rgba(29, 29, 30, 0.96) 0%,
    rgba(29, 29, 30, 0.90) 42%,
    rgba(29, 29, 30, 0.66) 68%,
    rgba(29, 29, 30, 0.28) 88%,
    rgba(29, 29, 30, 0) 100%);
}

.cs-results .case-study-card:focus-within .case-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
}

.cs-results .case-study-card:focus-within .case-study-card__body h2 a {
  color: var(--white);
}

@media (hover: hover) {
  .cs-results .case-study-card:hover .case-study-card__body {
    background: linear-gradient(to top,
      rgba(29, 29, 30, 0.96) 0%,
      rgba(29, 29, 30, 0.90) 42%,
      rgba(29, 29, 30, 0.66) 68%,
      rgba(29, 29, 30, 0.28) 88%,
      rgba(29, 29, 30, 0) 100%);
  }

  .cs-results .case-study-card:hover .case-reveal {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .cs-results .case-study-card:hover .case-study-card__body h2 a {
    color: var(--white);
  }
}

/* KEYBOARD ONLY, AND HAIRLINE (Vazul, Oct 6 2026: "I don't like that ... a
   lot thinner, similar to the thin horizontal gold line within the text
   overlay"). A mouse click focuses the link too, which drew a 3px gold ring
   on every click. :focus-visible keeps the ring for Tab and drops it for the
   mouse; 1px gold matches the rule over the summary. */
.cs-results .case-study-card:has(.case-study-card__body h2 a:focus-visible) {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.cs-results .case-study-card:focus-within .case-study-card__body h2 a:focus-visible {
  outline: none;
}

.cs-results .case-teaser__media {
  overflow: hidden;
}

.cs-results .case-teaser__media img {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (min-width: 1024px) and (hover: hover) {
  .cs-results .case-study-card:hover .case-teaser__media img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-results .case-teaser__media img,
  .cs-results .case-reveal,
  .cs-results .case-study-card__body {
    transition: none;
  }

  .cs-results .case-study-card:hover .case-teaser__media img {
    transform: none;
  }
}


/* ---------- Search suggestions (Vazul, Sep 2 2026) ----------
   "I want users to see more ideas of what they can write." The placeholder
   can only hold one example and it disappears the moment anyone types. These
   are real queries that all return results today; each one is checked against
   the library before it goes in the list, because a suggestion that returns
   an empty state is worse than no suggestion. */
.cs-search__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.cs-search__hint-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cs-suggest {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--navy);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
}

.cs-suggest:hover {
  color: var(--gold-hover);
}

.cs-suggest:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 2px;
}

.cs-suggest + .cs-suggest::before {
  content: '\00b7';
  color: var(--hairline);
  margin-right: 8px;
  text-decoration: none;
  display: inline-block;
}

/* TWO ACROSS EVERYWHERE (Vazul, Sep 3 2026: "in order to make those cards
   bigger, we might only do two cards wide instead of three"). The three-across
   rule that used to start at 1380 is gone. The grid is now the 640px rule at
   every width above it, so the photo box is pinned at 487 from 1380 up rather
   than 314.66, and the card rung is 974x730 instead of 638x478. */

/* Case 003's band, and the number is set by the archive rather than by taste.
   The whole file is a six-page flip-book, so the 2002 photographs exist only at
   the size the booklet embedded them. The After-2002 frame is 1126x628, a wide
   letterbox, and the timeline box is 4:3, so every pixel it can feed a 4:3 crop
   is 837 wide. Two 416px boxes plus the 32px gutter is 864, which makes 832 an
   exact 2x rung with a few pixels in hand. Widening to the 1008 next door would
   upscale that frame by 1.17x, straight into the aliasing band docs/13 exists
   to keep photographs out of. The 2019 establishing frame runs the full 864 and
   is fed at 1728 from a 2016px original. */
.proof-timeline--band-864 {
  --band-max: 864px;
}


/* ==========================================================================
   SERVICE AREAS BAND, "three doors" (Vazul, Sep 2 2026)
   His pick off the rendered board, option 04 of four. Replaces the .page-body
   prose block that used to close /residential.

   GROUND IS --light-band ON PURPOSE. .process below is white. On white the
   two outer doors, which are white cards, would have no edge and the band
   boundary would vanish. On stone they read as panels.

   SQUARE CORNERS, HIS CALL (Vazul, Sep 3 2026). The doors shipped with the
   .cut-corners notch, which was legal here (UI panels, not photographs), but
   he asked for them squared off: no notch, no radius. Do not reinstate the
   clip-path, and do not put a photo in one.

   THE WHOLE DOOR IS THE LINK. Each card carries a stretched-link overlay off
   .door__go::before, so the accessible name stays the visible link text and
   there is still exactly one link per card. The hover state is on .door, not
   on the anchor, so the affordance covers the panel the click covers.
   ========================================================================== */
.areas-band {
  background: var(--light-band);
  padding: 72px 0;
}

/* .section-label is centred by default (the process band uses it that way).
   This band is left-aligned throughout, same as .proof-band--split. */
.areas-band .section-label {
  text-align: left;
}

.areas-band .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 62ch;
}

/* The coverage rail was removed from /residential Sep 3 2026 (Vazul). Its
   rules are gone with it; the markup note is in residential.html. */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* The subtitle used to sit above the rail. With the rail gone the doors
     need that air back. */
  margin-top: 30px;
  gap: 22px;
}

.door {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

/* Stretched link: the overlay is on the anchor, so the click target is the
   whole panel without a second link or a JS click handler. */
.door__go::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.door:hover,
.door:focus-within {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(29, 29, 30, 0.12);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .door {
    transition: border-color 0.18s ease;
  }

  .door:hover,
  .door:focus-within {
    transform: none;
  }
}

/* The middle door leads because the phone is the fastest answer to the
   question this band asks. Navy, not gold: gold is the button colour and a
   solid gold panel this size would outrank the CTA in the handhold below. */
.door--lead {
  background: var(--navy);
  border-color: var(--navy);
}

.door__ic { color: var(--gold); }

.door__k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.door h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--charcoal);
}

.door p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}

.door__go {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
}

.door__go::after {
  content: "\2192";
  display: inline-block;
  color: var(--gold);
  margin-left: 8px;
  transition: transform 0.18s ease;
}

/* Hovering anywhere on the panel moves the link, because anywhere on the
   panel is what the click takes. */
.door:hover .door__go { color: var(--gold-hover); }

.door:hover .door__go::after { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .door:hover .door__go::after { transform: none; }
}

.door--lead h3,
.door--lead .door__k,
.door--lead .door__go { color: var(--white); }

.door--lead p { color: #C3CAD8; }

.door--lead:hover .door__go { color: var(--gold); }

.doors__foot {
  margin: 26px 0 0;
  max-width: 68ch;
  color: var(--ink-soft);
}

.areas-band .related-links { margin-top: 30px; }

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .areas-band { padding: 56px 0; }
}

/* ==========================================
   AUDIENCE PLATE ON /SERVICES (Sep 2 2026)
   Vazul: take the homepage style and use it on the Our Services page,
   starting with the Start With Your Building section. The plate block
   further up this file shipped Sep 2 scoped to .audience-split--plate with
   a note that /services kept the flat .audience-card fork until rolling it
   out was his call. This is that call. The band there now carries the
   modifier, so everything above already applies; only two things are new.

   ONE: the panel is an <article>, not an <a>, because it nests the three
   sub-links the Aug 30 buildout put in each card and an anchor cannot nest
   anchors. Edge-to-edge clickability comes back via .audience-panel__hit,
   the tabindex=-1 media anchor stretched to the panel, with the copy block
   set pointer-events:none so a click on the blurb falls through to it. The
   h3 and the Explore link stay real focusable anchors, so nothing is
   keyboard-only reachable through the hit layer.

   TWO: the sub-links, as a row rather than the stacked list the flat card
   used. Stacked they run about 100px and push the gold micro-label into the
   part of the scrim that is still bright sky, which is the exact failure the
   plate's gradient comment warns about. The row is the .audience-card__scope
   idiom already on this page, costs about 30px, and leaves the copy block
   the same height as the homepage's.

   Appended at the end of the file, per the convention above: a parallel
   session may be editing styles.css and an append cannot collide with an
   insert.
   ========================================== */
.audience-panel__hit {
  position: absolute;
  inset: 0;
  display: block;
}

/* Decorative, and on the article variant it sits over the hit layer. */
.audience-panel__scrim {
  pointer-events: none;
}

.audience-panel--hub .audience-panel__copy {
  pointer-events: none;
}

.audience-panel--hub .audience-panel__copy a {
  pointer-events: auto;
}

.audience-panel h3 a {
  color: inherit;
}

/* Small caps with the brand's gold diamond as the marker, not a middot: a
   separator orphans onto the next line the moment the row wraps, which it
   does on the commercial panel at every width below about 1100 and on both
   panels on a phone. Same reasoning as .audience-card__scope, same sizes. */
.audience-panel__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 15px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  column-gap: 20px;
  row-gap: 9px;
}

.audience-panel__links li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.audience-panel__links li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

.audience-panel__links a {
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease;
}

.audience-panel__links a:hover,
.audience-panel__links a:focus-visible {
  color: var(--gold);
}

/* Taller stacked than the homepage's 460. The link row wraps to three lines
   at 390, so the copy block runs about 60px longer here and a 460 panel put
   the micro-label back on bright sky. 520 restores the same ratio of copy to
   photograph the homepage has. Desktop is unchanged at 600: the row wraps to
   two lines at most there and the block above already sized that. */
.audience-panel--hub {
  height: 520px;
}

@media (min-width: 900px) {
  .audience-panel--hub {
    height: 600px;
  }
}

/* Same argument as the plate block's `min-height` on the blurb, one element
   down. The commercial panel's three sub-links wrap to two rows at every
   desktop width and residential's fit on one, so bottom-anchored copy put
   the two h3s 27px apart, which reads as a bug on a diptych. The blurb is
   already held open at three lines; the row is held open at two for the same
   reason. Stacked there is nothing to align against, so no hold there. */
@media (min-width: 900px) {
  .audience-panel--hub .audience-panel__links {
    /* 25px, not 9: box-sizing is border-box site-wide, so min-height has to
       cover the 15px padding-top and the 1px hairline as well as the 9px row
       gap. Holding only the gap leaves the row 16px short and the two h3s
       still off by that much. */
    min-height: calc(2 * 1.6em + 25px);
  }
}

/* The stacked scrim is tuned for the homepage's copy block, which has no
   link row and stops around 58% of a 460 panel. Here the row adds three
   more lines and the block reaches about 70% of 520, so the gold micro-label
   landed on the commercial panel's bright blue sky at the old 0.30 stop. The
   near-solid shade is carried further up; the top of the frame is untouched,
   so the brick still reads. */
@media (max-width: 899px) {
  .audience-panel--hub .audience-panel__scrim {
    background: linear-gradient(
      to top,
      rgba(18, 18, 20, 0.96) 0%,
      rgba(18, 18, 20, 0.94) 52%,
      rgba(18, 18, 20, 0.84) 72%,
      rgba(18, 18, 20, 0.34) 88%,
      rgba(18, 18, 20, 0) 98%
    );
  }
}

/* ==========================================
   THE COLOR CHANGE BAND (.jobpair)
   ==========================================
   Vazul, Sep 3 2026. One front elevation, before and after, side by side and
   big, sitting between the residential process panels and Featured Guides.
   He asked for the commercial receipt's layout ("The Key to Work That Lasts")
   in a residential register: a pair of frames with a little text around them,
   and none of the receipt's case-file column, facts list or attribution rail,
   because this is our own job rather than a manufacturer case file.

   WHY IT IS CHARCOAL AND NOT THE RECEIPT'S LIGHT BAND. .process above it is
   white and .featured-band below it is light, so a third white or a second
   light would have run all three together into one long stretch with no edge
   between them. Charcoal also does the thing the section exists for: two
   sunlit facades on a dark ground read as photographs rather than as page
   furniture, which is the whole brief ("let the photos serve as the proof").

   THE PAIR RUNS THE FULL CONTAINER, AND THERE IS NO TRUE 2x TO CUT. It was
   built at 1202 first, because two 600px frames make the 1200w rung land at
   exactly 2x on a retina display, which is the rule in
   docs/13-image-resolution.md. At 1440 that left 98px of dead charcoal down
   the right of the band while the heading and caption sat on the container's
   left edge, and a band whose own content does not line up is a worse fault
   than a soft rung. So the pair fills the 1300 the container gives it and
   each frame is 649.
   The exact rung does not exist at any width here anyway: the sources are
   square 1254s, so a 649 frame wants 1298 at DPR 2 and the ladder cannot
   reach it without an upscale. Same call the carousel's whole-house slot
   made. The srcset therefore ends on the uncropped 1254 square, which
   `object-fit: cover` crops to the identical centred 4:3 the ladder rungs are
   cut to, so a retina display gets 1254 into 1298 (1.03x, effectively 1:1)
   rather than 1200w blown up 8%. Do not add a 2000w rung: it is an upscale of
   the same 1254 pixels. The uncropped square is also what the lightbox opens.

   THE FRAMES ARE NOT REGISTERED, and they do not need to be. The two shots
   are from slightly different positions, which would matter under a wipe and
   does not matter side by side; that is part of why this is a static pair and
   not a fourth slot in the .ba-carousel above. */
.jobpair {
  background-color: var(--charcoal);
  padding: 76px 0 84px;
}

/* Gold rather than the default gold-hover: the same split .road__tag makes,
   the brighter token on the dark ground. */
.jobpair .section-label {
  text-align: left;
  color: var(--gold);
}

.jobpair h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.jobpair__lead {
  max-width: 68ch;
  color: #C9C6C0;
  line-height: 1.72;
  margin: 0 0 38px;
}

.jobpair__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background-color: #3A3A3B;
}

/* Stacked below 900, where a half-width facade is too small to read the
   brick in, which is the only thing the pair is here to show. */
@media (min-width: 900px) {
  .jobpair__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.jobpair__frame {
  margin: 0;
  min-width: 0;
}

.jobpair__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.jobpair__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .jobpair__media img {
    transition: transform 0.5s ease;
  }

  .jobpair__media:hover img {
    transform: scale(1.03);
  }
}

.jobpair__cap {
  max-width: 78ch;
  margin: 22px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #C9C6C0;
}

/* ============================================================
   /colors  (Vazul, Sep 3 2026: "totally take ownership of that page")
   ============================================================
   SCOPE. Every selector below is used on colors.html and nowhere else, which
   is the constraint he set when he chose "colors page only" over "shared CSS
   OK". That is why .color-steps gets a .cx-warm MODIFIER instead of having its
   background changed in place: the class happens to be single-page today, and
   a modifier keeps it that way on purpose rather than by luck.
   Because nothing here reaches another page, the ?v= token is bumped on
   colors.html alone. The other 23 pages keep serving the cached stylesheet;
   it is missing only rules they never select.

   WHY THE PAGE NEEDED A RANGE GRID AT ALL. The brief asked whether we need the
   equivalent of masonrycosmetics.com/permanent-brick-stain's colour section.
   We do, and RUNNING-CHANGES already ruled twice on the form it cannot take:
   no swatch catalogue, because our system has no chart and naming colours
   would invent a palette nobody could then order. The resolution is that the
   swatches are REAL WALLS. Every tile is a finished job, captioned with the
   move that was made on that specific building, so the grid states a range
   without implying a product line. It is also the direct answer to Kate on the
   Aug 29 call: "I want to see the difference between a gray house and a red
   house... people are just going to be led by images."

   THE BOX IS 416 CSS PX AT 4:3, three across in the 1300px content row with a
   26px gutter, and the only rungs in the srcsets are 416 and its exact 2x.
   Rationale and the moire arithmetic are in scripts/optimize-fit-crops.sh and
   docs/13. Do not widen the grid without recutting the rungs.

   NO .cut-corners ANYWHERE IN THIS BLOCK. Every box here holds a photograph,
   and the notch is UI chrome only (docs/10, Vazul Sep 1 2026). A colours page
   is exactly where that rule is most tempting to break.
   ============================================================ */

.cx-range {
  background: var(--light-band);
  padding: 64px 0 60px;
}

.cx-range .section-label,
.cx-nochart .section-label,
.cx-spec .section-label {
  text-align: left;
}

.cx-range__lead {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
}

.cx-range__grid,
.cx-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 34px;
}

.cx-range__item,
.cx-panel {
  margin: 0;
}

/* aspect-ratio rather than a padding-top box: the intrinsic width/height on
   the <img> already reserves the space, so this only has to hold the ratio
   steady while the file is in flight. */
.cx-range__media,
.cx-panel__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--hairline);
  overflow: hidden;
}

.cx-range__media img,
.cx-panel__media img,
.cx-nochart__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- On Site band (Vazul, Oct 5 2026, option 02 of the layout board).
   The three panel photographs on charcoal, each with a place and year tag in
   the .cx-range__move voice and the caption under it. Grid, boxes and rungs
   are the shared .cx-panels ones, untouched. No .cut-corners: photographs. */
.cx-onsite {
  background: var(--charcoal);
  padding: 64px 0 66px;
}

.cx-onsite .section-label {
  text-align: left;
  color: var(--gold);
}

.cx-onsite h2 {
  color: var(--white);
}

.cx-onsite .cx-panel__media {
  background: var(--charcoal-2);
}

.cx-panel__meta {
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.cx-onsite .cx-panel__meta + .cx-panel__cap {
  margin-top: 7px;
}

.cx-onsite .cx-panel__cap {
  color: #BDB9B0;
}

/* The move, not a colour name. "Buff yellow to charcoal" describes what
   happened on one building; "Charcoal" would read as a product to order. */
.cx-range__move {
  display: block;
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-hover);
}

.cx-range__cap,
.cx-panel__cap {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cx-panel__cap {
  margin-top: 13px;
}

.cx-range__note {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 74ch;
}

.cx-range__note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- The no-chart band ---------- */
.cx-nochart {
  background: var(--light-band);
  padding: 64px 0 60px;
}

.cx-nochart__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 28px;
}

.cx-nochart__body p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink);
  max-width: 66ch;
}

.cx-nochart__body p + p { margin-top: 1rem; }

.cx-nochart__fig {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 12px;
  box-shadow: 0 1px 2px rgba(30, 43, 73, 0.06), 0 14px 34px -14px rgba(30, 43, 73, 0.22);
}

.cx-nochart__figcap {
  margin-top: 12px;
  padding: 2px 4px 2px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cx-panels {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
}

/* In the On Site band the heading does the separating, not a hairline. */
.cx-onsite .cx-panels {
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Specifier band ---------- */
.cx-spec {
  background: var(--white);
  padding: 62px 0 66px;
}

.cx-spec__lead {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 70ch;
  margin-bottom: 40px;
}

/* The warm ground is a MODIFIER, never a change to .proof-band itself, which
   also runs on /services, /residential and /warranty and must stay white there.
   THE BAND ORDER ON THIS PAGE, and the reason this modifier has to exist:
     hero white / range warm / four changes white / no chart warm /
     the four steps white / before and after WARM / datasheet charcoal /
     specifiers white / FAQ warm / CTA charcoal
   Never two of the same ground in a row. That is the convention stated in the
   .spec-closing and .jobpair comments earlier in this file ("two beige bands in
   a row read as one long empty stretch"), and .proof-band is the one slot in
   the run above where the default ground was the wrong one. */
.proof-band.cx-warm {
  background-color: var(--light-band);
}

@media (min-width: 640px) {
  .cx-range__grid,
  .cx-panels { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cx-range { padding: 76px 0 68px; }
  .cx-nochart { padding: 76px 0 70px; }
  .cx-onsite { padding: 76px 0 80px; }
  .cx-spec { padding: 74px 0 78px; }
  .cx-range__grid,
  .cx-panels { grid-template-columns: repeat(3, 1fr); }
  /* Text column first, the figure plate second. Widened from 327 to 520 on
     Vazul's ask (Oct 5 2026, "enlarge it, more enterprisey"); the source is
     654x668, so 520 still sits above 1x and the 654 rung serves it. */
  .cx-nochart__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 64px;
    align-items: start;
  }
}

/* The four kinds of change, lifted out of the 760px .content measure into a
   full-width four-across grid. Same hairline rhythm and the same breakpoint
   ladder as .color-steps__list, deliberately: they are the two four-item
   sections on this page and they should read as a pair. */
.cx-changes {
  background: var(--white);
  padding: 64px 0 60px;
}

.cx-changes .section-label { text-align: left; }

.cx-changes__grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}

.cx-change {
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.cx-change h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--w-head);
  letter-spacing: -0.008em;
  line-height: 1.22;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.cx-change p {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0;
}

.cx-changes__note {
  margin-top: 26px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 76ch;
}

/* The before/after head. .proof-band__head centres its label and subtitle,
   which is right on /services and /residential where the h2 is centred too.
   This page runs every section head left, so without these two the band came
   out with a centred eyebrow over a left h2 over a centred subtitle. */
.proof-band.cx-warm .proof-band__head .section-label,
.proof-band.cx-warm .proof-band__head .section-subtitle {
  text-align: left;
}

.proof-band.cx-warm .proof-band__head .section-subtitle {
  margin-left: 0;
  max-width: 68ch;
}

@media (min-width: 640px) {
  .cx-changes__grid { grid-template-columns: repeat(2, 1fr); }
  .cx-change { padding-right: 34px; }
  .cx-change:nth-child(2n) { padding-right: 0; }
}

@media (min-width: 1024px) {
  .cx-changes { padding: 76px 0 68px; }
  .cx-changes__grid { grid-template-columns: repeat(4, 1fr); }
  .cx-change:nth-child(2n) { padding-right: 34px; }
  .cx-change:nth-child(4n) { padding-right: 0; }
}

/* Prose margins inside the specifier blocks. .content gives <p> a bottom
   margin but nothing gives one to a paragraph that FOLLOWS a .step-list, a
   .spec-callout, a .mockup-note or a .doc-inline, so those paragraphs landed
   hard against the block above them with no gap at all.
   /commercial/architects-engineers never hits this because no paragraph on
   that page follows one of those four. Fixed here rather than in the
   components themselves, per the colours-page-only scope Vazul set. */
.cx-spec .step-list + p,
.cx-spec .spec-callout + p,
.cx-spec .mockup-note + p,
.cx-spec .doc-inline + p,
.cx-spec .step-list + .doc-inline,
.cx-spec p + .doc-inline,
.cx-spec p + .spec-callout,
.cx-spec p + .mockup-note {
  margin-top: 1.5rem;
}

.cx-spec .related-links {
  margin-top: 1.8rem;
}

/* ---------- Builders & Contractors: on-site aside and before/after strip ----------
   Real crew and job photos beside the copy so the page is not text on a blank
   field (Vazul, Oct 5 2026). Single column on phones, the aside drops below the
   copy; from 1024px it sits beside it and sticks. Plain rectangles, no
   cut-corners: these are photographs. */
.photo-strip--ba figure,
.crew-figure {
  margin: 0;
}

.photo-strip--ba img,
.crew-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.photo-strip--ba figcaption,
.crew-figure figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.photo-strip--ba figcaption strong {
  color: var(--charcoal);
}

.detail-aside {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .detail-aside {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .detail-grid--aside {
    grid-template-columns: minmax(0, 760px) 340px;
    justify-content: space-between;
    gap: 56px;
  }

  .detail-aside {
    position: sticky;
    top: 110px;
    margin-top: 2.5rem;
  }
}

/* ==========================================
   SMALL GOLD TEXT CONTRAST (WCAG 1.4.3, Oct 6 2026)
   Last in the file on purpose: one place that overrides every small gold
   label sitting on white or the light band. Anything on a dark band takes
   the brand gold back below, because the deep gold fails there.
   ========================================== */
.section-label,
.frameset-head,
.featured-tag,
.spec-block__num,
.cx-range__move,
.proof-item__n,
.term__label,
.color-step__n,
.road--stain .road__amt--quiet,
.team-sub,
.mockup-note__label,
.spec-figure__num,
.contact-proof__num,
.mission-slogan,
.receipt__filelabel,
.fitcheck__col--no h3,
.road--stain .road__tag,
.campus-proof__n,
.worktabs__tab span {
  color: var(--gold-text);
}

.roads-band .section-label,
.contact .section-label {
  color: var(--gold);
}

/* The selected tab is navy below 1024px (its own rule keeps brand gold
   there) and an underline on the light band above it. */
@media (min-width: 1024px) {
  .worktabs__tab[aria-selected="true"] span {
    color: var(--gold-text);
  }
}

/* One-card review band (/commercial, Oct 14 2026): the homepage wall goes
   three columns at desktop, which would leave a lone card in a third of
   the row. */
@media (min-width: 1024px) {
  .testimonials--single .testimonial-wall {
    columns: 1;
    max-width: 820px;
    margin: 0;
  }
}

/* ---------- Case study -> city page link (Oct 16 2026). One plain sentence at
   the foot of a case body, written by scripts/build-city-links.py, pointing a
   reader at the city page for that metro. Body links must read as links. ---------- */
.case-city-link {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.case-city-link a {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.case-city-link a:hover { color: var(--gold-text); }
