/* =========================================================================
   Whispering Pines — The Spruce / Home Tour
   Recreated from "Home Tour.dc.html" (Claude Design handoff bundle).
   Palette, type and spacing match the prototype; layered with restrained
   on-brand motion and a heavy responsive pass.
   ========================================================================= */

:root {
  /* Palette */
  --cream:      #f3ece0;
  --card:       #fbf7ef;
  --ink:        #2b2824;
  --ink-soft:   #544f47;
  --forest:     #2f4434;
  --forest-700: #263a2c;
  --muted:      #8a8275;
  --toggle-bg:  #e7ddca;
  --img-bg:     #d8cdb8;
  --inactive:   #6f6757;

  /* Editorial-homepage accents */
  --clay:        #b07a4f;   /* warm terracotta eyebrow accent */
  --clay-light:  #c79a6f;   /* clay on dark backgrounds */
  --stat-bg:     #2f4434;   /* stat bar (= forest) */
  --loc-bg:      #23332a;   /* dark "Location" section */
  --loc-text:    #e8e2d4;
  --loc-body:    #c4ccbd;
  --siteplan-bg: #ece3d4;
  --footer-bg:   #2b2824;
  --footer-text: #cfc7b8;
  --footer-dim:  #7d7567;

  /* Hairlines */
  --line:        rgba(43, 40, 36, 0.12);
  --line-soft:   rgba(43, 40, 36, 0.10);
  --line-strong: rgba(43, 40, 36, 0.14);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(24px, 5vw, 48px); /* fluid gutter so mid-size screens don't sit flush left */

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--forest); color: var(--cream); }

img { max-width: 100%; }

a { color: inherit; }

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

/* Honour the sticky header when jumping to in-page anchors */
[id] { scroll-margin-top: 96px; }

/* ---- Layout helpers ----------------------------------------------------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.section-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  max-width: 24ch;
}

.section-note {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}

/* Generic section rhythm */
.section { padding-top: 56px; }
.section--first { padding-top: 40px; }
.section--pad-btm { padding-bottom: clamp(56px, 8vw, 110px); } /* when a full-bleed band follows */

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
  font-size: 14px;
  padding: 14px 26px;
  white-space: nowrap;
  box-shadow: 0 14px 30px -18px rgba(40, 33, 24, 0.7);
}
.btn--primary:hover {
  background: var(--forest-700);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(40, 33, 24, 0.7);
}

.btn--light {
  background: var(--cream);
  color: var(--forest);
  font-size: 15px;
  padding: 15px 30px;
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.5); }

.btn--block { width: 100%; }

/* =========================================================================
   NAV
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(243, 236, 224, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--forest);
  font-size: 16px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.brand:hover .brand__mark { background: var(--forest); color: var(--cream); }

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-back {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.nav-back .arrow { font-family: var(--mono); transition: transform 0.25s var(--ease); }
.nav-back:hover { color: var(--forest); }
.nav-back:hover .arrow { transform: translateX(-3px); }

/* =========================================================================
   HERO
   ========================================================================= */

.hero__tags {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.tag-pill {
  background: var(--forest);
  color: var(--cream);
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 14px 0 0;
}

/* Spec bar */
.spec-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.spec {
  background: var(--card);
  padding: 20px 18px;
  transition: background-color 0.3s var(--ease);
}
.spec:hover { background: #fffdf8; }
.spec__value {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}
.spec__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* =========================================================================
   COMPARE (staged / as-built)
   ========================================================================= */

.compare { margin-top: 40px; }

.compare__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.compare__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
  margin: 0;
  max-width: 22ch;
}

.toggle {
  display: inline-flex;
  background: var(--toggle-bg);
  border-radius: 999px;
  padding: 4px;
}
.toggle__btn {
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--inactive);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.toggle__btn[aria-pressed="true"] {
  background: var(--forest);
  color: var(--cream);
}

.compare__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--img-bg);
  box-shadow: 0 30px 60px -30px rgba(40, 33, 24, 0.5);
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.compare__img.is-active { opacity: 1; }

.compare__note {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbf7ef;
  background: rgba(20, 28, 20, 0.55);
  padding: 5px 10px;
  border-radius: 5px;
  backdrop-filter: blur(2px);
}

/* =========================================================================
   ROOM GALLERY
   ========================================================================= */

.room { margin-top: 44px; }
.room__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.room__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  margin: 0;
}
.room__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.gallery-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--img-bg);
  box-shadow: 0 16px 36px -26px rgba(40, 33, 24, 0.5);
}
.gallery-cell__img {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.6s var(--ease);
}
.gallery-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 20, 0) 55%, rgba(20, 28, 20, 0.28) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-cell:hover .gallery-cell__img,
.gallery-cell:focus-visible .gallery-cell__img { transform: scale(1.06); }
.gallery-cell:hover::after { opacity: 1; }

/* =========================================================================
   FLOOR PLAN
   ========================================================================= */

.floorplan-btn {
  display: block;
  width: 100%;
  padding: clamp(16px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floorplan-btn:hover {
  border-color: rgba(43, 40, 36, 0.25);
  box-shadow: 0 24px 50px -34px rgba(40, 33, 24, 0.55);
}
.floorplan-btn img { display: block; width: 100%; height: auto; }

/* =========================================================================
   FEATURES
   ========================================================================= */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.features__intro-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  margin: 0 0 18px;
}
.features__intro-p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.feature-row__label { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.feature-row__detail { font-size: 15.5px; color: var(--muted); text-align: right; }

/* =========================================================================
   VISIT CTA
   ========================================================================= */

.visit { margin-top: 72px; }
.visit--last { margin-bottom: clamp(64px, 8vw, 104px); } /* when nothing follows before the footer */
.visit__panel {
  background: var(--forest);
  color: var(--cream);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.visit__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.04;
  margin: 0 0 12px;
  max-width: 18ch;
}
.visit__p {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0;
  max-width: 46ch;
}
.visit__actions { display: flex; flex-direction: column; gap: 12px; }
.visit__link {
  text-decoration: none;
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.visit__link:hover { opacity: 1; }

/* =========================================================================
   INQUIRE / TOUR-REQUEST FORM
   ========================================================================= */

.inquire { margin-top: 72px; }
.inquire__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.inquire__intro-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.06;
  margin: 0 0 16px;
  max-width: 16ch;
}
.inquire__intro-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.inquire__detail {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.inquire__detail .ic { color: var(--forest); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--forest); }

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder,
.field textarea::placeholder { color: #b3aa99; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 68, 52, 0.14);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8275' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

/* Validation: only flag fields the browser marks invalid AFTER a submit try */
.form.was-validated .field input:invalid,
.form.was-validated .field textarea:invalid,
.form.was-validated .field select:invalid {
  border-color: #a6432f;
  box-shadow: 0 0 0 3px rgba(166, 67, 47, 0.12);
}
.field__error {
  font-size: 12px;
  color: #a6432f;
  display: none;
}
.form.was-validated .field input:invalid ~ .field__error,
.form.was-validated .field textarea:invalid ~ .field__error,
.form.was-validated .field select:invalid ~ .field__error { display: block; }

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 4px;
}
.form__submit {
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  box-shadow: 0 14px 30px -18px rgba(40, 33, 24, 0.7);
}
.form__submit:hover:not(:disabled) { background: var(--forest-700); transform: translateY(-2px); }
.form__submit:disabled { opacity: 0.65; cursor: progress; }
.form__privacy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.5;
}

.form__status {
  grid-column: 1 / -1;
  font-size: 14.5px;
  line-height: 1.5;
  border-radius: 12px;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease),
    padding 0.4s var(--ease), margin 0.4s var(--ease);
}
.form__status.is-shown { max-height: 220px; opacity: 1; padding: 14px 16px; margin-top: 2px; }
.form__status.is-success { background: rgba(47, 68, 52, 0.10); color: var(--forest); border: 1px solid rgba(47, 68, 52, 0.25); }
.form__status.is-error   { background: rgba(166, 67, 47, 0.08); color: #8c3a28; border: 1px solid rgba(166, 67, 47, 0.3); }

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
  padding-top: 40px;
  padding-bottom: 56px;
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 12, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__stage {
  position: relative;
  width: min(94vw, 1280px);
  height: 88vh;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }

.lightbox__img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: #1a110c;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 10px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.lightbox__caption {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(243, 236, 224, 0.82);
  text-align: center;
  max-width: 70ch;
}

.lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 236, 224, 0.16);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox__close:hover { background: rgba(243, 236, 224, 0.3); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(243, 236, 224, 0.14);
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s var(--ease);
}
.lightbox__nav:hover { background: rgba(243, 236, 224, 0.28); }
.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }

body.lb-open { overflow: hidden; }

/* =========================================================================
   SCROLL REVEAL  (progressive — only hides when JS is present)
   ========================================================================= */

html.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 920px) {
  .features-grid { grid-template-columns: 1fr; gap: 28px; }
  .inquire__card { grid-template-columns: 1fr; gap: 32px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 8px; right: 8px; }
}

@media (max-width: 720px) {
  :root { --pad: clamp(20px, 6.5vw, 40px); }

  /* 5 specs reflow to two columns; the 5th spans the full row so there's
     never a hollow framed cell */
  .spec-bar { grid-template-columns: repeat(2, 1fr); }
  .spec-bar .spec:last-child { grid-column: 1 / -1; }

  .section { padding-top: 44px; }
  .section--first { padding-top: 28px; }
  .visit, .inquire { margin-top: 52px; }

  .site-header__inner { padding-top: 13px; padding-bottom: 13px; gap: 14px; }
  .brand__title { font-size: 17px; }

  .hero__head { gap: 18px; }
  .hero__head .btn--primary { width: 100%; }

  .compare__head { align-items: stretch; }
  .toggle { width: 100%; }
  .toggle__btn { flex: 1; text-align: center; }

  .visit__panel { flex-direction: column; align-items: flex-start; }
  .visit__actions { width: 100%; }
  .visit__actions .btn { width: 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__submit { width: 100%; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-back span:not(.arrow) { display: none; } /* keep just the arrow on tiny screens */
  .nav-back::after { content: "Back"; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */

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

/* =========================================================================
   ====================  EDITORIAL HOMEPAGE (index.html)  ==================
   ========================================================================= */

.eyebrow--clay { color: var(--clay); }

/* ---- Primary nav (desktop) --------------------------------------------- */
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--forest); }
.nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease) !important;
}
.nav-cta:hover { background: var(--forest-700); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.8px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---- Buttons specific to the hero -------------------------------------- */
.btn--cream { background: var(--cream); color: var(--ink); font-size: 15px; padding: 15px 26px; }
.btn--cream:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(0,0,0,0.45); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  font-size: 15px;
  padding: 15px 26px;
  border: 1px solid rgba(243, 236, 224, 0.6);
}
.btn--ghost:hover { background: rgba(243, 236, 224, 0.1); transform: translateY(-2px); }

/* ---- Hero -------------------------------------------------------------- */
.hero-ed {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #2c4232 0, #2c4232 2px, #314836 2px, #314836 22px);
}
.hero-ed__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-ed__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,20,0.45) 0%, rgba(20,28,20,0.12) 38%, rgba(20,28,20,0.78) 100%);
  pointer-events: none;
}
.hero-ed__inner {
  position: relative;
  width: 100%;
  padding-top: 0;
  padding-bottom: 64px;
  color: var(--cream);
}
.hero-ed__eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 22px;
}
.hero-ed__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-ed__lede {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  max-width: 56ch;
  opacity: 0.92;
  margin: 0 0 36px;
}
.hero-ed__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Stat bar ---------------------------------------------------------- */
.statbar { background: var(--stat-bg); color: var(--loc-text); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statbar__cell {
  padding: 34px 18px;
  border-left: 1px solid rgba(232, 226, 212, 0.16);
  text-align: center;
}
.statbar__cell:first-child { border-left: none; }
.statbar__value { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.statbar__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aeb9a6;
  margin-top: 10px;
}

/* ---- Section heading scale used across editorial sections --------------- */
.ed-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

/* ---- The Land ---------------------------------------------------------- */
.land { padding: clamp(70px, 9vw, 128px) 0; }
.land__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.land__p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 54ch; margin: 0 0 20px; }
.land__p:last-of-type { margin-bottom: 0; }
.land__stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 38px; }
.land-stat__value { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--forest); }
.land-stat__label { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 18ch; }
.land__h2 { margin-bottom: 26px; }
.land__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 150px;
  gap: 14px;
}
.land__collage > div { border-radius: 16px; overflow: hidden; background: var(--img-bg); }
.land__collage > div:first-child { grid-column: 1 / span 2; }
.land__collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.land__collage > div:hover img { transform: scale(1.04); }

/* ---- Site plan --------------------------------------------------------- */
.siteplan-section {
  background: var(--siteplan-bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.siteplan-section__inner { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.siteplan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.siteplan__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.siteplan__intro { max-width: 36ch; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.siteplan__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 740;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 60px -40px rgba(20, 30, 20, 0.5);
  container-type: inline-size;
  background: #e8eadd;
}
.siteplan__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.siteplan__svg polygon[data-lot] { cursor: pointer; transition: fill 0.15s ease, opacity 0.15s ease; }
.siteplan__labels { position: absolute; inset: 0; pointer-events: none; }
.lot-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-shadow: 0 1px 3px rgba(20, 25, 18, 0.45);
}
.lot-num { font-family: var(--sans); font-weight: 700; font-size: 1.7cqw; line-height: 1; color: #fbf7ef; }
.lot-ac { font-family: var(--mono); font-size: 1.05cqw; line-height: 1; color: #fbf7ef; opacity: 0.9; white-space: nowrap; }
.siteplan__popup {
  position: absolute;
  width: min(286px, 74vw);
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 50px -20px rgba(20, 25, 18, 0.55);
  z-index: 6;
}
.siteplan__popup-img { aspect-ratio: 16 / 10; border-radius: 10px 10px 0 0; overflow: hidden; margin: -16px -16px 12px; }
.siteplan__popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.siteplan__popup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.siteplan__popup-title { font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.05; }
.siteplan__popup-acres { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.siteplan__popup-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbf7ef;
  margin: 9px 0 10px;
}
.siteplan__popup-blurb { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.siteplan__popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.siteplan__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}
.siteplan__legend-items { display: flex; gap: 22px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.legend-swatch { width: 15px; height: 15px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.55); }
.legend-item .count { font-family: var(--mono); color: var(--muted); }
.siteplan__legend-note { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ---- Homes ------------------------------------------------------------- */
.homes { padding: clamp(70px, 9vw, 128px) 0; }
.homes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.homes__head-left { max-width: 40ch; }
.homes__intro { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 40ch; margin: 0; }
.homes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.home-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(40, 33, 24, 0.5); }
.home-card__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--img-bg); }
.home-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.home-card:hover .home-card__media img { transform: scale(1.05); }
.home-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbf7ef;
  background: var(--forest);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.home-card__tag--clay { background: var(--clay); }
.home-card__note {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fbf7ef;
  background: rgba(20, 28, 20, 0.55);
  padding: 3px 6px;
  border-radius: 4px;
}
.home-card__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.home-card__name { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.home-card__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.home-card__desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; flex: 1; }
.home-card__cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.home-card__cta .arrow { font-family: var(--mono); transition: transform 0.25s var(--ease); }
.home-card__cta:hover .arrow { transform: translateX(4px); }

/* ---- Location (dark) --------------------------------------------------- */
.location { background: var(--loc-bg); color: var(--loc-text); }
.location__inner { padding-top: clamp(70px, 9vw, 128px); padding-bottom: clamp(70px, 9vw, 128px); }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.location__h2 { color: var(--loc-text); margin-bottom: 26px; }
.location__p { font-size: 17px; line-height: 1.65; color: var(--loc-body); max-width: 50ch; margin: 0 0 40px; }
.drivetimes { display: flex; flex-direction: column; }
.drivetime {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgba(232, 226, 212, 0.14);
}
.drivetime__place { font-size: 16px; color: var(--loc-text); }
.drivetime__leader { flex: 1; border-bottom: 1px dotted rgba(232, 226, 212, 0.25); transform: translateY(-4px); }
.drivetime__time { font-family: var(--mono); font-size: 14px; color: var(--clay-light); white-space: nowrap; }
.location__media {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #2c4232;
  margin-bottom: 24px;
}
.location__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amenity {
  background: rgba(232, 226, 212, 0.06);
  border: 1px solid rgba(232, 226, 212, 0.12);
  border-radius: 14px;
  padding: 18px;
}
.amenity__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--clay-light); text-transform: uppercase; margin-bottom: 8px; }
.amenity__label { font-size: 15px; line-height: 1.4; color: var(--loc-text); }
.personas { margin-top: clamp(56px, 7vw, 96px); }
.personas__title { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); color: #aeb9a6; margin-bottom: 28px; }
.personas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persona { border-top: 2px solid var(--clay-light); padding-top: 22px; }
.persona__title { font-family: var(--serif); font-size: 23px; line-height: 1.15; margin-bottom: 12px; color: var(--cream); }
.persona__body { font-size: 14.5px; line-height: 1.6; color: var(--loc-body); margin: 0; }

/* ---- Inquire (editorial) ---------------------------------------------- */
.inquire-ed { padding: clamp(70px, 9vw, 128px) 0; }
.inquire-ed__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.inquire-ed__p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 46ch; margin: 0; }
.inquire-ed__h2 { margin-bottom: 22px; }
.form-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; padding: clamp(24px, 3vw, 34px); }

/* ---- Rich footer ------------------------------------------------------- */
.footer-rich { background: var(--footer-bg); color: var(--footer-text); }
.footer-rich__inner {
  padding-top: 64px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-rich__brand { max-width: 34ch; }
.footer-rich__name { font-family: var(--serif); font-size: 24px; color: var(--cream); margin-bottom: 14px; }
.footer-rich__desc { font-size: 14px; line-height: 1.6; margin: 0; color: #a59c8d; }
.footer-rich__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-dim); }
.footer-col a, .footer-col span { color: var(--footer-text); text-decoration: none; font-size: 14px; }
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-rich__bottom { border-top: 1px solid rgba(207, 199, 184, 0.12); }
.footer-rich__bottom-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--footer-dim);
}

/* =========================================================================
   EDITORIAL — RESPONSIVE
   ========================================================================= */

@media (max-width: 940px) {
  .land__grid { grid-template-columns: 1fr; gap: 40px; }
  .location__grid { grid-template-columns: 1fr; }
  .inquire-ed__grid { grid-template-columns: 1fr; gap: 36px; }
  .homes__grid { grid-template-columns: 1fr 1fr; }
  .personas__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  /* Mobile nav: collapse links into a toggle panel */
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--pad) 18px;
    background: rgba(243, 236, 224, 0.97);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px -28px rgba(40, 33, 24, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 8px; padding: 14px 18px; }
}

@media (max-width: 720px) {
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .statbar__cell:nth-child(odd) { border-left: none; }
  .homes__grid { grid-template-columns: 1fr; }
  .land__collage { grid-template-rows: 180px 130px; }
  .hero-ed__actions .btn { flex: 1; }
  .footer-rich__inner { gap: 32px; }
  .footer-rich__cols { gap: 40px; }
}

@media (max-width: 460px) {
  .amenities { grid-template-columns: 1fr; }
  .land__stats { gap: 24px; }
}
