/* ==========================================================================
   Site stylesheet: layout and components

   No colour and no font is set in this file. They all come from brand.css,
   by name. To change how the brand looks, edit brand.css. To change how a
   part of the page is built, edit this file.

   `python tools/check.py` fails if a colour is written in this file.

   Contents
     1  Sizes            7  Estimate card and form   13  Lists and facts
     2  Base             8  Services                 14  Questions
     3  Bands, the cut   9  The owner                15  Closing band
     4  Small parts     10  Job photos               16  Footer, call bar
     5  Header          11  One house, four frames   17  Long text, helpers
     6  Page tops       12  Steps, reviews           18  Motion, print
   ========================================================================== */

/* ---------- 1. Sizes (layout, not brand) ---------- */
:root {
  --gutter: 20px;
  --max: calc(1240px + 2 * var(--gutter));
  --bar-h: 68px;                          /* height of the call bar on phones */
  --header-h: 0px;                        /* height of the header where it stays at the top */
  --pad: clamp(3.25rem, 7vw, 6rem);       /* space above and below the content of a band */

  /* The roof-peak cut: a band rises into the one above it as a lopsided
     roof peak, as on the logo. --apex is where the peak sits across the
     page. A Maple line runs parallel above it, like the logo's second
     roofline. */
  --peak: clamp(30px, 7.4vw, 104px);
  --apex: 74%;
  --roofline: clamp(3px, 0.42vw, 6px);
  --roofline-gap: clamp(7px, 1.05vw, 15px);
}
@media (max-width: 359px) { :root { --gutter: 16px; } }
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1000px) { :root { --gutter: 40px; --header-h: 84px; } }
@media (min-width: 1600px) { :root { --max: calc(1400px + 2 * var(--gutter)); } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-body);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (min-width: 1000px) { html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 16px; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: var(--font-weight-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--color-heading); margin: 0 0 0.5em; text-wrap: balance; }
/* Big headings: very heavy capitals, set tight. */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
h1 { font-size: clamp(2.125rem, 1.25rem + 4vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 1.15rem + 2.3vw, 2.75rem); }
/* Smaller headings: the text face, bold. */
h3, h4 { font-family: var(--font-body); font-weight: var(--font-weight-strong); font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--color-heading); font-weight: var(--font-weight-strong); }
a { color: var(--color-link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
.small { font-size: 0.9375rem; color: var(--color-muted); }
.lead { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem); line-height: 1.5; color: var(--color-heading); max-width: 40rem; }
.measure { max-width: 62ch; }

/* One phrase of a big heading in Maple. Large type only. */
.hl { color: var(--color-brand-mark); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible, .site-header :focus-visible, .hero :focus-visible,
.page-head :focus-visible, .cta-final :focus-visible, .call-bar :focus-visible, .rating :focus-visible { outline-color: var(--color-focus-on-dark); }

/* ---------- 3. Bands, and the roof-peak cut ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { position: relative; padding: var(--pad) 0; background: var(--color-bg); }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-dark); color: var(--color-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark strong, .section-dark .lead { color: var(--color-on-dark); }
.section-dark a { color: var(--color-on-dark); }
.section-dark .small { color: var(--color-on-dark-muted); }

/* The cut. Put .peak on a band and its top edge rises into the band above.
   The closing band and the band under a page top are cut the same way
   without the class. */
.peak, .cta-final, .page-head + .section, .hero-split + .section { position: relative; z-index: 1; }
.peak::before, .cta-final::before, .page-head + .section::before, .hero-split + .section::before,
.peak::after, .cta-final::after, .page-head + .section::after, .hero-split + .section::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
}
.peak::before, .cta-final::before, .page-head + .section::before, .hero-split + .section::before {
  bottom: calc(100% - 1px); height: var(--peak);
  background: inherit;
  clip-path: polygon(0 100%, var(--apex) 0, 100% 100%);
}
.peak::after, .cta-final::after, .page-head + .section::after, .hero-split + .section::after {
  bottom: calc(100% + var(--roofline-gap)); height: calc(var(--peak) + var(--roofline));
  background: var(--color-brand-mark);
  clip-path: polygon(0 calc(100% - var(--roofline)), var(--apex) 0, 100% calc(100% - var(--roofline)), 100% 100%, var(--apex) var(--roofline), 0 100%);
}
/* The band above a cut keeps its words clear of it. */
main > :has(+ .peak) { padding-bottom: calc(var(--pad) + var(--peak) * 0.72); }
main > :has(+ .cta-final) { padding-bottom: calc(var(--pad) * 0.6 + var(--peak) * 0.72); }

/* The head of a band: a short label with the orange rule, the heading, and
   a sentence or a button on the other side. */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0; }
.section-intro { margin: 0; max-width: 31rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); line-height: 1.5; }
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 0.8125rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow::before { content: ""; flex: none; width: 2.25rem; height: 4px; background: var(--color-brand-mark); }
.section-dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--color-accent-on-dark); }

/* ---------- 4. Small parts ---------- */
/* Skip link */
.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--color-accent); color: var(--color-on-accent);
  padding: 0.75rem 1rem; z-index: 100;
  font-weight: var(--font-weight-strong); text-decoration: none;
}
.skip-link:focus { transform: none; }

/* Buttons: square corners, bold capitals. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0.8rem 1.4rem;
  border-radius: var(--radius-button); border: 2px solid transparent;
  font: inherit; font-weight: var(--font-weight-strong); font-size: 0.9375rem; line-height: 1.15; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-lg { font-size: 1rem; padding: 0.9rem 1.6rem; min-height: 56px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
/* The orange one: the main thing to press. */
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
/* The second one. An outline on a light band. */
.btn-outline { background: transparent; color: var(--color-heading); border-color: var(--color-heading); }
.btn-outline:hover { background: var(--color-heading); color: var(--color-bg); }
/* The white one, for Spruce and for photos: it usually carries the phone number. */
.btn-light, .section-dark .btn-light, .page-head .btn-light, .section-dark .btn-outline, .hero .btn-outline, .page-head .btn-outline {
  background: var(--color-surface); color: var(--color-dark); border-color: var(--color-surface);
}
.btn-light:hover, .section-dark .btn-light:hover, .page-head .btn-light:hover, .section-dark .btn-outline:hover, .hero .btn-outline:hover, .page-head .btn-outline:hover {
  background: var(--color-on-dark-muted); border-color: var(--color-on-dark-muted); color: var(--color-dark);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem 0.875rem; align-items: center; margin-top: 1.5rem; }
.phone-link { font-weight: var(--font-weight-strong); white-space: nowrap; }
/* A link that stands alone, outside a sentence: tall enough to tap. */
.more-link { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: var(--font-weight-strong); text-decoration-color: var(--color-brand-mark); text-decoration-thickness: 2px; }
.more-link svg { width: 1.15em; height: 1.15em; flex: none; color: var(--color-brand-mark); transition: transform 0.2s ease; }
.more-link:hover svg { transform: translateX(4px); }

/* Icons sit in a ring with a Maple edge, everywhere. */
.ring {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem;
  border: 2px solid var(--color-brand-mark); border-radius: 50%;
}
.ring svg { width: 52%; height: 52%; }
.ring-sm { width: 2.25rem; height: 2.25rem; }

/* A fact we are still waiting for. It keeps its square brackets and capital
   letters, small and quiet, so the page reads as finished and the gap is
   easy to find. */
.slot {
  display: inline-block; max-width: 100%;   /* it moves to the next line whole, and breaks only if a line cannot hold it */
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.05em; text-transform: none; font-style: normal;
  color: var(--color-muted);
  border-bottom: 1px dotted currentColor;
  overflow-wrap: anywhere;
}
.section-dark .slot, .site-footer .slot, .hero .slot, .shot .slot, .rating .slot { color: var(--color-on-dark-muted); }

/* A label on the corner of a photo. */
.photo-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 0.5rem 0.8rem 0.45rem;
  background: var(--color-dark); color: var(--color-on-dark);
  border-top: 4px solid var(--color-brand-mark);
  font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase;
}

/* ---------- 5. Header ---------- */
/* The phone number is real text in the header at every width. On phones the
   header scrolls away and the call bar at the bottom carries the buttons.
   On wide screens the header stays at the top. */
.site-header { position: relative; z-index: 50; background: var(--color-header-bg); }
.header-inner {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav";
  align-items: center; gap: 0 0.75rem; padding-top: 0.6rem;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-header-text); text-decoration: none; }
.brand img { width: auto; max-width: none; height: 50px; }
.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap;
  color: var(--color-header-text); text-decoration: none;
}
.header-phone:hover { text-decoration: underline; text-decoration-color: var(--color-brand-mark); text-underline-offset: 0.25em; }
.header-phone .ring { width: 2.125rem; height: 2.125rem; }
.header-estimate { display: none; }
.site-nav { grid-area: nav; margin-top: 0.45rem; border-top: 1px solid color-mix(in srgb, var(--color-header-line) 55%, transparent); }
.nav-list { list-style: none; margin: 0 -0.5rem; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.nav-list li { margin: 0; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0.5rem;
  font-size: 0.8125rem; font-weight: var(--font-weight-strong); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--color-header-text);
}
/* A Maple bar under the link you point at, and under the page you are on. */
.nav-list a::after { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 6px; height: 3px; background: var(--color-brand-mark); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
/* A page inside Services (its body has the class) keeps the bar under Services. */
.in-services .nav-list a[href="/services/"]::after { transform: scaleX(1); }
@media (max-width: 359px) {
  .header-phone .ring { display: none; }
  .brand img { height: 44px; }
  .nav-list { margin: 0 -0.3rem; }
  .nav-list a { padding: 0.3rem; font-size: 0.75rem; letter-spacing: 0.05em; }
  .nav-list a::after { left: 0.3rem; right: 0.3rem; }
}
@media (min-width: 480px) { .nav-list { justify-content: flex-start; gap: 0 1rem; } }
@media (min-width: 1000px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions"; min-height: var(--header-h); gap: 1rem 2rem; padding-top: 0; }
  .brand img { height: 64px; }
  .site-nav { justify-self: center; margin-top: 0; border-top: 0; }
  .nav-list { margin: 0; gap: 0 0.75rem; }
  .nav-list a { min-height: 48px; padding: 0.5rem 0.7rem; font-size: 0.875rem; }
  .nav-list a::after { left: 0.7rem; right: 0.7rem; bottom: 7px; }
  .header-phone { font-size: 1.25rem; }
  .header-phone .ring { width: 2.5rem; height: 2.5rem; }
  .header-estimate { display: inline-flex; }
}
/* A narrow desktop: the same row, set a little tighter. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .header-inner { gap: 1rem 1.25rem; }
  .brand img { height: 56px; }
  .nav-list { gap: 0; }
  .nav-list a { padding: 0.5rem; font-size: 0.8125rem; letter-spacing: 0.08em; }
  .nav-list a::after { left: 0.5rem; right: 0.5rem; }
  .header-actions { gap: 0.9rem; }
  .header-phone { font-size: 1.0625rem; gap: 0.5rem; }
  .header-phone .ring { width: 2.25rem; height: 2.25rem; }
  .header-estimate { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- 6. Page tops ---------- */
.hero { position: relative; background: var(--color-dark); color: var(--color-on-dark); }
.hero h1, .hero .lead { color: var(--color-on-dark); }
.hero .lead { max-width: 37rem; }
.hero-media { position: relative; --foot: 0px; }
.hero-media picture { display: block; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Spruce rises over the foot of the photo as the roof peak, with the Hard
   Hat roofline above it. --foot is a flat strip of Spruce under the peak. */
.hero-media::before, .hero-media::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero-media::after {
  bottom: -1px; height: calc(var(--peak) + var(--foot) + 1px); background: var(--color-dark);
  clip-path: polygon(0 var(--peak), var(--apex) 0, 100% var(--peak), 100% 100%, 0 100%);
}
.hero-media::before {
  bottom: calc(var(--foot) + var(--roofline-gap)); height: calc(var(--peak) + var(--roofline)); background: var(--color-brand-mark);
  clip-path: polygon(0 calc(100% - var(--roofline)), var(--apex) 0, 100% calc(100% - var(--roofline)), 100% 100%, var(--apex) var(--roofline), 0 100%);
}
.hero-inner { position: relative; z-index: 2; }

/* The home page. On a phone: the photo, the cut, the words and the two
   buttons, then the estimate card, then three short facts. On a wide screen
   the photo fills the top at full colour. The words sit low on the left, on
   a scrim that darkens only that corner. The card stands on the right. The
   three facts sit on a strip of Spruce that rises into the photo as the roof
   peak. */
.hero-home .hero-media { height: clamp(13.5rem, 62vw, 27rem); }
.hero-home .hero-media img { object-position: 60% 50%; }
.hero-home .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 1.25rem; padding-bottom: 2.75rem; }
.hero-home h1 { margin-bottom: 0.4em; }
.hero-home h1 .hl { display: block; }
.hero-home h1 .stroke svg { display: none; }
.hero-home .cta-row .btn { flex: 1 1 15rem; }
.hero-home .estimate-card { width: 100%; max-width: 30rem; }

/* Three short facts under the words. */
.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem 1.75rem; }
.proof li { margin: 0; display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.3; color: var(--color-on-dark-muted); text-wrap: balance; }
.proof strong { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; color: var(--color-on-dark); font-size: 1rem; }
/* Five small stars beside the rating. */
.stars-row { flex: none; width: 4.75rem; height: 0.95rem; color: var(--color-brand-mark); }
.proof a { display: inline-block; padding: 0.3rem 0; margin: -0.3rem 0; color: inherit; }
.proof .ring { color: var(--color-on-dark); }
@media (min-width: 640px) { .proof { grid-template-columns: repeat(3, auto); justify-content: start; } }
/* A tablet: the three facts in one row under the words, then the card. */
@media (min-width: 720px) and (max-width: 999px) {
  .hero-home .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "proof" "card"; }
  .hero-home .hero-text { grid-area: text; }
  .hero-home .estimate-card { grid-area: card; max-width: 34rem; }
  .hero-home .proof { grid-area: proof; grid-template-columns: repeat(3, auto); margin: 0.5rem 0 1.75rem; gap: 1.25rem 2.25rem; }
}

@media (min-width: 1000px) {
  .hero-home {
    --apex: 60%; --peak: clamp(56px, 5.6vw, 80px);
    --foot: 5.75rem;                                                                      /* the strip of Spruce that holds the three facts */
    --top: clamp(30.25rem, calc(100vh - var(--header-h) - var(--foot)), 52rem);           /* the photo above the strip: the two fill the screen */
    overflow: hidden;
  }
  .hero-home .hero-media { position: absolute; inset: 0; height: auto; --foot: 5.75rem; }
  .hero-home .hero-media img { object-position: 50% 0%; }
  .hero-home .hero-inner {
    grid-template-columns: minmax(0, 1fr) 23.5rem; grid-template-rows: minmax(var(--top), auto) var(--foot); grid-template-areas: "text card" "proof card";
    column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: 0; padding-top: 0; padding-bottom: 0;
  }
  .hero-home .hero-text { grid-area: text; align-self: end; position: relative; padding-bottom: calc(var(--peak) * 0.72 + var(--roofline-gap) + var(--roofline) + 1.5rem); }
  /* The scrim: Spruce behind the words only. It is at full strength from the
     first word down and as far across as the longest line, so the words are
     easy to read on any photo. It fades out above the words and to the
     right of them, and the house keeps its colour. */
  .hero-home .hero-text::before {
    content: ""; position: absolute; z-index: -1; left: -50vw; right: -4rem; top: -3.5rem; bottom: 0;
    background: var(--color-dark);   /* for a browser too old to mix colours: plain Spruce behind the words */
    background: linear-gradient(to top, color-mix(in srgb, var(--color-dark) 94%, transparent) 0, color-mix(in srgb, var(--color-dark) 88%, transparent) calc(100% - 12rem), color-mix(in srgb, var(--color-dark) 76%, transparent) calc(100% - 5rem), color-mix(in srgb, var(--color-dark) 40%, transparent) calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, var(--color-dark) 0, var(--color-dark) calc(50vw + 34rem), transparent 100%);
    mask-image: linear-gradient(to right, var(--color-dark) 0, var(--color-dark) calc(50vw + 34rem), transparent 100%);
  }
  .hero-home h1 { font-size: clamp(2.75rem, min(4.6vw, 8.6vh), 4.125rem); }
  /* Over the photo every word is white. The orange is a stroke drawn under the last two. */
  .hero-home h1 .hl, .hero-home .eyebrow { color: var(--color-on-dark); }
  /* The heading and the label are only as wide as their words: the scrim is measured against them. */
  .hero-home h1, .hero-home .eyebrow { width: fit-content; max-width: 100%; }
  .hero-home h1 .stroke svg { display: block; height: 0.2em; bottom: -0.16em; }
  .hero-home .cta-row .btn { flex: 0 1 auto; }
  .hero-home .proof { grid-area: proof; align-self: center; }
  .hero-home .estimate-card { grid-area: card; align-self: end; margin-top: 3.25rem; margin-bottom: 1rem; z-index: 1; }
  /* The card on a wide screen: name and phone share a row and the spacing is
     tighter, so the whole card, with its button, fits a laptop screen. */
  .hero-home .estimate-body { padding-top: 0.875rem; padding-bottom: 1rem; }
  .hero-home .estimate-body .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem 0.75rem; margin-top: 0.625rem; }
  .hero-home .form > * { grid-column: 1 / -1; }
  .hero-home .form > .field:nth-of-type(1), .hero-home .form > .field:nth-of-type(2) { grid-column: auto; }
  .hero-home .field label { margin-bottom: 0.2rem; }
  .hero-home .field input, .hero-home .field select { min-height: 44px; padding: 0.45rem 0.7rem; }
  .hero-home .more-fields summary { min-height: 44px; }
  .hero-home .estimate-body .turnstile-slot { padding-top: 0.5rem; }
  .hero-home .estimate-body .turnstile-slot::before { content: none; }
  .hero-home .estimate-body .btn { min-height: 50px; padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .hero-home .form-note { margin-top: 0.5rem; font-size: 0.8125rem; }
  /* The roofline is drawn again above the scrim, so it stays Maple from edge to edge. */
  .hero-home .hero-media::before { content: none; }
  .hero-home .hero-inner::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    left: 50%; width: 100vw; margin-left: -50vw;
    bottom: calc(var(--foot) + var(--roofline-gap)); height: calc(var(--peak) + var(--roofline));
    background: var(--color-brand-mark);
    clip-path: polygon(0 calc(100% - var(--roofline)), var(--apex) 0, 100% calc(100% - var(--roofline)), 100% 100%, var(--apex) var(--roofline), 0 100%);
  }
  /* A narrow desktop: a slimmer card, and the three facts on two lines. */
  @media (max-width: 1299px) {
    .hero-home { --foot: 8.75rem; }
    .hero-home .hero-media { --foot: 8.75rem; }
    .hero-home .hero-inner { grid-template-columns: minmax(0, 1fr) 21.5rem; column-gap: 2rem; }
    .hero-home .proof { grid-template-columns: repeat(2, auto); }
    .hero-home .estimate-call { margin-left: 1.25rem; margin-right: 1.25rem; }
    .hero-home .estimate-call-number { font-size: 1.4375rem; }
    .hero-home .estimate-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  }
  /* A little more air under the top, before the first light band begins. */
  .hero-home + .section { padding-top: calc(var(--pad) + 1.75rem); }
}

/* The top of a service page or the about page: the words on Spruce, one
   photo beside them at full colour. On a phone the photo sits on top. */
.hero-split .hero-media { height: clamp(12.5rem, 56vw, 24rem); }
/* On a phone the photo of an inner page ends on a flat Maple rule: the
   one cut on the screen is the band below the words. */
.hero-split .hero-media::after { content: none; }
.hero-split .hero-media::before { bottom: 0; height: 5px; clip-path: none; }
.hero-split .cta-row .btn { flex: 1 1 15rem; }
.hero-split .hero-inner { padding-top: 1.25rem; padding-bottom: calc(2.5rem + var(--peak) * 0.72); }
.hero-split h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); margin-bottom: 0.4em; }
/* On the narrowest phones the heading and the trail above it keep their lines whole. */
@media (max-width: 359px) { .hero-split h1 { font-size: 1.75rem; } .hero-split .crumbs { letter-spacing: 0.04em; } .hero-split .crumbs ol { gap: 0 0.4rem; } .hero-split .crumbs li:not(:last-child)::after { margin-left: 0.4rem; } }
@media (min-width: 1000px) {
  .hero-split { overflow: hidden; }
  .hero-split .hero-media { position: absolute; top: 0; bottom: 0; right: 0; left: 46%; height: auto; clip-path: polygon(7.5rem 0, 100% 0, 100% 100%, 0 100%); }
  .hero-split .cta-row .btn { flex: 0 1 auto; }
  /* The roofline, standing up: it runs down the slanted edge of the photo. */
  .hero-split .hero-media::before {
    left: 0; right: auto; top: 0; bottom: 0; width: 8.5rem; height: auto;
    clip-path: polygon(calc(100% - 1rem) 0, calc(100% - 1rem + var(--roofline) * 1.4) 0, calc(var(--roofline) * 1.4) 100%, 0 100%);
  }
  .hero-split .hero-inner { display: grid; grid-template-columns: minmax(0, 46%) 1fr; min-height: clamp(26rem, 32vw, 33rem); align-items: center; padding-top: 3rem; padding-bottom: calc(3rem + var(--peak) * 0.6); }
  .hero-split .hero-text { padding-right: 1rem; }
}
/* The about page: the slanted edge turns straight down halfway, like a roof
   meeting its wall, so the lettering on the truck's door reads whole. */
@media (min-width: 1000px) {
  .hero-split .hero-media-wall { clip-path: polygon(7.5rem 0, 100% 0, 100% 100%, 0 100%, 0 50%); }
  .hero-split .hero-media-wall img { object-position: 0% 85%; }
  .hero-split .hero-media-wall::before {
    clip-path: polygon(calc(100% - 1rem) 0, calc(100% - 1rem + var(--roofline) * 1.4) 0, calc(var(--roofline) * 1.4) 50%, var(--roofline) 100%, 0 100%, 0 50%);
  }
}

/* A plain top: where you are, the heading, one sentence. Spruce, cut by the
   band under it. */
.page-head { position: relative; background: var(--color-dark); color: var(--color-on-dark); padding: clamp(2.25rem, 6vw, 4.5rem) 0 calc(clamp(2rem, 5vw, 3.5rem) + var(--peak)); }
.page-head h1, .page-head .lead, .page-head strong { color: var(--color-on-dark); }
.page-head h1 { max-width: 20ch; }
.page-head a { color: var(--color-on-dark); }
.page-head p { max-width: 40rem; }
/* When nothing follows the plain top, it needs no room for the cut. */
.page-head:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-head + .section, .hero-split + .section { padding-top: calc(var(--pad) * 0.7); }

/* Where this page sits in the site: Home / Services / Roof repair. */
.crumbs { margin: 0 0 1rem; font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; min-height: 28px; }
.crumbs li:last-child { white-space: nowrap; }
/* The slash follows its word, so a trail that wraps never starts a line with one. */
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.6rem; color: var(--color-brand-mark); }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; color: inherit; text-decoration-thickness: 1px; }
.hero .crumbs, .page-head .crumbs { color: var(--color-on-dark-muted); }
.hero .crumbs [aria-current], .page-head .crumbs [aria-current] { color: var(--color-on-dark); }

/* ---------- 7. Estimate card: a call plate on top of a short form ---------- */
/* The plate straddles the top edge of the card, so calling and writing are
   offered in one glance. The whole plate is one call link. */
.estimate-card {
  position: relative; margin-top: 2.25rem; scroll-margin-top: 3.25rem;   /* room for the plate when a link jumps here */
  background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-dark) 12%, transparent), 0 18px 40px color-mix(in srgb, var(--color-dark) 30%, transparent);
}
.estimate-call {
  position: relative; display: flex; align-items: center; gap: 0.9rem;
  margin: 0 1.125rem; padding: 0.7rem 1.1rem 0.75rem; top: -2.25rem; margin-bottom: -2.25rem;
  background: var(--color-band); color: var(--color-on-band);
  border-top: 5px solid var(--color-brand-mark);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--color-dark) 35%, transparent);
  text-decoration: none;
}
.estimate-call .ring { width: 2.75rem; height: 2.75rem; }
/* On a phone or tablet the home card sits on the Spruce top, so its call plate is Slate to stand out from it. */
@media (max-width: 999px) {
  .hero-home .estimate-call { background: var(--color-steel); color: var(--color-on-steel); }
  .hero-home .estimate-call-label, .hero-home .estimate-call .ring { color: var(--color-on-steel); border-color: var(--color-on-steel); }
}
.estimate-call-label { display: block; font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; color: var(--color-accent-on-dark); }
.estimate-call-number { display: block; font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.4375rem, 1.2rem + 1vw, 1.6875rem); letter-spacing: -0.015em; line-height: 1.15; white-space: nowrap; }
.estimate-call:hover .estimate-call-number { text-decoration: underline; text-decoration-color: var(--color-brand-mark); text-underline-offset: 0.2em; text-decoration-thickness: 3px; }
.estimate-call:focus-visible { outline-color: var(--color-brand-mark); outline-offset: 3px; }
.estimate-body { padding: 1.125rem 1.125rem 1.25rem; }
.estimate-body h2 { font-family: var(--font-body); font-weight: var(--font-weight-strong); font-size: 1.3125rem; letter-spacing: 0; line-height: 1.25; text-transform: none; margin-bottom: 0; }
.estimate-body .form { margin-top: 0.875rem; gap: 0.8rem; }
.estimate-body .btn { width: 100%; }
@media (max-width: 359px) {
  .estimate-body { padding-left: 1rem; padding-right: 1rem; }
  .estimate-call { margin-left: 0.75rem; margin-right: 0.75rem; padding-left: 0.85rem; padding-right: 0.85rem; gap: 0.7rem; }
  .estimate-call .ring { width: 2.375rem; height: 2.375rem; }
  .estimate-call-number { font-size: 1.25rem; }
}
@media (min-width: 420px) { .estimate-call { margin-left: 1.5rem; margin-right: 1.5rem; } .estimate-body { padding: 1.25rem 1.5rem 1.5rem; } }
.more-fields { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.more-fields summary { cursor: pointer; list-style: none; position: relative; display: flex; align-items: center; min-height: 46px; padding-right: 2rem; font-size: 0.9375rem; font-weight: var(--font-weight-strong); line-height: 1.3; color: var(--color-heading); }
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::before, .more-fields summary::after, .faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 14px; height: 2.5px; margin-top: -1.25px; background: var(--color-brand-mark); transition: transform 0.2s ease;
}
.more-fields summary::after, .faq summary::after { transform: rotate(90deg); }
.more-fields[open] summary::after, .faq details[open] summary::after { transform: rotate(0deg); }
.more-fields .field { margin-bottom: 0.875rem; }
.more-fields .field textarea { min-height: 5.5rem; }

/* The form. Labels sit above their fields, and fields are full width. */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
.field label { display: block; font-size: 0.9375rem; font-weight: var(--font-weight-strong); line-height: 1.3; color: var(--color-heading); margin-bottom: 0.3rem; }
.optional { font-weight: var(--font-weight-body); color: var(--color-muted); }
.field input, .field textarea, .field select {
  display: block; width: 100%; font: inherit; font-size: 1.0625rem; color: var(--color-heading);
  min-height: 48px; padding: 0.6rem 0.8rem;
  background: var(--color-surface); border: 1.5px solid var(--color-field-border); border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--color-focus); outline: 3px solid var(--color-focus); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }
.field-error { display: none; margin: 0.4rem 0 0; color: var(--color-error); font-weight: var(--font-weight-strong); font-size: 0.9375rem; }
.field-error.is-visible { display: block; }
/* The trap field: off the screen for people, still there for bots. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* The spam check keeps its own quiet row, the height it needs and no more.
   Its box cannot be narrower than 300 px, so on the narrowest phones it is
   scaled down a little to stay inside the card. */
.turnstile-slot { min-height: 65px; }
.estimate-body .turnstile-slot { box-sizing: content-box; padding: 0.3rem 0 0; border-top: 1px solid var(--color-line); }
.estimate-body .turnstile-slot::before { content: "Spam check"; display: block; margin-bottom: 0.3rem; font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; color: var(--color-muted); }
.estimate-body .more-fields { border-bottom: 0; }
@media (max-width: 379px) { .turnstile-slot { width: 300px; transform-origin: left top; transform: scale(0.94); margin-bottom: -4px; } }
@media (max-width: 359px) { .turnstile-slot { transform: scale(0.84); margin-bottom: -10px; } }
.form-note { font-size: 0.875rem; line-height: 1.45; color: var(--color-muted); margin-top: 0.75rem; }
.form-note a { display: inline-block; padding-block: 0.3rem; margin-block: -0.3rem; }
.form-status { display: none; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: var(--font-weight-strong); }
.form-status.is-error { display: block; background: var(--color-error-bg); color: var(--color-error); border: 1px solid var(--color-error); }
.form-status.is-error a { color: var(--color-error); }
.form-status.is-busy { display: block; background: var(--color-bg-alt); color: var(--color-heading); border: 1px solid var(--color-line); }

/* Words on one side, the estimate card on the other. On a wide screen the
   card stays in view while the visitor reads. */
.split { display: grid; gap: 3rem; }
.split > .estimate-card { width: 100%; max-width: 30rem; }
@media (min-width: 640px) and (max-width: 999px) { .split > .estimate-card { margin-inline: auto; } }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) 23.5rem; column-gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
  .split > .estimate-card { position: sticky; top: calc(var(--header-h) + 3.5rem); }
}
.aside { align-self: start; }
/* The estimate page: the card first, what happens next beside it. */
.split-form .aside { padding: 1.5rem clamp(1.25rem, 3vw, 1.75rem) 1.75rem; background: var(--color-bg-alt); border-top: 6px solid var(--color-brand-mark); }
.split-form .aside .how { margin-top: 1rem; }
.split-form .aside .how li, .split-form .aside .how li:last-child { border-color: var(--color-line); }
@media (min-width: 1000px) {
  .split-form { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); }
  .split-form > .estimate-card { position: relative; top: auto; }
  .split-form .aside { margin-top: 2.25rem; }
}
/* The words beside the card: one block after another, with room between. */
.split-main { min-width: 0; }
.split-main .block { margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.split-main .shot-wide { margin-top: 2rem; aspect-ratio: 2 / 1; }
/* Facts we are waiting for, beside the checklist: a label and its slot. */
.notes { margin: 1.75rem 0 0; display: grid; gap: 0.75rem 2rem; padding: 1rem 1.25rem; background: var(--color-bg-alt); border-left: 5px solid var(--color-brand-mark); }
.notes div { display: grid; gap: 0.1rem; }
.notes dt { font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.notes dd { margin: 0; }
@media (min-width: 560px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* A job in four frames, in a row. */
.frames { list-style: none; margin: 1.5rem 0 0.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.frames li { margin: 0; min-width: 0; }
.frames .shot { aspect-ratio: 16 / 10; }
.frames li:last-child .photo-tag { background: var(--color-accent); border-top-color: var(--color-dark); }

/* ---------- 8. Services: a photo, the name, a line and the way in ---------- */
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.svc-tile { position: relative; margin: 0; display: flex; flex-direction: column; background: var(--color-dark); color: var(--color-on-dark); }
.svc-photo { overflow: hidden; aspect-ratio: 1 / 1; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.svc-tile:hover .svc-photo img { transform: scale(1.04); }
/* Keep the foot, or the left side, of a photo in the frame when it is cropped. */
.pos-low { object-position: 50% 82%; }
.hero-media .pos-left { object-position: 0% 50%; }
.svc-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.375rem; border-top: 5px solid var(--color-brand-mark); }
.svc-name { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.08; text-transform: uppercase; color: var(--color-on-dark); margin-bottom: 0.5rem; }
.svc-name a { color: inherit; text-decoration: none; }
/* The whole tile is the link. */
.svc-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-tile:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.svc-name a:focus-visible { outline: none; }
.svc-line { margin: 0 0 1.1rem; color: var(--color-on-dark-muted); font-size: 1rem; line-height: 1.5; }
.svc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; font-weight: var(--font-weight-strong); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-on-dark); }
.svc-go svg { width: 1.25rem; height: 1.25rem; transition: transform 0.2s ease; }
.svc-tile:hover .svc-go svg { transform: translateX(5px); }
@media (min-width: 620px) and (max-width: 899px) {
  /* A tablet: the photo beside the words. The photo takes the height of the
     words, and no less than 14rem, so the tile has no empty Spruce. */
  .svc-tile { flex-direction: row; min-height: 14rem; }
  .svc-photo { position: relative; flex: 0 0 42%; aspect-ratio: auto; }
  .svc-photo img { position: absolute; inset: 0; }
  .svc-body { border-top: 0; border-left: 5px solid var(--color-brand-mark); justify-content: center; }
  .svc-go { margin-top: 0; }
}
@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .svc-photo { aspect-ratio: 1 / 1; }
  .svc-body { padding: 1.375rem 1.5rem 1.5rem; }
  /* Two services side by side, each with its photo beside its words. */
  .svc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-two .svc-tile { flex-direction: row; }
  .svc-two .svc-photo { flex: 0 0 40%; aspect-ratio: 1 / 1; }
  .svc-two .svc-body { border-top: 0; border-left: 5px solid var(--color-brand-mark); justify-content: center; }
  .svc-two .svc-go { margin-top: 0; }
}

/* ---------- 9. The owner ---------- */
.owner { display: grid; gap: 2.5rem; align-items: center; }
.owner-photo { position: relative; margin: 0 0 1.5rem; max-width: 36rem; }
.owner-photo img { width: 100%; border-radius: var(--radius); }
/* A Spruce tile over the corner of the photo, holding one fact. */
.fact-tile {
  position: absolute; right: 0; bottom: -1.5rem; z-index: 2; margin: 0;
  padding: 0.9rem 1.2rem 1rem; max-width: 70%;
  background: var(--color-dark); color: var(--color-on-dark-muted);
  border-top: 5px solid var(--color-brand-mark);
  font-size: 0.9375rem; line-height: 1.35;
}
.fact-tile strong { display: block; font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; color: var(--color-on-dark); margin-bottom: 0.15rem; }
.owner-words h2 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); }
.owner-words .more-link { margin-top: 1.25rem; }

/* Where we work: one sentence on a strip of Slate, between the owner and the
   job photos. On Slate every mark is white. */
.area-strip { background: var(--color-steel); color: var(--color-on-steel); padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.area { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.3rem 1rem; }
.area .ring { grid-row: span 2; border-color: var(--color-on-steel); color: var(--color-on-steel); }
.area-title { margin: 0; font-family: var(--font-body); font-size: 0.8125rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; color: var(--color-on-steel); }
.area-line { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); font-weight: var(--font-weight-strong); line-height: 1.35; color: var(--color-on-steel); }
.area-strip .slot { color: var(--color-on-steel); }
.area-strip :focus-visible { outline-color: var(--color-focus-on-dark); }
@media (min-width: 900px) {
  .area { grid-template-columns: auto auto minmax(0, 1fr); gap: 0 1.5rem; }
  .area .ring { grid-row: auto; width: 3.25rem; height: 3.25rem; }
  .area-title { align-self: stretch; display: flex; align-items: center; padding-right: 1.5rem; border-right: 2px solid color-mix(in srgb, var(--color-on-steel) 45%, transparent); }
}
/* The about page: the photo stays at the top of its column beside the long text. */
.owner-top { align-items: start; }
/* His promise, set large. */
.pull { margin: 0 0 1.5rem; max-width: 26ch; font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.015em; line-height: 1.12; text-transform: none; color: var(--color-heading); }
.about-work { display: grid; gap: 2.5rem; align-items: start; }
.about-work .shot-strip { margin-top: 2rem; aspect-ratio: 16 / 6; }
.about-work .shot-strip img { object-position: 50% 30%; }
@media (min-width: 900px) { .about-work { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 5.5rem); } }
@media (min-width: 900px) {
  .owner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 5.5rem); }
  .fact-tile { right: -1.75rem; bottom: -1.75rem; }
}
/* On the home page the owner has a screen to himself. The header covers the
   top of that screen, so the photo and the words sit a little below the
   middle of the band. */
@media (min-width: 1000px) {
  .owner-band { display: flex; align-items: center; min-height: min(calc(100vh - 1.3rem), 62rem); padding-top: calc(var(--pad) + 2.25rem); }
}
@media (min-width: 1600px) {
  .owner-band { min-height: min(calc(100vh + 0.75rem), 64rem); padding-top: calc(var(--pad) + 5.75rem); }
}

/* A hand-drawn stroke under a word or two. It draws itself once. */
.stroke { position: relative; display: inline-block; white-space: nowrap; }
.stroke svg { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.32em; color: var(--color-brand-mark); overflow: visible; }
.stroke path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 0.9s 0.5s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- 10. Job photos ---------- */
/* One photo tile. The photo stays at full colour. Its caption sits on a
   Spruce plate in the corner, in three levels: a small red-orange line, a large
   white line, a small line for the place. */
.shot { position: relative; margin: 0; overflow: hidden; background: var(--color-dark-raised); border-radius: var(--radius); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.03); }
.shot-cap {
  position: absolute; left: 0; bottom: 0; z-index: 1; max-width: calc(100% - 1.5rem);
  display: grid; gap: 0.2rem; padding: 0.6rem 1rem 0.7rem;
  background: var(--color-dark); color: var(--color-on-dark);
  border-top: 4px solid var(--color-brand-mark);
}
.cap-kicker { font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; color: var(--color-accent-on-dark); }
.cap-title { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(0.9375rem, 0.875rem + 0.35vw, 1.0625rem); letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; }
.cap-place { line-height: 1.3; }

/* The home page: a lead photo and five more, composed, not a grid of equals.
   On a phone they run down the page, one large photo after another. */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.mosaic li { margin: 0; min-width: 0; }
.mosaic .shot { height: 100%; aspect-ratio: 16 / 10; }
.mosaic-lead .shot { aspect-ratio: 4 / 3; }
.mosaic-lead .cap-title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
@media (min-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-lead { grid-column: 1 / -1; }
  .mosaic .shot { aspect-ratio: 4 / 3; }
  .mosaic-lead .shot { aspect-ratio: 16 / 9; }
}
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(12rem, 18.5vw, 16.5rem); gap: 1rem; }
  .mosaic li, .mosaic li:last-child { grid-column: span 4; }
  .mosaic .mosaic-lead { grid-column: span 8; grid-row: span 2; }
  .mosaic .shot, .mosaic-lead .shot, .mosaic li:last-child .shot { aspect-ratio: auto; }
  .mosaic-lead .shot-cap { padding: 0.9rem 1.5rem 1.1rem; }
  /* A lead and four more: the lead takes half, the four make a square beside it. */
  .mosaic-five { grid-auto-rows: clamp(13rem, 21.5vw, 18.5rem); }
  .mosaic-five li, .mosaic-five li:last-child { grid-column: span 3; }
  .mosaic-five .mosaic-lead { grid-column: span 6; }
}

.mosaic + p { margin-top: 1.5rem; }

/* The Our work page: every sixth photo is a lead, on alternate sides. Each
   photo opens large when pressed. */
/* Up to a laptop: two columns, every sixth photo across both. */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; grid-auto-flow: dense; }
.gallery li { margin: 0; min-width: 0; }
.gallery li:nth-child(6n + 1) { grid-column: 1 / -1; }
.gallery .shot { height: 100%; aspect-ratio: 4 / 3; }
.gallery li:nth-child(6n + 1) .shot { aspect-ratio: 16 / 9; }
.gallery a { display: block; height: 100%; }
.gallery .shot-cap { pointer-events: none; }
.gallery a:focus-visible { outline-offset: -5px; }
/* A phone: the small tiles are half the screen, so their plate is smaller
   and shows the title only. The job number is still read out. */
@media (max-width: 559px) {
  .gallery li:nth-child(6n + 1) .cap-title { font-size: 1.25rem; }
  .gallery li:not(:nth-child(6n + 1)) .shot-cap { max-width: 100%; padding: 0.3rem 0.5rem 0.35rem; border-top-width: 3px; }
  .gallery li:not(:nth-child(6n + 1)) .cap-title { font-size: 0.8125rem; line-height: 1.15; }
  .gallery li:not(:nth-child(6n + 1)) .cap-kicker { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (max-width: 379px) {
  .gallery li:not(:nth-child(6n + 1)) .shot-cap { padding-inline: 0.4rem; }
  .gallery li:not(:nth-child(6n + 1)) .cap-title { font-size: 0.75rem; letter-spacing: 0; }
}
@media (min-width: 560px) {
  .gallery { gap: 1rem; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(13rem, 21vw, 18.5rem); }
  .gallery .shot, .gallery li:nth-child(6n + 1) .shot { aspect-ratio: auto; }
  .gallery li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
  .gallery li:nth-child(12n + 7) { grid-column: 2 / span 2; }
  .gallery li:nth-child(6n + 1) .cap-title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
  .gallery li:nth-child(6n + 1) .shot-cap { padding: 0.9rem 1.5rem 1.1rem; }
}

/* A wide strip of a photo between two bands. */
.strip { margin: 0; height: clamp(11rem, 30vw, 26rem); background: var(--color-dark); }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* The photo in the strip is 1280 px wide. On a wider screen the strip sits
   inside the page's column, on Spruce, so the photo is not stretched soft. */
@media (min-width: 1409px) {
  .strip { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
  .section.steps-band { padding-top: clamp(2.5rem, 3.5vw, 3.5rem); }
}

/* ---------- 11. One house, four frames ---------- */
.story { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story li { margin: 0; min-width: 0; }
.story .shot { height: 100%; }
.story-before .shot, .story-during .shot { aspect-ratio: 16 / 10; }
.story-roof, .story-after { grid-column: 1 / -1; }
.story-roof .shot { aspect-ratio: 32 / 10; }
.story-after .shot { aspect-ratio: 4 / 3; }
.story-after .photo-tag { background: var(--color-accent); border-top-color: var(--color-dark); }
/* A phone: each stage full width, big enough to see the old roof and the tear-off. */
@media (max-width: 559px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-before .shot, .story-during .shot { aspect-ratio: 16 / 10; }
}
@media (min-width: 900px) {
  .story { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 1rem; }
  .story-before { grid-column: 1 / span 4; }
  .story-during { grid-column: 5 / span 4; }
  .story-roof { grid-column: 1 / span 8; grid-row: 2; }
  .story-after { grid-column: 9 / span 6; grid-row: 1 / span 2; }
  .story-before .shot, .story-during .shot { aspect-ratio: 16 / 9; }
  .story-roof .shot { aspect-ratio: 3.76 / 1; }
  .story-after .shot { aspect-ratio: auto; }
}

/* The same four frames in one row, where the page goes on to more photos. */
@media (min-width: 900px) {
  .story-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story-row .story-before, .story-row .story-during, .story-row .story-roof, .story-row .story-after { grid-column: auto; grid-row: auto; }
  .story-row .story-before .shot, .story-row .story-during .shot, .story-row .story-roof .shot, .story-row .story-after .shot { aspect-ratio: 3 / 2; }
}

/* ---------- 12. Steps and reviews ---------- */
/* Three steps on Spruce: a white disc with a Maple ring and a line icon,
   a big numeral, a rule that leads to the next step. */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps3 li { margin: 0; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1.1rem; align-items: start; position: relative; }
.step-disc {
  grid-row: 1 / span 3; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--color-surface); color: var(--color-brand-mark); border: 3px solid var(--color-brand-mark);
  position: relative; z-index: 1;
}
.step-disc svg { width: 50%; height: 50%; }
.step-num { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: 1.625rem; line-height: 1; color: var(--color-brand-mark); margin-bottom: 0.35rem; }
.steps3 h3 { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; margin-bottom: 0.4rem; }
.steps3 p { margin: 0; color: var(--color-on-dark-muted); }
/* The rule between steps: down the page on a phone, across it on a wide screen. */
.steps3 li:not(:last-child)::before { content: ""; position: absolute; left: calc(2.25rem - 1px); top: 4.5rem; bottom: -2rem; width: 2px; background: var(--color-brand-mark); }
@media (min-width: 900px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .steps3 li { display: block; }
  .step-disc { width: 6.5rem; height: 6.5rem; margin-bottom: 1.5rem; }
  .step-num { position: absolute; left: 7.75rem; top: 2.1rem; font-size: 2.5rem; margin: 0; background: var(--color-dark); padding-right: 1rem; z-index: 1; }
  .steps3 li:not(:last-child)::before { left: 6.5rem; right: -2.5rem; top: calc(3.25rem - 1px); bottom: auto; width: auto; height: 2px; }
}
.steps-band { padding: 0; background: var(--color-dark); }
.steps-body { padding: calc(var(--pad) * 0.6) 0 calc(var(--pad) * 1.1); background: var(--color-dark); color: var(--color-on-dark); }
.steps-body .cta-row { margin-top: clamp(2rem, 4vw, 3rem); }
/* On a phone the two buttons run the full width, like the pair at the top of the page. */
@media (max-width: 559px) { .steps-body .cta-row .btn { flex: 1 1 100%; } }

/* The rating: a Spruce block with the number set large. */
.reviews { display: grid; gap: 2.5rem; align-items: stretch; }
.rating { background: var(--color-dark); color: var(--color-on-dark-muted); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 6px solid var(--color-brand-mark); display: flex; flex-direction: column; align-items: flex-start; }
.rating-nums { display: flex; align-items: flex-end; gap: clamp(1.25rem, 3vw, 2rem); margin: 0 0 1rem; }
.rating-score { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(5rem, 3.5rem + 7vw, 8.5rem); letter-spacing: -0.04em; line-height: 0.85; color: var(--color-brand-mark); }
.rating-count { display: grid; gap: 0.3rem; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 2px solid color-mix(in srgb, var(--color-line-on-dark) 70%, transparent); font-size: 0.8125rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; color: var(--color-on-dark); }
.rating-count-num { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(2.5rem, 2rem + 2.4vw, 3.75rem); letter-spacing: -0.03em; line-height: 0.9; color: var(--color-brand-mark); }
.stars { display: flex; gap: 0.3rem; color: var(--color-brand-mark); margin-bottom: 0.9rem; }
.stars svg { width: 1.75rem; height: 1.75rem; }
.rating-line { font-size: 1.0625rem; line-height: 1.45; color: var(--color-on-dark-muted); max-width: 21rem; margin-bottom: 1.5rem; }
.rating-line strong { color: var(--color-on-dark); }
.rating .btn { margin-top: 0; }
.rating-ask { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.rating-ask a { color: var(--color-on-dark); text-decoration-color: var(--color-brand-mark); }
.reviews-words { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .reviews { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 5.5rem); } .reviews .rating { order: -1; align-self: start; } }
@media (min-width: 600px) and (max-width: 899px) {
  .rating { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 2.5rem; align-items: end; }
  .rating-nums, .rating .stars { grid-column: 1; }
  .rating-line, .rating .btn { grid-column: 2; justify-self: start; }
  .rating-nums { grid-row: 1; } .rating .stars { grid-row: 2; }
}

/* A customer's words. */
.quote { position: relative; margin: 0; max-width: 46rem; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 6px solid var(--color-brand-mark); }
.quote blockquote .slot { font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); letter-spacing: 0.02em; }
.quote blockquote { margin: 0 0 0.6rem; font-size: 1.1875rem; line-height: 1.5; color: var(--color-heading); }
.quote figcaption { font-size: 0.9375rem; font-weight: var(--font-weight-strong); color: var(--color-muted); }
.quotes { display: grid; gap: 1.25rem; }
.reviews-words .quote { margin-bottom: 1.25rem; }
.reviews-ask { margin-bottom: 0.5rem; }
/* A job photo with the customer's words laid over its lower corner. */
.quote-photo { position: relative; margin-top: 0.5rem; }
.quote-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.reviews-words .quote-photo .quote { margin: -2.5rem 1rem 0; padding: 1.1rem 1.25rem 1.1rem 1.5rem; background: var(--color-surface); }
@media (min-width: 640px) { .reviews-words .quote-photo .quote { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; margin: 0; } }

/* ---------- 13. Lists and facts ---------- */
/* A checklist: each item has a ring with a tick. */
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.85rem 2rem; align-items: start; }
.ticks li { text-wrap: pretty; position: relative; margin: 0; padding: 0.2rem 0 0.2rem 2.6rem; min-height: 1.875rem; font-weight: var(--font-weight-strong); line-height: 1.35; color: var(--color-heading); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0; width: 1.875rem; height: 1.875rem; border: 2px solid var(--color-brand-mark); border-radius: 50%; }
.ticks li::after { content: ""; position: absolute; left: 0.66rem; top: 0.42rem; width: 0.5rem; height: 0.85rem; border-right: 2.5px solid var(--color-heading); border-bottom: 2.5px solid var(--color-heading); transform: rotate(40deg); }
.section-dark .ticks li { color: var(--color-on-dark); }
.section-dark .ticks li::after { border-color: var(--color-on-dark); }
@media (min-width: 560px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Steps down a page: the numeral in an orange ring, as on the home page,
   with a rule leading down to the next step. */
.how { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: how; display: grid; gap: 0; }
.how li { counter-increment: how; position: relative; margin: 0; padding: 0.95rem 0 1.6rem 5rem; min-height: 5.25rem; }
.how li::before {
  content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: 0.35rem;
  box-sizing: border-box; width: 3.75rem; height: 3.75rem; border-radius: 50%; border: 3px solid var(--color-brand-mark);
  text-align: center; line-height: calc(3.75rem - 6px);
  font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: 1.375rem; letter-spacing: -0.02em; color: var(--color-brand-mark);
}
.how li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.875rem - 1px); top: 4.35rem; bottom: 0; width: 2px; background: var(--color-brand-mark); }
.how strong { display: block; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 0.2rem; }

/* Rows: a list drawn as lines. */
.rows { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-bottom: 1px solid var(--color-line); }
.rows li { margin: 0; padding: 0.6rem 0; border-top: 1px solid var(--color-line); }
.rows strong { display: block; font-size: 1.125rem; line-height: 1.3; margin-bottom: 0.25rem; }
.page-head .rows { border-color: var(--color-line-on-dark); }
.page-head .rows li { border-color: var(--color-line-on-dark); }

/* Facts: a label and its value. */
.facts { margin: 0; background: var(--color-dark); color: var(--color-on-dark); border-top: 6px solid var(--color-brand-mark); padding: 0.5rem clamp(1.25rem, 3vw, 1.75rem) 0.75rem; }
.facts div { display: grid; gap: 0.15rem; padding: 0.85rem 0; border-top: 1px solid color-mix(in srgb, var(--color-line-on-dark) 60%, transparent); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-on-dark); }
.facts dd { margin: 0; font-weight: var(--font-weight-strong); color: var(--color-on-dark); overflow-wrap: anywhere; }
.facts a { display: inline-block; padding: 0.2rem 0; color: var(--color-on-dark); }
.facts .slot { color: var(--color-on-dark-muted); }

/* The services page: a large photo, the name, a line, for each service. */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.service-list li { margin: 0; display: grid; gap: 1.25rem 3rem; align-items: center; }
.service-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.service-list h3 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 0.4em; }
.service-list h3 a { text-decoration-color: var(--color-brand-mark); text-decoration-thickness: 4px; text-underline-offset: 0.2em; }
.service-list p { max-width: 34rem; font-size: 1.125rem; }
@media (min-width: 760px) {
  .service-list li { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  /* Every other row is mirrored: the photo keeps its size and moves to the right. */
  .service-list li:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .service-list li:nth-child(even) img { order: 2; }
}

/* After a message is sent, when it could not be sent, and when a page is not
   found: a light band under the plain top. What happens next and the ways on
   sit on one side. On the other, a photo with the phone number on a Spruce
   plate over its foot. The whole plate is one call link. */
.after { display: grid; gap: 2.5rem; align-items: start; }
.after-main .how, .after-main .rows { max-width: 40rem; }
.after-main .rows { margin-top: 1.5rem; border-bottom: 0; }
.after-main .rows li { border-top: 0; border-bottom: 1px solid var(--color-line); }
.after-head { margin: 2rem 0 0.25rem; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.after-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }
.after-links li { margin: 0; }
.after-side { width: 100%; max-width: 30rem; }
.after-photo { margin: 0; overflow: hidden; aspect-ratio: 1 / 1; background: var(--color-dark-raised); border-radius: var(--radius); }
.after-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.call-panel {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 0.9rem;
  margin: 0 0.75rem -2.5rem; padding: 0.85rem 1.25rem 1rem;
  background: var(--color-band); color: var(--color-on-band);
  border-top: 5px solid var(--color-brand-mark);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--color-dark) 35%, transparent);
  text-decoration: none;
}
.call-panel .ring { display: none; width: 3rem; height: 3rem; }
.call-panel-label { display: block; margin-bottom: 0.15rem; font-size: 0.75rem; font-weight: var(--font-weight-strong); letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; color: var(--color-accent-on-dark); }
.call-panel-number { display: block; font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(1.625rem, 1.2rem + 2.2vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.call-panel:hover .call-panel-number { text-decoration: underline; text-decoration-color: var(--color-brand-mark); text-underline-offset: 0.2em; text-decoration-thickness: 3px; }
@media (min-width: 420px) { .call-panel { margin-left: 1.5rem; margin-right: 1.5rem; } .call-panel .ring { display: inline-grid; } }
@media (min-width: 560px) { .after-main .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@media (min-width: 900px) {
  .after { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 5.5rem); }
  .after-side { justify-self: end; }
}

/* ---------- 14. Questions and answers ---------- */
.faq { max-width: 54rem; border-bottom: 1px solid var(--color-line); }
.faq details { border-top: 1px solid var(--color-line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 1.1rem 2.75rem 1.1rem 0;
  font-size: 1.125rem; font-weight: var(--font-weight-strong); line-height: 1.35; color: var(--color-heading); min-height: 56px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { width: 18px; height: 3px; margin-top: -1.5px; right: 0.4rem; }
.faq .answer { padding: 0 2.75rem 1.25rem 0; max-width: 46rem; }
/* The heading on one side, the questions on the other. */
.faq-split { display: grid; gap: 1.75rem 4rem; align-items: start; }
.faq-split h2 { margin-bottom: 0.5em; }
/* A band that sits a little closer to the one below it. */
.section-tight { padding-bottom: calc(var(--pad) * 0.55); }
@media (min-width: 900px) { .faq-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .faq-split .faq { margin-top: 0.4rem; } }

/* ---------- 15. Closing band: Maple, cut as a peak, the number large ---------- */
/* White type on Maple is large type only: 24 px and up, or bold from
   19 px. Buttons bring their own background. */
.cta-final { background: var(--color-brand-mark); color: var(--color-on-brand-mark); padding: calc(var(--pad) * 0.58) 0 var(--pad); }
.cta-final::after { background: var(--color-dark); }
/* Above a Spruce band the second roofline is white, so it shows. */
.section-dark + .cta-final::after { background: var(--color-on-dark); }
.cta-final h2 { color: var(--color-on-brand-mark); max-width: 22ch; margin-bottom: 0.3em; }
.cta-lead { font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem); font-weight: var(--font-weight-strong); line-height: 1.35; color: var(--color-on-brand-mark); margin: 0; }
.cta-number {
  display: inline-block; margin: 0.35em 0 0;
  font-family: var(--font-heading); font-weight: var(--font-weight-heading); font-size: clamp(2.375rem, 1.3rem + 5.6vw, 5.5rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
  color: var(--color-on-brand-mark); text-decoration: none;
}
@media (max-width: 359px) { .cta-number { font-size: 2.125rem; } }
.cta-number .stroke svg { color: var(--color-dark); height: 0.22em; bottom: -0.18em; }
.cta-final .btn-primary, .cta-final .btn-primary:hover { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-on-dark); }
.cta-final .btn-primary:hover { background: var(--color-dark-raised); border-color: var(--color-dark-raised); }
.cta-final .btn-outline { background: var(--color-surface); border-color: var(--color-surface); color: var(--color-dark); }
.cta-final .btn-outline:hover { background: var(--color-bg-alt); border-color: var(--color-bg-alt); color: var(--color-dark); }
.cta-final .cta-row { margin-top: 1.75rem; }
@media (min-width: 900px) {
  .cta-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; align-items: end; }
}

/* ---------- 16. Footer and call bar ---------- */
/* The extra space at the bottom on phones keeps the call bar off the last line. */
.site-footer {
  background: var(--color-dark); color: var(--color-on-dark-muted);
  border-top: 6px solid var(--color-brand-mark);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 calc(1.5rem + var(--bar-h) + env(safe-area-inset-bottom, 0px));
  font-size: 0.9375rem;
}
@media (min-width: 1000px) { .site-footer { padding-bottom: 2rem; } }
.cta-final + .site-footer, main + .site-footer { border-top-color: var(--color-brand-mark); }
.footer-grid { display: grid; gap: 2.25rem 2rem; }
/* On a phone the two short lists of links sit side by side, under the logo and above the contact lines. */
@media (max-width: 559px) {
  .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 1.5rem; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1.2fr 0.8fr 1.3fr; gap: 3rem; } }
.site-footer a { color: var(--color-on-dark); }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: auto; height: clamp(4.5rem, 3.5rem + 4vw, 6rem); }
.footer-head { display: flex; align-items: center; gap: 0.6rem; color: var(--color-on-dark); font-weight: var(--font-weight-strong); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-head::before { content: ""; width: 1.5rem; height: 3px; background: var(--color-brand-mark); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-list li { margin: 0; }
.footer-list a { text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.footer-list a:hover { text-decoration: underline; text-decoration-color: var(--color-brand-mark); }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; min-height: 2.5rem; overflow-wrap: anywhere; }
.footer-contact .ring { width: 2rem; height: 2rem; color: var(--color-on-dark); }
/* Profile links: Maple squares. */
.footer-social { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-social li { margin: 0; }
.footer-social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--color-brand-mark); color: var(--color-on-brand-mark); border-radius: var(--radius); transition: background-color 0.15s ease; }
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 1.375rem; height: 1.375rem; }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--color-line-on-dark) 70%, transparent); margin-top: 2.75rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: baseline; font-size: 0.875rem;
}
.footer-registration { color: var(--color-on-dark); }

/* Call bar (phones only): two cells, always in reach. */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-dark);
  border-top: 3px solid var(--color-brand-mark);
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-dark) 35%, transparent);
}
.call-bar .btn { min-height: 50px; padding: 0.55rem 0.75rem; font-size: 0.9375rem; }
.call-bar .btn-outline { background: var(--color-surface); color: var(--color-dark); border-color: var(--color-surface); }
@media (min-width: 1000px) { .call-bar { display: none; } }

/* ---------- 17. Long text (privacy page) and helpers ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--font-body); font-weight: var(--font-weight-strong); text-transform: none; letter-spacing: 0; line-height: 1.25; font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem); margin-top: 2rem; }
.prose li { margin-bottom: 0.5rem; }

.h3 { font-family: var(--font-body); font-weight: var(--font-weight-strong); font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem); letter-spacing: 0; line-height: 1.25; text-transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-2 { margin-top: 2rem; }

/* ---------- 18. Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .call-bar, .skip-link { display: none !important; }
}

/* Photo viewer and gallery */
@media (min-width: 900px) {
  /* A short last row: the last photo takes the space that would stay empty. */
  .gallery li:nth-child(6n + 5):last-child { grid-column: span 2; }
}
html.viewer-open { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 3.75rem 0.75rem 4.75rem; border: 0; background: var(--color-dark); color: var(--color-on-dark);
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: var(--color-dark); }
.viewer-figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; max-width: 100%; }
.viewer-img.is-loading { opacity: 0.35; }
.viewer-img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem);
  border-radius: var(--radius); background: var(--color-dark-raised);
}
.viewer-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.25rem 1rem; text-align: center; font-size: 0.9375rem; line-height: 1.4; }
.viewer-text { font-weight: var(--font-weight-strong); }
.viewer-count { color: var(--color-on-dark-muted); font-variant-numeric: tabular-nums; }
.viewer-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--color-line-on-dark); border-radius: 50%;
  background: color-mix(in srgb, var(--color-dark) 70%, transparent); color: var(--color-on-dark); cursor: pointer;
}
.viewer-btn svg { width: 1.5rem; height: 1.5rem; }
.viewer-btn:hover { background: var(--color-dark-raised); }
.viewer-btn:focus-visible { outline: 3px solid var(--color-focus-on-dark); outline-offset: 2px; }
.viewer-close { top: 0.5rem; right: 0.75rem; }
.viewer-prev { left: calc(50% - 4rem); bottom: 0.75rem; }
.viewer-next { right: calc(50% - 4rem); bottom: 0.75rem; }
@media (min-width: 900px) {
  .viewer { padding: 2rem 5.5rem; }
  .viewer-img { max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); }
  .viewer-prev, .viewer-next { bottom: auto; top: calc(50% - 1.5rem); }
  .viewer-prev { left: 1.25rem; }
  .viewer-next { right: 1.25rem; }
  .viewer-close { top: 1rem; right: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] .viewer-figure { animation: viewer-in 0.2s ease-out; }
  @keyframes viewer-in { from { opacity: 0; transform: scale(0.98); } }
}
