/* ===========================================================
   Zach Purdy, REALTOR® — shared stylesheet
   Plain CSS. No framework, no build step, no JavaScript.

   Every text color below is checked against both background
   tones. Minimum contrast in use is 5.6:1 (WCAG AA needs 4.5).
   =========================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-500.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* ---------------------------------------------------------
     Monochrome, built on Coldwell Banker Global Luxury's own
     ink (#0F1921 — sampled from the supplied GL marks).
     Contrast measured on --paper / --band.

       GL ink       #0F1921  17.5   headings, marks, dark bands
       Body         #23282E  14.6   running copy
       Label        #4A5158   7.9   captions, small caps
       Rule         #E3E5E7   1.2   borders only
       On dark:  white 17.8 · body #E8EAEC 14.7 · label #B9BFC4 9.6
     --------------------------------------------------------- */

  /* grounds */
  --paper: #fdfdfc;      /* warm near-white */
  --band:  #0f1921;      /* GL ink — alternating sections invert */
  --band-card: #18242e;  /* lifted surface for cards on a band */

  /* ink */
  --navy:      #0f1921;  /* headings            17.5:1 */
  --navy-deep: #0f1921;  /* solid buttons       17.5:1 */
  --accent:    #0f1921;  /* links, numbers      17.5:1 */
  --bright:    #4a5158;  /* hover               7.9:1  */

  /* text */
  --body:  #23282e;      /* running copy        14.6:1 */
  --label: #4a5158;      /* small caps          7.9:1  */

  /* lines */
  --rule:      #d7dadd;
  --rule-soft: #e6e8ea;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --pad:     clamp(22px, 5vw, 40px);
  --gap:     clamp(56px, 9vw, 112px);
  --measure: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;          /* was 300 — thin type was the readability problem */
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.16;
  margin: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--navy); }
::selection { background: var(--navy); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad);
}
section { padding-block: var(--gap); }

/* Dark inverted section. Re-points the text tokens rather than restating
   every rule, so anything nested inside flips automatically.
   Contrast on Midnight: white 17.8 · body 15.3 · Tide 11.2 — all pass AA. */
.band {
  background: var(--band);
  border-block: 1px solid rgba(255, 255, 255, .14);

  --paper:     var(--band-card);   /* nested cards lift off the band */
  /* NOTE: `color` below is required, not redundant. Bare <p> elements inherit
     an already-resolved color from body{color:var(--body)}; re-pointing --body
     here does not change it. Restating color on .band re-resolves and inherits
     the light value down. Without this line, body copy stays near-black. */
  --navy:      #ffffff;            /* headings          17.8:1 */
  --body:      #e8eaec;            /* running copy      14.7:1 */
  --label:     #b9bfc4;            /* captions           9.6:1 */
  --accent:    #ffffff;            /* eyebrows, links, numbers */
  --rule:      rgba(255, 255, 255, .24);
  --rule-soft: rgba(255, 255, 255, .14);

  color: var(--body);
}
/* Inside a dark band the accent is already white, so hover shifts tone instead. */
.band .arrow-link:hover, .band .arrow-link:focus-visible,
.band .verify a:hover,   .band .verify a:focus-visible { color: var(--label); }

.band .btn-solid { background: #fff; color: var(--band); border-color: #fff; }
.band .btn-solid:hover, .band .btn-solid:focus-visible { background: transparent; color: #fff; }
.band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.band .btn-ghost:hover, .band .btn-ghost:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .08); }

.band .socials a:hover, .band .socials a:focus-visible {
  background: #fff; border-color: #fff; color: var(--band);
}
.band :focus-visible { outline-color: #fff; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Typographic pieces ---------- */
/* Small caps labels: bumped to 12.5px, weight 500, tighter tracking and a
   darker color. Wide letter-spacing at 11px/300 was very hard to read. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: .5;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
}

h1 { font-size: clamp(38px, 6.2vw, 66px); }
h2 { font-size: clamp(29px, 4.2vw, 44px); }
h3 { font-size: clamp(21px, 2.4vw, 26px); }

.lede {
  font-size: clamp(18.5px, 2.1vw, 21px);
  line-height: 1.62;
  color: var(--body);
  max-width: 56ch;
}

.sec-head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 58px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 + p { margin-top: 16px; color: var(--body); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  margin: 6px 10px 6px 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy-deep);
  transition: background .28s ease, color .28s ease, border-color .28s ease;
}
.btn-solid { background: var(--navy-deep); color: #fff; }
.btn-solid:hover, .btn-solid:focus-visible { background: transparent; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy-deep); border-color: var(--rule); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--navy-deep); background: var(--band); }

.arrow-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  transition: color .28s ease;
}
.arrow-link:hover, .arrow-link:focus-visible { color: var(--bright); }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule-soft); background: var(--paper); }
.masthead-inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 24px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-mark { width: 76px; margin: 0 auto 26px; }
.footer-mark { display: block; width: 54px; margin: 0 auto 30px; }
.footer-mark img { width: 100%; }

/* Employing-broker attribution. Arizona R4-28-502(E) requires the employing
   broker be identified in a "clear and prominent manner"; Indiana 876 IAC
   8-1-8 requires the broker company name be "clearly visible". Neither
   specifies placement, but top-of-page removes any argument. */
.broker-marks { display: flex; flex-direction: column; gap: 9px; }
.bm { display: flex; align-items: center; gap: 12px; }
.bm b {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--label);
  width: 18px;
  flex: none;
}
/* Both lockups are ~10:1, so a shared height keeps them optically matched. */
.bm img { height: 20px; width: auto; }

@media (max-width: 620px) {
  .broker-marks { align-items: center; }
  .bm img { height: 17px; }
}
.nav-wrap > summary { display: none; list-style: none; }
/* Suppress the default <details> disclosure triangle globally, not just in the mobile
   media query, so no engine can fall back to it if the burger styles don't apply. */
.nav-wrap > summary::-webkit-details-marker { display: none; }
.nav-wrap > summary::marker { content: ""; }
/* Chrome 131+/Safari 18.4+/Firefox 139+ hide closed <details> content via ::details-content
   + content-visibility, which display:flex on the child cannot override. Neutralise that so
   the desktop nav stays visible; the mobile rules below re-hide it via [open]. The
   display:flex line still covers older engines that use the display:none UA rule. */
.nav-wrap::details-content { content-visibility: visible; block-size: auto; }
.nav-wrap > .nav { display: flex; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 32px); flex-wrap: wrap; align-items: center; }
.nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
  padding-block: 4px;
  transition: color .28s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom: 1px solid var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(62px, 10vw, 120px) clamp(50px, 8vw, 92px); }
.hero h1 { margin-bottom: 26px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-bottom: 34px; }

.hero-home { text-align: center; }
.hero-home h1 { max-width: 20ch; margin-inline: auto; }
.hero-home .lede { margin-inline: auto; }

.stars { color: var(--accent); letter-spacing: .24em; font-size: 15px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats div {
  padding: clamp(28px, 4vw, 44px) 14px;
  text-align: center;
  border-left: 1px solid var(--rule-soft);
}
.stats div:first-child { border-left: 0; }
.stats b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 50px);
  color: var(--accent);
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Two-column feature ---------- */
.split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}
.split-media img { width: 100%; }
.split h2 + p { margin-top: 20px; }
.frame { position: relative; isolation: isolate; }
.frame::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--accent);
  opacity: .6;
  z-index: -1;
  pointer-events: none;
}

/* ---------- State cards ---------- */
.states { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 46px); }
.state {
  border: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.state-media { aspect-ratio: 4 / 3; overflow: hidden; }
.state-media img { width: 100%; height: 100%; object-fit: cover; }
.state-body { padding: clamp(26px, 3.4vw, 38px); flex: 1; display: flex; flex-direction: column; }
.state-body h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.state-brokerage {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 20px;
}
.state-markets { font-size: 17px; color: var(--body); margin-bottom: 10px; }
.state-also { font-size: 15px; color: var(--label); margin-bottom: 22px; }
.state-contact {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.state-phone {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  text-decoration: none;
  transition: color .28s ease;
}
.state-phone:hover, .state-phone:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Numbered cards ---------- */
.cards-3, .cards-2 { display: grid; border: 1px solid var(--rule); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 > div, .cards-2 > div {
  padding: clamp(32px, 3.6vw, 44px);
  border-left: 1px solid var(--rule-soft);
}
.cards-3 > div:first-child, .cards-2 > div:first-child { border-left: 0; }
.cards-3 .num, .cards-2 .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
}
.cards-3 h3, .cards-2 h3 { margin: 12px 0 12px; }
.cards-3 p, .cards-2 p { color: var(--body); font-size: 17px; }

/* ---------- Steps ---------- */
.steps { border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(16px, 3vw, 34px);
  padding-block: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.step .n {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  color: var(--accent);
  line-height: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--body); max-width: 60ch; }

/* ---------- Track record ---------- */
.record { text-align: center; }
.record p { max-width: 56ch; margin-inline: auto; }
.record .btn { margin-top: 28px; }

/* ---------- Sold property cards (unused by default — see README) ---------- */
.sold { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 32px); }
.sold a {
  text-decoration: none;
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  display: block;
  transition: border-color .3s ease, transform .3s ease;
}
.sold a:hover, .sold a:focus-visible { border-color: var(--accent); transform: translateY(-3px); }
.sold-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sold-media img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.sold-body { padding: 20px 22px 24px; }
.sold-price { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.2; }
.sold-body h3 { font-size: 20px; margin: 4px 0 4px; }
.sold-body .loc { font-size: 15px; color: var(--label); }

/* ---------- Neighborhoods ---------- */
.hoods { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 24px); }
.hood { border: 1px solid var(--rule); padding: clamp(24px, 3vw, 32px); background: var(--paper); }
.hood h3 { font-size: 23px; margin-bottom: 8px; }
.hood p { color: var(--body); font-size: 16.5px; }

.also-serving {
  margin-top: 30px;
  font-size: 16.5px;
  color: var(--label);
  max-width: 68ch;
}
.also-serving strong { color: var(--navy); font-weight: 500; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 46px); }
.quote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.48;
  color: var(--navy);
  margin-bottom: 14px;
}
.quote footer {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.pullquote { max-width: 780px; margin-inline: auto; text-align: center; }

/* Editorial portrait paired with a client quote */
.quote-feature {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}
.quote-feature .pullquote { text-align: left; margin: 0; max-width: none; }
.quote-feature .pullquote .mark { margin-bottom: 14px; }
.quote-feature img { width: 100%; }
@media (max-width: 820px) {
  .quote-feature { grid-template-columns: 1fr; gap: 32px; }
  .quote-feature .split-media { max-width: 300px; margin-inline: auto; }
}
.pullquote .mark {
  font-family: var(--serif);
  font-size: 62px;
  color: var(--accent);
  opacity: .55;
  line-height: .5;
  display: block;
  margin-bottom: 22px;
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.4;
  color: var(--navy);
}
.pullquote cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Review grid ---------- */
.reviews { columns: 3; column-gap: clamp(22px, 2.8vw, 32px); }
.review {
  break-inside: avoid;
  margin: 0 0 clamp(22px, 2.8vw, 32px);
  padding: clamp(26px, 3vw, 32px);
  border: 1px solid var(--rule-soft);
  background: var(--paper);
}
.review .stars { display: block; margin-bottom: 16px; font-size: 14px; }
.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.48;
  color: var(--navy);
}
.review figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.review figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
}

.verify { text-align: center; font-size: 16.5px; color: var(--body); }
.verify a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.verify a:hover, .verify a:focus-visible { color: var(--bright); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { margin-bottom: 16px; }
.contact > p { color: var(--body); max-width: 54ch; margin-inline: auto; margin-bottom: clamp(34px, 4vw, 50px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.contact-col { padding: clamp(26px, 3vw, 36px) 20px; border: 1px solid var(--rule); background: var(--paper); }
.contact-col .state-label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.contact-col a.phone {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 34px);
  color: var(--navy);
  text-decoration: none;
  display: block;
  transition: color .28s ease;
}
.contact-col a.phone:hover, .contact-col a.phone:focus-visible { color: var(--accent); }
.contact-col .brokerage { margin-top: 12px; font-size: 14.5px; color: var(--label); line-height: 1.55; }
.contact-email { margin-top: clamp(30px, 4vw, 42px); font-family: var(--serif); font-size: clamp(23px, 2.8vw, 29px); }
.contact-email a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-email a:hover, .contact-email a:focus-visible { color: var(--accent); }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--label);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  transition: background .28s ease, color .28s ease, border-color .28s ease;
}
.socials a svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover, .socials a:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

/* ---------- Footer ---------- */
/* Footer stays light: the contact section above it is already a dark band,
   and the brokerage logos are rendered in Midnight. */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding-block: clamp(44px, 6vw, 64px);
  text-align: center;
}
.footer-nav { display: flex; gap: clamp(18px, 3vw, 30px); justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.footer-nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--navy); }
.brokerages {
  display: flex;
  gap: clamp(28px, 5vw, 54px);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.brokerages img { height: 54px; width: auto; opacity: .9; transition: opacity .28s ease; }
.brokerages a:first-child img { height: 62px; }   /* GL mark reads smaller at equal height */
.brokerages a:hover img, .brokerages a:focus-visible img { opacity: 1; }

.disclosures {
  max-width: 800px;
  margin-inline: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--label);
}
.disclosures p { margin-bottom: .65em; }
.disclosures .licenses { color: var(--navy); font-weight: 500; }
.eho { display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; }
.eho svg { width: 20px; height: 20px; fill: var(--label); flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 320px; margin-inline: auto; }
  .frame::after { display: none; }
  .states { grid-template-columns: 1fr; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .cards-3 > div, .cards-2 > div { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .cards-3 > div:first-child, .cards-2 > div:first-child { border-top: 0; }
  .sold { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .reviews { columns: 2; }
}

/* ---------- Mobile navigation (no JavaScript — <details> does the work) ---------- */
@media (max-width: 720px) {
  .masthead-inner {
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
  }
  .nav-wrap { position: relative; flex: none; }
  .nav-wrap > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -6px -8px 0 0;
    cursor: pointer;
    list-style: none;
  }
  .nav-wrap > summary::-webkit-details-marker { display: none; }
  .nav-wrap > summary::marker { content: ""; }

  .burger, .burger::before, .burger::after {
    display: block;
    width: 23px;
    height: 1.5px;
    background: var(--navy);
    transition: transform .25s ease, opacity .2s ease;
  }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -7px; }
  .burger::after  { top: 7px; }
  .nav-wrap[open] .burger { background: transparent; }
  .nav-wrap[open] .burger::before { transform: translateY(7px) rotate(45deg); }
  .nav-wrap[open] .burger::after  { transform: translateY(-7px) rotate(-45deg); }

  .nav-wrap:not([open]) > .nav { display: none; }
  .nav-wrap[open] > .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 216px;
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 6px 0;
    z-index: 60;
  }
  .nav-wrap[open] > .nav a { padding: 14px 22px; width: 100%; }
  .nav-wrap[open] > .nav a[aria-current="page"] { border-bottom: 0; color: var(--navy); }

  /* photos read better centred on a narrow screen */
  .split-media,
  .quote-feature .split-media { margin-inline: auto; }
  .quote-feature, .split { justify-items: center; }
  .quote-feature .pullquote, .split > div:last-child { width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 17.5px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .sold { grid-template-columns: 1fr; }
  .hoods { grid-template-columns: 1fr; }
  .reviews { columns: 1; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .step .n { font-size: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn { display: block; text-align: center; margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
