/* ==========================================================================
   D&L Excellence Services — Design system + components
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ivory: #F4EFE7;
  --ivory-deep: #E8E0D4;
  --white: #FBF8F3;
  --charcoal: #1A1714;
  --charcoal-soft: #2A2622;
  --text-2: #5C564E;
  --bronze: #C4A06A;
  --bronze-deep: #A6773E;
  --terracotta: #C45C3E;
  --terracotta-soft: #B85C38;
  --oak: #C4A06A;
  --cream: #F7F1E8;
  --beige: #EDE6DB;
  --near-black: #1A1714;
  --brand-red: #C45C3E;
  --line: #E0D8CC;
  --line-soft: #EDE7DC;

  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--charcoal);
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  left: 0;
  max-width: 1px;
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}
.wrap--wide { max-width: 1600px; }

.section { padding: clamp(56px, 9vw, 116px) 0; }
.section--white { background: var(--white); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- Type helpers ------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 18px;
}

.h-display { font-size: clamp(32px, 5vw, 54px); }
.h-section { font-size: clamp(28px, 4.2vw, 44px); }
.h-sub     { font-size: clamp(20px, 2.4vw, 26px); }

.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-2);
  max-width: 58ch;
}

.muted { color: var(--text-2); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 16px; }
.section-head .h-section + p { margin-top: 14px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--bronze-deep); }

.btn--bronze { background: var(--bronze-deep); color: var(--white); }
.btn--bronze:hover, .btn--bronze:focus-visible { background: var(--charcoal); }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--charcoal);
  color: var(--white);
}

/* On photography — always keeps a solid fill so text stays readable. */
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover, .btn--light:focus-visible { background: var(--ivory-deep); }

.btn--sm { padding: 11px 20px; font-size: 11.5px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 4px;
  transition: color .25s ease, gap .25s ease;
}
.link-arrow:hover { color: var(--bronze-deep); gap: 14px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; line-height: 1; }
.brand__mark {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 5px;
}

.footer-logo { width: 180px; height: auto; margin-bottom: 4px; }

.nav { display: none; }
.nav ul { display: flex; gap: 30px; align-items: center; }
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 0;
  position: relative;
  color: var(--charcoal);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current='page'] { color: var(--bronze-deep); }
.nav a[aria-current='page']::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

/* Compact quote button shown only on small screens, sized to keep the
   header at its 68px height. */
.header-cta-sm {
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.hamburger {
  width: 42px; height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--charcoal);
  transition: transform .3s ease, opacity .2s ease;
}
.hamburger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Small screens: keep the wordmark on one line beside the mark. The mark
   already carries "D&L", so the text reads as the second half of the lockup. */
@media (max-width: 560px) {
  .brand { gap: 8px; }
  .brand__mark { height: 36px; }
  .brand__name {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .brand__sub { display: none; }
}
@media (max-width: 340px) {
  .brand__name { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gut) 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 20px; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(76vh, 620px);
  display: flex;
  align-items: flex-end;
  background: var(--charcoal);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Keeps the island + cabinetry in frame when the crop tightens on mobile. */
  object-position: 62% center;
}
/* Two overlapping scrims: a vertical one to seat the copy, plus a horizontal
   one so text stays readable even where the photo is brightly lit. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(12, 11, 10, 0.78) 0%,
      rgba(12, 11, 10, 0.52) 38%,
      rgba(12, 11, 10, 0.10) 72%,
      rgba(12, 11, 10, 0) 100%
    ),
    linear-gradient(
      to top,
      rgba(12, 11, 10, 0.80) 0%,
      rgba(12, 11, 10, 0.44) 38%,
      rgba(12, 11, 10, 0.10) 72%,
      rgba(12, 11, 10, 0) 100%
    );
}
.hero__inner {
  position: relative;
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero .eyebrow { color: #EBD9B8; text-shadow: 0 1px 10px rgba(12, 11, 10, 0.5); }
.hero h1 { color: #FFFFFF; max-width: 19ch; text-wrap: balance; }
.hero__copy {
  margin-top: 20px;
  text-shadow: 0 1px 14px rgba(12, 11, 10, 0.45);
  max-width: 52ch;
  color: #EDE9E2;
  font-size: clamp(15px, 1.5vw, 17px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --- Trust strip -------------------------------------------------------- */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.trust li {
  padding: 20px 16px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
}
.trust li:nth-child(even) { border-left: 1px solid var(--line-soft); }
.trust li:nth-last-child(-n+2) { border-bottom: 0; }

/* --- Intro -------------------------------------------------------------- */
.intro-grid {
  display: grid;
  gap: 28px;
}
.intro-grid h2 { max-width: 16ch; }

/* --- Carousel ----------------------------------------------------------- */
.gallery-block + .gallery-block { margin-top: clamp(56px, 8vw, 96px); }

.carousel { position: relative; }

.carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.carousel__tag {
  position: absolute;
  left: 14px; top: 14px;
  background: rgba(24, 23, 21, 0.82);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius);
}

.carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.82), transparent);
  color: #FFFFFF;
}
.carousel__caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}
.carousel__caption span {
  font-size: 12px;
  color: #D9D3C8;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1;
  transition: background-color .2s ease;
}
.carousel__nav:hover { background: #FFFFFF; }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel__dots button {
  width: 28px; height: 3px;
  padding: 0;
  border: 0;
  background: var(--line);
  border-radius: 2px;
  transition: background-color .25s ease;
}
.carousel__dots button[aria-selected='true'] { background: var(--bronze-deep); }

.gallery-meta { margin-top: 26px; max-width: 58ch; }
.gallery-meta h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.gallery-meta p { margin-top: 12px; color: var(--text-2); }
.gallery-meta .link-arrow { margin-top: 20px; }

/* --- Before & after ----------------------------------------------------- */
.ba-grid {
  display: grid;
  gap: 26px;
}
.ba-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba-card img { width: 100%; height: auto; cursor: zoom-in; }
.ba-card__body { padding: 20px 22px 24px; }
.ba-card__body h3 { font-size: 20px; }
.ba-card__body p { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.ba-card__label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 10px;
}

/* --- Services ----------------------------------------------------------- */
.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--white);
  padding: 30px 26px 34px;
}
.svc h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.svc p { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }

.svc-secondary {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.svc-secondary span {
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
}

/* --- Why / reasons ------------------------------------------------------ */
.reasons { display: grid; gap: 0; }
.reason {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.reason p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; max-width: 52ch; }

/* --- Split (about / trade) ---------------------------------------------- */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.split__body p + p { margin-top: 16px; }
.split__body .btn { margin-top: 28px; }

/* --- Trade points ------------------------------------------------------- */
.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 28px;
}
.points li {
  font-size: 14px;
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--charcoal);
}
.points li::before {
  content: '';
  position: absolute;
  left: 0; top: 21px;
  width: 9px; height: 1.5px;
  background: var(--bronze);
}

.note {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--bronze);
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: var(--radius);
}

/* --- Portfolio grid ----------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.filters button {
  padding: 10px 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  transition: all .22s ease;
}
.filters button:hover { border-color: var(--charcoal); color: var(--charcoal); }
.filters button[aria-pressed='true'] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.work-grid {
  display: grid;
  gap: 24px;
}

/* Masonry variant (portfolio page): CSS columns so mixed portrait/landscape
   photos stack without leaving dead space between rows. */
.work-grid--masonry {
  display: block;
  columns: 1;
  column-gap: 24px;
}
.work-grid--masonry .work-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 30px;
}
.work-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.work-card__media {
  overflow: hidden;
  background: var(--ivory-deep);
  border-radius: var(--radius);
}
.work-card__media img {
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img { transform: scale(1.035); }

.work-card__meta { display: block; padding-top: 14px; }
.work-card__meta h3 { font-size: 19px; line-height: 1.25; }
.work-card__count {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-top: 7px;
}
.work-card.is-hidden { display: none; }

.pill-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 10, 9, 0.95);
  display: none;
  flex-direction: column;
}
.lightbox.is-open { display: flex; }
body.no-scroll { overflow: hidden; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: #EFEBE2;
  flex-shrink: 0;
}
.lightbox__title {
  font-family: var(--serif);
  font-size: 17px;
  color: #FFFFFF;
}
.lightbox__count { font-size: 12.5px; color: #BDB6A9; }

.lightbox__close {
  width: 40px; height: 40px;
  display: grid;
  place-content: center;
  background: transparent;
  border: 1px solid rgba(239, 235, 226, 0.35);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,0.12); }

.lightbox__stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 12px 12px;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  background: rgba(255,255,255,0.12);
  border: 0;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 20px;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.24); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

.lightbox__caption {
  padding: 12px 20px 22px;
  color: #C9C2B5;
  font-size: 13.5px;
  text-align: center;
  max-width: 70ch;
  margin: 0 auto;
  flex-shrink: 0;
}

/* --- Forms -------------------------------------------------------------- */
.quote-layout { display: grid; gap: clamp(34px, 5vw, 60px); }

.form-grid { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(169, 139, 96, 0.16);
}
.field textarea { resize: vertical; min-height: 118px; }
.field--full { grid-column: 1 / -1; }

.file-drop {
  border: 1px dashed var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .2s ease;
}
.file-drop:hover { border-color: var(--bronze); }
.file-names { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.form-note { font-size: 12.5px; color: var(--text-2); }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #EFF3EC; border: 1px solid #C9D6BF; color: #34452B; }
.form-status--info { background: var(--white); border: 1px solid var(--line); color: var(--charcoal); }

/* --- Contact rail ------------------------------------------------------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.contact-row + .contact-row { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.contact-row dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.contact-row dd { margin: 0; font-size: 16px; }
.contact-row dd a:hover { color: var(--bronze-deep); }
.contact-row .big {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.01em;
}
.contact-actions { display: grid; gap: 10px; margin-top: 26px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  padding: clamp(46px, 6vw, 72px) 0 0;
}
.footer-grid {
  display: grid;
  gap: 34px;
  padding-bottom: 44px;
}
.footer-brand .brand__name { font-size: 18px; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--text-2); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 11px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: var(--charcoal); }
.footer-col a:hover { color: var(--bronze-deep); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-2);
}

/* --- Mobile sticky CTA -------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(247, 245, 240, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.mobile-cta .btn { padding: 12px 14px; font-size: 11.5px; }
body.has-mobile-cta { padding-bottom: 68px; }

/* --- Page hero (interior pages) ----------------------------------------- */
.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 6vw, 84px) 0;
}
.page-head h1 { max-width: 16ch; }
.page-head p { margin-top: 18px; }

/* --- Reveal animation --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- Breakpoints -------------------------------------------------------- */
@media (min-width: 600px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { border-bottom: 0; border-left: 1px solid var(--line-soft); }
  .trust li:first-child { border-left: 0; }
  .trust li:nth-child(even) { border-left: 1px solid var(--line-soft); }

  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid--masonry { columns: 2; }
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__viewport { aspect-ratio: 16 / 10; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }

  .nav { display: block; }
  .brand__mark { height: 50px; }
  .brand__name { font-size: 19px; }
  .header-cta { display: inline-flex; }
  .header-cta-sm { display: none; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }

  .hero { min-height: min(84vh, 760px); }
  .hero__media img { object-position: center; }
  .hero__inner { padding-top: 180px; }

  .intro-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }

  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .reason:nth-child(2) { border-top: 1px solid var(--line); }

  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .work-grid--masonry { columns: 3; column-gap: 28px; }
  .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .quote-layout { grid-template-columns: 1.25fr 0.75fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }

  .carousel__viewport { aspect-ratio: 16 / 9; }
  .lightbox__bar { padding: 18px 28px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}

@media (min-width: 1200px) {
  .carousel__nav--prev { left: 20px; }
  .carousel__nav--next { right: 20px; }
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .mobile-cta, .lightbox, .carousel__nav { display: none !important; }
  body { background: #fff; }
}


/* --- Preview typography accents ---------------------------------------- */
h1 em, h2 em, .build-title em, .yours__title em, .closer h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

/* Overlay header on the homepage hero */
.site-header--overlay {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header--overlay.is-solid,
.site-header--overlay:focus-within,
.site-header--overlay:has(.mobile-nav.is-open) {
  background: rgba(244, 239, 231, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.page-home { padding-top: 0; }

/* --- Scroll-to-build story --------------------------------------------- */
.build-story {
  position: relative;
  height: 400vh;
  background: var(--beige);
}
.build-story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--beige);
}
.build-story__media {
  position: absolute;
  inset: 0;
}
.build-story__media canvas,
.build-story__poster,
.yours__media canvas,
.yours__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
#kitchen-canvas { background: var(--beige); }

.build-story__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(26, 23, 20, 0.42) 0%, rgba(26, 23, 20, 0.10) 38%, rgba(26, 23, 20, 0) 62%),
    linear-gradient(to right, rgba(244, 239, 231, 0.55) 0%, rgba(244, 239, 231, 0.12) 36%, rgba(244, 239, 231, 0) 58%);
}
@media (min-width: 900px) {
  .build-story__scrim {
    background:
      linear-gradient(to right, rgba(244, 239, 231, 0.72) 0%, rgba(244, 239, 231, 0.28) 28%, rgba(244, 239, 231, 0.04) 52%, transparent 70%),
      linear-gradient(to top, rgba(26, 23, 20, 0.18) 0%, transparent 28%);
  }
}

.build-story__ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 12px) var(--gut) 28px;
  pointer-events: none;
  color: var(--charcoal);
}
.build-story__ui > * { pointer-events: none; }
.build-story__ui .btn,
.build-story__ui a,
.build-story__ui button { pointer-events: auto; }

.build-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 14px;
}
.build-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 12ch;
  color: var(--charcoal);
  text-wrap: balance;
}
.build-title span { display: block; }
.build-title em {
  display: block;
  font-style: italic;
  color: var(--terracotta);
}
.build-copy {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--charcoal-soft);
}
.build-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  pointer-events: auto;
}
.build-actions .build-phone {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  border-bottom: 1px solid var(--oak);
  padding-bottom: 2px;
}

.build-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  width: min(100%, 520px);
  pointer-events: none;
}
.build-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(26, 23, 20, 0.22);
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.86);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.build-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  background: transparent;
}
.build-track {
  height: 2px;
  background: rgba(26, 23, 20, 0.16);
  overflow: hidden;
  border-radius: 1px;
}
.build-track > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.build-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--charcoal);
}
.build-count [data-count] { margin-right: 2px; }

.design-label {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  right: var(--gut);
  z-index: 3;
  margin: 0;
  padding: 6px 10px;
  background: rgba(247, 241, 232, 0.9);
  border: 1px solid rgba(26, 23, 20, 0.14);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  pointer-events: none;
}

.build-stage-nav {
  display: none;
  gap: 8px;
  margin-top: 18px;
  pointer-events: auto;
}
.build-story.is-reduced .build-stage-nav,
.build-story.is-fallback .build-stage-nav { display: flex; }
.build-stage-nav button {
  min-width: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.build-stage-nav button.is-active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

.build-story.is-reduced,
.build-story.is-fallback:not(.is-live) {
  height: auto;
}
.build-story.is-reduced .build-story__pin,
.build-story.is-fallback:not(.is-live) .build-story__pin {
  position: relative;
  height: 100vh;
  height: 100dvh;
}

/* --- Make it yours ----------------------------------------------------- */
.yours {
  background: var(--cream);
  padding: clamp(48px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}
.yours__grid {
  display: grid;
  gap: 28px;
}
.yours__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 10ch;
}
.yours__title em { display: inline; }
.yours__intro {
  margin-top: 16px;
  max-width: 42ch;
  color: var(--text-2);
  font-size: clamp(15px, 1.5vw, 18px);
}
.yours__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  background: var(--beige);
  overflow: hidden;
  border: 1px solid var(--line);
}
.yours__media { position: absolute; inset: 0; }
.yours .design-label {
  top: 12px;
  right: 12px;
}
.yours__swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}
.swatch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.swatch.is-active {
  border-color: var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}
.swatch:hover, .swatch:focus-visible { border-color: var(--oak); }
.swatch__chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(26,23,20,0.2);
  flex-shrink: 0;
}
.swatch__chip--clay { background: #C47A58; }
.swatch__chip--midnight { background: #1B2433; }
.swatch__chip--walnut { background: #5A3A28; }
.swatch__chip--white { background: #F7F5F0; }
.swatch__text { display: flex; flex-direction: column; gap: 2px; }
.swatch__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.swatch__note {
  font-size: 11px;
  color: var(--text-2);
}
.yours__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-2);
  max-width: 62ch;
}
.yours__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

@media (min-width: 900px) {
  .yours__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: end;
  }
  .yours__swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yours__stage { aspect-ratio: 16 / 10; min-height: 420px; }
  .build-story__ui {
    justify-content: center;
    padding-bottom: 8vh;
  }
}

/* --- Closer ------------------------------------------------------------ */
.closer {
  background: var(--ivory);
  text-align: center;
  padding: clamp(72px, 12vw, 140px) 0;
  border-top: 1px solid var(--line);
}
.closer h2 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}
.closer h2 em { display: block; }
.closer .lede {
  margin: 22px auto 0;
  max-width: 42ch;
}
.closer .build-actions { justify-content: center; }

/* --- Footer disclaimer + privacy -------------------------------------- */
.footer-disclaimer {
  margin: 0;
  padding: 0 0 18px;
  font-size: 12.5px;
  color: var(--text-2);
  max-width: 62ch;
}
.footer-bottom a {
  color: var(--charcoal);
  border-bottom: 1px solid var(--oak);
}
.footer-bottom a:hover { color: var(--terracotta); }

.legal {
  max-width: 760px;
}
.legal h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 36px 0 12px;
}
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 10px 0 0 1.15em; list-style: disc; }
.legal li { margin-top: 6px; }

.page-head { background: var(--cream); }

/* Sticky mobile CTA — typography + Get a Quote emphasis */
.mobile-cta {
  background: rgba(244, 239, 231, 0.97);
}

.build-story.is-live .build-story__poster,
.yours.is-live .yours__poster {
  opacity: 0;
  pointer-events: none;
}
.build-phone {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  border-bottom: 1px solid var(--oak);
  padding-bottom: 2px;
}

@media (max-width: 899px) {
  .build-story__scrim {
    background:
      linear-gradient(to top, rgba(244, 239, 231, 0.96) 0%, rgba(244, 239, 231, 0.88) 26%, rgba(244, 239, 231, 0.28) 46%, rgba(244, 239, 231, 0) 62%);
  }
  .build-story__ui {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .build-title { font-size: clamp(36px, 11vw, 48px); }
  .design-label { top: calc(var(--header-h) + 8px); }
}
.yours__note a {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--oak);
  padding-bottom: 0;
  color: var(--charcoal);
}
.yours__note a:hover { color: var(--terracotta); gap: 0; }
