/* ==========================================================================
   Ace & Sons Roofing and Groundworks
   A dark spec sheet for the outside of a house. The page ground is the
   crest's own cloud. Every claim is a photograph or a named layer. The only
   ornament is the crest, and the only accent is its gold.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Mona Sans: variable, latin subset, wdth + wght axes retained.
   Newsreader: weight 500, optical size pinned at 18.
   Fallback metrics computed from the real font tables so the swap does not
   shift a line.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/mona-sans-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-stretch: 100% 115%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mona Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 114.70%;
  ascent-override: 95.03%;
  descent-override: 27.90%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'News Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Liberation Serif');
  size-adjust: 94.74%;
  ascent-override: 77.58%;
  descent-override: 27.97%;
  line-gap-override: 0%;
}

/* --- Tokens --------------------------------------------------------------
   One ground, one accent. Ratios computed, not estimated:
     chalk on slate 13.86 · chalk-2 on slate 8.78 · gold on slate 7.24
     slate on gold fill 7.94 · border on slate 3.42 (non-text)
   The old burnt-orange marker measured 2.33 on slate and is gone.
   ------------------------------------------------------------------------ */

:root {
  --pit:     #0F1214;   /* footer, the roof Cut band, the marquee strip */
  --slate:   #14181A;   /* the page ground, sampled from the crest's cloud */
  --slate-2: #1B2124;   /* raised surface: header bar, form card, job cards */
  --hair:    #2A3135;   /* hairlines */
  --border:  #6C7570;   /* control borders */
  --chalk:   #ECEDEA;   /* primary text, never #FFF */
  --chalk-2: #B9C0BC;   /* secondary text */
  --gold:    #D9A441;   /* the single accent */
  --gold-2:  #E4B75F;   /* gold hover */
  --paper-hi:#FEFEFE;   /* the crest's own ground, sampled from the artwork. Used only under the crest. */

  /* the build-up swatches, sampled from his own photographs */
  --sw-porcelain: #9AA0A0;
  --sw-bedding:   #BDB6A8;
  --sw-type1:     #A79579;
  --sw-subgrade:  #6B5A45;
  --sw-tile:      #6E6560;
  --sw-batten:    #C09257;
  --sw-underlay:  #3F4340;
  --sw-rafter:    #CBAA7B;

  --display: 'Mona Sans', 'Mona Fallback', Arial, sans-serif;
  --body: 'Newsreader', 'News Fallback', Georgia, serif;

  --gut: 20px;
  --measure: 34em;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 720px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--slate); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--slate);
  color: var(--chalk);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
}
/* room for the fixed call bar on phones; the bar is not on /thanks */
@media (max-width: 899px) {
  body.has-callbar { padding-bottom: 72px; }
  /* 1 Sep 2026: the mobile line on top of the call bar takes it from 68px to 95px.
     Measured at 390px, not estimated. Without this the colophon hides under the bar. */
  body.has-callbar-alt { padding-bottom: 99px; }
}

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

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112.5;
  letter-spacing: -0.015em;
  font-weight: 780;
  line-height: 1.08;
  margin: 0;
  color: var(--chalk);
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 6.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 750; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; color: var(--gold-2); }

/* tabular figures for phone numbers and captions */
.fig, .caption, .band-label, .tel, .seq-step, .crumbs {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--chalk-2);
  margin: 0;
}
.muted { color: var(--chalk-2); }

/* --- Focus: one ring, one colour, one ground ----------------------------- */

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--slate);
  padding: 14px 18px; font-family: var(--display); font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 0; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout -------------------------------------------------------------- */

.wrap { padding-inline: var(--gut); margin-inline: auto; max-width: 1320px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--chalk-2); margin-top: 0.7em; }

.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }
.raised { background: var(--slate-2); }
.pit { background: var(--pit); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: var(--slate-2);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: stretch;
}
.site-header .bar {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding-right: var(--gut);
}

/* The crest sits straight on the bar. The artwork has been matted off its white ground
   (see _audit/tools/crest.py): opaque pixels are untouched, the haze round the storm cloud
   carries alpha so it dissolves into the bar, and the letter counters are open. Cameron's
   call, 26 Aug: no plate, no mount. */
.crest {
  height: 100%;
  display: flex; align-items: center;
  padding-inline: var(--gut) 12px;
  flex: 0 0 auto;
}
.crest img { height: 50px; width: 123px; }
@media (min-width: 900px) { .crest img { height: 56px; width: 138px; } }

/* --- Navigation. Works with JavaScript off: details/summary. ------------- */

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; margin-right: auto; }
.site-nav > a, .site-nav summary {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--chalk);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::marker { content: ''; }
.site-nav > a:hover, .site-nav summary:hover { color: var(--gold-2); }
.site-nav > a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav .chev { width: 12px; height: 12px; transition: transform .18s var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }

.nav-services { position: relative; }
.nav-services .menu {
  position: absolute; top: calc(100% + 1px); left: 0;
  min-width: 240px;
  background: var(--slate-2);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--gold);
  padding: 8px 0;
  margin: 0; list-style: none;
  z-index: 50;
}
.nav-services .menu li { margin: 0; }
.nav-services .menu a {
  display: block;
  padding: 10px 18px;
  min-height: 44px; line-height: 24px;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--display); font-variation-settings: 'wdth' 100; font-weight: 700; font-size: 0.9375rem;
}
.nav-services .menu a:hover { color: var(--gold-2); background: var(--slate); }
.nav-services .menu a[aria-current="page"] { color: var(--gold); }
.nav-services .menu .menu-head {
  display: block; padding: 10px 18px 4px;
  font-family: var(--display); font-variation-settings: 'wdth' 100; font-weight: 700; font-size: 0.75rem;
  color: var(--chalk-2);
}

/* the mobile panel: the same details pattern, full width under the bar */
.nav-toggle { display: none; }
.nav-toggle > summary {
  font-family: var(--display); font-weight: 700; font-size: 0.9375rem;
  color: var(--chalk);
  min-width: 48px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 10px;
  cursor: pointer; list-style: none;
  border: 1px solid var(--border);
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary::marker { content: ''; }
.nav-toggle .panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--slate-2);
  border-bottom: 1px solid var(--hair);
  padding: 8px var(--gut) 18px;
  z-index: 50;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav-toggle .panel ul { list-style: none; margin: 0; padding: 0; }
.nav-toggle .panel li { border-top: 1px solid var(--hair); }
.nav-toggle .panel li:first-child { border-top: 0; }
.nav-toggle .panel a {
  display: block; padding: 12px 0; min-height: 48px; line-height: 24px;
  color: var(--chalk); text-decoration: none;
  font-family: var(--display); font-variation-settings: 'wdth' 100; font-weight: 700; font-size: 1.0625rem;
}
.nav-toggle .panel a[aria-current="page"] { color: var(--gold); }
.nav-toggle .panel .menu-head {
  display: block; padding: 16px 0 6px;
  font-family: var(--display); font-weight: 700; font-size: 0.8125rem; color: var(--chalk-2);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

@media (max-width: 899px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-fill { display: none; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav > a, .site-nav summary { padding: 0 9px; font-size: 0.875rem; }
}

.btn {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-fill { background: var(--gold); color: var(--slate); }
.btn-fill:hover { background: var(--gold-2); color: var(--slate); }
.btn-line { background: transparent; color: var(--chalk); border-color: var(--border); }
.btn-line:hover { border-color: var(--chalk); color: var(--chalk); }

.btn-call { min-width: 48px; min-height: 48px; padding: 0 12px; }
.btn-call .num { display: none; }
@media (min-width: 1100px) {
  .btn-call .num { display: inline; }
  .btn-call svg { display: none; }
}

/* --- Fixed mobile call bar ----------------------------------------------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gut);
  background: var(--slate-2);
  border-top: 1px solid var(--hair);
}
.callbar .btn { min-height: 48px; font-size: 0.9375rem; padding: 0 10px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* --- Hero ----------------------------------------------------------------
   The headline sits over the photograph, on a gradient that runs to 97% slate
   where the words are, so every pair is measured against real pixels (gate 5b).
   Cameron overruled the anti-scrim law for the homepage hero on 26 Aug; the
   service-page heads keep the hard edge and the words on the band beneath.
   ------------------------------------------------------------------------ */

.hero { position: relative; margin: 0; background: var(--slate); overflow: hidden; }
.hero > picture > img {
  width: 100%;
  height: 78vh; min-height: 540px; max-height: 760px;
  object-fit: cover; object-position: center 42%;
  display: block;
}
@media (min-width: 900px) {
  .hero > picture > img { height: 86vh; min-height: 620px; max-height: 900px; object-position: center 40%; }
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,24,26,0) 0%, rgba(20,24,26,.10) 20%, rgba(20,24,26,.66) 40%, rgba(20,24,26,.92) 56%, rgba(20,24,26,.97) 100%);
}
@media (min-width: 900px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(20,24,26,0) 0%, rgba(20,24,26,0) 24%, rgba(20,24,26,.62) 50%, rgba(20,24,26,.95) 76%, rgba(20,24,26,.97) 100%),
      linear-gradient(90deg, rgba(20,24,26,.70) 0%, rgba(20,24,26,.34) 42%, rgba(20,24,26,0) 72%);
  }
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-copy .wrap { padding-block: 0 clamp(30px, 5vh, 64px); }
.hero-copy h1 { max-width: 15ch; font-size: clamp(2.1rem, 7vw, 4.4rem); }
.hero-copy .payoff { color: var(--chalk-2); margin-top: 0.85em; max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.125rem); }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3vw, 30px); }
.hero-copy .btn { min-height: 52px; font-size: 1rem; padding: 0 22px; }

/* The tipped-in print: a small photograph set into the corner of a large one
   inside a 3px chalk mount, caption on the mount, never on the image. It sits
   top right, away from the words. */
.tip {
  background: var(--chalk);
  padding: 3px 3px 0;
  border: 0;
  display: block;
  width: 112px;
}
.tip img { width: 100%; height: auto; }
.tip .caption { padding: 6px 3px 7px; font-size: 0.6875rem; color: var(--slate); }
@media (min-width: 900px) { .tip { width: 220px; } .tip .caption { font-size: 0.75rem; } }
.hero-tip { position: absolute; right: var(--gut); top: var(--gut); z-index: 2; }

/* The plinth: kept for the service pages, where the words stay on a band under the hard edge. */
.plinth { background: var(--slate-2); color: var(--chalk); border-bottom: 1px solid var(--hair); }
.plinth .wrap { padding-block: clamp(30px, 5vw, 52px); }
.plinth h1 { max-width: 17ch; }
.plinth .payoff { color: var(--chalk-2); margin-top: 0.85em; max-width: 48ch; font-size: 1.0625rem; }
.plinth .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 30px); }
.plinth .btn { min-height: 52px; font-size: 1rem; padding: 0 22px; }

/* --- The marquee: the one component imported from Southridge -------------
   Track is max-content, duplicated once, translates -50%. Spacing is
   margin-right on each item, never gap, so the seam is exact.
   ------------------------------------------------------------------------ */

.plat {
  overflow: hidden;
  background: var(--pit);
  border-bottom: 1px solid var(--hair);
  padding-block: 20px 24px;
  --logo-h: clamp(22px, 2.6vw, 30px);
  --logo-gap: clamp(40px, 5.4vw, 76px);
}
.plat-label {
  font-family: var(--display); font-variation-settings: 'wdth' 100;
  font-weight: 700; font-size: 0.875rem;
  color: var(--chalk-2);
  margin: 0 0 16px;
}
.marq-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marq { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; animation: marq 52s linear infinite; }
.plat:hover .marq, .marq:focus-within { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.plog { flex: none; margin-right: var(--logo-gap); display: flex; align-items: center; }
.plog a { display: flex; align-items: center; min-height: 44px; }
.plog img { display: block; width: auto; height: calc(var(--logo-h) * var(--s, 1)); }

@media (prefers-reduced-motion: reduce) {
  .marq { animation: none; width: auto; flex-wrap: wrap; row-gap: 18px; padding-inline: var(--gut); }
  .marq .plog[aria-hidden="true"] { display: none; }
  .marq-mask { -webkit-mask-image: none; mask-image: none; }
}

/* --- What we do: seven rows in two headed runs --------------------------- */
/* No cards, no icons, no numerals. Each name is a link to its page. */

.run-head {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--chalk-2);
  margin: 0 0 4px;
  padding-top: 26px;
}
.run:first-of-type .run-head { padding-top: 0; }

.svc {
  display: grid;
  grid-template-columns: 1fr 104px;
  grid-template-areas: "name img" "desc img";
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  border-top: 1px solid var(--hair);
  padding-block: 18px;
}
.svc:last-child { border-bottom: 1px solid var(--hair); }
.svc h3 { grid-area: name; margin-bottom: 2px; }
.svc h3 a { color: var(--chalk); text-decoration: none; }
.svc h3 a::after { content: ' \2192'; color: var(--gold); font-weight: 600; }
.svc h3 a:hover { color: var(--gold-2); }
.svc p { grid-area: desc; color: var(--chalk-2); margin: 0; font-size: 0.9375rem; }
.svc picture { grid-area: img; align-self: start; }
.svc img { width: 104px; height: 78px; object-fit: cover; }
@media (min-width: 720px) {
  .svc {
    grid-template-columns: 15rem 1fr 200px;
    grid-template-areas: "name desc img";
    column-gap: 28px;
    padding-block: 22px;
    align-items: center;
  }
  .svc picture { align-self: center; }
  .svc img { width: 200px; height: 150px; }
  .svc p { font-size: 1rem; }
}

/* --- The Cut ------------------------------------------------------------- */
/* A photograph of finished work with a stepped wedge taken out of the lower
   left, cut in stages like a trial pit. The bands are opaque flat colour
   sampled from his own photographs. Type on flat colour is not type on a
   photograph, so the anti-scrim law holds. */

.cut { margin: 0; }
.cut-photo { display: block; width: 100%; }
.cut-photo img { width: 100%; height: clamp(200px, 42vw, 460px); object-fit: cover; }

.cut-pit { display: block; }
.cut-band {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  position: relative;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cut-band + .cut-note { margin: 0; padding: 0 14px 14px; }

.cut-band[data-step="1"], .cut-band[data-step="1"] + .cut-note { width: 100%; }
.cut-band[data-step="2"], .cut-band[data-step="2"] + .cut-note { width: 92%; }
.cut-band[data-step="3"], .cut-band[data-step="3"] + .cut-note { width: 80%; }
.cut-band[data-step="4"], .cut-band[data-step="4"] + .cut-note { width: 64%; }

.band-label {
  font-size: 0.9375rem;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  min-height: 20px;
}
.band-depth { font-weight: 700; }
.cut-note {
  font-family: var(--body);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 46ch;
}

/* the band labels sit on the swatch, not on the ground, so each pair is the
   swatch against slate or chalk per the maths (worst 4.84, concrete tile) */
.cut-ground .b1 { background: var(--sw-porcelain); color: var(--slate); }
.cut-ground .b2 { background: var(--sw-bedding);   color: var(--slate); }
.cut-ground .b3 { background: var(--sw-type1);     color: var(--slate); }
.cut-ground .b4 { background: var(--sw-subgrade);  color: var(--chalk); }
.cut-ground .b1 + .cut-note { background: var(--sw-porcelain); color: var(--slate); }
.cut-ground .b2 + .cut-note { background: var(--sw-bedding);   color: var(--slate); }
.cut-ground .b3 + .cut-note { background: var(--sw-type1);     color: var(--slate); }
.cut-ground .b4 + .cut-note { background: var(--sw-subgrade);  color: var(--chalk); }

.cut-roof .b1 { background: var(--sw-tile);     color: var(--chalk); }
.cut-roof .b2 { background: var(--sw-batten);   color: var(--slate); }
.cut-roof .b3 { background: var(--sw-underlay); color: var(--chalk); }
.cut-roof .b4 { background: var(--sw-rafter);   color: var(--slate); }
.cut-roof .b1 + .cut-note { background: var(--sw-tile);     color: var(--chalk); }
.cut-roof .b2 + .cut-note { background: var(--sw-batten);   color: var(--slate); }
.cut-roof .b3 + .cut-note { background: var(--sw-underlay); color: var(--chalk); }
.cut-roof .b4 + .cut-note { background: var(--sw-rafter);   color: var(--slate); }

.cut-foot { font-size: 0.9375rem; color: var(--chalk-2); margin-top: 18px; max-width: 44ch; }

/* the readout only exists once JavaScript is running */
.cut-readout { display: none; }

.js .cut-band + .cut-note { display: none; }
.js .cut-readout {
  display: block;
  min-height: 2.7em;
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 46ch;
  color: var(--chalk);
}
/* Inactive layers drop back towards the ground colour, opaque, never
   translucent: a translucent band would put ghosted type over the photograph
   and drag the label below 2:1. Mixed 35% swatch / 65% ground, every dimmed
   label takes chalk and the worst pair stays above 6:1. Ground Cut recedes
   towards slate; roof Cut towards pit. */
.js .cut-ground .cut-pit[data-active] .b1:not(.is-active) { background: #434849; color: #ECEDEA; }
.js .cut-ground .cut-pit[data-active] .b2:not(.is-active) { background: #4F504C; color: #ECEDEA; }
.js .cut-ground .cut-pit[data-active] .b3:not(.is-active) { background: #474439; color: #ECEDEA; }
.js .cut-ground .cut-pit[data-active] .b4:not(.is-active) { background: #332F29; color: #ECEDEA; }
.js .cut-roof   .cut-pit[data-active] .b1:not(.is-active) { background: #30302F; color: #ECEDEA; }
.js .cut-roof   .cut-pit[data-active] .b2:not(.is-active) { background: #4D3F2A; color: #ECEDEA; }
.js .cut-roof   .cut-pit[data-active] .b3:not(.is-active) { background: #202527; color: #ECEDEA; }
.js .cut-roof   .cut-pit[data-active] .b4:not(.is-active) { background: #514738; color: #ECEDEA; }

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

@media (min-width: 900px) {
  .cut-inner { position: relative; }
  .cut-pit { position: absolute; left: 0; bottom: 0; width: min(52%, 560px); }
  .cut-photo img { height: clamp(360px, 34vw, 520px); }
  .cut-body { padding-top: 22px; }
}
/* the patios page gives the Cut more room than the homepage does */
@media (min-width: 900px) {
  .cut-large .cut-photo img { height: clamp(420px, 44vw, 680px); }
  .cut-large .cut-pit { width: min(56%, 640px); }
}

/* --- One job, all the way down ------------------------------------------- */

.seq { display: grid; gap: 22px; }
.seq figure { margin: 0; }
.seq img { width: 100%; }
.seq figcaption { padding-top: 8px; }
.seq-step { color: var(--gold); }

@media (min-width: 760px) {
  .seq { grid-template-columns: repeat(6, 1fr); gap: 24px; }
  .seq .f1 { grid-column: span 6; }
  .seq .f2 { grid-column: span 3; }
  .seq .f3 { grid-column: span 3; }
  .seq .f4 { grid-column: span 2; }
  .seq .f5 { grid-column: span 4; }
  /* the abridged three-frame homepage run */
  .seq-3 .f1 { grid-column: span 6; }
  .seq-3 .f2, .seq-3 .f3 { grid-column: span 3; }
}
.seq-more { margin-top: 26px; }

/* --- Recent jobs --------------------------------------------------------- */

.jobs { display: grid; gap: clamp(34px, 5vw, 52px); }
@media (min-width: 860px) { .jobs { grid-template-columns: 1fr 1fr; } }
.jobs-1 { grid-template-columns: 1fr; max-width: 690px; } /* the re-roof and doorstep sources are 768 and 690 px wide; the card never asks for more */

.job figure { margin: 0; position: relative; }
.job > figure > picture > img { width: 100%; border: 1px solid var(--hair); }
.job .tip { position: absolute; right: 12px; bottom: 12px; width: 120px; }
@media (min-width: 860px) { .job .tip { width: 148px; } }
.job h3 { margin-top: 16px; }
.job h3 a { color: var(--chalk); text-decoration: none; }
.job h3 a:hover { color: var(--gold-2); }
.job p { color: var(--chalk-2); font-size: 0.9375rem; margin-top: 6px; }

/* --- Reviews: the Google panel -------------------------------------------
   The one deliberately LIGHT surface on this dark site, and that is the whole
   point. The proof is not ours, so it does not wear our colours: a paper plate
   set on the slate ground reads as an instrument laid onto the page rather
   than another section of it, and Google's four-colour mark only holds
   together on a light ground. Square edges, hairlines, Mona Sans for the
   figures and Newsreader for the customer's words keep it inside Ace's brand.
   Ships hidden. Scoped :not([hidden]) so no display value can beat the
   attribute. Nothing here is ever invented and no review is ever trimmed. */

#reviews:not([hidden]) { display: block; }
.reviews { border-top: 1px solid var(--hair); }

.grw {
  --gr-paper: #EDEAE3;   /* the plate */
  --gr-card:  #FFFFFF;   /* a review */
  --gr-ink:   #14181A;   /* figures and names. Ace's own slate, so the plate is still ours */
  --gr-body:  #343B3F;   /* the customer's words */
  --gr-meta:  #5C6569;   /* when, and the note */
  --gr-line:  #CFC9BD;   /* hairlines on paper */
  --gr-star:  #8A6014;   /* Ace's gold taken down until it passes AA on the plate AND on a card */
  background: var(--gr-paper);
  border: 1px solid var(--gr-line);
  padding: clamp(18px, 2.8vw, 30px);
}

/* the site's gold focus ring is all but invisible on paper */
.grw :focus-visible { outline: 2px solid var(--gr-ink); outline-offset: 2px; }
.grw-track:focus-visible { outline: 2px solid var(--gr-ink); outline-offset: -2px; }

.grw-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--gr-line);
  padding-bottom: 18px; margin-bottom: 20px;
}
.grw-glogo { width: 36px; height: 36px; flex: 0 0 36px; display: block; }
.grw-agg { display: flex; align-items: center; gap: 12px; }
.grw-score {
  font-family: var(--display); font-variation-settings: 'wdth' 100;
  font-weight: 700; font-size: 2rem; line-height: 1;
  letter-spacing: -0.02em; color: var(--gr-ink);
}
.grw-stars { color: var(--gr-star); letter-spacing: 0.1em; font-size: 0.9375rem; line-height: 1.1; }
.grw-count {
  display: block; font-family: var(--display); font-size: 0.8125rem;
  font-weight: 600; color: var(--gr-meta); margin-top: 4px;
}

.grw-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.grw-cta {
  font-family: var(--display); font-variation-settings: 'wdth' 100;
  font-weight: 700; font-size: 0.875rem; letter-spacing: -0.005em;
  background: var(--gold); color: var(--slate);
  border: 1px solid var(--gold);
  min-height: 44px; padding: 0 16px; white-space: nowrap;
  display: inline-flex; align-items: center; text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.grw-cta:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--slate); }

.grw-arrow {
  width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid var(--gr-line); background: var(--gr-card);
  color: var(--gr-ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.grw-arrow:hover { border-color: var(--gr-ink); }
.grw-arrow[disabled] { color: var(--gr-meta); border-color: var(--gr-line); cursor: default; }
.grw-arrow svg { width: 17px; height: 17px; display: block; }

.grw-track {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 3px; margin: -3px; scrollbar-width: none;
}
.grw-track::-webkit-scrollbar { display: none; }
/* nothing to scroll, so nothing to centre: the cards start under the head */
.grw-track.is-fit { justify-content: flex-start; }

.grev {
  scroll-snap-align: start;
  flex: 0 0 clamp(240px, 78vw, 320px);
  background: var(--gr-card); border: 1px solid var(--gr-line);
  padding: 20px; display: flex; flex-direction: column;
}
/* A lone review is not a card floating in a field of paper. It stops being a
   box and becomes the plate's own content: no border, no second background,
   set a size larger and held to a readable measure. This is the case Ace is
   actually in today, so it is the case that has to look deliberate. */
.grev:only-child {
  flex: 0 1 min(58ch, 100%);
  border: 0; background: none; padding: 0;
}
.grev:only-child blockquote p { font-size: 1.125rem; }
/* with no card edge to sit against, the per-review G tucks in beside the name
   instead of drifting out into the empty half of the plate */
.grev:only-child .grw-gicon { margin-left: 12px; }

.grev-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.grw-ava {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--slate); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}
.grev-who { min-width: 0; }
.grev-who b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 0.9375rem; color: var(--gr-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grev-who span { font-size: 0.8125rem; color: var(--gr-meta); }
.grev .grw-gicon { margin-left: auto; width: 20px; height: 20px; flex: 0 0 20px; display: block; }
.grev .grw-stars { margin-bottom: 10px; }
.grev blockquote { margin: 0; }
/* verbatim. No clamp, no ellipsis: the whole review or nothing. */
.grev blockquote p {
  font-size: 1rem; line-height: 1.6; color: var(--gr-body);
  white-space: pre-line; margin: 0;
}

.grw-note { margin-top: 16px; font-size: 0.8125rem; color: var(--gr-meta); }
.grw-note a { color: var(--gr-ink); }

/* the arrows scroll with behavior:auto under reduced motion (app.js), and the
   hover transitions come off with them */
@media (prefers-reduced-motion: reduce) {
  .grw-cta, .grw-arrow { transition: none; }
  .grw-track { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .grw-actions { margin-left: 0; width: 100%; }
  /* with no arrows the button owns the row; with arrows it fills what is left */
  .grw-cta { flex: 1 1 auto; justify-content: center; }
  /* one card is visible at a time here, so matching a short review to the
     height of the longest one just leaves a pane of dead white under it */
  .grw-track { align-items: flex-start; }
}

/* --- Get a price --------------------------------------------------------- */
/* Card first in the DOM. No CSS order anywhere in this file. */

.price { background: var(--slate-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.price-grid { display: grid; gap: clamp(30px, 4vw, 44px); }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--chalk);
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 12px;
  min-height: 48px;
  color-scheme: dark;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--chalk-2); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--chalk); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ECEDEA' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.form-note { font-size: 0.8125rem; color: var(--chalk-2); margin-top: 14px; }
.submit { width: 100%; min-height: 52px; font-size: 1rem; }

.steps { list-style: none; margin: 0 0 22px; padding: 0; }
.steps li { border-top: 1px solid var(--hair); padding: 11px 0; font-size: 0.9375rem; }
.steps li:last-child { border-bottom: 1px solid var(--hair); }

.contact-line { margin-top: 18px; }
.contact-line a { display: inline-block; min-height: 44px; line-height: 44px; }

/* --- The two numbers -----------------------------------------------------
   1 Sep 2026. Ace's freephone went on alongside his mobile. Two numbers in a
   row read as a typo unless each one is told what it is, so every place that
   shows the pair as CONTENT stacks them one per line with a quiet tag after
   the digits (.call-row + .call-label). Every place that shows a call ACTION
   keeps its single button on the freephone and drops the mobile underneath as
   plain text (.call-alt), so nothing turns into two competing buttons.
   ------------------------------------------------------------------------ */

.call-row { display: block; }
.contact-line .call-row a { line-height: 30px; min-height: 0; }
.call-row + .call-row { margin-top: 2px; }

/* Sentence case, not an uppercase eyebrow. The site has no uppercase anywhere and
   _audit/tools/static-gates.py counts it as a tell; this label matches .menu-head instead. */
.call-label {
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--chalk-2);
  margin-left: 10px;
  vertical-align: 0.08em;
}

/* The mobile beneath a freephone button. Its own line, so a wrapped pair never
   sits shoulder to shoulder with the button and reads as a second one. */
.call-alt {
  flex-basis: 100%;
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--chalk-2);
}
.call-alt a { color: var(--chalk-2); text-decoration: underline; }
.call-alt a:hover { color: var(--chalk); }
.call-lead { display: flex; flex-wrap: wrap; align-items: center; }
.call-lead .call-alt { margin-top: 12px; }

/* Header. The call button only shows its digits from 1100px up; below that it
   is the icon alone and there is no room for a second number, so the mobile
   rides the same breakpoint and lives in the phone menu panel instead. */
.header-alt { display: none; }
@media (min-width: 1100px) {
  .header-alt {
    display: inline-block;
    font-family: var(--display);
    font-variation-settings: 'wdth' 100;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.8125rem;
    color: var(--chalk-2);
    text-decoration: none;
    padding: 0 2px;
    white-space: nowrap;
  }
  .header-alt:hover { color: var(--chalk); text-decoration: underline; }
}


/* Call bar. The mobile spans both columns as a thin line above the buttons, so
   the bar keeps two targets rather than squeezing in a third at 390px. */
.callbar-alt {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  line-height: 1;
  padding: 1px 0 5px;
  color: var(--chalk-2);
  text-decoration: none;
}
.callbar-alt:hover { color: var(--chalk); }

.proof-figure { margin: 0 0 24px; }
.proof-figure img { border: 1px solid var(--hair); }

/* --- Where we work ------------------------------------------------------- */
/* No map, no radius circle, no coverage graphic. */

.towns { list-style: none; margin: 0; padding: 0; }
.towns li {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112.5;
  font-weight: 750;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--hair);
  padding: 10px 0;
}
.towns li:first-child { border-top: 1px solid var(--hair); }
.towns li span { color: var(--chalk-2); font-weight: 600; font-size: 0.7em; margin-left: 10px; font-variation-settings: 'wdth' 100; }
@media (min-width: 720px) { .towns { columns: 2; column-gap: 40px; } .towns li { break-inside: avoid; } .towns li:first-child { border-top: 0; } .towns li:nth-child(5) { border-top: 0; } }

/* --- Service pages ------------------------------------------------------- */

.page-head { border-bottom: 1px solid var(--hair); }
.page-head figure { margin: 0; }
.page-head figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.page-head .plinth { border-bottom: 0; }
.page-head h1 { max-width: 16ch; }
.page-head .lede { color: var(--chalk-2); margin-top: 0.85em; max-width: 46ch; font-size: 1.0625rem; }
.crumbs { font-size: 0.8125rem; color: var(--chalk-2); margin: 0 0 14px; }
.crumbs a { color: var(--chalk-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span { margin: 0 8px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
@media (min-width: 900px) {
  .page-head { display: grid; grid-template-columns: 55% 1fr; align-items: stretch; }
  .page-head figure img { height: 100%; min-height: 480px; max-height: 620px; }
  .page-head .plinth { display: flex; align-items: center; }
  .page-head .plinth .wrap { padding-inline: clamp(32px, 4vw, 56px); width: 100%; }
}

.prose { max-width: 62ch; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; font-size: clamp(1.35rem, 3.2vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.35em; }
.prose p { max-width: none; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold); }
.two-col { display: grid; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 0.9fr; } }
.two-col figure { margin: 0; }
.two-col figure img { border: 1px solid var(--hair); width: 100%; }
.two-col figcaption { padding-top: 8px; }

/* stages: a headed list with hairlines, not a numbered rail */
.stages { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.stages li { border-top: 1px solid var(--hair); padding: 18px 0; display: grid; gap: 4px 24px; }
.stages li:last-child { border-bottom: 1px solid var(--hair); }
.stages h3 { margin: 0; }
.stages p { margin: 0; color: var(--chalk-2); }
@media (min-width: 760px) { .stages li { grid-template-columns: 14rem 1fr; align-items: baseline; } }

/* a compare table: driveways */
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--hair); }
.compare tr:last-child td { border-bottom: 1px solid var(--hair); }
.compare th { font-family: var(--display); font-variation-settings: 'wdth' 100; font-weight: 700; color: var(--chalk); }
.compare thead th { color: var(--chalk-2); font-size: 0.8125rem; border-top: 0; padding-top: 0; }
.compare td { color: var(--chalk-2); }
.compare-wrap { overflow-x: auto; }

/* the empty slot: an outlined frame naming the photograph that is needed */
.slot {
  border: 1px dashed var(--border);
  padding: 22px;
  color: var(--chalk-2);
  font-size: 0.9375rem;
  max-width: 46ch;
}

/* --- Gallery ------------------------------------------------------------- */

.gal-group { margin-top: clamp(40px, 6vw, 64px); }
.gal-group:first-of-type { margin-top: 0; }
.gal-group h2 { margin-bottom: 0.25em; }
.gal-group > p { color: var(--chalk-2); margin-bottom: 24px; }
.gal { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .gal { grid-template-columns: repeat(4, 1fr); } }
.gal figure { margin: 0; position: relative; }
.gal figure > picture > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); }
.gal figure.tall > picture > img { aspect-ratio: 3 / 4; }
.gal figcaption { padding-top: 8px; }
.gal .tip { position: absolute; right: 8px; top: 8px; width: 92px; }
.gal .tip .caption { font-size: 0.625rem; padding: 4px 2px 5px; }
@media (min-width: 900px) { .gal .tip { width: 110px; } }
.gal .wide2 { grid-column: span 2; }

/* --- About --------------------------------------------------------------- */

.about-grid { display: grid; gap: clamp(30px, 5vw, 64px); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.about-grid figure { margin: 0; }
.about-grid figure img { border: 1px solid var(--hair); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { border-top: 1px solid var(--hair); padding: 12px 0; }
.plain-list li:last-child { border-bottom: 1px solid var(--hair); }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--pit); color: var(--chalk); border-top: 1px solid var(--hair); }
.site-footer a { color: var(--gold); }
.site-footer .wrap { padding-block: clamp(44px, 6vw, 72px); }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 300px 1fr auto; gap: 48px; } }

/* The crest with its icon row, matted, straight on the pit. The seven small labels under the
   icons are dark type and would vanish on a dark ground, so the crop ends at the circles. */
.crest-mark { display: inline-block; }
.crest-mark img { width: 270px; height: 139px; }

.footer-services { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer-services li { margin-bottom: 8px; break-inside: avoid; }
.footer-services a { display: inline-block; min-height: 32px; line-height: 32px; }

.footer-title {
  font-family: var(--display); font-variation-settings: 'wdth' 100;
  font-weight: 700; font-size: 0.875rem; color: var(--chalk-2);
  margin: 0 0 10px;
}
.strapline {
  font-family: var(--body); font-style: italic; font-weight: 500;
  color: var(--chalk-2); font-size: 1rem; margin-top: 28px;
}
.colophon {
  border-top: 1px solid var(--hair); margin-top: 34px; padding-top: 20px;
  font-size: 0.8125rem; color: var(--chalk-2);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}

/* --- Reveal --------------------------------------------------------------
   The default is fully visible. JavaScript opts in to the animation and a
   failsafe reveals everything if the observer never fires.
   ------------------------------------------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  animation: reveal-failsafe 1ms linear 3s forwards;
}
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }

@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
}

/* --- Thanks / privacy / contact ----------------------------------------- */

.page { max-width: 46rem; }
.page h1 { margin-bottom: 0.5em; }
.page h2 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); margin-top: 1.8em; margin-bottom: 0.4em; }
.page ul { padding-left: 1.1em; }
.page li { margin-bottom: 0.4em; }
.mt { margin-top: 28px; }
.mt-l { margin-top: 34px; }
