/* ============================================================================
   Black Canyon Homes
   Content lives in data/site-content.js — you shouldn't need to edit this file.

   Design language: one geometric sans at several weights, flat edges, large
   photography, generous vertical rhythm. Gold from the logo used sparingly as
   an accent; near-black carries the structure.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens --
   Semantic roles, not ad-hoc colors. Roughly 75% warm neutrals, 20% near-black
   typography, 5% brass. Gold is jewelry: eyebrows, hairlines, hover states and
   the logo — never a background fill.
   -------------------------------------------------------------------------- */
:root {
  /* backgrounds */
  --bg-primary:    #faf9f6;   /* warm white — the default surface */
  --bg-secondary:  #f3f0e9;   /* soft ivory — alternating sections */
  --bg-stone:      #e7e3dc;   /* light stone — quieter panels */
  --bg-dark:       #181816;   /* near-black — strategic statement sections */

  /* type */
  --text-primary:   #1b1b19;
  --text-secondary: #6f6b64;
  --text-tertiary:  #928d84;
  --text-on-dark:   rgba(250,249,246,.78);

  /* brand */
  --brand-gold:       #ad9258;  /* muted brass */
  --brand-gold-hover: #967c46;
  --brand-gold-soft:  rgba(173,146,88,.28);

  /* supporting neutrals */
  --accent-taupe: #a79e91;
  --accent-sage:  #7e8474;

  /* borders */
  --border-light: #e0dbd2;
  --border-dark:  rgba(250,249,246,.14);

  /* legacy aliases kept so existing rules stay readable */
  --ink:        var(--text-primary);
  --ink-2:      var(--bg-dark);
  --ink-3:      #33322e;
  --muted:      var(--text-secondary);
  --faint:      var(--text-tertiary);
  --gold:       var(--brand-gold);
  --gold-mid:   var(--brand-gold);
  --paper:      var(--bg-primary);
  --paper-2:    var(--bg-secondary);
  --line:       var(--border-light);

  /* rhythm */
  --sp:         clamp(4.5rem, 9vw, 8rem);   /* section padding */
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --shell:      1280px;
  --head-h:     84px;

  --ease:       cubic-bezier(.22,.61,.36,1);
}

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

/* A `display` rule beats the hidden attribute, and several blocks below set
   display explicitly. Keep hidden meaning hidden. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-3);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.12; }
p { margin: 0 0 1.15em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ type scale -- */
.display {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
}
.h-lg {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.h-sm { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow-light { color: var(--gold-mid); }

.prose { color: var(--muted); max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.btn-sm { padding: .7rem 1.35rem; font-size: .7rem; letter-spacing: .14em; }
.btn-block { width: 100%; }

/* Primary: near-black. Secondary: outlined. Gold stays out of button fills —
   it appears only as the hairline on the rare accent CTA. */
.btn-solid { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.btn-solid:hover { background: #000; border-color: #000; }

.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: #fff; }

/* Reserved for a single high-value CTA, not general use. */
.btn-accent { background: transparent; color: var(--brand-gold-hover); border-color: var(--brand-gold); }
.btn-accent:hover { background: var(--brand-gold); color: #fff; border-color: var(--brand-gold); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.linkbtn {
  display: inline-block; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-primary);
  border-bottom: 1px solid var(--accent-taupe); padding-bottom: 3px; margin-bottom: 1.75rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.linkbtn:hover { color: var(--brand-gold-hover); border-bottom-color: var(--brand-gold); }

/* -------------------------------------------------------- sample notice --- */
.sample-banner {
  position: relative; z-index: 200;
  background: var(--bg-dark); color: var(--text-on-dark);
  border-bottom: 1px solid var(--brand-gold-soft);
  text-align: center; padding: .7rem 1rem;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
}

/* ------------------------------------------------------------------ head -- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.head-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { height: 54px; width: auto; transition: opacity .3s var(--ease); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-size: 1.2rem; font-weight: 500; letter-spacing: .01em; }
.brand-sub { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-mid); }

.nav { display: flex; gap: 2.25rem; }
.nav a {
  font-size: .8rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.88); padding: .4rem 0; position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold-mid); transition: right .3s var(--ease);
}
.nav a:hover::after { right: 0; }

.head-actions { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.head-phone {
  font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  color: #fff; transition: color .25s var(--ease);
}
.head-phone:hover { color: var(--gold-mid); }

.head-cta { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.head-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; padding: 0; position: relative;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%; background: #fff;
  position: absolute; left: 0; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* solid state, once scrolled past the hero */
.site-head.solid { background: var(--paper); border-bottom-color: var(--line); }
.site-head.solid .nav a { color: var(--muted); }
.site-head.solid .nav a:hover { color: var(--ink); }
.site-head.solid .head-phone { color: var(--ink); }
.site-head.solid .head-cta { color: var(--ink); border-color: var(--ink); }
.site-head.solid .head-cta:hover { background: var(--ink); color: #fff; }
.site-head.solid .nav-toggle span { background: var(--ink); }
.site-head.solid .brand-main { color: var(--ink); }

/* logo swap: white wordmark over the hero, dark wordmark once solid */
.brand .logo-dark { display: none; }
.site-head.solid .brand .logo-light { display: none; }
.site-head.solid .brand .logo-dark { display: block; }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  margin-top: calc(var(--head-h) * -1);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Lighter than a typical hero scrim — just enough to hold white type at the
   bottom edge, leaving most of the photograph untinted. */
/* Weighted to the left, behind the type, rather than a heavy bottom band —
   that kept the headline legible but flattened the green out of the photo,
   which is the whole reason the photo is there. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,11,13,.78) 0%, rgba(10,11,13,.46) 38%, rgba(10,11,13,.06) 68%, rgba(10,11,13,0) 100%),
    linear-gradient(to bottom, rgba(10,11,13,.34) 0%, rgba(10,11,13,0) 24%, rgba(10,11,13,.30) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: calc(var(--head-h) + 3rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}
.hero .display { color: #fff; max-width: 15ch; }
.hero-sub {
  color: rgba(255,255,255,.94); max-width: 48ch;
  text-shadow: 0 1px 18px rgba(10,11,13,.5);
  font-size: clamp(1rem, 1.5vw, 1.2rem); margin: 1.75rem 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.75rem; }
.hero .btn-solid { background: #fff; color: var(--text-primary); border-color: #fff; }
.hero .btn-solid:hover { background: var(--bg-secondary); border-color: var(--bg-secondary); }

/* No hero photo supplied yet — run the whole hero light rather than showing a
   large dark block. Reverts to the white-on-photograph treatment automatically
   as soon as community.heroImage is set. */
.no-hero-photo .hero { background: var(--paper-2); min-height: min(78vh, 760px); }
.no-hero-photo .hero-scrim { display: none; }
.no-hero-photo .hero .display { color: var(--ink); }
.no-hero-photo .hero-sub { color: var(--muted); }
.no-hero-photo .hero .ph { background: transparent; color: #b6b2a9; }
.no-hero-photo .hero .btn-solid { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.no-hero-photo .hero .btn-solid:hover { background: #000; border-color: #000; }
.no-hero-photo .hero .btn-outline-light { color: var(--text-primary); border-color: var(--text-primary); }
.no-hero-photo .hero .btn-outline-light:hover { background: var(--text-primary); color: #fff; }
.no-hero-photo .eyebrow-light { color: var(--brand-gold-hover); }

.hero-offer {
  position: absolute; z-index: 3; top: calc(var(--head-h) + 2rem); right: 0;
  background: rgba(24,24,22,.88); color: #fff;
  border-left: 2px solid var(--brand-gold);
  padding: .85rem 1.7rem;
  font-size: .72rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  max-width: min(90%, 30rem);
}

/* --------------------------------------------------------------- factbar -- */
/* Light band. The gold rule along the top is the accent; the numbers carry
   the weight in near-black. */
.factbar { background: var(--bg-primary); border-top: 1px solid var(--brand-gold); border-bottom: 1px solid var(--border-light); }
.factbar-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-top: 2.5rem; padding-bottom: 2.5rem;
}
.fact { padding-right: 1.5rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; padding-right: 0; }
.fact span {
  display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .5rem;
}
.fact strong { display: block; font-size: 1.35rem; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.fact-lead strong { font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 500; }

/* -------------------------------------------------------------- sections -- */
.sec { padding: var(--sp) 0; }
.sec-paper { background: var(--bg-secondary); }
.sec-stone { background: var(--bg-stone); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head-center { justify-content: center; text-align: center; }
.sec-head-center .h-lg { max-width: 20ch; margin: 0 auto; }
.sec-note { color: var(--muted); max-width: 34ch; margin: 0; font-size: .95rem; text-align: right; }

/* ----------------------------------------------------- split compositions -- */
.split {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-media { order: 1; }
.split-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.split-actions .linkbtn { margin-bottom: 0; }

.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- grids -- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ----------------------------------------------------------------- cards -- */
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2);
  margin-bottom: 1.5rem;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.045); }

.card-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,.94); color: var(--ink);
  padding: .42rem .85rem; border-radius: 2px;
  font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.card-tag.sold { background: var(--bg-dark); color: #fff; }
.card-tag.building { background: var(--bg-stone); color: var(--text-primary); }

.card-price { font-size: 1.5rem; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.card-title { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin: .35rem 0 .2rem; }
.card-sub { font-size: .88rem; color: var(--muted); }
.card-plan { font-size: .82rem; color: var(--muted); margin-top: .55rem; }
.card-plan b { color: var(--ink); font-weight: 500; }

.spec-row {
  display: flex; flex-wrap: wrap; gap: .3rem 1.4rem;
  margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.spec-row b { color: var(--ink); font-weight: 500; }
.card .linkbtn { margin: 0; align-self: flex-start; }

/* placeholder shown until a real photo is supplied */
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; text-align: center; padding: 1rem;
  background: #e9e8e4; color: #9a978f;
}
.ph svg { width: 30px; height: 30px; opacity: .55; }
.ph span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.ph small { font-size: .64rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .75; }
.hero .ph { background: var(--ink-2); color: rgba(255,255,255,.4); }

/* ----------------------------------------------------------------- steps -- */
/* Numerals are light-weight near-black; the brass hairline beneath them is the
   only gold here. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.step-n {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem); font-weight: 300; line-height: 1;
  color: var(--text-primary); letter-spacing: -.03em;
  padding-bottom: 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--brand-gold-soft);
}
.step h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: .75rem; color: var(--ink); }
.step p { margin: 0; font-size: .98rem; color: var(--muted); }

/* -------------------------------------------------------------- ticklist -- */
.ticklist { margin: .5rem 0 2rem; }
.ticklist li {
  padding: 1.05rem 0 1.05rem 2rem; border-bottom: 1px solid var(--line);
  position: relative; color: var(--muted);
}
.ticklist li:first-child { border-top: 1px solid var(--line); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 1.75rem;
  width: 10px; height: 1px; background: var(--accent-taupe);
}
.area-addr { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- quotes -- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3vw, 3rem); }
.quote { background: var(--paper); padding: clamp(1.75rem, 3vw, 2.5rem); }
.quote p { font-size: 1rem; color: var(--muted); }
.quote cite {
  display: block; font-style: normal; font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); margin-top: 1.25rem;
}

/* --------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-lede { margin-bottom: 2.5rem; }
.contact-rows { border-top: 1px solid var(--line); }
.contact-row {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.contact-row .lbl { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.contact-row .val { color: var(--ink); }
.contact-row a.val:hover { color: var(--gold); }
.contact-row .val-lg { font-size: 1.5rem; font-weight: 400; }

.form-panel { background: var(--paper-2); padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem .95rem;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 118px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }
.form-msg {
  display: none; padding: .95rem 1.1rem; margin-bottom: 1.25rem;
  border-radius: 2px; font-size: .92rem;
}
.form-msg.show { display: block; }
.form-msg.ok  { background: #edf5ee; color: #24603a; border: 1px solid #c5e0cd; }
.form-msg.err { background: #fbeeec; color: #8a2f26; border: 1px solid #eecac5; }

/* ---------------------------------------------------------------- footer -- */
/* One of two deliberate black moments on the page. It carries the logo in its
   original black-and-gold form. */
.site-foot {
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.25rem; font-size: .92rem;
}
.foot-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border-dark);
}
.site-foot h3 {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(250,249,246,.45); margin-bottom: 1.35rem; font-weight: 400;
}
.site-foot a { color: var(--text-on-dark); transition: color .2s var(--ease); }
.site-foot a:hover { color: var(--brand-gold); }
.foot-col li { margin-bottom: .7rem; }
.foot-brand p { margin-top: 1.35rem; max-width: 32ch; color: rgba(250,249,246,.55); }
.foot-logo { height: 66px; width: auto; }
.foot-bottom {
  padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(250,249,246,.38);
}
.foot-bottom p { margin: 0; }
.eho { display: flex; align-items: center; gap: .6rem; }
.eho svg { width: 22px; height: 22px; fill: rgba(250,249,246,.38); flex-shrink: 0; }

/* ------------------------------------------------- full-width photo band -- */
.band { position: relative; height: clamp(300px, 42vw, 520px); overflow: hidden; background: var(--bg-stone); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .ph { position: absolute; inset: 0; }

/* ------------------------------------------- black statement / final CTA -- */
.statement { background: var(--bg-dark); color: var(--text-on-dark); text-align: center; }
.statement .eyebrow { color: var(--brand-gold); }
.statement h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.statement p { max-width: 54ch; margin: 1.75rem auto 0; color: rgba(250,249,246,.68); }
.statement .btn-solid { background: #fff; color: var(--text-primary); border-color: #fff; margin-top: 2.75rem; }
.statement .btn-solid:hover { background: var(--bg-secondary); border-color: var(--bg-secondary); }

/* ------------------------------------------------------------ scroll-in --- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
  .grid-3, .steps, .quotes { grid-template-columns: repeat(2, 1fr); }
  .factbar-inner { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .fact:nth-child(3n) { border-right: 0; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
}

@media (max-width: 900px) {
  .nav, .head-phone { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { color: var(--ink); font-size: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-text, .split-reverse .split-media { order: initial; }
  .frame { aspect-ratio: 4 / 3; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sec-note { text-align: left; }
  .sec-head-center { align-items: center; }
}

@media (max-width: 640px) {
  :root { --head-h: 70px; }
  .grid-3, .steps, .quotes { grid-template-columns: 1fr; }
  .factbar-inner { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; padding-right: 0; }
  .fact-lead { grid-column: 1 / -1; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .foot-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: .25rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-offer { top: auto; bottom: 0; right: auto; left: 0; max-width: 100%; width: 100%; text-align: center; }
  .brand img { height: 44px; }
}

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