/* ============================================================
   Ottimo Homes — style.css
   Mobile-first, editorial, warm-neutral palette
   ============================================================ */

/* --- Custom properties --- */
:root {
  --color-bg:          #f8f6f3;
  --color-bg-tinted:   #f1ece6;
  --color-bg-dark:     #1a1917;
  --color-bg-dark2:    #242220;

  --color-text:        #1a1a18;
  --color-text-muted:  #726c66;
  --color-text-light:  #f8f6f3;

  --color-accent:      #b5956e;
  --color-border:      #e2dbd3;
  --color-placeholder: #d6cfc6;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius:     4px;
  --transition: 220ms ease;

  --container: 1160px;
  --nav-h:     72px;

  --project-bg: #e0d8cc;
  --project-card-bg: #f6f2eb;
  --project-text: #1f1e1b;
  --project-muted: #6f675d;
  --project-border: rgba(31, 30, 27, 0.14);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul[role="list"] { list-style: none; }

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 400; }

p { font-size: 1rem; line-height: 1.75; }

em { font-style: italic; }

/* --- Eyebrow labels --- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #826641;
  margin-bottom: var(--space-sm);
}

.eyebrow--light { color: rgba(248, 246, 243, 0.5); }
.eyebrow--muted { color: rgba(248, 246, 243, 0.38); }

/* --- Sections --- */
.section { padding-block: var(--space-2xl); border-top: 1px solid var(--color-border); }
.section--tinted { background-color: var(--color-bg-tinted); }
.section--dark   { background-color: var(--color-bg-dark); color: var(--color-text-light); border-top-color: rgba(255, 255, 255, 0.07); }

.section-header { max-width: 620px; margin-bottom: var(--space-xl); }

.section-heading        { margin-bottom: var(--space-xs); }
.section-heading--light { color: var(--color-text-light); }

.section-subtext {
  color: rgba(0,0,0,0.65);
  margin-top: var(--space-sm);
  max-width: 500px;
}

.section--dark .section-subtext { color: rgba(248, 246, 243, 0.48); }

.section-cta {
  margin-top: var(--space-xl);
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.82rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-text);
  color: var(--color-text-light);
  border-color: var(--color-text);
}
.btn--primary:hover {
  background-color: #363330;
  border-color: #363330;
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: rgba(248, 246, 243, 0.38);
}
.btn--ghost:hover { border-color: rgba(248, 246, 243, 0.8); }

.btn--full { width: 100%; text-align: center; }

/* --- Image placeholders --- */
.img-placeholder {
  background-color: var(--color-placeholder);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder--portrait  { aspect-ratio: 3/4; }
.img-placeholder--landscape { aspect-ratio: 4/3; width: 100%; }
.img-placeholder--gallery   { width: 100%; height: 100%; min-height: 200px; }

.img-placeholder span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 24, 0.32);
  padding: var(--space-sm);
  text-align: center;
}


/* Warm-toned placeholder — About portrait */
.img-placeholder--warm {
  background: linear-gradient(160deg, #2e2720 0%, #3a2f25 60%, #2a2218 100%);
}

/* About section — photo placeholder */
.about__img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #1e1b18 0%, #2d2820 60%, #1a1714 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
}

.about__img-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color var(--transition), box-shadow var(--transition);
  /* Readable from the first paint, on every page, without waiting for scroll */
  background-color: rgba(24, 23, 21, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Retained so the existing is-scrolled JavaScript stays compatible */
.site-header.is-scrolled {
  background-color: rgba(24, 23, 21, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* When mobile nav is open: fully opaque, no backdrop-filter compositing.
   This prevents the parent's blur from affecting the nav drawer's background
   and ensures readability at any scroll position, with or without scroll opacity. */
.site-header:has(.nav__links.is-open) {
  background-color: #1a1917;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* =====================
   HEADER BRAND LOCKUP
   ===================== */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  position: relative; /* required: activates z-index so wordmark sits above the open mobile nav drawer */
  z-index: 110;
}

.brand-mark {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-sans, 'Inter', 'Helvetica Neue', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 246, 243, 0.95);
  line-height: 1;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   FOOTER BRAND LOCKUP
   ===================== */

/* Footer brand lockup */
.footer-brand-mark {
  width: clamp(260px, 24vw, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.footer-brand-icon {
  width: clamp(78px, 7vw, 110px);
  height: auto;
  display: block;
  margin-bottom: 22px;
  background: transparent;
}

.footer-wordmark {
  width: 100%;
  text-align: center;
  color: #ffffff;
  background: transparent;
}

.footer-wordmark-main {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(35px, 3.4vw, 52px);
  line-height: 0.9;
  letter-spacing: 0.23em;
  font-weight: 400;
  color: #ffffff;
}

.footer-wordmark-sub {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #ffffff;
}

.footer-wordmark-sub strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(21px, 2vw, 31px);
  line-height: 1;
  letter-spacing: 0.32em;
  font-weight: 400;
  color: #ffffff;
}

.footer-wordmark-sub span {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.85);
}

.footer-wordmark-tagline {
  margin-top: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1;
  letter-spacing: 0.38em;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .brand-mark { height: 28px; }
  .brand-wordmark { font-size: 0.78rem; letter-spacing: 0.20em; }
}

@media (max-width: 700px) {
  .footer-brand-mark {
    width: clamp(220px, 72vw, 300px);
    margin-inline: auto;
  }
}


/* Desktop nav links (hidden on mobile, shown at 900px+) */
.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav__links a {
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 246, 243, 0.72);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-text-light); }

/* CTA button in nav — higher specificity than .nav__links a, no !important needed */
.nav__links .nav__cta {
  padding: 0.52rem 1.2rem;
  border: 1.5px solid rgba(248, 246, 243, 0.32);
  border-radius: var(--radius);
  color: var(--color-text-light);
  transition: border-color var(--transition);
}
.nav__links .nav__cta:hover { border-color: rgba(248, 246, 243, 0.78); }

/* Hamburger toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  z-index: 110;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text-light);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__links.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  /* Solid dark background — must not depend on backdrop-filter for readability.
     backdrop-filter: none overrides any compositor blending from the parent header. */
  background-color: #1a1917;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: calc(var(--nav-h) + var(--space-xl)) var(--space-lg) var(--space-xl);
  gap: var(--space-md);
  align-items: flex-start;
  z-index: 105;
  overflow-y: auto; /* scroll if nav links exceed viewport height on small screens */
}

.nav__links.is-open a {
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  font-family: var(--font-serif);
  text-transform: none;
  font-weight: 300;
  color: rgba(248, 246, 243, 0.92); /* strong contrast against solid dark panel */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__links.is-open .nav__cta {
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

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

/* ─── Full-viewport black intro overlay ─────────────────────
   JS removes this from the DOM after the fade completes.
   Instantly hidden under prefers-reduced-motion.
   BLACK HOLD ~1 s  → animation-delay
   FADE ~3 s        → animation-duration */
.hero-blackout {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  pointer-events: none;
  animation: blackout-fade 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes blackout-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ─── Hero section ───────────────────────────────────────────*/
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a0806;
}

/* ─── Background video ───────────────────────────────────────
   Blackout overlay handles the reveal — no opacity animation needed here.
   object-fit: contain shows the full original frame; the hero background
   (#0a0806) fills any letterbox edges cleanly. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 0;
  animation: hero-media-reveal 3.2s ease-out 0.5s both;
}

@keyframes hero-media-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Left gradient overlay ──────────────────────────────────
   Light editorial panel: enough to keep white heading readable,
   but lets the video show through — especially at the bottom. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.40) 25%,
      rgba(0, 0, 0, 0.15) 45%,
      rgba(0, 0, 0, 0.00) 60%
    );
}

/* ─── Hero content block ─────────────────────────────────────
   Absolute-positioned editorial panel. Sits at ~50% vertically.
   Body itself is always visible — heading, copy, CTA each
   animate individually with staggered delays. */
.hero__body {
  position: absolute;
  z-index: 2;
  left: clamp(48px, 8.5vw, 124px);
  top: 53.5%;
  transform: translateY(-53.5%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
  padding: 0;
}

/* ─── Headline ───────────────────────────────────────────────*/
.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 3.55vw, 4.15rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: 0.005em;
  word-spacing: normal;
  color: #fff;
  margin: 0 0 2rem 0;
  opacity: 0;
  animation: hero-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) 2.2s both;
}

.hero__heading em {
  font-style: italic;
  display: inline;
}

.hero__heading-line {
  display: block;
  word-spacing: normal;
}

/* ─── Supporting copy ────────────────────────────────────────*/
.hero__copy {
  font-family: var(--font-sans);
  font-size: 0.906rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 330px;
  margin-bottom: 0;
  opacity: 0;
  animation: hero-rise 2.5s cubic-bezier(0.22, 1, 0.36, 1) 2.55s both;
}

/* ─── CTA button ─────────────────────────────────────────────*/
.hero__cta {
  display: inline-block;
  margin-top: 26px;
  padding: 0.65rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: border-color 0.3s ease, color 0.3s ease;
  opacity: 0;
  animation: hero-rise 2.4s cubic-bezier(0.22, 1, 0.36, 1) 2.9s both;
}

.hero__cta:hover {
  border-color: rgba(255, 255, 255, 0.68);
  color: #fff;
}

/* ─── Keyframes ──────────────────────────────────────────────
   Opacity fade + 32px upward drift on child elements.
   Children animate freely — transform conflict with .hero__body
   centering no longer applies since the body itself doesn't animate. */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Mobile ─────────────────────────────────────────────────*/
@media (max-width: 767px) {
  .hero {
    align-items: flex-end;
  }
  .hero__body {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 0 var(--space-md) 4rem;
    max-width: none;
    width: 100%;
  }
  .hero__heading {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    margin-bottom: 1.4rem;
  }
  .hero__copy {
    font-size: 0.88rem;
    max-width: none;
    margin-bottom: 0;
  }
}

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about__content .section-heading { margin-bottom: 0; }
.about__content p   { color: var(--color-text-muted); }
.about__content .btn { margin-top: var(--space-sm); align-self: flex-start; }

/* ============================================================
   Services
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.service-card__number {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--color-accent);
  padding: var(--space-md) var(--space-md) 0;
}

.service-card__img {
  margin: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
}

.service-card__title {
  padding: var(--space-sm) var(--space-md) 0;
  font-size: 1.28rem;
}

.service-card__text {
  padding: var(--space-xs) var(--space-md) 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-card__cta {
  display: inline-block;
  margin: 1.2rem var(--space-md) var(--space-md);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text, #1a1a1a);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.service-card__cta:hover { opacity: 1; }

/* Service card — featured variant (card 03) */
.service-card--featured {
  background-color: var(--color-bg);
}
.service-card__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #826641;
  padding: 0.65rem var(--space-md) 0;
}
.service-card__eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: #826641;
  margin-top: 0.5rem;
}
.service-card__hook {
  padding: 0.45rem var(--space-md) 0;
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}
.service-card__cta--featured {
  color: var(--color-text);
  opacity: 0.88;
  font-weight: 500;
  border-bottom-color: #826641;
}

/* ============================================================
   Process
   ============================================================ */
.process__steps {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  margin-left: 1rem;
}

.process-step {
  display: flex;
  gap: var(--space-sm);
  padding-left: var(--space-md);
  padding-bottom: var(--space-xl);
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.process-step:last-child { padding-bottom: 0; }

.process-step__num {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #826641;
  flex-shrink: 0;
  padding-top: 0.15rem;
  min-width: 1.8rem;
}

.process-step__body h3 { margin-bottom: var(--space-xs); font-size: 1.15rem; }
.process-step__body p  { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.65; }


/* ============================================================
   Contact
   ============================================================ */
#contact {
  padding-bottom: var(--space-xl, 5rem);
  background: var(--color-bg-tinted, #f1ece6);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact__info p { color: var(--color-text-muted); }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.contact__detail { display: flex; flex-direction: column; gap: 0.25rem; }

.contact__detail-label {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #826641;
}

.contact__detail a { color: var(--color-text); transition: color var(--transition); }
.contact__detail a:hover { color: var(--color-accent); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.form-optional { color: #5A554E; font-weight: 300; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2378726b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-muted); opacity: 0.55; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(181, 149, 110, 0.13);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.form-status.is-visible {
  display: block;
}
.form-status__heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.form-status.success {
  background-color: #edf5f0;
  border: 1px solid #b8d9c3;
  color: #2d6142;
}
.form-status.error {
  background-color: #fdf0ef;
  border: 1px solid #e8b4b2;
  color: #7a2b29;
}

/* aria-invalid field highlight */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* =============================================
   HOME — SELECTED WORK PREVIEW
   ============================================= */

.home-work-preview {
  background: var(--project-bg, #e0d8cc);
  padding: clamp(76px, 8vw, 112px) 0;
}

.hwp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Feature row: large image left, text right ── */

.hwp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(380px, 0.68fr);
  gap: clamp(50px, 5vw, 76px);
  align-items: center;
  margin-bottom: clamp(36px, 4.5vw, 54px);
}

.hwp-media {
  margin: 0;
  overflow: hidden;
}

/* Image links: no visible styling — cursor pointer only */
.hwp-media a,
.hwp-thumb a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.hwp-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hwp-media:hover img {
  transform: scale(1.02);
}

/* Text sits directly on warm background — deliberate gold left rule */
.hwp-content {
  padding-left: clamp(1.25rem, 2.5vw, 1.75rem);
  border-left: 1px solid rgba(181, 149, 110, 0.55);
}

.hwp-content .eyebrow {
  margin-bottom: var(--space-sm);
}

.hwp-content h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  font-weight: 300;
  line-height: 1.12;
  color: #1a1a18;
  margin-bottom: 1.2rem;
  text-wrap: balance;
  hyphens: none;            /* prevent browser from auto-hyphenating */
}

.hwp-content p {
  font-size: 0.98rem;
  line-height: 1.72;
  color: rgba(26, 26, 24, 0.9);
  max-width: 400px;
  margin-bottom: 2.25rem;
}

.hwp-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(26, 26, 24, 0.78);
  font-size: 0.67rem;
  font-family: var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1a18;
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.hwp-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ── Supporting images: label + 4-image row ── */

.hwp-support__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 26, 24, 0.65);
  margin-bottom: 1.1rem;
}

.hwp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.5vw, 14px);
}

.hwp-thumb {
  margin: 0;
  overflow: hidden;
}

.hwp-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  transition: transform 350ms ease;
}

.hwp-thumb:hover img {
  transform: scale(1.015);
}

/* Subtle tonal balance — brings brighter interior shots closer to the warmer exterior tones */
.hwp-grid .hwp-thumb:nth-child(1) img { filter: brightness(0.95) saturate(0.90); } /* kitchen */
.hwp-grid .hwp-thumb:nth-child(2) img { filter: brightness(0.93) saturate(0.87); } /* bathroom */

/* ── Responsive ──────────────────────────────── */

@media (max-width: 900px) {
  /* Stack: feature image above, text below */
  .hwp-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hwp-media img {
    aspect-ratio: 16 / 9;
  }

  .hwp-content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(181, 149, 110, 0.4);
    padding-top: 1.75rem;
  }

  .hwp-content p {
    max-width: none;
  }

  /* Supporting: 2-column grid on tablet */
  .hwp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .home-work-preview {
    padding: clamp(56px, 12vw, 80px) 0;
  }

  /* Keep 2-column grid on small phones */
  .hwp-grid {
    gap: 6px;
  }
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #111110;
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2.5rem;
}

.footer-inner {
  max-width: var(--container, 1160px);
  margin: 0 auto;
  padding: 0 var(--space-md, 1.5rem);
}

/* Top row: brand + nav */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer nav */
.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.footer-nav__list a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav__list a:hover {
  color: rgba(255, 255, 255, 0.88);
}

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

/* Details row */
.footer-details {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-details__legal,
.footer-details__contact {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
  line-height: 1.6;
}

.footer-details__contact a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-details__contact a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-details__sep {
  margin: 0 0.6rem;
}

/* Bottom row */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
}

.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}

/* Footer mobile */
@media (max-width: 768px) {
  .site-footer { padding: 4rem 0 2rem; }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.6rem 1.5rem;
  }

  .footer-details__legal,
  .footer-details__contact {
    font-size: 0.7rem;
  }

  .footer-details__sep {
    display: none;
  }

  .footer-details__legal,
  .footer-details__contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ============================================================
   Why Ottimo
   ============================================================ */
.why-ottimo { background: var(--color-bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.why-card {
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  background: #f6f2eb;
  border: 1px solid rgba(180, 149, 110, 0.18);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(31, 30, 27, 0.07);
}

.why-card__number {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.why-card__accent {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent, #b5956e);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.why-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--color-text, #1a1a18);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--color-text-muted, #78726b);
}

/* ============================================================
   Credibility strip
   ============================================================ */
.credibility-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-tinted);
}

.credibility-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.credibility-item {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.60);
}

/* ============================================================
   Insights
   ============================================================ */
.insights { background: var(--color-bg); }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.insight-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.insight-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.insight-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.insight-card__copy {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
  flex: 1;
}

.insight-card__link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  width: fit-content;
  transition: color var(--transition), border-color var(--transition);
}

.insight-card__link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}


/* ============================================================
   Contact — reassurance note
   ============================================================ */
.contact-reassurance {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  max-width: 540px;
}

.form-reassurance {
  font-size: 0.78rem;
  color: #5A554E;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 380px;
}

/* Old footer-brand / footer-logo / footer-wordmark / footer-tagline / footer-copy / footer-legal rules removed — replaced by new .site-footer block above */

/* ============================================================
   Responsive — narrow phones only (max 639px)
   ============================================================ */
@media (max-width: 639px) {
  .about__image .img-placeholder--portrait {
    aspect-ratio: 4/3;
    max-height: 260px;
  }
}

/* ============================================================
   Responsive — Mobile adjustments for new sections (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .why-grid       { grid-template-columns: 1fr; gap: 1rem; }
  .why-card       { padding: 1.5rem; }
  .why-card__title { font-size: clamp(1.1rem, 4vw, 1.3rem); }
  .insights-grid  { grid-template-columns: 1fr; }
  .credibility-list { gap: 1rem 2rem; }
}

/* ============================================================
   Responsive — Tablet (640px+)
   ============================================================ */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .form-row       { grid-template-columns: repeat(2, 1fr); }

}

/* ============================================================
   Responsive — Desktop (900px+)
   ============================================================ */
@media (min-width: 900px) {

  .nav__toggle { display: none; }

  .nav__links {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }

  .about__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-2xl);
  }

  .process__steps { margin-left: 2rem; }

  .contact__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-2xl);
  }

  /* old .footer__inner and .footer__copy desktop rules removed — replaced by new .site-footer block */
}

/* ============================================================
   Responsive — Wide desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child items */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* Reduced motion: skip animation entirely */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Insights footer & secondary button
   ============================================================ */
.insights-footer { margin-top: 3rem; text-align: center; }

.btn-secondary {
  display: inline-block;
  padding: 0.72rem 2rem;
  border: 1px solid rgba(0,0,0,0.22);
  color: var(--color-text, #1a1a1a);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover { border-color: rgba(0,0,0,0.6); }

/* ============================================================
   ARTICLE PAGES
   ============================================================ */
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.article-main { padding-top: 80px; /* clear sticky nav */ }

.article-header { background: var(--color-bg, #f8f5f0); padding-top: 5rem; }
.article-header__inner { max-width: 760px; }

.article-back {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.article-back:hover { color: var(--color-text, #1a1a1a); }

.article__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 1.2rem 0 1.8rem;
  color: var(--color-text, #1a1a1a);
}

.article__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.65);
  max-width: 620px;
  margin: 0;
}

.article-body { background: #fff; }
.article-body__inner {
  max-width: 680px;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.article-body__inner h2 {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2.8rem 0 0.9rem;
  color: var(--color-text, #1a1a1a);
}

.article-body__inner p {
  font-size: 0.97rem;
  line-height: 1.82;
  color: rgba(0,0,0,0.72);
  margin: 0 0 1.4rem;
}

.article-cta {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.article-cta p {
  font-size: 1rem;
  color: rgba(0,0,0,0.65);
}

.article-cta a {
  color: var(--color-text, #1a1a1a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Advice hub hero */
.advice-hero { padding-bottom: 0; }
.advice-hero__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 1.2rem 0 1.5rem;
}
.advice-hero__intro {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.6);
  max-width: 540px;
}

/* Advice — article author byline */
.advice-byline {
  font-size: 0.78rem;
  color: var(--color-text-muted, #726c66);
  letter-spacing: 0.03em;
  margin: 0 0 2rem;
  line-height: 1.4;
}
.advice-byline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(114,108,102,0.45);
}

/* Advice — More building advice section */
.advice-more__heading {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  margin: 0 0 0;
}

.insights-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 899px) {
  .insights-grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .insights-grid--three { grid-template-columns: 1fr; }
}

/* Advice CTA section */
.advice-cta { text-align: center; background: var(--color-bg, #f8f5f0); }
.advice-cta__text {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 0.8rem;
}
.advice-cta__heading {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin: 0 0 2.2rem;
}

@media (max-width: 768px) {
  .article-main { padding-top: 70px; }
  .article-header { padding-top: 3rem; }
  .article-body__inner { padding-top: 2.5rem; padding-bottom: 4rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* Blackout hidden immediately — no fade */
  .hero-blackout { animation: none !important; opacity: 0 !important; }
  /* Video instantly visible — no fade-in */
  .hero__video   { animation: none !important; opacity: 1 !important; }
  /* Hero content elements instantly visible — override opacity:0 and any transform */
  .hero__heading { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero__copy    { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero__cta     { animation: none !important; opacity: 1 !important; transform: none !important; }
}


/* ── Back-to-home button (advice.html hero) ───────────────────────── */
.back-to-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  padding: 0.62rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.22);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text, #1a1a18);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.back-to-home-link:hover,
.back-to-home-link:focus-visible {
  border-color: rgba(0,0,0,0.6);
  background-color: rgba(0,0,0,0.04);
}

/* ── Article breadcrumb ───────────────────────────────────────────── */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}
.breadcrumb-sep {
  color: rgba(255,255,255,0.3);
}
.breadcrumb-current {
  color: rgba(255,255,255,0.75);
}

/* ── Article smart back link ──────────────────────────────────────── */
.article-back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.article-back-link:hover {
  color: rgba(255,255,255,0.9);
}

/* =============================================
   PROJECTS PAGE — padding for fixed nav
   ============================================= */

.projects-main {
  padding-top: var(--nav-h, 72px);
}

/* =============================================
   INTERNAL PAGE HEADER — always visible
   ============================================= */

/* On internal pages (not homepage), show the nav immediately with the
   same solid background used for the scrolled state — no JS dependency */
body.page--internal .site-header {
  background-color: rgba(24, 23, 21, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Anchor alignment: scroll-padding-top on html (set to var(--nav-h)) is the
   sole fixed-header offset. No scroll-margin-top overrides needed — adding
   them alongside scroll-padding-top caused browsers to apply both values,
   leaving a large gap between the nav and the target section. */

/* =============================================
   PROJECTS PAGE — Premium editorial layout
   ============================================= */

/* Photo placeholder boxes — shown until real project photos are ready */
.proj-placeholder {
  background: var(--color-placeholder, #d6cfc6);
  display: block;
}

/* ── INTRO ──────────────────────────────────── */
.proj-intro {
  padding: clamp(1rem, 1.5vw, 1.5rem) 0 0;
  background: var(--color-bg-tinted);
}
.proj-intro__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(0.75rem, 1.25vw, 1.25rem);
}
.proj-intro__count {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.proj-intro__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.8vw, 4.5rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(0.875rem, 1.5vw, 1.5rem);
  max-width: 14ch;
}
.proj-intro__lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding-top: clamp(0.75rem, 1.25vw, 1.25rem);
  border-top: 1px solid var(--color-border);
  align-items: start;
}
.proj-intro__body {
  font-size: clamp(0.97rem, 1.6vw, 1.1rem);
  line-height: 1.76;
  color: #3d3833;
  max-width: 48ch;
  margin: 0;
}
.proj-intro__credentials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
  text-align: right;
}
.proj-intro__cred-item {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #433e39;
}
.proj-intro__cred-item--accent {
  color: var(--color-accent);
  font-weight: 500;
}

/* ── BANNER ─────────────────────────────────── */
.proj-banner {
  padding: clamp(0.375rem, 0.5vw, 0.625rem) 0 clamp(2.5rem, 4vw, 4rem);
  background: var(--color-bg-tinted);
}
/* Banner container: ~88 vw on standard desktops, never wider than 1520px */
.proj-banner .container {
  max-width: 1520px;
  padding-inline: clamp(2rem, 5.5vw, 5rem);
}
.proj-banner__wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
/* Subtle bottom gradient so the label stays readable over any image */
.proj-banner__wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 25, 23, 0.38) 0%,
    rgba(26, 25, 23, 0.08) 30%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 1;
}
.proj-banner__img,
.proj-banner__wrap > .proj-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 720px;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.94) contrast(1.04) saturate(0.98);
}
.proj-banner__caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  z-index: 2;
}
.proj-banner__caption span {
  display: inline-block;
  background: rgba(26, 25, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.42rem 0.88rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 246, 243, 0.92);
  border-radius: 1px;
}

/* ── PROJECT LIST — featured 3-column grid ───── */
.proj-list {
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(4rem, 7vw, 7rem);
}

.proj-featured__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.01em;
}

.proj-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.5vw, 32px);
}

.proj-featured-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.proj-featured-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.proj-featured-card__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--color-bg-tinted);
  margin-bottom: 1.1rem;
}

.proj-featured-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.33, 0, 0.17, 1);
}

.proj-featured-card:hover .proj-featured-card__img {
  transform: scale(1.015);
}

.proj-featured-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-featured-card__meta {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.4rem;
}

.proj-featured-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.proj-featured-card__desc {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-featured-card__link {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 25, 23, 0.25);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.proj-featured-card:hover .proj-featured-card__link {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 899px) {
  .proj-featured__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proj-featured-card__img {
    transition: none;
  }
  .proj-featured-card:hover .proj-featured-card__img {
    transform: none;
  }
}

.proj-item {
  display: grid;
  grid-template-columns: 62% 1fr;
  gap: clamp(2rem, 3.5vw, 4rem);
  align-items: start;
  padding: clamp(4rem, 6.5vw, 6.5rem) 0;
  border-top: 1px solid var(--color-border);
}

/* img-right: content first in DOM, then image */
.proj-item--img-right {
  grid-template-columns: 1fr 62%;
}

.proj-item__media {
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-bg-tinted);
}
.proj-item__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-item__media:hover .proj-item__img {
  transform: scale(1.025);
}

.proj-item__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.35rem;
}

.proj-item__num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  user-select: none;
}

.proj-item__category {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.6rem;
}

.proj-item__title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.proj-item__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 0.75rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.88rem 0;
  margin-bottom: 1.25rem;
  width: 100%;
}
.proj-item__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.proj-item__meta-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.proj-item__meta-value {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.4;
}

.proj-item__desc {
  font-size: clamp(0.9rem, 1.25vw, 0.97rem);
  line-height: 1.82;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin: 0 0 1.5rem;
}

.proj-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 25, 23, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.proj-item__link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── MORE WORK ──────────────────────────────── */
.proj-more {
  background: var(--project-bg, #e0d8cc);
  padding: clamp(4rem, 7vw, 7rem) 0;
}
.proj-more__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.proj-more__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 400;
  color: var(--project-text, #1f1e1b);
  margin: 0;
}
.proj-more__sub {
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--project-muted, #6f675d);
  max-width: 38ch;
  text-align: right;
  margin: 0;
}
.proj-more__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1rem, 1.75vw, 1.5rem);
  align-items: start;
}
.proj-more__col-side {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.75vw, 1.5rem);
}
.proj-more__item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.proj-more__media {
  overflow: hidden;
  border-radius: 2px;
}
.proj-more__img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-more__col-main .proj-more__img {
  aspect-ratio: 3 / 2;
}
.proj-more__col-side .proj-more__img {
  aspect-ratio: 4 / 3;
}
.proj-more__media:hover .proj-more__img {
  transform: scale(1.02);
}
.proj-more__caption {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--project-muted, #6f675d);
  margin: 0;
}

/* ── CTA ────────────────────────────────────── */
.proj-cta {
  background: #1a1612;
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}
.proj-cta__inner {
  max-width: 680px;
}
.proj-cta__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  display: block;
}
.proj-cta__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: rgba(248, 246, 243, 0.96);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}
.proj-cta__body {
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.82;
  color: rgba(248, 246, 243, 0.52);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}
.proj-cta__btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgba(248, 246, 243, 0.26);
  background: rgba(248, 246, 243, 0.05);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(248, 246, 243, 0.88);
  transition: background 0.22s, border-color 0.22s;
}
.proj-cta__btn:hover {
  background: rgba(248, 246, 243, 0.11);
  border-color: rgba(248, 246, 243, 0.48);
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .proj-intro__lower {
    grid-template-columns: 1fr;
  }
  .proj-intro__credentials {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .proj-item,
  .proj-item--img-right {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
  }
  /* On mobile, always show image first regardless of desktop layout */
  .proj-item--img-right .proj-item__media {
    order: -1;
  }
  .proj-item__img {
    aspect-ratio: 16 / 10;
  }

  .proj-more__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .proj-more__sub {
    text-align: left;
    max-width: 100%;
  }
  .proj-more__grid {
    grid-template-columns: 1fr;
  }
  .proj-more__col-side {
    flex-direction: row;
  }
  .proj-more__col-side .proj-more__img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 540px) {
  .proj-intro__heading {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .proj-banner__img,
  .proj-banner__wrap > .proj-placeholder {
    aspect-ratio: 3 / 2;
  }
  .proj-item__meta {
    grid-template-columns: 1fr 1fr;
  }
  .proj-more__col-side {
    flex-direction: column;
  }
}

/* ============================================================
   PORTFOLIO GRID — projects.html further completed work
   ============================================================ */

.proj-grid {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--color-bg);
}

.proj-grid__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--color-border);
}

.proj-grid__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.proj-grid__sub {
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--color-text-muted);
  max-width: 36ch;
  text-align: right;
  margin: 0;
}

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

/* ── Card ── */
.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.proj-card__media {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.1rem;
  background: var(--color-bg-tinted);
}

.proj-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.proj-card:hover .proj-card__img {
  transform: scale(1.025);
}

.proj-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proj-card__type {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.proj-card__location {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.proj-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.6rem;
}

.proj-card__link {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 25, 23, 0.25);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.proj-card:hover .proj-card__link {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Secondary enquiry link under featured items */
.proj-item__link-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.proj-item__link--secondary {
  color: var(--color-text-muted);
  border-color: rgba(26, 25, 23, 0.15);
  font-size: 0.64rem;
}

.proj-item__link--secondary:hover {
  color: var(--color-text);
  border-color: rgba(26, 25, 23, 0.3);
}

@media (max-width: 1199px) {
  .proj-grid__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .proj-grid__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .proj-grid__sub { text-align: left; max-width: 100%; }
  .proj-grid__cards {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

/* Centre the lone final card when it sits alone in the desktop 3-column row */
@media (min-width: 1200px) {
  .proj-grid__cards .proj-card:last-child:nth-child(3n+1) {
    grid-column: 2 / 3;
  }
}

/* ============================================================
   MORE COMPLETED HOMES  (.more-homes / .more-card)
   Non-clickable exterior-only portfolio proof section.
   Sits between .proj-grid and .proj-cta.
   ============================================================ */

.more-homes {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--color-bg-tinted);
}

.more-homes__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
  border-bottom: 1px solid var(--color-border);
}

.more-homes__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.more-homes__sub {
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--color-text-muted);
  max-width: 36ch;
  text-align: right;
  margin: 0;
}

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

/* Non-clickable card — rendered as <article>, not <a> */
.more-card {
  display: flex;
  flex-direction: column;
}

.more-card__media {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1rem;
  background: var(--color-bg);
}

.more-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  /* No transition — these cards are not interactive */
}

.more-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.more-card__type {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.more-card__location {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.more-card__title {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.25rem;
}

.more-card__desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 899px) {
  .more-homes__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .more-homes__sub {
    text-align: left;
    max-width: 100%;
  }
  .more-homes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .more-homes__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECT DETAIL PAGES  (.pd-*)
   ============================================================ */

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.pd-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.pd-breadcrumb a:hover { color: var(--color-accent); }

.pd-breadcrumb__sep { opacity: 0.4; }

/* ── Intro ── */
.pd-intro {
  padding: clamp(4rem, 7vw, 6.5rem) 0 0;
  background: var(--color-bg);
}

.pd-intro__upper {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.pd-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
  padding: clamp(1.75rem, 3vw, 2.25rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--color-border);
}

.pd-intro__category {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.7rem;
  display: block;
}

.pd-intro__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  hyphens: none;
}

.pd-intro__meta {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--color-border);
}

.pd-intro__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.pd-intro__meta-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pd-intro__meta-value {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.45;
}

/* ── Hero image ── */
.pd-hero {
  background: var(--color-bg);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.pd-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ── Body ── */
.pd-body {
  padding: clamp(3rem, 5.5vw, 5.5rem) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.pd-body__inner {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.pd-body__summary {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.86;
  color: var(--color-text);
  max-width: 56ch;
  margin: 0;
}

.pd-body__details {
  display: flex;
  flex-direction: column;
}

.pd-body__detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}

.pd-body__detail-item:first-child { padding-top: 0; }
.pd-body__detail-item:last-child { border-bottom: none; padding-bottom: 0; }

.pd-body__detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pd-body__detail-value {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ── Gallery ── */
.pd-gallery {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background: var(--project-bg, #e0d8cc);
}

.pd-gallery__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.pd-gallery__grid {
  --pd-gallery-gap: clamp(0.75rem, 1.5vw, 1.25rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--pd-gallery-gap);
}

/* Last item left alone on its row: centre it rather than leave a gap beside it */
.pd-gallery__item--center {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--pd-gallery-gap)) / 2);
}

.pd-gallery__item {
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-bg-tinted);
}

.pd-gallery__item--wide {
  grid-column: span 2;
}

.pd-gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-gallery__item--wide .pd-gallery__img {
  aspect-ratio: 16 / 7;
  object-fit: contain;
}

.pd-gallery__item:hover .pd-gallery__img { transform: scale(1.02); }

.pd-gallery__caption {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ── CTA ── */
.pd-cta {
  background: var(--color-bg);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  border-top: 1px solid var(--color-border);
}

.pd-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.pd-cta__text { max-width: 48ch; }

.pd-cta__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
}

.pd-cta__body {
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  line-height: 1.82;
  color: var(--color-text-muted);
  margin: 0;
}

.pd-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.pd-cta__btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgba(26, 25, 23, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  background: transparent;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
}

.pd-cta__btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.pd-back-link {
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.pd-back-link:hover { color: var(--color-text); }

/* ── Responsive: project detail ── */
/* Below ~1029px, clamp(4rem,7vw,6.5rem) < 72px nav — breadcrumb clips under fixed header */
@media (max-width: 1028px) {
  .pd-intro {
    padding-top: calc(var(--nav-h) + 1.25rem);
  }
}

@media (max-width: 860px) {
  .pd-intro__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
  .pd-intro__meta {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
  }
  .pd-body__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pd-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .pd-cta__actions { align-items: flex-start; }
}

@media (max-width: 540px) {
  .pd-gallery__grid { grid-template-columns: 1fr; }
  .pd-gallery__item--wide { grid-column: span 1; }
  .pd-gallery__item--wide .pd-gallery__img { aspect-ratio: 4 / 3; }
  .pd-gallery__item--center { width: 100%; }
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.testimonial {
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(180, 149, 110, 0.35);
}

.testimonial__quote {
  margin: 0;
}

.testimonial__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.testimonial__source {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================================
   BUSINESS SUMMARY + FAQ (homepage)
   ============================================================ */
.biz-summary {
  max-width: 720px;
}
.biz-summary p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}
.biz-summary a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.biz-summary a:hover {
  color: var(--color-accent);
}
.biz-summary__links {
  margin-top: 1.75rem;
}

.faq-list {
  max-width: 760px;
}
.faq-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--color-border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__q {
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}
.faq-item__a {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 68ch;
}
.faq-item__a a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.faq-item__a a:hover {
  color: var(--color-accent);
}

/* ============================================================
   OH-SLIDESHOW — Full-screen homepage projects slideshow
   Edge-to-edge, auto-cycling crossfade (David Lewis style)
   ============================================================ */

.oh-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback */
  height: 100svh;  /* stable on mobile browsers */
  overflow: hidden;
  background: #111;
}

/* --- Slides --- */
.oh-slideshow__slides {
  position: absolute;
  inset: 0;
}
.oh-slideshow__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1100ms ease-in-out;
  pointer-events: none;
  color: #fff;
  cursor: pointer; /* click anywhere on the photo = next photo */
}
.oh-slideshow__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.oh-slideshow__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Legibility scrim (bottom gradient) --- */
.oh-slideshow__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 38%);
}

/* --- Static overlay header (eyebrow + view all) --- */
.oh-slideshow__header {
  position: absolute;
  z-index: 3;
  top: clamp(24px, 4vw, 48px);
  left: 0;
  right: 0;
  padding-inline: max(var(--space-md), calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.oh-slideshow__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.oh-slideshow__viewall {
  pointer-events: auto;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
  transition: border-color 240ms ease;
  white-space: nowrap;
}
.oh-slideshow__viewall:hover {
  border-color: #fff;
}
.oh-slideshow__viewall:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* --- Per-slide caption (bottom-left, fades with slide) --- */
.oh-slideshow__caption {
  position: absolute;
  z-index: 2;
  left: max(var(--space-md), calc((100vw - var(--container)) / 2));
  right: var(--space-md);
  bottom: clamp(32px, 6vh, 64px);
  max-width: 560px;
}
.oh-slideshow__meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin: 0 0 8px;
}
.oh-slideshow__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 12px;
}
/* --- Caption moved to the right (for slides whose lower-left is too light) --- */
.oh-slideshow__slide--caption-right .oh-slideshow__caption {
  left: auto;
  right: max(var(--space-md), calc((100vw - var(--container)) / 2));
  text-align: right;
  bottom: clamp(92px, 12vh, 132px); /* lift clear of the bottom-right dots */
}
/* This photo has light areas around the caption, so add a soft shadow
   behind the white text to keep it legible over any part of the image */
.oh-slideshow__slide--caption-right .oh-slideshow__meta,
.oh-slideshow__slide--caption-right .oh-slideshow__title {
  text-shadow: 0 1px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}

/* --- Dots (bottom-right) --- */
.oh-slideshow__dots {
  position: absolute;
  z-index: 3;
  right: max(var(--space-md), calc((100vw - var(--container)) / 2));
  bottom: clamp(36px, 6vh, 68px);
  display: flex;
  gap: 10px;
}
.oh-slideshow__dot {
  width: 34px;
  height: 24px; /* generous tap target */
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.oh-slideshow__dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.4);
  transition: background 300ms ease;
}
.oh-slideshow__dot.is-active::after,
.oh-slideshow__dot:hover::after {
  background: #fff;
}
.oh-slideshow__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Pause/resume button */
.oh-slideshow__pause {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 300ms ease;
}
.oh-slideshow__pause:hover,
.oh-slideshow__pause:focus-visible {
  color: #fff;
}
.oh-slideshow__pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .oh-slideshow__caption {
    bottom: clamp(64px, 10vh, 96px); /* clear the dots */
    right: var(--space-md);
  }
  .oh-slideshow__dots {
    left: var(--space-md);
    right: auto;
    bottom: 24px;
  }
}

/* --- Reduced motion: no crossfade animation --- */
@media (prefers-reduced-motion: reduce) {
  .oh-slideshow__slide {
    transition: none;
  }
}

/* ── Advice: short answer callout ─────────────────────────────── */
.article-answer {
  margin-block-end: var(--space-lg);
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  background-color: var(--color-bg-tinted);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius);
}

.article-answer .article-answer__label {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.article-answer .article-answer__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .article-answer {
    padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md);
  }
  .article-answer .article-answer__text { font-size: 1.1rem; }
}

/* ── Related reading / cross-links ────────────────────────────── */
.related-reading {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.related-reading--inline {
  margin-block: var(--space-lg) 0;
  padding-block: var(--space-md) 0;
}

.related-reading .related-reading__heading {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.related-reading .related-reading__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-reading .related-reading__list li { margin: 0; }

.related-reading .related-reading__list a {
  display: inline-block;
  padding-block: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition), border-color var(--transition);
}

.related-reading .related-reading__list a:hover,
.related-reading .related-reading__list a:focus-visible {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 640px) {
  .related-reading .related-reading__list { flex-direction: column; gap: 0; }
}

/* ============================================================
   LAPTOP SCALE CORRECTION, 900px to 1440px only.
   Editorial headings and internal page section rhythm run roughly
   10 to 15 per cent tighter on common laptop screens. Mobile below
   900px and large desktop above 1440px are deliberately untouched.
   No zoom, no transform, no reduced root font size.
   ============================================================ */
@media (min-width: 900px) and (max-width: 1440px) {

  /* The container width stays at the site default of 1160px on laptops.
     Narrowing it here squeezed the services grid and stretched the cards
     vertically, so it is deliberately not overridden. */

  /* ── Editorial heading caps ── */
  /* .proj-intro__heading: ~52px max */
  .proj-intro__heading { font-size: clamp(2.5rem, 5.2vw, 3.25rem); }
  /* .advice-hero__title: ~48px max */
  .advice-hero__title  { font-size: clamp(2.4rem, 4.1vw, 3rem); }
  /* .article__title: ~44px max */
  .article__title      { font-size: clamp(2.2rem, 3.6vw, 2.75rem); }
  /* .pd-intro__title: ~50px max */
  .pd-intro__title     { font-size: clamp(2.4rem, 5vw, 3.125rem); }
  /* .section-heading: ~40px max */
  .section-heading     { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
  .hwp-content h2      { font-size: clamp(1.9rem, 2.6vw, 2.25rem); }

  /* ── Vertical rhythm tightened ~15–25% for laptop ── */
  .proj-intro          { padding-top: clamp(0.75rem, 1.25vw, 1.2rem); }
  .proj-banner         { padding-bottom: clamp(1.75rem, 3vw, 3rem); }
  .proj-grid           { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
  .more-homes          { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
  .article-header      { padding-top: 4rem; }
  .article-body__inner { padding-top: 2.75rem; padding-bottom: 4rem; }
  .pd-intro            { padding-top: clamp(3rem, 5.5vw, 5rem); }
  .pd-intro__inner     { padding-block: clamp(1.5rem, 2.5vw, 1.875rem); }
  .pd-hero             { padding-bottom: clamp(2.25rem, 4vw, 4rem); }
  .pd-body             { padding-block: clamp(2.25rem, 4.25vw, 4.25rem); }

  /* Internal page section rhythm */
  body.page--internal .section { padding-block: 4.5rem; }

  /* Preserve the advice hero running straight into the grid below it */
  body.page--internal .advice-hero { padding-bottom: 0; }
}

/* ============================================================
   Contact form honeypot.
   Kept out of sight and out of the accessibility tree. Real
   visitors never see it, automated submissions usually fill it.
   ============================================================ */
.form-hp {
  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;
}

/* ============================================================
   Skip to main content link.
   Visually hidden at rest; revealed on focus for keyboard users.
   ============================================================ */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus {
  top: 0.5rem;
}

/* ============================================================
   noscript / no-IntersectionObserver reveal fallback.
   The .reveal class starts elements invisible; without JS they
   would remain hidden forever. This ensures content is always
   visible in no-JS environments.
   ============================================================ */
.no-js .reveal,
.no-io .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
