@import url("../assets/fonts/fonts.css");

/* ==========================================================================
   Mark Allen Builders, v3
   Palette sampled from his own MA gable monogram.
   Dial settings: variance 6, motion 3, density 4. Below baseline on purpose:
   the visitor is one to three months into an insurance claim and stressed,
   and every competitor in this category shouts. Calm is the differentiator.
   ========================================================================== */

:root {
  --paper:  #EAE9E5;
  --card:   #F6F5F2;
  --ink:    #0F100F;
  --text:   #272827;
  --muted:  #4F504A;
  --accent: #3D2E6B;
  --accent-lt: #A99CD6;
  --hair:   #CFCEC8;
  --field:  #FFFFFF;

  /* Inverse fields are a DESIGN CHOICE, not a theme. They must stay dark in
     both colour schemes, so they get their own tokens rather than reusing
     --ink, which flips. Reusing --ink here shipped light-on-light once. */
  --on-dark:      #EAE9E5;
  --on-dark-mut:  #ADADA6;
  --on-dark-soft: #D6D5D0;
  --dark-field:   #0F100F;
  --dark-field-2: #141513;

  --disp: "EB Garamond", "Libre Baskerville", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* macro-micro scale. The gap between these is the point: template sites
     put everything between 16 and 48px, which is what reads as corporate. */
  --t-hero:  clamp(1.95rem, 4.6vw, 3.5rem);
  --t-lg:    clamp(1.65rem, 4vw, 3.25rem);
  --t-md:    clamp(1.45rem, 3.1vw, 2.6rem);
  --t-beat:  clamp(1.12rem, 2.1vw, 1.8rem);
  --t-num:   clamp(3.25rem, 6.6vw, 5.5rem);
  --t-body:  1.0625rem;

  --pad: clamp(1.25rem, 4.4vw, 4rem);
  --edge: max(var(--pad), calc((100vw - 1312px) / 2 + var(--pad)));
  --sec: clamp(3.75rem, 7vw, 5.75rem);
  --grain: .05;
}

/* DARK MODE. The paper/card alternation is what gives the page its rhythm -
   every section sits on one or the other, and the eye reads the change as a new
   idea starting.
   In light mode that works: #EAE9E5 against #F6F5F2, with the near-black
   .sec--dark bands as punctuation between them.
   In dark mode it collapsed. --paper #1D1E1B, --card #26271F and .sec--dark's
   near-black were three shades of almost the same colour, so consecutive
   sections merged into one undifferentiated slab and the page read as a wall of
   text. Chufeng caught it on the two insurance sections, where a paper band and
   a dark band sit back to back and looked like a single section.
   The tints below are pulled further apart so the same rhythm survives: card is
   now clearly lifted off paper, and .sec--dark's fixed near-black still reads as
   the darkest of the three. Contrast of body text against each was re-checked. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171815; --card: #24251E; --ink: #EAE9E5; --text: #DCDBD6;
    --muted: #A3A39C; --accent: #A99CD6; --accent-lt: #C4BAE6;
    --hair: #3A3B33; --field: #101110; --grain: .03;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 var(--t-body)/1.65 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent-lt); outline-offset: 3px; }

/* Grain. Stops the page reading as glass. Fixed + pointer-events:none so it
   never repaints on scroll. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; } }

.wrap { max-width: 1312px; margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.sec--paper { background: var(--paper); }
.sec--card  { background: var(--card); }
/* Two sections of the same tint in a row have no colour boundary, so the two
   padding blocks stack and open a hole roughly twice the intended gap. The
   page then reads as one slab with a void in it rather than as two sections.
   Halve the second section's top padding so the seam is one gap wide. This is
   a boundary rule, not a per-page fix: it also lands on /kitchens/,
   /bathrooms/, /additions/ and /custom-homes/, which have had the same
   doubled gap since round 1. Only same-tint neighbours are matched -
   paper next to card keeps the full pair of paddings, because there the
   colour change is doing the separating.
   Zero, not half: the section above already contributes a full gap of bottom
   padding, so zero here makes the seam exactly one gap wide. */
.sec--paper + .sec--paper,
.sec--card  + .sec--card { padding-block-start: 0; }
.sec--dark  { background: var(--dark-field); color: var(--on-dark-soft); }
.sec--dark h2, .sec--dark h1 { color: var(--on-dark); }

.skip { position: absolute; left: -9999px; background: #0F100F; color: #EAE9E5; padding: .75rem 1rem; z-index: 70; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- micro type. the counterweight to the display sizes ---------- */
.micro {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; line-height: 1.6; color: var(--accent);
}
.micro--dark { color: var(--accent-lt); }
.micro--mut  { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 1rem 1.75rem;
  border: 1px solid transparent; border-radius: 0;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .25s cubic-bezier(.25,1,.5,1), opacity .25s;
}
.btn--primary { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--primary { color: #14150F; } }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--on-dark { background: transparent; color: #EAE9E5; border-color: #EAE9E5; }
.btn--on-dark:hover { background: #EAE9E5; color: #0F100F; }
.btn--light { background: #EAE9E5; color: #0F100F; }
/* On .mast--over the chip sits on a photograph and reads on its own. On the
   opaque masthead (/contact/) it is the SAME colour as the bar - 1.00:1 -
   so the site's header CTA had no shape at all. */
.mast:not(.mast--over) .btn--light { border-color: var(--hair); background: var(--card); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: .75rem 1.15rem; font-size: .9rem; }
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }

/* ---------- masthead. transparent over the hero, solid elsewhere ---------- */
.mast { background: var(--paper); border-bottom: 1px solid var(--hair); position: relative; z-index: 5; }
.mast--over { background: transparent; border-bottom: 0; position: absolute; inset: 0 0 auto; }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

/* Brand: monogram image + live text, replacing the old whole-square img.
   ALL sizing for both pieces lives HERE, in one place, on purpose - the sizing
   used to be split across two non-cascading rules (this one and a second one
   near the type-scale section far below), which is the exact bug Mark caught:
   the second rule won on source order, so the logo rendered at 42-54px tall
   instead of the ~76-96px this rule alone would have given it. Do not add a
   second `.mast__brand img` or `.mast__mark img` sizing rule anywhere else in
   this file - extend this block instead. */
/* text-decoration: none is NOT optional here. Every other link in this file
   resets it explicitly; .mast__brand was the one that did not, and it did not
   matter while the brand was an image only - an underline has nothing to
   underline. The moment the wordmark became live text this round, the company's
   own name rendered underlined in the header of all 16 pages, in both the
   over-hero and opaque variants. Caught by screenshot; the width and overlap
   measurements all passed. */
.mast__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }

/* The source asset (mark-allen-logo-ink/white.png) is a 160x160 STACKED
   lockup: monogram, then "MARK ALLEN", then a rule, then "BUILDERS" - there is
   no monogram-only file. Pixel-measured the monogram's bounding box at
   x:60-96 y:36-65 of the 160x160 source (see build.py Phase 7 notes); cropped
   to a 50x50 square around it (x:53-103 y:25-75) for a little breathing room.
   .mast__mark is a fixed square window with overflow hidden; the img inside is
   blown up by 160/50 = 320% and pulled left/up by that same crop origin
   (53/50=106%, 25/50=50%) so only the monogram shows. Change the crop, change
   all three numbers together - they come from one ratio. */
/* SIZE, measured against what sits next to it. Mark's complaint was that the
   logo was "much too small... on mobile it's even worse" and asked us to
   "increase the actual logo substantially on both desktop and mobile".
   The first pass fixed the real bug - the old stacked lockup rendered
   "BUILDERS" about 3px tall - but shipped a mark SMALLER than before on
   phones (42px -> 36px) and a wordmark at 13.1px, which measured smaller than
   the "Menu" label beside it (15.2px) and smaller than body text. Changing the
   technique is not the same as making it bigger, which is what he asked for.
   The floor is now 44px / 15.5px so the company name is never the smallest
   thing in its own header. */
.mast__mark {
  display: block; position: relative; overflow: hidden; flex: none;
  width: clamp(44px, 3.6vw, 54px); height: clamp(44px, 3.6vw, 54px);
}
.mast__mark img {
  position: absolute; top: -50%; left: -106%; width: 320%; max-width: none; height: auto;
}
@media (prefers-color-scheme: dark) { .mast:not(.mast--over) .mast__mark img { filter: invert(1); } }

.mast__word {
  font-family: var(--disp); font-weight: 600; letter-spacing: -.01em; line-height: 1;
  font-size: clamp(.97rem, 1.9vw, 1.3rem); color: var(--ink); white-space: nowrap;
}
.mast--over .mast__word { color: #EAE9E5; }
/* Narrowest phones: the hamburger sits close on the right and .mast__word has
   nowhere to wrap (white-space: nowrap, needed so it can't break mid-word) -
   body{overflow-x:hidden} would clip a too-wide wordmark silently rather than
   visibly break the layout. Shrink and tighten before that width is reached. */
/* This override is what actually decided the size on a phone, and at .82rem
   (13.1px) it undercut the clamp floor above and put the company name below the
   "Menu" label next to it. Raised to .95rem (15.2px). Re-measured at 320/360/
   375/390 for overflow afterwards - the reason this override exists at all is
   that .mast__word is white-space:nowrap and body{overflow-x:hidden} would clip
   a too-wide wordmark silently rather than break the layout visibly. */
@media (max-width: 400px) { .mast__word { font-size: .95rem; letter-spacing: -.02em; } }
.mast__nav { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.9rem); }
.mast__nav a:not(.btn) {
  font-size: .95rem; font-weight: 500; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.mast--over .mast__nav a:not(.btn) { color: #EAE9E5; }
.mast__nav a:not(.btn):hover { color: var(--accent); }
.mast--over .mast__nav a:not(.btn):hover { color: #fff; }
@media (max-width: 1040px) { .mast__nav a:not(.btn) { display: none; } }
/* the sticky call bar owns calling on phones. three identical buttons in one
   view is the thing he flagged on v1. */
@media (max-width: 767px) { .mast__nav .btn { display: none; } .mast__in { min-height: 64px; } }
/* 768-1039: the nav links are hidden but the Call chip is not, so the flex
   middle child collapses and space-between parks the CTA mid-bar. Push it
   next to the menu button instead. */
@media (min-width: 768px) and (max-width: 1039px) {
  .mast__in { justify-content: flex-start; gap: 1rem; }
  .mast__nav { margin-left: auto; }
}

/* 1041-1160: found 2026-08-08 while re-measuring the header after the CTA
   rename ("Book a Visit" -> "Schedule a Consultation", 12 chars -> 24). At the
   default gap/font-size the six nav links plus the longer label no longer fit
   on one line just above the 1040px breakpoint - "What We Build" and
   "Schedule a Consultation" both wrapped to two lines, silently growing the
   header past its min-height. This is exactly the class of header-crowding
   bug already flagged once on this project (768-1039, above); the CTA rename
   opened a second band of it immediately above 1040. Verified empirically
   with the old label at this width: no wrap. Tightening gap and font-size
   ONLY in this band restores one line without touching how the header looks
   at 1440, where the wider defaults were already fine. */
@media (min-width: 1041px) and (max-width: 1160px) {
  .mast__nav { gap: clamp(.6rem, 1vw, 1rem); }
  .mast__nav a:not(.btn) { font-size: .88rem; }
}

/* ---------- immersive hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark-field); isolation: isolate; }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,15,.85) 0%, rgba(15,16,15,.54) 42%, rgba(15,16,15,.78) 100%),
    linear-gradient(90deg, rgba(15,16,15,.82) 0%, rgba(15,16,15,.62) 50%, rgba(15,16,15,.2) 100%);
}
.hero__in { position: relative; z-index: 2; }
.hero--home .hero__in { min-height: min(88dvh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 8rem clamp(3rem, 6vw, 5rem); }
.hero--page .hero__in { min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 9rem clamp(2.5rem, 5vw, 4rem); }
.hero h1 { font-size: var(--t-hero); line-height: 1.14; letter-spacing: -.03em; color: #fff; max-width: 34ch; text-wrap: balance; }
.hero--page h1 { max-width: 18ch; }
.hero__sub { margin-top: 1.35rem; max-width: 52ch; font-size: clamp(1.02rem, 1.4vw, 1.19rem); line-height: 1.62; color: var(--on-dark-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }
.hero .micro { margin-bottom: 1.25rem; }
@media (max-width: 560px) { .hero__ctas .btn { width: 100%; } }

/* ---------- S2 the estimate gap. beats, not paragraphs ---------- */
.gap { border-top: 3px solid var(--accent); }
.gap__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: 2.5rem; }
.gap h2 { font-size: var(--t-md); line-height: 1.16; letter-spacing: -.028em; }
.gap__badge { display: inline-block; margin-top: 2rem; border: 1px solid var(--accent); padding: .7rem 1rem; }
.beat { font-family: var(--disp); font-weight: 700; font-size: var(--t-beat); line-height: 1.44; letter-spacing: -.012em; color: var(--ink); }
.beat + .beat { margin-top: 2.25rem; }
.beat--key { color: var(--accent); }
@media (max-width: 860px) { .gap__grid { grid-template-columns: 1fr; } }

/* ---------- S3 right to choose. macro-micro inversion ---------- */
/* ---------- photographic band ----------
   A full-bleed photograph with the type set over it, same device as the hero.
   Used for the two insurance arguments, which were text-only slabs with a dead
   right half before.

   The scrim is a LEFT-TO-RIGHT gradient, not a flat overlay: both photographs
   were composed with their subject on the right and open space on the left, so
   the darkening is heaviest exactly where the words go and clears away over the
   part of the picture worth seeing. A flat scrim would mute the photograph to
   pay for text contrast it only needs on one third of the frame.

   min-height is in dvh, never vh - vh jumps on iOS as the address bar hides. */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(30rem, 56dvh, 40rem);
  padding-block: var(--sec);
  background: var(--dark-field);
  color: var(--on-dark-soft);
}
.band--deep { min-height: clamp(34rem, 68dvh, 46rem); }
.band__media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center right;
}
/* The scrim is a pseudo-element rather than a third div: it is decoration, and
   an empty div in the markup is a thing a screen reader has to skip past. */
/* Extended to match the wider text column. The dense part of the mask now runs
   to ~46% instead of 28%, because the headline does too - the text decides how
   far the scrim reaches, not the other way round. It still clears to almost
   nothing over the right third, which is where both photographs put the thing
   worth looking at. */
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg,
    rgb(15 16 15 / .95) 0%,
    rgb(15 16 15 / .92) 30%,
    rgb(15 16 15 / .82) 46%,
    rgb(15 16 15 / .48) 64%,
    rgb(15 16 15 / .26) 82%,
    rgb(15 16 15 / .20) 100%);
}
.band__in { position: relative; z-index: 1; width: 100%; }
/* MEASURE. The first version capped the headline at 20ch to keep type clear of
   the photograph's subject, and that was the wrong trade: it broke both
   headlines onto three cramped lines while half the band sat empty. Chufeng:
   "why do we make the block of text so packed? we have enough space."
   Both headlines are 56-62 characters, so ~32ch sets them in two comfortable
   lines. The scrim below was extended to cover the wider column rather than
   squeezing the words to fit the old scrim - the mask is the cheap thing to
   move, the reading is not.
   Written as `.band .band__col h2` on purpose: `.choose h2` further down sets
   max-width 20ch at equal specificity and later source order, so it would win
   over a plain `.band h2` and re-break the second band. That rule still has a
   job on the restoration hub, where .choose appears outside a band. */
/* NOT in `ch`. A `ch` cap on this element resolves against ITS font - 17px sans
   - so 54ch was about 508px, and it bound long before the headline's own 32ch
   cap (32 characters of a 52px serif is roughly 830px) ever came into play. The
   headline kept breaking to three lines and no amount of raising the h2 cap did
   anything, because the h2 was never the constraint. Sized in rem with a
   percentage ceiling instead, so it is independent of whatever font the children
   happen to use and still leaves the right of the frame to the photograph. */
.band__col { max-width: min(46rem, 62%); }
.band .band__col h2 {
  color: var(--on-dark); font-size: var(--t-lg); line-height: 1.14;
  letter-spacing: -.03em; margin-top: 1.25rem; max-width: 32ch;
}
.band__beat { margin-top: 1.15rem; color: var(--on-dark-soft); font-size: 1.05rem; line-height: 1.6; }
.band__key { margin-top: .9rem; color: var(--accent-lt); font-weight: 600; font-size: 1.05rem; line-height: 1.6; }
.band .gap__badge { display: inline-block; }

/* Phones: the photographs are 16:9 and their subject sits right of centre, so a
   `cover` crop at portrait aspect would push it off-frame entirely and leave a
   wall or a lawn behind the text. Pull the focal point back toward the middle
   and deepen the scrim, since there is no longer a clear side to hide in. */
@media (max-width: 700px) {
  .band { min-height: clamp(26rem, 62dvh, 34rem); }
  .band--deep { min-height: clamp(30rem, 72dvh, 38rem); }
  /* The 62% ceiling is a desktop device for keeping type off the subject. On a
     phone there is no room to give away, and the scrim below covers the whole
     frame anyway, so the column takes the full width. */
  .band__col { max-width: none; }
  .band__media { background-position: 62% center; }
  .band::after {
    /* Starts at .88, not .74. The eyebrow badge sits near the top of the band,
       which on the ceiling photograph is the brightest part of the frame, and a
       light top stop left it washed out at 320px. The mobile scrim has no side
       to hide in, so it carries the whole frame. */
    background: linear-gradient(175deg,
      rgb(15 16 15 / .88) 0%,
      rgb(15 16 15 / .90) 45%,
      rgb(15 16 15 / .95) 100%);
  }
}

.choose__q { max-width: 46ch; }
.choose h2 { font-size: var(--t-lg); line-height: 1.14; letter-spacing: -.03em; margin-top: 1.5rem; max-width: 20ch; }
.choose__sub { margin-top: 1.15rem; color: var(--on-dark-soft); max-width: 54ch; }

/* ---------- S4 process index ---------- */
.runs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.runs h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; }
.runs__sub { margin-top: 1.1rem; color: var(--muted); }
.runs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2.75rem; }

/* "Who is actually on your job" - the answer is three numbers, so they get the
   display treatment instead of being set as small print in a 2x2 of hairlined
   label/paragraph pairs beside a short headline. Full width, so nothing is left
   empty beneath a short column.
   .nums is the About page's existing component, reused rather than reinvented;
   only the spacing around it is new here. */
/* Same: needs 439px on one line, the 20ch cap was 427px - just barely too tight,
   which is what left "actually" dangling at the end of line one. */
.who h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; }

/* The restoration pointer: a doorway on the homepage, not a section competing
   with the ones around it. Shorter padding and a smaller heading than its
   neighbours are what make it read as "there is more this way" rather than "here
   is the restoration content". The link takes the same accent-underline
   treatment as the tile links, because Mark asked us to keep the descriptive
   navigation CTAs consistent and recognisable. */
/* ---------- craftsmanship ----------
   Evidence, not navigation. The tile grid above it is image + heading + link,
   so this deliberately carries NO chrome: no card, no border, no caption, no
   link. Three photographs and nothing else, because the argument is the
   photographs.
   Asymmetric on purpose - one tall left, two stacked right - so it does not
   become a fourth equal-thirds row on a page that already has a four-tile grid
   and a two-up project pair. Same corner radius as everything else on the site
   (square), same paper tint, so the difference is composition and not styling. */
.craft h2 { font-size: var(--t-md); line-height: 1.18; letter-spacing: -.028em; }
.craft__sub { margin-top: 1rem; color: var(--muted); max-width: 60ch; line-height: 1.6; }
.craft__grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: clamp(.85rem, 1.6vw, 1.25rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
/* The tall one spans both rows. Its image is portrait-cropped by object-fit,
   which is why the source is landscape and the box decides the shape. */
.craft__tall { grid-row: 1 / span 2; }
.craft__grid figure { margin: 0; overflow: hidden; background: var(--field); }
.craft__grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.craft__tall img { min-height: clamp(20rem, 34vw, 30rem); }
.craft__grid figure:not(.craft__tall) img { height: clamp(9.5rem, 16.5vw, 14.5rem); }
/* Phones: the side-by-side asymmetry has nowhere to go, so it turns 90 degrees
   instead of collapsing to a single stack. The tall image goes full width on
   the first row and the two detail shots share the second row. Three
   full-bleed images stacked is a long scroll and reads as a list; this keeps
   the composition and roughly halves the height. Stated explicitly rather than
   left to the grid to work out, per the mobile-collapse rule. */
@media (max-width: 760px) {
  .craft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .craft__tall { grid-row: auto; grid-column: 1 / -1; }
  .craft__tall img { height: clamp(13rem, 56vw, 19rem); min-height: 0; }
  .craft__grid figure:not(.craft__tall) img { height: clamp(8rem, 31vw, 11rem); }
}

.pointer { padding-block: clamp(2.5rem, 4.5vw, 3.75rem); }
/* --t-beat, not an invented --t-sm. The first version referenced a token this
   file does not define, so only the hard-coded fallback applied and the heading
   became the one fixed-size heading on a site where every other one scales with
   the viewport. --t-beat is the existing step between a section heading and body
   text, which is exactly what a pointer wants. */
/* No max-width. THIRD time this session an arbitrary ch cap forced a headline
   onto two lines with room to spare - the estimating section and the "who is on
   your job" heading were the other two. This one is 42 characters at ~29px and
   fits on one line comfortably; the 26ch cap broke it after "one of".
   `text-wrap: balance` is already global on h2 and handles the narrow viewports
   where a break is genuinely needed. Measure before you cap. */
.pointer h2 { font-size: var(--t-beat); line-height: 1.22; letter-spacing: -.02em; }
.pointer__p { margin-top: 1rem; color: var(--muted); max-width: 58ch; line-height: 1.6; }
.pointer__link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem;
  font-size: .95rem; font-weight: 600; color: var(--accent); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.who__nums { margin-top: clamp(2rem, 4vw, 3rem); }
/* THREE columns, matching .nums exactly, so each fact sits under the numeral it
   belongs to and no column is left empty. The gap is .nums' own gap for the same
   reason - if the two grids drift apart the alignment reads as an accident. */
.who__facts { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.who__facts p { color: var(--muted); font-size: 1rem; line-height: 1.62; max-width: 34ch; }
@media (max-width: 760px) { .who__facts { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--accent); padding-top: 1.15rem; }
.step h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.step p { margin-top: .65rem; font-size: .97rem; line-height: 1.62; color: var(--muted); }
@media (max-width: 900px) { .runs { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .runs__grid { grid-template-columns: 1fr; } }

/* ---------- S5 full bleed strip. breaks the margin rhythm on purpose ---------- */
.bleed h2 { font-size: var(--t-lg); line-height: 1.14; letter-spacing: -.03em; }
.bleed__sub { margin-top: 1.1rem; max-width: 52ch; font-size: 1.09rem; color: var(--text); }
.bleed__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2.75rem; }
.bleed__strip img { width: 100%; height: clamp(240px, 29vw, 420px); object-fit: cover; }
.bleed__cap { margin-top: 1rem; padding-inline: 1.25rem; font-family: var(--disp); font-weight: 700; font-size: 1.05rem; line-height: 1.36; color: var(--ink); }
@media (max-width: 860px) { .bleed__strip { grid-template-columns: 1fr; gap: 1px; } .bleed__cap { padding-inline: var(--pad); } }

/* ---------- S6 category grid ---------- */
.cats h2 { font-size: var(--t-lg); line-height: 1.14; letter-spacing: -.03em; }
.cats__sub { margin-top: 1.1rem; max-width: 52ch; font-size: 1.09rem; }
.cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.4vw, 2.15rem); margin-top: 2.9rem; }
.cat img { width: 100%; height: clamp(260px, 27vw, 400px); object-fit: cover; }
.cat h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .02em; margin-top: 1.15rem; }
.cat a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 980px) { .cats__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cats__grid { grid-template-columns: 1fr; } }

/* ---------- S7 what we don't do ---------- */
.nots { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.nots h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; }
.nots__sub { margin-top: 1.1rem; color: var(--muted); }
.not { border-top: 1px solid var(--hair); padding-top: 1.35rem; }
.not + .not { margin-top: 1.75rem; }
.not h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.not p { margin-top: .6rem; line-height: 1.68; }
@media (max-width: 860px) { .nots { grid-template-columns: 1fr; } }

/* ---------- S8 numerals. the macro moment ---------- */
.about h2 { font-size: var(--t-lg); line-height: 1.12; letter-spacing: -.032em; max-width: 22ch; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3rem; }
.num { border-top: 2px solid var(--accent); padding-top: 1.35rem; }
.num__n { font-family: var(--disp); font-weight: 700; font-size: var(--t-num); line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.num__l { margin-top: .75rem; }
.about__body { margin-top: 2.5rem; max-width: 58ch; font-size: 1.09rem; line-height: 1.66; }
.about__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.25rem; font-size: .95rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 700px) { .nums { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- S9 accordion. all the depth lives here, closed by default ---------- */
.faq { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; }
.faq__sub { margin-top: 1.1rem; color: var(--muted); }
.qa { border-top: 1px solid var(--hair); }
.qa:last-of-type { border-bottom: 1px solid var(--hair); }
.qa > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: 1.35rem; cursor: pointer; list-style: none;
  font-size: 1.06rem; font-weight: 600; line-height: 1.5; color: var(--ink);
  min-height: 44px;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary:hover { color: var(--accent); }
.qa__mark { position: relative; width: 16px; height: 16px; flex: none; }
.qa__mark::before, .qa__mark::after { content: ""; position: absolute; background: var(--accent); }
.qa__mark::before { inset-inline: 0; top: 7px; height: 2px; }
.qa__mark::after { inset-block: 0; left: 7px; width: 2px; transition: transform .25s cubic-bezier(.25,1,.5,1); }
.qa[open] .qa__mark::after { transform: scaleY(0); }
.qa__a { margin: 0 0 1.35rem; max-width: 62ch; line-height: 1.7; color: var(--text); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- closer ---------- */
.closer { position: relative; overflow: hidden; background: var(--dark-field); }
.closer__media { position: absolute; inset: 0; background: url("../assets/img/reno-custom-home.jpg") center/cover; }
.closer__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,16,15,.95) 0%, rgba(15,16,15,.84) 46%, rgba(15,16,15,.34) 100%); }
.closer__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.closer h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; color: #fff; max-width: 18ch; }
.closer__p { margin-top: 1.15rem; color: var(--on-dark-soft); max-width: 44ch; }
.closer .btn { margin-top: 1.85rem; }
@media (max-width: 900px) {
  .closer__grid { grid-template-columns: 1fr; }
  .closer__scrim { background: linear-gradient(180deg, rgba(15,16,15,.9) 0%, rgba(15,16,15,.86) 50%, rgba(15,16,15,.94) 100%); }
}

/* ---------- form ---------- */
.form { background: var(--card); border: 1px solid var(--hair); padding: clamp(1.4rem, 2.6vw, 2.15rem); }
.form__title { font-family: var(--disp); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.form__intro { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field + .field, .form__row + .field { margin-top: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
/* One box rule for every field, so a select can never drift from an input. */
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .85rem; border: 1px solid var(--hair); border-radius: 0;
  background: var(--field); color: var(--text); font: 400 1rem/1.5 var(--sans);
}
/* and this is only what makes a select a select */
.field select {
  padding-right: 2.4rem;
  appearance: none;
  -webkit-appearance: none;
  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' fill='none' stroke='%234F504A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* --- restored from v3 after a bad scripted edit truncated the file --- */
.help { margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.err { margin-top: .4rem; font-size: .875rem; color: var(--accent); font-weight: 600; display: none; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--accent); border-width: 2px; }
.field.is-bad .err { display: block; }
.form .btn { margin-top: 1.5rem; }
.form__note { margin-top: .85rem; font-size: .875rem; color: var(--muted); text-align: center; }

/* Preferred contact. A fieldset, not a div, because these three boxes are one
   question - a screen reader reads the legend once and then each option, rather
   than three unrelated checkboxes. The blanket `.field input` rule above sets
   width:100% and a text-input border, which would have stretched each box across
   the form, so the checkbox is reset back to its own size before anything else. */
.field--choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--choice legend { padding: 0; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Written as `.field--choice .choice`, NOT `.choice`. The blanket
   `.field label { display: block; margin-bottom: .5rem }` above is (0,1,1) and
   beats a bare `.choice` at (0,1,0) - so the chips rendered as blocks, the gap
   was ignored and "Call" sat flush against its own checkbox. Third time this
   project has been caught by a specificity tie; the other two are commented
   further down. */
.field--choice .choice {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0;
  padding: .7rem .95rem; border: 1px solid var(--hair); background: var(--field);
  font-size: .95rem; font-weight: 500; color: var(--text); cursor: pointer;
  /* the whole chip is the target, so it clears 44px without a fixed height */
  min-height: 44px;
}
.choice input[type="checkbox"] {
  width: 1.05rem; height: 1.05rem; padding: 0; margin: 0; flex: 0 0 auto;
  accent-color: var(--accent); cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--card); }
.choice:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Radios share the chip, so the booking page's time window looks like the
   contact chips rather than like a different site. Only the dot differs. */
.field--choice .choice input[type="radio"] {
  width: 1.05rem; height: 1.05rem; padding: 0; margin: 0; flex: 0 0 auto;
  accent-color: var(--accent); cursor: pointer;
}

/* Honeypot. Off-screen rather than display:none - some bots skip anything the
   CSS hides outright. aria-hidden and tabindex="-1" keep it away from people. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- photo attachments ----------
   The real <input type="file"> cannot be styled - browsers render their own
   "Choose files" button and ignore almost everything - so it is taken out of
   the flow and the <label> above it becomes the visible control. The label's
   `for` gives that control BOTH click and keyboard activation natively, so the
   picker still opens with no JavaScript at all.
   NOT display:none: a hidden input is skipped by some assistive technology and,
   in Safari, has been known to drop out of the submitted FormData. Clipped to
   one pixel instead, which keeps it a real, focusable, submitting control. */
.field--photos { margin-top: 1.25rem; }
.field__label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.picker {
  display: block; cursor: pointer; padding: 1.1rem 1rem; text-align: center;
  border: 1px dashed var(--hair); background: var(--field); color: var(--text);
}
.picker strong { display: block; font-size: .98rem; font-weight: 600; }
.picker small { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted); }
.picker:hover { border-color: var(--ink); }
/* `.field--photos .picker__input`, NOT `.picker__input`. The blanket
   `.field input, .field textarea, .field select { width: 100% }` above is
   (0,1,1) and beat a bare class at (0,1,0), so the file input kept full width,
   sat at position:absolute against the page, and pushed the document 34px wider
   than the window at EVERY viewport - a horizontal scrollbar on the two form
   pages. FOURTH specificity tie this project has lost; the other three are
   commented at the gallery rules, the choice chips and .legal. */
.field--photos .picker__input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* Keyboard users get a visible ring even though the input itself is clipped:
   the outline is drawn on the label they can actually see. */
.picker__input:focus-visible + .picker__state,
.picker__input:focus-visible ~ .picker__state { outline: none; }
.field--photos:focus-within .picker { outline: 2px solid var(--ink); outline-offset: 2px; }
.picker__state { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.picker__state[data-state="ready"] { color: var(--ink); font-weight: 600; }
.picker__state[data-state="bad"] { color: var(--accent); font-weight: 600; }

/* Turnstile. The widget is a fixed-size iframe Cloudflare renders itself, so
   there is nothing here to style except the space it sits in. min-height holds
   that space BEFORE the iframe arrives - without it the Send button jumps down
   the page the moment the challenge loads, which is exactly when a thumb is
   already moving towards it. */
.turnstile { margin-top: 1.5rem; min-height: 65px; }

/* Turnstile's widget has a HARD 300px minimum width, and it is a block child of
   the form - so on a narrow phone its 300px became the form's min-content width,
   which became the page's. Measured: at a 320px viewport the document was 367px
   wide, i.e. the whole site scrolled sideways on the two pages with a form.
   360px overflowed too; 390px happened to fit, which is why it survived the
   first sweep.
   `overflow: hidden` stops the 300px child from setting the parent's
   min-content, and the scale shrinks the widget to fit what is actually there.
   transform-origin is left top so it shrinks into the form rather than away
   from it, and the reserved height comes down to match so no gap is left. */
/* The `width: 300px` is the part that matters, and it is not optional.
   Left to fill the container, the widget element became 218px on a 320px phone
   - under Turnstile's 300px minimum - so CLOUDFLARE'S OWN rendering inside the
   iframe overflowed and the logo and Privacy link were cut off. Scaling the
   container did not help, because the element was still being SIZED by it.
   Given a real 300px box the widget renders correctly, and the transform then
   shrinks the finished thing to fit. Scale is chosen per band against the
   measured slot: 218px at 320, 258px at 360, 288px at 390. */
@media (max-width: 400px) {
  .turnstile { overflow: hidden; min-height: 56px; }
  .turnstile .cf-turnstile { width: 300px; transform: scale(.82); transform-origin: left top; }
}
@media (max-width: 340px) {
  .turnstile { min-height: 50px; }
  .turnstile .cf-turnstile { transform: scale(.72); }
}

/* A date input renders its own spinner and calendar button, which sit oddly
   against the flat boxes everywhere else. Height is matched to the text inputs
   so the Preferred day / Backup day pair lines up with Name / Phone above it. */
.field input[type="date"] { min-height: 3.05rem; }

/* ---------- page CTA band ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta h2 { font-size: var(--t-md); line-height: 1.18; letter-spacing: -.028em; }
.cta p { margin-top: 1rem; max-width: 48ch; }
.cta__btns { display: flex; gap: .875rem; flex-wrap: wrap; }

/* ---------- page service list ---------- */
.plist { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.plist h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; }
.pitem { border-top: 1px solid var(--hair); padding-top: 1.35rem; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.75rem; }
.pitem + .pitem { margin-top: 1.75rem; }
.pitem h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); }
.pitem p { line-height: 1.68; }
@media (max-width: 900px) { .plist { grid-template-columns: 1fr; } }
/* The label rail is wider than the description it explains between 620 and
   1100px, wrapping descriptions to 3-4 lines at ~28 characters. */
@media (max-width: 1100px) { .pitem { grid-template-columns: 190px minmax(0, 1fr); gap: 1.75rem; } }
@media (max-width: 620px) { .pitem { grid-template-columns: 1fr; gap: .6rem; } }

/* ---------- xactimate strip ---------- */
/* One column now, not 5fr/7fr. The two-column version put a short headline and a
   badge on the left and a paragraph on the right, so the left column ran out
   first and left a hole under it - the "split header" pattern. Stacked, capped
   and given less vertical padding, the section reads as a deliberate pause
   between two photographic sections instead of a half-empty slide. */
/* No max-width on .xact itself. It shares its element with .wrap, whose auto
   margins then re-centre the narrower box - so the whole section floated to the
   middle of the page while every other section starts at the left gutter. This
   is the SECOND time this exact mistake has shipped in this file; the first was
   .legal on the privacy page, commented further down. The rule is: cap the
   CHILDREN, never the element that also carries .wrap. */
.xact { display: block; }
/* NO max-width. Measured: this headline needs 799px on one line and the wrap is
   1312px, so the 24ch cap (512px) was forcing a two-line break for no reason -
   and the break landed after "what", splitting "what it takes" mid-phrase.
   Uncapped it sets on one line at desktop, and `text-wrap: balance` (applied to
   every h1/h2 further down) makes an even break when a narrow viewport genuinely
   needs one. Let the sentence decide where it breaks, not an arbitrary box. */
.xact h2 { font-size: var(--t-md); line-height: 1.18; letter-spacing: -.028em; }
.xact__badge { display: inline-block; margin-top: 1.6rem; border: 1px solid var(--accent-lt); padding: .7rem 1rem; }
.xact p { margin-top: 1.6rem; max-width: 62ch; }
/* Shorter than its neighbours on purpose. A pause has to be briefer than the
   things it sits between, or it is just another section. */
.xact-sec { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

/* ---------- about page ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; background: var(--card); }
.split__img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.split__copy { padding: clamp(2.75rem, 5.5vw, 5rem) var(--edge) clamp(2.75rem, 5.5vw, 5rem) clamp(1.5rem, 4vw, 4.25rem); align-self: center; }
.split__copy h2 { font-size: var(--t-md); line-height: 1.2; letter-spacing: -.028em; }
.split__copy p { margin-top: 1.25rem; max-width: 52ch; line-height: 1.7; }
.split__tag { margin-top: 1.75rem; font-family: var(--disp); font-weight: 700; font-size: 1.15rem; color: var(--accent); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__img { height: auto; min-height: 0; aspect-ratio: 4/3; } .split__copy { padding-inline: var(--pad); } }

/* ---------- contact page ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.side h2 { font-family: var(--disp); font-size: 1.5rem; line-height: 1.3; }
.side__phone { display: inline-block; margin-top: .75rem; font-family: var(--disp); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--accent); text-decoration: none; letter-spacing: -.03em; }
.side__rule { height: 1px; background: var(--hair); margin-block: 2rem; }
.side ol { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: n; }
.side ol li { counter-increment: n; padding-left: 2.2rem; position: relative; line-height: 1.6; }
.side ol li + li { margin-top: 1rem; }
.side ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font-family: var(--disp); font-weight: 700; font-size: .85rem; color: var(--accent); letter-spacing: .06em; }
/* minmax(0, 1fr), NOT 1fr. A grid track sized `1fr` has an automatic MINIMUM of
   min-content, so the column refuses to go narrower than its widest child - and
   Turnstile's widget has a hard 300px minimum. The desktop rule above already
   uses minmax(0, 1fr) for exactly this reason; this override dropped back to a
   bare 1fr and re-introduced the problem on phones only, which is where the
   Turnstile widget went in. Measured before: 367px document inside a 320px
   window on both form pages. */
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.foot { background: var(--dark-field-2); color: var(--on-dark-mut); padding-block: 3.5rem 2.5rem; }
.foot a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: #fff; }
.foot__row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.foot__brand { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; color: var(--on-dark); }
.foot__tag { margin-top: .5rem; color: var(--accent-lt); font-size: .95rem; }
.foot__phone { font-family: var(--disp); font-weight: 700; font-size: 1.5rem; color: var(--on-dark); letter-spacing: -.02em; }
.foot h3 { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: .35rem; }
.foot ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.foot__rule { height: 1px; background: #33342E; margin-block: 2.5rem 1.5rem; }
.foot__bot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; }
@media (max-width: 860px) { .foot__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__row { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--accent); color: #fff; text-align: center;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    font-weight: 600; text-decoration: none;
  }
  body { padding-bottom: 4.25rem; }
}
@media (prefers-color-scheme: dark) { .callbar { color: #14150F; } }

/* ---------- motion. dial is 3, so: entrance only, and it obeys the OS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.25,1,.5,1), transform .7s cubic-bezier(.25,1,.5,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Uppercase labels with wide tracking at 12px are hard work on a phone, and a
   fair share of this audience is reading it one-handed and not twenty-five. */
@media (max-width: 560px) {
  .micro, .xact__badge, .gap__badge, .num__l { font-size: 13px; }
}

/* ==========================================================================
   v4 layout + audit fixes
   (restored 2026-08-06 after a bad scripted edit truncated this block)
   ========================================================================== */

/* --- the two halves of the business -------------------------------------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.6vw, 2.4rem); margin-top: 2.6rem; }
.twocard img { width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; }
.twocard h3 { font-family: var(--disp); font-size: var(--t-lg); line-height: 1.15; letter-spacing: -.02em; margin-top: 1.3rem; }
.twocard p { margin-top: .7rem; color: var(--muted); max-width: 46ch; }
.twocard__link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--accent);
  text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.twocard--plain { border: 1px solid var(--hair); padding: clamp(1.4rem, 2.6vw, 2.1rem); background: var(--card); }
.twocard--plain .btn { margin-top: 1.2rem; }

/* --- recent work --------------------------------------------------------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); margin-top: 2.6rem; }
.gal__item { margin: 0; }
.gal__item img { width: 100%; height: clamp(200px, 20vw, 300px); object-fit: cover; display: block; }
.gal__item figcaption { margin-top: .8rem; font-family: var(--sans); font-size: .86rem; color: var(--muted); line-height: 1.5; }
/* the lead image carries weight so this is a composition, not a contact sheet */
@media (min-width: 861px) {
  .gal { grid-template-columns: 2fr 1fr 1fr; }
  .gal__item:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .gal__item:first-child img { height: clamp(420px, 42vw, 620px); }
}
@media (max-width: 860px) { .gal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }

/* --- closing call to action ---------------------------------------------- */
.cta-end { background: var(--dark-field); color: var(--on-dark-soft); text-align: center; }
.cta-end h2 { color: var(--on-dark); max-width: 24ch; margin-inline: auto; }
.cta-end__p { margin-top: 1rem; color: var(--on-dark-mut); max-width: 54ch; margin-inline: auto; }
.cta-end .hero__ctas { justify-content: center; margin-top: 1.9rem; }
.cta-end .btn--outline { color: var(--on-dark); border-color: var(--on-dark-mut); }
/* Round 7: the closing band on service and damage pages carries a short form.
   Text and call button left, form right; one column on a phone. */
.cta-form { text-align: left; }
.cta-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cta-form h2, .cta-form .cta-end__p { margin-inline: 0; }
.cta-form .btn--primary { margin-top: 1.85rem; }
.cta-form .form .btn--primary { margin-top: 1.5rem; }
@media (max-width: 900px) { .cta-form__grid { grid-template-columns: 1fr; } }

/* --- misc ---------------------------------------------------------------- */
.foot__area { margin-top: 1rem; font-size: .88rem; max-width: 30ch; }
.contact-top h1 { font-size: var(--t-md); line-height: 1.12; letter-spacing: -.03em; margin-top: .8rem; }
.plist--num { display: block; padding-left: 1.15rem; }
.plist--num li { margin-top: .6rem; color: var(--muted); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Headlines break on meaning. Without this the hero broke as
   "...repair homes. We / make sure..." with a dangling "We". */
h1, h2, .twocard h3 { text-wrap: balance; }
p, .beat, .hero__sub { text-wrap: pretty; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }

/* The old fix for the 92px-wide/92px-tall overflow lived here, as a SECOND
   `.mast__brand img` rule with equal specificity to the one near .mast__in -
   it won on source order alone and silently shrank the logo to 42-54px tall,
   which is the exact bug Mark reported (BUILDERS rendering ~3px tall). Fixed
   2026-08-08 by removing this rule and consolidating ALL brand sizing into
   the single `.mast__brand` / `.mast__mark` block up near `.mast__in` -
   see the comment there before adding anything back in this area. */

/* Section headings in a plain .wrap had no size rule at all and fell back to
   the browser default (25px) beside neighbours at 46-58px. :where() keeps
   specificity at zero so every per-layout rule still wins. */
:where(.sec, .cta-end, .contact-top) h2 {
  font-size: var(--t-lg); line-height: 1.14; letter-spacing: -.03em;
}

/* Display face is EB Garamond, shipped at 500/600 only, so headings move off
   700 rather than let the browser synthesise a bold. */
h1, h2, h3, .beat, .bleed__cap, .num__n, .twocard h3 { font-weight: 600; }
h1, h2 { letter-spacing: -.018em; }

/* ".field + .field { margin-top }" is for fields STACKED vertically. Inside a
   .form__row the second field is also an adjacent sibling, so it was pushed
   20px down its own grid column and Name/Phone sat on different baselines. */
.form__row > .field + .field { margin-top: 0; }

/* Every interactive thing gets a visible focus ring. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}
.hero :focus-visible, .sec--dark :focus-visible, .cta-end :focus-visible,
.closer :focus-visible, .foot :focus-visible { outline-color: var(--on-dark); }
/* A form is a light card inside a dark band, so its ring goes dark again. */
.cta-end .form :focus-visible, .closer .form :focus-visible { outline-color: var(--accent); }
.skip:focus-visible { outline-offset: 0; }

/* Footer links were 20px tall. WCAG 2.5.8 wants 24x24 minimum for a pointer
   target, and this audience is often reading one-handed on a phone. */
.foot ul a, .foot__phone, .side__phone {
  display: inline-flex; align-items: center; min-height: 44px;
}
.foot ul li { margin: 0; }

/* The XactRemodel paragraph ran 134 characters per line at 1440px. Anything
   past roughly 75 and the eye loses its place on the return sweep. */
.xact p { max-width: 68ch; }

/* The closing section is dark, but the form card inside it is light. A
   near-white focus ring on a near-white card is no focus ring at all. */
.closer .form :focus-visible { outline-color: var(--accent); }

/* 404 is an ordinary light page, so it gets ordinary light-page type rather
   than hero styles borrowed from a dark section. */
.notfound { text-align: center; padding-block: clamp(2rem, 6vw, 4rem); }
.notfound h1 { font-size: var(--t-lg); line-height: 1.14; letter-spacing: -.03em; margin-top: .9rem; }
.notfound__p { margin: 1.15rem auto 0; max-width: 46ch; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.notfound .hero__ctas { justify-content: center; }

/* My tap-target fix gave EVERY .foot a a 44px min-height, including the two
   column headings that are links. "Company" is a bare heading, so its text sat
   ~24px higher than the other three. Height belongs on the list links only. */
.foot h3 a { display: inline; min-height: 0; align-items: initial; }
/* Same trap, second time: the Privacy link sits INSIDE a span on the bottom bar
   beside the copyright line. As an inline-flex 44px block it grew that bar and
   left the copyright and the credential line on different baselines. It is a
   small legal link, so it is underlined rather than sized up - the tap target
   rule is for navigation, and this is not navigation. */
/* Vertical padding on an INLINE element grows the hit area without growing the
   line box, so the target goes 16px -> ~32px and the two halves of the bottom
   bar still share a baseline. WCAG 2.5.8's inline exception covers a link set
   in a run of text, but 16px is uncomfortable on a phone regardless. */
.foot__bot a { display: inline; min-height: 0; align-items: initial; text-decoration: underline; text-underline-offset: 3px; padding-block: .5rem; }

/* Long-form legal text. One column, capped at a comfortable measure - the site
   has no other page that is only prose, so nothing existing fits. */
/* The measure is capped on the CHILDREN, not on .legal itself. Capping the
   shared .wrap element shrank the wrapper its auto margins then re-centred, so
   the page's text started 292px further right than every other page on the site
   - including its own footer, directly below it. Measured: wrap left 356 here
   against 64 everywhere else. */
.legal > * { max-width: 68ch; }
.legal h1 { margin-top: .6rem; }
.legal__date { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.legal h2 { margin-top: 2.4rem; font-size: 1.15rem; }
.legal p { margin-top: .9rem; color: var(--text); line-height: 1.7; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--field); border: 1px solid var(--hair); padding: .08em .35em; }

/* The asymmetric gallery assumes enough items to fill the second row. The
   detail pages have three, which left a 593x267 hole under the two small
   images. Only go asymmetric when there is a fourth item to fill it.

   SCOPED to galleries with NO explicit gal--N count. Without that guard this
   rule silently won against .stage .gal--1/--2: :not() and :has() take the
   specificity of their ARGUMENT, so this selector is (0,3,0) and .stage
   .gal--1 is only (0,2,0). Every stage gallery rendered 3 columns, leaving a
   single After photo in a 244px box with 69% of the row empty. */
.gal:not([class*="gal--"]):not(:has(.gal__item:nth-child(4))) { grid-template-columns: repeat(3, 1fr); }
.gal:not([class*="gal--"]):not(:has(.gal__item:nth-child(4))) .gal__item:first-child { grid-column: auto; grid-row: auto; }
.gal:not([class*="gal--"]):not(:has(.gal__item:nth-child(4))) .gal__item:first-child img { height: clamp(200px, 20vw, 300px); }

/* The badge stretched to full width at 390px and broke as
   "LEVEL 3 XACTIMATE CERTIFIED / ESTIMATOR", orphaning the last word. */
.xact__badge, .gap__badge { display: inline-block; width: auto; }
/* At 390px this string is genuinely wider than the column at a readable size,
   so it wraps and that is fine. What read as broken was the ragged second line
   against a full-width border. Centred and balanced, two lines look intended. */
@media (max-width: 560px) {
  .xact__badge, .gap__badge {
    display: block; letter-spacing: .06em; line-height: 1.55;
    text-align: center; text-wrap: balance;
  }
}

/* Footer heading links: grow the hit area with padding cancelled by an equal
   negative margin, so the target reaches 24px+ without moving the heading and
   re-introducing the column misalignment. */
.foot h3 a { display: inline-block; padding-block: .85rem; margin-block: -.85rem; }

/* My 3-item gallery override had no media query, so it beat the mobile
   single-column rule and left three 106px thumbnails side by side at 390px. */
@media (max-width: 860px) {
  .gal:not([class*="gal--"]):not(:has(.gal__item:nth-child(4))) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gal:not([class*="gal--"]):not(:has(.gal__item:nth-child(4))) { grid-template-columns: 1fr; }
  .gal:not([class*="gal--"]):not(:has(.gal__item:nth-child(4))) .gal__item:first-child img { height: clamp(200px, 55vw, 300px); }
}


/* body padding was 68px against a 60px call bar, leaving an 8px page-coloured
   strip between the dark footer and the bar at full scroll. */
@media (max-width: 767px) { body { padding-bottom: 60px; } }

/* Single-word widows on the two footer lines. */
.foot__area, .foot__bot span { text-wrap: balance; }

/* --- mobile navigation ---------------------------------------------------
   The header hid every nav item below 1040px and offered nothing in return:
   a logo alone in an empty bar, with the footer as the only route to a
   service page. This is a CSS-only disclosure, so it needs no JavaScript and
   keeps native keyboard and screen-reader behaviour. */
.menu { display: none; position: relative; }
@media (max-width: 1040px) { .menu { display: block; } }
.menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: 0 .25rem;
  font: 600 .95rem/1 var(--sans); color: var(--text);
}
.menu > summary::-webkit-details-marker { display: none; }
.mast--over .menu > summary { color: #EAE9E5; }
.menu__bars { display: inline-block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu__bars::before, .menu__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.menu__bars::before { top: -6px; }
.menu__bars::after { top: 6px; }
.menu[open] .menu__bars { background: transparent; }
.menu[open] .menu__bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__bars::after { top: 0; transform: rotate(-45deg); }

.menu__panel {
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 40;
  min-width: min(78vw, 300px);
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem; background: var(--card);
  border: 1px solid var(--hair);
  box-shadow: 0 18px 50px rgba(15, 16, 15, .22);
}
.menu__panel a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 .35rem; color: var(--text); text-decoration: none;
  font-size: 1rem; border-bottom: 1px solid var(--hair);
}
.menu__panel a:not(.btn):last-of-type { border-bottom: 0; }
.menu__panel .btn { margin-top: .75rem; }

/* ==========================================================================
   Before / During / After gallery
   Stage rows, not a fixed three-across grid: a two-photo job and a ten-photo
   job both have to look deliberate, and a stage with no photographs renders
   nothing rather than an empty column.
   ========================================================================== */
.project__in { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.project__rail h2 { font-size: var(--t-md); line-height: 1.14; letter-spacing: -.028em; }
.project__meta { margin-top: .85rem; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.project__rule { width: 56px; height: 2px; margin-top: 1.1rem; background: var(--hair); }
.project__blurb { margin-top: 1.1rem; color: var(--muted); line-height: 1.62; max-width: 42ch; }
.project__stages { display: flex; flex-direction: column; gap: clamp(1.8rem, 3vw, 2.4rem); }
.stage__label { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stage .gal { margin-top: .9rem; }
/* One photo in a stage gets room to breathe; several share the row. */
.stage .gal--1 { grid-template-columns: 1fr; }
.stage .gal--1 .gal__item img { height: clamp(280px, 30vw, 420px); }
.stage .gal--2 { grid-template-columns: 1fr 1fr; }
.stage .gal--3 { grid-template-columns: repeat(3, 1fr); }
.stage .gal--4 { grid-template-columns: repeat(4, 1fr); }
.stage .gal__item:first-child { grid-column: auto; grid-row: auto; }
.stage .gal__item img { height: clamp(200px, 21vw, 300px); }

@media (max-width: 900px) {
  .project__in { grid-template-columns: 1fr; }
  .stage .gal--3, .stage .gal--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stage .gal, .stage .gal--2, .stage .gal--3, .stage .gal--4 { grid-template-columns: 1fr; }
  .stage .gal--1 .gal__item img, .stage .gal__item img { height: clamp(200px, 58vw, 300px); }
}

/* --- home page: up to two featured projects, as before/after pairs -------- */
.ba__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.ba__all { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; display: inline-flex; align-items: center; min-height: 44px; }
.ba__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.6rem); margin-top: 2.4rem; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ba__cell img { width: 100%; height: clamp(180px, 19vw, 260px); object-fit: cover; display: block; }
.ba__stage { margin-top: .55rem; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ba h3 { margin-top: 1.15rem; font-size: var(--t-beat); line-height: 1.16; letter-spacing: -.02em; }
.ba__meta { margin-top: .5rem; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.ba__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .3rem; font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 860px) { .ba__grid { grid-template-columns: 1fr; } .ba__head { flex-direction: column; align-items: start; gap: 1rem; } }

/* Small-caps labels at 11px are hard work on a phone. This block must stay LAST
   in the file: media queries add no specificity, so an earlier copy of it loses
   to the gallery rules further down. */
@media (max-width: 560px) {
  .stage__label, .project__meta, .ba__stage, .ba__meta { font-size: 13px; letter-spacing: .12em; }
}
@media (min-width: 561px) and (max-width: 900px) {
  /* Same reasoning as the rule above: 11px small-caps is hard work. */
  .stage__label, .ba__stage { font-size: 12.5px; letter-spacing: .14em; }
}

/* Address suggestion dropdown. The list is inserted directly after the input,
   so the .field wrapper is what it positions against. */
.field:has(.addr-list) { position: relative; }
.addr-list {
  position: absolute; z-index: 30; left: 0; right: 0; margin: .25rem 0 0; padding: .25rem;
  list-style: none; max-height: 260px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--hair);
  border-radius: 8px; box-shadow: 0 12px 28px rgba(15, 16, 15, .18);
}
.addr-option {
  padding: .625rem .75rem; border-radius: 6px; font-size: .95rem; line-height: 1.35;
  color: var(--ink); cursor: pointer;
}
.addr-option:hover, .addr-option.active { background: var(--accent-lt, #A99CD6); color: var(--ink); }

/* Project review: accessible full-size photos and a contextual inquiry. */
.project__cta { margin-top: 1.25rem; white-space: normal; text-align: center; }
.project-photo-link { display: block; cursor: zoom-in; }
.project-photo-link:focus-visible { outline: 3px solid var(--accent, #ad7c42); outline-offset: 4px; }
#project-inquiry { scroll-margin-top: 7rem; }
.project-lightbox { width: min(1100px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 16px; border: 0; border-radius: 8px; background: #171918; color: #fff; }
.project-lightbox::backdrop { background: rgba(0,0,0,.85); }
.project-lightbox__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.project-lightbox__bar button { min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid #888; border-radius: 4px; background: #242724; color: #fff; font: inherit; cursor: pointer; }
.project-lightbox__bar button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.project-lightbox__bar button:disabled { opacity: .4; cursor: default; }
.project-lightbox__bar [data-lb="close"] { margin-left: auto; }
.project-lightbox figure { margin: 0; }
.project-lightbox figure img { display: block; width: 100%; height: auto; max-height: 72dvh; object-fit: contain; }
.project-lightbox figcaption { padding-top: 12px; line-height: 1.5; }
@media (max-width: 480px) { .project-lightbox { padding: 10px; } .project-lightbox__bar { gap: 6px; } .project-lightbox__bar button { padding: 8px 10px; } }
