/* ==========================================================================
   The South Mountain Collection — Option 11 "Ridgeline in motion"
   Built on Option 8 Ridgeline: same type, palette, mark and components;
   the landing hero is a poster-first muted video loop
   Type: Instrument Serif (display) + Instrument Sans (text)
   Colour: palm green on chalk and oat; the photography owns the blue
   Motif: the ridge line — a single stroke of South Mountain with a sun
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ground */
  --chalk: #fffdf9;
  --oat: #f4eee2;
  --oat-deep: #eae2d3;

  /* Ink — every pair below is computed AA on chalk, oat and oat-deep */
  --ink: #1c1a16;      /* 16.6:1 on chalk */
  --ink-2: #4b473f;    /*  8.6:1 on chalk */
  --ink-3: #625d53;    /*  6.2:1 on chalk, 5.5:1 on oat, 5.0:1 on oat-deep */

  /* Brand — palm green, pulled from the turf and palms in every backyard */
  --palm: #14503a;     /* 9.9:1 on chalk */
  --palm-deep: #0d3a2a;
  --palm-mid: #2c6e52; /* 5.9:1 on chalk, 5.2:1 on oat, 4.7:1 on oat-deep */
  --palm-wash: #e4eee7;

  /* Night ground — footer, lightbox, closing band */
  --night: #0b2a1f;
  --night-2: #082018;
  --mute-on-night: #b9cbbf; /* 8.9:1 on night */

  /* Lines */
  --line: #e3dccd;
  --line-2: #cfc6b3;

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --measure: 60ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;

  --header-h: 76px;
  --mobilebar-h: 76px;

  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 26, 22, .05), 0 28px 56px -30px rgba(28, 26, 22, .3);
  --shadow-soft: 0 1px 2px rgba(28, 26, 22, .04), 0 16px 36px -24px rgba(28, 26, 22, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--palm); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--palm-deep); }
p, h1, h2, h3, ul, ol, dl, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
fieldset { padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

:focus-visible { outline: 3px solid var(--palm-mid); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible { outline-color: var(--oat); }

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

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--palm); color: var(--chalk);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); }
.section { padding-block: var(--section-y); }
.section--oat { background: var(--oat); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin-top: var(--s2); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--palm-mid);
  margin-bottom: .9rem;
}
.h-display, .h-1, .h-2, .prop-head__title, .home-card__name, .mini-card__name {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  text-wrap: balance;
}
.h-display { font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.h-1 { font-size: clamp(2rem, 3.8vw, 3.05rem); line-height: 1.08; letter-spacing: -.015em; max-width: 20ch; }
.h-2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; }
.em { font-style: italic; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; max-width: var(--measure); }
.prose p { max-width: var(--measure); text-wrap: pretty; color: var(--ink-2); }
.prose p + p { margin-top: 1.1rem; }
.ledger__n, .statbar__n, .hosts__fact b, .lightbox__counter, .scores__item b, .home-card__score b {
  font-variant-numeric: tabular-nums;
}
.stars { color: var(--palm); letter-spacing: .08em; font-size: .95rem; }
.small { font-size: .875rem; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.45rem; border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--palm); color: var(--chalk); border-color: var(--palm); }
.btn--primary:hover { background: var(--palm-deep); border-color: var(--palm-deep); color: var(--chalk); }
.btn--ghost { background: transparent; color: var(--palm); border-color: var(--palm); }
.btn--ghost:hover { background: var(--palm-wash); color: var(--palm-deep); }
.btn--light { background: var(--oat); color: var(--palm-deep); border-color: var(--oat); }
.btn--light:hover { background: var(--chalk); border-color: var(--chalk); color: var(--palm-deep); }
.btn--outline-light { background: transparent; color: var(--oat); border-color: rgba(244, 238, 226, .55); }
.btn--outline-light:hover { border-color: var(--oat); color: var(--chalk); }
.btn--sm { padding: .72rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn__arrow { font-family: var(--serif); font-size: 1.15em; line-height: 0; }

/* ---------- Ridge mark & divider ---------- */
.mark { width: 34px; height: 24px; flex: none; color: var(--palm); }
.mark circle { fill: currentColor; }
.mark path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ridge { position: relative; text-align: center; color: var(--line-2); line-height: 0; padding-inline: var(--gutter); }
.ridge::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 23px; border-top: 1.5px solid var(--line-2); }
.ridge svg { position: relative; width: 176px; height: 28px; padding-inline: 8px; background: var(--chalk); }
.ridge path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(28, 26, 22, .35); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--s3);
  height: var(--header-h);
  transition: height .25s var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: -.005em; }
.brand__sub { font: 600 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: .15rem; }
.site-nav__list { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.site-nav__link {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .4rem 0; border-bottom: 1.5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__link:hover { color: var(--palm); border-bottom-color: var(--palm); }
.menu-toggle {
  display: none; align-items: center; gap: .6rem;
  background: transparent; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: .55rem .8rem; cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--ink);
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer {
  border-top: 1px solid var(--line);
  background: var(--chalk);
  padding: var(--s3) var(--gutter) var(--s4);
  max-height: calc(100vh - 60px); overflow: auto;
}
.drawer__list { display: flex; flex-direction: column; }
.drawer__link {
  display: block; padding: .85rem 0; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--line);
}
.drawer__link:hover { color: var(--palm); }
.drawer__cta { margin-top: var(--s3); }

/* ---------- Hero (landing) ---------- */
.hero { position: relative; padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero__media { position: relative; height: clamp(440px, 74vh, 760px); overflow: hidden; background: var(--oat-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.hero__panel {
  position: relative; z-index: 2;
  margin-top: -160px;
  background: var(--chalk); border-radius: var(--r); box-shadow: var(--shadow);
  padding: clamp(1.75rem, 3.5vw, 3rem);
}
.hero__title { margin-top: .25rem; }
.hero__sub { margin-top: var(--s3); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.hero__more { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: .1rem; }
.hero__note { display: flex; align-items: center; gap: .55rem; margin-top: var(--s3); font-size: .9rem; color: var(--ink-2); }

/* Proof ledger — sits beside the panel on desktop, below it on phones */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.ledger__item { border-top: 1.5px solid var(--line-2); padding-top: .9rem; }
.ledger__n { display: block; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--palm); letter-spacing: -.01em; }
.ledger__l { display: block; margin-top: .45rem; font-size: .875rem; color: var(--ink-3); }

/* ---------- Home cards (landing) ---------- */
.homes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.home-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.home-card__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--oat-deep); }
.home-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.home-card__link:hover .home-card__media img { transform: scale(1.04); }
.home-card__flag {
  position: absolute; top: .9rem; left: .9rem;
  background: var(--chalk); color: var(--palm);
  font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem .7rem; border-radius: 999px;
}
.home-card__body {
  position: relative; margin: -2.75rem 1rem 0;
  background: var(--chalk); border-radius: var(--r); box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.home-card__link:hover .home-card__body { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-card__kicker { font: 600 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--palm-mid); }
.home-card__name { font-size: 1.85rem; line-height: 1.1; }
.home-card__sig { color: var(--ink-2); font-size: .98rem; text-wrap: pretty; }
.home-card__specs { display: flex; flex-wrap: wrap; gap: .35rem .75rem; font-size: .875rem; color: var(--ink-3); margin-top: .2rem; }
.home-card__specs span + span::before { content: "·"; margin-right: .75rem; color: var(--line-2); }
.home-card__score { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--ink-2); }
.home-card__score b { font-weight: 600; color: var(--ink); }
.home-card__cta { margin-top: .4rem; font-weight: 600; font-size: .95rem; color: var(--palm); display: inline-flex; gap: .4rem; align-items: center; }
.home-card__link:hover .home-card__cta { color: var(--palm-deep); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Quotes (landing) ---------- */
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.quote { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.quote__text { font-family: var(--serif); font-size: clamp(1.25rem, 1.6vw, 1.4rem); line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.quote__by { margin-top: auto; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.quote__by b { font-weight: 600; color: var(--ink); }
.quote__home { display: block; margin-top: .3rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; text-decoration: none; }

/* ---------- Hosts (landing) ---------- */
.hosts__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hosts__photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.hosts__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hosts__grid .lede { margin-top: var(--s2); }
.hosts__grid .prose { margin-top: var(--s3); }
.hosts__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.hosts__fact { border-top: 1.5px solid var(--line-2); padding-top: .75rem; }
.hosts__fact b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--palm); font-weight: 400; }
.hosts__fact span { display: block; margin-top: .4rem; font-size: .8rem; color: var(--ink-3); }

/* ---------- Area (landing) ---------- */
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.area__grid .lede { margin-top: var(--s2); }
.area__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); margin-top: var(--s4); }
.area__list dt { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--palm-mid); margin-bottom: .4rem; }
.area__list dd { margin: 0; color: var(--ink-2); font-size: .95rem; text-wrap: pretty; }
.area__photos { display: grid; gap: var(--s3); }
.area__photos figure { border-radius: var(--r); overflow: hidden; }
.area__photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.area__photos figcaption { font-size: .85rem; color: var(--ink-3); padding: .6rem 0 0; }

/* ---------- Book direct (shared) ---------- */
.direct__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.direct__item { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.direct__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--palm-wash); color: var(--palm); margin-bottom: 1rem; }
.direct__item h3 { font: 600 1.02rem/1.3 var(--sans); color: var(--ink); }
.direct__item p { margin-top: .5rem; font-size: .93rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Night band + footer ---------- */
.on-night { background: var(--night); color: var(--oat); }
.on-night a { color: var(--oat); }
.on-night a:hover { color: var(--chalk); }
.on-night .h-1, .on-night .h-2 { color: var(--oat); }
.on-night .btn--light, .on-night .btn--light:hover { color: var(--palm-deep); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--s4); align-items: center; }
.cta-band__inner p { margin-top: .75rem; color: var(--mute-on-night); max-width: 52ch; text-wrap: pretty; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

.site-footer { background: var(--night-2); color: var(--oat); padding: var(--s6) 0 var(--s4); border-top: 1px solid rgba(244, 238, 226, .1); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.footer__brand { color: var(--oat); }
.footer__brand .mark { color: var(--oat); }
.footer__brand .brand__sub { color: var(--mute-on-night); }
.footer__blurb { margin-top: var(--s3); color: var(--mute-on-night); max-width: 40ch; text-wrap: pretty; font-size: .95rem; }
.footer__h { font: 600 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-on-night); margin-bottom: 1rem; }
.footer__list li { overflow-wrap: anywhere; }
.footer__list li + li { margin-top: .55rem; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(244, 238, 226, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: .85rem; color: var(--mute-on-night); }
.licence p + p { margin-top: .3rem; }
.licence b { color: var(--oat); font-weight: 600; }

/* ---------- Mobile CTA bar ---------- */
.mobilebar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  align-items: center; justify-content: space-between; gap: var(--s2);
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mobilebar__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mobilebar__txt b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobilebar__txt span { font-size: .78rem; color: var(--ink-3); }

/* ---------- Reveal (armed by JS only for content below the fold) ---------- */
.reveal--armed { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal--armed.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Property pages
   ========================================================================== */
.prop-head { padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.prop-head__title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; }
.prop-head__lede { margin-top: var(--s3); max-width: 58ch; }

/* Gallery — five-tile magazine grid, every tile opens the full lightbox */
.gallery__grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr;
  gap: .6rem; height: clamp(420px, 46vw, 640px);
}
.gallery__tile {
  position: relative; display: block; padding: 0; margin: 0; border: 0; cursor: pointer;
  border-radius: var(--r-sm); overflow: hidden; background: var(--oat-deep); width: 100%; height: 100%;
}
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__tile:hover img { transform: scale(1.03); }
.gallery__tile:focus-visible { outline-offset: -3px; }
.gallery__tile--lead { grid-row: 1 / 3; border-radius: var(--r); }
.gallery__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-top: .9rem; }
.gallery__caption { font-size: .875rem; color: var(--ink-3); }
.gallery__all { background: var(--chalk); }

/* Stat bar */
.statbar {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1.5px solid var(--line-2); border-bottom: 1px solid var(--line);
}
.statbar__item { padding: 1.1rem 1rem 1.1rem 0; border-right: 1px solid var(--line); }
.statbar__item + .statbar__item { padding-left: 1rem; }
.statbar__item:last-child { border-right: 0; }
.statbar__n { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.statbar__n .stars { font-size: 1rem; margin-right: .2rem; }
.statbar__l { display: block; margin-top: .4rem; font-size: .78rem; letter-spacing: .04em; color: var(--ink-3); }
.statbar__item--rank .statbar__n { color: var(--palm); font-size: 1.35rem; padding-top: .2rem; }

/* On-page nav (not sticky — one sticky layer per breakpoint) */
.subnav { margin-top: 1.25rem; }
.subnav__list { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.subnav__link {
  display: inline-block; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: .875rem; font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.subnav__link:hover { background: var(--palm-wash); color: var(--palm-deep); border-color: var(--palm-mid); }

/* Overview */
.overview__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.overview__grid .h-1 { margin-bottom: var(--s3); }
.overview__aside { display: grid; gap: var(--s3); }
.signature { background: var(--oat); border-radius: var(--r); padding: 1.5rem; }
.signature h3 { font: 600 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--palm-mid); margin-bottom: 1rem; }
.signature__item { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem 0; border-top: 1px solid var(--line-2); color: var(--ink); font-size: .98rem; }
.signature__item .mark { width: 22px; height: 16px; margin-top: .3rem; }
.pull { border-left: 3px solid var(--palm); padding: .25rem 0 .25rem 1.25rem; }
.pull__text { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.25; color: var(--ink); text-wrap: pretty; }
.pull__by { margin-top: .75rem; font-size: .875rem; color: var(--ink-3); }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.scores__item { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .9rem; font-size: .8rem; color: var(--ink-3); }
.scores__item b { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--ink); font-weight: 400; margin-bottom: .3rem; }

/* Amenities */
.amenities__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s2); }
.amenity-group { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.amenity-group__h { font: 600 1rem/1.3 var(--sans); color: var(--ink); padding-bottom: .8rem; border-bottom: 1.5px solid var(--line-2); margin-bottom: .6rem; }
.amenity-group__list li { padding: .45rem 0 .45rem 1.15rem; position: relative; font-size: .95rem; color: var(--ink-2); }
.amenity-group__list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--palm-mid); }

/* Sleeping */
.sleep__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.sleep-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--chalk); }
.sleep-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--oat-deep); }
.sleep-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sleep-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.sleep-card__bed { font: 600 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--palm-mid); margin-bottom: .35rem; }
.sleep-card__body h3 { font: 400 1.35rem/1.15 var(--serif); color: var(--ink); }
.sleep-card__body p { margin-top: .4rem; font-size: .92rem; color: var(--ink-2); }
.sleep__baths { margin-top: var(--s3); color: var(--ink-2); font-size: .95rem; }

/* Reviews */
.reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.review { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 2.2vw, 1.85rem); display: flex; flex-direction: column; gap: .9rem; }
.review__text { color: var(--ink); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.review__by { margin-top: auto; font-size: .875rem; color: var(--ink-2); }
.review__by b { font-weight: 600; color: var(--ink); }

/* Location */
.location__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.location__grid .lede { margin-top: var(--s2); }
.location__photo { border-radius: var(--r); overflow: hidden; }
.location__photo img { width: 100%; height: auto; }
.location__photo figcaption { font-size: .85rem; color: var(--ink-3); padding-top: .6rem; }
.location__note { margin-top: var(--s3); }

/* Booking */
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.booking__copy .lede { margin-top: var(--s2); }
.trust { display: grid; gap: .8rem; margin-top: var(--s4); }
.trust__item { display: flex; gap: .9rem; align-items: flex-start; }
.trust__item .direct__icon { width: 32px; height: 32px; margin: 0; flex: none; }
.trust__item h3 { font: 600 .98rem/1.3 var(--sans); color: var(--ink); }
.trust__item p { margin-top: .2rem; font-size: .9rem; color: var(--ink-2); text-wrap: pretty; }
.booking-widget { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); }
.widget-form__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: 1.25rem; }
.widget-form__head h3 { font: 400 1.5rem/1.1 var(--serif); }
.widget-form__head span { font-size: .8rem; color: var(--ink-3); }
.widget-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.widget-form__row + .widget-form__row { margin-top: .75rem; }
.widget-form__field { display: flex; flex-direction: column; gap: .35rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.widget-form__field input, .widget-form__field select {
  font: 400 1rem/1.2 var(--sans); color: var(--ink-3); letter-spacing: 0; text-transform: none;
  padding: .85rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--oat);
  width: 100%; appearance: none; -webkit-appearance: none;
}
.widget-form__field input::placeholder { color: var(--ink-3); }
.widget-form__field input:disabled, .widget-form__field select:disabled { opacity: 1; cursor: not-allowed; }
.widget-note { display: flex; align-items: center; gap: .55rem; margin: 1rem 0 1.25rem; font-size: .875rem; color: var(--palm); font-weight: 600; }
.widget-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--palm-mid); flex: none; }
.widget-alt { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); text-align: center; }

/* House rules */
.rules__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.rules__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rules__list li { border-top: 1.5px solid var(--line-2); padding-top: .8rem; font-size: .95rem; color: var(--ink-2); }
.rules__list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .2rem; }
.rules__list li.rules__wide { grid-column: 1 / -1; }
.rules__grid .prose { margin-top: var(--s2); }

/* Cross-links */
.more-homes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.mini-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.mini-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.mini-card__media { min-height: 100%; background: var(--oat-deep); }
.mini-card__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.mini-card__body { padding: 1.35rem; display: flex; flex-direction: column; gap: .45rem; }
.mini-card__name { font-size: 1.6rem; line-height: 1.1; }
.mini-card__body p { font-size: .93rem; color: var(--ink-2); text-wrap: pretty; }
.mini-card__body .home-card__cta { margin-top: auto; padding-top: .5rem; }
.mini-card:hover .home-card__cta { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 32, 24, .96); color: var(--oat);
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  padding: 0 clamp(.75rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lightbox__counter { font-size: .9rem; letter-spacing: .06em; color: var(--mute-on-night); }
.lightbox__close, .lightbox__nav {
  background: rgba(244, 238, 226, .08); color: var(--oat); border: 1px solid rgba(244, 238, 226, .22);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; line-height: 1; transition: background-color .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(244, 238, 226, .18); }
.lightbox__stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; gap: .9rem; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 64px - 5.5rem); width: auto; height: auto; border-radius: var(--r-sm); object-fit: contain; background: var(--night); }
.lightbox__cap { font-size: .95rem; color: var(--mute-on-night); text-align: center; text-wrap: balance; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(.25rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.25rem, 2vw, 1.5rem); }
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav__list { gap: 1rem; }
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.is-scrolled .site-header__inner { height: 64px; }
  body { padding-bottom: var(--mobilebar-h); }
  .mobilebar { display: flex; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { margin-top: -120px; max-width: 720px; }
  .ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .homes__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .home-card__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: center; }
  .home-card__media { aspect-ratio: 4 / 3; height: 100%; }
  .home-card__body { margin: 0 0 0 -2.5rem; }
  .quotes__grid { grid-template-columns: minmax(0, 1fr); }
  .hosts__grid, .area__grid, .cta-band__inner, .overview__grid, .location__grid, .booking__grid, .rules__grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band__inner { text-align: left; }
  .direct__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { height: clamp(360px, 52vw, 560px); }
  .statbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statbar__item:nth-child(3) { border-right: 0; }
  .statbar__item:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .hero__media { height: auto; aspect-ratio: 4 / 3; }
  .hero__panel { margin: -2.5rem var(--s2) 0; padding: 1.5rem; }
  .h-display { max-width: none; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-card__link { display: block; }
  .home-card__media { height: auto; }
  .home-card__body { margin: -2.5rem 1rem 0; }
  .hosts__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area__list { grid-template-columns: minmax(0, 1fr); }
  .sleep__grid { grid-template-columns: minmax(0, 1fr); }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .gallery__grid { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .gallery__tile { aspect-ratio: 4 / 3; height: auto; }
  .gallery__tile--lead { grid-column: 1 / -1; grid-row: auto; }
  .gallery__foot { flex-direction: column; align-items: flex-start; }
  .rules__list { grid-template-columns: minmax(0, 1fr); }
  .more-homes__grid { grid-template-columns: minmax(0, 1fr); }
  .mini-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .footer__legal { flex-direction: column; }
}

@media (max-width: 639px) {
  .amenities__grid { grid-template-columns: minmax(0, 1fr); }
  .direct__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statbar__item:nth-child(3) { border-right: 1px solid var(--line); }
  .statbar__item:nth-child(even) { border-right: 0; }
  .statbar__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .statbar__item--rank .statbar__n { font-size: 1.15rem; }
  .widget-form__row { grid-template-columns: minmax(0, 1fr); }
  .widget-form__head { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-card { grid-template-columns: minmax(0, 1fr); }
  .mini-card__media img { aspect-ratio: 16 / 9; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { display: none; }
  .hero__panel { margin-inline: .75rem; padding: 1.25rem; }
  .home-card__body { margin-inline: .6rem; padding: 1.1rem; }
  .home-card__name { font-size: 1.6rem; }
  .ledger__n { font-size: 1.8rem; }
  .mobilebar__txt span { display: none; }
  .lightbox__nav { width: 40px; height: 40px; }
}

/* ==========================================================================
   Option 11 — Ridgeline in motion
   Poster-first background video. The still <img> is always the first paint;
   the <video> sits over it at opacity 0 and only fades in once it is truly
   playing (JS adds .is-live). If every source fails, JS adds .is-still and
   the still simply stays. No scrim anywhere: the chalk panel carries the type.
   ========================================================================== */
.hero--motion .hero__media { height: clamp(520px, 86vh, 880px); }
.hero--motion .hero__media img { object-position: 50% 58%; }
.hero__video, .tile-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
  opacity: 0; pointer-events: none;
  transition: opacity 1.2s var(--ease), transform .8s var(--ease);
}
[data-motion].is-live .hero__video, [data-motion].is-live .tile-video { opacity: 1; }
[data-motion].is-still .hero__video, [data-motion].is-still .tile-video { display: none; }
.hero--motion .hero__panel { margin-top: -64px; }

/* Proof ledger: five rows, the rating leads */
.ledger__item--lead { grid-column: 1 / -1; }
.ledger__item--lead .ledger__n { font-size: clamp(2.8rem, 4.2vw, 3.6rem); }

/* Pause / play toggle: quiet until hover or focus, always present on touch,
   and always present while paused so a visitor can find Play again */
.motion-toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1rem .55rem .85rem; border-radius: 999px;
  background: rgba(255, 253, 249, .94); color: var(--palm);
  border: 1px solid rgba(20, 80, 58, .16);
  font: 600 .84rem/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
[data-motion]:hover .motion-toggle,
.motion-toggle:focus-visible,
.motion-toggle[aria-pressed="true"],
.motion-off .motion-toggle { opacity: 1; }
.motion-toggle:hover { background: var(--chalk); color: var(--palm-deep); }
.motion-toggle__icon { width: 14px; height: 14px; fill: currentColor; flex: none; }
.motion-toggle__icon--play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon--play { display: block; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon--pause { display: none; }
@media (hover: none) { .motion-toggle { opacity: 1; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Property pages: the lead gallery tile carries the same hook. The wrapper takes
   over the lead tile's grid placement; the button inside is unchanged, so the
   lightbox, hover and focus behave exactly as before. */
.gallery__lead { position: relative; grid-row: 1 / 3; border-radius: var(--r); overflow: hidden; background: var(--oat-deep); }
.gallery__lead .gallery__tile--lead { grid-row: auto; height: 100%; }
.gallery__tile:hover .tile-video { transform: scale(1.03); }
.gallery__lead .motion-toggle { right: .9rem; bottom: .9rem; }

@media (max-width: 1023px) {
  .hero--motion .hero__media { height: clamp(440px, 70vh, 720px); }
  .hero--motion .hero__panel { margin-top: -48px; }
  .hero--motion .motion-toggle { bottom: auto; top: 1rem; right: 1rem; }
}

@media (max-width: 767px) {
  .hero--motion .hero__media { height: auto; aspect-ratio: 4 / 5; max-height: 78vh; }
  .hero--motion .hero__panel { margin: -2.5rem var(--s2) 0; }
  .gallery__lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__lead .gallery__tile--lead { aspect-ratio: auto; height: 100%; }
}

@media (max-width: 400px) {
  .hero--motion .hero__panel { margin-inline: .75rem; }
}

/* ---------- Hide / show the headline panel so the full video can be watched ---------- */
.panel-toggle {
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 36px; padding: .35rem .7rem .35rem .8rem; border-radius: 999px;
  background: var(--oat); color: var(--ink-2); border: 1px solid var(--line-2);
  font: 600 .78rem/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.panel-toggle:hover, .panel-toggle:focus-visible { background: var(--chalk); color: var(--palm-deep); }
.panel-toggle svg, .showbar__btn svg { width: 12px; height: 12px; flex: none; }
.hero__showbar { display: none; justify-content: center; padding: .9rem var(--gutter) 0; }
.showbar__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--chalk); color: var(--palm); border: 1px solid var(--line-2);
  font: 600 .88rem/1 var(--sans); letter-spacing: .02em; cursor: pointer; box-shadow: var(--shadow-soft);
}
.showbar__btn:hover, .showbar__btn:focus-visible { color: var(--palm-deep); border-color: var(--palm); }
.hero--motion.is-text-hidden .hero__inner { display: none; }
.hero--motion.is-text-hidden .hero__showbar { display: flex; }
@media (max-width: 767px) { .panel-toggle { top: .6rem; right: .6rem; } }
/* keep the eyebrow clear of the hide-text pill */
.hero--motion .hero__panel .eyebrow { padding-right: 7rem; }
@media (max-width: 767px) { .hero--motion .hero__panel { padding-top: 3.4rem; } .hero--motion .hero__panel .eyebrow { padding-right: 0; } }
