/* ==========================================================================
   Exurban Development
   ========================================================================== */

:root {
  --bone: #F4F0E8;
  --paper: #EBE5D9;
  --ink: #1F2420;
  --forest: #2F3B33;
  --moss: #5B6650;
  --stone: #8A8478;
  --brass: #A4865A;
  --line: rgba(31, 36, 32, 0.14);
  --line-light: rgba(244, 240, 232, 0.18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --max: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 em, h2 em, p em { font-style: italic; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-dark { background: var(--forest); color: var(--bone); }
.btn-dark:hover { background: var(--ink); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-link { padding-left: 4px; padding-right: 4px; color: var(--ink); }
.btn-link span { transition: transform .3s ease; }
.btn-link:hover span { transform: translateX(4px); }

/* Navigation --------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}

.nav { color: var(--bone); }
.nav.scrolled, .nav-open .nav { color: var(--ink); }
.brand { display: flex; align-items: center; color: inherit; }
.brand svg { display: block; height: 46px; width: auto; transition: height .4s ease; }
.brand .logo-word { display: none; }
.nav.scrolled .brand svg { height: 40px; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); white-space: nowrap; }
.nav-links a {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid currentColor;
  padding: 11px 22px;
  transition: background .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--bone); color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--ink); color: var(--bone); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.2px;
  background: currentColor;
  transition: transform .35s ease, top .35s ease;
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.04);
  animation: heroSettle 2.4s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 24, 21, 0.45) 0%, rgba(20, 24, 21, 0) 22%),
    linear-gradient(0deg, rgba(20, 24, 21, 0.82) 0%, rgba(20, 24, 21, 0.35) 45%, rgba(20, 24, 21, 0) 70%),
    linear-gradient(90deg, rgba(20, 24, 21, 0.45) 0%, rgba(20, 24, 21, 0) 60%);
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter) clamp(40px, 6.5vh, 84px);
}
.hero .eyebrow { color: #D9C29A; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 90px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 em { color: #E4DCC9; }
.hero-lede {
  max-width: 34em;
  font-size: clamp(16px, 1.4vw, 19px);
  margin: 20px 0 32px;
  color: rgba(244, 240, 232, 0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero .btn-link { color: var(--bone); }

/* Statement ---------------------------------------------------------------- */

.statement {
  background: var(--forest);
  color: var(--bone);
  padding: var(--section) 0;
}
.statement-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.32;
  margin: 0;
  text-align: center;
}

/* Section heads ------------------------------------------------------------ */

.section-head { margin-bottom: clamp(56px, 7vw, 96px); }
.section-head h2 { font-size: clamp(40px, 5.6vw, 76px); max-width: 14ch; }
.section-intro { max-width: 36em; margin: 28px 0 0; color: var(--stone); }
.section-head.light .section-intro { color: rgba(244, 240, 232, 0.72); }

/* Approach ----------------------------------------------------------------- */

.approach { padding: var(--section) 0; }
.approach-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.approach-art { margin: 0; }
.approach-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.approach-art figcaption {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--stone);
}
.pillars { display: grid; gap: 0; }
.pillar {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brass);
  line-height: 1.3;
}
.pillar h3 { font-size: 30px; margin-bottom: 10px; }
.pillar p { margin: 0; color: #4A504A; }

/* Regions ------------------------------------------------------------------ */

.regions {
  background: var(--ink);
  color: var(--bone);
  padding: var(--section) 0;
}
.regions h2 em { color: #B9B49E; }
.region-list { list-style: none; margin: 0; padding: 0; }
.region {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) 90px;
  gap: 24px;
  align-items: baseline;
  padding: 34px 0;
  border-top: 1px solid var(--line-light);
  transition: padding-left .4s ease;
}
.region:last-child { border-bottom: 1px solid var(--line-light); }
.region:hover { padding-left: 12px; }
.region-idx { font-size: 12px; letter-spacing: 0.2em; color: var(--brass); }
.region h3 { font-size: clamp(28px, 3vw, 40px); }
.region p { margin: 0; color: rgba(244, 240, 232, 0.66); font-size: 15.5px; }
.region-time {
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(244, 240, 232, 0.8);
}
.footnote { margin: 22px 0 0; font-size: 13px; color: rgba(244, 240, 232, 0.45); }

/* Process ------------------------------------------------------------------ */

.process { padding: var(--section) 0; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 44px);
}
.step { border-top: 1px solid var(--ink); padding-top: 28px; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 26px;
}
.step h3 { font-size: 27px; margin-bottom: 12px; }
.step p { margin: 0; color: #4A504A; font-size: 16px; }

/* Partners ----------------------------------------------------------------- */

.partners {
  background: var(--paper);
  padding: var(--section) 0;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.partner {
  background: var(--paper);
  padding: clamp(34px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  transition: background .4s ease;
}
.partner:hover { background: var(--bone); }
.partner h3 { font-size: 36px; margin-bottom: 16px; }
.partner p { margin: 0 0 32px; color: #4A504A; flex: 1; }
.partner-link {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}
.partner-link span { display: inline-block; transition: transform .3s ease; }
.partner-link:hover span { transform: translateX(4px); }

/* Band --------------------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: clamp(140px, 18vw, 260px) 0;
  text-align: center;
}
.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.band .container { position: relative; }
.band-text { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.band-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.12;
  margin: 0;
}

/* Residences -------------------------------------------------------------- */

.residences { padding: var(--section) 0 clamp(56px, 7vw, 96px); }
.project { margin-bottom: clamp(96px, 12vw, 168px); }

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
}
.zoom img { width: 100%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.zoom:hover img { transform: scale(1.03); }
.zoom:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.project-hero img { aspect-ratio: 2 / 1; object-fit: cover; max-height: 88vh; }

.project-info {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px);
}
.project-meta {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.project h3 { font-size: clamp(36px, 4.4vw, 58px); }
.project-desc > p, .split-copy > p { margin: 0; color: #4A504A; }
.project-facts {
  display: flex;
  gap: 48px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.project-facts dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.project-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-item figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--stone);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split-media img { aspect-ratio: 3 / 2; object-fit: cover; }
.split-copy h3 { margin-bottom: 20px; }

.disclaimer { margin: 0; font-size: 13px; color: var(--stone); }

/* Lightbox ----------------------------------------------------------------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(18, 21, 19, 0.96);
  color: var(--bone);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(18, 21, 19, 0.9); }
.lightbox figure { margin: 0; padding: 0 72px; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; }
.lightbox figcaption { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(244, 240, 232, 0.8); }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--bone);
  font-size: 26px;
  width: 56px; height: 56px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity .2s ease;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 16px; right: 16px; font-size: 38px !important; font-weight: 300; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Ridgeline divider -------------------------------------------------------- */

.ridge { background: var(--bone); line-height: 0; }
.ridge-art { width: 100%; height: clamp(150px, 22vw, 330px); }

/* Inquire ------------------------------------------------------------------ */

.inquire { padding: var(--section) 0; }
.inquire-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.inquire h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 26px; }
.inquire-copy p { color: #4A504A; max-width: 30em; }
.contact-line a {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  word-break: break-word;
}

.form { display: grid; gap: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.field > span em { text-transform: none; letter-spacing: 0; font-style: italic; font-weight: 300; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(31, 36, 32, 0.3);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color .3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  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' fill='none' stroke='%231F2420' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--forest); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-status { margin: 0; min-height: 1.5em; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--moss); }
.hp { position: absolute; left: -9999px; }

/* Footer ------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: rgba(244, 240, 232, 0.75);
  padding: clamp(64px, 8vw, 100px) 0 36px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-logo { width: 220px; height: auto; margin-left: -8px; color: var(--bone); }
.footer-brand p { margin: 22px 0 0; max-width: 24em; }
.footer h4 {
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer-col p { margin: 0; line-height: 1.9; }
.footer a:hover { color: var(--bone); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(244, 240, 232, 0.45);
}

/* Reveal animation --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1020px) {
  .approach-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .region { grid-template-columns: 50px 1fr 80px; }
  .region p { grid-column: 2 / 3; }
  .region-time { grid-column: 3; grid-row: 1; }
  .inquire-grid { grid-template-columns: 1fr; }
  .approach-art img { aspect-ratio: 3 / 2; }
  .project-info { grid-template-columns: 1fr; gap: 20px; }
  .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: var(--bone);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .nav-links a { font-size: 15px; }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
}

@media (max-width: 860px) {
  .partner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand .logo-full { display: none; }
  .brand .logo-word,
  .nav.scrolled .brand .logo-word { display: block; height: 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .region { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 28px 0; }
  .region-idx { grid-column: 1 / -1; }
  .region h3 { grid-column: 1; }
  .region-time { grid-column: 2; grid-row: 2; }
  .region p { grid-column: 1 / -1; }
  .region:hover { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .gallery, .gallery-2 { grid-template-columns: 1fr 1fr; }
  .gallery-item figcaption { font-size: 14px; margin-top: 6px; }
  .project-hero img { aspect-ratio: 4 / 3; }
  .lightbox figure { padding: 0 12px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 16px; transform: none !important; }
}
