/* ==========================================================================
   Deck Builders of Greensboro — shared stylesheet
   Piedmont brick + slate + ivory. Light-first, geometric sans headings,
   serif body. Mobile-first, zero external dependencies.
   ========================================================================== */

:root {
  --brick-900: #571f12;
  --brick-800: #712918;
  --brick-700: #8e3b2a;
  --brick-600: #a34a35;
  --brick-100: #f4ddd5;
  --slate-900: #1f272c;
  --slate-800: #2e3940;
  --slate-700: #3e4c54;
  --slate-600: #52646e;
  --slate-100: #e2e8ea;
  --ivory-50: #f8f4ec;
  --ivory-100: #f1e9db;
  --ivory-200: #e6dac5;
  --wheat-500: #d9a441;
  --ink: #26221c;
  --ink-soft: #5c554a;
  --paper: #ffffff;
  --rule: #d9cfbd;
  --corner: 8px;
  --float: 0 2px 10px rgba(46, 57, 64, 0.14);
  --page-w: 73rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory-50);
  /* keep content clear of the docked mobile call bar */
  padding-bottom: 4.5rem;
}

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

a { color: var(--brick-700); }
a:hover, a:focus { color: var(--brick-900); }

h1, h2, h3 {
  font-family: Futura, "Century Gothic", "Gill Sans", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--slate-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.95rem); margin-top: 0; }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.wrap {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-jump {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brick-800);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-jump:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Masthead + navstrip
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--slate-800);
  border-top: 5px solid var(--brick-700);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ivory-50);
  font-family: Futura, "Century Gothic", "Gill Sans", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brandmark:hover, .brandmark:focus { color: #fff; }
.brandmark svg { flex: 0 0 auto; width: 2.3rem; height: 2.3rem; }
.brandmark .sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--wheat-500);
}

.mast-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brick-700);
  color: #fff !important;
  text-decoration: none;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 700;
  padding: 0.7rem 1.05rem;
  border-radius: var(--corner);
  white-space: nowrap;
  min-height: 44px;
}
.mast-call:hover, .mast-call:focus { background: var(--brick-900); }
.mast-call svg { width: 1.1rem; height: 1.1rem; }
.mast-call .tel-digits { display: none; }

.navstrip {
  background: var(--ivory-50);
  border-bottom: 1px solid var(--rule);
}

.navstrip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.navstrip a {
  display: inline-block;
  color: var(--slate-800);
  text-decoration: none;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 3px solid transparent;
  min-height: 44px;
}

.navstrip a:hover,
.navstrip a:focus,
.navstrip a[aria-current="page"] {
  color: var(--brick-800);
  border-bottom-color: var(--brick-700);
}

/* Mobile: nav collapses behind a CSS-only toggle */
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; }
@media (max-width: 919px) {
  .nav-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
    font-weight: 700; font-size: 0.92rem; color: var(--ivory-50);
    border: 2px solid var(--slate-600); border-radius: var(--corner);
    padding: 0.45rem 0.75rem; cursor: pointer; user-select: none;
    margin-left: auto; margin-right: 0.6rem;
  }
  .navstrip { display: none; }
  .nav-check:checked ~ .navstrip { display: block; }
  .nav-check:checked ~ div .nav-btn { background: var(--brick-700); border-color: var(--brick-700); }
  .navstrip ul { flex-direction: column; padding: 0.3rem 0; }
  .navstrip a { display: block; border-bottom: 0; border-left: 4px solid transparent; }
  .navstrip a:hover, .navstrip a:focus, .navstrip a[aria-current="page"] {
    border-left-color: var(--brick-700);
    background: var(--ivory-100);
  }
}

/* --------------------------------------------------------------------------
   Home hero — light, dual conversion
   -------------------------------------------------------------------------- */
.gate-hero {
  background:
    linear-gradient(180deg, var(--ivory-50) 0%, var(--ivory-100) 100%);
  border-bottom: 5px solid var(--slate-800);
  padding: 2.4rem 0 2.7rem;
}

.hero-pair { display: grid; gap: 1.7rem; }

.eyebrow {
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick-700);
  margin-bottom: 0.55rem;
}

.opener {
  font-size: 1.16rem;
  color: var(--ink);
  max-width: 38rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.05rem 0 1.35rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.checklist svg {
  position: absolute;
  left: 0;
  top: 0.22rem;
  width: 1.2rem;
  height: 1.2rem;
}

.call-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--brick-700);
  color: #fff !important;
  text-decoration: none;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 1rem 1.4rem;
  border-radius: var(--corner);
  box-shadow: var(--float);
  min-height: 56px;
}
.call-cta:hover, .call-cta:focus { background: var(--brick-900); }
.call-cta svg { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.call-cta small {
  display: block;
  font-family: Charter, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.94;
}

.under-cta {
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* Quote panel */
.quote-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 6px solid var(--slate-800);
  border-radius: var(--corner);
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(31, 39, 44, 0.16);
}

.quote-panel h2 {
  font-size: 1.28rem;
  margin-bottom: 0.3rem;
}

.quote-panel .panel-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.quote-panel label {
  display: block;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.25rem;
}

.quote-panel input,
.quote-panel select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.85rem;
  border: 2px solid var(--ivory-200);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}

.quote-panel input:focus,
.quote-panel select:focus {
  outline: 3px solid var(--wheat-500);
  outline-offset: 1px;
  border-color: var(--slate-700);
}

.send-btn {
  width: 100%;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  background: var(--slate-800);
  border: 0;
  border-radius: var(--corner);
  padding: 0.9rem 1rem;
  cursor: pointer;
  min-height: 52px;
}
.send-btn:hover, .send-btn:focus { background: var(--slate-900); }

.fine {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
  text-align: center;
}

.sent-ok {
  background: var(--slate-100);
  border-left: 4px solid var(--slate-700);
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Trustline
   -------------------------------------------------------------------------- */
.trustline {
  background: var(--slate-800);
  color: var(--ivory-50);
}

.trustline ul {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.trustline li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

.trustline svg { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.sec { padding: 2.7rem 0; }

.sec-tint {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.intro-copy { max-width: 47rem; }

.bigread { font-size: 1.15rem; }

/* Service tiles */
.grid-tiles {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--ivory-50);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--brick-700);
  border-radius: var(--corner);
  padding: 1.25rem;
  box-shadow: var(--float);
}

.tile .tile-glyph { width: 2.4rem; height: 2.4rem; margin-bottom: 0.6rem; }

.tile h3 { margin-bottom: 0.4rem; }
.tile h3 a { color: var(--slate-900); text-decoration: none; }
.tile h3 a:hover, .tile h3 a:focus { color: var(--brick-800); text-decoration: underline; }

.tile p { flex: 1; font-size: 0.94rem; margin-bottom: 0.75rem; }

.go-link {
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.go-link:hover, .go-link:focus { text-decoration: underline; }

/* Price sheet */
.price-sheet {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.price-sheet caption {
  caption-side: bottom;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.1rem;
  text-align: left;
}

.price-sheet th,
.price-sheet td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.price-sheet thead th {
  background: var(--brick-800);
  color: #fff;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-sheet tbody tr:nth-child(even) { background: var(--ivory-50); }

.scroll-x { overflow-x: auto; }

/* Red-flag list (bad-contractor section) */
.flag-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  counter-reset: flags;
}

.flag-list > li {
  counter-increment: flags;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  padding: 1rem 1.1rem 1rem 3.4rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--float);
}

.flag-list > li::before {
  content: counter(flags);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brick-700);
  color: #fff;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
}

.flag-list strong { color: var(--brick-900); }
.flag-list p:last-child { margin-bottom: 0; }

/* Callout notes */
.callnote {
  background: var(--slate-100);
  border-left: 5px solid var(--slate-700);
  border-radius: 0 var(--corner) var(--corner) 0;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.callnote-brick {
  background: var(--brick-100);
  border-left-color: var(--brick-700);
}

.callnote p:last-child { margin-bottom: 0; }

/* Split layout with aside */
.split { display: grid; gap: 2rem; }

.longform h2 { margin-top: 1.75rem; }
.longform h2:first-child { margin-top: 0; }
.longform h3 { margin-top: 1.25rem; }

.aside-col .panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  padding: 1.1rem;
  box-shadow: var(--float);
  margin-bottom: 1.25rem;
}

.aside-col h2 { font-size: 1.05rem; }

.aside-col .panel ul { list-style: none; padding: 0; margin: 0; }
.aside-col .panel li { margin: 0; border-bottom: 1px solid var(--rule); }
.aside-col .panel li:last-child { border-bottom: 0; }
.aside-col .panel li a {
  display: block;
  padding: 0.6rem 0.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.panel-call {
  background: var(--brick-800) !important;
  color: var(--ivory-50);
  text-align: center;
  border: 0 !important;
}
.panel-call h2 { color: #fff; }
.panel-call .call-cta { font-size: 1.12rem; margin-top: 0.5rem; background: var(--slate-800); }
.panel-call .call-cta:hover, .panel-call .call-cta:focus { background: var(--slate-900); }

.quicklist li {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0.2rem;
  font-size: 0.94rem;
}

/* FAQ folds */
.faq-fold {
  background: var(--ivory-50);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  margin-bottom: 0.75rem;
}

.faq-fold summary {
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--slate-900);
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style-position: inside;
}

.faq-fold summary:hover { color: var(--brick-800); }

.faq-fold .fold-body { padding: 0 1.15rem 1rem; border-top: 1px dashed var(--rule); }
.faq-fold .fold-body > p:first-child { margin-top: 0.85rem; }

/* Interior page hero */
.inner-hero {
  background: var(--slate-800);
  color: var(--ivory-100);
  padding: 2rem 0 2.2rem;
  border-bottom: 5px solid var(--brick-700);
}

.inner-hero h1 { color: #fff; margin-bottom: 0.35rem; }

.inner-hero .opener {
  color: var(--slate-100);
  font-size: 1.08rem;
  max-width: 43rem;
  margin-bottom: 1.25rem;
}

.inner-hero .call-cta { max-width: 26rem; }

/* Closer CTA strip */
.closer {
  background: var(--brick-800);
  color: var(--ivory-100);
  text-align: center;
  padding: 2.5rem 0;
  border-top: 5px solid var(--slate-800);
}

.closer h2 { color: #fff; }
.closer p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.closer .call-cta { max-width: 24rem; margin: 1rem auto 0; background: var(--slate-800); }
.closer .call-cta:hover, .closer .call-cta:focus { background: var(--slate-900); }
.closer .alt-path { margin-top: 1rem; }
.closer .alt-path a { color: var(--ivory-50); }

/* Area entries */
.area-entry h3 { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Pagefoot — deliberately NAP-free (no street address)
   -------------------------------------------------------------------------- */
.pagefoot {
  background: var(--slate-900);
  color: var(--slate-100);
  padding: 2.25rem 0 1.5rem;
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pagefoot h2 {
  color: var(--wheat-500);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.pagefoot ul { list-style: none; padding: 0; margin: 0; }
.pagefoot li { margin-bottom: 0.4rem; }

.pagefoot a { color: var(--ivory-100); text-decoration: none; }
.pagefoot a:hover, .pagefoot a:focus { text-decoration: underline; color: #fff; }

.foot-tel {
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff !important;
}

.foot-legal {
  border-top: 1px solid var(--slate-700);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #9fb0b9;
}

/* --------------------------------------------------------------------------
   Docked mobile call bar
   -------------------------------------------------------------------------- */
.dockbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 50;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
}

.dockbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.95rem 0.5rem;
  min-height: 56px;
}

.dockbar .dock-call { background: var(--brick-700); color: #fff; }
.dockbar .dock-quote { background: var(--slate-800); color: #fff; }
.dockbar svg { width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   Wider screens
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .trustline ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
  .grid-tiles { grid-template-columns: 1fr 1fr; }
  .mast-call .tel-digits { display: inline; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 920px) {
  body { padding-bottom: 0; }
  .dockbar { display: none; }

  .gate-hero { padding: 3.5rem 0 4rem; }

  .hero-pair {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 2.75rem;
  }

  .call-cta { max-width: 26rem; justify-content: flex-start; }
  .gate-hero .under-cta { text-align: left; }

  .grid-tiles { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 2fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .navstrip a { font-size: 0.94rem; padding: 0.75rem 0.8rem; }
}

/* Print */
@media print {
  .dockbar, .navstrip { display: none; }
}

/* ==========================================================================
   MASTERPIECE LAYER — golden-hour craftsmanship
   Everything below is progressive enhancement: reduced-motion visitors see
   the finished deck, fully drawn blueprints, and a working estimator.
   ========================================================================== */

:root {
  --timber-700: #7a4a2b;
  --timber-600: #8a5633;
  --timber-500: #a06a3f;
  --timber-300: #c89b6a;
  --concrete: #b9b0a2;
  --lawn-600: #5f7352;
  --lawn-500: #6c8060;
  --sky-eve-1: #f7e7c8;
  --sky-eve-2: #eec98d;
  --sky-eve-3: #d9a05b;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-settle: cubic-bezier(0.22, 1.4, 0.36, 1);
  --lift: 0 1px 2px rgba(31,39,44,.07), 0 8px 28px -10px rgba(31,39,44,.22);
  --lift-hover: 0 2px 4px rgba(31,39,44,.09), 0 20px 48px -14px rgba(31,39,44,.33);
}

@view-transition { navigation: auto; }

::selection { background: var(--wheat-500); color: var(--slate-900); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brick-700); outline-offset: 2px; border-radius: 4px; }
body { accent-color: var(--brick-700); }

@media (min-width: 900px) {
  @supports (backdrop-filter: blur(1px)) {
    .masthead {
      position: sticky; top: 0; z-index: 60;
      background: color-mix(in srgb, var(--slate-900) 88%, transparent);
      backdrop-filter: blur(14px) saturate(1.3);
      -webkit-backdrop-filter: blur(14px) saturate(1.3);
    }
  }
}

/* --- Hero: evening backyard ------------------------------------------------ */
.gate-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(178deg,
      var(--ivory-50) 0%,
      var(--ivory-50) 42%,
      var(--sky-eve-1) 62%,
      var(--sky-eve-2) 80%,
      var(--sky-eve-3) 100%);
  padding-bottom: 15.5rem;
}

.gate-hero .wrap { position: relative; z-index: 2; }

.buildsite {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(150px, 21vw, 240px);
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* --- Deck assembly choreography (load-time, CSS only) ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  .bs-footing { animation: set-up .5s var(--ease-settle) both; transform-origin: 50% 100%; transform-box: fill-box; }
  .bs-footing-2 { animation-delay: .35s; }
  .bs-footing-1 { animation-delay: .15s; }

  .bs-post { animation: set-up .55s var(--ease-settle) both; transform-origin: 50% 100%; transform-box: fill-box; }
  .bs-post-1 { animation-delay: .75s; }
  .bs-post-2 { animation-delay: .9s; }

  .bs-beam { animation: drop-on .5s var(--ease-settle) 1.25s both; transform-box: fill-box; }

  .bs-board { animation: slide-in .42s var(--ease-out) both; transform-box: fill-box; }
  .bs-board-1 { animation-delay: 1.65s; }
  .bs-board-2 { animation-delay: 1.78s; }
  .bs-board-3 { animation-delay: 1.91s; }
  .bs-board-4 { animation-delay: 2.04s; }
  .bs-board-5 { animation-delay: 2.17s; }
  .bs-board-6 { animation-delay: 2.30s; }
  .bs-board-7 { animation-delay: 2.43s; }

  .bs-rail { animation: set-up .5s var(--ease-settle) 2.75s both; transform-origin: 50% 100%; transform-box: fill-box; }

  .bs-wire {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-wire 1s ease 3.25s forwards;
  }

  .bs-bulb { animation: bulb-on .4s ease both; }
  .bs-bulb-1 { animation-delay: 4.1s; }
  .bs-bulb-2 { animation-delay: 4.22s; }
  .bs-bulb-3 { animation-delay: 4.34s; }
  .bs-bulb-4 { animation-delay: 4.46s; }
  .bs-bulb-5 { animation-delay: 4.58s; }
  .bs-bulb-6 { animation-delay: 4.7s; }

  .bs-lights { transform-origin: 8% 0%; animation: light-sway 6.5s ease-in-out 5s infinite alternate; transform-box: fill-box; }

  @keyframes set-up   { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes drop-on  { from { transform: translateY(-42px); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
  @keyframes slide-in { from { transform: translateX(70px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes draw-wire { to { stroke-dashoffset: 0; } }
  @keyframes bulb-on  { from { opacity: 0; } 60% { opacity: 1; filter: drop-shadow(0 0 6px rgba(240,196,102,.9)); } to { opacity: 1; } }
  @keyframes light-sway { from { transform: rotate(-.6deg); } to { transform: rotate(.8deg); } }
}

/* --- Hero content polish ---------------------------------------------------- */
.gate-hero h1 { letter-spacing: -0.02em; }

.quote-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--lift-hover);
}

@supports (backdrop-filter: blur(1px)) {
  .quote-panel {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
  }
}

.quote-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--corner) var(--corner) 0 0;
  background: linear-gradient(90deg, var(--wheat-500), var(--brick-700) 60%, var(--slate-800));
}

.quote-panel input, .quote-panel select {
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.quote-panel input:focus, .quote-panel select:focus {
  border-color: var(--brick-700);
  box-shadow: 0 0 0 4px rgba(142,59,42,.15);
  outline: none;
}

/* what-happens-next micro-timeline */
.next-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: .9rem 0 0;
  border-top: 1px dashed var(--rule);
  display: grid;
  gap: .45rem;
  font-size: .84rem;
  color: var(--ink-soft);
}
.next-steps li { display: flex; gap: .55rem; align-items: baseline; margin: 0; }
.next-steps b {
  flex: 0 0 auto;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--ivory-100);
  border: 1.5px solid var(--wheat-500);
  color: var(--brick-800);
  font-size: .72rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  transform: translateY(.15rem);
}

/* --- Buttons ----------------------------------------------------------------- */
.call-cta, .send-btn, .db-ring {
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), filter .16s var(--ease-out);
}
.call-cta { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 26px -10px rgba(87,31,18,.6); }
.call-cta:hover, .send-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.call-cta:active, .send-btn:active { transform: scale(.985); }

/* --- Sections & cards --------------------------------------------------------- */
.sec { padding: 3.2rem 0; }
.sec h2 { position: relative; padding-bottom: .55rem; }
.sec h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 2.6rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--wheat-500), var(--brick-700));
}

.tile { transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out); box-shadow: 0 1px 3px rgba(31,39,44,.08); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }

.price-sheet { font-variant-numeric: tabular-nums; box-shadow: var(--lift); border-radius: 10px; overflow: hidden; }
.price-sheet tbody tr { transition: background .15s ease; }
.price-sheet tbody tr:hover { background: var(--ivory-100); }

/* --- Blueprint strip ----------------------------------------------------------- */
.blueprints {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) { .blueprints { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .blueprints { grid-template-columns: repeat(4, 1fr); } }

.bp-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--lift);
  background-image:
    linear-gradient(rgba(142,59,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,59,42,.045) 1px, transparent 1px);
  background-size: 14px 14px;
}

.bp-card svg { display: block; width: 100%; height: auto; margin-bottom: .7rem; }

.bp-card h3 {
  font-size: .98rem;
  margin: 0 0 .25rem;
  display: flex;
  gap: .5rem;
  align-items: baseline;
}

.bp-card h3 .bp-num {
  font-size: .75rem;
  color: var(--brick-700);
  letter-spacing: .12em;
}

.bp-card p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.bp-draw {
  fill: none;
  stroke: var(--brick-800);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bp-dim {
  fill: none;
  stroke: var(--slate-600);
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
}

.bp-label { font-size: 10px; fill: var(--slate-600); font-family: inherit; }

/* draw-on-scroll: each stroke uses pathLength=1 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bp-card .bp-draw {
      stroke-dasharray: 1;
      stroke-dashoffset: 1;
      animation: bp-drawline 1ms linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 46%;
    }
    @keyframes bp-drawline { to { stroke-dashoffset: 0; } }
  }
}

/* --- Honest-numbers estimator --------------------------------------------------- */
.estimator {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--lift);
}

.estimator .est-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brick-700);
  margin: 0 0 .35rem;
}

.est-size {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 .2rem;
  font-variant-numeric: tabular-nums;
}

.est-size small { font-weight: 400; color: var(--ink-soft); }

.estimator input[type="range"] {
  width: 100%;
  margin: .4rem 0 .15rem;
}

.est-ticks {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}

.est-materials {
  display: flex;
  gap: .5rem;
  margin-bottom: .9rem;
}

.est-materials label {
  flex: 1;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  padding: .5rem .4rem;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .18s var(--ease-out);
}

.est-materials input { position: absolute; opacity: 0; pointer-events: none; }

.est-materials input:checked + label,
.est-materials label:has(input:checked) {
  background: var(--slate-800);
  border-color: var(--slate-800);
  color: #fff;
}

.est-out {
  background: var(--ivory-100);
  border-radius: 8px;
  padding: .8rem .9rem;
  text-align: center;
  margin-bottom: .8rem;
}

.est-out .est-range {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--brick-800);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.est-out .est-note { font-size: .78rem; color: var(--ink-soft); }

.est-cta {
  display: block;
  font-size: .95rem;
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(180deg, var(--brick-600), var(--brick-800));
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 20px -8px rgba(87,31,18,.55);
  transition: transform .16s var(--ease-out), filter .16s var(--ease-out);
}
.est-cta:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }

.est-fine { font-size: .74rem; color: var(--ink-soft); text-align: center; margin: .5rem 0 0; }

/* --- FAQ ---------------------------------------------------------------------------- */
.qa summary { list-style: none; position: relative; padding-right: 2rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute; right: .4rem; top: 50%;
  width: .6rem; height: .6rem;
  border-right: 2.5px solid var(--brick-700);
  border-bottom: 2.5px solid var(--brick-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.qa[open] summary::after { transform: translateY(-30%) rotate(225deg); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0; overflow-y: clip;
    transition: content-visibility .38s allow-discrete, block-size .38s var(--ease-out);
  }
  .qa[open]::details-content { block-size: auto; }
}

/* --- Subpage heads + dock ------------------------------------------------------------ */
.page-top {
  position: relative;
  background:
    radial-gradient(90rem 26rem at 88% -20%, rgba(217,164,65,.35), transparent 55%),
    linear-gradient(172deg, var(--ivory-50) 0%, var(--ivory-100) 55%, var(--sky-eve-2) 100%);
  padding-bottom: 2.8rem;
}
.page-top::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 24px;
  background:
    radial-gradient(58% 100% at 25% 100%, var(--paper) 49%, transparent 51%),
    radial-gradient(58% 100% at 75% 100%, var(--paper) 49%, transparent 51%);
  pointer-events: none;
}

@supports (backdrop-filter: blur(1px)) {
  .dockbar {
    background: rgba(31,39,44,.88);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
  }
}
.dockbar { padding-bottom: env(safe-area-inset-bottom); }

/* --- Scroll-driven entrances ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tile, .sec h2, .price-sheet, .qa, .bp-card, .estimator, .callnote {
      animation: rise-in both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

@media (min-width: 1100px) { .navstrip a { font-size: 0.82rem; padding: 0.7rem 0.42rem; } }
