/* =========================================================
   D. Mills Enterprises — Luxury Builder
   Design tokens & global styles
   ========================================================= */

:root {
  /* Palette — desert luxury */
  --ink: #14110f;
  --ink-soft: #2a2522;
  --paper: #f6f1ea;
  --paper-warm: #ede5d8;
  --sand: #c9a87c;
  --bronze: #8b6f47;
  --bronze-dark: #6b5435;
  --line: rgba(20, 17, 15, 0.12);
  --line-strong: rgba(20, 17, 15, 0.24);
  --muted: #6b6358;
  --white: #ffffff;

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Radii / shadow */
  --radius: 2px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

::selection { background: var(--ink); color: var(--paper); }

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 .6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-block;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 2.75rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--bronze);
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
}

/* =========================================================
   Layout helpers
   ========================================================= */

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

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .eyebrow::before { background: var(--sand); }

.section--warm { background: var(--paper-warm); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .grid-3-md-2 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 2rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "→";
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: transform .35s var(--ease);
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.btn:hover::after { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

.btn--block { width: 100%; justify-content: center; }

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(246, 241, 234, 0);
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 234, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .75rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-light .nav__link { color: var(--paper); }
.site-header.is-light .nav__logo { color: var(--paper); }
.site-header.is-light.is-scrolled .nav__link,
.site-header.is-light.is-scrolled .nav__logo { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1;
}
.nav__logo small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: .35rem;
}
.nav__menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: .5rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__cta { margin-left: 1rem; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px auto;
  transition: all .3s var(--ease);
}
.site-header.is-light .nav__toggle span { background: var(--paper); }
.site-header.is-light.is-scrolled .nav__toggle span,
.nav__toggle.is-open span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    z-index: 105;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu .nav__link { font-size: 1.1rem; }
  .nav__cta { margin-left: 0; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  padding: 9rem 0 5rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroPan 18s var(--ease) forwards;
}
@keyframes heroPan {
  to { transform: scale(1); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20,17,15,.55) 0%,
    rgba(20,17,15,.2) 40%,
    rgba(20,17,15,.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero__eyebrow {
  color: var(--sand);
  margin-bottom: 2rem;
}
.hero__eyebrow::before { background: var(--sand); }
.hero h1 {
  color: var(--paper);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--sand);
  font-weight: 300;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 580px;
  margin-bottom: 2.5rem;
  color: rgba(246, 241, 234, .85);
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--paper);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .7;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 50px;
  background: var(--paper);
  margin: 1rem auto 0;
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
}

@media (max-width: 600px) {
  .hero__scroll { display: none; }
}

/* =========================================================
   Stats / Marquee strip
   ========================================================= */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
  background: var(--paper-warm);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: .5rem;
}
.stats__num em { color: var(--bronze); font-style: normal; }
.stats__label {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

/* =========================================================
   Split / Intro section
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.split__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split__image:hover img { transform: scale(1.04); }
.split__image--bordered {
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--paper);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .split__image { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Service cards (Residential / Commercial)
   ========================================================= */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-right: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: background .4s var(--ease);
}
.service:last-child { border-right: none; }
.service:hover { background: var(--paper-warm); }
.service__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 2rem;
}
.service__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.service:hover .service__image img { transform: scale(1.05); }
.service__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service__title h3 { margin: 0; }
.service__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--bronze);
  letter-spacing: .1em;
}
.service__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}
.service__list li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.service__list li::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--bronze);
  flex-shrink: 0;
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--ink);
}
.service__link:hover { color: var(--bronze); border-color: var(--bronze); }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: none; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   Value props / Pillars
   ========================================================= */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(246,241,234,.15);
}
.pillar:last-child { border-right: none; }
.pillar__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sand);
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1;
}
.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: .75rem;
  color: var(--paper);
}
.pillar p {
  color: rgba(246,241,234,.7);
  font-size: .95rem;
  margin: 0;
}

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(246,241,234,.15); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(246,241,234,.15); }
  .pillar:last-child { border-bottom: none; }
}

/* =========================================================
   Process
   ========================================================= */

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  counter-increment: step;
}
.process-step:last-child { border-bottom: none; }
.process-step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--bronze);
  line-height: 1;
}
.process-step__num::before { content: "0" counter(step); }
.process-step__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0;
}
.process-step__desc {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 800px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: 2rem 0;
  }
  .process-step__num { font-size: 2rem; }
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-warm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,17,15,.4));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

.gallery-item--tall { grid-column: span 4; grid-row: span 2; aspect-ratio: 3/4; }
.gallery-item--wide { grid-column: span 8; aspect-ratio: 16/9; }
.gallery-item--square { grid-column: span 4; aspect-ratio: 1; }
.gallery-item--med { grid-column: span 6; aspect-ratio: 4/3; }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .gallery-item--tall, .gallery-item--wide, .gallery-item--square, .gallery-item--med {
    grid-column: span 1; grid-row: span 1; aspect-ratio: 1;
  }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
  max-width: 920px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  transition: color .25s var(--ease);
}
.faq__q:hover { color: var(--bronze); }
.faq__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; right: 0; height: 1px; }
.faq__icon::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.faq__item.is-open .faq__a { max-height: 500px; }
.faq__a p {
  color: var(--muted);
  padding: 0 0 2rem;
  margin: 0;
  max-width: 720px;
}

/* =========================================================
   Testimonial / Pull quote
   ========================================================= */

.pull-quote {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.pull-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: var(--paper);
  margin-bottom: 2rem;
}
.pull-quote__text::before,
.pull-quote__text::after {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--sand);
  margin: 1.5rem auto;
}
.pull-quote__attr {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sand);
}

/* =========================================================
   CTA Block
   ========================================================= */

.cta-block {
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-block__inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.cta-block h2 { color: var(--paper); margin-bottom: 1.5rem; }
.cta-block p {
  color: rgba(246,241,234,.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block__bg {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-size: cover;
  background-position: center;
  filter: grayscale(.4);
}

/* =========================================================
   Contact / Form
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__label {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: .5rem;
}
.contact-info__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}
.contact-info__value a:hover { color: var(--bronze); }

.form {
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form__row--single { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.form__field {
  display: flex;
  flex-direction: column;
}
.form__label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .5rem;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: .85rem 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-bottom-color: var(--bronze); }

.form__note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: rgba(246,241,234,.7);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sand);
  margin-bottom: 1.5rem;
}
.footer__col h4 {
  color: var(--paper);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .85rem; font-size: .95rem; }
.footer__list a:hover { color: var(--sand); }

.footer__bottom {
  border-top: 1px solid rgba(246,241,234,.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(246,241,234,.5);
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */

.page-header {
  padding: 11rem 0 5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header__bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: .4;
}
.page-header__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,.5), rgba(20,17,15,.85));
}
.page-header__inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-header h1 { color: var(--paper); }
.page-header p {
  color: rgba(246,241,234,.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* =========================================================
   Reveal animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Utility
   ========================================================= */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 2rem; }
.max-w-prose { max-width: 65ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

.divider {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--bronze);
  margin: 1.5rem 0;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* =========================================================
   Gallery: house index + lightbox
   ========================================================= */

.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 980px) { .houses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .houses-grid { grid-template-columns: 1fr; } }

.house-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
}
.house-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
}
.house-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.house-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,17,15,.55));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.house-card:hover .house-card__image img { transform: scale(1.05); }
.house-card:hover .house-card__image::after { opacity: 1; }
.house-card__meta {
  padding: 1.1rem .15rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.house-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: -.005em;
}
.house-card__count {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
}

.gallery-error {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, .96);
  color: var(--paper);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(246,241,234,.1);
}
.lightbox__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 0;
}
.lightbox__count {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246,241,234,.6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  background: rgba(246,241,234,.08);
  border: 1px solid rgba(246,241,234,.18);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(246,241,234,.18);
  border-color: rgba(246,241,234,.35);
}

.lightbox__main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem clamp(.5rem, 2vw, 1.5rem);
  min-height: 0;
}
.lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lightbox__prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(.5rem, 2vw, 1.5rem); }

.lightbox__thumbs {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(246,241,234,.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(246,241,234,.25) transparent;
}
.lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.lightbox__thumbs::-webkit-scrollbar-thumb { background: rgba(246,241,234,.25); border-radius: 3px; }
.lightbox__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  background: none;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: .55;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--sand);
}

@media (max-width: 768px) {
  .lightbox__header { padding: .85rem 1rem; gap: 1rem; }
  .lightbox__title { font-size: 1rem; }
  .lightbox__count { display: none; }
  .lightbox__main { padding: .5rem; }
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }
  .lightbox__thumbs { padding: .5rem 1rem; }
  .lightbox__thumb { width: 60px; height: 45px; }
}

/* =========================================================
   Mobile refinements
   Cleaner spacing, sized type, comfortable tap targets,
   refined nav, and breathing room throughout.
   ========================================================= */

@media (max-width: 768px) {
  body { font-size: 16px; }

  /* Section rhythm */
  .section { padding: 3.5rem 0; }
  .section--tight { padding: 2.5rem 0; }
  :root { --gutter: 1.25rem; }

  /* Typography — pull headings back so they don't overpower */
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.08; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.15; }
  h3 { font-size: 1.25rem; }
  .lede { font-size: 1.05rem; line-height: 1.55; }
  .eyebrow { font-size: .7rem; letter-spacing: .22em; padding-left: 2rem; margin-bottom: 1rem; }
  .eyebrow::before { width: 1.25rem; }

  /* Hero — focused, legible, less crowded */
  .hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 6.5rem 0 3rem;
    align-items: center;
  }
  .hero__content { max-width: none; }
  .hero h1 {
    font-size: 2.6rem;
    line-height: 1.05;
    letter-spacing: -.015em;
    margin-bottom: 1.75rem;
  }
  .hero h1 em { display: block; margin-top: .15em; }
  .hero__sub { display: none; }              /* declutter; content lives below */
  .hero__actions { flex-direction: column; gap: .65rem; }
  .hero__eyebrow {
    font-size: .65rem;
    letter-spacing: .28em;
    margin-bottom: 1.5rem;
  }
  .hero__bg::after {
    background:
      linear-gradient(180deg,
        rgba(20,17,15,.7) 0%,
        rgba(20,17,15,.55) 40%,
        rgba(20,17,15,.95) 100%),
      rgba(20,17,15,.25);
  }
  .hero__bg img { filter: brightness(.85) contrast(1.05); }

  /* Logo — cleaner without the small caps line on phones */
  .nav__logo small { display: none; }

  /* Secondary hero CTA reads as a text link, not a heavy outline */
  .hero__actions .btn--ghost-light {
    border-color: transparent;
    background: transparent;
    padding: .6rem 0;
    width: auto;
    align-self: flex-start;
    font-size: .72rem;
    letter-spacing: .22em;
    color: rgba(246,241,234,.85);
  }
  .hero__actions .btn--ghost-light::after { color: var(--sand); }
  .hero__actions .btn--ghost-light:hover {
    background: transparent;
    color: var(--paper);
  }

  /* Buttons — slightly smaller, better proportioned */
  .btn {
    padding: .95rem 1.5rem;
    font-size: .75rem;
    letter-spacing: .16em;
    width: 100%;
    justify-content: center;
  }
  .hero__actions .btn { flex: 1 1 100%; }

  /* Page headers */
  .page-header { padding: 8rem 0 3.5rem; }
  .page-header p { font-size: 1rem; line-height: 1.55; }

  /* Stats */
  .stats { padding: 2.25rem 0; }
  .stats__grid { gap: 1.75rem 1rem; }
  .stats__num { font-size: 2rem; }
  .stats__label { font-size: .65rem; letter-spacing: .2em; }

  /* Split / intro */
  .split { gap: 2.25rem; }
  .split__image { aspect-ratio: 4 / 3; }

  /* Services — keep dense but readable */
  .service { padding: 2.25rem 1.5rem; }
  .service__image { aspect-ratio: 16 / 11; margin-bottom: 1.5rem; }
  .service__title { flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
  .service__num { font-size: .85rem; }
  .service__list { margin: 1.25rem 0 1.75rem; }
  .service__list li { font-size: .9rem; padding: .8rem 0; }

  /* Pillars */
  .pillars { gap: 0; }
  .pillar { padding: 2rem 0; }
  .pillar:first-child { padding-top: 0; }
  .pillar:last-child { padding-bottom: 0; }
  .pillar__num { font-size: 1.85rem; margin-bottom: 1rem; }
  .pillar h3 { font-size: 1.15rem; margin-bottom: .5rem; }
  .pillar p { font-size: .92rem; }

  /* Process */
  .process-step { padding: 1.75rem 0; gap: .35rem; }
  .process-step__num { font-size: 1.6rem; }
  .process-step__title { font-size: 1.35rem; margin-bottom: .35rem; }
  .process-step__desc { font-size: .95rem; }

  /* Gallery — bigger tiles on small screens */
  .gallery-grid { gap: .4rem; }

  /* FAQ — bigger tap targets, easier to read */
  .faq__q {
    padding: 1.35rem 0;
    font-size: 1.1rem;
    gap: 1rem;
    line-height: 1.3;
  }
  .faq__icon { width: 20px; height: 20px; }
  .faq__a p { font-size: .95rem; padding-bottom: 1.5rem; }

  /* Pull quote */
  .pull-quote__text { font-size: 1.45rem; line-height: 1.4; margin-bottom: 1.5rem; }
  .pull-quote__text::before,
  .pull-quote__text::after { margin: 1.25rem auto; }
  .pull-quote__attr { font-size: .68rem; }

  /* CTA blocks */
  .cta-block { padding: 4rem 1.25rem; }
  .cta-block p { font-size: 1rem; margin-bottom: 2rem; }

  /* Form — bigger tap targets, full-width */
  .form { padding: 1.75rem 1.25rem; }
  .form__row { gap: 1rem; margin-bottom: 1rem; }
  .form__label { font-size: .68rem; }
  .form__input,
  .form__select,
  .form__textarea {
    font-size: 16px; /* prevents iOS zoom */
    padding: .9rem 0;
  }
  .contact-info__item { padding: 1.15rem 0; }
  .contact-info__value { font-size: 1.15rem; }

  /* Footer */
  .site-footer { padding: 3rem 0 1.5rem; }
  .footer-grid { gap: 2rem; margin-bottom: 2.5rem; }
  .footer__brand { font-size: 1.5rem; }
  .footer__bottom { font-size: .72rem; text-align: center; justify-content: center; }
}

@media (max-width: 768px) {
  /* Mobile nav refinement */
  .site-header { padding: 1rem 0; }
  .site-header.is-scrolled { padding: .65rem 0; }
  .nav__logo { font-size: 1.25rem; }
  .nav__logo small { font-size: .55rem; }

  .nav__toggle {
    width: 44px;
    height: 44px;
    margin: -8px -10px -8px 0;
  }

  .nav__menu {
    background: var(--ink);
    color: var(--paper);
    padding: 5rem 1.5rem 2.5rem;
    justify-content: flex-start;
    gap: 1.25rem;
  }
  .nav__menu .nav__link {
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: .01em;
    text-transform: none;
    line-height: 1.1;
    padding: .25rem 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .nav__menu .nav__link::after { background: var(--sand); height: 2px; }
  .nav__menu.is-open .nav__link {
    opacity: 1;
    transform: translateY(0);
  }
  .nav__menu.is-open .nav__link:nth-child(1) { transition-delay: .12s; }
  .nav__menu .nav__link:nth-child(2) { transition-delay: .15s; }
  .nav__menu .nav__link:nth-child(3) { transition-delay: .18s; }
  .nav__menu .nav__link:nth-child(4) { transition-delay: .21s; }
  .nav__menu .nav__link:nth-child(5) { transition-delay: .24s; }
  .nav__menu .nav__link:nth-child(6) { transition-delay: .27s; }
  .nav__menu .nav__cta {
    margin-top: 1.5rem;
    width: 100%;
    opacity: 0;
    transition: opacity .4s var(--ease) .35s;
  }
  .nav__menu.is-open .nav__cta { opacity: 1; }
  .nav__menu .nav__cta .btn {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
    width: 100%;
  }

  /* Hamburger lines visible against dark menu */
  .nav__toggle.is-open span { background: var(--paper); }
}

@media (max-width: 480px) {
  :root { --gutter: 1rem; }

  .section { padding: 3rem 0; }
  .section--tight { padding: 2rem 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }

  .hero { padding: 6.5rem 0 3rem; }
  .page-header { padding: 7rem 0 3rem; }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }
  .stats__grid > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .stats__grid > div:last-child {
    border-bottom: none;
  }
  .stats__num {
    font-size: 1.7rem;
    margin-bottom: 0;
  }
  .stats__label {
    text-align: right;
    flex-shrink: 0;
  }

  .service { padding: 2rem 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 1 !important; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
