/* North Star Pro Realty — site styles
   Layout concept: charcoal night-sky bands (where the gold North Star shows) alternating with clean
   daylight sections; one sticky top bar; content on a 1200px grid with a 16px+ safe-area gutter. */
:root {
  --ink: #15171c;        /* charcoal from the logo, cool-leaning */
  --ink-2: #20232a;      /* raised charcoal surfaces */
  --ink-3: #2c3039;      /* charcoal borders */
  --slate: #5b616d;      /* logo gray, secondary text on light */
  --mist: #a9afba;       /* secondary text on charcoal */
  --fog: #eef0f3;        /* light section ground */
  --paper: #ffffff;
  --line: #dde1e6;
  --gold: #f3c845;       /* the star */
  --gold-soft: #f8de8c;
  --gold-ink: #8a6500;   /* gold that reads as text on white */
  --good: #2f7d5b;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Figtree", "Segoe UI", system-ui, sans-serif;  /* labels share the body face; no typewriter font */

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);

  --wrap: 1200px;
  --radius: 14px;
  --bar-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow {
  font-family: var(--f-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 60ch; }
.dark .lede { color: var(--mist); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: var(--step-3); }
.dark { background: var(--ink); color: #fff; }
.fog { background: var(--fog); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(21,23,28,.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08); color: #fff;
}
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: var(--bar-h); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; color: #e7e9ee;
  position: relative;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--gold); }
.bar-cta { display: flex; align-items: center; gap: 14px; }
.bar-phone { font-weight: 600; font-size: 0.95rem; color: var(--mist); white-space: nowrap; text-decoration: none; }
.bar-phone:hover { color: #fff; }
.bar-cta .btn { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; width: 46px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; }
@media (max-width: 1100px) { .bar-phone { display: none; } }
@media (max-width: 960px) {
  .nav, .bar-cta { display: none; }
  .menu-btn { display: block; }
  .topbar.open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--ink-3);
  }
  .topbar.open .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .topbar.open .nav .btn { margin-top: 10px; }
}
.nav .btn { display: none; }
@media (max-width: 960px) { .topbar.open .nav .btn { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1%); } }
/* No tint over the video; the text carries its own soft shadow so it stays readable on bright frames */
.hero h1 { text-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 34px rgba(0,0,0,.4); }
.hero .eyebrow { justify-self: start; background: rgba(21,23,28,.72); padding: 7px 14px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .lede { justify-self: start; background: rgba(21,23,28,.55); padding: 12px 16px; border-radius: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn-ghost { background: rgba(21,23,28,.55); border-color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(21,23,28,.75); }
#stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero { display: flex; align-items: flex-end; }
.hero > .wrap { width: 100%; }
.hero-in { display: grid; gap: 26px; padding-block: clamp(80px, 12vw, 150px) clamp(48px, 7vw, 88px); max-width: 760px; }
.hero h1 { font-size: var(--step-4); font-stretch: 118%; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.coords { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 500; letter-spacing: .02em; color: #d5d9e0; }
.compass { width: 34px; height: 34px; flex: none; }
.compass .needle { transform-origin: 50% 50%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }

/* Stats panel: a full white screen with big numbers and a moving town marquee */
.stats { background: var(--paper); color: var(--ink); display: flex; align-items: center; }
.stats-in { width: 100%; display: grid; gap: clamp(36px, 6vw, 64px); padding-block: 64px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; text-align: center; max-width: 900px; }
.stat { display: grid; gap: 10px; justify-items: center; }
.stat-num { font-family: var(--f-display); font-stretch: 112%; font-weight: 300; font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); line-height: 1; display: flex; align-items: baseline; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-num .plus { font-size: .5em; margin-left: 4px; color: var(--gold-ink); font-weight: 600; }
.odo { display: inline-flex; overflow: hidden; height: 1em; }
.odo-col { display: inline-flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.16,.84,.24,1); }
.odo-col span { height: 1em; line-height: 1; }
.stat-label { color: var(--slate); font-size: 1rem; max-width: 22ch; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 36px; } }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 160s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-stretch: 112%; font-weight: 300; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); color: var(--ink); white-space: nowrap; }
.marquee-track span::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: 48px; vertical-align: middle; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-cap { text-align: center; color: var(--slate); font-size: .95rem; }

/* Listings tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--fog); border-radius: 999px; margin-bottom: 28px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { white-space: nowrap; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--slate); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.listing-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.listing { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: grid; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.listing:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(21,23,28,.45); }
.listing-img { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.listing-img canvas { width: 100%; height: 100%; display: block; }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(21,23,28,.85); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.listing-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.listing-price { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.45rem; }
.listing-meta { color: var(--slate); font-size: .95rem; }
.sample-note { margin-top: 18px; font-size: .88rem; color: var(--slate); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* Constellation */
.constellation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .constellation { grid-template-columns: 1fr; } }
.channels { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.channels li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: default; transition: background .2s; }
.channels li:hover, .channels li.on { background: rgba(255,255,255,.06); }
.channels b { display: block; font-family: var(--f-display); font-stretch: 112%; font-size: 1.05rem; }
.channels span { color: var(--mist); font-size: .95rem; }
.channels .dot { width: 12px; height: 12px; margin-top: 7px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.sky { position: relative; aspect-ratio: 1 / 0.86; max-width: 100%; }
.sky svg { width: 100%; height: 100%; overflow: visible; }
.sky .link { stroke: var(--gold); stroke-width: 2; fill: none; opacity: .55; }
.sky .node circle { fill: var(--ink); stroke: var(--gold); stroke-width: 1.5; }
.sky .node text { fill: #e7e9ee; font-family: var(--f-body); font-weight: 600; font-size: 20px; }
.sky .node.on circle { fill: var(--gold); }
.sky .pulse { fill: var(--gold); }
.sky .web { stroke: rgba(243,200,69,.18); stroke-width: 1; fill: none; }
.sky .center-label { fill: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 13px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; } .agent h3 { font-size: 1rem; } }
.agent { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.agent-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--fog); position: relative; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; filter: grayscale(.15); }
.agent:hover .agent-photo img { transform: scale(1.05); filter: none; }
.agent-photo::after { content: "View profile"; position: absolute; left: 12px; bottom: 12px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .25s; }
.agent:hover .agent-photo::after, .agent:focus-visible .agent-photo::after { opacity: 1; transform: none; }
.agent h3 { font-size: 1.15rem; }
.agent p { color: var(--slate); font-size: .95rem; }

/* Calculator teaser with floating 3D logos (drawn by logo3d.js) */
.calc-teaser { position: relative; overflow: hidden; }
.logo3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.teaser-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }
.quick { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; color: #fff; }
.quick-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quick-out strong { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); color: var(--gold); font-variant-numeric: tabular-nums; }
.quick-out span { color: var(--mist); }

/* Form fields */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; }
.field label output { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-ink); }
.dark .field label output, .quick .field label output { color: var(--gold); }
.field input[type="number"], .field input[type="text"], .field select {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-variant-numeric: tabular-nums; background: #fff; color: var(--ink);
}
.quick .field input[type="number"] { background: var(--ink); color: #fff; border-color: var(--ink-3); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.money input { padding-left: 24px !important; }
.pct { position: relative; }
.pct::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* Reviews */
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.review { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review.open blockquote { -webkit-line-clamp: unset; display: block; }
.review footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; color: var(--slate); flex-wrap: wrap; }
.review footer b { color: var(--ink); }
.more { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--gold-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.reviews-ctrl { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; }
.round:hover { border-color: var(--ink); }

/* Where we serve map */
.serve { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .serve { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink); aspect-ratio: 1 / 0.8; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; transform: translate(-5px, -50%); background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 5px; color: #e7e9ee; font-family: var(--f-body); font-weight: 600; font-size: .74rem; white-space: nowrap; text-decoration: none; text-shadow: 0 1px 3px #15171c; }
.map .pin span { pointer-events: none; }
.map .pin i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 3px rgba(21,23,28,.6); flex: none; transition: .2s; }
.map .pin.west i { background: #9cc3ff; }
.map .pin.central i { background: var(--gold); }
.map .pin.north i { background: #8fd6b4; }
.map .pin.home i { width: 13px; height: 13px; background: var(--gold); box-shadow: 0 0 0 4px rgba(243,200,69,.25), 0 0 18px var(--gold); }
.map .pin.home { font-weight: 600; color: #fff; font-size: .8rem; }
.map .pin:hover i, .map .pin.on i { transform: scale(1.5); }
.map .pin.left { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); }
.map .pin.up { flex-direction: column-reverse; gap: 1px; transform: translate(-50%, calc(-100% + 5px)); }
.map .pin.down { flex-direction: column; gap: 1px; transform: translate(-50%, -5px); }
.map .pin.ur, .map .pin.ul, .map .pin.dr, .map .pin.dl { display: block; width: 8px; height: 8px; transform: translate(-50%, -50%); }
.map .pin.ur span, .map .pin.ul span, .map .pin.dr span, .map .pin.dl span { position: absolute; }
.map .pin.ur span { left: 7px; bottom: 6px; } .map .pin.ul span { right: 7px; bottom: 6px; }
.map .pin.dr span { left: 7px; top: 6px; } .map .pin.dl span { right: 7px; top: 6px; }
.map .pin.nolabel span { opacity: 0; transition: opacity .15s; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); background: rgba(21,23,28,.92); padding: 2px 7px; border-radius: 6px; z-index: 3; }
.map .pin.nolabel:hover span, .map .pin.nolabel.on span, .map .pin.nolabel:focus-visible span { opacity: 1; }
.map .pin:hover, .map .pin.on { z-index: 4; color: #fff; }
.map-north { position: absolute; top: 14px; right: 16px; font-weight: 700; font-size: .74rem; color: var(--gold); letter-spacing: .1em; text-align: right; }
.map-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 14px; font-size: .78rem; color: var(--mist); flex-wrap: wrap; background: rgba(21,23,28,.85); padding: 5px 10px; border-radius: 8px; z-index: 2; }
.map-legend span { display: inline-flex; gap: 6px; align-items: center; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.town-cols { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 28px; margin-top: clamp(28px, 4vw, 44px); padding-top: 28px; border-top: 1px solid var(--line); }
.town-cols h3 { font-size: 1.1rem; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.town-cols h3 i { width: 10px; height: 10px; border-radius: 50%; }
.town-cols ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.town-cols li { break-inside: avoid; }
.town-cols .g-central { columns: 3; }
.town-cols a { display: inline-block; padding: 3px 0; color: var(--ink); text-decoration: none; font-size: .98rem; }
.town-cols a:hover, .town-cols a.on { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .town-cols { grid-template-columns: 1fr 1fr; } .town-cols > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .town-cols { grid-template-columns: 1fr; } .town-cols ul, .town-cols .g-central { columns: 2; } }
.counties-h { font-size: 1.05rem; margin-bottom: 10px; }
.counties { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.counties li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: .92rem; }
.counties li::after { content: " County"; color: var(--slate); font-weight: 500; }
.upnorth-link { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; gap: 4px; text-decoration: none; transition: background .2s; }
.upnorth-link b { font-family: var(--f-display); font-stretch: 112%; font-size: 1.15rem; color: var(--gold); }
.upnorth-link span { color: var(--mist); }
.upnorth-link:hover { background: var(--ink-3); }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.post { border-top: 3px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; text-decoration: none; }
.post time { font-size: .8rem; font-weight: 700; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; }
.post h3 { font-size: 1.25rem; }
.post p { color: var(--slate); }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Contact band */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-card { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.contact-line { display: grid; gap: 2px; }
.contact-line small { font-weight: 700; color: var(--mist); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.contact-line span { font-size: 1.1rem; user-select: all; }

/* Footer */
.footer { background: #0e0f13; color: var(--mist); padding-block: 56px 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; font-family: var(--f-body); font-weight: 700; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--mist); }
.footer a:hover { color: var(--gold); }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img.logo { height: 44px; width: auto; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink-3); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .85rem; }
.legal img { height: 40px; width: auto; opacity: .9; }
.legal p { max-width: 70ch; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--ink-3); opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Preview banner */
.preview-bar { background: var(--gold); color: var(--ink); font-size: .85rem; font-weight: 600; text-align: center; padding: 6px 16px; }

/* Reveal: elements rest visible; JS only hides those below the fold, then reveals */
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }

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

@media (max-width: 600px) {
  .map-north { font-size: .66rem; }
  .map-north span { display: none; }
}

/* Stacking panels (Minnesota Team style): each homepage section fills the screen, pins in place,
   and the next one slides up over it while the covered one dims and sinks back slightly. */
[data-panel] { position: sticky; top: var(--stick, var(--bar-h)); min-height: calc(100svh - var(--bar-h)); background: var(--paper); }
[data-panel].dark, .hero[data-panel] { background: var(--ink); }
[data-panel].fog { background: var(--fog); }
[data-panel].section { display: flex; flex-direction: column; justify-content: center; }
[data-panel].section > .wrap { width: 100%; }
.reviews-track { min-width: 0; max-width: 100%; }
[data-panel] > * { transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * 0.05)); }
[data-panel]::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--cover, 0) * 0.55); pointer-events: none; z-index: 5; }
.hero[data-panel] { position: sticky; }
.footer { position: relative; z-index: 40; }
@media (prefers-reduced-motion: reduce) { [data-panel] { position: relative; top: auto; } [data-panel]::after { display: none; } [data-panel] > * { transform: none; } }

/* ---------- Agent pages ---------- */
.agent-hero-in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .agent-hero-in { grid-template-columns: 1fr; } .agent-hero-photo { max-width: 320px; } }
.agent-hero-photo { border-radius: 20px; overflow: hidden; position: relative; }
.agent-hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--gold); }
.agent-hero-text { display: grid; gap: 18px; }
.agent-hero-text h1 { font-size: var(--step-4); font-weight: 800; }
.back { color: var(--mist); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--gold); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--ink-3); background: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.agent-contact { display: flex; gap: 32px; flex-wrap: wrap; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } }
.bio { display: grid; gap: 16px; max-width: 68ch; }
.bio h2 { font-size: var(--step-2); margin-top: 18px; }
.bio h2:first-child { margin-top: 0; }
.side { display: grid; gap: 18px; position: sticky; top: calc(var(--bar-h) + 24px); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; text-decoration: none; }
.side-card h3 { font-size: 1.2rem; }
.side-card ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.side-card .small { color: var(--slate); font-size: .92rem; }
.link-card { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-card span { color: var(--mist); }
.link-card:hover { background: var(--ink-3); }
.contact-line a { color: inherit; font-size: 1.1rem; text-decoration: none; }
.contact-line a:hover { color: var(--gold); }

/* ---------- Calculators ---------- */
.calc-tabs { margin-bottom: 32px; }
.calc-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-pane[hidden] { display: none !important; }
@media (max-width: 860px) { .calc-pane { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: 16px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.calc-out { background: var(--fog); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; position: sticky; top: calc(var(--bar-h) + 20px); }
.out-label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.out-big { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.out-mid { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.15; }
.sbar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #fff; }
.sbar span { min-width: 3px; transition: flex .4s ease; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: .95rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend b { font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0; }
.facts div { background: #fff; border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: .82rem; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.note { color: var(--slate); font-size: .92rem; }
#b-chart { width: 100%; height: auto; background: #fff; border-radius: 12px; }
#b-chart text { font-family: var(--f-mono); }
.disclaimer { margin-top: 40px; color: var(--slate); font-size: .88rem; max-width: 80ch; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px); }
.page-hero-in { display: grid; gap: 16px; max-width: 820px; }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }
.steps b { font-family: var(--f-display); font-stretch: 112%; font-size: 1.15rem; }
.steps span { color: var(--slate); }
.side-card p { color: var(--slate); }
.side-card .btn { justify-self: start; }
.side-card ul.links { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.side-card ul.links a { color: var(--ink); font-weight: 600; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.fog .info-card { border-color: transparent; }
.info-card h3 { font-size: 1.2rem; }
.info-card p { color: var(--slate); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.narrow { max-width: 780px; }

/* ---------- Blog ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.bcard { display: grid; grid-template-rows: auto 1fr; text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(21,23,28,.45); }
.bcard-img { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; display: grid; place-items: center; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bcard-star { width: 46px; height: 46px; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.bcard-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.bcard time, .post-head time { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.bcard h3 { font-size: 1.15rem; }
.bcard p { color: var(--slate); font-size: .95rem; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; color: var(--slate); }
.post-head { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); }
.post-head .wrap { display: grid; gap: 14px; }
.post-head time { color: var(--gold); }
.post-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; }
.prose { font-size: 1.08rem; line-height: 1.75; display: grid; gap: 18px; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose h3 { font-size: 1.3rem; margin-top: 10px; }
.prose a { color: var(--gold-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: grid; gap: 8px; }
.prose figure { margin: 8px 0; }
.prose figure img { border-radius: 12px; width: 100%; height: auto; }
.prose blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--slate); }
.post-cta { margin-top: 48px; padding: 24px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.post-cta div { display: grid; gap: 2px; }
.post-cta span { color: var(--mist); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 32px clamp(56px, 8vw, 96px); }
.post-nav a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; display: grid; gap: 4px; font-weight: 600; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav small { color: var(--slate); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.post-nav .older { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .older { text-align: left; } }

.blur-name { filter: blur(4px); user-select: none; color: var(--slate); font-weight: 700; }

/* ---------- Buying / Selling upgrades ---------- */
.page-video-hero { min-height: min(78svh, 760px); }
.page-video-hero .hero-in { padding-block: clamp(110px, 16vw, 200px) clamp(48px, 7vw, 80px); }
.page-video-hero h1 { font-size: var(--step-4); }
.embed-calc { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(18px, 3vw, 32px); }
.embed-calc .calc-pane { display: grid; }
.dark .disclaimer { color: var(--mist); }
.disclaimer { margin-top: 18px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--slate); display: grid; gap: 10px; }

/* ---------- Top menu dropdowns (homefront.team style) ---------- */
.dd { position: relative; display: flex; align-items: center; }
.dd > a { padding-right: 4px; }
.dd-btn { background: none; border: 0; color: #e7e9ee; width: 22px; height: 30px; display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 6px; margin-left: -2px; }
.dd-btn svg { width: 10px; height: 8px; transition: transform .2s; }
.dd-menu { position: absolute; top: calc(100% + 10px); left: -6px; min-width: 230px; background: #fff; color: var(--ink); border-radius: 12px; padding: 8px; box-shadow: 0 22px 50px -18px rgba(0,0,0,.55); border: 1px solid var(--line);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; z-index: 70; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd:hover .dd-btn svg, .dd.open .dd-btn svg { transform: rotate(180deg); }
.nav .dd-menu a { color: var(--ink); font-weight: 600; font-size: .93rem; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.nav .dd-menu a:hover { background: var(--fog); color: var(--ink); }
.nav .dd-menu a[target="_blank"]::after { content: " ↗"; color: var(--slate); font-size: .8em; }
@media (max-width: 960px) {
  .topbar.open .nav { max-height: calc(100svh - var(--bar-h)); overflow-y: auto; }
  .topbar.open .dd { flex-wrap: wrap; }
  .topbar.open .dd > a { flex: 1; padding: 14px 12px; }
  .topbar.open .dd-btn { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; }
  .topbar.open .dd-btn svg { width: 14px; height: 10px; }
  .dd-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; flex-basis: 100%; background: var(--ink-2); border-color: var(--ink-3); box-shadow: none; margin: 2px 0 8px; min-width: 0; }
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: none; }
  .dd.open .dd-menu { display: grid; }
  .nav .dd-menu a { color: #e7e9ee; padding: 12px; white-space: normal; }
  .nav .dd-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .dd:hover .dd-btn svg { transform: none; }
  .dd.open .dd-btn svg { transform: rotate(180deg); }
}
@media (min-width: 961px) and (max-width: 1180px) { .nav a { padding: 8px 8px; font-size: .9rem; } .dd > a { padding-right: 2px; } .topbar-in { gap: 14px; } }

/* ---------- Up north band ---------- */
.upnorth-band { position: relative; overflow: hidden; min-height: min(92svh, 720px); display: flex; flex-direction: column; justify-content: flex-start;
  background: radial-gradient(120% 80% at 70% 0%, #2a3142 0%, #15171c 62%); }
.upnorth-band .pines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; }
.upnorth-star { position: absolute; right: 14%; top: 16%; width: 54px; height: 54px; background: var(--gold); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 18px rgba(243,200,69,.9)); animation: twinkle 4s ease-in-out infinite alternate; }
.upnorth-star::after { content: ""; position: absolute; inset: 0; }
@keyframes twinkle { from { transform: scale(.88) rotate(0deg); opacity: .85; } to { transform: scale(1.06) rotate(8deg); opacity: 1; } }
.upnorth-in { position: relative; display: grid; gap: 18px; max-width: 760px; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.upnorth-in h2 { font-size: var(--step-4); font-weight: 800; font-stretch: 118%; }
.upnorth-in .eyebrow { font-size: .95rem; }
.upnorth-in .lede { color: #d5d9e0; }
@media (max-width: 700px) { .upnorth-band { min-height: 640px; } .upnorth-star { right: 10%; top: 6%; width: 38px; height: 38px; } .upnorth-band .pines { height: 42%; } }

/* ---------- Compact process steps ---------- */
.steps-c { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.steps-c li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); align-content: start; }
.fog .steps-c li { border-color: transparent; }
.steps-c li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: .95rem; }
.steps-c b { font-family: var(--f-display); font-stretch: 112%; font-size: 1.02rem; line-height: 1.25; }
.steps-c span { color: var(--slate); font-size: .92rem; line-height: 1.45; }
.cards3.tight { margin-top: 22px; gap: 14px; }
.cards3.tight .side-card { align-content: start; }

/* ---------- Buyer home search ---------- */
.search-band { padding-top: clamp(48px, 6vw, 80px); }
.search-card { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr .8fr auto; gap: 12px; align-items: end; background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 28px 60px -34px rgba(21,23,28,.7); }
.search-card .field label { color: var(--mist); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.search-card select { min-height: 52px; border-color: var(--ink-3); }
.search-card .s-go { min-height: 52px; padding: 0 26px; }
@media (max-width: 1000px) { .search-card { grid-template-columns: 1fr 1fr 1fr; } .search-card .s-town { grid-column: span 2; } }
@media (max-width: 600px) { .search-card { grid-template-columns: 1fr 1fr; } .search-card .s-town, .search-card .s-go { grid-column: 1 / -1; } }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: .92rem; }
.search-chips > span { color: var(--slate); font-weight: 600; margin-right: 4px; }
.search-chips a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; transition: .2s; }
.search-chips a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.search-chips a.more-link { border: 0; color: var(--gold-ink); padding-left: 6px; }
.search-chips a.more-link:hover { background: none; color: var(--ink); text-decoration: underline; }
.buy-listings { margin-top: clamp(48px, 7vw, 80px); }
.buy-listings .section-head h2 { font-size: var(--step-2); }

.steps-c li.step-cta { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; display: grid; grid-template-columns: 1fr; align-content: center; gap: 4px; transition: background .2s; }
.steps-c li.step-cta::before { display: none; }
.steps-c li.step-cta a { color: inherit; text-decoration: none; display: grid; gap: 4px; }
.steps-c li.step-cta b { color: var(--gold); }
.steps-c li.step-cta span { color: var(--mist); }
.steps-c li.step-cta:hover { background: var(--ink-3); }
.page-hero.slim { padding-block: clamp(44px, 6vw, 72px); }

/* Our Team page: rows of 4 */
.team-grid.rows4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .team-grid.rows4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-hero h1 em { font-style: normal; color: var(--gold); }

/* ---------- Contact page ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 16px; max-width: 720px; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"] { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--ink); }
.contact-form .req { color: #b3261e; }
.contact-form .btn { justify-self: start; min-width: 160px; }
.contact-form .btn[disabled] { opacity: .7; cursor: wait; }
.form-msg { background: #fdecea; color: #8a1c14; border: 1px solid #f3c1bb; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dark-card { background: var(--ink); color: #fff; position: sticky; top: calc(var(--bar-h) + 24px); }
.dark-card .contact-line span, .dark-card .contact-line a { color: #fff; }
.contact-form .field label { justify-content: flex-start; gap: 4px; }

/* Agent page photo: keep the 4:5 shape instead of stretching to the HTML height */
.agent-hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Reviews on a phone ---------- */
.reviews-phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .reviews-phone { grid-template-columns: 1fr; justify-items: center; } .reviews-phone > div:first-child { justify-self: stretch; } }
.phone { width: min(340px, 86vw); aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 52px; background: linear-gradient(145deg, #2c3039, #0e0f13 60%); box-shadow: 0 40px 80px -30px rgba(21,23,28,.65), inset 0 0 0 2px #3a3f4a; position: relative; }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2c3039; }
.phone::before { left: -4px; top: 22%; height: 56px; }
.phone::after { right: -4px; top: 28%; height: 84px; }
.phone-screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 14px; background: #0e0f13; z-index: 3; }
.phone-top { padding: 48px 18px 12px; border-bottom: 1px solid #e8eaed; display: grid; gap: 4px; background: #fff; position: relative; z-index: 2; }
.phone-top b { font-family: var(--f-body); font-size: 1rem; color: #202124; }
.ph-rate { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #5f6368; }
.ph-score { font-weight: 700; color: #202124; font-size: .95rem; }
.pr-stars { color: #fbbc04; letter-spacing: 1px; font-size: .8rem; }
.phone-feed { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.feed-track { will-change: transform; }
.feed-track.run { animation: feedscroll var(--feed-dur, 120s) linear infinite; }
.phone:hover .feed-track.run { animation-play-state: paused; }
@keyframes feedscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.pr { padding: 14px 18px; border-bottom: 1px solid #f1f3f4; display: grid; gap: 8px; }
.pr-head { display: flex; gap: 10px; align-items: center; }
.pr-head i { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: .95rem; flex: none; }
.pr-head div { display: grid; gap: 1px; }
.pr-head b { font-size: .88rem; color: #202124; font-weight: 600; }
.pr-head .blur-name { filter: blur(3.5px); }
.pr p { margin: 0; font-size: .84rem; line-height: 1.45; color: #3c4043; }
@media (prefers-reduced-motion: reduce) { .phone-feed { overflow-y: auto; -webkit-mask-image: none; mask-image: none; } }
.reviews-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.reviews-split-phone { position: sticky; top: calc(var(--bar-h) + 24px); }
.review-list { display: grid; gap: 18px; }
@media (max-width: 860px) { .reviews-split { grid-template-columns: 1fr; } .reviews-split-phone { position: static; justify-self: center; } }

/* Home: Real Geeks listings shown in a window until the listing feed is connected */
.listings-frame { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -30px rgba(21,23,28,.45); }
.listings-frame iframe { display: block; width: 100%; height: min(760px, 72svh); border: 0; }
@media (max-width: 600px) { .listings-frame iframe { height: 620px; } }
.search-card input[type="text"] { width: 100%; min-height: 52px; border: 1px solid var(--ink-3); border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; color: var(--ink); }
.search-card input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---------- Home: shop-by tiles + listing alerts ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-tile { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.shop-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(21,23,28,.6); }
.shop-art { background: linear-gradient(180deg, #2a3142, #15171c); aspect-ratio: 3 / 2; display: grid; place-items: center; }
.shop-art svg { width: 100%; height: 100%; display: block; }
.shop-txt { padding: 14px 16px 16px; display: grid; gap: 4px; align-content: start; }
.shop-txt b { font-family: var(--f-display); font-stretch: 112%; font-size: 1.1rem; }
.shop-txt span { color: var(--mist); font-size: .9rem; line-height: 1.4; }
.shop-txt i { font-style: normal; color: var(--gold); font-weight: 700; font-size: .9rem; margin-top: 4px; }
.town-tile .shop-art { aspect-ratio: 3 / 1.4; }
.town-tile .shop-txt b { font-size: 1.25rem; }
.alerts-band { margin-top: 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 24px; border-radius: 16px; background: var(--fog); border: 1px solid var(--line); }
.alerts-band div { display: grid; gap: 4px; max-width: 64ch; }
.alerts-band b { font-family: var(--f-display); font-stretch: 112%; font-size: 1.15rem; }
.alerts-band span { color: var(--slate); }
.shop-more { margin-top: 14px; font-weight: 700; }
.shop-more a { color: var(--gold-ink); text-decoration: none; }
.shop-more a:hover { text-decoration: underline; }

/* ---------- Home: recently sold carousel ---------- */
.sold-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sold-track { display: flex; gap: 20px; width: max-content; padding: 4px 0 8px; }
.sold-track.run { animation: soldscroll var(--sold-dur, 120s) linear infinite; }
.sold-strip:hover .sold-track.run { animation-play-state: paused; }
@keyframes soldscroll { to { transform: translateX(-50%); } }
.sold-card { width: 300px; flex: none; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--ink-3); }
.sold-img { aspect-ratio: 16 / 10; position: relative; background: var(--ink-3); display: grid; place-items: center; overflow: hidden; }
.sold-img img { width: 100%; height: 100%; object-fit: cover; }
.sold-img .badge { background: var(--gold); color: var(--ink); }
.sold-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.sold-body .listing-meta { color: var(--mist); }
.sold-agent { color: var(--gold); font-size: .88rem; font-weight: 600; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .sold-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }
.sold-town { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; }
.sold-year { color: var(--mist); }
.shop-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shop-tile:hover .shop-art img { transform: scale(1.05); }
.shop-art { overflow: hidden; }
.town-tile .shop-art { aspect-ratio: 3 / 2; }
.photo-credits { margin-top: 10px; font-size: .75rem; color: var(--slate); line-height: 1.5; }
.photo-credits a { color: inherit; }
