/* metric-matched fallback fonts: lock line-box to web font to prevent swap CLS */
@font-face{font-family:'Mulish Fallback';src:local('Arial'),local('Liberation Sans'),local('Roboto'),local('DejaVu Sans');ascent-override:100.5%;descent-override:25%;line-gap-override:0%;size-adjust:96.4%}
@font-face{font-family:'Newsreader Fallback';src:local('Times New Roman'),local('Liberation Serif'),local('DejaVu Serif'),local('Georgia');ascent-override:73.5%;descent-override:26.5%;line-gap-override:0%;size-adjust:95.2%}
/* ════════════════════════════════════════════════════════════════
   KEYSTONE HOMES — BRAND TOKENS (from Branding Guide Rev.)
   ────────────────────────────────────────────────────────────────
   Navy ............ #1C355E   (PMS 534C — primary)
   Slate Blue ...... #758592   (PMS 7544C — secondary cool)
   Sand ............ #D8C6BA   (PMS 7528C — warm primary)
   Blush Sand ...... #CAB4A5   (complimentary warm)
   Ivory ........... #FAF7F2   (off-white tint pulled from sand)
   Bone ............ #F1ECE3
   Ink ............. #0F1E36   (deep navy for text contrast)

   Typeface: Brandon Grotesque  (substituted: Mulish — closest free)
   Headlines:   BOLD, ALL CAPS, 200 kerning
   Body:        Regular, 75 kerning, 21 leading
   ════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #1C355E;
  --navy-deep:   #142647;
  --ink:         #0F1E36;
  --slate:       #758592;
  --slate-soft:  #A6B0BA;
  --sand:        #D8C6BA;
  --blush:       #CAB4A5;
  --ivory:       #FAF7F2;
  --bone:        #F1ECE3;
  --line:        #E5DED2;
  --white:       #FFFFFF;
  --body:        #3F4754;
  --mute:        #6F7682;

  --sans: 'Mulish', 'Mulish Fallback', 'Brandon Grotesque', system-ui, -apple-system, sans-serif;

  --tk-display: 0.2em;   /* headline letter-spacing */
  --tk-eyebrow: 0.32em;
  --tk-body:    0.005em;
  --lh-tight:   1.05;
  --lh-body:    1.65;

  --max:        1320px;
  --pad-x:      clamp(2rem, 4vw, 3.25rem);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  letter-spacing: var(--tk-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Re-usable type rules ────────────────────────────────────────── */
.kicker, .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tk-eyebrow);
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.kicker::before, .eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--sand);
}
.eyebrow.on-dark { color: var(--sand); }
.eyebrow.on-dark::before { background: rgba(216,198,185,0.5); }

.display {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  color: var(--navy);
}
.display.on-dark { color: var(--ivory); }

h1.display { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2.display { font-size: 42px; text-wrap: balance; }
h3.display { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: 0.15em; }

.lede {
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--body);
  max-width: 56ch;
}
.lede.on-dark { color: rgba(250,247,242,0.78); }

.prose {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  color: var(--body);
}
.prose.on-dark { color: rgba(250,247,242,0.7); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ════════════════════════════════════════  TICKER  */
.ticker {
  background: var(--navy);
  color: var(--ivory);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 220;
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: tickerScroll 42s linear infinite;
  padding-left: 3.5rem;
}
.ticker-track span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.92);
}
.ticker-track .dot {
  color: var(--sand);
  opacity: 0.55;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════  NAV  */
nav.site {
  position: sticky;
  top: 0;
  z-index: 210;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(28,53,94,0.06);
  transition: box-shadow .25s, background .25s;
}
nav.site.scrolled {
  box-shadow: 0 8px 32px -16px rgba(28,53,94,0.18);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 86px;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 64px;
  background: url('kh-icon.svg') center/contain no-repeat;
  flex-shrink: 0;
}
.brand-words {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-sub {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--slate);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ─── Dropdown nav ───────────────────────────────────── */
.nav-links li { position: relative; }
.nav-links .chev {
  width: 10px; height: 6px; display: inline-block;
  margin-left: 4px; vertical-align: middle;
  transition: transform .2s;
  stroke: currentColor; fill: none;
}
.has-dropdown:hover .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--navy);
  border-radius: 4px;
  list-style: none;
  min-width: 190px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  box-shadow: 0 12px 32px -4px rgba(0,0,0,0.28);
  z-index: 300;
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--navy);
}
.nav-dropdown li a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.8) !important;
  white-space: nowrap;
  border-bottom: none !important;
  transition: color .15s, background .15s;
  position: relative;
}
.nav-dropdown li a:hover { color: var(--ivory) !important; background: rgba(255,255,255,0.08); }
.nav-dropdown li a::after { display: none !important; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }
.btn-ghost-light {
  background: transparent; color: var(--ivory);
  border-color: rgba(250,247,242,0.45);
}
.btn-ghost-light:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn-sand {
  background: var(--sand); color: var(--navy);
}
.btn-sand:hover { background: var(--blush); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 4px;
  transition: border-color .2s;
}
.btn-link::after { content: '→'; font-size: 0.95rem; transition: transform .2s; }
.btn-link:hover { border-color: var(--navy); }
.btn-link:hover::after { transform: translateX(3px); }
.btn-link.on-dark { color: var(--sand); border-color: rgba(216,198,185,0.4); }
.btn-link.on-dark:hover { color: var(--ivory); border-color: var(--ivory); }

/* ════════════════════════════════════════  HERO  */
.hero {
  position: relative;
  background: var(--ivory);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
  min-height: 78vh;
}
.hero-copy { padding: 3rem 0 6rem; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.8rem;
}
.hero-tag::before { content: ''; width: 36px; height: 1.5px; background: var(--slate); opacity: .6; }
.hero-tag .badge {
  background: var(--navy);
  color: var(--ivory);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
}
h1.hero-h1 {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
h1.hero-h1 .accent {
  color: var(--navy);
  position: relative;
  display: inline-block;
}
h1.hero-h1 .accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: var(--sand);
  z-index: -1;
}
h1.hero-h1 .accent-italic {
  font-family: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}
h1.hero-h1 .accent-italic::after { display: none; }
.hero-sub {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--body);
  max-width: 50ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hm-stat { display: flex; flex-direction: column; gap: 4px; }
.hm-stat strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.hm-stat span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}

.hero-media {
  position: relative;
  height: 78vh;
  min-height: 600px;
  margin-right: calc(-1 * var(--pad-x));
}
.hero-media .frame-main {
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  background-image: url('hero-kitchen.jpg');
  background-image: image-set(url('hero-kitchen.webp') type('image/webp'), url('hero-kitchen.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-color: var(--bone);
}
.hero-supports { display: contents; }
.hero-supports .thumb {
  position: absolute;
  background-size: cover;
  background-position: center;
  background-color: var(--bone);
  border: 7px solid var(--ivory);
  box-shadow: 0 30px 60px -28px rgba(28,53,94,0.5);
  transition: transform .35s ease;
  cursor: pointer;
  z-index: 3;
}
.hero-supports .thumb:hover { transform: translateY(-5px) rotate(0); }
.hero-supports .thumb.t-exterior {
  width: 200px;
  height: 150px;
  left: -10%;
  bottom: 12%;
  transform: rotate(-2deg);
}
.hero-supports .thumb.t-aerial {
  width: 260px;
  height: 130px;
  right: -8%;
  bottom: -4%;
  transform: rotate(1.5deg);
  z-index: 4;
}
.hero-supports .thumb.t-meredith {
  width: 130px;
  height: 130px;
  right: -4%;
  top: 14%;
  transform: rotate(-3deg);
}
.hero-floating-card {
  position: absolute;
  top: 6%;
  left: -10%;
  background: var(--white);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 30px 80px -30px rgba(28,53,94,0.4);
  border-radius: 2px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-floating-card .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
}
.hero-floating-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.hero-floating-card .meta {
  font-size: 12px;
  color: var(--body);
  font-weight: 400;
}
.hero-floating-card .swatch {
  width: 100%;
  height: 4px;
  background: var(--sand);
  margin-top: 4px;
}

/* ════════════════════════════════════════  SECTIONS  */
section.band {
  padding: 7rem 0;
  position: relative;
}
section.band.tight { padding: 5rem 0; }
section.band.ivory { background: var(--ivory); }
section.band.bone  { background: var(--bone); }
section.band.navy  { background: var(--navy); color: var(--ivory); }
section.band.navy-deep { background: var(--navy-deep); color: var(--ivory); }
section.band.sand  { background: var(--sand); color: var(--navy); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  margin-bottom: 4.5rem;
}
.section-head.center .eyebrow,
.section-head.center .kicker { justify-content: center; }
.section-head .lede { margin-top: 0.5rem; }
.section-head .h-actions { display: flex; gap: 0.8rem; justify-content: flex-end; flex-wrap: wrap; }
.section-head h2 { margin-top: 1.2rem; }

/* ════════════════════════════════════════  TWO COMMUNITIES  */
.comm-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.comm-cards {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.comm-card {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.8rem;
  color: var(--ivory);
  transition: transform .4s ease;
}
.comm-card:hover { transform: translateY(-4px); }
.comm-card .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .9s ease;
}
.comm-card:hover .bg { transform: scale(1.05); }
.comm-card .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,30,54,0.55) 0%, rgba(15,30,54,0.0) 22%, rgba(15,30,54,0.0) 38%, rgba(15,30,54,0.5) 64%, rgba(15,30,54,0.95) 100%);
}
.comm-card.comm-card--dark .scrim {
  background:
    linear-gradient(180deg, rgba(15,30,54,0.7) 0%, rgba(15,30,54,0.15) 22%, rgba(15,30,54,0.2) 38%, rgba(15,30,54,0.68) 64%, rgba(15,30,54,0.98) 100%);
}
.comm-card > * { position: relative; z-index: 2; }

.comm-card .tag {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: rgba(15,30,54,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(216,198,185,0.22);
}
.comm-card .tag::before { content: ''; width: 18px; height: 1.5px; background: var(--sand); }
.comm-card h3.name {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.comm-card .start-price {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(250,247,242,0.85);
  margin-bottom: 1.6rem;
}
.comm-card .desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(250,247,242,0.78);
  font-weight: 300;
  margin-bottom: 1.8rem;
  max-width: 44ch;
}

/* ════════════════════════════════════════  WHY BUILD  */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 4rem;
}
.pillar {
  background: var(--white);
  padding: 3rem 2.6rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: var(--navy); }
.pillar .pnum {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.pillar h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.pillar p {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--body);
}

/* ════════════════════════════════════════  HOMES AVAILABLE NOW  */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.listing {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.listing:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(28,53,94,0.25);
}
.listing .photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.listing .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.listing:hover .photo img { transform: scale(1.05); }
.listing .photo .ribbon {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--sand);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.listing .body { padding: 1.6rem 1.7rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.listing .lc-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.listing .lc-addr {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.listing .lc-plan {
  font-size: 16px;
  color: var(--body);
  font-weight: 500;
  margin-bottom: 1rem;
}
.listing .lc-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
.listing .lc-price.special {
  color: #C8362C;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.listing .lc-price.special .special-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: #C8362C;
  padding: 4px 9px;
  border-radius: 2px;
  line-height: 1;
}
.listing .lc-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.lc-spec { display: flex; flex-direction: column; gap: 4px; }
.lc-spec-top { display: flex; align-items: center; gap: 6px; }
.lc-spec-top svg { width: 15px; height: 15px; stroke: var(--navy); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lc-spec strong { font-size: 1.045rem; font-weight: 800; color: var(--navy); line-height: 1; }
.lc-spec span { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.listing .btn-link { align-self: flex-start; margin-top: auto; }

/* ════════════════════════════════════════  FLOORPLANS  */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.fp-card {
  background: var(--white);
  padding: 1.8rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color .2s, transform .2s;
}
.fp-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.fp-thumb {
  aspect-ratio: 4/3;
  background: var(--ivory);
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  position: relative;
  overflow: hidden;
}
.fp-thumb svg { width: 75%; height: 75%; opacity: .9; }
.fp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-card .fp-comm {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
}
.fp-card h4 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.fp-card .fp-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--body);
  margin-top: 0.4rem;
}
.fp-card .fp-stats span strong { color: var(--navy); font-weight: 800; }
.fp-card .fp-cta {
  margin-top: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex; gap: 6px; align-items: center;
}
.fp-card .fp-cta::after { content: '→'; }

/* ════════════════════════════════════════  ABOUT  */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-visual .a-main {
  aspect-ratio: 4/5;
  background-image: url('about-aerial.jpg');
  background-image: image-set(url('about-aerial.webp') type('image/webp'), url('about-aerial.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
}
.about-visual .a-sub {
  position: absolute;
  bottom: -3rem; right: -3rem;
  width: 50%;
  aspect-ratio: 1/1;
  background-image: url('about-kitchen.jpg');
  background-image: image-set(url('about-kitchen.webp') type('image/webp'), url('about-kitchen.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  border: 12px solid var(--ivory);
}
.about-visual .a-chip {
  position: absolute;
  top: -1.5rem; left: -1.5rem;
  background: var(--navy);
  color: var(--ivory);
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-visual .a-chip strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.about-visual .a-chip span {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}

.about-copy h2 { margin-bottom: 2rem; }
.about-copy .prose + .prose { margin-top: 1.4rem; }
.about-copy .btn-link { margin-top: 2.4rem; }

/* ════════════════════════════════════════  OFFER BAND  */
.offer-band {
  background: var(--navy);
  color: var(--ivory);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.offer-band::after {
  content: '';
  position: absolute;
  right: -10%; top: -50%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(216,198,185,0.06), transparent 60%);
}
.offer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.offer-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 1.2rem;
}
.offer-band h2 .accent { color: var(--sand); }
.offer-band p { color: rgba(250,247,242,0.7); max-width: 52ch; font-weight: 300; line-height: 1.7; font-size: 1.02rem; }
.offer-band .offer-cta { display: flex; flex-direction: column; gap: 0.9rem; }

/* ════════════════════════════════════════  FAQ  */
.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}
.faq-q .toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: grid; place-items: center;
  position: relative;
  transition: background .25s, color .25s;
}
.faq-q .toggle::before,
.faq-q .toggle::after {
  content: ''; position: absolute;
  background: var(--navy);
  transition: transform .3s, background .25s;
}
.faq-q .toggle::before { width: 12px; height: 1.5px; }
.faq-q .toggle::after  { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .toggle { background: var(--navy); }
.faq-item.open .faq-q .toggle::before,
.faq-item.open .faq-q .toggle::after { background: var(--ivory); }
.faq-item.open .faq-q .toggle::after { transform: scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-a > div {
  overflow: hidden;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding: 0.8rem 0 1.4rem;
  max-width: 70ch;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--body);
  font-weight: 400;
}

/* ════════════════════════════════════════  CONTACT STRIP  */
.contact-strip {
  background: var(--sand);
  padding: 4rem 0;
  border-top: 1px solid var(--blush);
  border-bottom: 1px solid var(--blush);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.contact-inner h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--navy);
  line-height: 1.15;
}
.contact-inner p {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 400;
  margin-top: 0.6rem;
  opacity: 0.85;
}
.contact-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ════════════════════════════════════════  FOOTER  */
footer.site {
  background: var(--navy-deep);
  color: rgba(250,247,242,0.65);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(250,247,242,0.08);
}
.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  padding: 1rem 1.6rem;
  margin-bottom: 1.6rem;
}
.footer-logo {
  width: 190px;
  height: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.85rem;
  margin-top: 1.4rem;
  line-height: 1.7;
  max-width: 32ch;
}
footer h5 {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.4rem;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
footer ul a {
  font-size: 0.85rem;
  color: rgba(250,247,242,0.7);
  transition: color .2s;
}
footer ul a:hover { color: var(--ivory); }
footer address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(250,247,242,0.7);
}
footer address strong {
  display: block;
  color: var(--ivory);
  font-weight: 700;
  margin-top: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
footer address strong:first-child { margin-top: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(250,247,242,0.45);
}
.footer-socials { display: flex; gap: 1.4rem; align-items: center; }
.footer-socials a {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.5);
  transition: color .2s;
}
.footer-socials a:hover { color: var(--ivory); }
/* Brand social marks: filled paths, so override the stroke-based icon defaults. */
.footer-socials a.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -6px 0;
  border-radius: 50%;
  transition: color .2s, background-color .2s;
}
.footer-socials a.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
  display: block;
}
.footer-socials a.social:hover { color: var(--ivory); background-color: rgba(250,247,242,0.08); }
.footer-socials a.social:focus-visible {
  outline: 2px solid var(--gold, #C9A96E);
  outline-offset: 2px;
  color: var(--ivory);
}

/* ════════════════════════════════════════  REVEAL  */
.r { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.r.v { opacity: 1; transform: none; }

/* ════════════════════════════════════════  RESPONSIVE  */
/* Tablet: tighten nav before mobile collapse */
@media (max-width: 1240px) {
  .nav-inner { gap: 1rem; height: 78px; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.64rem; letter-spacing: 0.14em; }
  .nav-actions { gap: 0.6rem; }
  .nav-actions .btn { padding: 0.75rem 1.05rem; font-size: 0.62rem; letter-spacing: 0.16em; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.2em; }
  .brand-sub { display: none; }
}
@media (max-width: 1060px) {
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 940px) {
  .nav-links { display: none; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { height: 60vh; margin-right: 0; }
  .hero-floating-card { left: 4%; }
  .hero-supports .thumb.t-exterior { width: 130px; height: 100px; left: 4%; bottom: -8%; }
  .hero-supports .thumb.t-aerial { width: 160px; height: 90px; right: 4%; bottom: -4%; }
  .hero-supports .thumb.t-meredith { width: 90px; height: 90px; right: 6%; top: 8%; }

  .section-head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .section-head .h-actions { justify-content: flex-start; }
  .comm-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .comm-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .fp-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual .a-sub { display: none; }
  .offer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .listings-grid, .fp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-meta { flex-wrap: wrap; gap: 1.5rem; }
}

/* ============================================================
   Responsive + overflow hardening — added 2026-06-11
   Eliminates mobile horizontal overflow on process, financing,
   homeowner-portal, contact, warranty, and blog article tables.
   Same stylesheet serves flat + native pages, so both benefit.
   ============================================================ */

/* Data tables inside article / prose / legal bodies scroll within their
   column instead of widening the page. Harmless on desktop (no scrollbar
   when the table is narrower than its container). */
.article-body table,
.prose table,
.legal-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  /* Inline 2-column grids in content bands collapse to a single column.
     !important is required to override grid-template-columns set inline
     in block HTML (financing standard-mortgage / pre-approval,
     homeowner-portal emergency-contacts, etc.). */
  .band .r[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .band .r[style*="display: flex"],
  .band .r[style*="display:flex"] { flex-wrap: wrap; }

  /* Buttons: wrap long uppercase labels rather than forcing nowrap overflow
     (e.g. "Browse Our Communities" in process step-actions was 446px wide). */
  .btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
    letter-spacing: 0.12em;
    padding: 0.85rem 1.2rem;
    line-height: 1.25;
  }

  /* Action rows wrap; primary CTAs go full width for thumb reach. */
  .hero-actions,
  .step-actions,
  .offer-cta,
  .post-actions,
  .app-actions { flex-wrap: wrap; }
  .hero-actions .btn,
  .step-actions .btn,
  .offer-cta .btn { width: 100%; }

  /* Step grid stacks the number above the content. */
  .step-grid { grid-template-columns: 1fr !important; gap: 1.25rem; }

  /* Resource / manufacturer link rows wrap. */
  .resource-links,
  .resource-grid,
  .manufacturer-grid { flex-wrap: wrap; }
}

/* ===== careers page styles (ported from original design) ===== */
.hero-supports .thumb.t-aerial { top: 6%; bottom: auto; right: -4%; }
.breadcrumb { background: var(--ivory); border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--slate); }
.breadcrumb a { color: var(--slate); transition: color .2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li[aria-current] { color: var(--navy); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.85rem; color: var(--sand); font-weight: 400; letter-spacing: 0; }
/* ── Values ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.value-card .vc-num { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sand); }
.value-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.value-card p { font-size: 0.92rem; color: var(--body); line-height: 1.72; }
/* ── Where we work ── */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.loc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 1.8rem 2rem 2.2rem;
  box-shadow: 0 4px 24px -8px rgba(28,53,94,0.10);
}
.loc-card .lc-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.5rem; }
.loc-card h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.loc-card p { font-size: 0.88rem; color: var(--body); line-height: 1.65; }
/* ── Benefits grid ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--line);
}
.benefit-card {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 1.3rem 1.8rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.benefits-grid .benefit-card:nth-child(even) { border-right: none; }
.benefits-grid .benefit-card:nth-last-child(-n+2) { border-bottom: none; }
.benefit-card .bc-icon { width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-card .bc-icon svg { width: 16px; height: 16px; stroke: var(--navy); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.benefit-card .bc-label { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
/* ── Not hiring status ── */
.no-roles-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 0.5rem 1.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.8rem;
}
.status-badge::before { content: ''; width: 8px; height: 8px; background: var(--slate); border-radius: 50%; flex-shrink: 0; }
/* ── Application form ── */
.app-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.4rem 2.6rem 2.8rem;
}
.app-form-wrap .form-intro {
  font-size: 0.9rem; color: var(--body); line-height: 1.65;
  margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}
.app-form-grid { display: flex; flex-direction: column; gap: 1rem; }
.app-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.app-form-row.full { grid-template-columns: 1fr; }
.app-form-field { display: flex; flex-direction: column; gap: 0; }
.app-form-wrap input[type="text"],
.app-form-wrap input[type="email"],
.app-form-wrap input[type="tel"],
.app-form-wrap select,
.app-form-wrap textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--navy); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; color: var(--navy);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.app-form-wrap input::placeholder,
.app-form-wrap textarea::placeholder { color: var(--navy); font-weight: 500; opacity: 0.65; }
.app-form-wrap 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' stroke='%231c2e5e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.app-form-wrap input:focus,
.app-form-wrap select:focus,
.app-form-wrap textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--navy) 12%, transparent);
}
.app-form-wrap textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.app-form-wrap input[type="file"] {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px dashed var(--navy); border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; color: var(--navy);
  background: var(--ivory); cursor: pointer;
}
.app-form-submit-row { display: flex; justify-content: flex-end; padding-top: 0.5rem; }
.form-note { font-size: 0.78rem; color: var(--mute); line-height: 1.6; font-style: italic; }
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-grid .benefit-card:nth-child(even) { border-right: none; }
  .benefits-grid .benefit-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .benefits-grid .benefit-card:last-child { border-bottom: none; }
  .locations-grid { grid-template-columns: 1fr; }
  .app-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Floor-plan tile fix: picture wrapper had no box, collapsing the image. Fill the .fp-thumb 4/3 cell. */
.fp-thumb picture { display: block; width: 100%; height: 100%; }



/* ───────────────  Infill Homes — page-specific  ─────────────── */

/* Intro band */
.infill-intro {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0 3.2rem;
  text-align: center;
}
.infill-intro .eyebrow { justify-content: center; margin-bottom: 1.3rem; }
.infill-intro h1 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-wrap: balance;
}
.infill-intro h1 em {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}
.cedar-credit{display:flex;align-items:center;justify-content:center;gap:0.6rem;margin-top:2rem}.cedar-credit span{font-size:12px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--slate)}.cedar-credit img{height:46px;width:auto;display:block}
.infill-intro p.sub {
  margin: 1.5rem auto 0;
  max-width: 52ch;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--body);
}

/* Stacked full-bleed panels */
.infill-stack { display: block; }
.infill-panel {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(540px, 82vh, 900px);
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.infill-panel .panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.6s ease;
}
.infill-panel:hover .panel-bg { transform: scale(1.06); }

/* image-slot fills the placeholder panel */
.infill-panel .panel-slot {
  position: absolute;
  inset: 0;
}
.infill-panel .panel-slot image-slot { width: 100%; height: 100%; }

/* Legibility scrim */
.infill-panel .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,30,54,0.32) 0%, rgba(15,30,54,0.16) 42%, rgba(15,30,54,0.40) 100%),
    radial-gradient(120% 90% at 50% 42%, rgba(15,30,54,0.30) 0%, rgba(15,30,54,0) 60%);
  pointer-events: none;
}

/* Centered text overlay */
.infill-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}
.infill-address {
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: #FFFFFF;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  text-shadow: 0 2px 30px rgba(15,30,54,0.45);
  text-wrap: balance;
}
.infill-divider {
  width: 52px;
  height: 1.5px;
  background: var(--sand);
  margin: 1.5rem 0;
  opacity: 0.85;
}
.infill-hood {
  font-family: var(--sans);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 20px rgba(15,30,54,0.4);
}
.infill-status {
  margin-top: 1.7rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Brand mark bottom-right, like the reference */
.infill-mark {
  position: absolute;
  right: 2rem;
  bottom: 1.7rem;
  display: flex;
  gap: 3px;
  opacity: 0.9;
  pointer-events: none;
}
.infill-mark span {
  width: 13px; height: 13px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-135deg);
}
.infill-mark span:nth-child(2) { margin-top: 6px; }

@media (max-width: 640px) {
  .infill-panel { height: 74vh; }
  .infill-mark { right: 1.2rem; bottom: 1.2rem; }
}

/* ════════════════════════════════════════════════════════════════
   Tile / card titles: render as authored (sentence case) 2026-07-22
   Was: text-transform: uppercase
   ════════════════════════════════════════════════════════════════ */
.comm-card h3.name,
.pillar h3,
.listing .lc-addr,
.fp-card h4,
.infill-address {
  text-transform: none;
}

/* ════════════════════════════════════════  THANK YOU PAGE  */
.ty-tag { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.6rem; }
.ty-intro { width: 60%; }

/* ── While You Wait cards ── */
.wait-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.wait-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.wait-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.wait-card .wc-title { font-size: 13px; font-weight: 800; color: var(--navy); letter-spacing: 0.1em; text-transform: uppercase; }
.wait-card .wc-body { font-size: 0.9rem; color: var(--body); line-height: 1.75; flex: 1; }
.wait-card .wc-cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--sand); padding-bottom: 3px; width: fit-content;
  margin-top: auto; transition: gap .2s, border-color .2s;
}
.wait-card .wc-cta::after { content: '\2192'; }
.wait-card:hover .wc-cta { gap: 0.8rem; border-color: var(--navy); }

/* ── Model home cards ── */
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.model-card { background: var(--white); border: 1px solid var(--line); padding: 2.4rem 2.6rem 2.8rem; }
.model-card .mc-comm { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 0.55rem; }
.model-card h3 {
  font-size: 1.25rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2;
  margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line);
}
.model-card address { font-style: normal; display: flex; flex-direction: column; gap: 1.1rem; font-size: 0.92rem; color: var(--body); line-height: 1.7; }
.model-card .mc-street { color: var(--ink); font-weight: 600; }
.model-card .mc-hours-label { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: 0.45rem; }
.model-card .mc-hours-row { display: flex; flex-direction: column; gap: 0.2rem; }
.model-card .mc-note { font-size: 0.92rem; color: var(--body); line-height: 1.75; margin-bottom: 1.6rem; }

@media (max-width: 1000px) {
  .ty-intro { width: 100%; }
  .wait-grid { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wait-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════  SITEMAP PAGE  */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.sitemap-section {
  padding: 2.4rem 2.6rem 2.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sitemap-section:nth-child(3n) { border-right: none; }
.sitemap-section.no-border-bottom { border-bottom: none; }
.sitemap-section.full-row { grid-column: 1 / -1; border-right: none; }
.sitemap-section.full-row ul { display: block; columns: 3; column-gap: 3rem; }
.sitemap-section.full-row ul > li,
.sitemap-section.full-row ul > span { break-inside: avoid; }
.sitemap-section.full-row .sub-label:first-of-type { padding-top: 0; }
.sitemap-section h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.sitemap-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.sitemap-section ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  transition: color .15s;
}
.sitemap-section ul li a:hover { color: var(--navy); }
.sitemap-section ul li a::after {
  content: '\2192';
  font-size: 0.78rem;
  color: var(--slate-soft);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.sitemap-section ul li a:hover::after { color: var(--navy); transform: translateX(2px); }
.sitemap-section ul li.sub-item a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
  padding-left: 0.85rem;
  border-left: 2px solid var(--line);
  margin-left: 0.2rem;
}
.sitemap-section ul li.sub-item a:hover { color: var(--navy); border-left-color: var(--sand); }
.sitemap-section ul li.sub-item a::after { display: none; }
.sitemap-section .sub-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-soft);
  display: block;
  padding: 0.7rem 0 0.3rem;
}
.noindex-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 1060px) {
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-section:nth-child(3n) { border-right: 1px solid var(--line); }
  .sitemap-section:nth-child(2n) { border-right: none; }
  .sitemap-section.no-border-bottom { border-bottom: 1px solid var(--line); }
  .sitemap-section.full-row ul { columns: 2; }
}
@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .sitemap-section { border-right: none !important; }
  .sitemap-section.no-border-bottom { border-bottom: 1px solid var(--line); }
  .sitemap-section:last-child { border-bottom: none; }
  .sitemap-section.full-row ul { columns: 1; }
}

/* ════════════════════════════════════════  MOBILE NAV  */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: 400; visibility: hidden; }
.mobile-nav.open { visibility: visible; }
.mobile-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,30,54,0.5);
  opacity: 0; transition: opacity .28s ease;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 380px);
  background: var(--white);
  box-shadow: -12px 0 40px rgba(15,30,54,0.22);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.mobile-nav-title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--slate);
}
.mobile-nav-close {
  width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 30px; line-height: 1; color: var(--navy); cursor: pointer;
  display: grid; place-items: center; border-radius: 6px;
}
.mobile-nav-close:hover { background: var(--bone); }
.mobile-nav-list { list-style: none; padding: 0.5rem 0 0; margin: 0; flex: 1; }
.mobile-nav-list a, .mnav-parent {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 1rem;
  padding: 0.95rem 1.3rem;
  min-height: 48px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
  background: transparent; border: 0; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-list a:hover, .mnav-parent:hover { background: var(--ivory); }
.mnav-parent svg { width: 12px; height: 7px; flex-shrink: 0; transition: transform .25s ease; }
.mnav-item.open .mnav-parent svg { transform: rotate(180deg); }
.mnav-sub { list-style: none; margin: 0; padding: 0; display: none; background: var(--ivory); }
.mnav-item.open .mnav-sub { display: block; }
.mnav-sub a {
  padding-left: 2.3rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--body); text-transform: none;
}
.mobile-nav-actions {
  padding: 1.4rem 1.3rem 2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  border-top: 1px solid var(--line);
}
.mobile-nav-actions .btn { width: 100%; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
}
@media (min-width: 941px) {
  .mobile-nav { display: none; }
}

/* ════════════════════════════════════════  MOBILE OVERFLOW FIXES  */
/* Map card: min-height + aspect-ratio was forcing a 415px width */
@media (max-width: 700px) {
  .ks-explorer .ks-mapcard {
    width: 100%; max-width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1.05;
  }
}
/* Coverage table: cell padding pushed min-content past the viewport */
@media (max-width: 700px) {
  .coverage-table { table-layout: fixed; }
  .coverage-table th, .coverage-table td {
    padding-left: 0.6rem; padding-right: 0.6rem;
    font-size: 0.82rem; word-break: break-word;
  }
  .coverage-table td:first-child,
  .coverage-table td:nth-child(2) { width: auto; }
}

/* ════════════════════════════════════════  MOBILE POLISH  */
@media (max-width: 940px) {
  /* Nav order: logo | CTA | hamburger, grouped right */
  .nav-inner { justify-content: flex-start; gap: 0.6rem; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { margin-left: 0.2rem; }

  /* Hero headline: inline font-size on every page needs overriding */
  h1.hero-h1 { font-size: 50px !important; line-height: 1.08; }

  /* Hero eyebrow: was locked to one line, squashing the badge onto two rows */
  .hero-tag {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    column-gap: 0.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.3rem;
  }
  .hero-tag .badge { white-space: nowrap; }
  .hero-tag::before { width: 22px; }

  /* Vertical rhythm: 7rem bands were 224px of gap between sections */
  section.band { padding: 4rem 0; }
  section.band.tight { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 3rem; }
  .section-head { margin-bottom: 2.5rem; }
  .offer-band, .contact-strip { padding: 3.5rem 0; }
  footer.site { padding-top: 3.5rem; }
  .footer-grid { padding-bottom: 2.5rem; gap: 2.2rem; }
}

/* Infill Homes: sales contact line under the rendering credit */
.infill-contact { margin-top: 1.6rem; text-align: center; }
.infill-contact .ic-intro {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--body);
  margin: 0 auto;
  max-width: 52ch;
}
.infill-contact .ic-line {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.1rem;
  font-size: 0.95rem;
}
.infill-contact .ic-name { font-weight: 700; color: var(--navy); }
.infill-contact .ic-line a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.infill-contact .ic-line a:hover { color: var(--gold, #C9A96E); }
@media (max-width: 560px) {
  .infill-contact .ic-line { flex-direction: column; gap: 0.35rem; }
}

/* Infill Homes: per-project gallery row. Uniform height, natural widths, never cropped. */
.infill-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 1.4rem 2.2rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.infill-gallery .ig-item { margin: 0; line-height: 0; }
.infill-gallery .ig-item picture { display: block; }
.infill-gallery .ig-item img {
  height: clamp(150px, 19vw, 260px);
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
@media (max-width: 700px) {
  .infill-gallery { gap: 0.7rem; padding: 1.2rem 1rem 1.6rem; }
  .infill-gallery .ig-item img { height: auto; width: 100%; }
}
