/* =============================================================
   Veteran Property Network — Design System
   Monochromatic blue / white / grey. No red anywhere.
   Fonts: Saira Semi Condensed (display) · Public Sans (body/UI)
          JetBrains Mono (eyebrows / data)
   Palette: Blue 500 #2762b3 · Blue 600 #0d499a · Navy 900 #061f47
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Blue scale */
  --blue-50:  #eef4fb;
  --blue-100: #dce8f6;
  --blue-200: #b7d0ec;
  --blue-300: #8bb2df;
  --blue-400: #5188cc;
  --blue-500: #2762b3;   /* primary */
  --blue-600: #0d499a;   /* deep — hover/pressed */
  --blue-700: #0b3d80;
  --blue-800: #0a2e5f;
  --blue-900: #061f47;   /* navy — hero/footer */
  --blue-950: #04142f;

  /* Cool neutrals (blue-tinted greys) */
  --ink:        #0f1c30;  /* primary text */
  --ink-2:      #263850;  /* strong body */
  --slate-600:  #45566e;  /* secondary text */
  --slate-500:  #61728a;  /* muted text */
  --slate-400:  #8695ab;  /* faint / placeholder */
  --border:     #dde5f0;
  --border-2:   #c8d4e4;
  --surface:    #f4f7fc;  /* page background */
  --surface-2:  #eaf1f9;  /* alt band */
  --white:      #ffffff;

  /* Functional (UI state only — never brand) */
  --success:    #1f8a5b;
  --success-bg: #e4f4ec;
  --warning:    #b57d15;
  --warning-bg: #fbf1dd;
  --danger:     #334155;  /* deep slate, never red */

  /* Typography */
  --font-display: "Saira Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Radii — architectural / restrained */
  --r-control: 6px;
  --r-card: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows — cool, blue-tinted, soft */
  --shadow-xs: 0 1px 2px rgba(6,31,71,.05);
  --shadow-sm: 0 1px 2px rgba(6,31,71,.06), 0 2px 6px rgba(6,31,71,.05);
  --shadow-md: 0 6px 18px rgba(6,31,71,.09);
  --shadow-lg: 0 16px 40px rgba(6,31,71,.14);
  --ring: 0 0 0 3px rgba(39,98,179,.28);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --header-h: 68px;

  /* Motion */
  --t-fast: 120ms cubic-bezier(.4,.1,.2,1);
  --t: 200ms cubic-bezier(.4,.1,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip stray horizontal overflow from reveal/parallax transforms without breaking position:sticky */
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-control); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--slate-600); line-height: 1.55; }
strong { font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow--light { color: var(--blue-300); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--slate-500); }
.center { text-align: center; }
.eyebrow svg { width: 15px; height: 15px; }

/* hydrated inline icon wrapper */
.i { display: inline-flex; align-items: center; justify-content: center; }
.i svg { width: 1.15em; height: 1.15em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--surface { background: var(--surface); }
.section--surface2 { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap-flex { flex-wrap: wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-40{margin-top:40px}
.hidden { display: none !important; }

/* ---------- Motifs ---------- */
/* Navy diagonal hero fill + faint survey grid + contour overlay */
.hero-fill {
  background:
    linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 42%, var(--blue-800) 100%);
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-fill::before { /* survey grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,178,223,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,178,223,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 78% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-fill::after { /* contour lines */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='%235389cb' stroke-width='1.1' opacity='0.16'%3E%3Cpath d='M-40 120C140 60 300 180 460 130 640 74 760 160 940 120'/%3E%3Cpath d='M-40 180C140 120 300 240 460 190 640 134 760 220 940 180'/%3E%3Cpath d='M-40 250C160 190 320 300 470 258 660 206 780 286 940 250'/%3E%3Cpath d='M-40 330C160 276 340 372 500 330 680 282 800 356 940 330'/%3E%3Cpath d='M-40 420C170 372 350 452 520 416 700 378 810 440 940 420'/%3E%3Cpath d='M-40 510C180 466 360 536 540 504 720 474 820 524 940 510'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  mask-image: linear-gradient(180deg, transparent 8%, #000 55%);
  pointer-events: none;
}
.hero-fill > * { position: relative; z-index: 1; }

/* thin blue gradient hairline accent (atop headers/dialogs/cards) */
.accent-rule {
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400), var(--blue-200));
}

.contour-wash { position: relative; }
.contour-wash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Cg fill='none' stroke='%232762b3' stroke-width='1' opacity='0.05'%3E%3Cpath d='M-40 120C140 60 300 180 460 130 640 74 760 160 940 120'/%3E%3Cpath d='M-40 220C160 160 340 280 490 238 680 186 800 266 940 230'/%3E%3Cpath d='M-40 340C170 292 350 372 520 336 700 298 810 360 940 340'/%3E%3Cpath d='M-40 450C180 406 360 476 540 444 720 414 820 464 940 450'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}
.contour-wash > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: var(--r-control);
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--secondary { background: var(--white); color: var(--blue-600); border-color: var(--border-2); }
.btn--secondary:hover { border-color: var(--blue-400); color: var(--blue-600); background: var(--blue-50); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--onnavy { background: #fff; color: var(--blue-900); }
.btn--onnavy:hover { background: var(--blue-50); color: var(--blue-900); }
.btn--outline-light { background: rgba(255,255,255,.06); color:#fff; border-color: rgba(255,255,255,.34); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); color:#fff; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Badges / chips / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100);
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--navy { background: var(--blue-900); color: #fff; border-color: var(--blue-900); }
.badge--assumable { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.badge--verified { background: var(--success-bg); color: var(--success); border-color: #bfe6d1; }
.badge--solid { background: var(--blue-500); color:#fff; border-color: var(--blue-500); }
.badge--ghost { background: transparent; color: var(--slate-600); border-color: var(--border-2); }
.badge--sale { background:#fff; color: var(--blue-700); border-color: var(--border-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--slate-600);
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
}
.chip svg { width: 14px; height: 14px; color: var(--blue-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .accent-rule { opacity: .9; }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-lockup { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }
.footer-brand .brand-logo { height: 56px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  padding: 8px 12px; border-radius: var(--r-control);
}
.main-nav a:hover { background: var(--surface); color: var(--blue-600); }
.main-nav a.active { color: var(--blue-600); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-control); border: 1px solid var(--border); color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 96px); }
.hero .eyebrow { color: var(--blue-300); margin-bottom: 20px; }
.hero-title { color: #fff; max-width: 14ch; }
.hero-sub { color: #c3d4ec; font-size: clamp(1.05rem, 1.7vw, 1.32rem); max-width: 54ch; margin-top: 20px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: #b9cbe6; font-size: 0.9rem; }
.hero-trust svg { width: 17px; height: 17px; color: var(--blue-300); flex: none; }

/* Search bar */
.search-card {
  background: #fff; border-radius: var(--r-lg); padding: 8px;
  box-shadow: var(--shadow-lg); margin-top: 34px; max-width: 940px;
  border: 1px solid rgba(255,255,255,.5);
}
.search-tabs { display: flex; gap: 4px; padding: 6px 6px 10px; }
.search-tab {
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  color: var(--slate-600); padding: 7px 15px; border-radius: var(--r-pill);
}
.search-tab.active { background: var(--blue-50); color: var(--blue-600); }
.search-row { display: flex; gap: 8px; align-items: stretch; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: var(--r-control); }
.search-field + .search-field { border-left: 1px solid var(--border); }
.search-field svg { width: 19px; height: 19px; color: var(--blue-500); flex: none; }
.search-field label { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); }
.search-field input, .search-field select {
  border: none; background: none; width: 100%; font-size: 0.98rem; font-weight: 500; color: var(--ink);
  padding: 2px 0;
}
.search-field select { cursor: pointer; }
.search-field input:focus, .search-field select:focus { outline: none; box-shadow: none; }
.search-submit { flex: none; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--blue-900); color: #fff; }
.stat-band .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 34px 22px; text-align: center; border-right: 1px solid rgba(255,255,255,.09);
}
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-num span { color: var(--blue-300); }
.stat-label { margin-top: 10px; font-size: 0.86rem; color: #a9c0de; }

/* ---------- Property card (signature component) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; transition: box-shadow var(--t), border-color var(--t), transform var(--t);
  display: flex; flex-direction: column;
}
.property-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); transform: translateY(-3px); }
.pc-media {
  position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  overflow: hidden;
}
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pc-media .pc-fallback {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
}
.pc-media .pc-badges, .pc-media .pc-save { z-index: 2; }
.pc-media .pc-fallback svg { width: 54px; height: 54px; }
.pc-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 82%; }
.pc-save {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92); color: var(--slate-600); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.pc-save svg { width: 19px; height: 19px; }
.pc-save:hover { transform: scale(1.08); color: var(--blue-600); }
.pc-save.saved { color: var(--blue-600); background:#fff; }
.pc-save.saved svg { fill: var(--blue-500); }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-price { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.01em; }
.pc-price small { font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; color: var(--slate-500); }
.pc-addr { font-size: 0.94rem; color: var(--ink-2); margin-top: 3px; font-weight: 500; }
.pc-city { font-size: 0.85rem; color: var(--slate-500); margin-top: 1px; }
.pc-base {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--blue-600);
}
.pc-base svg { width: 14px; height: 14px; }
.pc-specs {
  display: flex; gap: 14px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border);
  font-size: 0.84rem; color: var(--slate-600);
}
.pc-specs span { display: inline-flex; align-items: center; gap: 5px; }
.pc-specs svg { width: 15px; height: 15px; color: var(--slate-400); }
.pc-foot { margin-top: auto; }

/* ---------- Feature / value cards ---------- */
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 26px; transition: box-shadow var(--t), border-color var(--t), transform var(--t);
  height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); transform: translateY(-2px); }
.feature-ico {
  width: 46px; height: 46px; border-radius: var(--r-control);
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-ico svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.94rem; color: var(--slate-600); }
.card-link { display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:600; font-size:0.9rem; color: var(--blue-600); }
.card-link svg { width:16px; height:16px; transition: transform var(--t-fast); }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--blue-200);
  color: var(--blue-600); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background:#fff;
}
.step h4 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--slate-600); }
.step:not(:last-child) .step-num::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: -12px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 6px, transparent 6px 12px);
}

/* ---------- Split / media rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.05fr .95fr; }
.media-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); position: relative; background: var(--blue-800);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--ink-2); }
.check-list .ico {
  flex: none; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.check-list .ico svg { width: 14px; height: 14px; }

/* ---------- Data / savings callout ---------- */
.data-callout {
  background: var(--blue-900); color: #fff; border-radius: var(--r-lg); padding: 30px 32px;
  position: relative; overflow: hidden;
}
.data-callout .stat-num { font-size: clamp(2.2rem,4vw,3rem); }
.disclosure {
  font-size: 0.72rem; color: var(--slate-500); line-height: 1.5; margin-top: 10px;
}
.disclosure--light { color: #8fa6c6; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px;
  height: 100%; display: flex; flex-direction: column;
}
.quote-mark { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--blue-200); line-height: .6; height: 22px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--ink-2); line-height: 1.6; margin: 8px 0 20px; }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; flex:none;
}
.quote-name { font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.quote-role { font-size: 0.82rem; color: var(--slate-500); }

/* ---------- News cards ---------- */
.news-card { background:#fff; border:1px solid var(--border); border-radius: var(--r-card); overflow:hidden; display:flex; flex-direction:column; transition: box-shadow var(--t), transform var(--t); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-media { aspect-ratio: 16/9; background: linear-gradient(135deg,var(--blue-700),var(--blue-500)); overflow:hidden; }
.news-media img { width:100%; height:100%; object-fit:cover; }
.news-body { padding: 20px; display:flex; flex-direction:column; flex:1; }
.news-meta { display:flex; gap:10px; align-items:center; font-family: var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.1em; color: var(--slate-500); margin-bottom:10px; }
.news-card h3 { font-size: 1.16rem; line-height:1.15; margin-bottom:8px; }
.news-card p { font-size:0.9rem; color: var(--slate-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #b9cbe6; }
.footer-top { padding-block: 60px 44px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand-word .bw-1 { color: #fff; }
.footer-brand .brand-word .bw-2 { color: var(--blue-300); }
.footer-tag { margin-top: 16px; font-size: 0.92rem; color: #96afce; max-width: 30ch; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--r-control); border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #b9cbe6; }
.footer-social a:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7f97b8; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #b9cbe6; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #7f97b8; }
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #96afce; }
.footer-disclaimer { padding-bottom: 34px; font-size: 0.74rem; line-height: 1.6; color: #6f88a9; max-width: 100%; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; }
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #c3d4ec; margin-top: 14px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--blue-500); }
.field .hint { font-size: 0.78rem; color: var(--slate-500); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: var(--r-control);
  background: #fff; font-size: 0.95rem; color: var(--ink); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: var(--ring); }
.textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card { background:#fff; border:1px solid var(--border); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.form-note { font-size: 0.78rem; color: var(--slate-500); margin-top: 6px; }
.form-success { display:none; padding: 16px 18px; border-radius: var(--r-control); background: var(--success-bg); color: var(--success); border:1px solid #bfe6d1; font-size:0.92rem; font-weight:500; }

/* ---------- Breadcrumbs / page header ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--slate-500); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--slate-600); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--slate-400); }

/* ---------- Listings page: filters + results ---------- */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-select {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--border-2);
  border-radius: var(--r-control); background: #fff; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.filter-select svg { width: 15px; height: 15px; color: var(--slate-500); }
.filter-select select { border: none; background: none; font-weight: 500; cursor: pointer; }
.filter-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--border-2); border-radius: var(--r-control); background:#fff; }
.filter-search svg { width: 17px; height: 17px; color: var(--blue-500); }
.filter-search input { border: none; background: none; width: 100%; }
.listings-layout { display: grid; grid-template-columns: 1fr; gap: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.results-count { font-size: 0.92rem; color: var(--slate-600); }
.results-count strong { color: var(--ink); }

/* map placeholder */
.map-panel {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-2); min-height: 380px; position: relative;
}
.map-panel .leaflet-container { height: 100%; width: 100%; font-family: var(--font-body); background: var(--blue-50); }
.map-note { font-size:0.8rem; color: var(--slate-500); background: rgba(255,255,255,.8); padding:6px 12px; border-radius: var(--r-pill); }

/* Interactive map markers (Leaflet divIcon) */
.vpn-marker { background: transparent !important; border: none !important; }
.map-marker { position: relative; transform: translate(-50%, -100%); display: inline-block; white-space: nowrap;
  background: var(--blue-600); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: .78rem;
  line-height: 1; padding: 6px 10px; border-radius: var(--r-pill); box-shadow: var(--shadow-md);
  border: 2px solid #fff; cursor: pointer; transition: transform .12s var(--ease-out), background .12s; }
.map-marker::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: inherit; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg); }
.map-marker:hover, .map-marker.is-hi { background: var(--blue-500); transform: translate(-50%, -100%) scale(1.14); }
.map-marker.is-assumable { background: var(--blue-800); }
.map-marker.is-assumable:hover, .map-marker.is-assumable.is-hi { background: var(--blue-700); }

/* Map popup (branded) */
.vpn-popup .leaflet-popup-content-wrapper { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
.vpn-popup .leaflet-popup-content { margin: 0; width: 240px !important; }
.vpn-popup .leaflet-popup-tip { box-shadow: var(--shadow-md); }
.map-pop__img { height: 118px; background-size: cover; background-position: center; background-color: var(--blue-100); }
.map-pop__body { padding: 12px 14px 14px; }
.map-pop__price { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.map-pop__price small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--slate-500); }
.map-pop__addr { font-weight: 600; color: var(--ink-2); margin-top: 3px; font-size: .95rem; }
.map-pop__city { color: var(--slate-500); font-size: .86rem; }
.map-pop__specs { color: var(--slate-600); font-size: .85rem; margin-top: 6px; }
.leaflet-container a.map-pop__link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--blue-600); font-size: .9rem; }
.leaflet-container a.map-pop__link:hover { color: var(--blue-700); }

/* Result card highlighted when its map marker is hovered */
.property-card.is-hi { outline: 2px solid var(--blue-400); outline-offset: 1px; }

/* ---------- Listing detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--r-lg); overflow: hidden; height: 460px; }
.gallery > div { background: linear-gradient(135deg,var(--blue-800),var(--blue-500)); overflow:hidden; position:relative; }
.gallery > div:first-child { grid-row: span 2; }
.gallery img { width:100%; height:100%; object-fit:cover; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.detail-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border:1px solid var(--border); border-radius: var(--r-card); overflow:hidden; }
.spec-cell { background:#fff; padding: 18px; text-align:center; }
.spec-cell .v { font-family: var(--font-display); font-weight:800; font-size: 1.5rem; color: var(--ink); }
.spec-cell .l { font-size: 0.76rem; color: var(--slate-500); text-transform:uppercase; letter-spacing:0.08em; font-family: var(--font-mono); margin-top:4px; }
.amenity-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.amenity { display:flex; align-items:center; gap:10px; font-size:0.92rem; color: var(--ink-2); }
.amenity svg { width:18px; height:18px; color: var(--blue-500); flex:none; }
.info-row { display:flex; justify-content:space-between; padding: 11px 0; border-bottom:1px solid var(--border); font-size:0.92rem; }
.info-row .l { color: var(--slate-600); }
.info-row .v { font-weight:600; color: var(--ink); }

/* ---------- Tables ---------- */
.vpn-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.vpn-table th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--slate-500); text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--border-2); font-weight: 600; }
.vpn-table td { padding: 14px; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.vpn-table tr:hover td { background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background:#fff; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--r-card); background:#fff; overflow:hidden; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-q { width: 100%; text-align: left; display:flex; justify-content:space-between; align-items:center; gap:16px; padding: 18px 22px; font-weight:600; font-size:1rem; color: var(--ink); }
.acc-q svg { width:20px; height:20px; color: var(--blue-500); flex:none; transition: transform var(--t); }
.acc-item.open .acc-q svg { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc-a-inner { padding: 0 22px 20px; color: var(--slate-600); font-size:0.95rem; }

/* ---------- Logo cloud / partners ---------- */
.logo-cloud { display:flex; flex-wrap:wrap; gap: 14px; }
.partner-chip {
  display:inline-flex; align-items:center; gap:10px; padding: 12px 18px; border:1px solid var(--border);
  border-radius: var(--r-control); background:#fff; font-weight:700; color: var(--blue-900); font-family: var(--font-display); font-size:1.02rem;
}
.partner-chip .dot { width: 26px; height:26px; border-radius: var(--r-control); background: var(--blue-50); color: var(--blue-600); display:flex; align-items:center; justify-content:center; font-size:0.8rem; }
.partner-chip .dot svg { width:15px; height:15px; }

/* ---------- Pagination ---------- */
.pagination { display:flex; gap:6px; justify-content:center; margin-top: 40px; }
.pagination a { min-width: 40px; height: 40px; display:flex; align-items:center; justify-content:center; border-radius: var(--r-control); border:1px solid var(--border); font-size:0.9rem; font-weight:600; color: var(--ink-2); background:#fff; }
.pagination a.active { background: var(--blue-500); color:#fff; border-color: var(--blue-500); }
.pagination a:hover:not(.active) { border-color: var(--blue-400); color: var(--blue-600); }

/* ---------- Alert / info strip ---------- */
.info-strip { display:flex; gap:12px; align-items:flex-start; padding: 14px 16px; border-radius: var(--r-control); background: var(--blue-50); border:1px solid var(--blue-100); font-size:0.88rem; color: var(--ink-2); }
.info-strip svg { width:18px; height:18px; color: var(--blue-600); flex:none; margin-top:2px; }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer { display:none; position: fixed; inset: 0; z-index: 60; }
.mobile-drawer.open { display: block; }
.mobile-drawer .scrim { position:absolute; inset:0; background: rgba(6,20,47,.5); }
.mobile-drawer .panel { position:absolute; top:0; right:0; bottom:0; width: min(320px, 84vw); background:#fff; padding: 20px; box-shadow: var(--shadow-lg); overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.mobile-drawer .panel .close { align-self:flex-end; width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius: var(--r-control); }
.mobile-drawer .panel a { padding: 12px 14px; border-radius: var(--r-control); font-weight:500; color: var(--ink-2); }
.mobile-drawer .panel a:hover { background: var(--surface); }
.mobile-drawer .panel .btn { margin-top: 8px; }

/* ---------- Utilities ---------- */
.tag-scroller { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; }
.divider { height:1px; background: var(--border); border:none; margin-block: 28px; }
.pill-toggle { display:inline-flex; background: var(--surface); border:1px solid var(--border); border-radius: var(--r-pill); padding:3px; }
.pill-toggle button { padding: 7px 16px; border-radius: var(--r-pill); font-size:0.85rem; font-weight:600; color: var(--slate-600); }
.pill-toggle button.active { background:#fff; color: var(--blue-600); box-shadow: var(--shadow-xs); }

/* ---------- Reveal-on-scroll (only hidden when JS is active) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .main-nav, .header-cta .btn--desktop { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sticky { position: static; }
  .split { grid-template-columns: 1fr; }
  .split .media-frame { order: -1; }
  .gallery { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: 160px; }
  .gallery > div:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 860px) {
  .card-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step .step-num::after { display: none; }
  .stat-band .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid rgba(255,255,255,.09); }
  .spec-grid { grid-template-columns: repeat(2,1fr); }
  .amenity-grid { grid-template-columns: repeat(2,1fr); }
  .search-row { flex-direction: column; }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand-logo { height: 36px; }
  .card-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-band .stat-grid { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 12px; }
  .display { font-size: clamp(2.1rem, 9vw, 3rem); }
}

/* =============================================================
   PREMIUM MOTION LAYER
   Cinematic, Apple-inspired scroll & interaction design.
   All heavy motion is gated behind (prefers-reduced-motion: no-preference).
   ============================================================= */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400), var(--blue-200));
  will-change: transform;
}

/* ---------- Header on scroll ---------- */
.site-header { transition: transform .45s var(--ease-out), box-shadow .3s ease, background .3s ease; will-change: transform; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(6,31,71,.08); background: rgba(255,255,255,.86); }
.site-header.nav-hidden { transform: translateY(-100%); }

/* ---------- Hero: full-height + entrance ---------- */
.hero--xl { min-height: 92vh; display: flex; align-items: center; padding-block: clamp(90px, 12vh, 150px) clamp(70px, 10vh, 120px); }
.hero--xl .wrap { width: 100%; }
.hero-parallax { position: absolute; inset: -10% 0; z-index: 0; will-change: transform; }
.hero-glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  right: -10%; top: -20%; border-radius: 50%;
  background: radial-gradient(circle, rgba(83,137,204,.28), transparent 62%);
  filter: blur(20px); pointer-events: none; will-change: transform;
}

/* entrance: children lift/fade in sequence on load — pure CSS auto-play
   (animation-fill-mode:both holds the hidden 'from' state during the delay,
   so nothing depends on JS/rAF timing to become visible) */
html.js .hero-enter > * { animation: heroIn 1s var(--ease-out) both; }
html.js .hero-enter > *:nth-child(1) { animation-delay: .05s; }
html.js .hero-enter > *:nth-child(2) { animation-delay: .16s; }
html.js .hero-enter > *:nth-child(3) { animation-delay: .28s; }
html.js .hero-enter > *:nth-child(4) { animation-delay: .42s; }
html.js .hero-enter > *:nth-child(5) { animation-delay: .56s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* headline masked line reveal (pure CSS auto-play) */
.reveal-lines { display: block; }
.reveal-lines .rl { display: block; overflow: hidden; padding-bottom: 0.04em; }
html.js .reveal-lines .rl > span { display: block; animation: lineUp .9s var(--ease-out) both; }
html.js .reveal-lines .rl:nth-child(1) > span { animation-delay: .12s; }
html.js .reveal-lines .rl:nth-child(2) > span { animation-delay: .24s; }
html.js .reveal-lines .rl:nth-child(3) > span { animation-delay: .36s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: translateY(0); } }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #b9cbe6; }
.scroll-cue span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(185,203,230,.5); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 6px; border-radius: 2px; background: #b9cbe6; transform: translateX(-50%); animation: cueScroll 1.6s var(--ease-in-out) infinite; }
@keyframes cueScroll { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 10px); } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Parallax utility ---------- */
[data-parallax] { will-change: transform; }

/* ---------- Reveal: enriched + stagger ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal--left { transform: translateX(-40px); }
html.js .reveal--right { transform: translateX(40px); }
html.js .reveal--scale { transform: scale(.94); }
html.js .reveal--blur { filter: blur(10px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
html.js .reveal--blur.in { filter: blur(0); }
/* stagger container: children animate in sequence */
html.js .stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
html.js .stagger.in > * { opacity: 1; transform: none; }
html.js .stagger.in > *:nth-child(1) { transition-delay: .00s; }
html.js .stagger.in > *:nth-child(2) { transition-delay: .07s; }
html.js .stagger.in > *:nth-child(3) { transition-delay: .14s; }
html.js .stagger.in > *:nth-child(4) { transition-delay: .21s; }
html.js .stagger.in > *:nth-child(5) { transition-delay: .28s; }
html.js .stagger.in > *:nth-child(6) { transition-delay: .35s; }
html.js .stagger.in > *:nth-child(7) { transition-delay: .42s; }
html.js .stagger.in > *:nth-child(8) { transition-delay: .49s; }

/* ---------- Count-up ---------- */
.countup { font-variant-numeric: tabular-nums; }

/* ---------- Horizontal pinned gallery ---------- */
.hscroll { position: relative; background: var(--surface); }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.hscroll__viewport { overflow: hidden; width: 100%; }
.hscroll__track { display: flex; gap: 26px; padding-inline: var(--gutter); will-change: transform; }
.hscroll__item { flex: 0 0 auto; width: 370px; max-width: 82vw; }
.hscroll__bar { height: 3px; background: var(--border); border-radius: 3px; margin: 30px var(--gutter) 0; overflow: hidden; }
.hscroll__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
/* native fallback (mobile / reduced-motion): normal horizontal scroll */
.hscroll.is-native { height: auto !important; }
.hscroll.is-native .hscroll__sticky { position: static; height: auto; padding-block: clamp(56px, 8vw, 104px); }
.hscroll.is-native .hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-padding-left: var(--gutter); }
.hscroll.is-native .hscroll__track { transform: none !important; }
.hscroll.is-native .hscroll__item { scroll-snap-align: start; }
.hscroll.is-native .hscroll__bar { display: none; }

/* ---------- Sticky scrollytelling ---------- */
.scrolly__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.scrolly__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.scrolly__panel { width: 100%; }
.scrolly__steps { display: flex; flex-direction: column; }
.scrolly__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.scrolly__step.active { opacity: 1; }
.scrolly__step .s-index { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px; }
.scrolly__stagevis { display: grid; }
.scrolly__stagevis > * { grid-area: 1 / 1; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); pointer-events: none; }
.scrolly__stagevis > .active { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) {
  .scrolly__grid { grid-template-columns: 1fr; gap: 0; }
  .scrolly__sticky { position: static; height: auto; margin-bottom: 8px; }
  .scrolly__step { min-height: 0; opacity: 1; padding-block: 30px; }
  .scrolly__stagevis > * { position: static; opacity: 1; transform: none; }
  .scrolly__stagevis { display: block; }
}

/* ---------- Full-bleed statement ---------- */
.statement { min-height: 82vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.statement .wrap { position: relative; z-index: 1; }
.statement h2 { color: #fff; font-size: clamp(2.6rem, 8vw, 6.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.statement p { color: #b9cbe6; max-width: 46ch; margin: 24px auto 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.statement .st-word { display: inline-block; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 44px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--slate-500); white-space: nowrap; }
.marquee__item svg { width: 18px; height: 18px; color: var(--blue-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Parallax image frame ---------- */
.parallax-media { overflow: hidden; position: relative; }
.parallax-media .pm-inner { position: absolute; inset: -14% 0; will-change: transform; }
.parallax-media .pm-inner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Magnetic / tilt / micro-interactions ---------- */
.btn { position: relative; overflow: hidden; }
.btn--primary::after, .btn--onnavy::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease-out);
}
.btn--primary:hover::after, .btn--onnavy:hover::after { transform: translateX(120%); }
[data-magnetic] { transition: transform .3s var(--ease-out); will-change: transform; }
.tilt { transition: transform .35s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

/* animated link underline */
.ux-link { position: relative; }
.ux-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); }
.ux-link:hover::after { transform: scaleX(1); }

/* card hover lift refinement */
.property-card, .feature-card, .news-card, .quote-card { transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out), border-color .3s ease; }

/* ---------- Section heading pop ---------- */
.h-pop { display: inline-block; }

/* ---------- Reduced motion: disable heavy motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-progress { display: none; }
  html.js .reveal, html.js .stagger > *,
  .hero-enter > *, .reveal-lines .rl > span { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .marquee__row { animation: none; }
  .parallax-media img { transform: none; }
  [data-parallax] { transform: none !important; }
  .site-header.nav-hidden { transform: none; }
  .scrolly__step { opacity: 1; }
  .scrolly__stagevis > * { opacity: 1; transform: none; }
}

/* =============================================================
   ACCOUNTS & AUTH
   ============================================================= */
/* ---- Social sign-in buttons ---- */
.social-btns { display: grid; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%;
  padding: 12px 16px; border: 1px solid var(--border-2); border-radius: var(--r-control);
  background: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.96rem; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.social-btn:hover { background: var(--surface); box-shadow: var(--shadow-xs); }
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-btn--apple { background: #000; color: #fff; border-color: #000; }
.social-btn--apple:hover { background: #1b1b1b; }
.social-btn--facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-btn--facebook:hover { background: #1467d6; }

/* ---- Auth page ---- */
.auth-split { display: grid; grid-template-columns: 1.02fr 0.98fr; min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 64px); color: #fff; }
.auth-aside .aside-brand { position: relative; z-index: 1; }
.auth-aside .aside-brand img { height: 40px; }
.auth-aside .aside-body { position: relative; z-index: 1; max-width: 30ch; }
.auth-aside .aside-body h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-aside .aside-body p { color: #b9cbe6; margin-top: 14px; }
.auth-aside .aside-list { position: relative; z-index: 1; display: grid; gap: 14px; }
.auth-aside .aside-list li { display: flex; gap: 12px; align-items: center; color: #d6e2f2; font-size: 0.95rem; }
.auth-aside .aside-list svg { width: 20px; height: 20px; color: var(--blue-300); flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 56px); background: var(--white); }
.auth-card { width: 100%; max-width: 428px; }
.auth-card .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--slate-600); margin-bottom: 24px; }
.auth-card h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.auth-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; margin: 18px 0 24px; }
.auth-tabs button { padding: 8px 20px; border-radius: var(--r-pill); font-size: 0.9rem; font-weight: 600; color: var(--slate-600); }
.auth-tabs button.active { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-xs); }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--slate-500); font-size: 0.8rem; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-panel { display: none; } .auth-panel.active { display: block; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: var(--r-control); background: var(--blue-50); border: 1px solid var(--blue-100); font-size: 0.78rem; color: var(--slate-600); line-height: 1.5; }
.demo-note svg { width: 16px; height: 16px; color: var(--blue-600); flex: none; margin-top: 1px; }
.auth-fine { font-size: 0.78rem; color: var(--slate-500); margin-top: 18px; text-align: center; }
.form-error { color: var(--danger); font-size: 0.85rem; }

/* ---- Header avatar + user menu ---- */
.auth-slot { position: relative; display: inline-flex; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--border); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.avatar-btn:hover { border-color: var(--border-2); box-shadow: var(--shadow-xs); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-600); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; flex: none; }
.avatar-btn .caret { color: var(--slate-500); display: flex; } .avatar-btn .caret svg { width: 16px; height: 16px; }
.user-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 264px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; }
.user-menu.open { display: block; }
.user-menu .um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu .um-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.user-menu .um-email { font-size: 0.8rem; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-control); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.user-menu a:hover, .user-menu button:hover { background: var(--surface); color: var(--blue-600); }
.user-menu a svg, .user-menu button svg { width: 17px; height: 17px; color: var(--slate-500); }
.user-menu hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.vpill { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); }
.vpill--yes { background: var(--success-bg); color: var(--success); }
.vpill--no { background: var(--warning-bg); color: var(--warning); }
.vpill svg { width: 12px; height: 12px; }

/* ---- Modal ---- */
.vpn-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.vpn-modal.open { display: flex; }
.vpn-modal .scrim { position: absolute; inset: 0; background: rgba(6, 20, 47, .55); backdrop-filter: blur(2px); }
.vpn-modal .modal-card { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); max-width: 460px; width: 100%; padding: 32px; box-shadow: var(--shadow-lg); animation: modalIn .28s var(--ease-out) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.vpn-modal .modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-control); color: var(--slate-500); }
.vpn-modal .modal-close:hover { background: var(--surface); }
.idme-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #08833f; }
.idme-badge .idme-mark { width: 34px; height: 34px; border-radius: 8px; background: #08833f; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; }
.idme-steps { display: grid; gap: 10px; margin: 20px 0; }
.idme-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.idme-steps svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; margin-top: 1px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--blue-100); border-top-color: var(--blue-500); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Dashboard ---- */
.dash { display: grid; grid-template-columns: 244px 1fr; gap: 36px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-control); font-weight: 500; font-size: 0.94rem; color: var(--ink-2); cursor: pointer; }
.dash-nav a svg { width: 18px; height: 18px; color: var(--slate-500); }
.dash-nav a:hover { background: var(--surface); }
.dash-nav a.active { background: var(--blue-50); color: var(--blue-600); }
.dash-nav a.active svg { color: var(--blue-600); }
.dash-nav .signout { margin-top: 8px; color: var(--slate-600); }
.dash-panel { display: none; } .dash-panel.active { display: block; }
.dash-panel h2 { font-size: 1.5rem; }
.verify-banner { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-lg); position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); }
.verify-banner .vb-txt h3 { color: #fff; font-size: 1.2rem; }
.verify-banner .vb-txt p { color: #c3d4ec; font-size: 0.92rem; margin-top: 4px; max-width: 52ch; }
.verify-banner.verified { background: #08833f; }
.verify-banner.verified .vb-txt p { color: #d6f0e0; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; }
.stat-tile .st-n { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ink); }
.stat-tile .st-l { font-size: 0.85rem; color: var(--slate-500); margin-top: 2px; }
.stat-tile .st-ico { width: 38px; height: 38px; border-radius: var(--r-control); background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-tile .st-ico svg { width: 19px; height: 19px; }
.app-row { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.app-row + .app-row { margin-top: 12px; }
.app-row .app-thumb { width: 64px; height: 52px; border-radius: var(--r-control); background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); overflow: hidden; flex: none; }
.app-row .app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-row .app-main { flex: 1; min-width: 0; }
.app-row .app-main .a-addr { font-weight: 600; color: var(--ink); }
.app-row .app-main .a-meta { font-size: 0.85rem; color: var(--slate-500); }
.match-result { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.match-result + .match-result { margin-top: 10px; }
.match-result .mr-ico { width: 42px; height: 42px; border-radius: var(--r-control); background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex: none; }
.match-result .mr-ico svg { width: 21px; height: 21px; }
.empty-block { text-align: center; padding: 44px 20px; border: 1px dashed var(--border-2); border-radius: var(--r-card); background: var(--surface); }
.empty-block .eb-ico { width: 48px; height: 48px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); color: var(--blue-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; margin-bottom: 20px; }
  .dash-nav a { white-space: nowrap; }
  .stat-tiles { grid-template-columns: 1fr; }
}

/* =============================================================
   TOOLS & CALCULATORS  (Resources hub + dedicated tool pages)
   Uses existing design tokens only. Brand: blues/navy, no red.
   ============================================================= */

/* Hero kicker chip — the "worked example" result shown in a tool hero */
.hero-kicker { display:inline-flex; align-items:baseline; gap:10px; margin-top:24px; padding:11px 18px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); }
.hero-kicker b { font-family: var(--font-display); font-weight:800; font-size:1.35rem; color:#fff;
  letter-spacing:-.01em; font-variant-numeric: tabular-nums; }
.hero-kicker span { color:#c3d4ec; font-size:.9rem; }

/* Tool jump chips (in-page anchors) */
.tool-chips { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.tool-chip { display:inline-flex; align-items:center; gap:10px; padding:10px 16px; border-radius: var(--r-pill);
  border:1px solid rgba(255,255,255,.22); color:#fff; text-decoration:none; font-weight:600; font-size:.95rem;
  background: rgba(255,255,255,.06); transition: var(--t); }
.tool-chip:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.tool-chip [data-icon] { color: var(--blue-200); }

/* Tool cards (Resources hub grid) */
.tool-cards { display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.tool-card { display:flex; flex-direction:column; gap:14px; background:#fff; border:1px solid var(--border);
  border-radius: var(--r-lg); padding:28px; text-decoration:none; color:var(--ink); box-shadow: var(--shadow-sm);
  position:relative; overflow:hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.tool-card::after { content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); transform: scaleX(0); transform-origin:left;
  transition: transform var(--t); }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-card__ico { width:48px; height:48px; border-radius:12px; display:grid; place-items:center;
  background: var(--blue-50); color: var(--blue-600); font-size:1.4rem; }
.tool-card h3 { font-family: var(--font-display); font-weight:700; font-size:1.32rem; color: var(--ink); letter-spacing:-.01em; }
.tool-card p { color: var(--slate-600); font-size:.95rem; line-height:1.55; }
.tool-card__hook { display:flex; align-items:baseline; gap:9px; padding-top:4px; }
.tool-card__hook b { font-family: var(--font-display); font-weight:800; font-size:1.9rem; color: var(--blue-600);
  letter-spacing:-.02em; line-height:1; font-variant-numeric: tabular-nums; }
.tool-card__hook span { color: var(--slate-500); font-size:.82rem; }
.tool-card__go { margin-top:auto; display:inline-flex; align-items:center; gap:7px; color: var(--blue-600);
  font-weight:600; font-size:.92rem; }
.tool-card__go [data-icon] { transition: transform var(--t); }
.tool-card:hover .tool-card__go [data-icon] { transform: translateX(4px); }
@media (max-width: 860px) { .tool-cards { grid-template-columns: 1fr; } }

/* Calculator shell */
.calc-split { display:grid; grid-template-columns: 1fr 1.05fr; gap:26px; align-items:start; }
@media (max-width: 900px) { .calc-split { grid-template-columns: 1fr; } }
.calc-head-row { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }

/* Segmented control */
.seg { display:inline-flex; background: var(--surface-2); border:1px solid var(--border); border-radius: var(--r-pill); padding:4px; gap:4px; }
.seg button { appearance:none; border:none; background:transparent; font:inherit; font-weight:600; color: var(--slate-600);
  padding:8px 18px; border-radius: var(--r-pill); cursor:pointer; transition: var(--t-fast); }
.seg button.active { background: var(--blue-500); color:#fff; box-shadow: var(--shadow-sm); }
.seg button:focus-visible { outline:none; box-shadow: var(--ring); }

/* Sliders */
.slider-row { margin-bottom:22px; }
.slider-row:last-child { margin-bottom:0; }
.slabel { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.slabel label { font-weight:600; color: var(--ink-2); font-size:.95rem; }
.sval { font-family: var(--font-mono); font-weight:600; color: var(--blue-600); font-size:1rem; background: var(--blue-50);
  padding:3px 12px; border-radius: var(--r-pill); white-space:nowrap; font-variant-numeric: tabular-nums; }
.rng { -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px; background: var(--blue-100);
  outline:none; cursor:pointer; margin:6px 0; }
.rng::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%;
  background: var(--blue-500); border:3px solid #fff; box-shadow: var(--shadow-md); cursor:pointer; transition: transform .12s var(--ease-out); }
.rng::-webkit-slider-thumb:hover { transform: scale(1.12); }
.rng:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.rng::-moz-range-thumb { width:22px; height:22px; border-radius:50%; background: var(--blue-500); border:3px solid #fff; box-shadow: var(--shadow-md); cursor:pointer; }
.rng::-moz-range-track { height:6px; border-radius:999px; background: var(--blue-100); }
.rng::-moz-range-progress { height:6px; border-radius:999px; background: var(--blue-500); }
.field-note { font-size:.85rem; color: var(--slate-500); margin-top:6px; }
.select-row { margin-bottom:22px; }
.select-row label { display:block; font-weight:600; color: var(--ink-2); font-size:.95rem; margin-bottom:8px; }
.select-row .select { font-weight:600; cursor:pointer; }

/* Result callout (navy .data-callout) — big numbers + comparison bars */
.result-card { position:relative; }
.big-save { font-family: var(--font-display); font-weight:800; font-size: clamp(2.5rem, 7vw, 3.9rem); line-height:.95;
  letter-spacing:-.02em; color:#fff; font-variant-numeric: tabular-nums; }
.big-save-label { color:#c3d4ec; font-size:.95rem; margin-top:8px; }
.res-divider { border:none; border-top:1px solid rgba(255,255,255,.14); margin:22px 0; }
.res-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 22px; }
.res-grid .stat-num { font-size: clamp(1.4rem, 3vw, 1.8rem); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .res-grid { grid-template-columns:1fr; } }
.bars { margin-top:22px; display:grid; gap:14px; }
.bar-row .bar-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:7px; }
.bar-row .bar-cap { color:#c3d4ec; font-size:.85rem; }
.bar-row .bar-amt { color:#fff; font-family: var(--font-mono); font-weight:600; font-size:.95rem; font-variant-numeric: tabular-nums; }
.bar-track { height:14px; border-radius:999px; background: rgba(255,255,255,.12); overflow:hidden; }
.bar-fill { height:100%; border-radius:999px; width:0; transition: width .55s var(--ease-out); }
.bar-fill.today { background: linear-gradient(90deg, var(--blue-400), var(--blue-300)); }
.bar-fill.assum { background:#fff; }
.reset-btn { display:inline-flex; align-items:center; gap:7px; }
.full-note { display:none; }

/* Premium: subtle pulse when a result number updates */
@media (prefers-reduced-motion: no-preference) {
  @keyframes numPulse { 0% { transform: scale(1); } 35% { transform: scale(1.045); } 100% { transform: scale(1); } }
  .big-save.pulse { animation: numPulse .34s var(--ease-out); transform-origin:left; }
}

/* ZIP-code county-limit lookup (VA loan limit calculator) */
.zip-row { margin-bottom: 22px; }
.zip-input { max-width: 190px; font-family: var(--font-mono); font-weight: 600; letter-spacing: .1em; font-size: 1.05rem; }
.zip-result { margin-top: 14px; padding: 13px 16px; border-radius: var(--r-control); background: var(--blue-50);
  border: 1px solid var(--blue-100); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zip-result.baseline { background: var(--surface-2); border-color: var(--border); }
.zip-result .zr-county { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.zip-result .zr-limit { font-family: var(--font-display); font-weight: 800; color: var(--blue-600);
  font-size: 1.35rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Buy / Rent / Assumable mode toggle (search page) */
.mode-toggle { display: inline-flex; gap: 5px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 5px; margin-bottom: 16px; max-width: 100%; }
.mode-toggle button { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent;
  font: inherit; font-weight: 600; color: var(--slate-600); padding: 10px 20px; border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.mode-toggle button [data-icon] { font-size: 1.05em; }
.mode-toggle button:hover:not(.active) { color: var(--blue-600); }
.mode-toggle button.active { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-sm); }
.mode-toggle button:focus-visible { outline: none; box-shadow: var(--ring); }
@media (max-width: 560px) {
  .mode-toggle { display: flex; width: 100%; }
  .mode-toggle button { flex: 1; justify-content: center; padding: 10px 6px; gap: 5px; font-size: .92rem; }
}

/* =============================================================
   NEWSROOM ARTICLE (long-form reader)
   ============================================================= */
.article-shell { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 940px) { .article-shell { grid-template-columns: minmax(0, 1fr); } .article-toc { display: none; } }

/* Article hero */
.article-cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); font-weight: 600; }
.article-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; color: var(--ink); margin-top: 14px; text-wrap: balance; }
.article-dek { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.5; color: var(--slate-600); margin-top: 18px; max-width: 62ch; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-600); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.byline__who { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.byline__meta { color: var(--slate-500); font-size: .85rem; margin-top: 1px; }
.article-hero-media { margin-top: 30px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 8; background: var(--blue-100); }
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sticky table of contents (desktop) */
.article-toc { position: sticky; top: calc(var(--header-h) + 28px); }
.article-toc__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); font-weight: 600; margin-bottom: 14px; }
.article-toc ul { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.article-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate-500); font-size: .9rem; line-height: 1.35; transition: color var(--t-fast), border-color var(--t-fast); }
.article-toc a:hover { color: var(--blue-600); }
.article-toc a.is-active { color: var(--blue-700); border-left-color: var(--blue-500); font-weight: 600; }

/* Prose typography */
.prose { max-width: 680px; min-width: 0; color: var(--ink-2); font-size: 1.075rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--ink); letter-spacing: -.01em; line-height: 1.15; margin-top: 1.7em; text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-top: 1.5em; }
.prose a:not(.btn) { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--blue-700); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .55em; }
.prose li { line-height: 1.65; }
.prose li::marker { color: var(--blue-500); font-weight: 600; }

/* Pull quote */
.pull-quote { margin: 2em 0; padding-left: 24px; border-left: 3px solid var(--blue-400); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.3; color: var(--blue-800); letter-spacing: -.01em; }
.pull-quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--slate-500); font-style: normal; }

/* Figure */
.article-figure { margin: 2em 0; }
.article-figure img { width: 100%; border-radius: var(--r-lg); display: block; box-shadow: var(--shadow-sm); background: var(--blue-100); }
.article-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--slate-500); line-height: 1.5; }

/* Key-takeaways callout */
.takeaways { margin: 2em 0; padding: 22px 24px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-lg); }
.takeaways h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.takeaways ul { list-style: none; display: grid; gap: 12px; padding: 0; }
.takeaways li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.takeaways li .tk-ico { color: var(--blue-500); }

/* Stat callout */
.article-stat { margin: 2em 0; padding: 26px 28px; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--blue-900), var(--blue-800)); color: #fff; }
.article-stat .as-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.article-stat .as-label { color: #c3d4ec; margin-top: 12px; font-size: 1rem; line-height: 1.5; max-width: 50ch; }
.article-stat .as-note { color: #8fa9cf; margin-top: 8px; font-size: .82rem; }

/* Inline CTA + footer */
.article-cta { margin: 2em 0; }
.article-cta .btn { white-space: normal; max-width: 100%; }
.article-foot { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
