/* =========================================================================
   Kevin Sass · Alpine Resort Real Estate — Hemlock Valley, BC
   Global stylesheet. Cinematic, warm, photography-first.
   Palette: deep forest green + snow white + warm cedar, brand-red accent.
   Type: Fraunces (display serif) + Inter (humanist sans).
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Forest greens (brand core) */
  --forest-ink: #12241a;
  --forest-800: #16281d;
  --forest-700: #1f3d2b;        /* signature brand green */
  --forest-600: #2b5138;
  --forest-500: #3a6b49;

  /* Neutrals */
  --snow: #faf8f3;             /* page background */
  --paper: #ffffff;
  --line: #e8e2d6;             /* hairline borders on light */
  --ink: #1a241d;             /* body text on light (AA+) */
  --slate: #47555b;           /* secondary text on light */

  /* Warm + signal accents */
  --cedar: #c07a3a;           /* warm accent */
  --cedar-deep: #9c5d29;      /* cedar for solid buttons needing white text */
  --ember: #b23a2b;           /* brand red, used sparingly */
  --mist: #dcebf5;            /* cool sky tint */

  /* Effects */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(18, 36, 26, .04), 0 4px 14px rgba(18, 36, 26, .05);
  --shadow-md: 0 4px 14px rgba(18, 36, 26, .06), 0 18px 44px rgba(18, 36, 26, .10);
  --shadow-lg: 0 10px 30px rgba(18, 36, 26, .10), 0 36px 80px rgba(18, 36, 26, .16);
  --ring: 0 0 0 3px rgba(192, 122, 58, .5);

  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;          /* 18px base, older-friendly */
  line-height: 1.65;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-700); text-decoration: none; }
a:hover { color: var(--forest-500); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest-ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1rem; }
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--forest-700);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--cedar);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cedar);
  color: #241708;               /* dark on amber = strong contrast */
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #cf8846; color: #241708; box-shadow: var(--shadow-md); }
.btn-forest {
  background: var(--forest-700);
  color: #fff;
}
.btn-forest:hover { background: var(--forest-600); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--forest-700);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--forest-700); color: var(--forest-700); background: #fff; }
.btn-lg { font-size: 1.15rem; padding: 1.15rem 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
/* Dark scrim behind header text over bright hero/banner images (WCAG contrast).
   Fades out once the solid scrolled background takes over. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 155%;
  background: linear-gradient(to bottom, rgba(12, 22, 16, .55), rgba(12, 22, 16, 0));
  z-index: -1;
  pointer-events: none;
  transition: opacity .3s ease;
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 243, .9);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(18, 36, 26, .06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  transition: color .3s ease;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
.brand-tag {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
  font-weight: 500;
}
.is-scrolled .brand { color: var(--forest-ink); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav a.nav-link {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: .3rem 0;
  transition: color .25s ease;
}
.nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--cedar);
  transition: width .25s ease;
}
.nav a.nav-link:hover::after { width: 100%; }
.is-scrolled .nav a.nav-link { color: var(--forest-ink); }
.nav .phone-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  background: var(--cedar);
  color: #241708;
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.nav .phone-pill:hover { background: #cf8846; color: #241708; }
.nav .phone-pill svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.is-scrolled .nav-toggle { background: rgba(18,36,26,.06); border-color: var(--line); }
.nav-toggle svg { width: 24px; height: 24px; stroke: #fff; }
.is-scrolled .nav-toggle svg { stroke: var(--forest-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback first … */
  min-height: 100svh;  /* … modern small-viewport unit wins on mobile */
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, -1.5%); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  /* Pixel-anchored bottom band: the hero text is bottom-aligned and sits a
     roughly fixed pixel distance from the bottom on any screen height, so the
     scrim darkens by px (not %) to keep white/cream text legible over bright
     snow, then fades up so the photo stays open. Radial adds a soft vignette. */
  background:
    linear-gradient(to top,
      rgba(9,17,12,.92) 0,
      rgba(9,17,12,.87) 150px,
      rgba(9,17,12,.80) 330px,
      rgba(9,17,12,.68) 500px,
      rgba(9,17,12,.40) 680px,
      rgba(9,17,12,.26) 80%,
      rgba(9,17,12,.44) 100%),
    radial-gradient(120% 90% at 50% 22%, transparent 50%, rgba(6,12,8,.5) 100%);
}
.hero-inner { padding-bottom: clamp(3.5rem, 9vh, 7rem); padding-top: calc(var(--header-h) + 2rem); max-width: 900px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: #f4e6d4;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
  margin-bottom: 1.1rem;
}
.hero .eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--cedar); display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 7.2vw, 6rem);
  line-height: 1.0;
  letter-spacing: -.032em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-br { display: inline; }
@media (max-width: 600px) { .hero-br { display: none; } }
.hero .lede {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  max-width: 40ch;
  color: rgba(255,255,255,.94);
  margin-bottom: 2rem;
  text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.8);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue svg { width: 26px; height: 26px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* On phones/tablets the hero text stack is tall relative to the viewport:
   darken more of the lower two-thirds so white/cream text stays legible over
   bright snow, and drop the scroll cue so it can't overlap the CTA buttons. */
@media (max-width: 820px) {
  .hero::after {
    background: linear-gradient(to top,
      rgba(9,17,12,.94) 0%,
      rgba(9,17,12,.86) 30%,
      rgba(9,17,12,.74) 55%,
      rgba(9,17,12,.56) 75%,
      rgba(9,17,12,.56) 100%);
  }
  .scroll-cue { display: none; }
}

/* Drop the scroll cue on short viewports (laptops, landscape phones) too —
   the bottom-aligned hero content would otherwise collide with it. It only
   shows when the hero is tall enough to leave clear room beneath the buttons. */
@media (max-height: 900px) {
  .scroll-cue { display: none; }
}

/* ---------- Section rhythm ---------- */
.section { padding: clamp(4.5rem, 11vh, 9rem) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5.5vh, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--cedar-deep);
  margin-bottom: .9rem;
}
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.022em; }
.section .sub { color: var(--slate); font-size: 1.18rem; max-width: 60ch; }
.center .sub { margin-inline: auto; }

/* ---------- Intro strip ---------- */
.intro {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.intro .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vh, 5rem);
}
.intro blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.26;
  color: var(--forest-ink);
  letter-spacing: -.018em;
}
.intro .sig { margin-top: 1.4rem; font-family: var(--font-sans); font-size: 1rem; color: var(--slate); }
.intro .sig strong { color: var(--forest-700); font-weight: 600; }
.intro-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.intro-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Six tiles ---------- */
.tiles { background: var(--snow); }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .35s ease;
}
/* Scroll-reveal initial state — only when JS is present to reveal them,
   so the page is fully visible if JS is disabled or fails to load. */
.js .tile { opacity: .45; transform: translateY(16px); }
.js .tile.in-view { opacity: 1; transform: translateY(0); }
.tile:hover { box-shadow: var(--shadow-lg); }
/* Cedar accent line sweeps in along the bottom on hover */
.tile::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--cedar);
  z-index: 1;
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover::before, .tile:focus-within::before { width: 100%; }
.tile-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tile-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .tile-media img { transform: scale(1.07); }
.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,20,14,.86) 8%, rgba(10,20,14,.36) 48%, rgba(10,20,14,.08) 78%);
  transition: opacity .35s ease;
}
.tile:hover::after { opacity: .92; }
.tile-body { padding: clamp(1.4rem, 2.2vw, 2rem); }
.tile-index {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #e6ad70;
  opacity: .95;
  letter-spacing: .02em;
  margin-bottom: .3rem;
  display: block;
}
.tile h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  margin: 0 0 .45rem;
  letter-spacing: -.015em;
}
.tile p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 32ch;
}
.tile .tile-go {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; color: #fff;
  transform: translateY(4px); opacity: .0;
  transition: opacity .3s ease, transform .3s ease;
}
.tile:hover .tile-go, .tile:focus-within .tile-go { opacity: 1; transform: translateY(0); }
.tile .tile-go svg { width: 18px; height: 18px; }
.tile-link { position: absolute; inset: 0; z-index: 2; }
.tile-link:focus-visible { outline-offset: -4px; }

/* Feature the first tile larger on desktop */
.tile--wide { grid-column: span 2; min-height: 380px; }

/* ---------- Listings CTA band ---------- */
.listings-band {
  position: relative;
  background: var(--forest-700);
  color: #fff;
  overflow: hidden;
}
.listings-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(192,122,58,.28), transparent 60%),
    radial-gradient(900px 500px at -10% 120%, rgba(58,107,73,.6), transparent 60%);
  z-index: 0;
}
.listings-band .container { position: relative; z-index: 1; }
.listings-band .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.listings-band h2 { color: #fff; }
.listings-band .sub { color: rgba(255,255,255,.85); }
.listings-band .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.listings-band .mls-note {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
}
.mls-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(6px);
}
.mls-card .stat { display: flex; align-items: baseline; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mls-card .stat:last-child { border-bottom: 0; }
.mls-card .stat b { font-family: var(--font-serif); font-size: 1.6rem; color: #fff; }
.mls-card .stat span { color: rgba(255,255,255,.78); font-size: 1rem; }

/* ---------- Meet Kevin ---------- */
.meet { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meet .grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.meet-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow-md);
  position: relative;
}
.meet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.meet-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem .9rem;
  background: linear-gradient(to top, rgba(10,20,14,.8), transparent);
  color: #fff; font-size: .9rem;
}
.meet h2 { margin-bottom: 1rem; }
.meet p { color: var(--ink); font-size: 1.14rem; }
.credentials {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: 1.5rem; padding: 0; list-style: none;
}
.credentials li {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--forest-700);
}
.credentials li svg { width: 18px; height: 18px; color: var(--cedar-deep); flex: none; }

/* ---------- Contact ---------- */
.contact { background: var(--snow); }
.contact .grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info .lede { font-size: 1.2rem; color: var(--slate); max-width: 42ch; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.15rem; font-weight: 600; color: var(--forest-700); }
.contact-list .ic {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.contact-list .ic svg { width: 22px; height: 22px; color: var(--cedar-deep); }
.contact-list small { display: block; color: var(--slate); font-weight: 400; font-size: .9rem; }

.enquiry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .45rem; color: var(--forest-ink); }
.field label .req { color: var(--ember); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  padding: .85rem 1rem;
  color: var(--ink);
  background: var(--snow);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cedar);
  background: #fff;
  box-shadow: var(--ring);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--slate); margin-top: .25rem; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--forest-600); }
.form-status.err { color: var(--ember); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-ink);
  color: rgba(255,255,255,.82);
  padding: clamp(3rem, 6vh, 4.5rem) 0 2rem;
  font-size: 1rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; max-width: 34ch; }
.footer-brand .fb-head { display: flex; align-items: center; gap: .8rem; }
.footer-brand img.logo { height: 50px; width: auto; }
.footer-brand .fb-name { font-family: var(--font-serif); font-size: 1.25rem; color: #fff; }
.footer-brand p { color: rgba(255,255,255,.7); margin: 0; }
.footer-col h3 { color: #fff; font-family: var(--font-sans); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.brokerage {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1rem;
}
.brokerage img { width: 120px; height: auto; background: #fff; border-radius: 10px; padding: 8px; }
.brokerage span { font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-legal { max-width: 70ch; }

/* =========================================================================
   INTERIOR PAGES (category pages)
   ========================================================================= */
.page-banner {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-banner .banner-media { position: absolute; inset: 0; z-index: -2; }
.page-banner .banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12,22,16,.86), rgba(12,22,16,.35) 55%, rgba(12,22,16,.4));
}
.page-banner .container { padding-block: clamp(2.5rem, 6vh, 4rem) clamp(2rem, 5vh, 3rem); padding-top: calc(var(--header-h) + 2rem); }
.page-banner h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  margin: .3rem 0 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  max-width: 20ch;
}
.page-banner .banner-sub { color: rgba(255,255,255,.92); font-size: 1.2rem; margin-top: .8rem; max-width: 52ch; }

.breadcrumb { font-size: .95rem; color: rgba(255,255,255,.85); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .6; }
.breadcrumb [aria-current] { color: var(--cedar); font-weight: 600; }

/* Prose column */
.page-main { padding: clamp(3rem, 7vh, 5.5rem) 0; }
.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); }
.prose { max-width: 72ch; }
.prose > .lead { font-size: 1.32rem; line-height: 1.5; color: var(--forest-ink); font-family: var(--font-serif); margin-bottom: 1.6rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; color: var(--forest-700); font-family: var(--font-sans); font-weight: 700; }
.prose p { font-size: 1.14rem; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { font-size: 1.12rem; margin-bottom: .5rem; }
.prose a { color: var(--forest-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cedar); }
.prose a:hover { color: var(--cedar-deep); }

/* Callout box (e.g., Mountain Safety by Kevin) */
.callout {
  background: linear-gradient(180deg, #fff, var(--snow));
  border: 1px solid var(--line);
  border-left: 5px solid var(--cedar);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.callout h3 { margin-top: 0; color: var(--forest-700); display: flex; align-items: center; gap: .6rem; }
.callout h3 svg { width: 22px; height: 22px; color: var(--cedar-deep); }
.callout p:last-child { margin-bottom: 0; }

/* Info card grid (communities, attractions) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); margin: 1.5rem 0; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card .ic-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.info-card .ic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.info-card:hover .ic-media img { transform: scale(1.05); }
.info-card .ic-body { padding: 1.25rem 1.35rem 1.5rem; }
.info-card h3 { margin: 0 0 .4rem; font-family: var(--font-serif); font-weight: 600; color: var(--forest-ink); font-size: 1.3rem; }
.info-card .ic-meta { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cedar-deep); font-weight: 700; margin-bottom: .5rem; }
.info-card p { font-size: 1.02rem; color: var(--slate); margin: 0; }

/* Live-data placeholder (MLS embed, webcam, charts, map) */
.placeholder-block {
  /* "Coming soon" boxes are hidden in production — a placeholder is replaced by
     real content (or its section stays quiet) when the feature ships. */
  display: none;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(192,122,58,.04) 0 12px, transparent 12px 24px),
    var(--paper);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin: 1.75rem 0;
}
.placeholder-block .pb-icon { width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--cedar-deep); }
.placeholder-block .pb-icon svg { width: 100%; height: 100%; }
.placeholder-block h3 { margin: 0 0 .5rem; color: var(--forest-700); }
.placeholder-block p { color: var(--slate); max-width: 52ch; margin-inline: auto; font-size: 1.05rem; }
.placeholder-block .pb-tag {
  display: inline-block; margin-top: 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--cedar-deep); background: rgba(192,122,58,.1); padding: .35rem .8rem; border-radius: 999px;
}

/* Fact strip / quick facts */
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.fact b { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--forest-700); line-height: 1.1; }
.fact span { font-size: .98rem; color: var(--slate); }

/* Previous / next category nav */
.nextprev {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: clamp(3rem, 6vh, 4.5rem);
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.nextprev a {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nextprev a:hover { border-color: var(--forest-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nextprev .np-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.nextprev .np-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--forest-700); font-weight: 600; }
.nextprev .np-next { text-align: right; }
.nextprev a:only-child { grid-column: 1 / -1; }

/* ---------- Turnstile mount ---------- */
.turnstile-mount { margin-bottom: 1.15rem; }
.turnstile-mount:empty { display: none; }

/* ---------- Listing cards (live data) ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); margin: 1.5rem 0; }
.listing-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing-card .lc-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.listing-card .lc-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .lc-body { padding: 1.25rem 1.35rem 1.5rem; }
.lc-badge { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.lc-badge.lc-sold { background: var(--ember); color: #fff; }
.lc-badge.lc-pending { background: var(--cedar); color: #241708; }
.lc-price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--forest-700); margin: 0 0 .25rem; }
.listing-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 .4rem; color: var(--forest-ink); }
.lc-meta { font-size: .95rem; color: var(--cedar-deep); font-weight: 600; margin: 0 0 .6rem; }
.lc-desc { font-size: 1rem; color: var(--slate); margin: 0; }
.lc-ddf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.lc-brokerage { font-size: .8rem; color: var(--slate); }
.lc-source { font-size: .82rem; font-weight: 600; color: var(--forest-700); margin-left: auto; }

/* ---------- Valley Notes (live data) ---------- */
.note-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.note-item { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--cedar); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.note-item time { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cedar-deep); font-weight: 700; margin-bottom: .4rem; }
.note-item p { margin: 0; font-size: 1.08rem; color: var(--ink); }
.note-item img { margin-top: .8rem; border-radius: 10px; max-height: 260px; }

/* ---------- Market stats (live data) ---------- */
.stats-month { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-weight: 600; margin: 0 0 .6rem; }
.stats-note { font-size: 1.08rem; color: var(--ink); font-style: italic; margin-top: 1rem; }

/* ---------- Stat-source link cards (National / Local MLS) ---------- */
.stat-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.4rem 0 2rem; }
.stat-link { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.stat-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--forest-700); color: inherit; }
.stat-link.is-placeholder { border-style: dashed; opacity: .85; }
.sl-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cedar-deep); background: rgba(192,122,58,.1); padding: .3rem .7rem; border-radius: 999px; }
.stat-link h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; margin: .45rem 0 0; color: var(--forest-ink); }
.stat-link p { margin: 0; color: var(--slate); font-size: 1rem; }
.sl-go { margin-top: .55rem; font-weight: 600; color: var(--forest-700); font-size: .98rem; }
.sl-go.muted { color: var(--slate); font-weight: 500; }

/* Nav/footer link awaiting a real URL (e.g. Hemlock Services) — visible but inert */
[data-todo][aria-disabled="true"] { pointer-events: none; opacity: .5; cursor: default; }

/* ---------- Current listings (link-out cards) ---------- */
.listing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 1.4rem; }
.listing-cards .listing-card {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--cedar);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.listing-cards a.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-left-color: var(--forest-700); color: inherit; }
.listing-cards .lc-price { font-family: var(--font-serif); font-weight: 600; font-size: 1.65rem; color: var(--forest-ink); line-height: 1.1; }
.lc-addr { font-weight: 600; font-size: 1.05rem; margin-top: .35rem; }
.lc-city { color: var(--slate); font-size: .95rem; }
.lc-go { margin-top: .7rem; font-weight: 600; color: var(--forest-700); font-size: .95rem; }
.listing-actions { margin: 1.4rem 0 .6rem; }
.listing-soon { font-size: .95rem; color: var(--slate); font-style: italic; }

/* ---------- Testimonials ---------- */
.testimonials-sec { background: var(--paper); border-top: 1px solid var(--line); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.testimonial { margin: 0; background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.testimonial blockquote { margin: 0 0 1rem; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.42; color: var(--forest-ink); }
.testimonial blockquote::before { content: "\201C"; color: var(--cedar); font-size: 1.5em; line-height: 0; vertical-align: -.35em; margin-right: .08em; }
.testimonial figcaption { font-weight: 600; color: var(--forest-700); }
.testimonial figcaption span { color: var(--slate); font-weight: 400; }

/* ---------- Listing card as link + sold section ---------- */
a.listing-card { text-decoration: none; color: inherit; }
.sold-head { font-family: var(--font-serif); font-size: 1.5rem; color: var(--forest-700); margin: 2.75rem 0 .25rem; }

/* ---------- Listing detail page ---------- */
.detail-main { padding: calc(var(--header-h) + 1.5rem) 0 clamp(3rem, 6vh, 5rem); }
.crumb-dark { color: var(--slate); font-size: .95rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; }
.crumb-dark a { color: var(--forest-700); text-decoration: none; }
.crumb-dark a:hover { color: var(--cedar-deep); }
.crumb-dark .sep { opacity: .5; margin: 0 .45rem; }
.crumb-dark [aria-current] { color: var(--cedar-deep); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: .5rem; }
.detail-gallery .main-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); cursor: zoom-in; background: var(--mist); display: block; }
.thumb-row { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.thumb { width: 86px; height: 62px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.thumb.active { border-color: var(--cedar); }
.main-photo:focus-visible, .thumb:focus-visible { outline: 3px solid var(--cedar); outline-offset: 3px; }
.detail-info h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 1.25rem 0 .3rem; }
.detail-price { font-family: var(--font-serif); font-size: 2rem; color: var(--forest-700); margin: 0 0 .9rem; }
.detail-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; align-items: center; }
.detail-facts .fact-chip { background: var(--snow); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-weight: 600; color: var(--forest-700); }
.detail-desc { font-size: 1.14rem; color: var(--ink); white-space: pre-wrap; }
.detail-mls { color: var(--slate); font-size: .95rem; margin-top: 1.2rem; }

/* Mortgage calculator */
.mortgage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem); }
.mortgage h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.mg-field { margin-bottom: 1rem; }
.mg-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.mg-field input { width: 100%; font: inherit; font-size: 1.05rem; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--snow); color: var(--ink); }
.mg-field input:focus { outline: none; border-color: var(--cedar); box-shadow: var(--ring); }
.mg-result { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); text-align: center; }
.mg-result b { display: block; font-family: var(--font-serif); font-size: 2.1rem; color: var(--forest-700); line-height: 1.1; }
.mg-result span { color: var(--slate); font-size: .95rem; }
.mg-note { font-size: .82rem; color: var(--slate); margin-top: .9rem; text-align: center; }

.detail-enquiry { margin-top: clamp(2.5rem, 6vh, 4rem); max-width: 640px; }
.detail-enquiry h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.detail-missing { padding: 3rem 0; text-align: center; }
.detail-missing p { font-size: 1.2rem; color: var(--slate); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,14,10,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .mortgage { position: static; }
}

@media (max-width: 620px) {
  .nextprev { grid-template-columns: 1fr; }
  .nextprev .np-next { text-align: left; }
}

/* ---------- Reveal utility (JS-driven; gated on .js so no-JS shows all) ---------- */
.reveal { transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.js .reveal { opacity: .6; transform: translateY(14px); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Responsive wrapper for a pasted MLS® / realtor.ca iframe */
.mls-embed-container iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18, 36, 26, .97);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  padding: 5.5rem 2rem 2rem;
  gap: .4rem;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
  visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  color: #fff; font-size: 1.4rem; font-family: var(--font-serif);
  padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav .btn { margin-top: 1.5rem; justify-content: center; }
.mobile-nav-close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  cursor: pointer; display: grid; place-items: center;
}
.mobile-nav-close svg { width: 26px; height: 26px; stroke: #fff; }
body.nav-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro .container,
  .meet .grid,
  .listings-band .grid,
  .contact .grid { grid-template-columns: 1fr; }
  .intro-portrait { max-width: 420px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Collapse the nav to the hamburger before the row runs out of room */
@media (max-width: 820px) {
  .nav .nav-link, .nav .phone-pill { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Motion / print ---------- */
/* =========================================================================
   MOTION & POLISH LAYER
   GPU-only (transform/opacity), progressive-enhancement, reduced-motion safe.
   ========================================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* soft settle */
  --ease-io: cubic-bezier(.22, .61, .36, 1);  /* in-out */
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 70;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cedar), #e6ad70);
  will-change: transform;
  pointer-events: none;
}

/* Fine grain texture on dark sections (premium tactile feel) */
.grain { position: relative; }
.grain > * { position: relative; z-index: 1; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* keep the listings band's own radial layer above the grain seam */
.listings-band.grain::after { mix-blend-mode: soft-light; opacity: .08; }

/* Hero load choreography — pure CSS (no dependency on main.js / rAF).
   No base opacity:0, so if animation is ever unsupported the content still shows. */
@keyframes heroLoad { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cueIn { from { opacity: 0; } to { opacity: 1; } }
.js .hero [data-load], .js .page-banner [data-load] { animation: heroLoad .9s var(--ease-out) both; }
.js .hero [data-load="1"], .js .page-banner [data-load="1"] { animation-delay: .10s; }
.js .hero [data-load="2"], .js .page-banner [data-load="2"] { animation-delay: .22s; }
.js .hero [data-load="3"], .js .page-banner [data-load="3"] { animation-delay: .34s; }
.js .hero [data-load="4"], .js .page-banner [data-load="4"] { animation-delay: .46s; }
.js .scroll-cue { animation: cueIn .6s ease .9s both; }

/* Directional reveal variants (JS adds .in-view). Start legible (~0.6) so
   content never fades in at low contrast during a scroll. */
.js [data-reveal] { opacity: .6; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.js [data-reveal="up"] { transform: translateY(16px); }
.js [data-reveal="left"] { transform: translateX(-18px); }
.js [data-reveal="right"] { transform: translateX(18px); }
.js [data-reveal="scale"] { transform: scale(.97); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* Staggered children (card grids, stat rows) */
.js [data-stagger] > * { opacity: .6; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.js [data-stagger].in-view > * { opacity: 1; transform: none; }
.js [data-stagger].in-view > *:nth-child(1) { transition-delay: .04s; }
.js [data-stagger].in-view > *:nth-child(2) { transition-delay: .12s; }
.js [data-stagger].in-view > *:nth-child(3) { transition-delay: .20s; }
.js [data-stagger].in-view > *:nth-child(4) { transition-delay: .28s; }
.js [data-stagger].in-view > *:nth-child(5) { transition-delay: .36s; }
.js [data-stagger].in-view > *:nth-child(6) { transition-delay: .44s; }
.js [data-stagger].in-view > *:nth-child(7) { transition-delay: .52s; }
.js [data-stagger].in-view > *:nth-child(8) { transition-delay: .60s; }

/* Parallax layers: extra height as headroom so a shift never reveals an edge.
   JS writes a clamped translate. */
[data-parallax] { will-change: transform; }
.hero-media[data-parallax],
.page-banner .banner-media[data-parallax] { inset: -10% 0; }

/* Active-section nav highlight (scroll spy) */
.nav a.nav-link.active { color: #fff; }
.is-scrolled .nav a.nav-link.active { color: var(--forest-ink); }
.nav a.nav-link.active::after { width: 100%; }

/* Micro-interaction: arrow nudge on hover/focus */
.btn svg, .tile-go svg, .contact-list a svg { transition: transform .25s var(--ease-out); }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(3px); }
.tile:hover .tile-go svg { transform: translateX(3px); }

/* Count-up number holds its width so it doesn't reflow while animating */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-media img { animation: none; transform: scale(1.06); }
  .reveal, .tile { opacity: 1 !important; transform: none !important; }
  /* Neutralise the motion layer */
  .hero [data-load],
  .page-banner [data-load],
  [data-reveal],
  [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
  .scroll-progress { display: none; }
  .scroll-cue { animation: none !important; opacity: 1 !important; }
}

@media print {
  .site-header, .mobile-nav, .scroll-cue, .hero-cta, .scroll-progress,
  .detail-enquiry, .site-footer, .mortgage, .thumb-row, .lightbox, .crumb-dark { display: none !important; }
  body { background: #fff; color: #000; }
  .detail-main { padding-top: 0; }
  .detail-grid { display: block; }
  .main-photo { max-height: 340px; width: auto; box-shadow: none; }
}
