/* Fjellro Telemark Resort & Casino — style.css
   Stage 2: design system "Pine & Snow". Stage 3: header, drawer, footer. */

/* ---------- Fonts (self-hosted, fonts/) ---------- */

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/syne-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/commissioner-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/commissioner-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/commissioner-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens: "Pine & Snow" ---------- */

:root {
  /* Palette (§2.1) */
  --c-snow:      #F4F6F5;
  --c-frost:     #E5EAE8;
  --c-frost-2:   #D2DBD7;
  --c-pine:      #14261F;
  --c-pine-2:    #1E352B;
  --c-pine-dim:  rgba(20,38,31,.68);
  --c-moss:      #3F6B4F;
  --c-rust:      #A8492C;
  --c-rust-lt:   #D9764F;
  --c-birch:     #E6DED0;
  --c-ice:       #9FC3C8;
  --c-line:      rgba(20,38,31,.14);
  --c-line-dark: rgba(244,246,245,.16);

  /* Derived accent shades for small text where the base accent is below 4.5:1 */
  --c-rust-dk:   #9A4128;  /* on birch 4.97, on frost-2 4.70 */
  --c-rust-lt-2: #E38660;  /* on pine-2 4.91 */
  --c-snow-dim:  rgba(244,246,245,.72);

  /* Type (§2.2) */
  --ff-head: 'Syne', 'Arial Narrow', system-ui, sans-serif;
  --ff-body: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(2.9rem, 7vw, 6.4rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.6rem);
  --fs-h3: clamp(1.3rem, 2.1vw, 1.7rem);
  --fs-body: clamp(1rem, 1.05vw, 1.08rem);
  --fs-small: .875rem;
  --fs-eyebrow: .72rem;

  /* Layout (§2.4) — breakpoints: 480 / 768 / 1024 / 1200 / 1440 */
  --container: 1320px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 62ch;
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --header-h: 76px;

  /* Signature details (§2.3) */
  --cut: 28px;          /* clipped bottom-right corner of images and accent blocks */
  --cut-sm: 8px;        /* chips */
  --gate-angle: 8deg;   /* lock-gate leaves */
  --snow-h: 48px;       /* snow edge height */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .28s;

  /* Surface (light, default) */
  --bg: var(--c-snow);
  --text: var(--c-pine);
  --text-dim: var(--c-pine-dim);
  --accent: var(--c-rust);
  --line: var(--c-line);
  --line-strong: rgba(20,38,31,.32);
  --focus: var(--c-rust);
  --card-bg: transparent;
  --btn-trail: var(--c-pine);
}

/* Surfaces: variables swap per section */

.section--frost {
  --bg: var(--c-frost);
}

.section--pine {
  --bg: var(--c-pine);
  --text: var(--c-snow);
  --text-dim: var(--c-snow-dim);
  --accent: var(--c-rust-lt);
  --line: var(--c-line-dark);
  --line-strong: rgba(244,246,245,.36);
  --focus: var(--c-rust-lt);
  --card-bg: var(--c-pine-2);
  --btn-trail: var(--c-snow);
}

/* Cards on dark sit on pine-2: rust-lt drops to 4.16:1 there */
.section--pine .card {
  --accent: var(--c-rust-lt-2);
  --focus: var(--c-rust-lt-2);
}

.surface--birch {
  --bg: var(--c-birch);
  --text: var(--c-pine);
  --text-dim: var(--c-pine-dim);
  --accent: var(--c-rust-dk);
  --line: var(--c-line);
  --focus: var(--c-rust-dk);
  background-color: var(--bg);
  color: var(--text);
}

.surface--frost-2 {
  --bg: var(--c-frost-2);
  --accent: var(--c-rust-dk);
  --focus: var(--c-rust-dk);
  background-color: var(--bg);
}

/* ---------- Base (§2.5) ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--c-snow);
  color: var(--c-pine);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--text);
  text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-h1); font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.15; }

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

strong, b {
  font-weight: 500;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color var(--t) var(--ease);
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul:where([class]),
ol:where([class]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--c-rust);
  color: var(--c-snow);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .75rem 1.1rem;
  background: var(--c-pine);
  color: var(--c-snow);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.skip-link:focus-visible {
  outline-color: var(--c-rust-lt);
}

.nowrap {
  white-space: nowrap;
}

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

/* ---------- Layout (§2.4) ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-col {
  max-width: var(--measure);
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  background-color: var(--bg);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.muted {
  color: var(--text-dim);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.6;
}

.disclaimer {
  margin: 1rem 0 0;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--text-dim);
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.1rem;
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2px;
  height: 14px;
  background: currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--c-rust);
  color: var(--c-snow);
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 0 0 var(--btn-trail);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: -2px -2px 0 0 var(--btn-trail);
  text-decoration: none;
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: -1px -1px 0 0 var(--btn-trail);
}

.btn:focus-visible {
  outline-color: var(--focus);
}

/* Secondary: outline, same geometry */
.btn--line {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--line:hover {
  box-shadow: inset 0 0 0 1px var(--text), -2px -2px 0 0 var(--btn-trail);
}

.btn--line:active {
  box-shadow: inset 0 0 0 1px var(--text), -1px -1px 0 0 var(--btn-trail);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

/* ---------- Chips (Planned · Subject to licensing · 18+ · Winter only) ---------- */

.chip {
  --chip-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .28rem .7rem .3rem;
  border: 1px solid var(--chip-line);
  color: var(--text);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
  background:
    linear-gradient(to top left, transparent 50%, var(--chip-line) 50%, var(--chip-line) calc(50% + 1.5px), transparent calc(50% + 1.5px))
    right bottom / var(--cut-sm) var(--cut-sm) no-repeat border-box;
}

.chip--accent {
  --chip-line: var(--accent);
}

/* Winter chips: ice outline. On light surfaces the outline is decorative; the label carries the meaning. */
.chip--winter {
  --chip-line: var(--c-ice);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---------- Lock-gate divider (§2.3) ---------- */
/* Two leaves meeting in the middle at ~8°: each half is 128 × 18px, and atan(18/128) ≈ 8°. */

.gate-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px minmax(0, 1fr);
  align-items: end;
  height: 18px;
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

.gate-divider::before,
.gate-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.gate-divider span {
  display: block;
  height: 18px;
  background: var(--line-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 18'%3E%3Cpath d='M0 17.4 128 .6l128 16.8' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 18'%3E%3Cpath d='M0 17.4 128 .6l128 16.8' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Clipped corner (images, accent blocks) ---------- */

.cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.accent-block {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--c-birch);
  color: var(--c-pine);
  --accent: var(--c-rust-dk);
  --focus: var(--c-rust-dk);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

/* ---------- Frames: images, radius 0, cut corner ---------- */

.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--c-frost-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.section--pine .frame {
  background: var(--c-pine-2);
}

.frame > img,
.frame > picture,
.frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--21x9 { aspect-ratio: 21 / 9; }
.frame--3x2  { aspect-ratio: 3 / 2; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--4x5  { aspect-ratio: 4 / 5; }
.frame--1x1  { aspect-ratio: 1 / 1; }

/* ---------- Cards: 1px line, no shadow ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text);
}

.card__media {
  margin: 0;
}

.card__media img {
  transition: filter var(--t) var(--ease);
}

.card__body {
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.card__title {
  margin: 0 0 .4rem;
  font-size: var(--fs-h3);
  transition: transform var(--t) var(--ease);
}

.card__text {
  margin: 0;
  color: var(--text-dim);
}

/* Bottom line that runs in from the left on hover */
.card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

.card:hover .card__media img,
.card:focus-within .card__media img {
  filter: brightness(1.04);
}

.card:hover .card__title,
.card:focus-within .card__title {
  transform: translateX(2px);
}

.card:hover::after,
.card:focus-within::after {
  transform: scaleX(1);
}

/* ---------- Texture (§2.3), on pseudo-elements ---------- */

/* Light: fine grain, feTurbulence tile 400 × 400, opacity .03 */
.section:not(.section--pine)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

/* Dark: faint vertical "rain" of pine needles, two gradients, opacity .045 */
.section--pine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 37px, var(--c-snow) 37px 38px, transparent 38px 91px),
    repeating-linear-gradient(90deg, transparent 0 13px, var(--c-ice) 13px 14px, transparent 14px 59px);
  background-size: 100% 23px, 100% 41px;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 9px, transparent 9px 23px);
  mask-image: repeating-linear-gradient(180deg, #000 0 9px, transparent 9px 23px);
}

/* ---------- Snow edge: light section after a dark one (§2.3) ---------- */
/* Asymmetric, sharp humps, not a wave. Drawn upwards over the dark section above. */

.snow-edge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--snow-h) + 1px);
  z-index: 1;
  height: var(--snow-h);
  pointer-events: none;
  /* Same grain as the section below (alpha .03 baked into the tile), so no seam shows */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 400px 400px,
    var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V31l64-9 38 11 92-24 41 15 118-8 47-12 36 17 131-5 29-11 74 14 58-19 42 10 112 4 51-14 33 9 121-6 46 13 82-15 39 8 83 3 43-11 60 7V48z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V31l64-9 38 11 92-24 41 15 118-8 47-12 36 17 131-5 29-11 74 14 58-19 42 10 112 4 51-14 33 9 121-6 46 13 82-15 39 8 83 3 43-11 60 7V48z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}

@media (min-width: 1024px) {
  :root {
    --snow-h: 60px;
  }
}

@media (max-width: 479px) {
  :root {
    --snow-h: 40px;
  }
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 32px;
  height: 32px;
}

.brand__name {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .22em;
}

/* ---------- Header (§3.1) ---------- */
/* Solid by default. On a page with a hero (body.has-hero) it sits over the image, transparent,
   until JS adds .is-scrolled after 80px. */

.site-header {
  --text: var(--c-pine);
  --accent: var(--c-rust);
  --focus: var(--c-rust);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--text);
  background-color: rgba(244,246,245,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

.has-hero .site-header:not(.is-scrolled) {
  --text: var(--c-snow);
  --accent: var(--c-rust-lt);
  --focus: var(--c-snow);
  background-color: transparent;
  background-image: linear-gradient(to bottom, rgba(20,38,31,.9), rgba(20,38,31,.72) 70%, rgba(20,38,31,.62));
  background-origin: border-box;
  background-repeat: no-repeat;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.site-header .brand {
  margin-right: auto;
}

/* Desktop nav: visible from 1200px */
.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.75rem);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: .5rem;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

/* Active item: rust dash to the left of the label */
.site-nav__link::before {
  content: "";
  position: absolute;
  left: -.85rem;
  top: 50%;
  width: .55rem;
  height: 2px;
  margin-top: -1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t) var(--ease);
}

.site-nav__link:hover::before,
.site-nav__link.is-active::before,
.site-nav__link[aria-current]::before {
  transform: scaleX(1);
}

.site-nav__link:hover {
  text-decoration: none;
}

.site-header__cta {
  display: none;
  min-height: 42px;
  padding: .6rem 1.15rem;
  font-size: .88rem;
  white-space: nowrap;
}

.has-hero .site-header:not(.is-scrolled) .site-header__cta {
  --btn-trail: var(--c-snow);
}

/* Burger (< 1200px, needs JS) and its no-JS fallback link */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.nav-toggle__bars {
  display: grid;
  gap: 6px;
  width: 24px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars span:nth-child(2) {
  width: 70%;
  justify-self: end;
}

.site-header__menu-link {
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
}

.js .site-header__menu-link {
  display: none;
}

.js .nav-toggle {
  display: inline-flex;
}

@media (min-width: 768px) {
  .site-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 1200px) {
  .site-nav {
    display: block;
  }

  .js .nav-toggle,
  .site-header__menu-link {
    display: none;
  }
}

/* ---------- Nav drawer: slides in from the left (< 1200px) ---------- */

.nav-drawer {
  --bg: var(--c-pine);
  --text: var(--c-snow);
  --text-dim: var(--c-snow-dim);
  --accent: var(--c-rust-lt);
  --focus: var(--c-rust-lt);
  --line: var(--c-line-dark);
  --btn-trail: var(--c-snow);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(88vw, 420px);
  height: 100vh;
  height: 100dvh;
  padding: 1rem clamp(1.25rem, 5vw, 2.25rem) calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform .42s var(--ease), visibility 0s linear .42s;
}

.nav-drawer.is-open {
  visibility: visible;
  transform: none;
  transition: transform .42s var(--ease), visibility 0s;
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - 1rem);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.nav-drawer__close {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.nav-drawer__close span::before,
.nav-drawer__close span::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav-drawer__close span::after {
  transform: rotate(-45deg);
}

.nav-drawer__list {
  display: grid;
  gap: .15rem;
}

.nav-drawer__link {
  position: relative;
  display: block;
  padding: .45rem 0 .45rem 1.1rem;
  color: var(--text);
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav-drawer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: .6rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t) var(--ease);
}

.nav-drawer__link:hover::before,
.nav-drawer__link.is-active::before,
.nav-drawer__link[aria-current]::before {
  transform: scaleX(1);
}

.nav-drawer__foot {
  margin-top: auto;
  padding-top: 2rem;
}

.nav-drawer__cta {
  width: 100%;
}

.nav-drawer__note {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20,38,31,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .42s var(--ease), visibility 0s linear .42s;
}

.nav-drawer.is-open ~ .nav-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity .42s var(--ease), visibility 0s;
}

@media (min-width: 1200px) {
  .nav-drawer,
  .nav-backdrop {
    display: none;
  }
}

html.is-scroll-locked {
  overflow: hidden;
}

/* ---------- Footer (§3.2) ---------- */
/* Four columns ≥ 1024 · two ≥ 768 · accordion on phones */

.site-footer {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
}

.site-footer a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.site-footer__list a {
  text-decoration: none;
}

.site-footer__list a:hover {
  text-decoration: underline;
}

.site-footer__list a[aria-current] {
  color: var(--accent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.site-footer__col--brand {
  padding-bottom: 2rem;
}

.site-footer__col--brand .brand {
  margin-bottom: 1.25rem;
}

.site-footer__pitch {
  max-width: 40ch;
  color: var(--text);
}

.site-footer__meta {
  margin: 0 0 .5rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.site-footer__title {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.site-footer__toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

/* Plus / minus */
.site-footer__toggle::before,
.site-footer__toggle::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
  transition: transform var(--t) var(--ease);
}

.site-footer__toggle::after {
  transform: rotate(90deg);
}

.site-footer__toggle[aria-expanded="true"]::after {
  transform: rotate(0deg);
}

.site-footer__col[data-accordion] {
  border-top: 1px solid var(--line);
}

.site-footer__col[data-accordion]:last-child {
  border-bottom: 1px solid var(--line);
}

.site-footer__list {
  display: grid;
  gap: .55rem;
  padding-bottom: 1.5rem;
}

.site-footer__list p {
  margin: 0;
  color: var(--text-dim);
}

/* Collapsed panels only with JS and only on phones */
@media (max-width: 767px) {
  .js .site-footer__col:has(.site-footer__toggle[aria-expanded="false"]) .site-footer__list {
    display: none;
  }
}

.site-footer__cta.btn {
  color: var(--c-snow);
  text-decoration: none;
}

.site-footer__cta.btn:hover {
  color: var(--c-snow);
}

.site-footer__mails {
  display: grid;
  gap: .15rem;
  margin: .5rem 0 0;
}

.site-footer__mails dt {
  margin-top: .45rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.site-footer__mails dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }

  .site-footer__col[data-accordion],
  .site-footer__col[data-accordion]:last-child {
    border: 0;
  }

  .site-footer__title {
    margin-bottom: 1.1rem;
  }

  .site-footer__toggle {
    min-height: 0;
    color: var(--accent);
    pointer-events: none;
  }

  .site-footer__toggle::before,
  .site-footer__toggle::after {
    display: none;
  }

  .site-footer__list {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  }

  .site-footer__col--brand {
    grid-column: auto;
    padding-right: 1rem;
  }
}

.site-footer__bottom {
  display: grid;
  gap: .6rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-dim);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.site-footer__bottom::before {
  content: "";
  height: 1px;
  margin-bottom: 1.1rem;
  background: var(--line);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__badge {
  margin-right: .5rem;
  vertical-align: .1em;
}

.footer__owner {
  margin-top: .75rem !important;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

/* ---------- Sections S1–S7 (stage 4) ---------- */

/* Single-column grids must not grow to their content (horizontal tracks inside) */
.idea__grid,
.seasons__cols,
.locks__body,
.room,
.winter__head,
.winter__grid,
.split,
.dishes,
.larder,
.casino__body,
.spa__grid,
.region__map-row,
.faq__grid,
.contact__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Shared section parts ---------- */

.section-head {
  margin-bottom: clamp(2rem, 4.5vw, 3.75rem);
}

.section-head h2 {
  max-width: 22ch;
}

.note {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.note + .disclaimer {
  margin-top: .35rem;
}

/* ---------- S1. Hero ---------- */

.hero {
  --text: var(--c-snow);
  --text-dim: rgba(244,246,245,.8);
  --accent: var(--c-rust-lt);
  --focus: var(--c-snow);
  --line-strong: rgba(244,246,245,.55);
  --btn-trail: var(--c-snow);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 1.25rem);
  /* Room for the snow edge of the next section */
  padding-bottom: calc(var(--snow-h) + clamp(.25rem, 2svh, 1.5rem));
  background: var(--c-pine);
  color: var(--text);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Scrim sized so snow text keeps ≥ 4.5:1 (≥ 3:1 for the H1) over the brightest parts of all three images */
  background:
    linear-gradient(to bottom, rgba(20,38,31,.62) 0%, rgba(20,38,31,0) 24%),
    linear-gradient(to top, rgba(20,38,31,.95) 0%, rgba(20,38,31,.9) 34%, rgba(20,38,31,.8) 56%, rgba(20,38,31,.55) 72%, rgba(20,38,31,0) 90%),
    linear-gradient(to right, rgba(20,38,31,.62) 0%, rgba(20,38,31,.3) 45%, rgba(20,38,31,0) 70%),
    linear-gradient(rgba(20,38,31,var(--hero-veil)), rgba(20,38,31,var(--hero-veil)));
}

.hero {
  --hero-veil: .12;
}

/* On phones the text column covers almost the whole frame */
@media (max-width: 767px) {
  .hero {
    --hero-veil: .5;
  }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.3s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide picture,
.hero__slide img {
  width: 100%;
  height: 100%;
}

.hero__slide img {
  object-fit: cover;
}

.hero__content {
  position: relative;
}

.hero .eyebrow {
  margin-bottom: clamp(.6rem, 1.6svh, 1.1rem);
  color: var(--c-snow);
}

.hero .eyebrow::before {
  background: var(--c-rust-lt);
}

.hero__title {
  max-width: 15ch;
  margin-bottom: clamp(.75rem, 2.2svh, 1.4rem);
  color: var(--c-snow);
  font-size: clamp(2.1rem, min(6.4vw, 9.4svh), 6.4rem);
  line-height: 1;
}

.hero__lead {
  max-width: 54ch;
  margin-bottom: clamp(1rem, 3svh, 2rem);
  color: var(--text-dim);
  font-size: clamp(.98rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.hero .btn--line {
  color: var(--c-snow);
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1rem, 3.5svh, 2.5rem);
  padding-top: .9rem;
  border-top: 1px solid rgba(244,246,245,.2);
}

.hero__disclaimer {
  margin: 0;
  color: var(--text-dim);
  font-size: .8rem;
  font-style: italic;
  line-height: 1.45;
}

.hero__controls {
  display: flex;
  flex: none;
  align-items: center;
  gap: .1rem;
}

html:not(.js) .hero__controls {
  display: none;
}

.hero__dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero__dot::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(244,246,245,.5);
  transition: background-color var(--t) var(--ease);
}

.hero__dot[aria-current="true"]::before {
  background: var(--c-rust-lt);
  height: 3px;
}

/* Short screens (e.g. 390 × 664): keep H1, buttons and disclaimer in the first view */
@media (max-height: 760px) and (max-width: 767px) {
  .hero__title {
    font-size: clamp(1.9rem, 8.4vw, 2.3rem);
  }

  .hero__lead {
    font-size: .92rem;
    line-height: 1.5;
  }

  .hero__foot {
    margin-top: .9rem;
    padding-top: .6rem;
  }
}

@media (max-width: 479px) {
  .hero .btn {
    padding-inline: 1rem;
    min-height: 44px;
    font-size: .9rem;
  }

  .hero__disclaimer {
    font-size: .74rem;
  }
}

/* ---------- S2. The idea ---------- */

.idea__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.idea__detail {
  max-width: 520px;
}

.idea__wide {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
  .idea__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .idea__text {
    grid-column: 1 / span 5;
  }

  .idea__text h2 {
    font-size: clamp(2rem, 3.3vw, 3.1rem);
  }

  .idea__detail {
    grid-column: 7 / -1;
    max-width: none;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stats__chip {
  margin-bottom: 1.25rem;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}

.stats__item {
  display: grid;
  gap: .35rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.stats__num {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.stats__label {
  color: var(--text-dim);
  font-size: var(--fs-small);
}

@media (min-width: 768px) {
  .stats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- S3. Two seasons: compare slider ---------- */
/* Without JS: summer and winter stacked with captions. With JS: one 16:9 frame split at --split. */

.compare {
  --split: 50%;
  display: grid;
  gap: 1.5rem;
}

.compare__item {
  position: relative;
  margin: 0;
}

.compare__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.compare__label {
  margin-top: .6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.compare__handle {
  display: none;
}

.js .compare {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-frost-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.js .compare__item {
  position: absolute;
  inset: 0;
}

.js .compare__item img {
  height: 100%;
  aspect-ratio: auto;
  clip-path: none;
  pointer-events: none;
}

.js .compare__item--winter {
  clip-path: inset(0 0 0 var(--split));
}

.js .compare__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  padding: .3rem .65rem;
  background: rgba(20,38,31,.72);
  color: var(--c-snow);
}

.js .compare__item--winter .compare__label {
  left: auto;
  right: 1rem;
}

.js .compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  display: block;
  width: 48px;
  margin-left: -24px;
  cursor: ew-resize;
  touch-action: none;
}

.compare__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--c-snow);
}

.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: var(--c-snow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

/* Two arrows ‹ › */
.compare__grip::before,
.compare__grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -5px;
  border-block: 5px solid transparent;
}

.compare__grip::before {
  left: 11px;
  border-right: 6px solid var(--c-pine);
}

.compare__grip::after {
  right: 11px;
  border-left: 6px solid var(--c-pine);
}

.compare__handle:focus-visible {
  outline: none;
}

.compare__handle:focus-visible .compare__grip {
  outline: 2px solid var(--c-rust);
  outline-offset: 3px;
  clip-path: none;
}

.seasons__cols {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.seasons__col .chip {
  margin-bottom: 1rem;
}

.seasons__col h3 {
  margin-bottom: .6rem;
}

.seasons__col p {
  max-width: 52ch;
  margin: 0;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .seasons__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

/* ---------- S4. The Lock House ---------- */

.locks__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin-top: clamp(.75rem, 2vw, 1.5rem);
}

.locks__row > :last-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  /* Widths proportional to 4:5, 4:5, 4:3, so all three share one height */
  .locks__row {
    grid-template-columns: .8fr .8fr 1.3333fr;
  }

  .locks__row > :last-child {
    grid-column: auto;
  }
}

.locks__body {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.locks__lead {
  max-width: 60ch;
  margin: 0;
}

@media (min-width: 1024px) {
  .locks__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .locks__lead {
    grid-column: 1 / span 5;
  }

  .lock-steps {
    grid-column: 7 / -1;
  }
}

.lock-steps {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--c-pine-2);
  --accent: var(--c-rust-lt-2);
  --focus: var(--c-rust-lt-2);
}

.lock-steps__title {
  margin-bottom: 1.25rem;
}

/* Side view: downstream pool | chamber | upstream pool. Levels: low 30%, high 70%. */
.lock-diagram {
  --water: 30%;
  --boat-x: 22%;
  --boat-y: 30%;
  position: relative;
  aspect-ratio: 16 / 7;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-bottom: 2px solid rgba(244,246,245,.4);
}

.lock-diagram[data-step="2"] { --boat-x: 43%; }
.lock-diagram[data-step="3"] { --water: 70%; --boat-x: 43%; --boat-y: 70%; }
.lock-diagram[data-step="4"] { --water: 70%; --boat-x: 76%; --boat-y: 70%; }

.lock-diagram__pool,
.lock-diagram__water {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(159,195,200,.62), rgba(159,195,200,.32));
}

.lock-diagram__pool--down {
  left: 0;
  width: 30%;
  height: 30%;
}

.lock-diagram__pool--up {
  right: 0;
  width: 30%;
  height: 70%;
}

.lock-diagram__chamber {
  position: absolute;
  top: 12%;
  bottom: 0;
  left: 30%;
  width: 40%;
  border-inline: 3px solid rgba(244,246,245,.5);
  background: rgba(244,246,245,.04);
}

.lock-diagram__water {
  left: 0;
  right: 0;
  height: calc(var(--water) / .88);
  transition: height 1.1s var(--ease);
}

.lock-diagram__gate {
  position: absolute;
  top: 12%;
  bottom: 0;
  width: 6px;
  margin-left: -3px;
  background: var(--c-rust-lt);
  transform-origin: top center;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}

.lock-diagram__gate--lower { left: 30%; }
.lock-diagram__gate--upper { left: 70%; }

/* Open gate: swung back out of the side view */
.lock-diagram[data-step="1"] .lock-diagram__gate--lower,
.lock-diagram[data-step="4"] .lock-diagram__gate--upper {
  opacity: .25;
  transform: scaleY(.18);
}

.lock-diagram__boat {
  position: absolute;
  left: var(--boat-x);
  bottom: var(--boat-y);
  width: 14%;
  height: 9%;
  background: var(--c-birch);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 8% 100%);
  transition: left 1s var(--ease), bottom 1.1s var(--ease);
}

.lock-steps__list {
  display: grid;
  gap: .25rem;
  counter-reset: step;
}

.lock-steps__item {
  position: relative;
  display: grid;
  gap: .15rem;
  padding: .6rem 0 .6rem 2.4rem;
  border-left: 2px solid transparent;
  counter-increment: step;
  color: var(--text-dim);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.lock-steps__item::before {
  content: counter(step);
  position: absolute;
  left: .75rem;
  top: .6rem;
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--text-dim);
}

.lock-steps__item.is-active {
  border-left-color: var(--accent);
  color: var(--text);
}

.lock-steps__item.is-active::before {
  color: var(--accent);
}

.lock-steps__name {
  font-weight: 600;
  color: var(--text);
}

.lock-steps__text {
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* Without JS every step reads as active text; the controls are hidden */
html:not(.js) .lock-steps__item {
  color: var(--text);
}

html:not(.js) .lock-steps__nav {
  display: none;
}

.lock-steps__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.lock-steps__count {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.lock-steps__nav .btn {
  min-height: 44px;
  padding: .55rem 1.1rem;
}

/* ---------- S5. Rooms: tabs with a thumbnail strip ---------- */

.room-tabs__panels {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.room {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.room__name {
  margin-bottom: .75rem;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.room__body > p {
  max-width: 48ch;
  color: var(--text-dim);
}

.room__body .chip-row {
  margin-bottom: 1.5rem;
}

.room__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1.75rem;
}

.room__thumb {
  display: block;
  overflow: hidden;
}

.room__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: filter var(--t) var(--ease);
}

.room__thumb:hover img {
  filter: brightness(1.06);
}

@media (min-width: 1024px) {
  .room {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.room-tabs__list {
  display: flex;
  gap: .75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

html:not(.js) .room-tabs__list {
  display: none;
}

.room-tabs__tab {
  flex: 0 0 auto;
  width: 150px;
  padding: 0 0 .6rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 500;
  text-align: left;
  scroll-snap-align: start;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.room-tabs__tab img {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: .55rem;
  object-fit: cover;
  opacity: .72;
  transition: opacity var(--t) var(--ease);
}

.room-tabs__tab:hover,
.room-tabs__tab[aria-selected="true"] {
  color: var(--text);
}

.room-tabs__tab:hover img,
.room-tabs__tab[aria-selected="true"] img {
  opacity: 1;
}

.room-tabs__tab[aria-selected="true"] {
  border-bottom-color: var(--c-rust);
}

@media (min-width: 1024px) {
  .room-tabs__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }

  .room-tabs__tab {
    width: auto;
  }
}

/* ---------- S6. The Telemark Turn ---------- */

.winter__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.winter__head h2 {
  max-width: 16ch;
  margin: 0;
}

.winter__intro p {
  max-width: 60ch;
  color: var(--text-dim);
}

.winter__intro p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .winter__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
}

.winter__grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.winter__card .chip {
  margin-bottom: .8rem;
}

@media (min-width: 768px) {
  /* 4:5 beside 3:2 at a 1 : 2 width ratio keeps rows close in height */
  .winter__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .winter__card--a,
  .winter__card--d { grid-column: span 4; }

  .winter__card--b,
  .winter__card--c { grid-column: span 8; }
}

/* ---------- S7. Dining ---------- */

.split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.split + .split {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.split__text p {
  max-width: 52ch;
  color: var(--text-dim);
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .split--flip {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .split--flip .split__media {
    order: 2;
  }
}

.dishes {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.dishes__name {
  margin: .9rem 0 0;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

@media (min-width: 768px) {
  .dishes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.larder {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.larder__media {
  max-width: 420px;
}

.larder__text p:not(.eyebrow) {
  max-width: 56ch;
  color: var(--c-pine-dim);
}

@media (min-width: 768px) {
  .larder {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .larder__media {
    max-width: none;
  }
}

/* Reduced motion for this stage's components */
@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .lock-diagram__water,
  .lock-diagram__gate,
  .lock-diagram__boat {
    transition: none;
  }
}

/* ---------- Sections S8–S13 (stage 5) ---------- */

/* ---------- Strip: horizontal snap track with ‹ › (casino, spa on phones) ---------- */

.strip__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.strip__title {
  margin: 0;
}

.strip__nav {
  display: flex;
  gap: .5rem;
}

html:not(.js) .strip__nav {
  display: none;
}

.strip__prev,
.strip__next {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: border-color var(--t) var(--ease), opacity var(--t) var(--ease);
}

.strip__prev::before,
.strip__next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.strip__next::before {
  margin-left: -6px;
  transform: rotate(-135deg);
}

.strip__prev:hover,
.strip__next:hover {
  border-color: var(--text);
}

.strip__prev:disabled,
.strip__next:disabled {
  opacity: .35;
  cursor: default;
}

.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.strip__track::-webkit-scrollbar {
  display: none;
}

.strip__item {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .strip__track {
    grid-auto-columns: calc((100% - 1.5rem) / 2.2);
  }
}

@media (min-width: 1024px) {
  .strip__track {
    grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
  }
}

/* ---------- S8. Casino ---------- */

.casino__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}

.casino__title-row h2 {
  margin: 0;
}

.casino__body {
  display: grid;
  gap: 2rem;
  margin-block: clamp(2rem, 4vw, 3.5rem);
}

.casino__lead p:not(.lead) {
  max-width: 60ch;
  color: var(--text-dim);
}

.casino__rules {
  display: grid;
  gap: .9rem;
  align-content: start;
}

.casino__rules li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.casino__rules .chip {
  justify-self: start;
}

@media (min-width: 1024px) {
  .casino__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.play-safe {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
}

.play-safe p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.play-safe a {
  color: var(--text);
}

/* ---------- S9. Spa ---------- */

.spa__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.rhythm {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  counter-reset: rhythm;
}

.rhythm__step {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.rhythm__step:last-child {
  border-bottom: 1px solid var(--line);
}

/* heat → lake → rest */
.rhythm__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  left: 3.6rem;
  top: 1rem;
  color: var(--accent);
}

.rhythm__name {
  font-family: var(--ff-head);
  font-weight: 700;
}

.rhythm__text {
  color: var(--text-dim);
}

/* Phones: a strip. From 768px: a 2 × 2 grid with no controls. */
@media (min-width: 768px) {
  .spa__strip .strip__nav {
    display: none;
  }

  .spa__cards {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (max-width: 767px) {
  .spa__strip .strip__nav {
    justify-content: flex-end;
    margin-bottom: 1rem;
  }
}

.spa__cards .card__body {
  padding-block: .9rem 1rem;
}

.spa__cards .card__title {
  font-size: 1.1rem;
}

@media (min-width: 1024px) {
  .spa__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

/* ---------- S10. Gatherings ---------- */

.events__head {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.events__cards .chip {
  margin-bottom: .8rem;
}

.capacity {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.capacity__title {
  margin-bottom: 1rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.capacity__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.capacity__table caption {
  padding: .9rem 1rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  text-align: left;
  caption-side: bottom;
  border-top: 1px solid var(--line);
}

.capacity__table th,
.capacity__table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.capacity__table th:first-child {
  text-align: left;
}

.capacity__table thead th {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.capacity__table tbody th {
  font-weight: 500;
}

.capacity__table tbody tr:last-child > * {
  border-bottom: 0;
}

.events__cta {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.events__cta p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-dim);
}

.events__cta a:not(.btn) {
  overflow-wrap: anywhere;
}

/* ---------- S11. Region + map ---------- */

.region__map-row {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 1024px) {
  .region__map-row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
  }
}

.map {
  position: relative;
  margin: 0;
}

.map__frame {
  position: relative;
}

/* Without JS the labels are a plain list under the map */
.map__labels {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.map__label {
  padding: .25rem .6rem;
  background: var(--c-snow);
  color: var(--c-pine);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

.map__label--project {
  background: var(--c-rust);
  color: var(--c-snow);
}

/* JS copies data-x / data-y into --x / --y, then adds .is-ready: labels move onto the map */
.map.is-ready .map__labels {
  position: absolute;
  inset: 0;
  bottom: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  pointer-events: none;
}

.map.is-ready .map__label {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  max-width: 13rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(20,38,31,.2);
}

.map.is-ready .map__label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 10px;
  background: currentColor;
}

.map.is-ready .map__label--edge {
  transform: translate(-100%, -50%);
  white-space: nowrap;
}

.map.is-ready .map__label--edge::after {
  content: " →";
}

.map.is-ready .map__label--edge::before {
  display: none;
}

.map__caption {
  margin-top: .75rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  font-style: italic;
}

.getting-here p:not(.note) {
  color: var(--text-dim);
}

/* ---------- S12. Gallery: 4 / 2 / 1 columns, fixed 4:5 tiles ---------- */

.gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 480px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gallery__link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.gallery__frame {
  display: block;
  aspect-ratio: 4 / 5;
}

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--t) var(--ease);
}

.gallery__caption {
  display: block;
  margin-top: .6rem;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: transform var(--t) var(--ease);
}

.gallery__link:hover img,
.gallery__link:focus-visible img {
  filter: brightness(1.04);
}

.gallery__link:hover .gallery__caption,
.gallery__link:focus-visible .gallery__caption {
  transform: translateX(2px);
}

/* ---------- S13. FAQ ---------- */

.faq__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.faq__toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.15rem 2.5rem 1.15rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  right: .25rem;
  top: 1.15rem;
  width: 14px;
  height: 2px;
  margin-top: .7em;
  background: var(--accent);
  transition: transform var(--t) var(--ease);
}

.faq__toggle::after {
  transform: rotate(90deg);
}

.faq__toggle[aria-expanded="true"]::after {
  transform: rotate(0deg);
}

.faq__a {
  padding: 0 2.5rem 1.35rem 0;
}

.faq__a p {
  margin: 0;
  max-width: 64ch;
  color: var(--text-dim);
}

/* Collapsed only when JS is there to open it */
.js .faq__item:has(.faq__toggle[aria-expanded="false"]) .faq__a {
  display: none;
}

/* ---------- S13. CTA band ---------- */

.cta-band {
  --text: var(--c-snow);
  --focus: var(--c-snow);
  --btn-trail: var(--c-snow);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 42vw, 620px);
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--c-pine);
  color: var(--c-snow);
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,38,31,.9) 0%, rgba(20,38,31,.72) 45%, rgba(20,38,31,.35) 100%);
}

.cta-band h2 {
  max-width: 16ch;
  color: var(--c-snow);
}

.cta-band__sub {
  margin-bottom: 1.75rem;
  color: rgba(244,246,245,.85);
  font-size: 1.1rem;
}

/* ---------- Contact page ---------- */

.contact {
  padding-top: calc(var(--section-y) * .75);
}

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

/* Phones: intro, form, then the mail list. Desktop: intro and mails left, form right. */
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "intro panel" "mails panel";
    gap: 0 clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .contact__intro { grid-area: intro; }
  .contact__panel { grid-area: panel; }
  .contact__mails { grid-area: mails; margin-top: 2rem; }
}

.contact__intro h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
}

.contact__intro .lead {
  max-width: 54ch;
}

.contact__intro .muted {
  max-width: 54ch;
}

.contact__mails {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.5rem;
  align-self: start;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

.contact__mails dt {
  color: var(--text-dim);
}

.contact__mails dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 479px) {
  .contact__mails {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .contact__mails dd {
    margin-bottom: .6rem;
  }
}

.interest-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: .4rem;
}

.field__label {
  font-size: .85rem;
  font-weight: 600;
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid rgba(20,38,31,.45);
  border-radius: 0;
  background: var(--c-snow);
  color: var(--c-pine);
  font-size: 1rem;
}

.field__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--c-pine);
}

.field__select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314261F' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px 8px;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .75rem;
  font-size: .9rem;
  line-height: 1.55;
}

.field__check {
  width: 20px;
  height: 20px;
  margin: .15rem 0 0;
  accent-color: var(--c-rust-dk);
}

/* Error states (text nodes are created by JS in stage 6) */
.field__input[aria-invalid="true"] {
  border-color: var(--c-rust-dk);
  box-shadow: inset 3px 0 0 var(--c-rust-dk);
}

.field__error {
  margin: 0;
  color: var(--c-rust-dk);
  font-size: .85rem;
  font-weight: 500;
}

.interest-form__submit {
  justify-self: start;
}

.interest-form__hint,
.interest-form__fallback,
.interest-form__small,
.interest-form__noscript {
  margin: 0;
  color: var(--c-pine-dim);
  font-size: .85rem;
  line-height: 1.55;
}

.interest-form__noscript {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--c-rust-dk);
  color: var(--c-pine);
}

.interest-form__fallback {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}

.interest-form__small {
  margin-top: .5rem;
}


/* ---------- Elements created by JS (stage 6) ---------- */

.js-sentinel {
  position: absolute;
  left: 0;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

.js-sentinel--header {
  top: 80px;
  height: 1px;
}

.js-sentinel--top {
  top: 0;
  height: 100vh;
}

/* Hero pause / play */
.hero__pause {
  position: relative;
  width: 32px;
  height: 32px;
  margin-left: .35rem;
  padding: 0;
  border: 1px solid rgba(244,246,245,.45);
  background: transparent;
  color: var(--c-snow);
}

.hero__pause::before,
.hero__pause::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 3px;
  height: 10px;
  background: currentColor;
}

.hero__pause::before { left: 11px; }
.hero__pause::after { right: 11px; }

.hero__pause[aria-pressed="true"]::before {
  left: 12px;
  width: 0;
  height: 0;
  background: none;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.hero__pause[aria-pressed="true"]::after {
  display: none;
}

.hero__pause:hover {
  border-color: var(--c-snow);
}

/* Room panels crossfade */
.room.is-entering {
  animation: fade-in .5s var(--ease);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal on first view */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer toggles act as plain headings from 768px */
.site-footer__toggle:disabled {
  cursor: default;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 4.5rem clamp(1rem, 6vw, 5.5rem);
  background: rgba(20,38,31,.95);
  color: var(--c-snow);
  --focus: var(--c-snow);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  display: grid;
  gap: .9rem;
  justify-items: center;
  max-width: 100%;
  margin: 0;
  touch-action: pan-y;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  max-width: 60ch;
  font-size: var(--fs-small);
  text-align: center;
  color: rgba(244,246,245,.85);
}

.lightbox__counter {
  position: absolute;
  top: 1.35rem;
  left: clamp(1rem, 4vw, 2rem);
  margin: 0;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  color: rgba(244,246,245,.85);
}

.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(244,246,245,.4);
  background: rgba(20,38,31,.6);
  color: var(--c-snow);
}

.lightbox__btn:hover {
  border-color: var(--c-snow);
}

.lightbox__close {
  top: 1rem;
  right: clamp(1rem, 4vw, 2rem);
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  right: 13px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transform: rotate(45deg);
}

.lightbox__close::after {
  transform: rotate(-45deg);
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: -24px;
}

.lightbox__prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(.5rem, 2vw, 1.5rem); }

.lightbox__prev::before,
.lightbox__next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.lightbox__next::before {
  margin-left: -7px;
  transform: rotate(-135deg);
}

@media (max-width: 767px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    margin-top: 0;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-bottom));
  z-index: 40;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(244,246,245,.25);
  background: var(--c-pine);
  color: var(--c-snow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  --focus: var(--c-rust);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
}

.back-to-top::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -2px 0 0 -5px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-to-top:hover {
  background: var(--c-pine-2);
}

/* Form status line */
.interest-form__status {
  margin: 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--c-moss);
  background: rgba(244,246,245,.6);
  color: var(--c-pine);
  font-size: .9rem;
}

.field--check + .field__error {
  margin-top: -.6rem;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
}

.notfound__inner .lead {
  max-width: 48ch;
}

.notfound__inner .gate-divider {
  max-width: 640px;
  margin-inline: 0;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 2rem;
  font-size: var(--fs-small);
}

/* ---------- Legal pages (stage 9) ---------- */

.legal {
  padding-top: calc(var(--section-y) * .6);
}

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
}

@media (min-width: 1024px) {
  .legal__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    grid-template-areas: "head head" "toc body";
    align-items: start;
  }

  .legal__head { grid-area: head; }
  .legal__toc {
    grid-area: toc;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }
  .legal__body { grid-area: body; }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .4rem;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--text-dim);
}

.legal__head h1 {
  margin-bottom: .75rem;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
}

.legal__meta {
  margin-bottom: 1.5rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
}

.legal__head .lead {
  max-width: 62ch;
}

.legal__toc {
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--line);
  font-size: .9rem;
}

.legal__toc-title {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.legal__toc ol {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.45;
}

.legal__toc a {
  color: var(--text);
  text-decoration: none;
}

.legal__toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal__body {
  max-width: 68ch;
}

.legal__section + .legal__section {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.legal__section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.legal__num {
  color: var(--accent);
}

.legal__section h3 {
  margin: 1.5rem 0 .5rem;
  font-family: var(--ff-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
}

.legal__section ul {
  margin: 0 0 1.1em;
  padding-left: 1.2rem;
}

.legal__section li {
  margin-bottom: .45rem;
}

.legal__section li::marker {
  color: var(--accent);
}

.legal__section code {
  padding: .1em .35em;
  background: var(--c-frost);
  font-size: .88em;
  overflow-wrap: anywhere;
}

.legal__table code {
  white-space: nowrap;
  overflow-wrap: normal;
}

.legal__owner {
  font-weight: 500;
}

.legal__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .92rem;
}

.legal__table caption {
  padding: .75rem 1rem;
  color: var(--text-dim);
  font-size: var(--fs-small);
  text-align: left;
  caption-side: bottom;
  border-top: 1px solid var(--line);
}

.legal__table th,
.legal__table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal__table thead th {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.legal__table tbody tr:last-child > * {
  border-bottom: 0;
}

.legal .table-scroll {
  margin-bottom: 1.25rem;
}


/* ---------- Reduced motion (§2.5) ---------- */
/* Also switches off the hero crossfade, the season slider and hover effects added in later stages. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active,
  .card:hover .card__title,
  .card:focus-within .card__title {
    transform: none;
  }

  .card:hover .card__media img,
  .card:focus-within .card__media img {
    filter: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .room.is-entering {
    animation: none;
  }
}
