:root {
  --ink: #0b0f12;
  --ink-2: #1b232b;
  --text: #2a2f35;
  --muted: #69717b;
  --line: #e7e2da;
  --cream: #fbf6ef;
  --tint: #f8f5f0;
  --peach: #f4a27e;
  --peach-2: #f7b896;
  --coral: #b4532f;
  --leaf: #4f8f4a;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(11, 15, 18, .08);
  --shadow-lg: 0 20px 50px rgba(11, 15, 18, .14);
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Quicksand", "Helvetica Neue", Arial, sans-serif;
  --header-h: 84px;
  --slant: clamp(28px, 4vw, 64px);
  --edge: linear-gradient(90deg, rgba(244, 162, 126, 0), var(--peach) 30%, var(--coral) 50%, var(--peach) 70%, rgba(244, 162, 126, 0));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 500 16px/1.65 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { fill: currentColor; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius); font: 700 .95rem/1 var(--head); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .2s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px rgba(11, 15, 18, .18); }
.btn-ink:hover { background: var(--ink-2); }
.btn-peach { background: var(--peach); color: var(--ink); }
.btn-peach:hover { background: var(--peach-2); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; padding-block: 15px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .18); transition: background .25s, box-shadow .25s, color .25s; }
.site-header.is-solid { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 15, 18, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { position: relative; display: block; flex: none; }
.brand img { height: 56px; width: auto; }
.brand-dark { position: absolute; inset: 0; opacity: 0; }
.is-solid .brand-dark { opacity: 1; }
.is-solid .brand-light { opacity: 0; }
.primary-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav ul a { display: block; padding: 8px 12px; color: inherit; font: 700 .95rem var(--head); border-radius: var(--radius); }
.primary-nav ul a:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
.is-solid .primary-nav ul a:hover { background: var(--tint); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-email { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 600; font-size: .9rem; }
.nav-email svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(680px, 86vh); display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: -24% 0 0; background: linear-gradient(180deg, rgba(11, 15, 18, .55) 0%, rgba(11, 15, 18, .25) 45%, rgba(11, 15, 18, .55) 100%), url(/assets/img/photos/hero.webp?v=20261123b) center 60% / cover no-repeat; }
.hero-content { position: relative; text-align: center; }
.eyebrow { font: 700 .8rem var(--head); letter-spacing: .35em; text-transform: uppercase; color: var(--peach-2); margin-bottom: 14px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 860px; margin: 0 auto 32px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }

/* Search */
.search { max-width: 980px; margin-inline: auto; }
.search-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.search-tabs button { border: 0; padding: 11px 20px; border-radius: var(--radius); font: 700 .9rem var(--head); cursor: pointer; background: rgba(11, 15, 18, .55); color: var(--white); backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.search-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.search-tabs button:hover { background: var(--peach); color: var(--ink); }
.search-fields { display: flex; gap: 8px; padding: 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.field { display: block; }
.field-grow { flex: 1; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: 500 .95rem var(--body); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2369717b' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center no-repeat; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 3px rgba(244, 162, 126, .25); }
.search-fields .field input, .search-fields .field select { border-color: transparent; background-color: var(--tint); }
.search-fields .field select { min-width: 170px; }
.search-submit { padding-inline: 34px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Services */
.service-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.service-card p { color: var(--muted); max-width: 330px; flex: 1; }
.service-card .btn { margin-top: 6px; }

/* Neighborhoods */

/* Features */
.feature { text-align: center; padding: 0 12px; }
.feature svg { width: 52px; height: 52px; fill: none; stroke: var(--coral); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 16px; }
.feature p { color: var(--muted); }

/* Agent / contact */
.agent-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; padding: 56px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.agent-logo { width: 150px; height: auto; border-radius: 10px; margin-bottom: 22px; }
.agent-intro p { color: var(--muted); }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list svg { width: 20px; height: 20px; color: var(--coral); flex: none; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.lead-form .is-invalid { border-color: #c2412d; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; font-size: .92rem; }
.form-status.ok { color: var(--leaf); }
.form-status.err { color: #c2412d; }

/* Homes */
.filter-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.filter-tabs button { position: relative; border: 0; background: none; padding: 12px 4px; font: 700 .82rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--coral); cursor: pointer; }
.filter-tabs button[aria-selected="true"] { color: var(--ink); }
.filter-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--peach); border-radius: 2px; }
.homes { grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
.home-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.home-card[hidden] { display: none; }
.home-media { position: relative; }
.home-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 4px; background: rgba(11, 15, 18, .78); color: var(--white); font: 700 .68rem var(--head); text-transform: uppercase; letter-spacing: .08em; }
.badge-lease { background: var(--peach); color: var(--ink); }
.home-body { padding: 20px 22px 22px; }
.home-area { margin: 0 0 4px; font: 700 .72rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.home-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.price { font: 800 1.2rem var(--head); color: var(--coral); margin-bottom: 12px; }
.price span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.specs { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; gap: 18px; font-size: .88rem; color: var(--muted); }
.specs b { color: var(--ink); font-family: var(--head); }

/* Guides */
.guide-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.guide-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.guide-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.guide-tag { font: 700 .72rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--leaf); margin-bottom: 6px; }
.guide-body h3 { font-size: 1.02rem; }
.guide-body p:not(.guide-tag) { color: var(--muted); font-size: .92rem; flex: 1; }
.guide-body a { font: 700 .88rem var(--head); }

/* Search band */
.search-band { text-align: center; padding: 80px 0; background: linear-gradient(180deg, var(--white), var(--cream)); }
.search-mini .search-tabs button { background: var(--tint); color: var(--ink); backdrop-filter: none; }
.search-mini .search-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.site-footer a:hover { color: var(--peach-2); }
.footer-bottom { padding-top: 36px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.footer-logo { height: 64px; width: auto; }
.eho { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .1em; }
.eho svg { width: 22px; height: 22px; }
.brokerage { margin: 0; font-size: .85rem; line-height: 1.7; color: rgba(255, 255, 255, .75); }
.brokerage a { color: inherit; }
.search-page { padding-top: var(--header-h); background: var(--tint); }
.search-page .idx-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; }
.search-page .idx-bar h1 { font-size: 1.3rem; margin: 0; }
.search-page .idx-bar p { margin: 0; color: var(--muted); }
.idx-frame { display: block; width: 100%; height: calc(100vh - var(--header-h) - 70px); min-height: 640px; border: 0; background: var(--white); }
.idx-wrap { position: relative; }
.idx-wrap-preview { margin-bottom: 36px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.idx-wrap-preview .idx-frame { height: 880px; min-height: 0; }
.idx-wrap.is-gated .idx-frame { filter: blur(6px); pointer-events: none; }

/* Listings carousel (GAMLS feed). Photos must not be cropped, so they are letterboxed. */
.lx { position: relative; margin-bottom: 36px; }
.lx-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 16px; }
.lx-track::-webkit-scrollbar { display: none; }
.lx-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.lx-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lx-photo { aspect-ratio: 4 / 3; background: var(--tint); }
.lx-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lx-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.lx-price { font: 800 1.2rem var(--head); }
.lx-facts { font-weight: 600; font-size: .9rem; }
.lx-addr, .lx-office { color: var(--muted); font-size: .9rem; }
.lx-office { margin-top: 4px; }
.lx-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.lx-btn { position: absolute; top: calc(50% - 50px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; }
.lx-prev { left: -18px; }
.lx-next { right: -18px; }
.lx-idx { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 1000px) { .lx-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 680px) { .lx-track { grid-auto-columns: 82%; } .lx-btn { display: none; } }

/* Listing detail page */
.lp-top { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 10px; }
.lp { padding-bottom: 40px; }
.lp-back { margin: 8px 0 14px; }
.lp-photos { display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 720px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.lp-photos img { scroll-snap-align: start; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--ink); border-radius: 10px; }
.lp-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin-top: 26px; align-items: start; }
.lp-status { margin: 0; font: 700 .8rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.lp-price { font-size: 2.2rem; margin: 4px 0; }
.lp-price small { font-size: 1rem; color: var(--muted); }
.lp-addr { font-size: 1.1rem; margin: 0 0 14px; }
.lp-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 16px; }
.lp-office { padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-grid section h2 { font-size: 1.3rem; margin: 24px 0 8px; }
.lp-remarks { white-space: pre-line; }
.lp-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.lp-details dt { color: var(--muted); }
.lp-details dd { margin: 0; font-weight: 600; }
.lp-cta { position: sticky; top: 20px; display: grid; gap: 10px; justify-items: center; text-align: center; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 24px; }
.lp-cta img { border-radius: 50%; object-fit: cover; }
.lp-cta h2 { margin: 0; font-size: 1.3rem; }
.lp-cta p { margin: 0 0 6px; }
.lp-idx { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .lp-grid { grid-template-columns: 1fr; } .lp-cta { position: static; } }
.gate { position: absolute; inset: 0; display: grid; place-items: start center; padding: 60px 16px; background: rgba(248, 245, 240, .55); z-index: 5; }
.gate[hidden] { display: none; }

.join-body { background: var(--tint); }
.join-wrap { min-height: 100vh; display: grid; justify-items: center; align-content: start; gap: 22px; padding: 40px 16px; }
.join-logo img { width: 190px; height: auto; }
.join-card { width: 100%; max-width: 440px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 32px 30px; }
.join-card h1, .join-card h2 { font-size: 1.5rem; margin-bottom: .35em; }
.join-card > p { margin: 0 0 18px; }
.join-buttons { display: grid; gap: 10px; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius); font: 700 .95rem var(--head); border: 1px solid var(--line); color: var(--ink); background: var(--white); text-decoration: none; }
.btn-oauth svg { width: 20px; height: 20px; }
.btn-oauth:hover { box-shadow: var(--shadow); }
[data-gate] [hidden] { display: none; }
.btn-facebook { background: #1877f2; border-color: #1877f2; color: var(--white); }
.join-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.join-or::before, .join-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join-email { display: grid; gap: 10px; }
.join-email input, .join-email select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--white); }
.join-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.join-consent input { width: 18px; height: 18px; padding: 0; margin-top: 2px; flex: none; }
.join-consent span { flex: 1; min-width: 0; }
.join-error { background: #fdecea; color: var(--coral); padding: 10px 12px; border-radius: var(--radius); font-weight: 600; }
.join-terms, .join-alt { font-size: .8rem; color: var(--muted); margin: 18px 0 0 !important; }
.join-fine { font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.7; }
.legal { padding: calc(var(--header-h) + 40px) 0 70px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.fine { margin: 0; font-size: .8rem; max-width: 760px; color: rgba(255, 255, 255, .5); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--peach); color: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 24px; height: 24px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-email { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { padding: 12px; }
  .primary-nav ul a:hover { background: var(--tint); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-email { display: inline-flex; justify-content: center; }
  .site-header.menu-open { background: var(--white); color: var(--ink); }
  .site-header.menu-open .brand-dark { opacity: 1; }
  .site-header.menu-open .brand-light { opacity: 0; }
  .grid-3, .homes { grid-template-columns: repeat(2, 1fr); }
  .agent-card { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .search-fields { flex-direction: column; }
  .search-fields .field select { min-width: 0; }
  .hero { padding-bottom: 40px; }
  .grid-3, .grid-4, .homes { grid-template-columns: 1fr; }
  .agent-card { padding: 24px; }
  .lead-form { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

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

/* Agent profile (/a/{slug}) */
.pf-body { background: var(--tint); }
.pf-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.pf-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.pf-nav img { height: 44px; width: auto; }
.pf-nav nav { display: flex; gap: 22px; font: 700 .85rem var(--head); }
.pf-nav nav a { color: var(--ink); }
.pf { padding-bottom: 40px; }
.pf-cover { height: clamp(180px, 28vw, 340px); background: var(--ink) var(--cover) center / cover no-repeat; border-radius: 0 0 14px 14px; }
.pf-head { display: flex; align-items: flex-end; gap: 24px; padding: 14px 28px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pf-avatar { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 5px solid var(--white); background: var(--cream); box-shadow: var(--shadow-lg); flex: none; margin-top: -92px; }
.pf-initial { display: grid; place-items: center; font: 800 4rem var(--head); color: var(--coral); }
.pf-id { flex: 1; min-width: 240px; padding-bottom: 6px; }
.pf-id h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 4px; }
.pf-id p { margin: 0; color: var(--muted); font-weight: 600; }
.pf-areas { color: var(--coral) !important; margin-top: 4px !important; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.pf-actions .btn { padding: 10px 18px; font-size: .88rem; }
.pf-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.pf-side { position: sticky; top: 16px; }
.pf-main { display: grid; gap: 20px; min-width: 0; }
.pf-card { background: var(--white); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); }
.pf-card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.pf-card h3 { font-size: .95rem; margin: 18px 0 8px; }
.pf-bio { white-space: pre-line; }
.pf-facts, .pf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.pf-facts b { display: inline-block; min-width: 86px; color: var(--ink); font-family: var(--head); font-size: .82rem; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pf-chips span { padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: .85rem; font-weight: 600; }
.pf-homes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 12px; }
.pf-empty { color: var(--muted); }
.pf-hoods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pf-hood { position: relative; display: flex; align-items: flex-end; height: 120px; padding: 12px; border-radius: 10px; overflow: hidden; color: var(--white); font: 700 .95rem var(--head); background: linear-gradient(180deg, transparent 40%, rgba(11, 15, 18, .7)), var(--img) center / cover; }
.pf-hood:hover { text-decoration: none; filter: brightness(1.08); }
.pf-hood-plain { background: var(--ink-2); }
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-form select, .pf-form input:not([type=checkbox]), .pf-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--white); }
.pf-form select, .pf-form textarea, .pf-form .join-consent, .pf-form .btn, .pf-form .form-status { grid-column: 1 / -1; }
.pf-body .join-fine { padding: 0 20px 32px; }
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .pf-head { justify-content: center; text-align: center; padding: 0 12px 20px; }
  .pf-actions { justify-content: center; width: 100%; }
  .pf-nav nav { gap: 14px; font-size: .8rem; }
}
@media (max-width: 520px) {
  .pf-nav nav a:first-child { display: none; }
  .pf-form { grid-template-columns: 1fr; }
  .pf-avatar { width: 136px; height: 136px; }
}

/* Homepage hero: pill search */
.hero-sub { max-width: 640px; margin: -14px auto 30px; font-size: 1.1rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.pill-search { display: flex; align-items: stretch; max-width: 860px; margin-inline: auto; padding: 8px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow-lg); text-align: left; }
.pill-field { display: grid; align-content: center; gap: 1px; padding: 8px 22px; border-radius: 999px; color: var(--ink); cursor: pointer; min-width: 0; transition: background .2s; }
.pill-field + .pill-field { border-left: 1px solid var(--line); }
.pill-field:hover, .pill-field:focus-within { background: var(--tint); }
.pill-field span { font: 700 .72rem var(--head); letter-spacing: .04em; }
.pill-field input, .pill-field select { border: 0; padding: 0; background: transparent; font: 500 .95rem var(--body); color: var(--text); outline: none; min-width: 0; width: 100%; cursor: pointer; }
.pill-field select { appearance: none; min-width: 90px; }
.pill-grow { flex: 1; }
.pill-go { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--peach); color: var(--ink); font: 700 .95rem var(--head); cursor: pointer; transition: background .2s; }
.pill-go:hover { background: var(--peach-2); }
.pill-go svg { width: 20px; height: 20px; }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.quick-links a { padding: 8px 16px; border-radius: 999px; background: rgba(11, 15, 18, .45); border: 1px solid rgba(255, 255, 255, .25); color: var(--white); font-weight: 600; font-size: .9rem; backdrop-filter: blur(6px); }
.quick-links a:hover { background: var(--white); color: var(--ink); text-decoration: none; }

/* Section heads with a side link */
.section-flush { padding-top: 0; }
.hz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.hz-head h2 { margin-bottom: 6px; }
.hz-head .filter-tabs { margin: 0; border: 0; justify-content: flex-start; }
.hz-sub { color: var(--muted); margin: 0; max-width: 620px; }
.hz-more { font: 700 .92rem var(--head); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Neighborhood cards */
.hz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 22px; }
.hz-grid-home, .hz-grid-all { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hz-card { display: grid; align-content: start; gap: 2px; color: var(--ink); text-decoration: none; }
.hz-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; margin-bottom: 10px; transition: transform .3s, box-shadow .3s; }
.hz-grid-all .hz-card img { aspect-ratio: 4 / 3; }
.hz-card:hover { text-decoration: none; }
.hz-card:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hz-name { font: 700 1.02rem var(--head); }
.hz-tag { color: var(--muted); font-size: .92rem; }
.hz-card-more { align-content: center; justify-items: center; text-align: center; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--cream); border: 1px dashed var(--peach); }
.hz-card-more:hover { background: var(--white); }

/* Neighborhood page */
.hz-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(620px, 78vh); padding: calc(var(--header-h) + 40px) 0 calc(56px + var(--slant)); color: var(--white); background: var(--ink); }
.hz-hero-bg { position: absolute; inset: -24% 0 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 18, .35), rgba(11, 15, 18, .15) 40%, rgba(11, 15, 18, .75)), var(--img) center / cover no-repeat; }
.hz-hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin: 0 0 8px; }
.crumbs { margin: 0 0 10px; font: 700 .82rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.crumbs a { color: var(--peach-2); }
.hz-lede { font-size: 1.2rem; max-width: 640px; margin-bottom: 24px; color: rgba(255, 255, 255, .92); }
.hz-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: var(--white); backdrop-filter: blur(6px); }
.btn-glass:hover { background: var(--white); color: var(--ink); }
.hz-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.hz-about p { font-size: 1.05rem; }
.hz-zips { color: var(--muted); font-size: .9rem !important; margin-top: 16px; }
.hz-highlights { list-style: none; margin: 0; padding: 8px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.hz-highlights li { display: grid; gap: 2px; padding: 16px 0; }
.hz-highlights li + li { border-top: 1px solid var(--line); }
.hz-highlights b { font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--coral); }
.hz-browse { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.hz-browse h3 { margin-bottom: 4px; }
.hz-browse p { margin: 0; color: var(--muted); }
.hz-browse-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band { background: var(--ink); color: rgba(255, 255, 255, .85); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* Plain page head (directory, neighborhoods index) */
.page-head { padding: calc(var(--header-h) + 56px) 0 48px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto 28px; }
.dir-search { border: 1px solid var(--line); }
.dir-count { color: var(--muted); font-weight: 600; margin-bottom: 16px; }

/* Agent cards */
.ag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ag-card { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 28px 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-align: center; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ag-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ag-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; margin-bottom: 12px; background: var(--cream); }
.ag-initial { display: grid; place-items: center; font: 800 2.6rem var(--head); color: var(--coral); }
.ag-name { font: 700 1.08rem var(--head); }
.ag-title { color: var(--muted); font-size: .9rem; }
.ag-areas { margin-top: 8px; font-size: .88rem; color: var(--coral); font-weight: 600; }
.ag-langs { font-size: .85rem; color: var(--muted); }
.ag-cta { margin-top: 14px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font: 700 .82rem var(--head); }
.ag-card:hover .ag-cta { background: var(--ink); color: var(--white); }
.ag-none { grid-column: 1 / -1; color: var(--muted); }
.ag-all { margin: 32px 0 0; }
.agent-quick { display: flex; gap: 8px; }
.agent-quick input { width: 280px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--white); }

/* Careers band */
.join-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 56px; border-radius: 18px; color: rgba(255, 255, 255, .85); border: 1px solid transparent; background: linear-gradient(120deg, rgba(11, 15, 18, .92), rgba(11, 15, 18, .7)) padding-box, url(/assets/img/photos/wide-midtown.webp) center / cover padding-box, linear-gradient(120deg, var(--peach), rgba(244, 162, 126, .08) 35%, rgba(180, 83, 47, .08) 65%, var(--coral)) border-box; box-shadow: 0 30px 60px -30px rgba(180, 83, 47, .45); }
.join-band h2 { color: var(--white); margin-bottom: 8px; }
.join-band p:not(.eyebrow) { margin: 0; max-width: 620px; }

@media (max-width: 1000px) {
  .hz-grid-home, .hz-grid-all, .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-about { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .pill-search { flex-direction: column; border-radius: 20px; padding: 10px; }
  .pill-field { border-radius: 12px; padding: 10px 14px; }
  .pill-field + .pill-field { border-left: 0; border-top: 1px solid var(--line); }
  .pill-go { margin: 8px 0 0; padding: 14px; justify-content: center; border-radius: 12px; }
  .hz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .agent-quick { width: 100%; }
  .agent-quick input { flex: 1; width: auto; }
  .join-band { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ag-card { padding: 20px 10px 16px; }
  .ag-photo { width: 84px; height: 84px; }
  .quick-links a:nth-child(n+5) { display: none; }
}

/* "Send this home to my agent" */
.interest-form { display: grid; gap: 10px; width: 100%; }
.interest-form textarea, .interest-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--white); resize: vertical; }
.interest-form .form-status:empty { display: none; }
.interest-panel { position: relative; }
.interest-panel summary { list-style: none; cursor: pointer; }
.interest-panel summary::-webkit-details-marker { display: none; }
.interest-panel[open] summary { background: var(--ink); color: var(--white); }
.interest-panel .interest-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(380px, calc(100vw - 40px)); padding: 18px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); text-align: left; }
.interest-panel .interest-form p { margin: 0; font-size: .92rem; }
.interest-panel label { display: grid; gap: 4px; font: 700 .75rem var(--head); color: var(--ink); }
.interest-panel label input, .interest-panel label textarea { font: 500 .95rem var(--body); }
@media (max-width: 680px) { .interest-panel .interest-form { position: fixed; left: 20px; right: 20px; top: auto; bottom: 20px; width: auto; } }

/* Calculators and request forms (tools.js) */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-modes { grid-column: 1 / -1; display: inline-flex; justify-self: start; gap: 4px; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.calc-modes button { padding: 10px 18px; border: 0; border-radius: 999px; background: none; font: 700 .88rem var(--head); color: var(--muted); cursor: pointer; }
.calc-modes [aria-selected="true"] { background: var(--ink); color: var(--white); }
.calc-form { display: grid; gap: 16px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cf { display: grid; gap: 6px; align-content: start; font: 700 .78rem var(--head); color: var(--ink); }
.cf-full { grid-column: 1 / -1; }
.cf small { font: 500 .78rem var(--body); color: var(--muted); }
.cf-input { display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.cf-input:focus-within { border-color: var(--peach); box-shadow: 0 0 0 3px rgba(244, 162, 126, .25); }
.cf-input i { padding: 0 0 0 14px; font: 600 .95rem var(--body); color: var(--muted); font-style: normal; }
.cf-input i:last-child { padding: 0 14px 0 0; }
.cf-input input, .cf-input select { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: none; font: 600 1rem var(--body); color: var(--text); outline: none; }
.cf-input select { cursor: pointer; }
.calc-more { border-top: 1px solid var(--line); padding-top: 12px; }
.calc-more summary { cursor: pointer; font: 700 .85rem var(--head); color: var(--coral); margin-bottom: 14px; }
.calc-result { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.calc-label { margin: 0; font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.calc-big { margin: 4px 0 14px; font: 800 clamp(2rem, 4vw, 2.6rem)/1.1 var(--head); color: var(--ink); }
.calc-big.calc-neg { color: #c2412d; }
.calc-bar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.calc-bar:empty { display: none; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.calc-table th, .calc-table td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc-table th { text-align: left; font-weight: 500; color: var(--text); padding-right: 12px; }
.calc-table td { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.calc-table .calc-sub th, .calc-table .calc-sub td { font-weight: 800; color: var(--ink); }
.calc-table .calc-item th, .calc-table .calc-item td { padding: 4px 0 4px 14px; font-size: .85rem; font-weight: 500; color: var(--muted); border-bottom: 0; }
.calc-table .calc-warn th { color: #c2412d; font-weight: 600; }
.calc-fine { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.calc-send { margin-top: 16px; }
.calc-send summary { list-style: none; width: 100%; }
.calc-send summary::-webkit-details-marker { display: none; }
.calc-send[open] summary { display: none; }
.calc-send-note { margin: 0; font-size: .88rem; color: var(--muted); }
.calc-compact { grid-template-columns: 1fr; gap: 16px; }
.calc-compact .calc-result { position: static; padding: 20px; box-shadow: none; }
.calc-compact .calc-big { font-size: 1.9rem; }
.tool-form .tool-label { display: block; margin-bottom: 6px; font: 700 .78rem var(--head); color: var(--ink); }
.chip-set { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-set legend { width: 100%; margin-bottom: 8px; padding: 0; font: 700 .78rem var(--head); color: var(--ink); }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; }
.chip-opt span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: 600 .9rem var(--body); cursor: pointer; transition: border-color .2s, background .2s; }
.chip-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(244, 162, 126, .4); }

/* Tool pages */
.tool-page .page-head p { margin-bottom: 0; }
.tool-wrap { max-width: 1100px; }
.tool-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.tool-split h2 { font-size: 1.5rem; }
.tool-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.tool-points li { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid var(--peach); }
.tool-points b { color: var(--ink); }
.tool-card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool-tile { display: grid; align-content: start; gap: 8px; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.tool-tile:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tool-tile svg { width: 34px; height: 34px; color: var(--coral); }
.tool-tile h3 { margin: 6px 0 0; font-size: 1.1rem; }
.tool-tile p { margin: 0; font-size: .92rem; color: var(--muted); }
.tool-tile span { margin-top: 6px; font: 700 .85rem var(--head); color: var(--ink); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 700 1rem var(--head); color: var(--ink); }
.faq p { margin: 10px 0 0; color: var(--text); }
.listing-tools { margin-top: 28px; display: grid; gap: 14px; }
.listing-tools h2 { font-size: 1.25rem; margin: 0; }
@media (max-width: 1000px) {
  .calc, .tool-split { grid-template-columns: 1fr; gap: 28px; }
  .calc-result { position: static; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .calc-grid, .tool-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 22px 18px; }
}
.tool-alt { margin-top: 22px; color: var(--muted); }

/* "Run the numbers" wallpaper: graph paper + skyline bar chart */
.numbers-bg { position: relative; isolation: isolate; overflow: hidden; }
.numbers-bg::before, .numbers-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.numbers-bg::before {
  background:
    linear-gradient(rgba(180, 83, 47, .09) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(90deg, rgba(180, 83, 47, .09) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(rgba(180, 83, 47, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(180, 83, 47, .05) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 100%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 85% 100%, #000 30%, transparent 85%);
}
.numbers-bg::after {
  background:
    url("/assets/img/numbers-figs.svg?v=1") right max(24px, calc((100% - 1200px) / 2)) top calc(22px + var(--after-band, 0px)) / 560px 110px no-repeat,
    url("/assets/img/numbers-bg.svg?v=1") center bottom / max(100%, 1100px) auto no-repeat;
}
@media (max-width: 900px) {
  .numbers-bg::after { background: url("/assets/img/numbers-bg.svg?v=1") center bottom / 1100px auto no-repeat; }
}
.numbers-bg .tool-tile { box-shadow: 0 8px 24px rgba(11, 15, 18, .06); }
.numbers-bg .tool-tile:hover { box-shadow: var(--shadow-lg); }

/* Section treatments: angled edges, parallax bands, gradient edges */
[data-parallax] { will-change: transform; }
.slant-top { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * var(--slant)); padding-top: calc(96px + var(--slant)); }
.band-dark {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  margin: calc(-1 * var(--slant)) 0; padding: calc(96px + var(--slant)) 0;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  background: var(--ink); color: rgba(255, 255, 255, .72);
}
.section:has(+ .band-dark) { padding-bottom: calc(96px + var(--slant)); }
.band-dark + .section { --after-band: var(--slant); padding-top: calc(96px + var(--slant)); }
.band-bg {
  position: absolute; inset: -14% 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(180, 83, 47, .45), transparent 70%),
    linear-gradient(105deg, rgba(11, 15, 18, .96) 0%, rgba(11, 15, 18, .86) 55%, rgba(11, 15, 18, .7) 100%),
    url(/assets/img/photos/band-buckhead.webp?v=1) center 35% / cover no-repeat;
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .section-head p, .band-dark .feature p { color: rgba(255, 255, 255, .66); }
.band-dark .feature svg { box-sizing: content-box; padding: 16px; border-radius: 50%; stroke: var(--peach); background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 162, 126, .3); }
.edge-glow { position: relative; }
.edge-glow::before { content: ""; position: absolute; top: 0; left: 50%; width: min(640px, 70%); height: 2px; transform: translateX(-50%); background: var(--edge); }
.glow-bg { background: radial-gradient(55% 60% at 0% 0%, rgba(244, 162, 126, .2), transparent 70%), radial-gradient(45% 55% at 100% 100%, rgba(180, 83, 47, .09), transparent 70%), var(--tint); }
.site-footer { position: relative; background: radial-gradient(60% 120% at 100% 0%, rgba(180, 83, 47, .16), transparent 60%), var(--ink); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--coral), var(--peach) 45%, rgba(244, 162, 126, 0)); }
.page-head { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(50% 70% at 50% 45%, rgba(244, 162, 126, .2), transparent 70%), var(--white); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(180, 83, 47, .08) 1px, transparent 1px) center / 32px 32px,
    linear-gradient(90deg, rgba(180, 83, 47, .08) 1px, transparent 1px) center / 32px 32px;
  -webkit-mask-image: radial-gradient(60% 75% at 50% 55%, #000 20%, transparent 80%);
  mask-image: radial-gradient(60% 75% at 50% 55%, #000 20%, transparent 80%);
}
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }

/* Stacked sections: .pin sections stick once their bottom is in view (--stick, set in site.js) so the next one slides over;
   the rest scroll normally, and the page lifts off a footer parked underneath (.curtain, only when the footer fits the viewport) */
.stack { position: relative; z-index: 1; }
.stack > section { position: relative; }
.stack > .pin { position: sticky; top: var(--stick, 0px); }
:where(.stack > section) { background-color: var(--white); }
.cover-card, .pin + .cover-card[hidden] + section { border-radius: 28px 28px 0 0; box-shadow: 0 -22px 44px -22px rgba(11, 15, 18, .22); }
.section-tint + .section-flush { display: flow-root; }
.section-tint + .section-flush .join-band { position: relative; margin-top: -48px; }
.curtain .stack > section:last-child { border-radius: 0 0 28px 28px; box-shadow: 0 28px 50px -24px rgba(11, 15, 18, .45); }
.curtain .site-footer { position: sticky; bottom: 0; z-index: 0; }
