/* ==========================================================================
   Diligence Remodeling
   Design system + page styles
   Palette sampled from the Diligence truck wrap: navy + royal blue (#2259D4)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink:        #0A1230;
  --ink-2:      #142152;
  --ink-3:      #2B3A66;
  --muted:      #545F78;
  --muted-2:    #7B859C;
  --paper:      #F6F8FB;
  --paper-2:    #ECF0F7;
  --paper-3:    #E0E6F0;
  --line:       #D5DDEA;
  --line-soft:  #E7ECF4;
  /* Logo orange is #C36122; nudged one step deeper so small text and button
     labels clear WCAG AA (4.5:1) on both paper and white. */
  --brand:      #2259D4;
  --brand-dk:   #1237A4;
  --brand-lt:   #8DB0FF;
  --brand-tint: #E6EDFF;
  --white:      #FFFFFF;

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.50vw, 2.85rem);
  --step-4:  clamp(2.30rem, 1.75rem + 2.75vw, 4.15rem);
  --step-5:  clamp(2.80rem, 1.90rem + 4.40vw, 5.75rem);

  --pad:     clamp(1.25rem, 4vw, 4.5rem);
  --sec:     clamp(4.5rem, 9vw, 9rem);
  --maxw:    1280px;

  --r-sm: 3px;
  --r:    6px;
  --r-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(10,18,48,.06), 0 2px 8px rgba(10,18,48,.05);
  --shadow:    0 2px 6px rgba(10,18,48,.07), 0 12px 32px rgba(10,18,48,.09);
  --shadow-lg: 0 4px 12px rgba(10,18,48,.10), 0 28px 64px rgba(10,18,48,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .8em;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 2rem; height: 1.5px;
  background: var(--brand);
  flex: none;
}
.eyebrow--light { color: var(--brand-lt); }
.eyebrow--light::before { background: var(--brand-lt); }

.lede { font-size: var(--step-1); color: var(--ink-3); line-height: 1.55; max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .92em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18,55,164,.28); }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px rgba(10,18,48,.20); }

.btn--onDark { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.42); }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 10px 22px rgba(0,0,0,.28); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 90;
  /* Navy, like the truck. The chrome logo was drawn for a dark ground and
     washes out on white. */
  background: rgba(10,18,48,.94);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-stuck { border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 2px 24px rgba(6,13,48,.35); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 86px; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; margin-right: auto; }
.brand picture { display: block; }
.brand__logo { display: block; height: 70px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 1.9rem); }
.nav > .btn { display: none; } /* mobile menu only */
.nav a {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,.80); padding: .35rem 0; white-space: nowrap;
  position: relative; transition: color .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--brand-lt); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: .75rem; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .875rem;
  letter-spacing: .03em; text-decoration: none; color: #fff;
  transition: color .2s var(--ease);
}
.header__phone svg { width: 15px; height: 15px; color: var(--brand-lt); }
.header__phone:hover { color: var(--brand-lt); }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.burger:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.burger span { display: block; width: 18px; height: 1.5px; background: #fff; position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: #fff;
  transition: transform .28s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Between full desktop and the drawer, drop the button and keep the phone. */
@media (max-width: 1250px) {
  .header__cta > .btn { display: none; }
  .nav { gap: clamp(.85rem, 1.5vw, 1.4rem); }
}

@media (max-width: 1140px) {
  .header__inner { height: 70px; }
  .brand__logo { height: 56px; }
  .burger { display: flex; }
  .header__cta > .btn { display: none; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .5rem var(--pad) 1.5rem;
    box-shadow: 0 20px 40px rgba(6,13,48,.45);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; white-space: normal; }
  .nav a::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1.1rem; border-bottom: 0; }
}
@media (max-width: 560px) { .header__phone span { display: none; } .brand__logo { height: 48px; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: #fff; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,13,48,.94) 0%, rgba(6,13,48,.86) 34%, rgba(6,13,48,.52) 62%, rgba(6,13,48,.30) 100%),
    linear-gradient(to top, rgba(6,13,48,.72) 0%, rgba(6,13,48,0) 45%);
}
.hero__inner { position: relative; padding-block: clamp(5rem, 13vw, 10.5rem) clamp(4rem, 9vw, 7rem); max-width: 900px; }
.hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--brand-lt); }
.hero__sub { font-size: var(--step-1); color: rgba(255,255,255,.80); max-width: 48ch; line-height: 1.58; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }
.hero__scroll {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62);
  text-decoration: none; transition: color .2s var(--ease);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll svg { width: 14px; height: 14px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Trust bar */
.trust { background: var(--ink-2); color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.08); }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.09);
}
.trust__item { background: var(--ink-2); padding: 1.6rem clamp(.9rem, 2vw, 1.75rem); text-align: center; }
.trust__k {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: #fff; letter-spacing: -.01em; line-height: 1.15;
}
.trust__v {
  display: block; margin-top: .35rem; font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 500;
}
@media (max-width: 720px) { .trust__inner { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Promotion band — reusable for seasonal offers
   No promotion is live right now; these styles are kept so the next one
   drops in as markup alone. Dark ground so a flyer's own navy edges sit
   flush instead of floating on a light page. Pair with data-promo-until
   on the section so it hides itself after the offer ends (main.js).
   ========================================================================== */
.promo {
  background:
    radial-gradient(120% 90% at 50% 0%, #17255E 0%, var(--ink) 62%),
    var(--ink);
  color: #fff;
  border-block: 1px solid rgba(255,255,255,.10);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.promo__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.promo h2 {
  font-size: var(--step-3);
  max-width: 20ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

/* The flyer is the largest image on the page by design. */
.promo__art {
  display: block; width: 100%;
  max-width: clamp(320px, 74vw, 760px);
  padding: 0; border: 0; background: none;
  border-radius: var(--r-lg); overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 30px 70px rgba(0,0,0,.35);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.promo__art img { width: 100%; height: auto; display: block; }
.promo__art:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,.5), 0 40px 90px rgba(0,0,0,.4); }

.promo__tiers {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem clamp(.6rem, 2vw, 1.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}
.promo__tiers li {
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 100px;
  padding: .55em 1.15em;
  font-size: .92rem;
  color: rgba(255,255,255,.82);
}
.promo__tiers strong { color: var(--brand-lt); font-weight: 600; }

.promo__dates {
  margin-top: 1.15rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.66);
}
.promo__dates strong { color: #fff; font-weight: 700; }

.promo__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 1.8rem; }

.promo__fine {
  margin-top: 1.6rem; max-width: 62ch;
  font-size: .78rem; line-height: 1.55; color: rgba(255,255,255,.48);
}

/* ==========================================================================
   Section heading
   ========================================================================== */
.head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head h2 { font-size: var(--step-3); margin-bottom: 1.1rem; }
.head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.head--split { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; max-width: none; }
@media (max-width: 800px) { .head--split { grid-template-columns: 1fr; align-items: start; } }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--paper); }
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  background: var(--paper);
  position: relative;
  transition: background .3s var(--ease);
}
.svc::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.svc:hover { background: var(--white); }
.svc:hover::after { transform: scaleX(1); }
.svc__n {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; color: var(--brand); display: block; margin-bottom: 1.5rem;
}
.svc__icon { width: 30px; height: 30px; color: var(--ink); margin-bottom: 1.15rem; stroke-width: 1.35; }
.svc h3 { font-size: var(--step-1); margin-bottom: .6rem; letter-spacing: -.012em; }
.svc p { color: var(--muted); font-size: .945rem; line-height: 1.6; }

/* ==========================================================================
   Before / After
   ========================================================================== */
.ba { background: var(--ink); color: #fff; }
.ba .head h2 { color: #fff; }
.ba .head p:not(.eyebrow) { color: rgba(255,255,255,.62); }

.ba__list { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.ba__item { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.ba__item:nth-child(even) { grid-template-columns: 1fr 1.55fr; }
.ba__item:nth-child(even) .ba__copy { order: -1; }
@media (max-width: 900px) {
  .ba__item, .ba__item:nth-child(even) { grid-template-columns: 1fr; }
  .ba__item:nth-child(even) .ba__copy { order: 0; }
}

.ba__copy h3 { font-size: var(--step-2); margin-bottom: .9rem; }
.ba__copy p { color: rgba(255,255,255,.66); line-height: 1.65; }
.ba__tag {
  display: inline-block; font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand-lt);
  border: 1px solid rgba(141,176,255,.35); border-radius: 100px;
  padding: .34em 1em; margin-bottom: 1.1rem;
}

/* Comparison slider */
.cmp {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: #000; box-shadow: var(--shadow-lg);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  aspect-ratio: 4 / 3;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.cmp__label {
  position: absolute; top: 14px; z-index: 3;
  font-family: var(--font-display); font-size: .64rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  padding: .42em .9em; border-radius: 100px;
  background: rgba(6,13,48,.72); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.cmp__label--b { left: 14px; }
.cmp__label--a { right: 14px; background: rgba(34,89,212,.92); }

.cmp__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; z-index: 4; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 0 22px rgba(0,0,0,.4);
}
.cmp__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.32);
  transition: transform .18s var(--ease);
}
.cmp:hover .cmp__knob { transform: translate(-50%, -50%) scale(1.07); }
.cmp__knob svg { width: 20px; height: 20px; }

.cmp__range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.cmp__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; cursor: ew-resize; }
.cmp__range::-moz-range-thumb { width: 48px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.cmp__range:focus-visible ~ .cmp__handle .cmp__knob { outline: 3px solid var(--brand); outline-offset: 3px; }

.cmp__hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-display); font-size: .62rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.78);
  background: rgba(6,13,48,.6); padding: .38em .85em; border-radius: 100px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .3s var(--ease);
}
.cmp.is-touched .cmp__hint { opacity: 0; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.filter {
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  padding: .62em 1.2em; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--muted-2); background: var(--paper-2); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter__c { opacity: .55; margin-left: .45em; font-size: .92em; }

.masonry { columns: 3; column-gap: clamp(.85rem, 1.6vw, 1.35rem); }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 560px)  { .masonry { columns: 1; } }

.tile {
  break-inside: avoid; margin-bottom: clamp(.85rem, 1.6vw, 1.35rem);
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: var(--paper-3); border-radius: var(--r);
  overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .38s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile:hover img { transform: scale(1.035); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.6rem .95rem .9rem;
  background: linear-gradient(to top, rgba(6,13,48,.88) 12%, rgba(6,13,48,0));
  color: #fff; font-size: .82rem; line-height: 1.4; text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: translateY(0); }
.tile.is-hidden { display: none; }

.gallery-more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ==========================================================================
   Featured project walkthrough
   A real grid, not CSS columns — columns fill top-to-bottom, which would
   scramble a sequence that is meant to be read in order.
   ========================================================================== */
.walk { background: var(--paper-2); border-block: 1px solid var(--line); }
.walk__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(.85rem, 1.6vw, 1.35rem);
}
@media (max-width: 560px) { .walk__grid { grid-template-columns: repeat(2, 1fr); } }

/* Divider between one project walkthrough and the next. */
.walk__next {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 62ch;
}
.walk__next h3 { font-size: var(--step-2); margin-bottom: .9rem; letter-spacing: -.018em; }
.walk__next p { color: var(--muted); line-height: 1.6; }

.shot {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: var(--paper-3); border-radius: var(--r);
  overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot:hover img { transform: scale(1.04); }

.shot__n {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; color: #fff;
  background: rgba(6,13,48,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: .3em .6em; border-radius: 100px; pointer-events: none;
}
.shot__cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.4rem .8rem .8rem;
  background: linear-gradient(to top, rgba(6,13,48,.9) 14%, rgba(6,13,48,0));
  color: #fff; font-size: .78rem; line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,10,32,.95);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__fig { display: grid; place-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.lb__img {
  max-width: min(1180px, 100%); max-height: calc(100vh - 190px);
  width: auto; object-fit: contain; border-radius: var(--r);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: scale(.97); transition: transform .3s var(--ease);
}
.lb.is-open .lb__img { transform: scale(1); }
.lb__cap {
  margin-top: 1.25rem; text-align: center; color: rgba(255,255,255,.78);
  font-size: .92rem; max-width: 62ch;
}
.lb__count {
  display: block; margin-top: .5rem;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: rgba(255,255,255,.42);
}
.lb__btn {
  position: absolute; z-index: 3;
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.lb__btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); transform: scale(1.06); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__prev { left: clamp(.6rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) scale(1.06); }
.lb__next { right: clamp(.6rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); }
.lb__next:hover { transform: translateY(-50%) scale(1.06); }
.lb__close { top: clamp(.6rem, 2.5vw, 1.7rem); right: clamp(.6rem, 2.5vw, 1.7rem); }
@media (max-width: 620px) {
  .lb__prev, .lb__next { top: auto; bottom: 1rem; transform: none; }
  .lb__prev:hover, .lb__next:hover { transform: scale(1.06); }
  .lb__img { max-height: calc(100vh - 240px); }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: var(--paper-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.1rem; border-top: 2px solid var(--ink); }
.step:nth-child(1) { border-top-color: var(--brand); }
.step__n {
  position: absolute; top: -0.05rem; right: 0;
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 700;
  line-height: 1; color: #C9D3E3; letter-spacing: -.04em; pointer-events: none;
}
.step h3 { font-size: var(--step-1); margin-bottom: .55rem; position: relative; }
.step p { color: var(--muted); font-size: .945rem; line-height: 1.6; position: relative; }

/* ==========================================================================
   Area + Reviews
   ========================================================================== */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 880px) { .area { grid-template-columns: 1fr; } }

.counties { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.county { background: var(--paper); padding: 1.1rem 1.4rem; display: flex; align-items: baseline; gap: 1rem; transition: background .25s var(--ease); }
.county:hover { background: var(--white); }
.county__n { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.01em; flex: none; min-width: 5.4em; }
/* The trailing "& beyond" row is a catch-all, not a county — read it back a step. */
.county:last-child .county__n { font-weight: 600; color: var(--muted); }
.county:last-child .county__c { font-style: italic; }
.county__c { color: var(--muted); font-size: .88rem; line-height: 1.5; }

.badge-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.badge {
  display: flex; align-items: center; gap: .9rem;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.3rem; background: var(--paper);
  text-decoration: none; transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.badge:hover { border-color: var(--brand); background: var(--white); transform: translateY(-2px); }
.badge__stars { display: flex; gap: 2px; color: var(--brand); }
.badge__stars svg { width: 15px; height: 15px; }
.badge__k { display: block; font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.badge__v { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* ==========================================================================
   Financing band
   Flat ink rather than the promo band's radial wash, so the two dark
   sections don't read as the same component when a promotion is live.
   ========================================================================== */
.fin {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.fin__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fin h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.fin__lede {
  max-width: 52ch; color: rgba(255,255,255,.70); line-height: 1.6;
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

/* Slightly narrower than a promo flyer would be, so an offer stays the
   largest image on the page when one is running. */
.fin__art {
  display: block; width: 100%;
  max-width: clamp(320px, 68vw, 680px);
  padding: 0; border: 0; background: none;
  border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 30px 70px rgba(0,0,0,.3);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.fin__art img { width: 100%; height: auto; display: block; }
.fin__art:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,.5), 0 40px 90px rgba(0,0,0,.36); }

.fin__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 1.8rem; }

/* Consumer-credit disclosure — reproduced as real text because it is
   unreadable at the size it appears inside the flyer. */
.fin__fine {
  margin-top: 1.6rem; max-width: 68ch;
  font-size: .76rem; line-height: 1.6; color: rgba(255,255,255,.48);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.band { background: var(--brand); color: #fff; }
.band__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 800px) { .band__inner { grid-template-columns: 1fr; } }
.band h2 { font-size: var(--step-3); max-width: 20ch; }
.band p { color: rgba(255,255,255,.85); margin-top: .9rem; max-width: 46ch; }
.band .btn { --btn-bg: #fff; --btn-fg: var(--brand-dk); border-color: #fff; }
.band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.25); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .field--2 { grid-template-columns: 1fr; } }
.label {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.input, .select, .textarea {
  width: 100%; padding: .82rem 1rem; font: inherit; font-size: .97rem;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,89,212,.14);
}
.textarea { resize: vertical; min-height: 128px; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545F78' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 17px;
  padding-right: 2.6rem;
}
.form__note { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.form__note a { color: var(--brand-dk); }
.form__note.is-ok    { color: #2E6E33; font-weight: 500; }
.form__note.is-error { color: var(--brand-dk); font-weight: 500; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.details { display: grid; gap: 0; align-content: start; }
.detail {
  display: grid; grid-template-columns: 34px 1fr; gap: 1.1rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}
.detail:first-child { padding-top: 0; }
.detail__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dk); }
.detail__ico svg { width: 16px; height: 16px; }
.detail__k { font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.detail__v { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; line-height: 1.4; color: var(--ink); letter-spacing: -.005em; }
.detail__v small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .87rem; color: var(--muted); letter-spacing: 0; margin-top: .2rem; }
a.detail:hover .detail__v { color: var(--brand); }
a.detail:hover .detail__ico { background: var(--brand); color: #fff; }
.detail__ico, a.detail:hover .detail__ico { transition: background .22s var(--ease), color .22s var(--ease); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.10); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }
/* The full logo, including Colossians 3:17 — large enough here for the verse
   to be read, which it can't be at header size. */
.brand--footer { margin-right: 0; }
.brand__logo--full { display: block; width: 100%; max-width: 360px; height: auto; }
.footer__tag { margin-top: 1.4rem; max-width: 34ch; line-height: 1.65; font-size: .94rem; }
/* Readable copy of the verse — the one inside the logo is fine print at any web size. */
.footer__verse {
  margin-top: .9rem;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brand-lt);
}
.footer h4 { font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer li { margin-bottom: .7rem; font-size: .92rem; }
.footer a { text-decoration: none; transition: color .2s var(--ease); }
.footer a:hover { color: var(--brand-lt); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: .8rem; color: rgba(255,255,255,.42); }

/* Builder credit — deliberately quiet so it reads as a signature, not a pitch. */
.footer__credit { margin-left: auto; text-align: right; color: rgba(255,255,255,.34); }
.footer__credit a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.22);
  text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.footer__credit a:hover { color: var(--brand-lt); text-decoration-color: var(--brand-lt); }
@media (max-width: 620px) { .footer__credit { margin-left: 0; text-align: left; } }
.social { display: flex; gap: .6rem; }
.social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75);
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; }

/* ---------- Scroll reveal ----------
   Scoped to .js so that if JavaScript fails to run, every section still
   renders at full opacity instead of staying invisible. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -100px; left: var(--pad); z-index: 300;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r);
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
body.no-scroll { overflow: hidden; }
