/* Nation Home Builders — core stylesheet */

:root {
  --ink: #1b1e21;
  --ink-soft: #3d4348;
  --muted: #6f757b;
  --line: #e4e2de;
  --paper: #ffffff;
  --sand: #f6f4f1;
  --sand-deep: #ece7e1;
  --accent: #547d88;
  --accent-deep: #365e68;
  --shadow: 0 18px 45px rgba(27, 30, 33, .10);
  --shadow-sm: 0 6px 18px rgba(27, 30, 33, .07);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gut: 28px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */

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

.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #c8ccd0; }
.section--ink h2, .section--ink h3 { color: #fff; }

.head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.head--left { margin-left: 0; text-align: left; }
.head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 .9rem;
}
.section--ink .eyebrow { color: #bcd3d6; }

.rule { width: 58px; height: 1px; background: var(--line); border: 0; margin: 1.4rem auto 1.6rem; }
.head--left .rule { margin-left: 0; }
.section--ink .rule { background: rgba(255,255,255,.24); }

.lede { font-size: 1.16rem; color: var(--ink-soft); }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 17px 38px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-indent: .16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn + .btn { margin-left: 12px; }
.btn--primary { background: var(--accent-deep); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.textlink {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.textlink:hover { color: var(--accent-deep); }

/* ---------- header ---------- */

.topbar { height: 5px; background: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__tag {
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a.is-active { border-bottom-color: var(--accent); color: var(--accent-deep); }
.nav .btn { color: #fff; border-bottom: 0; }
.nav .btn:hover { border-bottom: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* transparent header over hero */
.site-header--overlay {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: rgba(255,255,255,.18);
}
.site-header--overlay .brand__name,
.site-header--overlay .nav a { color: #fff; }
.site-header--overlay .brand__tag { color: rgba(255,255,255,.7); }
.site-header--overlay .nav-toggle { border-color: rgba(255,255,255,.5); }
.site-header--overlay .nav-toggle span,
.site-header--overlay .nav-toggle span::before,
.site-header--overlay .nav-toggle span::after { background: #fff; }
.site-header--overlay.is-stuck {
  position: fixed;
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
  animation: dropin .35s ease;
}
.site-header--overlay.is-stuck .brand__name,
.site-header--overlay.is-stuck .nav a { color: var(--ink); }
.site-header--overlay.is-stuck .brand__tag { color: var(--muted); }
.site-header--overlay.is-stuck .nav-toggle { border-color: var(--line); }
.site-header--overlay.is-stuck .nav-toggle span,
.site-header--overlay.is-stuck .nav-toggle span::before,
.site-header--overlay.is-stuck .nav-toggle span::after { background: var(--ink); }

@keyframes dropin { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 150px 0 90px;
  color: #fff;
  background: var(--ink) center/cover no-repeat;
  isolation: isolate;
}
.hero--tall { min-height: 88vh; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,18,20,.60) 0%, rgba(16,18,20,.54) 45%, rgba(16,18,20,.70) 100%);
  z-index: -1;
}
.hero__inner { max-width: 860px; }
.hero--center { text-align: center; }
.hero--center .hero__inner { margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 620px; }
.hero--center p { margin-left: auto; margin-right: auto; }
.hero .eyebrow { color: #fff; opacity: .82; }
.hero__actions { margin-top: 34px; }

.hero-strip {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
}
.hero-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  align-items: center;
  justify-content: space-between;
}
.hero-strip span {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* page banner (interior pages) */
.pagehead {
  position: relative;
  padding: 96px 0 84px;
  background: var(--ink) center/cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.pagehead::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,20,.68), rgba(16,18,20,.58));
  z-index: -1;
}
.pagehead h1 { color: #fff; margin-bottom: .2em; }
.pagehead p { color: rgba(255,255,255,.86); max-width: 640px; margin: 0 auto; }
.pagehead .eyebrow { color: #fff; opacity: .8; }

.crumbs {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 30px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .45em; }
.card__body p { color: var(--muted); font-size: .97rem; }
.card__body .textlink { margin-top: auto; padding-top: 18px; align-self: flex-start; }

.tile {
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 100%;
}
.tile--plain { background: transparent; border: 0; padding: 0; }
.tile__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: .35em;
}
.tile h3 { font-size: 1.22rem; }
.tile p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

.icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---------- split blocks ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media--stack img:first-child { grid-row: span 2; height: 100%; }

.framed { position: relative; }
.framed::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--accent);
  z-index: -1;
}

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats > div { padding: 14px; }
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1;
}
.section--ink .stats strong { color: #fff; }
.stats span {
  display: block;
  margin-top: 12px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .stats span { color: rgba(255,255,255,.6); }

/* ---------- process steps ---------- */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--accent-deep);
  line-height: 1;
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- gallery ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 42px;
}
.filters button {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all .2s ease;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: var(--sand-deep);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px 18px;
  background: linear-gradient(0deg, rgba(16,18,20,.86), rgba(16,18,20,0));
  color: #fff;
}
.gallery figcaption strong { display: block; font-family: var(--serif); font-size: 1.14rem; font-weight: 500; }
.gallery figcaption span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.gallery figure[hidden] { display: none; }

/* ---------- quotes ---------- */

.quote {
  background: #fff;
  border: 1px solid var(--line);
  padding: 38px 34px;
  border-radius: 2px;
  height: 100%;
}
.quote p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.6; color: var(--ink); }
.quote footer { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; font-size: .95rem; }
.quote small { color: var(--muted); font-size: .82rem; }
.stars { color: var(--accent); letter-spacing: .18em; font-size: .9rem; margin-bottom: 14px; }

/* ---------- accordion ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 44px 24px 0; margin: 0; }

/* ---------- forms ---------- */

.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,179,173,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #a9aeb3; }
.form-note { font-size: .84rem; color: var(--muted); }

.form-status {
  border-radius: 2px;
  padding: 16px 18px;
  font-size: .94rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #edf9f8; border: 1px solid #a9e2df; color: #0a6b67; }
.form-status.is-error { background: #fdf1f0; border: 1px solid #f0c4c0; color: #a33a31; }
.form-status.is-busy { background: var(--sand); border: 1px solid var(--line); color: var(--muted); }

.infocard {
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 34px 30px;
  border-radius: 2px;
}
.infocard + .infocard { margin-top: 24px; }
.infocard dl { margin: 0; }
.infocard dt {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
}
.infocard dt:first-child { margin-top: 0; }
.infocard dd { margin: 6px 0 0; color: var(--ink); font-size: 1.02rem; }

/* ---------- cta band ---------- */

.cta {
  position: relative;
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--ink) center/cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(16,18,20,.72);
  z-index: -1;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.86); max-width: 620px; margin: 0 auto 32px; }
.cta .eyebrow { color: #fff; opacity: .8; }

.center-cta { text-align: center; margin-top: 46px; margin-bottom: 0; }
.footer-blurb { margin-top: 22px; max-width: 330px; }
.footer-cta { margin-top: 20px; }

/* ---------- logos / trust ---------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  justify-content: center;
  align-items: center;
}
.trust span {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer { background: #16191c; color: #9aa1a7; padding: 76px 0 0; font-size: .95rem; }
.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer a { color: #9aa1a7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #6f767c; }
.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .84rem;
  color: #6f767c;
}
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .2s ease;
}
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- misc ---------- */

.badge {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
  background: #edf9f8;
  border: 1px solid #cbeceb;
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--ink); font-weight: 600; width: 40%; }
.spec-table td { color: var(--muted); }
.spec-table + .infocard { margin-top: 34px; }
.spec-table + .form-note { margin-top: 20px; }

.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 16px; top: 16px; color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 1100px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 26px;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { color: var(--ink) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .btn { margin: 14px 0 0; color: #fff !important; text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .framed::before { display: none; }
  .hero { padding: 120px 0 76px; min-height: 0; }
  .hero--tall { min-height: 0; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .step__num { font-size: 2rem; }
}

@media (max-width: 560px) {
  :root { --gut: 20px; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn + .btn { margin-left: 0; margin-top: 12px; }
  .hero__actions { display: flex; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}

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

/* Clear navigation, compact process facts, and usable document examples. */
.site-header .brand { min-width: 0; max-width: 240px; }
.nav-toggle { flex-shrink: 0; }
.nav { gap: 20px; }
.nav a { white-space: nowrap; }
.nav .btn { padding: 14px 20px; flex-shrink: 0; }
.site-header--overlay.is-stuck .nav .btn { color: #fff; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
.section--ink :focus-visible, .pagehead :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 110px; }
.process-page .pagehead { padding: 48px 0; }
.process-page .pagehead .btn { margin-top: 22px; }
.pagehead .hero-note { font-size: .88rem; margin-top: 12px; }
.process-page .section { padding: 48px 0; }
.process-overview h2 { font-size: 2rem; }
.process-map { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 26px 0 18px; border: 1px solid var(--line); }
.process-map li { margin: 0; }
.process-map a { display: flex; flex-direction: column; height: 100%; padding: 18px 14px; border-right: 1px solid var(--line); color: var(--ink); }
.process-map li:last-child a { border-right: 0; }
.process-map a:hover { background: var(--sand); }
.process-map span { color: var(--accent-deep); font-family: var(--serif); font-size: 1.6rem; }
.process-map strong { font-size: .92rem; }
.process-map small { font-size: .8rem; color: #52585e; }
.process-page .step { grid-template-columns: 70px 1fr; gap: 24px; padding: 30px 0; }
.process-page .step p { max-width: 76ch; }
.process-page .step .checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 20px 0 0; }
.process-page .step .checklist li { margin: 0; font-size: .96rem; }
.document-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.document-intro + .center-cta { margin: 24px 0 36px; }
.contact-layout { align-items: start; }
.contact-page .section { padding: 48px 0; }
.document-example { border-top: 1px solid var(--line); padding: 30px 0; }
.document-example dl { margin: 20px 0; }
.document-example dt { font-weight: 600; color: var(--ink); }
.document-example dd { margin: 0 0 14px; }
@media (max-width: 1100px) {
  .nav a { white-space: normal; }
  .nav .btn { padding: 14px 20px; }
  .process-map { grid-template-columns: repeat(3, 1fr); }
  .process-map a { border-bottom: 1px solid var(--line); }
  .process-map li:nth-child(3n) a { border-right: 0; }
  .process-map li:nth-child(n+4) a { border-bottom: 0; }
}
@media (max-width: 560px) {
  .site-header .container { gap: 16px; }
  .process-map { grid-template-columns: repeat(2, 1fr); }
  .process-map li:nth-child(3n) a { border-right: 1px solid var(--line); }
  .process-map li:nth-child(2n) a { border-right: 0; }
  .process-map li:nth-child(4) a { border-bottom: 1px solid var(--line); }
  .process-map a { min-height: 120px; }
  .process-map strong, .process-map small { overflow-wrap: anywhere; }
  .process-page .step { grid-template-columns: 42px 1fr; gap: 14px; }
  .process-page .step .checklist { grid-template-columns: 1fr; }
  .document-page .textlink { letter-spacing: .06em; }
}

.imagery-note { font-size: .8rem; line-height: 1.6; max-width: 330px; }

/* Memphis community-development pages and grouped intake. */
.handoff-head { background: var(--ink); padding: 64px 0; }
.handoff-head h1 { max-width: 1000px; font-size: clamp(2.1rem,4vw,3.9rem); }
.handoff-head p { max-width: 760px; }
.scope-line { margin-top: 28px; color: var(--muted); }
.notice { border-left: 4px solid var(--accent-deep); padding: 16px 20px; background: var(--sand); }
.form fieldset { border: 1px solid var(--line); padding: 22px; min-width: 0; display: grid; gap: 20px; }
.form legend { font-weight: 600; padding: 0 8px; }
[hidden] { display: none !important; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .9rem; line-height: 1.6; }
.consent input { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }
@media (min-width: 1101px) { .nav { gap: 14px; } .nav a { font-size: .66rem; letter-spacing: .06em; } }
@media (max-width: 1100px) { .nav { max-height: calc(100dvh - 95px); overflow-y: auto; gap: 0; } }

.license-summary { margin-top: 28px; font-weight: 600; }
.license-summary a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px; }
.license-summary span { font-size: .84rem; font-weight: 400; color: var(--muted); }

/* Official supplied artwork; crop its surrounding white canvas in layout only. */
.brand__mark { display: block; position: relative; width: 230px; max-width: 100%; aspect-ratio: 3.2; overflow: hidden; background: #fff; border-radius: 2px; }
.brand__mark img { position: absolute; width: 140%; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.site-header .brand { flex-shrink: 0; }
.site-footer .brand { align-items: flex-start; }
@media (max-width: 480px) { .site-header .brand__mark { width: 208px; } }
