/* ============================================================================
   Barth Contracting LLC — "Multiplane Dawn"

   A cel-animation multiplane camera rendered as a website: the page is a stack
   of painted planes at different depths, and scrolling is camera movement
   through them rather than a swap between sections.

   Palette is the world's grammar reconciled to the real logo. The world's
   single "lamp amber" accent is replaced by the logo's flag red #BA0804 — the
   lit cottage window IS the call to action. Logo navy #082C5C is the far ridge.

   Contrast note: #BA0804 on dark ground is 1.9:1 and can never carry text.
   It appears only as a filled surface with white on it (10:1), as rules, and
   as the active marker. Text on dark is dawn haze (11.9:1) and mist (7.1:1).
   ========================================================================== */

:root {
  /* --- ground: deepest to lightest ------------------------------------- */
  --umber:        #1A1410;   /* umber ground — the deepest stage floor */
  --umber-2:      #221A15;
  --navy:         #082C5C;   /* BRAND. far ridge, night side of the valley */
  --navy-2:       #0C3A75;

  /* --- painted planes, far to near ------------------------------------- */
  --plane-far:    #2A3F52;
  --plane-4:      #1E3A2E;   /* deep pine */
  --plane-3:      #2B4A38;
  --plane-2:      #3F5A45;   /* moss */
  --plane-1:      #4E6B55;
  --fern:         #6B8072;   /* fern mid — decorative / large text only */

  /* --- atmosphere ------------------------------------------------------ */
  --mist:         #8FA3AD;
  --haze:         #C7D3DA;   /* dawn haze — body text on dark */
  --daybreak:     #E6EEF2;   /* headings on dark */
  --sun:          #F2B24A;   /* the sun itself, never a UI accent */

  /* --- brand ----------------------------------------------------------- */
  --lamp:         #BA0804;   /* BRAND red. filled surfaces only. */
  --lamp-lit:     #D91A10;   /* hover — brighter, as a lamp turned up */
  --lamp-deep:    #7D0503;
  --on-lamp:      #FFFFFF;

  /* --- paper / light surfaces ------------------------------------------ */
  --paper:        #EFE9DE;   /* umber paper, tooth */
  --paper-2:      #E3DACB;
  --ink:          #17140F;   /* text on paper */
  --ink-2:        #4A4234;

  /* --- semantic -------------------------------------------------------- */
  --bg:           var(--umber);
  --text:         var(--haze);
  --text-strong:  var(--daybreak);
  --text-dim:     var(--mist);
  --rule:         rgba(199, 211, 218, 0.16);
  --rule-strong:  rgba(199, 211, 218, 0.30);
  --cel:          rgba(30, 58, 46, 0.62);   /* a cel laid over the painting */
  --cel-2:        rgba(30, 58, 46, 0.82);
  --cel-edge:     rgba(199, 211, 218, 0.14);

  /* --- type ------------------------------------------------------------ */
  --font-display: "Vollkorn", Georgia, "Times New Roman", serif;
  --font-body:    "Vollkorn", Georgia, "Times New Roman", serif;
  --font-ui:      "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  system-ui, sans-serif;

  /* --- measure --------------------------------------------------------- */
  --container:  1240px;
  --measure:    68ch;
  --pad-x:      clamp(1.15rem, 4vw, 3.5rem);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* --- motion: cel animation is stepped, not smooth -------------------- */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   180ms;
  --t-med:    320ms;
  --t-slow:   620ms;

  --shadow-cel:  0 18px 50px -24px rgba(0, 0, 0, 0.85);
  --shadow-lamp: 0 0 44px -8px rgba(186, 8, 4, 0.55);
}

/* ============================================================================
   reset
   ========================================================================== */

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--lamp); color: var(--on-lamp); }

/* ============================================================================
   layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--tight { max-width: 900px; }

/* Section rhythm: more space above a heading than below it. */
.band {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem);
}

.band--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* the umber stage floor between painted scenes */
.band--umber  { background: var(--umber); }
.band--umber2 { background: var(--umber-2); }
.band--navy   { background: var(--navy); }
.band--pine   { background: var(--plane-4); }

/* ── photo band ───────────────────────────────────────────────────────────
   A full-width section carrying a real job photograph behind its copy. Same
   language as the photo stage: the picture is the far plane, a scrim gives the
   text ground. The scrim is heavier here than in the hero because body copy at
   17px needs more separation than a 5rem headline does. */

.band--photo {
  position: relative;
  isolation: isolate;
  background: var(--umber);
}

.band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

/* Scrim weight is a balance: heavy enough that 17px body copy stays at AA over
   a bright midday photo, light enough that the work is still legible as work.
   Left-weighted, because that is where the text column sits. */
.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(18, 14, 11, 0.88) 0%,
      rgba(18, 14, 11, 0.62) 45%,
      rgba(18, 14, 11, 0.84) 100%),
    linear-gradient(to right,
      rgba(12, 20, 30, 0.68) 0%,
      rgba(12, 20, 30, 0.34) 58%,
      rgba(12, 20, 30, 0.04) 100%);
}

/* the navy variant tints toward the brand rather than plain umber */
.band--photo.band--navy .band__bg::after {
  background:
    linear-gradient(to bottom,
      rgba(8, 30, 60, 0.88) 0%,
      rgba(8, 32, 64, 0.58) 45%,
      rgba(8, 26, 52, 0.86) 100%),
    linear-gradient(to right,
      rgba(6, 18, 38, 0.66) 0%,
      rgba(6, 18, 38, 0.30) 58%,
      rgba(6, 18, 38, 0.04) 100%);
}

/* Copy over photography gets a soft shadow so it never depends on the scrim
   alone — the safety net for the brightest patch of any given photo. */
.band--photo h2,
.band--photo .lede,
.band--photo p { text-shadow: 0 2px 14px rgba(10, 8, 6, 0.75); }

.band--paper {
  background: var(--paper);
  color: var(--ink);
}
.band--paper h1, .band--paper h2, .band--paper h3 { color: var(--ink); }
.band--paper .lede { color: var(--ink-2); }

/* ============================================================================
   typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.0625rem; }

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

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 56ch;
}

/* the small caps label that rides every plane, per the world's UI grammar */
.label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

/* The trailing rule is decoration and must never force a wrap or collapse to a
   sliver. It only draws where there is room left on the line. */
.label::after {
  content: "";
  flex: 1 1 2rem;
  min-width: 2rem;
  height: 1px;
  background: var(--rule);
}

.label--lamp { color: var(--haze); }
.label--lamp::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--lamp);
  border-radius: 50%;
  box-shadow: 0 0 12px 2px rgba(186, 8, 4, 0.75);
  flex: none;
}

/* On a phone the hero label is long enough to wrap. Let it wrap as a block
   instead of a flex row so the dot stays with the first line and the rule
   does not create a ragged second row. */
@media (max-width: 640px) {
  .label { flex-wrap: wrap; gap: 0.6rem; }
  .label::after { flex-basis: 100%; margin-top: 0.1rem; }
}

.band--paper .label { color: var(--ink-2); }
.band--paper .label::after { background: rgba(23, 20, 15, 0.18); }

/* the plate/figure numeral — roman, the way a cel sheet is numbered */
.fig {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--fern);
  line-height: 1;
}

.text-dim { color: var(--text-dim); }

/* ============================================================================
   THE MULTIPLANE STAGE
   Stacked painted planes. Each moves at its own rate under scroll; the far
   ridge barely breathes, the nearest ferns rush past.
   ========================================================================== */

.stage {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #0B1D33 0%,
    #123253 22%,
    #2A4A63 44%,
    #4E6472 62%,
    #2B4A38 78%,
    var(--umber) 100%
  );
  isolation: isolate;
}

.stage__planes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.plane {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 128%;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
}

.plane svg { width: 100%; height: auto; display: block; }

/* depth: farther planes sit higher, are hazier, and move least */
.plane--ridge  { bottom: 34%; opacity: 0.62; filter: blur(1.6px); }
.plane--far    { bottom: 27%; opacity: 0.78; filter: blur(1px); }
.plane--mid    { bottom: 15%; opacity: 0.94; }
.plane--near   { bottom: 0; }
.plane--fore   { bottom: -1%; width: 150%; }

/* the sun, low and cold at first light.
   Kept hard right and high so it never sits behind the hero copy — on a
   phone the text column reaches much further across than it does on desktop. */
.sun {
  position: absolute;
  top: 12%;
  right: 9%;
  width: clamp(76px, 13vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 178, 74, 0.92) 0%,
    rgba(242, 178, 74, 0.38) 38%,
    rgba(242, 178, 74, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

/* mist gathers in the valley floor between planes */
.mist-band {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 22%;
  background: linear-gradient(
    to bottom,
    rgba(199, 211, 218, 0) 0%,
    rgba(199, 211, 218, 0.16) 45%,
    rgba(199, 211, 218, 0) 100%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.mist-band--1 { bottom: 26%; }
.mist-band--2 { bottom: 14%; opacity: 0.7; }

/* gouache tooth — the paper the planes are painted on */
.stage::after,
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.grain { position: relative; }

/* content rides on the nearest cel, always above the painting */
.stage__cel {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 7vw, 5rem);
}

/* ── photo stage ──────────────────────────────────────────────────────────
   A real job photograph carries the far and mid planes; only the painted near
   and foreground planes are drawn over it. The scrim is what makes the copy
   legible over a bright midday photo — without it the headline dies. */

.stage--photo {
  background: var(--umber);
}

.stage__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Two scrims: a vertical one anchoring the copy, and a left-weighted one so
   the text column has ground while the right side of the photo stays open. */
.stage__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(18, 14, 11, 0.97) 0%,
      rgba(18, 14, 11, 0.86) 22%,
      rgba(20, 30, 26, 0.55) 52%,
      rgba(20, 34, 42, 0.42) 100%),
    linear-gradient(to right,
      rgba(12, 20, 30, 0.72) 0%,
      rgba(12, 20, 30, 0.34) 46%,
      rgba(12, 20, 30, 0.05) 100%);
}

.stage--photo .plane--near { bottom: -2%; opacity: 0.92; }
.stage--photo .plane--fore { bottom: -4%; }

/* a quiet credit line so the gallery on the page is honestly attributed */
.stage__credit {
  position: absolute;
  right: var(--pad-x);
  bottom: 0.9rem;
  z-index: 4;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(199, 211, 218, 0.5);
}

/* ============================================================================
   hero type
   ========================================================================== */

.hero__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero__mark img { height: clamp(64px, 11vw, 104px); width: auto; }

.hero h1 {
  max-width: 15ch;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.55);
}

.hero h1 em {
  font-style: italic;
  color: var(--haze);
}

.hero__lede {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1.08rem, 1.75vw, 1.32rem);
  color: var(--haze);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

/* the four trades named in the first viewport — never scrolled to */
.hero__trades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}

.hero__trades span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trades span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--lamp);
  border-radius: 50%;
  flex: none;
}

/* ============================================================================
   buttons — the lamp
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--lamp {
  background: var(--lamp);
  color: var(--on-lamp);
  box-shadow: var(--shadow-lamp);
}
.btn--lamp:hover { background: var(--lamp-lit); }

.btn--ghost {
  background: rgba(199, 211, 218, 0.07);
  color: var(--daybreak);
  border-color: var(--rule-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(199, 211, 218, 0.14); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: #2b261d; }

.btn--wide { width: 100%; }

/* ============================================================================
   header — a cel laid over the painting
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(26, 20, 16, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}

.brand img { height: 46px; width: auto; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.05;
  color: var(--daybreak);
  letter-spacing: -0.01em;
}

.brand__tag {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav > a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--haze);
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}

.nav > a:hover { color: var(--daybreak); }

/* active state is the lamp, per the world's nav grammar */
.nav > a.is-active { color: var(--daybreak); }
.nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.28rem;
  height: 2px;
  background: var(--lamp);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.7rem 1.15rem;
  min-height: 46px;
  background: var(--lamp);
  color: var(--on-lamp) !important;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease);
}
.nav-cta:hover { background: var(--lamp-lit); }
.nav-cta svg { flex: none; }

/* 48px, the platform minimum for a primary control, with the bars animating
   into an X so the button reports its own state as well as aria does. */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  background: rgba(199, 211, 218, 0.08);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--daybreak);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.menu-btn__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease-out),
              opacity var(--t-fast) var(--ease);
}

.menu-btn__bars i:nth-child(1) { top: 0; }
.menu-btn__bars i:nth-child(2) { top: 7px; }
.menu-btn__bars i:nth-child(3) { top: 14px; }

.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* backdrop — tapping outside the drawer closes it */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 8, 6, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

/* While the drawer is open the page behind it must not scroll. iOS Safari
   ignores overflow:hidden on <body>, so the page is pinned with position:fixed
   and its offset restored on close (main.js owns the top value). */
body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ============================================================================
   plates — the service/content card, drawn as a cel
   ========================================================================== */

/* Four services, so the grid is declared rather than auto-fit: auto-fit landed
   3-up at desktop and left a lone orphan card on its own row. */
.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 760px) {
  .plates { grid-template-columns: 1fr; }
}

/* photo-topped plate */
.plate.plate--photo { padding: 0; overflow: hidden; }

.plate__shot {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--plane-4);
  border-bottom: 1px solid var(--cel-edge);
}

.plate__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

a.plate--photo:hover .plate__shot img { transform: scale(1.05); }

.plate.plate--photo .plate__head,
.plate.plate--photo .plate__lede,
.plate.plate--photo .plate__list,
.plate.plate--photo .plate__more {
  padding-inline: clamp(1.5rem, 2.4vw, 2rem);
}

.plate.plate--photo .plate__head { margin-top: clamp(1.4rem, 2.2vw, 1.8rem); }
.plate.plate--photo .plate__more { padding-bottom: clamp(1.5rem, 2.4vw, 2rem); }

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  background: var(--cel);
  border: 1px solid var(--cel-edge);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              background-color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}

a.plate:hover {
  transform: translateY(-4px);
  background: var(--cel-2);
  border-color: var(--rule-strong);
}

/* the lamp edge lights the active cel */
/* The lamp lights the card from beneath rather than tabbing its edge. */
a.plate::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(186, 8, 4, 0.18), transparent);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}
a.plate:hover::after { opacity: 1; }

.plate__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.plate h3 { margin: 0; }

.plate__lede {
  color: var(--mist);
  font-size: 0.98rem;
  margin: 0 0 1.1rem;
}

.plate__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.94rem;
  color: var(--haze);
}

.plate__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.plate__list li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 0.62em;
  background: var(--fern);
  border-radius: 50%;
  flex: none;
}

.plate__more {
  margin-top: auto;
  padding-top: 1.3rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haze);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

a.plate:hover .plate__more { color: var(--daybreak); }

/* ============================================================================
   service detail — full-width plane sections
   ========================================================================== */

.service {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
}

.service__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.service__num {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}

/* ============================================================================
   forms
   ========================================================================== */

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.5rem;
}

.field .req { color: var(--lamp-lit); }

.input,
.textarea,
.select {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--daybreak);
  background: rgba(10, 8, 6, 0.55);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }

.input::placeholder, .textarea::placeholder { color: rgba(143, 163, 173, 0.65); }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(186, 8, 4, 0.22);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238FA3AD' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.select option { background: var(--umber); color: var(--daybreak); }

.note {
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong);
  background: rgba(199, 211, 218, 0.06);
  font-size: 0.95rem;
}

.note--ok   { border-color: rgba(107, 128, 114, 0.7); background: rgba(63, 90, 69, 0.35); }
.note--bad  { border-color: var(--lamp); background: rgba(186, 8, 4, 0.16); }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================================
   gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.25rem);
}

.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--plane-4);
  border: 1px solid var(--cel-edge);
}

.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.shot:hover img { transform: scale(1.045); }

.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.92), transparent);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--daybreak);
}

.shot__tag {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 3px;
}

/* empty state — honest, never a fake photo */
.empty {
  grid-column: 1 / -1;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-md);
  background: rgba(199, 211, 218, 0.03);
}

/* ============================================================================
   filters
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filters a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  padding: 0.6rem 1.05rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}

.filters a:hover { color: var(--daybreak); border-color: var(--rule-strong); }

.filters a.is-active {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--on-lamp);
}

/* ============================================================================
   service area
   ========================================================================== */

.counties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 3rem;
}

.county {
  padding: 1.6rem;
  background: var(--cel);
  border: 1px solid var(--cel-edge);
  border-radius: var(--r-md);
}

/* the county is marked by a lamp point, not a tabbed edge */
.county h3 {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.county h3::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 1px rgba(186, 8, 4, 0.7);
}

.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0; padding: 0;
}

.towns li {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--haze);
}

/* ============================================================================
   proof strip — real, thin evidence
   ========================================================================== */

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--cel);
  border: 1px solid var(--cel-edge);
  border-radius: var(--r-lg);
}

.proof__item { text-align: center; }

.proof__n {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--daybreak);
  line-height: 1;
  display: block;
}

.proof__l {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.6rem;
  display: block;
}

/* ============================================================================
   footer
   ========================================================================== */

.site-footer {
  background: var(--umber-2);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.site-footer a {
  color: var(--haze);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.site-footer a:hover { color: var(--daybreak); text-decoration: underline; }

.legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================================================
   mobile call bar — the one thing that must never be buried
   ========================================================================== */

.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(26, 20, 16, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  gap: 0.6rem;
}

.callbar .btn { flex: 1; min-height: 50px; font-size: 0.82rem; padding-inline: 0.75rem; }

/* ============================================================================
   utilities
   ========================================================================== */

.stack   { display: grid; gap: 1.25rem; }
.stack-lg{ display: grid; gap: 2.5rem; }
.center  { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.mt-0 { margin-top: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.9rem 1.4rem;
  background: var(--lamp);
  color: var(--on-lamp);
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* reveal — planes settle into place */
.js .rise {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  will-change: transform, opacity;
}
.rise.is-in { opacity: 1; transform: none; }

/* ============================================================================
   responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .service__grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* the drawer chrome only exists on mobile */
.nav__top, .nav__foot, .nav__note { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }

  /* ⚠️ backdrop-filter on an ancestor makes it the containing block for
     position:fixed descendants — which trapped the drawer inside the 74px
     header instead of the viewport. The header goes opaque on mobile so the
     drawer can escape to the viewport. Do not reintroduce backdrop-filter
     here without moving .nav out of <header> in the DOM. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(22, 17, 13, 0.97);
  }

  /* ── the drawer ─────────────────────────────────────────────────────────
     A right-hand slide-in panel, the platform convention: full height, its
     own close control, a backdrop, and the page behind it locked. Slides on
     transform only so it stays on the compositor. */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 380px);
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #191310;
    border-left: 1px solid var(--rule-strong);
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.8);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition: transform var(--t-med) var(--ease-out),
                visibility var(--t-med);
    overscroll-behavior: contain;
  }

  .nav.is-open { transform: translate3d(0, 0, 0); visibility: visible; }

  .nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: calc(0.9rem + env(safe-area-inset-top)) 1.15rem 0.9rem 1.35rem;
    border-bottom: 1px solid var(--rule);
    flex: none;
  }

  .nav__title {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mist);
  }

  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-right: -0.35rem;
    background: rgba(199, 211, 218, 0.07);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    color: var(--daybreak);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.75rem;
  }

  .nav > .nav__links > a {
    display: flex;
    align-items: center;
    min-height: 56px;                    /* generous, thumb-sized rows */
    padding: 0.85rem 0.75rem;
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--daybreak);
    border-radius: var(--r-sm);
    border-bottom: 1px solid var(--rule);
  }
  .nav > .nav__links > a:last-child { border-bottom: 0; }
  .nav > .nav__links > a:active { background: rgba(199, 211, 218, 0.07); }

  /* the active page is marked by the lamp, left of the label */
  .nav > .nav__links > a.is-active { color: var(--daybreak); }
  .nav > .nav__links > a.is-active::after {
    content: "";
    position: static;
    order: -1;
    width: 7px; height: 7px;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: var(--lamp);
    box-shadow: 0 0 10px 1px rgba(186, 8, 4, 0.7);
  }

  .nav__foot {
    display: block;
    flex: none;
    padding: 1rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: rgba(10, 8, 6, 0.4);
  }

  .nav-cta {
    margin: 0;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    font-size: 1rem;
  }

  .nav__note {
    display: block;
    margin: 0.85rem 0 0;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--mist);
    text-align: center;
    max-width: none;
  }

  .callbar { display: flex; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 1rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; }
  .legal { flex-direction: column; }
}

/* ============================================================================
   motion / print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* planes freeze into one complete painted composition */
  .plane { transform: translate3d(-50%, 0, 0) !important; }
  .rise { opacity: 1; transform: none; }
}

@media print {
  .site-header, .callbar, .stage__planes, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
