/* ============================================================
   Black Swamp Repairs: styles.css
   "Rugged workshop" theme: swamp greens + amber from the logo,
   condensed headings, paper grain, blueprint line-work.
   ============================================================ */

/* Fonts are self-hosted (assets/fonts) so visitor data is never sent to Google. Latin subset, SIL OFL. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/caveat-600.woff2") format("woff2"); }

:root {
  --green-950: #0b1913;
  --green-900: #10231b;
  --green-800: #16352a;
  --green-700: #1e4536;
  --green-600: #2a5c47;
  --moss: #6fae8f;
  --amber: #e0972a;
  --amber-dark: #c9821d;
  --amber-ink: #8a5a16;    /* amber for text on LIGHT backgrounds (>= 4.5:1) */
  --paper: #f4efe4;        /* main light background */
  --kraft: #ebe3d2;        /* alternate light background */
  --card: #fffdf8;
  --ink: #1a211d;
  --muted: #4e5a53;        /* body copy on light (>= 5.5:1) */
  --on-dark: #f4efe4;
  --on-dark-muted: #bccdc4; /* body copy on dark green (>= 9:1) */
  --line: #d6ccb6;
  --field-border: #7a877f; /* input borders (>= 3:1 vs white) */
  --shadow-hard: 4px 4px 0 var(--green-900);
  --shadow-soft: 0 14px 34px rgba(16, 35, 27, 0.14);
  --radius: 10px;
  --max: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper) var(--grain);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--amber-ink); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.02; margin: 0; letter-spacing: 0.2px; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

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

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 400;
  background: var(--amber); color: var(--green-900); padding: 10px 16px;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Keyboard focus: amber ring + dark halo, visible on light and dark (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--green-900);
  border-radius: 6px;
}

/* ---------------- Type helpers ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; font-size: 0.95rem; color: var(--amber-ink); margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--amber); }

.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head .eyebrow::after { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.section__title {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; text-transform: uppercase;
  color: var(--green-900); letter-spacing: 0.4px;
}
.section__title--light { color: var(--on-dark); }
.section__lead { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 1px;
  font-size: 1.1rem; text-transform: uppercase; line-height: 1.1;
  padding: 14px 26px; min-height: 48px; border-radius: 8px; border: 2px solid var(--green-900);
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); }
.btn--lg { padding: 17px 32px; font-size: 1.2rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--amber); color: var(--green-900); box-shadow: var(--shadow-hard); }
.btn--primary:hover { background: #eaa23a; color: var(--green-900); box-shadow: 6px 6px 0 var(--green-900); }
.btn--primary:active { box-shadow: 1px 1px 0 var(--green-900); }

/* On dark sections the hard shadow switches to near-black */
.hero .btn--primary, .about .btn--primary, .quote .btn--primary, .area .btn--primary {
  border-color: var(--green-950); box-shadow: 4px 4px 0 var(--green-950);
}
.hero .btn--primary:hover, .about .btn--primary:hover, .quote .btn--primary:hover, .area .btn--primary:hover {
  box-shadow: 6px 6px 0 var(--green-950);
}

.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(244,239,228,0.7); }
.btn--ghost:hover { background: rgba(244,239,228,0.1); color: #fff; border-color: #fff; }

.btn--dark { background: var(--green-900); color: var(--on-dark); box-shadow: 4px 4px 0 var(--amber); }
.btn--dark:hover { color: #fff; box-shadow: 6px 6px 0 var(--amber); }

.btn--outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn--outline:hover { background: var(--kraft); color: var(--green-900); }

/* ---------------- Topbar ---------------- */
.topbar {
  background: var(--green-950); color: var(--on-dark-muted);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.6px; font-size: 0.85rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 22px; }
.topbar__dot { color: var(--amber); font-size: 0.7rem; }

/* ---------------- Header ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper) var(--grain);
  border-bottom: 3px solid var(--green-900);
  transition: box-shadow 0.25s ease;
  /* NOTE: never add backdrop-filter/filter/transform here. It would make the header the
     containing block for the position:fixed mobile menu and break it. */
}
.header.scrolled { box-shadow: 0 6px 18px rgba(16,35,27,0.14); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }

.brand { display: flex; align-items: center; }
/* multiply blends the logo's white background into the paper colour */
.brand__logo { height: 76px; width: auto; mix-blend-mode: multiply; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--green-900); padding: 10px 13px; border-radius: 6px; font-size: 1.05rem;
  position: relative;
}
.nav__link:not(.nav__cta)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav__link:not(.nav__cta):hover { color: var(--green-900); }
.nav__link:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--amber); color: var(--green-900); margin-left: 10px;
  border: 2px solid var(--green-900); box-shadow: 3px 3px 0 var(--green-900); padding: 9px 18px;
}
.nav__cta:hover { color: var(--green-900); background: #eaa23a; }
.nav__close { display: none; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 48px; min-height: 48px; }
.nav__toggle span { display: block; width: 28px; height: 3px; background: var(--green-900); border-radius: 3px; margin: 5px 0; }

/* ---------------- Contour line-work (topographic "swamp" lines) ---------------- */
.contours {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--moss); stroke-width: 1.2; opacity: 0.16; pointer-events: none;
}
.contours--soft { opacity: 0.1; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(224,151,42,0.16), transparent 60%),
    linear-gradient(165deg, var(--green-800) 0%, var(--green-900) 55%, var(--green-950) 100%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px);
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 800; text-transform: uppercase;
  line-height: 0.92; margin-bottom: 22px; letter-spacing: 0.5px;
}
.hero__accent { color: var(--amber); display: inline-block; position: relative; }
.hero__accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 50 1, 90 7, 130 3 S 190 4, 198 3' fill='none' stroke='%23e0972a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero__sub { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-dark-muted); max-width: 600px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; }
.hero__trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  font-size: 1rem; color: var(--on-dark);
}
.hero__trust li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310231b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 12px;
}

.hero__art { position: relative; color: var(--on-dark); }
.house { width: 100%; max-width: 460px; margin-left: auto; opacity: 0.95; }
.house__accent { stroke: var(--amber); }
.house__dim { stroke: var(--moss); stroke-width: 1.6; }
.house__label {
  fill: var(--moss); stroke: none; font-family: var(--font-head); font-weight: 700;
  font-size: 15px; letter-spacing: 3px;
}
.stamp { position: absolute; width: 140px; left: -4%; top: -6%; filter: drop-shadow(4px 4px 0 var(--green-950)); }
.stamp__bg { fill: var(--amber); }
.stamp__ring { fill: none; stroke: var(--green-900); stroke-width: 2; stroke-dasharray: 4 5; }
.stamp__text { fill: var(--green-900); font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.stamp__big { fill: var(--green-900); font-family: var(--font-head); font-weight: 800; font-size: 40px; }
.stamp__small { fill: var(--green-900); font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: 3px; }
.stamp__spin { transform-origin: 100px 100px; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Ticker ---------------- */
.ticker {
  background: var(--amber); color: var(--green-900); overflow: hidden;
  border-top: 3px solid var(--green-950); border-bottom: 3px solid var(--green-950);
}
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  font-size: 1.35rem; padding: 12px 0; white-space: nowrap; display: inline-flex; align-items: center;
}
.ticker__track span::after { content: "✦"; margin: 0 26px; font-size: 0.9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker { position: relative; }

/* Pause/play for all looping motion (WCAG 2.2.2) */
.motion-toggle {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 54px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--green-950); color: var(--amber); border: 0; border-left: 3px solid var(--green-950);
}
.motion-toggle:hover { background: var(--green-800); }
.motion-toggle:focus-visible { outline-offset: -5px; box-shadow: none; }
.motion-toggle__play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; }
.motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-paused .ticker__track,
.motion-paused .stamp__spin { animation-play-state: paused; }

/* ---------------- Services: hang-tag cards ---------------- */
.tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tag {
  position: relative; display: block;
  background: var(--card); border: 2px solid var(--green-900); border-radius: var(--radius);
  padding: 40px 26px 28px; box-shadow: var(--shadow-hard);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* punched hang-tag hole */
.tag::before {
  content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--green-900);
}
.tag:hover { transform: translate(-3px, -3px) rotate(-0.6deg); box-shadow: 7px 7px 0 var(--green-900); }
.tag__num {
  position: absolute; top: 12px; right: 16px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: 1px; color: var(--amber-ink);
}
.tag__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 8px;
  background: var(--green-900); color: var(--amber); margin-bottom: 18px;
}
.tag__icon svg { width: 30px; height: 30px; }
.tag__title { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; color: var(--green-900); margin-bottom: 8px; }
.tag__text { color: var(--muted); margin: 0; }

.tag--ask { background: var(--green-900); color: var(--on-dark); border-color: var(--green-950); }
.tag--ask::before { background: var(--paper); border-color: var(--green-950); }
.tag--ask .tag__num { color: var(--amber); }
.tag--ask .tag__title { color: var(--amber); }
.tag--ask .tag__text { color: var(--on-dark-muted); margin-bottom: 18px; }
.tag__link {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--on-dark); border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.tag--ask:hover { color: var(--on-dark); }

/* ---------------- About + Promise ---------------- */
.about { background: var(--green-900); color: var(--on-dark); overflow: hidden; }
.about__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__copy p { color: var(--on-dark-muted); font-size: 1.12rem; }
.about__copy strong { color: var(--on-dark); }
.about__copy .section__title { margin-bottom: 22px; }
.about__copy .btn { margin-top: 10px; }

.promise {
  position: relative; background: var(--card) var(--grain); color: var(--ink);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 42px);
  box-shadow: 8px 8px 0 var(--amber); transform: rotate(0.8deg);
}
.promise::before {
  content: ""; position: absolute; inset: 10px; border: 2px dashed var(--line); border-radius: 6px; pointer-events: none;
}
.promise__kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; color: var(--amber-ink); margin: 0 0 4px; font-size: 0.95rem; }
.promise__title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; text-transform: uppercase; color: var(--green-900); margin-bottom: 22px; }
.promise__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 18px; }
.promise__list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.promise__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--green-900); background: var(--amber); color: var(--green-900);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
}
.promise__list strong { display: block; font-size: 1.12rem; color: var(--green-900); line-height: 1.3; margin-bottom: 2px; }
.promise__list span { color: var(--muted); font-size: 1rem; }
.promise__insured {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green-700); border-top: 2px solid var(--line); padding-top: 14px; margin: 0;
}
.promise__sign { font-family: var(--font-hand); font-size: 2rem; color: var(--green-700); text-align: right; margin: 0; line-height: 1.1; }

/* ---------------- Process ---------------- */
.process { background: var(--kraft) var(--grain); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 0;
  border-top: 3px dashed var(--green-600); opacity: 0.6;
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num {
  position: relative; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green-900); color: var(--amber);
  font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  box-shadow: 0 0 0 5px var(--kraft), 0 0 0 8px var(--amber);
}
.step__title { font-size: 1.7rem; font-weight: 800; text-transform: uppercase; color: var(--green-900); margin-bottom: 8px; }
.step__text { color: var(--muted); margin: 0 auto; max-width: 320px; }

/* ---------------- Gallery: before / after ---------------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba { margin: 0; }
.ba__frame {
  --pos: 50%;
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border: 2px solid var(--green-900); border-radius: var(--radius); background: var(--kraft);
  box-shadow: var(--shadow-hard);
}
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 10px; z-index: 1; pointer-events: none;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(11,25,19,0.78); color: #fff; padding: 3px 9px; border-radius: 4px;
}
.ba__tag--after { left: 10px; background: var(--amber); color: var(--green-900); }
.ba__tag--before { right: 10px; }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 6px rgba(0,0,0,0.35); pointer-events: none; z-index: 1;
}
.ba__divider::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--green-900); border: 2px solid var(--green-900);
  font-size: 1.1rem; font-weight: 700;
}
/* Invisible range input over the whole photo: drag anywhere, arrow keys work too */
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; z-index: 2; touch-action: pan-y; -webkit-appearance: none; appearance: none;
}
.ba__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(11,25,19,0.82); color: #fff; border: 2px solid rgba(255,255,255,0.7); cursor: zoom-in;
}
.ba__zoom:hover { background: var(--green-900); }
.ba figcaption {
  margin-top: 14px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; font-size: 1.2rem; color: var(--green-900);
}
.gallery__nudge { text-align: center; margin: 40px 0 0; font-size: 1.1rem; color: var(--muted); }
.gallery__nudge a { color: var(--amber-ink); font-weight: 700; border-bottom: 2px solid currentColor; }
.gallery__nudge a:hover { color: var(--green-900); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,18,13,0.95);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(90vw, 1000px); margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; }
.lightbox__caption {
  color: var(--on-dark); margin-top: 14px; text-align: center;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1.15rem;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,0.12); border: 0; color: #fff; cursor: pointer;
  border-radius: 8px; line-height: 1; min-width: 48px; min-height: 48px;
}
.lightbox__close { top: 16px; right: 16px; font-size: 2.2rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 2.6rem; padding: 4px 14px; }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.26); }

/* ---------------- Reviews ---------------- */
.reviews { background: var(--kraft) var(--grain); }
.reviews__card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  background: var(--card); border: 2px solid var(--green-900); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px); box-shadow: 8px 8px 0 var(--green-900);
}
.reviews__logo {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
}
.reviews__copy .section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.reviews__copy .section__lead { margin-top: 10px; font-size: 1.05rem; }
.reviews__copy .eyebrow { margin-bottom: 8px; }

/* ---------------- Quote ---------------- */
.quote {
  background:
    radial-gradient(700px 420px at 10% 0%, rgba(224,151,42,0.12), transparent 60%),
    linear-gradient(170deg, var(--green-800), var(--green-950));
  color: var(--on-dark);
}
.quote__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.quote__intro { position: sticky; top: 130px; }
.quote__lead { color: var(--on-dark-muted); font-size: 1.15rem; margin: 20px 0 26px; }
.quote__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.quote__perks li {
  display: flex; gap: 12px; align-items: center; color: var(--on-dark);
  font-family: var(--font-head); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 1.05rem;
}
.quote__perks li::before {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310231b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}

.form {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  border: 2px solid var(--green-950); padding: clamp(24px, 4vw, 40px);
  box-shadow: 8px 8px 0 var(--amber);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Progress indicator */
.progress { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: none; }
.progress__item { display: flex; flex-direction: column; gap: 8px; }
.progress__item::before {
  content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line);
  transition: background 0.3s ease;
}
.progress__item.is-active::before, .progress__item.is-done::before { background: var(--amber); }
.progress__dot { display: none; }
.progress__label {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.95rem;
  color: var(--muted);
}
.progress__item.is-active .progress__label { color: var(--green-900); }

.form__step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form.is-stepped .form__step:not(.is-current) { display: none; }
.form__step + .form__step { margin-top: 28px; }
.form.is-stepped .form__step + .form__step { margin-top: 0; }
.form__legend {
  float: left; width: 100%; padding: 0; margin: 0 0 18px;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--green-900); line-height: 1.05;
}
.form__legend + * { clear: both; }
.form__legend:focus { outline: none; box-shadow: none; }
.form__optional { font-size: 0.6em; color: var(--muted); letter-spacing: 1px; }
.form__help { color: var(--muted); margin: 0 0 14px; clear: both; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; margin-bottom: 6px; color: var(--green-900); font-size: 1rem; }
.req { color: #a8320f; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid var(--field-border); border-radius: 8px; padding: 12px 14px; min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6b7770; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(42,92,71,0.3);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 1px; box-shadow: none; border-radius: 8px;
}
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green-700); }
.field--check label { font-weight: 500; margin: 0; }

.form__nav { display: flex; gap: 12px; margin-top: 8px; }
.form__nav .btn { flex: 1; }
.form__nav [data-back] { flex: 0 0 auto; }
.form:not(.is-stepped) [data-next], .form:not(.is-stepped) [data-back] { display: none; }
.form__note { margin: 18px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Upload */
.upload {
  position: relative; border: 2px dashed var(--field-border); border-radius: var(--radius);
  background: var(--paper); text-align: center; padding: 30px 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload:hover, .upload.is-drag { border-color: var(--green-600); background: #efe8d8; }
.upload:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--green-700); pointer-events: none; }
.upload__title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 1.35rem; color: var(--green-900); margin: 0 !important; }
.upload__hint { font-size: 0.95rem; color: var(--muted); }
.upload__error { color: #a8320f; font-weight: 600; margin: 10px 0 0; font-size: 0.95rem; }
.upload__error:empty { display: none; }

.previews { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.previews:empty { display: none; }
.previews li { position: relative; width: 86px; height: 86px; border-radius: 8px; overflow: hidden; border: 2px solid var(--green-900); }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button {
  position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(11,25,19,0.85); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}

/* Submit loading state */
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(16,35,27,0.3); border-top-color: var(--green-900); animation: spin 0.8s linear infinite;
}
.form.is-submitting .btn__spinner { display: inline-block; }
.form.is-submitting #submitBtn { opacity: 0.85; cursor: wait; }

/* ---------------- FAQ ---------------- */
.faq__wrap { max-width: 880px; }
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: var(--card); border: 2px solid var(--green-900); border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--green-900); transition: box-shadow 0.15s ease;
}
.faq__item[open] { box-shadow: 5px 5px 0 var(--amber); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; min-height: 56px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  font-size: 1.3rem; color: var(--green-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-900); color: var(--amber); font-size: 1.5rem; font-weight: 700; line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 1.08rem; }

/* ---------------- Service area + final CTA ---------------- */
.area {
  position: relative; overflow: hidden; text-align: center; color: var(--on-dark);
  background: linear-gradient(170deg, var(--green-900), var(--green-950));
  padding: clamp(70px, 10vw, 120px) 0;
  border-top: 3px solid var(--amber);
}
.area__inner { position: relative; max-width: 780px; }
.area__pin {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--amber); color: var(--green-900); border: 3px solid var(--green-950);
  box-shadow: 0 0 0 10px rgba(224,151,42,0.15), 0 0 0 22px rgba(224,151,42,0.07);
}
.area__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; text-transform: uppercase; margin-bottom: 16px; }
.area__text { color: var(--on-dark-muted); font-size: 1.18rem; margin: 0 auto 32px; max-width: 620px; }
.area__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------------- Footer ---------------- */
.footer { background: var(--green-950); color: var(--on-dark-muted); padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__brand { display: inline-block; }
.footer__logo { width: 124px; height: auto; border-radius: 12px; border: 3px solid var(--amber); }
.footer__about { margin-top: 16px; max-width: 340px; }
.footer__heading {
  font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  color: var(--amber); margin-bottom: 14px;
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer__links a { color: var(--on-dark); display: inline-block; padding: 4px 0; }
.footer__links a:hover { color: var(--amber); }
.footer__a11y { padding-bottom: 32px; }
.footer__a11y p { margin: 0; max-width: 780px; }
.footer__a11y a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__a11y a:hover { color: var(--amber); }
.footer__bar { border-top: 1px solid rgba(188,205,196,0.18); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 0.92rem; }
.footer__bar p { margin: 0; }

/* ---------------- Sticky mobile CTA + back to top ---------------- */
.mobile-cta { display: none; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center;
  background: var(--green-900); color: var(--amber); border: 2px solid var(--amber); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------------- Scroll reveal ---------------- */
/* Uses the separate `translate` property so hover `transform`s on cards still work */
.reveal { opacity: 0; translate: 0 22px; transition: opacity 0.6s ease, translate 0.6s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.reveal.in { opacity: 1; translate: none; }

/* ---------------- Thank-you page ---------------- */
.ty {
  position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(224,151,42,0.18), transparent 60%),
    linear-gradient(165deg, var(--green-800), var(--green-950));
  color: var(--on-dark); padding: 40px 16px;
}
.ty__card { position: relative; max-width: 600px; }
.ty__check {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--amber); display: grid; place-items: center; color: var(--green-900);
  border: 3px solid var(--green-950); box-shadow: 5px 5px 0 var(--green-950);
}
.ty h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.ty p { color: var(--on-dark-muted); font-size: 1.15rem; margin: 0 auto 12px; max-width: 500px; }
.ty__actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ty .btn--primary { border-color: var(--green-950); box-shadow: 4px 4px 0 var(--green-950); }
.soon__logo { width: 150px; margin: 0 auto 26px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .tags, .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 0 auto; width: 100%; }
  .house { margin: 0 auto; }
  .reviews__card { grid-template-columns: auto 1fr; }
  .reviews__btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .header__inner { min-height: 72px; }
  .brand__logo { height: 60px; }
  .nav__toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(330px, 86vw);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 76px 22px 24px;
    background: var(--paper) var(--grain); border-left: 3px solid var(--green-900);
    box-shadow: -14px 0 40px rgba(0,0,0,0.25);
    transform: translateX(105%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  .nav.open { transform: none; visibility: visible; transition: transform 0.3s ease, visibility 0s; }
  .nav__link { font-size: 1.4rem; padding: 12px 10px; border-bottom: 2px dashed var(--line); border-radius: 0; }
  .nav__link:not(.nav__cta)::after { display: none; }
  .nav__cta { margin: 18px 0 0; text-align: center; border-radius: 8px; border-bottom: 2px solid var(--green-900); }
  .nav__close {
    display: grid; place-items: center; position: absolute; top: 14px; right: 14px;
    width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--green-900);
    background: transparent; color: var(--green-900); font-size: 2rem; line-height: 1; cursor: pointer;
  }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(8,18,13,0.55); z-index: 95;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .about__grid, .quote__grid { grid-template-columns: 1fr; }
  .quote__intro { position: static; }
  .promise { transform: none; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid .footer__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Sticky quote bar on phones */
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--green-950); border-top: 3px solid var(--amber);
    transform: translateY(110%); transition: transform 0.3s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { border-color: var(--green-950); box-shadow: none; }
  .mobile-cta .btn:hover, .mobile-cta .btn:active { transform: none; }
  body { padding-bottom: 76px; }
  /* keep keyboard-focused items from scrolling behind the sticky bar (WCAG 2.4.11) */
  html { scroll-padding-bottom: 96px; }
  .to-top { display: none; } /* the sticky quote bar takes that corner on phones */
  body.nav-open .mobile-cta { transform: translateY(110%); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .topbar__inner { gap: 8px; font-size: 0.75rem; letter-spacing: 1px; padding: 7px 16px; }
  .tags, .gallery__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { width: 100%; }
  .area__actions .btn { width: 100%; }
  .stamp { width: 112px; }
  .reviews__card { grid-template-columns: 1fr; text-align: left; }
  .reviews__btn { width: 100%; white-space: normal; }
  .footer__grid { grid-template-columns: 1fr; }
  .faq__item summary { font-size: 1.15rem; padding: 16px 18px; }
  .faq__item p { padding: 0 18px 18px; }
  .form__nav { flex-wrap: wrap; }
}

/* Respect reduced motion */
@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; }
  .ticker__track { animation: none; }
  .motion-toggle { display: none; } /* nothing moves, so no pause button needed */
  .reveal { opacity: 1; translate: none; }
}
