/* ETX Valley Construction LLC — The Job Log
   The site is the crew's own photo record: daylight photographs of real jobs,
   each captioned in one fixed forest strip. The work is the design.
   Direction contract lives in .impeccable/surfaces/index-html.md.

   Palette descends from the owner's logo (BRAND.md). Gold is spent only on the
   calls to action. No build step: the header, call bar and footer are mirrored
   in every HTML file, so grep before changing one of them. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-style: normal;
  font-display: swap;
}
/* Arial reshaped to Archivo's metrics (measured in Chrome: 98.68% advance,
   0.88/0.21 ascent/descent), so the swap to the webfont barely moves a line. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 98.68%;
  ascent-override: 89.17%;
  descent-override: 21.28%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* the mark */
  --forest: #0b4d22;
  --forest-2: #083a19;
  --leaf: #2e8b3d;
  --gold: #ffc20e;
  --gold-2: #e8ae00;

  /* daylight grounds */
  --paper: #ffffff;
  --field: #f1f5f0;          /* forest-tinted, for alternating bands */
  --ink: #16241a;
  --slate: #56655a;
  --line: rgba(22, 36, 26, 0.14);
  --line-2: rgba(22, 36, 26, 0.26);
  --on-forest: #ffffff;
  --on-forest-2: rgba(255, 255, 255, 0.8);
  --on-gold: #16241a;        /* stays dark in both themes: gold is always a light fill */
  --forest-text: var(--forest); /* forest used as ink or stroke on the ground, not as a fill */
  --slate-field: #4b5a4f;    /* slate nudged darker to hold AA on the field band */
  --placeholder: #66746a;
  --thumb: #b9c6bc;
  --invalid: #a8331f;
  --invalid-bg: #fdf6f4;

  --sans: "Archivo", "Archivo Fallback", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* type ramp: every size on the site is one of these roles */
  --t-hero: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);        /* home headline over the video */
  --t-display: clamp(2.25rem, 1.5rem + 2.1vw, 3.25rem);   /* interior page headline */
  --t-headline: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem);   /* section heads */
  --t-title: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem); /* card, row, step and question heads */
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);     /* the sentence under a heading */
  --t-body: 1.0625rem;                                    /* 1rem under 680px */
  --t-ui: 1rem;                                           /* buttons, inputs, caption sentences */
  --t-towns: clamp(1.25rem, 1rem + 1.1vw, 1.875rem);      /* the towns line, a step above title */
  --t-call: clamp(2.4rem, 1.4rem + 4vw, 3.25rem);         /* the phone number on the quote band; caps at display size */
  --t-small: 0.9375rem;                                   /* notes, nav, secondary lines */
  --t-meta: 0.8125rem;                                    /* sublines, the copyright line */
  --t-label: 0.75rem;                                     /* tracked caps: captions, tags, column heads */
  --r: 4px;
  --wrap: min(1240px, 100% - clamp(32px, 6vw, 96px));
  --band: clamp(64px, 8vw, 116px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* After dark: the same log, the forest of the mark as the ground. Deep pine,
   never the retired near-black. Only grounds, text and lines change; forest
   fills, gold and white-on-forest are identical in both themes. The system
   setting decides unless the visitor pressed the toggle (data-theme on html).
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f2016;
    --field: #15291d;
    --ink: #e9f0ea;
    --slate: #a6b8ab;
    --slate-field: #a6b8ab;
    --line: rgba(233, 240, 234, 0.13);
    --line-2: rgba(233, 240, 234, 0.26);
    --forest-text: #7dcc8b;
    --leaf: #4fae60;
    --placeholder: #8b9d90;
    --thumb: #35513f;
    --invalid: #ff8e74;
    --invalid-bg: rgba(255, 142, 116, 0.08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f2016;
  --field: #15291d;
  --ink: #e9f0ea;
  --slate: #a6b8ab;
  --slate-field: #a6b8ab;
  --line: rgba(233, 240, 234, 0.13);
  --line-2: rgba(233, 240, 234, 0.26);
  --forest-text: #7dcc8b;
  --leaf: #4fae60;
  --placeholder: #8b9d90;
  --thumb: #35513f;
  --invalid: #ff8e74;
  --invalid-bg: rgba(255, 142, 116, 0.08);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--forest-text);
}

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
time, .call-number, .head-tel, .info-row a { font-variant-numeric: tabular-nums; }

/* browser surfaces — these ship with defaults that belong to no design system */
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--forest-text); outline-offset: 3px; border-radius: var(--r); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--thumb); border: 3px solid var(--paper); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

.skip {
  position: absolute; left: 14px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--r);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 14px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* --- type ------------------------------------------------------------------ */
.h1 {
  font-size: var(--t-display);
  line-height: 1.06; letter-spacing: -0.026em;
  max-width: 14ch;
}
.h2 {
  font-size: var(--t-headline);
  line-height: 1.1; letter-spacing: -0.022em;
  max-width: 20ch;
}
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--slate); }
.prose { max-width: 64ch; }

/* --- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font: inherit; font-size: var(--t-ui); font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--forest-text); color: var(--forest-text); }
.btn-forest { background: var(--forest); color: var(--on-forest); }
.btn-forest:hover { background: var(--forest-2); }
.band-forest .btn-line { border-color: rgba(255, 255, 255, 0.5); color: var(--on-forest); }
.band-forest .btn-line:hover { border-color: var(--on-forest); color: var(--on-forest); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- header ---------------------------------------------------------------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.head-in {
  width: var(--wrap); margin-inline: auto; min-height: 84px;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 58px; height: 58px; }
.brand-name { display: block; font-weight: 800; font-size: var(--t-body); line-height: 1.1; letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: var(--t-meta); color: var(--slate); margin-top: 2px; }
.site-nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-small);
  padding-block: 8px; border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-nav a:hover { border-bottom-color: var(--line-2); }
.site-nav a[aria-current] { color: var(--forest-text); border-bottom-color: var(--forest-text); }
.head-cta { display: flex; align-items: center; gap: 18px; }
.head-tel { color: var(--ink); font-weight: 750; text-decoration: none; white-space: nowrap; }
.head-tel:hover { color: var(--forest-text); text-decoration: underline; }

/* mobile menu — a details element, so it works with JavaScript switched off */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-weight: 700; font-size: var(--t-small); color: var(--ink);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease);
}
.menu[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  display: grid;
}
.menu-panel a { padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--r); }
.menu-panel a:hover { background: var(--field); }
.menu-panel a[aria-current] { color: var(--forest-text); background: var(--field); }

/* theme toggle — hidden until the script runs; without it the system setting rules.
   Shows the moon in daylight and the sun after dark: the icon is where you go. */
.brand picture, .brand-block picture { display: contents; }
.theme {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: transparent;
  color: var(--ink); cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme:hover { border-color: var(--forest-text); color: var(--forest-text); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun, .theme[aria-pressed="true"] .moon { display: none; }
.theme[aria-pressed="true"] .sun { display: block; }

/* --- opening: headline beside the job wall ---------------------------------- */
.opening { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.opening-in {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.opening-copy { display: grid; gap: clamp(18px, 2.2vw, 26px); align-content: center; }

/* interior pages: a shorter opening with no wall */
.opening-sm { padding-block: clamp(40px, 6vw, 84px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.opening-sm .opening-in { grid-template-columns: minmax(0, 1fr); }
.opening-sm .h1 { max-width: 20ch; }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-small);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.jump a:hover { border-color: var(--forest-text); color: var(--forest-text); }

/* --- the home hero: the owner's HD job footage behind the headline ---------
   A still frame (picture) sits under the loop, so without the script, under
   reduced motion or Save-Data, the page opens on that frame instead. The
   script plays the loop only while it is on screen. Built by
   scripts/build-reel.cjs: a 16:9 cut for wide screens, 9:16 for phones. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, calc(100svh - 84px)); display: grid; align-items: end;
  background: var(--forest-2); color: var(--on-forest);
}
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* keeps white type readable over sky and sun-lit leaves */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(8, 58, 25, 0.78) 0%, rgba(8, 58, 25, 0.45) 45%, rgba(8, 58, 25, 0) 72%),
    linear-gradient(to top, rgba(8, 58, 25, 0.8) 0%, rgba(8, 58, 25, 0) 60%);
}
@media (max-aspect-ratio: 3/4) {
  .hero::after { background: linear-gradient(to top, rgba(8, 58, 25, 0.94) 0%, rgba(8, 58, 25, 0.7) 50%, rgba(8, 58, 25, 0.1) 85%); }
}
.hero-in {
  width: var(--wrap); margin-inline: auto; padding-block: 120px clamp(56px, 8vw, 104px);
  display: grid; gap: clamp(16px, 2vw, 24px);
}
.hero .h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero .lead { color: var(--on-forest-2); max-width: 46ch; }
.hero .btn-row { margin-top: 6px; }
.hero .btn-line { border-color: rgba(255, 255, 255, 0.6); color: var(--on-forest); }
.hero .btn-line:hover { border-color: var(--on-forest); color: var(--on-forest); background: rgba(255, 255, 255, 0.08); }
.hero :focus-visible { outline-color: var(--gold); }
.hero-facts { font-size: var(--t-small); color: var(--on-forest-2); }

/* --- service cards --------------------------------------------------------- */
.cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  color: var(--ink); text-decoration: none; background: var(--paper);
  transition: border-color 0.3s var(--ease);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.card-body { display: grid; gap: 8px; padding: 18px 18px 20px; flex: 1; align-content: start; }
.card-name { font-size: var(--t-title); font-weight: 750; letter-spacing: -0.012em; line-height: 1.25; }
.card-note { color: var(--slate); font-size: var(--t-small); line-height: 1.5; }
.card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: var(--t-small); color: var(--forest-text); }
.card-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.card:hover { border-color: var(--forest-text); }
.card:hover img { transform: scale(1.04); }
.card:hover .card-go svg { transform: translateX(4px); }
.also { margin-top: clamp(22px, 3vw, 32px); color: var(--slate); }
.also a { font-weight: 700; white-space: nowrap; }

/* --- how a job starts ------------------------------------------------------ */
.process { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.process li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--forest-text); }
.process li::before { content: "0" counter(step); font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; color: var(--leaf); font-variant-numeric: tabular-nums; }
.process h3 { font-size: var(--t-title); line-height: 1.25; letter-spacing: -0.012em; }
.process p { color: var(--slate); max-width: 36ch; }

@media (prefers-reduced-motion: reduce) { .card img, .card-go svg { transition: none; } .card:hover img { transform: none; } }

/* --- the job card: photo over one fixed forest caption strip ---------------- */
.job { margin: 0; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--forest); }
.job img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; flex: 1 1 auto; min-height: 0; }


.job figcaption, .ba-cap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline;
  padding: 11px 14px 12px; background: var(--forest); color: var(--on-forest);
}
.job b, .ba-cap b { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.job figcaption span, .ba-cap span { grid-column: 1 / -1; font-size: var(--t-ui); line-height: 1.5; color: var(--on-forest); }

/* --- before / after: grayscale before, full-colour after --------------------- */
.ba { margin: 0; border-radius: var(--r); overflow: hidden; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--forest); }
.ba-side { position: relative; margin: 0; overflow: hidden; }
.ba-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-before img { filter: grayscale(1) contrast(1.05); }
.ba-tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ba-after .ba-tag { background: var(--forest); color: var(--on-forest); }
/* the one authored motion: the finished job wipes in once, from the left.
   Visible by default; the script sets data-wipe only when it can play it. */
.ba[data-wipe="ready"] .ba-after img { clip-path: inset(0 100% 0 0); }
.ba[data-wipe="play"] .ba-after img { clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease); }

/* --- bands and layout ------------------------------------------------------ */
.band { padding-block: var(--band); }
.band-field { background: var(--field); }
.band-forest { background: var(--forest); color: var(--on-forest); }
.band-head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 48px); }
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split.flip > :first-child { order: 2; }
/* a before/after pair needs both halves big enough to read as proof */
.split:has(> .ba) { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
.split.flip:has(> .ba) { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
.split-body { display: grid; gap: 18px; align-content: start; }
.split-body .btn-row { margin-top: 8px; }
/* a full-width band for the before/after pair: copy above, both halves big */
.stack { display: grid; gap: clamp(26px, 3.5vw, 40px); }
.stack-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(32px, 5vw, 72px); align-items: end; }
.stack-head .h2, .stack-head .lead { grid-column: 1; }
.stack-head .prose, .stack-head .btn-row { grid-column: 2; }
.stack-head .prose { grid-row: 1 / span 2; align-self: end; }
.stack-head .btn-row { grid-row: 3; }

.marks { list-style: none; display: grid; gap: 12px; }
.marks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.marks svg { width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--leaf); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* services index: full-width hairline rows */
.rows { list-style: none; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 28px;
  gap: 24px; align-items: baseline; padding-block: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.row-name { font-size: var(--t-title); font-weight: 750; letter-spacing: -0.012em; line-height: 1.25; }
.row-note { color: var(--slate); max-width: 56ch; }
.row-go { color: var(--slate); }
.row-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
a.row .row-name { transition: color 0.3s var(--ease); }
a.row:hover .row-name, a.row:hover .row-go { color: var(--forest-text); }
a.row:hover .row-go svg { transform: translateX(4px); }
.band-field .row-note, .band-field .area-intro .lead, .band-field .area-contact .note { color: var(--slate-field); }
/* rows that are not links have no arrow slot */
.row:not(a) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

/* towns: one flowing line, not boxes */
.towns { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 0; }
.towns li { font-size: var(--t-towns); font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.towns li:not(:last-child)::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-inline: 16px;
  border-radius: 50%; background: var(--leaf); transform: translateY(-0.28em);
}
.note { color: var(--slate); font-size: var(--t-small); }

/* Home service area: an open directory, with the call on its own ruled line. */
.service-area { border-top: 1px solid var(--line); }
.area-layout {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(32px, 4vw, 56px) clamp(40px, 6vw, 88px);
}
.area-intro { display: grid; gap: 18px; align-content: start; }
.area-intro .lead { color: var(--slate); max-width: 30ch; }
.area-base { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: var(--t-small); font-weight: 700; color: var(--forest-text); }
.area-base svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.area-base span { color: var(--slate); font-weight: 400; font-variant-numeric: tabular-nums; }
.area-towns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.area-towns li {
  padding-block: 16px; border-bottom: 1px solid var(--line);
  font-size: var(--t-title); font-weight: 600; line-height: 1.35;
}
.area-towns li:first-child { color: var(--forest-text); font-weight: 750; }
.area-towns li:not(:last-child)::after { content: none; }
.area-contact {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.area-call {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  min-height: 50px; font-size: var(--t-ui); font-weight: 700; text-decoration: none;
}
.area-call span { font-variant-numeric: tabular-nums; }
.area-contact .note { font-size: var(--t-body); color: var(--ink); }
.area-call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.area-call:hover { text-decoration: underline; }

/* the quote band */
.call { display: grid; gap: 20px; justify-items: start; }
.call-number {
  font-size: var(--t-call); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--gold); text-decoration: none;
}
.call-number:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.band-forest .lead { color: var(--on-forest-2); max-width: 58ch; }
.band-forest :focus-visible { outline-color: var(--gold); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 22px; display: flex; justify-content: space-between; gap: 20px;
  font-size: var(--t-title); font-weight: 700; line-height: 1.3; letter-spacing: -0.008em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: 7px; margin-right: 4px;
  border-right: 2px solid var(--forest-text); border-bottom: 2px solid var(--forest-text);
  transform: rotate(45deg); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq .answer { padding-bottom: 24px; color: var(--slate); max-width: 64ch; }

/* --- contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-grid .h2 { margin-bottom: 14px; }
.contact-grid .lead { margin-bottom: 26px; }
.info { border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: baseline; }
.info-row b { font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.info-row a, .info-row span { font-weight: 700; font-size: var(--t-body); overflow-wrap: anywhere; }
.info-row a { color: var(--ink); }
.info-row a:hover { color: var(--forest-text); }

form { display: grid; gap: 20px; }
#inquiry, #sent { margin-top: 26px; }
.f { display: grid; gap: 8px; }
.f label { font-size: var(--t-small); font-weight: 700; color: var(--ink); }
input, select, textarea {
  width: 100%; font: inherit; font-size: var(--t-ui); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 13px 15px;
  transition: border-color 0.3s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:hover, select:hover, textarea:hover { border-color: var(--slate); }
/* no outline:none here — the global :focus-visible ring must stay reachable */
input:focus, select:focus, textarea:focus { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); }
textarea { resize: vertical; min-height: 140px; }
[aria-invalid="true"] { border-color: var(--invalid); background: var(--invalid-bg); }
.selectwrap { position: relative; }
.selectwrap select { appearance: none; padding-right: 44px; }
.selectwrap svg { position: absolute; right: 17px; top: 50%; width: 13px; height: 8px; margin-top: -4px; fill: none; stroke: var(--ink); stroke-width: 1.8; pointer-events: none; }
.review-panel { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(22px, 3vw, 30px); display: grid; gap: 18px; margin-top: 22px; }
.review-panel h2 { font-size: var(--t-title); }
#status { min-height: 1.5em; margin-top: 16px; font-weight: 600; }
#status[data-tone="error"] { color: var(--invalid); }
#status[data-tone="ok"] { color: var(--forest-text); }

/* the discount box on the composer: a real checkbox in the brand's green */
.f-check { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.f-check input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--forest-text); box-shadow: none; }
.f-check label { font-weight: 600; }

/* --- the discount offer: a native dialog, shown on every page load ----------
   A Texas porch flying the flag (the site's one stock photo) with the thank-you
   seal stamped on it, beside a column built like the quote band: a forest head
   carrying the headline, then who qualifies and the call on paper. Flat like
   everything else; the forest backdrop is the depth. It rises in once as it
   opens and the seal stamps down a beat later (browsers without @starting-style
   simply show both). Under 680px the photo becomes a strip on top with the seal
   at its right, and the box sits at the bottom of the screen, within thumb reach. */
.offer {
  position: relative; width: min(800px, 100% - 32px); max-width: none; max-height: calc(100svh - 32px);
  margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}
/* only when open: a display value on the closed dialog would override the UA's display: none */
.offer[open] {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  opacity: 1; transform: none;
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease);
}
.offer::backdrop { background: rgba(8, 58, 25, 0.62); transition: opacity 0.35s var(--ease); }
@starting-style {
  .offer[open] { opacity: 0; transform: translateY(18px); }
  .offer[open]::backdrop { opacity: 0; }
  .offer[open] .offer-seal { opacity: 0; transform: rotate(-32deg) scale(1.45); }
}
.offer-photo { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 30% 40%; }

/* the seal: a stamp in the logo's two colours, fixed in both themes like every
   forest fill. A white rim keeps it off the photo; the ribbon echoes the
   banner in the mark and its tails run past the rim. */
.offer-seal {
  position: absolute; left: 20px; bottom: 20px; width: 184px; height: auto;
  transform: rotate(-9deg); pointer-events: none;
  transition: opacity 0.3s var(--ease) 0.22s, transform 0.75s var(--ease) 0.22s;
}
.seal-rim { fill: #fff; }
.seal-face, .seal-mark { fill: var(--forest); }
.seal-line { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.25; }
.offer-seal text { fill: #fff; font-family: inherit; font-weight: 800; text-anchor: middle; }
.seal-ring { font-size: 15px; letter-spacing: 0.14em; }
.seal-thanks { font-size: 13.5px; letter-spacing: 0.16em; }
.seal-band, .seal-tail { stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
.seal-band { fill: var(--forest-2); }
.seal-tail { fill: var(--forest); }

.offer-main { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.offer-head {
  position: relative; padding: 28px 72px 26px 28px; background: var(--forest); color: var(--on-forest);
}
.offer-title { font-size: var(--t-headline); line-height: 1.1; letter-spacing: -0.022em; text-wrap: balance; }

/* who qualifies: three ruled cells, each a drawn mark over its name */
.offer-who {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.offer-who li {
  display: grid; justify-items: start; gap: 10px; padding: 16px 14px 15px;
  font-size: var(--t-small); font-weight: 700; line-height: 1.25;
}
.offer-who li:first-child { padding-left: 0; }
.offer-who li + li { border-left: 1px solid var(--line); }
.offer-who svg {
  width: 28px; height: 28px; fill: none; stroke: var(--forest-text);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.offer-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: var(--r);
  background: transparent; color: var(--on-forest);
  transition: border-color 0.3s var(--ease);
}
.offer-close:hover { border-color: var(--on-forest); }
.offer-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.offer-head :focus-visible { outline-color: var(--gold); }
.offer-body { display: grid; gap: 20px; align-content: start; padding: 24px 28px 28px; }
.offer-body .btn { flex: 1 1 auto; }

/* --- the job log panels: real job photos that open as you point at them ------
   One panel is open at a time; the script opens whichever the pointer rests
   on, or the one holding keyboard focus, and a tap opens one on touch.
   Without the script the first stays open. Text sits on solid forest plates,
   never a gradient scrim. Under 900px the strip turns into a stack whose open
   panel grows taller. */
.panels { list-style: none; display: flex; gap: 10px; height: clamp(460px, 44vw, 600px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--r); background: var(--forest); cursor: pointer;
  transition: flex-grow 0.7s var(--ease), height 0.7s var(--ease);
}
.panel[data-open] { flex-grow: 4.2; cursor: auto; }
.panel img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--x, 50%) 50%;
  transition: transform 0.9s var(--ease);
}
.panel:not([data-open]):hover img { transform: scale(1.04); }
/* the closed label: a forest plate set sideways, reading bottom to top */
.panel-tab {
  position: absolute; left: 12px; bottom: 12px; max-height: calc(100% - 24px); overflow: hidden;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 14px 9px; border-radius: var(--r); background: var(--forest); color: var(--on-forest);
  font-size: var(--t-small); font-weight: 700; line-height: 1.1; white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}
.panel[data-open] .panel-tab { opacity: 0; }
.panel-plate {
  position: absolute; left: 16px; bottom: 16px; width: 360px; max-width: calc(100% - 32px);
  display: grid; gap: 6px; padding: 16px 18px 18px;
  border-radius: var(--r); background: var(--forest); color: var(--on-forest);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.5s var(--ease);
}
.panel[data-open] .panel-plate {
  opacity: 1; transform: none; pointer-events: auto;
  transition-delay: 0.3s;
}
.panel-plate b { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; color: var(--on-forest-2); }
.panel-plate h3 { font-size: var(--t-title); line-height: 1.25; letter-spacing: -0.012em; }
.panel-plate p { font-size: var(--t-small); line-height: 1.5; color: var(--on-forest-2); }
.panel-plate a {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; justify-self: start;
  color: var(--on-forest); font-weight: 700; font-size: var(--t-small);
}
.panel-plate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.panel-plate a:hover svg { transform: translateX(4px); }
.panel :focus-visible { outline-color: var(--gold); }

/* --- footer ---------------------------------------------------------------- */
.foot { background: var(--field); border-top: 1px solid var(--line); }
.foot-in {
  width: var(--wrap); margin-inline: auto; padding-block: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.foot .brand-block img { width: 76px; height: 76px; margin-bottom: 16px; }
.foot .brand-block p { color: var(--slate); max-width: 34ch; font-size: var(--t-small); }
.foot h3 { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--forest-text); text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom-in {
  width: var(--wrap); margin-inline: auto; padding-block: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--slate); font-size: var(--t-meta);
}

.callbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .offer[open], .offer::backdrop, .offer-seal { transition: none; }
  .panel:not([data-open]):hover img { transform: none; }
  .btn, .theme, .offer-close, .panel, .panel img, .panel-tab, .panel-plate, .panel-plate svg, .row-name, .row-go svg, .site-nav a, .jump a, .faq summary::after, input, select, textarea { transition: none; }
}

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1060px) {
  .site-nav, .head-cta .head-tel { display: none; }
  .menu { display: block; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .area-layout { grid-template-columns: minmax(0, 1fr); }
  .area-intro .lead { max-width: 52ch; }
  .opening-in, .split, .split:has(> .ba), .split.flip:has(> .ba), .contact-grid, .stack-head { grid-template-columns: minmax(0, 1fr); }
  .stack-head .h2, .stack-head .lead, .stack-head .prose, .stack-head .btn-row { grid-column: 1; grid-row: auto; }
  .row:not(a) { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; }
  .row-note { grid-column: 1 / -1; grid-row: 2; }
  .row-go { grid-column: 2; grid-row: 1; }
  .process { grid-template-columns: minmax(0, 1fr); }
  /* the strip becomes a stack: closed panels are short bars, the open one grows */
  .panels { flex-direction: column; height: auto; gap: 8px; }
  .panel { flex: none; height: 84px; }
  .panel[data-open] { height: min(460px, 72svh); }
  .panel img { object-position: 50% 50%; }
  .panel-tab { writing-mode: horizontal-tb; transform: none; padding: 9px 12px; max-width: calc(100% - 24px); max-height: none; text-overflow: ellipsis; }
  .panel-plate { width: auto; right: 16px; }
}
@media (max-width: 680px) {
  .area-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .area-contact { align-items: stretch; flex-direction: column; gap: 16px; }
  :root { --t-body: 1rem; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .head-in { min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand-sub { display: none; }
  .head-cta .btn { display: none; }
  .head-cta { display: none; }
  .hero { min-height: calc(100svh - 72px - 68px); }
  .hero-in { padding-block: 96px 64px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .ba-pair { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .offer { margin-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .offer[open] { grid-template-columns: minmax(0, 1fr); }
  .offer-photo { height: 176px; min-height: 0; object-position: 30% 22%; }
  .offer-seal { left: auto; right: 14px; bottom: auto; top: 28px; width: 120px; }
  .offer-head { padding: 22px 68px 20px 20px; }
  .offer-body { padding: 18px 20px 20px; gap: 16px; }
  .offer-who li { padding-inline: 10px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--gold); color: var(--on-gold); font-weight: 750; font-size: var(--t-body); text-decoration: none;
    border-top: 1px solid var(--gold-2);
  }
  .callbar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 400px) {
  .head-in { gap: 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name { font-size: var(--t-ui); }
  .call-number { font-size: clamp(1.75rem, 9vw, 2.4rem); }
}

@media print {
  /* paper is white whatever the screen theme; later in source, so it beats the dark blocks */
  :root, :root[data-theme] {
    color-scheme: light; --paper: #fff; --field: #fff; --ink: #000; --slate: #333; --slate-field: #333;
    --forest-text: var(--forest); --line: rgba(0, 0, 0, 0.2); --line-2: rgba(0, 0, 0, 0.35);
  }
  .site-head, .callbar, .skip, .menu, .theme { display: none; }
  body { font-size: 12pt; padding-bottom: 0; }
  .band, .opening { padding-block: 18pt; }
  .band-forest { background: none; color: #000; }
  .call-number { color: #000; }
}
