/* ============================================================
   STACH REALTY — design system
   Palette + type per eXp Realty Brand Guidelines (Jan 2026)
   Dominant: Dark Navy #0C0F24 · Accents: Slate/Frosted Blue only
   Headlines: Manrope · Body: Roboto
   ============================================================ */

:root {
  --navy: #0C0F24;
  --ink: #07091A;          /* deep variant of navy for alternating bands */
  --black: #000000;
  --grey: #EEEEEE;
  --white: #FFFFFF;
  --charcoal: #31303F;
  --moss: #686672;
  --slate: #506CAA;
  --frost: #91A3C9;

  --font-display: 'Manrope', 'Poppins', sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;

  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --section-y: clamp(4.5rem, 11vh, 9rem);
  --max-w: 1440px;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--navy);
  color: var(--grey);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--slate); color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
}

.thin { font-weight: 300; color: var(--frost); }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--frost);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--slate);
  flex: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out), padding .45s var(--ease-out);
}
.nav.scrolled {
  background: rgba(7, 9, 26, 0.92);
  box-shadow: 0 1px 0 rgba(145, 163, 201, 0.14);
  padding-top: .6rem;
  padding-bottom: .6rem;
}
/* blur lives on a pseudo-element: backdrop-filter on .nav itself would
   trap the fixed-position mobile menu inside the nav bar's box */
.nav.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  z-index: -1;
}

/* co-brand lockup: agent logo first, 1px divider, eXp logo (larger per Dan) */
.lockup { display: flex; align-items: center; gap: 1rem; flex: none; }
.lockup img.dns { height: 38px; width: auto; }
.lockup img.exp { height: 46px; width: auto; }
.lockup .rule { width: 1px; height: 42px; background: rgba(238, 238, 238, 0.35); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: .82;
  transition: opacity .25s, color .25s;
  padding: .35rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--frost);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--navy) !important;
  background: var(--grey);
  padding: .65rem 1.3rem !important;
  border-radius: 2px;
  transition: background .25s;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--white); }
.nav-cta::after { display: none; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--grey);
  margin: 6px auto;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    transition: transform .5s var(--ease-out);
    z-index: 120;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; }
  .nav-burger { display: block; }
  .lockup { position: relative; z-index: 130; }
  .lockup img.dns { height: 30px; }
  .lockup img.exp { height: 38px; }
  .lockup .rule { height: 34px; }
}

/* ---------- sections ---------- */
.section {
  padding: var(--section-y) var(--pad-x);
  position: relative;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.section.band { background: var(--ink); }

.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.section-head p { margin-top: 1.2rem; color: var(--frost); max-width: 52ch; }

/* ghost X — the eXp "X" used as a framing device (brand kit allows) */
.ghost-x {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18rem, 42vw, 44rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(145, 163, 201, 0.07);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--navy);
  background: var(--grey);
  padding: 1rem 1.9rem;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease-out);
}
.btn:hover { background: var(--white); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--grey);
  box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.35);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--frost); color: var(--white); background: transparent; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- entry (door) hero ---------- */
#entry { position: relative; height: 260vh; background: var(--black); }
#entry.static { height: 100vh; }
.entry-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.entry-photo {
  position: absolute;
  inset: 0;
  background: url("../img/hero-door.jpg") center 42% / cover no-repeat;
  transform-origin: 50% 46%;
  will-change: transform;
}
.entry-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 18% 30% at 50.5% 47%, rgba(255, 196, 110, 0.28), transparent 70%);
  mix-blend-mode: screen;
  animation: glowPulse 5.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.entry-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,9,26,.62) 0%, rgba(7,9,26,.18) 38%, rgba(7,9,26,.30) 70%, rgba(7,9,26,.88) 100%);
}
.entry-fade {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
}
.entry-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 11vh;
  z-index: 5;
}
.entry-copy .eyebrow { color: var(--grey); }
.entry-copy h1 {
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  max-width: 12ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.entry-copy h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--frost);
}
.entry-actions { display: flex; gap: 1.2rem; margin-top: 2.4rem; flex-wrap: wrap; }

.entry-coords {
  position: absolute;
  right: var(--pad-x);
  bottom: 11vh;
  text-align: right;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(238,238,238,.66);
  line-height: 2.1;
  z-index: 5;
}
.entry-coords .coord-exp {
  font-size: .95rem;
  color: rgba(238,238,238,.92);
}

/* front-page brand marks — DNS top left, larger eXp top right.
   eXp logo keeps its official proportions (brand rules forbid stretching). */
.nav.no-lockup { justify-content: flex-end; }
.hero-brand {
  position: absolute;
  top: 40px;
  z-index: 5;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.45));
  width: auto;
}
.hero-dns { left: var(--pad-x); height: 110px; }
.hero-exp { right: var(--pad-x); height: 216px; top: 96px; }
@media (max-width: 1100px) {
  .hero-dns { height: 76px; }
  .hero-exp { height: 144px; }
}
@media (max-width: 700px) {
  .hero-dns { height: 56px; top: 76px; }
  .hero-exp { height: 96px; top: 76px; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 5;
  width: 1px;
  height: 56px;
  background: rgba(238,238,238,.28);
  overflow: hidden;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--grey);
  animation: hintDrop 2.2s var(--ease-out) infinite;
}
@keyframes hintDrop { to { top: 110%; } }

@media (max-width: 700px) {
  .entry-copy { padding-bottom: 16vh; }
  .entry-coords { display: none; }
}

/* ---------- intro thesis ---------- */
.intro p.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--grey);
  max-width: 30ch;
}
.intro p.lede strong { font-weight: 800; color: var(--white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.intro-side { color: var(--frost); font-size: .98rem; max-width: 38ch; }
.intro-side .sig {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  letter-spacing: .01em;
}
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- listings rail ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 30vw, 430px);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--charcoal) transparent;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--charcoal); }

.card {
  scroll-snap-align: start;
  background: var(--ink);
  border: 1px solid rgba(145,163,201,.12);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(145,163,201,.35); }
.card figure { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover figure img { transform: scale(1.06); }
.card .tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(7,9,26,.82);
  color: var(--frost);
  padding: .4rem .7rem;
  border-radius: 2px;
}
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
}
.card-body .addr { color: var(--frost); font-size: .92rem; margin-top: .3rem; }
.card-body .meta {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(145,163,201,.14);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--moss);
  text-transform: uppercase;
}
.demo-note { margin-top: 1.2rem; font-size: .8rem; color: var(--moss); }

/* ---------- split guides ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.panel {
  position: relative;
  min-height: clamp(380px, 55vh, 560px);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .9s var(--ease-out);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(7,9,26,.05) 30%, rgba(7,9,26,.92) 88%);
  z-index: -1;
  transition: background .4s;
}
.panel:hover img { transform: scale(1.05); }
.panel-body { padding: 2.2rem; }
.panel-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.panel-body p { color: var(--frost); margin: .7rem 0 1.4rem; max-width: 42ch; font-size: .95rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- communities grid ---------- */
.hoods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
@media (max-width: 1240px) { .hoods { grid-template-columns: repeat(2, 1fr); } }
.hood {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out); }
.hood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,9,26,.9)); z-index: -1; }
.hood:hover img { transform: scale(1.07); }
.hood-body { padding: 1.5rem; }
.hood-body h3 { font-size: 1.2rem; }
.hood-body span { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--frost); }
@media (max-width: 1020px) { .hoods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hoods { grid-template-columns: 1fr; } .hood { aspect-ratio: 16/10; } }

/* community search links (IDX targets swap in via data-area) */
.hood-search {
  margin-top: 1.4rem;
  font-size: .82rem;
  padding: .7rem 1.2rem;
}

/* ---------- market stats ---------- */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem 2rem; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .num sup { font-size: .45em; color: var(--frost); font-weight: 300; }
.stat .label {
  margin-top: .55rem;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss);
}
.market-visual { position: relative; border-radius: 3px; overflow: hidden; }
.market-visual img { width: 100%; }
.market-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,15,36,.25), rgba(12,15,36,.75));
}
.stat-note { grid-column: 1 / -1; font-size: .78rem; color: var(--moss); }
@media (max-width: 880px) { .market-grid { grid-template-columns: 1fr; } }

/* ---------- about teaser ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.headshot {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
  border: 1px solid rgba(145,163,201,.14);
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--moss);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}
.headshot .placeholder img.mark { width: 55%; height: auto; opacity: .5; object-fit: contain; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .headshot { max-width: 420px; } }

/* ---------- blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { border-radius: 3px; overflow: hidden; background: var(--ink); border: 1px solid rgba(145,163,201,.12); transition: transform .4s var(--ease-out), border-color .3s; }
.post:hover { transform: translateY(-6px); border-color: rgba(145,163,201,.35); }
.post figure { aspect-ratio: 16 / 10; overflow: hidden; }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover figure img { transform: scale(1.06); }
.post-body { padding: 1.4rem 1.5rem 1.7rem; }
.post-body time { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--moss); }
.post-body h3 { font-size: 1.18rem; margin-top: .6rem; line-height: 1.3; }
.post-body p { color: var(--frost); font-size: .92rem; margin-top: .6rem; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem);
  text-align: center;
  isolation: isolate;
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: rgba(7,9,26,.82); z-index: -1; }
.cta-banner h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); max-width: 22ch; margin: 0 auto; }
.cta-banner p { color: var(--frost); margin: 1.2rem auto 2rem; max-width: 48ch; }

/* ---------- footer ---------- */
footer {
  background: var(--black);
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x) 2.5rem;
  border-top: 1px solid rgba(145,163,201,.12);
}
.foot-inner { max-width: var(--max-w); margin: 0 auto; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(145,163,201,.12);
}
.foot-lockup { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.6rem; }
.foot-lockup img.dns { height: 46px; }
.foot-lockup img.exp { height: 92px; }
.foot-lockup .rule { width: 1px; height: 78px; background: rgba(238,238,238,.3); }
.sig-block { font-size: .95rem; color: var(--frost); line-height: 1.9; }
.sig-block .name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--white); }
.sig-block a:hover { color: var(--white); }
.foot-col h4 {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.foot-col a { display: block; color: var(--frost); padding: .34rem 0; font-size: .95rem; transition: color .25s; }
.foot-col a:hover { color: var(--white); }
.foot-legal {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: .78rem;
  color: var(--moss);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- page hero (subpages) ---------- */
/* floating eXp mark on subpage heroes — ~1in tall, below the header bar,
   aligned under the About / Work-with-Dan area */
.page-exp {
  position: absolute;
  top: 80px;
  right: calc(var(--pad-x) + 120px);
  height: 104px;
  width: auto;
  z-index: 5;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.45));
}
@media (max-width: 960px) {
  .page-exp { top: 72px; right: var(--pad-x); height: 76px; }
}
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem var(--pad-x) 4rem;
  isolation: isolate;
  overflow: hidden;
}
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,26,.72), rgba(12,15,36,.55) 55%, var(--navy));
  z-index: -1;
}
.page-hero .inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 16ch; }
.page-hero p.sub { color: var(--frost); margin-top: 1.2rem; max-width: 54ch; }

/* ---------- prose / steps (guides) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; max-width: 820px; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(145,163,201,.14);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  color: var(--slate);
  line-height: 1;
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--frost); font-size: .97rem; max-width: 60ch; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: block; }
label.field span {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .5rem;
}
input, textarea, select {
  width: 100%;
  background: var(--ink);
  border: 1px solid rgba(145,163,201,.2);
  border-radius: 2px;
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .9rem 1rem;
  transition: border-color .25s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--slate); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- card grid (listings page) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 1020px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

/* ---------- IDX placeholder panel ---------- */
.idx-panel {
  border: 1px dashed rgba(145, 163, 201, 0.4);
  border-radius: 3px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  background: rgba(49, 48, 63, 0.25);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.idx-panel h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.idx-panel p { color: var(--frost); max-width: 60ch; margin: 0 auto 1.6rem; font-size: .95rem; }

/* ---------- value cards (about) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value {
  background: var(--ink);
  border: 1px solid rgba(145,163,201,.12);
  border-radius: 3px;
  padding: 2rem 1.8rem;
}
.value h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.value p { color: var(--frost); font-size: .93rem; }
.value .k {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  color: var(--slate);
  display: block;
  margin-bottom: 1rem;
}
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- simple bar chart (market report) ---------- */
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; align-items: end; height: 220px; margin-top: 2rem; }
.chart .bar { background: linear-gradient(180deg, var(--slate), var(--charcoal)); border-radius: 2px 2px 0 0; position: relative; }
.chart .bar.hot { background: linear-gradient(180deg, var(--frost), var(--slate)); }
.chart-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: .5rem; margin-top: .6rem; font-size: .62rem; letter-spacing: .1em; color: var(--moss); text-transform: uppercase; text-align: center; }

/* ---------- article / blog post body ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.byline { color: var(--frost); font-size: .92rem; margin: -1.4rem 0 2.5rem; }
.byline .exp { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.05em; }
.lede-box {
  background: var(--ink);
  border: 1px solid rgba(145,163,201,.18);
  border-left: 3px solid var(--slate);
  border-radius: 3px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 2.6rem;
  font-size: 1.08rem;
  line-height: 1.7;
}
.lede-box strong { color: var(--white); }
.article-wrap h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 2.6rem 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(145,163,201,.2);
}
.article-wrap > p { margin-bottom: 1.1rem; }
.article-wrap .faq-head {
  text-align: center;
  border-top: 1px solid rgba(145,163,201,.2);
  border-bottom: 1px solid rgba(145,163,201,.2);
  padding: 1.2rem 0;
  margin: 3rem 0 1.8rem;
}
.faq-card {
  background: var(--ink);
  border: 1px solid rgba(145,163,201,.12);
  border-radius: 3px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}
.faq-card p.q { color: var(--white); font-weight: 700; margin-bottom: .5rem; }
.faq-card p.a { color: var(--frost); font-size: .96rem; margin: 0; }
.article-sig {
  text-align: center;
  color: var(--frost);
  font-size: .92rem;
  line-height: 1.8;
  border-top: 1px solid rgba(145,163,201,.2);
  padding-top: 1.8rem;
  margin-top: 2.5rem;
}
.article-sig a { color: var(--slate); }
.article-sig a:hover { color: var(--white); }

/* ---------- reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(42px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 3px;
}
