/* Living Light v2 — full-screen cinematic chapters.
   Time-of-day tokens live in tokens.css. No always-on WebGL. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-deep, #101820); }
html, body { max-width: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body.cine {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--haze-deep); }
html[data-tod="dusk"] a:hover,
html[data-tod="night"] a:hover { color: var(--glow); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--surface); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 80;
}
.skip:focus { top: 0.5rem; }

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

/* ---------- Chrome (overlay, single-line mobile) ---------- */
.concept-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  background: rgba(10, 14, 18, 0.88); color: #f3efe6;
  padding: 0 1rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.site-header {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0 1.1rem;
  color: #f3efe6;
  background: rgba(10, 14, 18, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 0;
}
body.cine[data-chrome="paper"] .site-header {
  background: var(--header);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
body.cine[data-chrome="paper"] .concept-banner {
  background: var(--ink); color: var(--bg);
}

.brand {
  display: flex; align-items: center; gap: 0.55rem;
  color: inherit; text-decoration: none;
  min-width: 0; flex: 0 1 auto;
  white-space: nowrap;
}
.brand-mark { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; border-radius: 0.3rem; }
.brand-wordmark {
  display: block;
  width: min(13.2rem, 42vw);
  height: 1.25rem;
  background: currentColor;
  color: #f3efe6;
  -webkit-mask: url("/brand/wordmark/msr-porch-currentcolor.svg") left center / contain no-repeat;
  mask: url("/brand/wordmark/msr-porch-currentcolor.svg") left center / contain no-repeat;
}
body.cine[data-chrome="paper"] .brand-wordmark { color: var(--ink); }
@media (max-width: 860px) {
  .brand-wordmark { width: min(9.2rem, 38vw); height: 1.05rem; }
}

.header-clock {
  margin-left: auto;
  font-size: 0.78rem;
  color: inherit;
  opacity: 0.8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav-links {
  display: flex; align-items: center; gap: 0.2rem 1rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: inherit; text-decoration: none;
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 700;
  border: 0; border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid rgba(243, 239, 230, 0.45);
}
body.cine[data-chrome="paper"] .btn-ghost {
  color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: rgba(243, 239, 230, 0.12); color: inherit; }
body.cine[data-chrome="paper"] .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-wide { display: none; }
@media (min-width: 861px) {
  .site-header .btn .btn-wide { display: inline; }
}

.menu-btn, .menu-panel, .menu-backdrop { display: none; }

@media (max-width: 860px) {
  .nav-links, .header-clock { display: none; }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    background: transparent; color: inherit;
    border: 1px solid rgba(243, 239, 230, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font: 600 0.88rem var(--font-body);
    cursor: pointer;
  }
  body.cine[data-chrome="paper"] .menu-btn { border-color: var(--line); color: var(--ink); }
  .site-header .btn { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
  .menu-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 60; border: 0; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
  .menu-panel {
    display: block; position: fixed; top: calc(var(--banner-h) + var(--header-h));
    right: 0; width: min(20rem, 88vw);
    height: calc(100dvh - var(--banner-h) - var(--header-h));
    background: var(--surface); color: var(--ink);
    z-index: 70; padding: 1.25rem 1.4rem 2rem;
    transform: translateX(110%); transition: transform 0.22s ease;
    overflow: auto;
    box-shadow: var(--shadow) -8px 0 24px;
  }
  body.menu-open .menu-panel { transform: none; }
  .menu-panel a {
    display: block; color: var(--ink); text-decoration: none;
    font-weight: 600; padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-meta { margin-top: 1.2rem; color: var(--ink-muted); font-size: 0.92rem; }
  .menu-meta a { display: inline; border: 0; padding: 0; color: var(--accent); }
}

/* ---------- HUD + progress rail ---------- */
.chapter-hud {
  position: fixed;
  left: clamp(0.7rem, 2vw, 1.4rem);
  top: calc(var(--banner-h) + var(--header-h) + 0.45rem);
  bottom: auto;
  z-index: 30;
  pointer-events: none;
  color: #f3efe6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  mix-blend-mode: normal;
}
body.cine[data-chrome="paper"] .chapter-hud { color: var(--ink); text-shadow: none; }
.hud-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.hud-name {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (max-width: 700px) {
  .chapter-hud {
    top: auto;
    bottom: 2.35rem;
    left: 0.7rem;
  }
  .hud-num { font-size: 1.85rem; }
}

.progress {
  position: fixed;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.progress-rail {
  width: 2px;
  height: min(36vh, 16rem);
  background: rgba(243, 239, 230, 0.22);
  border-radius: 2px;
  overflow: hidden;
}
body.cine[data-chrome="paper"] .progress-rail { background: rgba(23, 32, 40, 0.18); }
.progress-rail > i {
  display: block;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: var(--glow, #e8c37a);
  transform-origin: top;
}
.progress ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.progress a {
  display: grid; place-items: center;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  color: #f3efe6;
  border: 1px solid rgba(243, 239, 230, 0.35);
  background: rgba(10, 14, 18, 0.35);
}
.progress a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
body.cine[data-chrome="paper"] .progress a {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
@media (max-width: 700px) {
  /* Slim top indicator, under the header — never over body text or the iOS toolbar. */
  .progress {
    right: 0;
    left: 0;
    top: calc(var(--banner-h) + var(--header-h));
    bottom: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.22rem 0.55rem;
    background: rgba(10, 14, 18, 0.58);
    border-radius: 0;
    backdrop-filter: blur(8px);
    z-index: 35;
  }
  .progress-rail {
    width: min(22vw, 5.5rem);
    height: 2px;
  }
  .progress-rail > i { height: 100%; width: calc(var(--p, 0) * 100%); }
  .progress ol { flex-direction: row; }
  .progress a { width: 1.2rem; height: 1.2rem; font-size: 0.58rem; }
  /* Light/text chapters: hide entirely so it cannot cover rules, reviews, or the form. */
  body.cine[data-on="book"] .progress,
  body.cine[data-on="arrival"] .progress,
  body.cine[data-on="reviews"] .progress { display: none; }
}

/* ---------- Chapters ---------- */
.chapters { position: relative; }
.chapter {
  position: relative;
  color: #f3efe6;
  --stage-h: 100dvh;
}
.track {
  position: relative;
}
.track-pin, .track-pin-long { height: auto; }
.stage {
  position: relative;
  top: auto;
  height: auto;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: stretch;
}
.chapter-opener .stage,
.chapter-mountains .stage,
.cabin-intro .stage {
  height: 100svh;
  min-height: 100svh;
}

.photo-stack,
.photo-stack .layer,
.photo-stack picture,
.photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-stack img {
  object-fit: cover;
  object-position: center;
  max-width: none;
  will-change: transform;
}
.layer-back img { transform: scale(1.02); }
.layer-mid img { transform: none; }
.layer-lights {
  mix-blend-mode: normal;
  opacity: 0.9;
  pointer-events: none;
}
.scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.18) 0%, rgba(8, 12, 18, 0) 28%, rgba(8, 12, 18, 0.06) 62%, rgba(8, 12, 18, 0.48) 100%);
  pointer-events: none;
  z-index: 2;
}
.scrim-center {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.16) 0%, rgba(8, 12, 18, 0.04) 42%, rgba(8, 12, 18, 0.42) 100%);
}

/* Type over photos always sits in a readable well */
.stage-copy {
  position: relative;
  z-index: 3;
  align-self: end;
  padding: calc(var(--banner-h) + var(--header-h) + 3.2rem) clamp(1rem, 4vw, 3.2rem) 5.2rem;
  max-width: 34rem;
  pointer-events: none;
}
.stage-copy a, .stage-copy .btn { pointer-events: auto; }

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow, #e8c37a);
}
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 11vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #f6f1e8;
}
.display .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  will-change: transform;
}
.display .word, .display .char { display: inline-block; }
.subhead {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: #f3efe6;
}
.dek {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: rgba(243, 239, 230, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.tod-copy[hidden] { display: none !important; }

.scroll-hint {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1.4rem;
  z-index: 3;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f3efe6;
  opacity: 0.75;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.2rem;
  margin: 0.4rem auto 0;
  background: currentColor;
}

@media (max-width: 700px) {
  .display { font-size: clamp(2.45rem, 11.8vw, 3.6rem); }
  .stage-copy { max-width: 100%; padding-top: calc(var(--banner-h) + var(--header-h) + 3.4rem); padding-bottom: 2.4rem; padding-right: 1rem; padding-left: 1rem; }
  .scroll-hint { display: none; }
  .dek { font-size: 0.98rem; }
  .chapter-hud { display: none; }
  .tilt-opt { bottom: auto; top: calc(var(--banner-h) + var(--header-h) + 2.4rem); right: 0.8rem; }
}

/* Giant chapter numeral watermark */
.giant-num {
  position: absolute;
  right: -0.04em;
  top: 8%;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.7;
  letter-spacing: -0.07em;
  color: #f3efe6;
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

/* ---------- 01 Mountains ---------- */
.chapter-mountains .stage {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 46%, var(--sky-bot));
}
/* One native screen; the painterly scene parallaxes as it passes. */
.chapter-mountains .mountains-track { height: auto; }

.ridge-stack { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.ridge {
  position: absolute; left: -8%; right: -8%;
  height: 68%;
  bottom: 0;
}
.ridge img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ridge-a { bottom: 0; height: 92%; clip-path: inset(0 0 0 0); }
.ridge-b { bottom: -6%; height: 62%; }
.haze-wash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, transparent 28%),
    linear-gradient(180deg, transparent 72%, rgba(8, 16, 28, 0.28) 100%);
}
.stars {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 32%, #eef4ff, transparent),
    radial-gradient(1px 1px at 63% 14%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 81% 26%, #f7fbff, transparent),
    radial-gradient(1px 1px at 44% 22%, #fff, transparent),
    radial-gradient(1px 1px at 8% 44%, #e8eef8, transparent),
    radial-gradient(1.2px 1.2px at 92% 48%, #fff, transparent),
    radial-gradient(1px 1px at 73% 10%, #fff, transparent);
}
html[data-tod="night"] .stars,
html[data-tod="dusk"] .stars { opacity: 0.7; }
html[data-tod="dusk"] .stars { opacity: 0.35; }

.chapter-mountains .stage-copy {
  align-self: start;
  max-width: 36rem;
  padding-top: calc(var(--banner-h) + var(--header-h) + 1.25rem);
  padding-bottom: 1.6rem;
}
@media (min-width: 701px) {
  .chapter-mountains .stage-copy {
    padding-top: calc(var(--banner-h) + var(--header-h) + 3.4rem);
  }
}
body.cine[data-on="mountains"] .chapter-hud { opacity: 0; visibility: hidden; }
.chapter-mountains .scrim-center {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.66) 0%, rgba(8, 12, 18, 0.34) 26%, rgba(8, 12, 18, 0.04) 48%, rgba(8, 12, 18, 0.10) 70%, rgba(8, 12, 18, 0.38) 100%);
}
@media (max-width: 700px) {
  .chapter-mountains .stage-copy {
    padding-top: calc(var(--banner-h) + var(--header-h) + 0.85rem);
    padding-bottom: 1.1rem;
  }
  .chapter-mountains .display-chapter { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .chapter-mountains .dek { max-width: 34rem; }
}

/* ---------- Cabin intro + gallery ---------- */
.cabin-intro .stage-copy { max-width: 34rem; }
.cabin-tag {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  color: rgba(243, 239, 230, 0.9);
}
.cabin-cta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }

.gallery-track { position: relative; }
.gallery-stage {
  background: #0c1218;
}
.gallery-row {
  display: flex;
  height: 100%;
  width: max-content;
}
.slide {
  position: relative;
  flex: 0 0 var(--slide-w, 100%);
  width: var(--slide-w, 100%);
  max-width: 100%;
  height: 100%;
  overflow: hidden;
}
.slide picture, .slide img, .slide .slide-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
}
.slide .scrim { z-index: 1; }
.slide-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 5rem clamp(1.1rem, 4vw, 3rem) 5.2rem;
  max-width: min(36rem, calc(100% - 3.2rem));
  overflow: hidden;
}
.slide-copy h3 {
  overflow-wrap: break-word;
}
@media (max-width: 700px) {
  .slide-copy { padding: 4rem 1rem 6.8rem; }
}
.slide-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f6f1e8;
}
.slide-copy p { margin: 0.6rem 0 0; color: rgba(243, 239, 230, 0.9); }

.slide-stats { display: grid; place-items: center; }
.slide-stats .scrim {
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.28), rgba(8, 12, 18, 0.62));
}
.stat-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.6rem;
  width: min(72rem, calc(100% - 2.4rem));
  padding: 2rem 0 4rem;
}
.stat-grid div { min-width: 0; }
.stat-grid b, .stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #f6f1e8;
  font-variant-numeric: tabular-nums;
}
.stat-grid span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.78);
}
@media (max-width: 800px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; }
}

/* Galleries stack vertically so a normal swipe keeps moving the page. */
.gallery-track { height: auto; }
.gallery-stage {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  width: 100%;
}
.gallery-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  transform: none;
}
.slide {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: 100svh;
  min-height: 100svh;
}

/* Mood tints per cabin chapter */
.chapter-hilltop .gallery-stage { background: #1a1410; }
.chapter-trails .gallery-stage { background: #101820; }
.chapter-trails .scrim {
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.16) 0%, rgba(8, 16, 26, 0) 30%, rgba(8, 16, 26, 0.46) 100%);
}

/* ---------- 04 After Dark ---------- */
.chapter-dark .stage { background: #070b10; }
.night-grid {
  position: absolute; inset: 0; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}
.night-grid figure {
  margin: 0; position: relative; overflow: hidden;
}
.night-grid figure:first-child { grid-row: 1 / 3; }
.night-grid img {
  width: 100%; height: 100%; object-fit: cover; max-width: none;
}
.night-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2.5rem 1rem 1rem;
  font-size: 0.8rem;
  background: linear-gradient(transparent, rgba(6, 8, 12, 0.55));
  color: #f3efe6;
}
.chapter-dark .stage-copy {
  max-width: 28rem;
  background: linear-gradient(90deg, rgba(6, 8, 12, 0.5), rgba(6, 8, 12, 0.12) 80%, transparent);
  padding-right: 2rem;
}
@media (max-width: 700px) {
  .night-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr 1fr; }
  .night-grid figure:first-child { grid-row: auto; }
}

/* ---------- 05 Arrival typographic strip ---------- */
.chapter-arrival {
  color: var(--ink);
  background: var(--bg);
}
.chapter-arrival .stage {
  background: var(--bg);
  overflow: auto;
}
.arrival-poster {
  position: relative;
  z-index: 2;
  width: min(80rem, calc(100% - 2rem));
  margin: calc(var(--banner-h) + var(--header-h) + 0.8rem) auto 3rem;
  padding-bottom: 2rem;
}
.arrival-poster h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ink);
}
.arrival-poster .lede {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  color: var(--ink-muted);
}
.rule-lines {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.rule-line {
  display: grid;
  grid-template-columns: minmax(7rem, 22%) 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.rule-line dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rule-line dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.arrival-notes {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.6rem;
}
.arrival-notes h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.arrival-notes p, .arrival-notes li {
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
}
.arrival-notes ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 700px) {
  .arrival-notes, .rule-line { grid-template-columns: 1fr; gap: 0.2rem; }
  .chapter-arrival .stage { height: auto; min-height: 100svh; overflow: visible; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---------- 06 Book / contact ---------- */
.chapter-book { color: var(--ink); background: var(--bg-deep); }
.chapter-book .stage {
  background:
    linear-gradient(180deg, var(--sky-top), var(--bg) 40%, var(--bg-deep));
  overflow: auto;
  height: auto;
  min-height: 100dvh;
  position: relative;
}
.book-layout {
  width: min(72rem, calc(100% - 2rem));
  margin: calc(var(--banner-h) + var(--header-h) + 1rem) auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem 2rem;
  align-items: start;
  padding-bottom: 2rem;
}
.book-layout h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 700;
}
.owner-line p { margin: 0 0 0.55rem; color: var(--ink-muted); }
.owner-line strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.owner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.book-demo {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 16px 40px var(--shadow);
  position: relative;
  z-index: 2;
}
.book-demo h2, .book-demo h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.form-note { color: var(--ink-muted); margin: 0 0 1rem; font-size: 0.95rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.9rem;
}
.book-demo label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.25rem; }
.book-demo input, .book-demo select, .book-demo textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
}
.book-demo textarea { min-height: 5.5rem; resize: vertical; }
.book-demo p { margin: 0 0 0.75rem; }
.form-status { color: var(--accent); font-weight: 600; min-height: 1.2em; }
@media (max-width: 800px) {
  .book-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .chapter-book .stage { height: auto; min-height: 100svh; }
}

.site-foot {
  padding: 0 1.2rem 2rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.4rem; }
.site-foot a { color: inherit; }

/* Masked reveals (JS animates clip-path) */
.mask-reveal { clip-path: inset(0 0 0 0); }

/* ---------- Reduced motion: static stacked chapters ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track-pin, .track-pin-long, .gallery-track { height: auto !important; }
  .stage, .gallery-stage {
    position: relative !important;
    height: auto;
    min-height: 100dvh;
    transform: none !important;
  }
  .gallery-row { transform: none !important; flex-wrap: wrap; width: 100%; }
  .slide { flex: 1 1 100%; width: 100%; min-height: 100dvh; }
  .display .line, .display .char, .display .word,
  .layer, .photo-stack img, .ridge {
    transform: none !important; opacity: 1 !important;
  }
  .scroll-hint { display: none; }
  .mask-reveal { clip-path: none !important; }
}

.display-chapter {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  text-transform: none;
  line-height: 0.92;
}
.kicker-ink { color: var(--accent); }
.giant-num-ink { color: var(--ink); opacity: 0.08; }
.btn-short { display: inline; }
@media (min-width: 861px) {
  .site-header .btn .btn-short { display: none; }
}

/* Arrival and book are typographic pages, not pinned film stages */
.chapter-arrival .track,
.chapter-book .track { height: auto; }
.chapter-arrival .stage,
.chapter-book .stage {
  position: relative;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

body.cine[data-on="book"] .chapter-hud,
body.cine[data-on="arrival"] .chapter-hud { opacity: 0.35; }
@media (max-width: 700px) {
  body.cine[data-on="book"] .chapter-hud,
  body.cine[data-on="book"] .progress { opacity: 0; pointer-events: none; }
  .chapter-book .book-layout { padding-bottom: 4.5rem; }
}

.chapter-dark .stage {
  position: relative;
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

@media (max-width: 700px) {
  /* After Dark: landscape photo band (better crop of a real evening photo) +
     insets in their own row, type on a solid panel — no gravel full-bleed,
     no captions sitting on the dek, fits the iOS 390×664 visible area. */
  .chapter-dark .stage {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    overflow: auto;
    background: #0c1016;
  }
  .chapter-dark .stars { display: none; }
  .chapter-dark .giant-num { display: none; }
  .night-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(9.2rem, 26svh) minmax(7.2rem, 18svh);
    inset: auto;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    gap: 0.28rem;
    padding: calc(var(--banner-h) + var(--header-h) + 2rem) 0.7rem 0.35rem;
    background: #0c1016;
  }
  .night-grid figure {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-width: 0;
    border: 0;
    box-shadow: none;
  }
  /* Full-width evening porch as the hero — landscape crop hides the driveway. */
  .night-grid figure:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .night-grid figure:first-child {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    inset: auto;
  }
  .night-grid figure:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .night-grid figure:nth-child(2) img { object-position: center 22%; }
  .night-grid figcaption {
    font-size: 0.62rem;
    padding: 1.4rem 0.5rem 0.4rem;
    background: linear-gradient(transparent, rgba(6, 8, 12, 0.88));
  }
  .chapter-dark .stage-copy {
    position: relative;
    background: #0c1016;
    background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.2), #0c1016 1.2rem);
    max-width: 100%;
    padding: 0.9rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
    flex: 1 1 auto;
  }
  .chapter-dark .stage-copy .dek {
    margin-bottom: 0;
    text-shadow: none;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .night-grid {
    grid-template-rows: minmax(8rem, 24svh) minmax(6.2rem, 16svh);
    padding-top: calc(var(--banner-h) + var(--header-h) + 1.85rem);
  }
  .chapter-dark .display { font-size: clamp(2.1rem, 10vw, 3.1rem); }
}

/* Sky blend for the mountains chapter */
.ridge-a {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
}
.chapter-mountains .haze-wash {
  background:
    linear-gradient(180deg, var(--sky-top) 0%, color-mix(in srgb, var(--sky-mid) 70%, transparent) 32%, transparent 58%),
    linear-gradient(180deg, transparent 55%, rgba(8, 16, 28, 0.55) 100%);
}

html, body { overflow-x: clip; }
body.cine { overflow-x: clip; width: 100%; max-width: 100%; }

.chapter-opener .stage-copy {
  max-width: min(70rem, calc(100% - 4.5rem));
}
.chapter-opener .display {
  font-size: clamp(3rem, 9.6vw, 7.6rem);
}
.chapter-opener .display .line { overflow: hidden; }

.chapter-dark .giant-num, .chapter-opener .giant-num, .chapter-mountains .giant-num,
.chapter-hilltop .giant-num, .chapter-trails .giant-num { opacity: 0.16; color: #f3efe6; }
@media (max-width: 700px) {
  .giant-num { font-size: clamp(5.5rem, 34vw, 10rem); top: 6%; opacity: 0.12; }
}

/* Photo motion — composites for 60fps; do not use !important transforms here. */
.photo-stack .layer,
.photo-stack img,
.ridge,
.ridge img,
.night-grid img,
.gallery-row,
.slide-photo img,
.cabin-intro .layer-mid img {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ridge-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
body.ridges-live .chapter-mountains .ridge-stack { opacity: 0; }
body.ridges-live .chapter-mountains .haze-wash { opacity: 0.35; }
.chapter-mountains .stage { background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 46%, var(--sky-bot)); }

.tilt-opt {
  position: absolute;
  right: 1rem;
  bottom: 5.2rem;
  z-index: 4;
  appearance: none;
  border: 1px solid rgba(243,239,230,0.35);
  background: rgba(10,14,18,0.45);
  color: #f3efe6;
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.tilt-opt[hidden] { display: none !important; }
@media (min-width: 861px) {
  .tilt-opt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ridge-canvas { display: none; }
  body.ridges-live .chapter-mountains .ridge-stack { opacity: 1; }
}


/* v6 overlap + natural photo pass */
.display .line { overflow: hidden; }
@media (min-width: 701px) {
  .slide-copy { padding-right: 4.2rem; }
  .stage-copy { padding-right: clamp(1rem, 4vw, 3.2rem); }
}
body.cine[data-on="arrival"] .chapter-hud,
body.cine[data-on="book"] .chapter-hud,
body.cine[data-on="reviews"] .chapter-hud { display: none; }
@media (max-width: 700px) {
  body.cine[data-on="book"] .progress,
  body.cine[data-on="arrival"] .progress,
  body.cine[data-on="reviews"] .progress { display: none; }
}

@media (max-width: 700px) {
  .stage { --stage-h: auto; }
  .chapter-opener .stage,
  .chapter-mountains .stage,
  .cabin-intro .stage { height: 100svh; min-height: 100svh; }
  .slide { min-height: 100svh; }
  .chapter-dark .stage,
  .chapter-arrival .stage,
  .chapter-book .stage,
  .chapter-reviews .stage {
    height: auto;
    min-height: 100svh;
    overflow: auto;
  }
}


/* ---------- Native scroll guarantee (no pins, no snap, no sticky stages) ---------- */
.track-pin, .track-pin-long, .gallery-track, .opener-track, .mountains-track, .cabin-intro {
  height: auto !important;
}
.chapter-opener .stage,
.chapter-mountains .stage,
.cabin-intro .stage {
  position: relative !important;
  top: auto !important;
  height: 100svh;
  min-height: 100svh;
}
.gallery-stage {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 0;
  overflow: visible;
  scroll-snap-type: none !important;
}
.gallery-row { transform: none !important; flex-wrap: nowrap; flex-direction: column; width: 100%; height: auto; }
.slide { scroll-snap-align: none; width: 100% !important; }
html, body { scroll-snap-type: none; }

/* Dec 1, 2026: Mariann asked for chapter labels and numbering removed. */
.hud-num, .giant-num { display: none !important; }
