/* ==========================================================================
   BDJ Construction — Design System
   Miclyn Website Factory · Flagship Construction Implementation
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: 'Raleway';
  src: url('/fonts/raleway-latin-200-normal.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('/fonts/raleway-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* color */
  --charcoal: #242424;
  --charcoal-soft: #2e2d2b;
  --ink: #3a3a38;
  --paper: #ffffff;
  --stone: #f5f4f2;
  --line: #e4e1dc;
  --line-dark: #46443f;
  --sand: #a67c52;        /* earned high-desert accent */
  --sand-deep: #8a6544;
  --sand-wash: #f0e9e0;

  /* type */
  --font-display: 'Raleway', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, sans-serif;

  /* motion */
  --dur-fast: 180ms;
  --dur-std: 320ms;
  --dur-slow: 560ms;
  --ease-std: cubic-bezier(.2, .6, .2, 1);
  --ease-emph: cubic-bezier(.16, .84, .28, 1);
  --reveal-distance: 18px;

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --section-y: clamp(64px, 9vw, 128px);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 10px 18px;
  font: 600 .85rem var(--font-body); text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Ultra-wide screens: let the photography breathe instead of pinning a
   narrow column between huge margins (audited live on a 3440px display). */
@media (min-width: 1600px) {
  :root { --container: 1400px; }
}
@media (min-width: 2200px) {
  :root { --container: 1520px; }
}

/* ---------- Type system ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 .78rem/1.4 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin: 0 0 14px;
}
/* drafting datum line — quiet architectural cue */
.eyebrow::before {
  content: ""; flex: 0 0 auto;
  width: 26px; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow--light { color: #d8c5ab; }
.eyebrow--accent { color: #c9a06f; }

.section-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--charcoal);
  margin: 0 0 .55em;
}
.section-intro {
  max-width: 46em;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 2.2em;
}
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  padding: 17px 30px;
  border: 1px solid var(--charcoal);
  transition: background var(--dur-fast) var(--ease-std),
              color var(--dur-fast) var(--ease-std),
              border-color var(--dur-fast) var(--ease-std);
}
.btn .arrow { transition: transform var(--dur-fast) var(--ease-std); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--solid { background: var(--charcoal); color: #fff; }
.btn--solid:hover { background: #000; border-color: #000; }

.btn--solid-light { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn--solid-light:hover { background: var(--stone); border-color: var(--stone); }

.btn--ghost { background: rgba(255,255,255,.55); color: var(--charcoal); backdrop-filter: blur(2px); }
.btn--ghost:hover { background: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--outline { background: transparent; color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-std) var(--ease-std),
              box-shadow var(--dur-std) var(--ease-std),
              border-color var(--dur-std) var(--ease-std);
}
.site-header__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
}
.site-header__logo { width: 150px; height: auto; transition: opacity var(--dur-fast); }
@media (max-width: 899px) { .site-header__logo { width: 118px; } }
.site-header__brand:hover .site-header__logo { opacity: .8; }

/* transparent over hero (charcoal type reads on the pale sky) */
.site-header--hero:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.is-scrolled { box-shadow: 0 1px 18px rgba(36,36,36,.07); }

.site-nav__list {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  list-style: none;
}
.site-nav__list a {
  font: 500 .82rem/1 var(--font-body);
  letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal);
  padding: 8px 2px;
  background-image: linear-gradient(var(--sand), var(--sand));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size var(--dur-std) var(--ease-std);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { background-size: 100% 1px; }
.site-nav__phone a { font-weight: 600; letter-spacing: .06em; }
.site-nav__toggle { display: none; }

@media (max-width: 1023px) {
  .site-nav__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; cursor: pointer;
    font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
    color: var(--charcoal); padding: 10px;
  }
  .site-nav__toggle-box { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
  .site-nav__toggle-box span { height: 2px; background: currentColor; transition: transform var(--dur-std) var(--ease-emph), opacity var(--dur-std); }
  .site-nav.is-open .site-nav__toggle-box span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-nav.is-open .site-nav__toggle-box span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav__list {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--charcoal);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-std) var(--ease-std), visibility 0s linear var(--dur-std);
  }
  .site-nav.is-open .site-nav__list { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 90; }
  .site-nav.is-open .site-nav__toggle { position: relative; z-index: 95; color: #fff; }
  .site-nav__list a {
    color: #fff; font-size: 1.05rem; letter-spacing: .14em; padding: 12px 6px;
  }
  .site-nav__phone { margin-top: 18px; }
  body.nav-lock { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 94vh, 940px);
  display: flex; align-items: flex-start;
  overflow: hidden;
}
.hero__media, .hero__media picture { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 72%;
}
@media (min-width: 900px) { .hero__media img { object-position: 50% 68%; } }

/* gentle wash keeps type bulletproof over the sky without a heavy scrim */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.42) 38%, rgba(255,255,255,0) 64%),
    linear-gradient(178deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 40%, rgba(255,255,255,0) 62%);
  pointer-events: none;
}
@media (max-width: 899px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.6) 42%, rgba(255,255,255,.3) 66%, rgba(255,255,255,0) 88%);
  }
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: clamp(128px, 20vh, 218px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: .012em;
  color: var(--charcoal);
  margin: 0 0 .35em;
}
.hero__title-line { display: block; }
.hero__sub {
  max-width: 34em;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin-bottom: 1.9em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.6em; }
.hero__trust {
  display: inline-block;
  font: 500 .78rem/1.5 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--charcoal-soft);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(3px);
  padding: 9px 14px;
}
.hero__trust a { color: inherit; text-decoration-color: var(--sand); text-underline-offset: 3px; }

/* hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-settle 6.5s var(--ease-std) both;
  }
  @keyframes hero-settle {
    from { transform: scale(1.045); }
    to   { transform: scale(1); }
  }
  [data-hero-reveal] {
    opacity: 0; transform: translateY(16px);
    animation: rise var(--dur-slow) var(--ease-emph) forwards;
  }
  .hero__title[data-hero-reveal]   { animation-delay: 120ms; }
  .hero__sub[data-hero-reveal]     { animation-delay: 280ms; }
  .hero__actions[data-hero-reveal] { animation-delay: 420ms; }
  .hero__trust[data-hero-reveal]   { animation-delay: 540ms; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--stone { background: var(--stone); }
.section--charcoal { background: var(--charcoal); }
.section--charcoal .section-title { color: #fff; }

/* ---------- Reveal-on-scroll system ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition: opacity var(--dur-slow) var(--ease-emph),
                transform var(--dur-slow) var(--ease-emph);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
  [data-reveal-delay="1"] { transition-delay: 90ms; }
  [data-reveal-delay="2"] { transition-delay: 180ms; }
  [data-reveal-delay="3"] { transition-delay: 270ms; }
  [data-reveal-delay="4"] { transition-delay: 360ms; }
}

/* ---------- Services (Three Ways — editorial rows) ---------- */
.svc-rows { margin-top: clamp(28px, 4vw, 54px); display: grid; gap: clamp(40px, 6vw, 74px); }
.svc-row {
  display: grid; gap: clamp(20px, 3vw, 48px);
  text-decoration: none; color: inherit;
  align-items: center;
}
.svc-row__media picture, .journey__media picture, .work-card__media picture { height: 100%; }
.svc-row__media { overflow: hidden; aspect-ratio: 16 / 10; }
.svc-row__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-std);
}
.svc-row:hover .svc-row__media img { transform: scale(1.04); }
.svc-row__media--low img { object-position: 50% 72%; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1.45fr 1fr; }
  .svc-row--flip { grid-template-columns: 1fr 1.45fr; }
  .svc-row--flip .svc-row__media { order: 2; }
  .svc-row--flip .svc-row__body { order: 1; }
}
.svc-row__body { border-top: 1px solid var(--charcoal); padding-top: 22px; position: relative; }
.svc-row__num {
  display: block;
  font: 200 2.4rem/1 var(--font-display);
  color: var(--sand);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.svc-row__body h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: .02em; color: var(--charcoal);
}
.svc-row__body p { font-size: 1rem; color: var(--ink); max-width: 30em; }
.svc-row__link {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase;
  color: var(--sand-deep);
}
.svc-row__link .arrow { transition: transform var(--dur-fast) var(--ease-std); }
.svc-row:hover .svc-row__link .arrow { transform: translateX(4px); }

/* ---------- Journey ---------- */
.journey__track {
  list-style: none;
  counter-reset: step;
  display: grid; gap: 22px;
  margin-top: clamp(24px, 3.5vw, 44px);
  position: relative;
}
@media (min-width: 900px) {
  .journey__track { grid-template-columns: repeat(5, 1fr); }
  .journey__track::before {
    content: ""; position: absolute; top: -18px; left: 2%; right: 2%;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 899px) {
  .journey__track {
    grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .journey__step { scroll-snap-align: start; }
}
.journey__media { overflow: hidden; aspect-ratio: 4 / 3; }
.journey__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-std); }
.journey__step:hover .journey__media img { transform: scale(1.04); }
.journey__num {
  display: block;
  font: 600 .72rem/1 var(--font-body); letter-spacing: .22em;
  color: var(--sand-deep);
  margin: 14px 0 4px;
}
.journey__step h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.1rem; letter-spacing: .04em; color: var(--charcoal);
  margin: 0;
}
.journey__note {
  margin-top: 26px;
  font-size: .9rem; color: #6d6a64;
}

/* ---------- Prescott band ---------- */
.prescott { position: relative; overflow: hidden; }
.prescott__media, .prescott__media picture { position: absolute; inset: 0; }
.prescott__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.prescott__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24,23,22,.82) 0%, rgba(24,23,22,.62) 52%, rgba(24,23,22,.38) 100%);
}
.prescott__content {
  position: relative; z-index: 2;
  padding-block: clamp(84px, 12vw, 168px);
  color: #eceae6;
}
.prescott__content .section-title { color: #fff; max-width: 15em; }
.prescott__content p { max-width: 44em; font-size: 1.05rem; line-height: 1.7; }
.prescott__content .btn { margin-top: 10px; }
.prescott__caption {
  position: absolute; right: var(--gutter); bottom: 18px;
  font: 500 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* ---------- Before / After ---------- */
.transform__grid {
  display: grid; gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
@media (min-width: 900px) { .transform__grid { grid-template-columns: 1fr 1.05fr; } }
.transform__copy p { max-width: 34em; }
.transform__copy .btn { margin-top: 6px; }

.ba { max-width: 560px; }
.ba__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  touch-action: none;
  --pos: 50%;
}
.ba__img, .ba__img picture { position: absolute; inset: 0; }
.ba__img img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__tag {
  position: absolute; top: 14px;
  font: 600 .68rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 12px;
  background: rgba(24,23,22,.72); color: #fff;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,.4);
}
.ba__handle-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; letter-spacing: .05em;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  margin: 0;
}
.ba__range:focus-visible ~ .ba__handle .ba__handle-grip,
.ba__frame:has(.ba__range:focus-visible) .ba__handle-grip {
  outline: 3px solid var(--sand); outline-offset: 2px;
}
.ba__caption {
  margin-top: 14px;
  font: 500 .78rem/1.5 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: #6d6a64;
}

/* ---------- Why BDJ ---------- */
.why__grid { display: grid; gap: clamp(30px, 5vw, 80px); }
@media (min-width: 900px) { .why__grid { grid-template-columns: 1fr 1.35fr; } }
.why__lead .section-title { max-width: 12em; }
.why__list {
  list-style: none;
  display: grid; gap: 34px 44px;
}
@media (min-width: 640px) { .why__list { grid-template-columns: 1fr 1fr; } }
.why__list li { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.why__list h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.2rem; letter-spacing: .03em; color: #fff;
}
.why__list p { color: #c9c6c0; font-size: .97rem; margin: 0; }
.why__list a { color: #e8ddcd; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.why__list a:hover { color: #fff; }

/* ---------- Recent Work (featured + secondary) ---------- */
.work__grid {
  display: grid; gap: 30px;
  margin-top: clamp(20px, 3vw, 40px);
}
@media (min-width: 900px) {
  .work__grid { grid-template-columns: 1.8fr 1fr; align-items: start; }
  .work-card--featured .work-card__media { aspect-ratio: 16 / 10; }
  .work-card--featured h3 { font-size: 1.7rem; }
  .work__secondary { display: grid; gap: 26px; }
  .work-card--compact .work-card__media { aspect-ratio: 16 / 9; }
  .work-card--compact h3 { font-size: 1.08rem; }
}
.work-card__media { position: relative; }
.work-card__label--overlay {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  margin: 0;
  background: rgba(24,23,22,.78); color: #fff;
  padding: 9px 13px;
  font: 600 .68rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.work-card { text-decoration: none; color: inherit; display: block; }
.work-card__media { overflow: hidden; aspect-ratio: 4 / 3; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-std); }
.work-card:hover .work-card__media img { transform: scale(1.045); }
.work-card__label {
  font: 600 .72rem/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-deep);
  margin: 18px 0 6px;
}
.work-card h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.3rem; line-height: 1.3; letter-spacing: .015em; color: var(--charcoal);
  margin-bottom: .35em;
}
.work-card > p:last-child { font-size: .95rem; color: var(--ink); margin: 0; }
.work__cta { margin-top: clamp(30px, 4vw, 50px); }

/* ---------- Testimonials ---------- */
.quote blockquote { margin: 0; }
.quote--featured {
  margin: clamp(18px, 3vw, 34px) 0 clamp(30px, 4vw, 50px);
  max-width: 52em;
}
.quote--featured blockquote p {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55; color: var(--charcoal);
}
.quote figcaption {
  font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand-deep);
  margin-top: 14px;
}
.quotes__pair { display: grid; gap: clamp(26px, 4vw, 60px); }
@media (min-width: 900px) { .quotes__pair { grid-template-columns: 1fr 1fr; } }
.quotes__pair .quote { border-top: 1px solid var(--line); padding-top: 24px; margin: 0; }
.quotes__pair blockquote p { font-size: 1rem; color: var(--ink); }

/* ---------- Owners ---------- */
.owners__grid { display: grid; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .owners__grid { grid-template-columns: 1fr 1.1fr; } }
.owners__media { max-width: 520px; position: relative; }
.owners__media::before {
  content: ""; position: absolute;
  top: 26px; left: -26px; right: 26px; bottom: -26px;
  background: var(--stone);
  z-index: -1;
}
@media (max-width: 899px) {
  .owners__media { margin-left: 26px; }
  .owners__media::before { left: -18px; right: 18px; top: 18px; bottom: -18px; }
}
.owners__pull {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5;
  color: var(--charcoal);
  border-left: 2px solid var(--sand);
  padding-left: 20px;
  max-width: 30em;
  margin-bottom: 1.2em;
}
.owners__copy p { max-width: 36em; }
.owners__copy .btn { margin-top: 8px; }
.quote__project {
  display: block;
  font: 500 .72rem/1.6 var(--font-body); letter-spacing: .1em;
  color: #6b665f; text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  position: relative; overflow: hidden;
  border-top: 1px solid transparent;
}
/* blueprint linework anchored right, masked into the charcoal */
.cta-band::before {
  content: ""; position: absolute;
  top: 0; bottom: 0; right: -8%; width: 72%;
  background: url('/assets/img/brand-blueprint-1600.webp') right center / cover no-repeat;
  opacity: .12;
  filter: invert(1) grayscale(1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.85) 45%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.85) 45%, #000 100%);
  pointer-events: none;
}
/* build-line: thin sand rule that draws across when the band reveals */
.cta-band::after {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--sand);
}
@media (prefers-reduced-motion: no-preference) {
  .cta-band.is-drawn::after { width: 100%; transition: width 1100ms var(--ease-emph) 150ms; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::after { width: 100%; }
}
.cta-band__inner {
  position: relative;
  padding-block: clamp(76px, 10vw, 130px);
  color: #d9d6d0;
  max-width: 900px;
}
.cta-band .section-title { color: #fff; }
.cta-band__inner > p { max-width: 46em; }
.cta-band__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  margin-top: 28px;
}
.cta-band__or { font-size: 1rem; }
.cta-band__or a { color: #fff; font-weight: 600; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.cta-band__note {
  margin-top: 26px;
  font: 500 .78rem/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: #97938c;
}

/* ---------- Footer ---------- */
.site-footer { background: #1c1b1a; color: #b9b5ae; font-size: .95rem; }
.site-footer a { color: #ddd9d2; text-decoration-color: rgba(166,124,82,.7); text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; gap: 40px;
  padding-block: clamp(50px, 7vw, 84px);
}
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__brand img { width: 150px; margin-bottom: 18px; }
.site-footer__trust { font-size: .88rem; line-height: 1.7; }
.site-footer__heading {
  font: 600 .74rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: #8b8780; margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; display: grid; gap: 9px; }
.site-footer__muted { color: #8b8780; font-size: .85rem; }
.site-footer__legal { border-top: 1px solid #33312e; }
.site-footer__legal-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 20px;
  font-size: .84rem; color: #8b8780;
}
.site-footer__legal p { margin: 0; }

/* ==========================================================================
   Interior pages (Phase D)
   ========================================================================== */

/* ---------- Page hero (split + plain variants) ---------- */
.page-hero { padding-top: clamp(120px, 16vh, 170px); padding-bottom: clamp(30px, 4vw, 60px); }
.page-hero--plain { padding-bottom: 0; }
.page-hero__grid {
  display: grid; gap: clamp(28px, 4vw, 64px); align-items: center;
}
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1fr 1.05fr; } }
@media (min-width: 900px) { .page-hero__grid--portrait { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero__media { overflow: hidden; }
.page-hero__media img { width: 100%; height: auto; }
.page-hero__media--portrait { max-width: 480px; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1;
  letter-spacing: .012em; color: var(--charcoal);
  margin: 0 0 .4em;
}
.page-hero__lede { max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.65; color: var(--charcoal-soft); margin-bottom: 1.6em; }
.page-hero__lede--wide { max-width: 46em; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4em; }
.page-hero__trust { font: 500 .78rem/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal-soft); }
.page-hero__trust a { color: inherit; text-decoration-color: var(--sand); text-underline-offset: 3px; }

/* ---------- Statement bands ---------- */
.statement__text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.5;
  color: var(--charcoal); max-width: 34em; margin: 0;
}
.statement__sub { max-width: 40em; margin-top: 1.2em; }
.statement--dark .statement__text { color: #fff; }

/* ---------- Process (numbered steps) ---------- */
.process__list {
  list-style: none; counter-reset: none;
  display: grid; gap: clamp(28px, 4vw, 48px) clamp(30px, 4vw, 60px);
  margin-top: clamp(26px, 3.5vw, 46px);
}
@media (min-width: 800px) { .process__list { grid-template-columns: 1fr 1fr; } }
.process__step { border-top: 1px solid var(--line); padding-top: 20px; position: relative; }
.process__num {
  display: block;
  font: 200 2.2rem/1 var(--font-display); color: var(--sand);
  margin-bottom: 8px;
}
.process__step h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; color: var(--charcoal); }
.process__step p { font-size: .98rem; margin: 0; }

/* ---------- Image band ---------- */
.imgband { position: relative; overflow: hidden; }
.imgband__media, .imgband__media picture { position: absolute; inset: 0; }
.imgband__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.imgband__overlay { position: absolute; inset: 0; background: rgba(24,23,22,.55); }
.imgband__content {
  position: relative; z-index: 2; color: #fff;
  padding-block: clamp(60px, 8vw, 110px);
}
.imgband__content p { max-width: 38em; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5; margin: 0; }
.imgband--tall .imgband__content { padding-block: clamp(90px, 12vw, 160px); }
.imgband--tall .imgband__content .section-title { color: #fff; }
.imgband--tall .imgband__content p { font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; max-width: 44em; }

/* ---------- Cost factors lede ---------- */
.costfactors__lede { color: #c9c6c0; max-width: 30em; }

/* ---------- Featured project split ---------- */
.featured__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .featured__grid { grid-template-columns: 1.15fr 1fr; }
  .featured__grid--flip .featured__media { order: 2; }
  .featured__grid--flip .featured__copy { order: 1; }
}
.featured__media { overflow: hidden; }
.featured__media--portrait { max-width: 480px; }
.featured__copy p { max-width: 34em; }
.gallery-strip {
  display: grid; gap: 20px; margin-top: clamp(26px, 3.5vw, 46px);
}
@media (min-width: 700px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery-strip__item { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-std); }
.gallery-strip__item picture { height: 100%; }
.gallery-strip__item:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: clamp(26px, 4vw, 70px); align-items: start; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 1fr 1.3fr; } }
.faq__grid > div > p { max-width: 34em; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px;
  font: 500 1.02rem/1.45 var(--font-body); color: var(--charcoal);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: 0 0 auto;
  font: 300 1.5rem/1 var(--font-display); color: var(--sand-deep);
  transition: transform var(--dur-fast) var(--ease-std);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 2px 20px; margin: 0; max-width: 40em; font-size: .98rem; }

/* ---------- Services list (remodel) ---------- */
.services-list__grid {
  list-style: none;
  display: grid; gap: 26px 40px;
  margin-top: clamp(24px, 3.5vw, 44px);
}
@media (min-width: 640px) { .services-list__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services-list__grid { grid-template-columns: 1fr 1fr 1fr; } }
.services-list__grid li { border-top: 1px solid var(--line); padding-top: 16px; }
.services-list__grid h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.15rem; color: var(--charcoal); margin-bottom: .3em; }
.services-list__grid p { font-size: .95rem; margin: 0; color: var(--ink); }
.services-list__note { margin-top: 26px; font-size: .9rem; color: #6d6a64; }

/* ---------- Transforms grid (two sliders) ---------- */
.transforms__grid { display: grid; gap: clamp(28px, 4vw, 60px); margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .transforms__grid { grid-template-columns: 1fr 1fr; } }
.transforms__grid .ba { max-width: none; }

/* ---------- Scoped support list ---------- */
.scoped__list {
  list-style: none;
  display: grid; gap: 12px;
}
.scoped__list li {
  border-top: 1px solid var(--line);
  padding: 12px 2px 0;
  font-size: 1rem; color: var(--charcoal);
}
.svc-row__tag { font: 600 .74rem/1.5 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sand-deep); margin-top: 4px; }

/* ---------- Projects page ---------- */
.project__head { max-width: 780px; }
.project__grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(22px, 3vw, 38px);
}
@media (min-width: 900px) { .project__grid { grid-template-columns: repeat(4, 1fr); } }
.project__grid--four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .project__grid--four { grid-template-columns: repeat(4, 1fr); } }
.project__grid--two { grid-template-columns: 1fr; }
@media (min-width: 900px) { .project__grid--two { grid-template-columns: 1fr 1fr; } }
.project__shot {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; aspect-ratio: 4 / 3; width: 100%;
}
.project__grid--two .project__shot { aspect-ratio: 3 / 2; }
.project__shot picture { height: 100%; }
.project__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-std); }
.project__shot:hover img, .project__shot:focus-visible img { transform: scale(1.045); }
.project__shot:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.project__sequence { margin-top: clamp(28px, 4vw, 48px); }
.project__sequence-label { font: 600 .74rem/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sand-deep); margin-bottom: 14px; }
.project__sequence-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 700px) { .project__sequence-strip { grid-template-columns: repeat(3, 1fr); } }
.project__more { margin-top: 20px; font-size: .9rem; color: #6d6a64; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,19,18,.94);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; max-width: min(1400px, 88vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__stage img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
.lightbox__stage figcaption { color: #c9c6c0; font: 500 .8rem/1.5 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; z-index: 2;
  background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 2.4rem/1 var(--font-display);
  padding: 14px 18px;
  opacity: .8; transition: opacity var(--dur-fast);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: 1; }
.lightbox__close { top: 14px; right: 18px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__close:focus-visible, .lightbox__prev:focus-visible, .lightbox__next:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* ---------- How we work (About) ---------- */
.howwework__list {
  list-style: none;
  display: grid; gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(24px, 3vw, 44px);
}
@media (min-width: 800px) { .howwework__list { grid-template-columns: repeat(3, 1fr); } }
.howwework__list li { border-top: 1px solid var(--line); padding-top: 18px; }
.howwework__list p {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45;
  color: var(--charcoal); margin: 0;
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: clamp(30px, 4vw, 70px); align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.25fr; } }
.contact__card {
  background: var(--charcoal); color: #d9d6d0;
  padding: clamp(26px, 3vw, 40px);
}
.contact__phone-label { font: 600 .74rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #c9a06f; margin: 0 0 6px; }
.contact__phone {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: #fff; text-decoration: none;
}
.contact__phone:hover { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 5px; }
.contact__details { list-style: none; margin-top: 24px; display: grid; gap: 16px; font-size: .96rem; }
.contact__details span { display: block; font: 600 .7rem/1.6 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #97938c; }
.contact__details a { color: #ddd9d2; text-decoration-color: rgba(166,124,82,.7); text-underline-offset: 3px; }
.contact__area { margin-top: 30px; }
.contact__h { font-family: var(--font-display); font-weight: 300; font-size: 1.35rem; color: var(--charcoal); margin-bottom: .4em; }
.contact__area p { font-size: .97rem; max-width: 38em; }
.contact__area h2 + p { margin-bottom: 1.6em; }

.contact__form { background: var(--stone); padding: clamp(26px, 3.5vw, 44px); }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font: 600 .78rem/1.5 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 7px; }
.field__optional { text-transform: none; letter-spacing: 0; color: #8b867e; font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  font: 400 1rem/1.5 var(--font-body); color: var(--charcoal);
  background: #fff; border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: 0; appearance: none; -webkit-appearance: none;
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23242424' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--sand); outline-offset: 1px; border-color: var(--sand);
}
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--charcoal); flex: 0 0 auto; }
.field--check label { text-transform: none; letter-spacing: 0; font: 400 .88rem/1.55 var(--font-body); color: var(--ink); margin: 0; }
.contact__form .btn { margin-top: 6px; }
.contact__preview-note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--sand-wash); border-left: 2px solid var(--sand);
  font-size: .95rem; color: var(--charcoal);
}
.contact__preview-note a { text-decoration-color: var(--sand); text-underline-offset: 3px; }
.contact__qualify { margin-top: 18px; font-size: .85rem; color: #6d6a64; }

/* ---------- Legal pages ---------- */
.legal__body { max-width: 760px; }
.legal__body h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.4rem; color: var(--charcoal);
  margin-top: 1.8em;
}
.legal__body ul { margin: 0 0 1em 1.2em; display: grid; gap: 6px; }
.legal__body a { text-decoration-color: var(--sand); text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 120px; }
.error-page .eyebrow { justify-self: center; }
.error-page__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Reduced motion: kill everything decorative ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Client Stories (reviews) ---------- */
.story__body { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 980px) { .story__body { grid-template-columns: 1.6fr 1fr; } }
.story__lead { margin: 0; max-width: 46em; }
.story__lead blockquote p {
  font-size: 1.02rem; line-height: 1.75; color: var(--ink);
  margin: 0 0 1.1em;
}
.story__lead blockquote .story__pull {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.5;
  color: var(--charcoal); margin-bottom: 1em;
}
.story__aside {
  border-top: 1px solid var(--line); padding-top: 22px;
  position: relative;
}
.story__aside::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 26px; height: 3px; background: var(--accent);
}
.story__aside-note { color: var(--muted); font-size: .96rem; line-height: 1.7; margin: 0 0 18px; max-width: 26em; }
.story__inline { margin: 0 0 26px; }
.story__inline blockquote p { font-size: 1.05rem; line-height: 1.7; color: var(--ink); margin: 0 0 12px; }
.story--dark .section-title { color: #fff; }
.story__dark-grid { display: grid; gap: clamp(26px, 4vw, 60px); margin-top: clamp(22px, 3vw, 38px); }
@media (min-width: 900px) { .story__dark-grid { grid-template-columns: 1fr 1fr; } }
.quote--light { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; margin: 0; }
.quote--light blockquote p { color: #e8e5e0; font-size: 1rem; line-height: 1.7; margin: 0 0 14px; }
.quote--light figcaption { color: #fff; }
.quote__project--light { color: #d8c5ab; }
.quotes__more { margin-top: clamp(28px, 4vw, 44px); }
.howwework__proof, .featured__proof {
  margin-top: clamp(20px, 3vw, 32px); color: var(--muted); font-size: .96rem;
}
.howwework__proof a, .featured__proof a { color: var(--accent-ink, #8a6a48); text-decoration: underline; text-underline-offset: 3px; }
.howwework__proof a:hover, .featured__proof a:hover { color: var(--charcoal); }

/* ---------- Form status + honeypot ---------- */
.field--hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact__form-status {
  margin-top: 14px; font-size: .95rem; line-height: 1.6; color: var(--muted);
}
.contact__form-status.is-error { color: #8a2f22; }
.cf-turnstile { margin-top: 6px; }
