/* ==========================================================================
   Public site · « carnet de refuge »
   A warm editorial journal about the Lanaudière forest: photography first,
   large Fraunces display type, DM Mono metadata, hairline rules, film grain.
   Plain CSS, no build step. Every animation degrades with
   prefers-reduced-motion and without JavaScript (see `scripting` queries).
   ========================================================================== */

/* ---------- Fallback faces with matched metrics (limits layout shift on swap) ----------
   Measured in the browser against Fraunces Light (display sizes) and Manrope Regular. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); font-style: normal; size-adjust: 81.5%; ascent-override: 120%; descent-override: 32%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; size-adjust: 74.6%; ascent-override: 131%; descent-override: 35%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 101.9%; ascent-override: 105%; descent-override: 29.4%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F3EEE6;
  --paper-2: #EAE3D7;
  --paper-3: #E2D9CA;
  --card: #FBF8F3;
  --ink: #18221D;
  --ink-2: #4A544D;
  --ink-3: #5C665E;
  --pine: #223A30;
  --pine-2: #1B2F27;
  --moss: #7C8B6A;          /* decorative only on paper (3.2:1) */
  --moss-ink: #5E6D4F;      /* moss for small text/icons on paper (4.8:1) */
  --sage: #B4BFA2;          /* accents on pine / ink (6.4:1) */
  --ember: #C4572A;         /* brand accent: large type, rules, pins */
  --ember-cta: #B24C24;     /* CTA background, AA with paper text (4.6:1) */
  --ember-deep: #963E1C;    /* hover / error text */
  --lake: #3F6672;
  --line: rgba(24, 34, 29, .14);
  --line-strong: rgba(24, 34, 29, .28);
  --line-light: rgba(243, 238, 230, .18);
  --paper-dim: rgba(243, 238, 230, .78);

  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, .45rem + 2.4vw, 3rem);
  --container: 1440px;
  --header-h: 4.5rem;
  --section-pad: clamp(5rem, 2.6rem + 8vw, 11rem);
  --radius: 3px;
  --radius-lg: 8px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --focus: var(--ember-cta);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
/* lock the page behind modals; the reserved gutter avoids a layout jump */
html:has(dialog[open]:modal) { overflow: hidden; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
::selection { background: var(--pine); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon {
  width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.icon--up { transform: rotate(-90deg); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-pad); }

/* ---------- Brand mark ---------- */
.mark { display: block; flex: none; }
.mark__roof { fill: currentColor; }
.mark__door { fill: var(--mark-door, var(--paper)); transition: fill .35s; }
.mark__line { fill: var(--ember); }
.mark__reflect { fill: currentColor; opacity: .38; }

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem;
  font: 400 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.kicker > span { display: inline-flex; align-items: center; gap: .8rem; }
.kicker > span:first-child::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6; }
.kicker--light { color: var(--paper-dim); }
.hero__coords { gap: .6rem; }
.hero__coords::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); }

.index-label {
  display: flex; align-items: baseline; gap: .9rem; color: var(--ink-2);
  font: 400 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.index-label::after { content: ""; flex: 0 1 5rem; height: 1px; background: var(--line-strong); align-self: center; }
.index-label__num {
  font: italic 300 1.25rem/1 var(--serif); letter-spacing: 0; text-transform: none;
  color: var(--ember-cta); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.index-label__text { white-space: nowrap; }
.index-label__count { color: var(--ink-3); }
.index-label--light { color: var(--paper-dim); }
.index-label--light .index-label__num { color: var(--sage); }
.index-label--light::after { background: var(--line-light); }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 1.8rem + 4.5vw, 6.5rem); }
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); line-height: .98; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  max-width: 15ch; text-wrap: balance;
}
.section-title em, .notfound__title em {
  font-style: italic; color: var(--ember); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.section-title--light em { color: var(--sage); }

/* ---------- Links & buttons ---------- */
.link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link .icon { display: inline-block; vertical-align: -.12em; font-size: .95em; margin-left: .3em; transition: transform .4s var(--ease-out); }
.link .icon--lead { margin: 0 .45em 0 0; }
.link:hover .icon--lead { transform: none; }
.link:hover .icon:not(.icon--up) { transform: translate(2px, -2px); }
.link:hover .icon--up { transform: rotate(-90deg) translateX(3px); }

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 3.25rem; padding: .8rem 1.55rem;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .9375rem/1.2 var(--sans); letter-spacing: .005em; white-space: nowrap;
  transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn__icon { font-size: 1.05em; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(4px); }
.btn:hover .btn__icon--diag, .btn:focus-visible .btn__icon--diag { transform: translate(3px, -3px); }
.btn:hover .btn__icon--down, .btn:focus-visible .btn__icon--down { transform: translateY(3px); }
.btn:hover .btn__icon--back, .btn:focus-visible .btn__icon--back { transform: translateX(-4px); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--ember { --btn-bg: var(--ember-cta); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--glass {
  --btn-bg: rgba(243, 238, 230, .1); --btn-fg: var(--paper); --btn-bd: rgba(243, 238, 230, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (hover: hover) {
  .btn--ink:hover { --btn-bg: var(--pine); }
  .btn--ember:hover { --btn-bg: var(--ember-deep); }
  .btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
  .btn--light:hover { --btn-bg: #fff; }
  .btn--glass:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
}
.btn--ember:active { --btn-bg: var(--ember-deep); }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.icon-btn .icon { font-size: 1.2rem; }
.icon-btn .icon { transition: transform .5s var(--ease-out); }
.icon-btn--light { border-color: rgba(243, 238, 230, .35); color: var(--paper); }
@media (hover: hover) {
  .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .icon-btn:hover .icon { transform: rotate(90deg); }
  .icon-btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
}

/* ---------- Skip link, banners, admin pill, grain ---------- */
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  padding: .75rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: .9375rem;
  transform: translateY(-220%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

body.has-preview { --banner-h: 2.5rem; }
.preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  min-height: var(--banner-h); display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .35rem 1rem; background: var(--ember-deep); color: var(--paper);
  font: 500 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.preview-banner .icon { font-size: 1rem; }

.admin-pill {
  position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 .8125rem/1 var(--sans);
  box-shadow: 0 10px 28px -10px rgba(14, 20, 17, .55);
  transition: background-color .3s, transform .3s var(--ease-out);
}
.admin-pill:hover { background: var(--ember-cta); transform: translateY(-2px); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("../img/grain.svg") 0 0 / 240px 240px; opacity: .06;
}

/* ---------- Header ---------- */
/* The blur lives on the header itself: its view-transition-name makes it a
   backdrop root, so a blurred pseudo-element inside would only see the header. */
.site-header {
  position: fixed; top: var(--banner-h, 0px); left: 0; right: 0; z-index: 50;
  height: var(--header-h); color: var(--ink);
  background-color: rgba(243, 238, 230, .86);
  -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  transition: transform .6s var(--ease-out), color .4s, background-color .4s, box-shadow .4s;
  view-transition-name: site-header;
}
.site-header.is-hidden { transform: translateY(calc(-100% - var(--banner-h, 0px) - 2px)); }
.site-header__inner {
  position: relative; height: 100%;
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.5rem);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem; margin-right: auto;
  font: 400 1.375rem/1 var(--serif); letter-spacing: -.015em; white-space: nowrap;
  font-variation-settings: "SOFT" 50;
}
.wordmark__mark { width: 1.8rem; height: 1.8rem; margin-top: -2px; }
.site-nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.site-nav__link, .lang-switch, .menu-toggle {
  font: 400 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.site-nav__link {
  display: inline-block; padding-block: .6rem;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - .3rem) / 0 1px;
  transition: background-size .5s var(--ease-out);
}
.site-nav__link:hover { background-size: 100% 1px; }
.site-header__actions { display: flex; align-items: center; gap: .9rem; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.5rem; padding-inline: .7rem;
  border: 1px solid currentColor; border-radius: 999px; font-weight: 500;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: background-color .3s, color .3s, border-color .3s;
}
.lang-switch:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-toggle { display: none; align-items: center; gap: .65rem; height: 2.75rem; padding-inline: .25rem; }
.menu-toggle__lines { position: relative; width: 1.35rem; height: .5rem; border-block: 1.5px solid currentColor; }

/* transparent over the hero while scripting is on (JS adds .is-solid after the hero) */
@media (scripting: enabled) {
  .site-header[data-overlay]:not(.is-solid) { color: var(--paper); --mark-door: rgba(16, 24, 20, .72); --focus: var(--paper); }
  .site-header[data-overlay]:not(.is-solid) { background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header[data-overlay]:not(.is-solid) .lang-switch:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
}

/* ---------- Mobile menu (dialog) ---------- */
.menu {
  width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--pine); color: var(--paper); overflow: auto;
  --focus: var(--paper); --mark-door: var(--pine);
}
.menu[open] { display: block; }
.menu::backdrop { background: var(--pine); }
.menu__inner {
  position: relative; min-height: 100%; display: flex; flex-direction: column;
  padding: 0 var(--gutter) calc(2rem + env(safe-area-inset-bottom));
}
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.menu__top .wordmark { margin: 0; }
.menu__nav ol { display: grid; margin: clamp(1.5rem, 6vh, 3.5rem) 0 0; padding: 0; list-style: none; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: .4rem;
  font: 300 clamp(2.4rem, 9vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.025em;
}
.menu__num { font: .75rem var(--mono); letter-spacing: .14em; color: var(--sage); min-width: 1.6rem; }
.menu__chalets { margin-top: auto; padding-top: 2.5rem; }
.menu__chalets li { border-top: 1px solid var(--line-light); }
.menu__chalets li:last-child { border-bottom: 1px solid var(--line-light); }
.menu__chalets a { display: grid; gap: .15rem; padding-block: .95rem; }
.menu__chalet-name { font: 400 1.3rem/1.2 var(--serif); }
.menu__chalet-line { font-size: .875rem; color: var(--paper-dim); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1.5rem; font-size: .9375rem; }
.lang-switch--full { display: inline-flex; gap: .55rem; height: 2.75rem; padding-inline: 1.1rem; font-size: .75rem; }
.lang-switch--full .icon { font-size: 1rem; }
.lang-switch--full:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Topographic contour layer (mask over currentColor) ---------- */
.topo {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: currentColor;
  -webkit-mask: url("../img/contours.svg") var(--topo-pos, 50% 50%) / var(--topo-size, cover) no-repeat;
  mask: url("../img/contours.svg") var(--topo-pos, 50% 50%) / var(--topo-size, cover) no-repeat;
}
.topo--hero { color: var(--sage); opacity: .16; }
.topo--card { color: var(--moss); opacity: .35; --topo-size: 1100px auto; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  min-height: max(38rem, 100svh);
  color: var(--paper); background: var(--pine); overflow: hidden;
  --focus: var(--paper);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s var(--ease-in-out); overflow: hidden; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 45%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 18, 15, .58) 0%, rgba(12, 18, 15, .14) 20%, rgba(12, 18, 15, 0) 36%),
    linear-gradient(0deg, rgba(12, 18, 15, .86) 0%, rgba(12, 18, 15, .55) 28%, rgba(12, 18, 15, .12) 58%, rgba(12, 18, 15, 0) 72%),
    linear-gradient(90deg, rgba(12, 18, 15, .38) 0%, rgba(12, 18, 15, 0) 55%);
}
.hero__content {
  align-self: end; display: grid; gap: clamp(1.25rem, 2.6vh, 2.25rem);
  padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2rem, 5vh, 3.75rem);
}
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 1.2rem + 8.8vw, 11rem); line-height: .9; letter-spacing: -.04em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  max-width: 11ch; text-wrap: balance;
}
.hero__lower { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.hero__text { max-width: 36ch; font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem); line-height: 1.55; color: rgba(243, 238, 230, .9); }
.hero__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem; border-top: 1px solid rgba(243, 238, 230, .22);
  font: .6875rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.hero--plain .topo--hero { opacity: .22; }

/* masked words (titles slide up on load) */
.mw {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .08em .06em .18em; margin: -.08em -.06em -.18em;
}
.mw__in { display: inline-block; }
.mw__in.is-accent { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; margin-left: .06em; }

/* slideshow controls */
.slides-ui { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.slides-ui__toggle {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid rgba(243, 238, 230, .4); border-radius: 50%; color: var(--paper);
  transition: background-color .3s, color .3s;
}
.slides-ui__toggle:hover { background: var(--paper); color: var(--ink); }
.slides-ui__toggle svg { width: .8rem; height: .8rem; fill: currentColor; }
.slides-ui__play, .hero.is-user-paused .slides-ui__pause { display: none; }
.hero.is-user-paused .slides-ui__play { display: block; }
.slides-ui__count { font-variant-numeric: tabular-nums; }
.slides-ui__bars { display: flex; gap: .35rem; }
.slides-ui__bar { width: 2.25rem; height: 2px; background: rgba(243, 238, 230, .28); overflow: hidden; }
.slides-ui__bar > span { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: 0 50%; }
.slides-ui__name { color: var(--paper-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slides-ui--single .slides-ui__name { color: var(--paper-dim); }
@keyframes bar-fill { to { transform: scaleX(1); } }

.scroll-cue { display: inline-flex; align-items: center; gap: .9rem; margin-left: auto; padding-block: .5rem; }
.scroll-cue__line { position: relative; width: 1px; height: 2.75rem; overflow: hidden; background: rgba(243, 238, 230, .28); }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(-100%); }

/* ---------- Intro ---------- */
.intro { padding-bottom: calc(var(--section-pad) * .55); }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.intro__aside { grid-column: 1 / span 3; display: grid; gap: 1.5rem; align-content: start; padding-top: .6rem; }
.intro__coords { display: inline-flex; align-items: center; gap: .55rem; font: .75rem var(--mono); letter-spacing: .12em; color: var(--ink-2); }
.intro__coords .icon { color: var(--ember); }
.intro__body { grid-column: 4 / -1; }
.intro__title {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
  font: italic 300 clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem)/1.15 var(--serif);
  color: var(--moss-ink); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.intro__lead {
  font: 300 clamp(1.75rem, .9rem + 2.8vw, 3.85rem)/1.12 var(--serif); letter-spacing: -.022em;
  font-variation-settings: "SOFT" 30; text-wrap: pretty; max-width: 26ch;
}
.intro__lead p + p { margin-top: .6em; }
.intro__lead .w { transition: opacity .3s linear; }
.intro__lead.is-split .w { opacity: clamp(.16, calc((var(--p, 0) * (var(--n, 1) + 10) - var(--wi, 0)) / 10), 1); }

/* ---------- Chalet features (home) ---------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.25rem; align-items: center; }
.feature + .feature { margin-top: clamp(6rem, 2.5rem + 10vw, 13rem); }
.feature__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--paper-3);
  view-transition-class: photo;
}
.feature--a .feature__media { grid-column: 1 / span 7; }
.feature--a .feature__body { grid-column: 9 / span 4; }
.feature--b .feature__media { grid-column: 6 / span 7; grid-row: 1; }
.feature--b .feature__body { grid-column: 1 / span 4; grid-row: 1; }
.feature__img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; transition: scale 1.6s var(--ease-out); }
.feature__media:hover .feature__img { scale: 1.035; }
.feature__plate {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .5rem .8rem; border-radius: 999px;
  font: .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  background: rgba(14, 20, 17, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.feature__index { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.75rem; }
.feature__num {
  font: 200 clamp(3.75rem, 2.6rem + 3.4vw, 6.5rem)/.78 var(--serif); letter-spacing: -.05em;
  color: var(--moss); font-variation-settings: "SOFT" 100;
}
.feature__total { font: .75rem var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.feature__name { font: 300 clamp(2.6rem, 1.7rem + 2.8vw, 4.5rem)/.96 var(--serif); letter-spacing: -.035em; font-variation-settings: "SOFT" 50; }
.feature__name a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 94% / 0 1px;
  transition: background-size .7s var(--ease-out);
}
.feature__name a:hover { background-size: 100% 1px; }
.feature__headline {
  margin-top: 1rem; font: italic 300 clamp(1.2rem, 1rem + .6vw, 1.55rem)/1.3 var(--serif);
  color: var(--ink-2); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.feature__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: 1.4rem;
  font: .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.feature__meta .icon { color: var(--ember); margin-right: -.4rem; }
.feature__coords { color: var(--ink-3); }

.stats { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.stat { display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; line-height: 1.3; }
.stat .icon { font-size: 1.15rem; color: var(--moss-ink); stroke-width: 1.6; }
.stats--feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.75rem; padding-block: 1.15rem; border-block: 1px solid var(--line); }
.stats--light .stat { color: var(--paper); }
.stats--light .icon { color: var(--sage); }
.stats--compact { margin-top: 1.25rem; }

.highlights { display: grid; gap: .65rem; margin-top: 1.5rem; }
.highlights li { display: flex; align-items: flex-start; gap: .85rem; font-size: .9375rem; line-height: 1.45; }
.highlights .icon { margin-top: .12em; font-size: 1.1rem; color: var(--ember); stroke-width: 1.6; }

.feature__deal { display: grid; gap: 1.4rem; margin-top: 2.1rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; }
.price__label { flex-basis: 100%; font: .6875rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.price__amount { font: 400 2.1rem/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "SOFT" 50; }
.price__unit { font-size: .9375rem; color: var(--ink-2); }
.feature__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.feature__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 2.1rem; }
.feature__thumb, .feature__more { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.feature__thumb img, .feature__more img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.feature__more::after { content: ""; position: absolute; inset: 0; background: rgba(24, 34, 29, .66); transition: background-color .4s; }
.feature__more:hover::after { background: rgba(24, 34, 29, .78); }
.feature__more:hover img { scale: 1.06; }
.feature__more-label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--paper); }
.feature__more-num { font: 300 clamp(1.5rem, 1.15rem + .9vw, 2rem)/1 var(--serif); letter-spacing: -.02em; }
.feature__more-label .icon { font-size: 1.05rem; color: var(--paper-dim); }
.empty-note { display: flex; align-items: center; gap: 1rem; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); font: italic 300 1.5rem/1.3 var(--serif); color: var(--ink-2); }
.empty-note .icon { font-size: 1.75rem; color: var(--moss); }

/* ---------- Region (pine) ---------- */
.section--pine { background: var(--pine); color: var(--paper); --focus: var(--paper); }
.region { position: relative; isolation: isolate; overflow: hidden; }
.topo--region { color: var(--sage); opacity: .09; }
.region__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(3.5rem, 6vw, 6rem); align-items: center; }
.region__intro { grid-column: 1 / span 6; display: grid; gap: 1.75rem; align-content: center; }
.region__intro .section-title { max-width: 13ch; }
.region__text { max-width: 44ch; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }
.region__plate {
  grid-column: 8 / span 5; position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5; border: 1px solid var(--line-light); border-radius: var(--radius);
  background: radial-gradient(120% 80% at 50% 45%, rgba(180, 191, 162, .1), rgba(10, 18, 14, .3)); color: var(--sage);
}
.topo--plate { opacity: .5; --topo-size: 1500px auto; --topo-pos: 36% 34%; }
.region__compass {
  position: absolute; top: 1.25rem; right: 1.25rem;
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid var(--line-light); border-radius: 50%;
  font: 500 .6875rem/1 var(--mono); color: var(--paper);
}
.region__compass::before { content: ""; position: absolute; top: -7px; left: 50%; width: 1px; height: 14px; background: var(--ember); }
.region__pin { position: absolute; left: 50%; top: 47%; display: flex; align-items: center; gap: .85rem; }
.region__pin-dot { position: relative; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(196, 87, 42, .22); }
.region__pin-dot::after, .map__pin::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ember); opacity: 0; }
.region__pin-label { font: italic 300 clamp(1.4rem, 1.1rem + .8vw, 1.85rem)/1 var(--serif); color: var(--paper); font-variation-settings: "SOFT" 100, "WONK" 1; }
.region__plate-coords, .region__plate-legend {
  position: absolute; bottom: 1.25rem;
  font: .6875rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim);
}
.region__plate-coords { left: 1.25rem; }
.region__plate-legend { right: 1.25rem; }

.activities { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.activity { display: grid; align-content: start; gap: 1.1rem; padding: 1.75rem 1.5rem 2.4rem 0; border-bottom: 1px solid var(--line-light); }
.activity__num { font: .6875rem var(--mono); letter-spacing: .14em; color: rgba(243, 238, 230, .64); }
.activity__icon { font-size: 1.85rem; color: var(--sage); stroke-width: 1.35; }
.activity__label { max-width: 22ch; font-size: 1.0625rem; line-height: 1.4; }
@media (min-width: 960px) {
  .activity:not(:nth-child(4n + 1)) { padding-left: 1.5rem; border-left: 1px solid var(--line-light); }
}

/* ---------- Booking steps (home) ---------- */
.section-head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.section-head--split .index-label { grid-column: 1 / -1; }
.section-head--split .section-title { grid-column: 1 / span 8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 2.25rem 2.5rem 2.75rem 0; }
.step + .step { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.step__num {
  display: block; font: italic 300 clamp(3.25rem, 2.2rem + 3.2vw, 5.75rem)/1 var(--serif);
  letter-spacing: -.03em; color: var(--ember); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.step__title { margin: 1.5rem 0 .75rem; font: 400 clamp(1.6rem, 1.3rem + .9vw, 2.15rem)/1.1 var(--serif); letter-spacing: -.02em; }
.step p { max-width: 32ch; color: var(--ink-2); }
.steps-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.note {
  grid-column: 1 / span 6; display: flex; gap: 1rem; padding: 1.35rem 1.5rem;
  background: var(--paper-2); border-radius: var(--radius-lg); font-size: .9375rem; color: var(--ink-2);
}
.note__icon { margin-top: .15em; font-size: 1.3rem; color: var(--moss-ink); }
.quick-book { grid-column: 8 / span 5; }
.quick-book__label { margin-bottom: 1rem; font: .6875rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.quick-book__list li { border-bottom: 1px solid var(--line); }
.quick-book__list li:first-child { border-top: 1px solid var(--line); }
.quick-book__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.05rem;
  font: 300 clamp(1.4rem, 1.2rem + .6vw, 1.85rem)/1.15 var(--serif); letter-spacing: -.015em;
  transition: color .3s, padding .5s var(--ease-out);
}
.quick-book__link:hover { color: var(--ember-cta); padding-left: .6rem; }
.quick-book__link:hover .btn__icon--diag { transform: translate(3px, -3px); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(4.5rem, 3rem + 6vw, 9rem) 0 calc(1.75rem + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper); --focus: var(--paper); --mark-door: var(--ink);
}
.topo--footer { color: var(--sage); opacity: .07; --topo-pos: 50% 100%; }
.site-footer__head { display: grid; gap: 1.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-light); }
.site-footer__sign {
  font: 300 clamp(3.25rem, .6rem + 11vw, 12.5rem)/.86 var(--serif); letter-spacing: -.05em;
  font-variation-settings: "SOFT" 50; white-space: nowrap;
}
.site-footer__sign em { font-style: italic; color: var(--sage); font-variation-settings: "SOFT" 100, "WONK" 1; }
.site-footer__tagline { max-width: 40ch; font: italic 300 clamp(1.125rem, 1rem + .5vw, 1.4rem)/1.4 var(--serif); color: var(--paper-dim); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.75rem var(--gutter); padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.site-footer__title { margin-bottom: 1.25rem; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.site-footer__list { display: grid; gap: .8rem; }
.site-footer__list .icon { font-size: 1rem; }
.site-footer__citq { display: block; margin-top: .2rem; font: .6875rem/1.3 var(--mono); letter-spacing: .1em; color: rgba(243, 238, 230, .64); }
.site-footer__col--manager p { max-width: 24ch; text-wrap: balance; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-light);
  font: .6875rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 238, 230, .66);
}
.site-footer__top-link { color: var(--paper); }

/* ---------- Chalet hero ---------- */
.chalet-hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  min-height: max(36rem, 94svh);
  color: var(--paper); background: var(--pine); overflow: hidden;
  --focus: var(--paper);
}
.chalet-hero__frame { position: absolute; inset: 0; z-index: -2; overflow: hidden; view-transition-class: photo; }
.chalet-hero__media { position: absolute; inset: 0; }
.chalet-hero__img { width: 100%; height: 100%; object-fit: cover; }
.chalet-hero__content { align-self: end; display: grid; justify-items: start; gap: 1.25rem; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(1.75rem, 4vh, 3rem); }
.back-link {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .5rem;
  font: .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim);
  transition: color .3s;
}
.back-link:hover { color: var(--paper); }
.back-link__icon { transition: transform .45s var(--ease-out); }
.back-link:hover .back-link__icon { transform: translateX(-4px); }
.chalet-hero__title {
  font: 300 clamp(3.25rem, 1.3rem + 7.6vw, 10rem)/.9 var(--serif); letter-spacing: -.045em;
  font-variation-settings: "SOFT" 50; text-wrap: balance;
}
.chalet-hero__headline {
  max-width: 32ch; font: italic 300 clamp(1.25rem, 1rem + .9vw, 1.9rem)/1.3 var(--serif);
  color: rgba(243, 238, 230, .92); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.chalet-hero__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.25rem; border-top: 1px solid rgba(243, 238, 230, .22);
}
.chalet-hero--plain .topo--hero { opacity: .2; }

/* ---------- Mosaic ---------- */
.mosaic {
  position: relative; display: grid; gap: .5rem; margin-top: .5rem;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(22rem, 36vw, 42rem);
}
.mosaic__tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.mosaic__tile:first-child { grid-row: span 2; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.3s var(--ease-out); }
.mosaic__tile:hover img { scale: 1.045; }
.mosaic__tile::after { content: ""; position: absolute; inset: 0; background: rgba(14, 20, 17, 0); transition: background-color .4s; }
.mosaic__tile:hover::after { background: rgba(14, 20, 17, .12); }
.mosaic__all { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; box-shadow: 0 10px 30px -12px rgba(14, 20, 17, .5); }
.mosaic--1 { grid-template-columns: 1fr; }
.mosaic--2, .mosaic--3 { grid-template-columns: 2fr 1fr; }
.mosaic--2 .mosaic__tile:nth-child(2) { grid-row: span 2; }
.mosaic--4 .mosaic__tile:nth-child(4) { grid-column: span 2; }

/* ---------- Chalet layout ---------- */
.chalet-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(20rem, 27vw, 25.5rem);
  column-gap: clamp(3rem, 1.5rem + 5vw, 7.5rem); align-items: start;
  padding-block: clamp(3.5rem, 2rem + 5vw, 7rem) clamp(4rem, 2rem + 6vw, 8rem);
}
.chalet-main { min-width: 0; counter-reset: block; }
.chalet-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }

.chalet-block { counter-increment: block; padding-block: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.chalet-block:first-child { padding-top: 0; border-top: 0; }
.chalet-block__num::before { content: counter(block, decimal-leading-zero); }
.chalet-block__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.chalet-block__num { min-width: 1.9rem; font: italic 300 1.25rem/1 var(--serif); color: var(--ember-cta); font-variation-settings: "SOFT" 100, "WONK" 1; }
.chalet-block__title { font: 300 clamp(1.9rem, 1.35rem + 1.7vw, 2.85rem)/1.04 var(--serif); letter-spacing: -.028em; font-variation-settings: "SOFT" 50; }
.chalet-block--intro .index-label { margin-bottom: 1.5rem; }

/* wide screens: editorial two-column blocks with sticky headings */
@media (min-width: 1280px) {
  .chalet-block { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .chalet-block > * { grid-column: 2; }
  .chalet-block > .chalet-block__head, .chalet-block > .index-label {
    grid-column: 1; grid-row: 1 / span 20; position: sticky; top: calc(var(--header-h) + 1.5rem);
    flex-direction: column; align-items: flex-start; gap: .8rem; margin: 0;
  }
  .chalet-block > .index-label::after { display: none; }
  .chalet-block__title { font-size: clamp(1.8rem, 1rem + 1vw, 2.35rem); }
}

/* ---------- Prose (Markdown output) ---------- */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose em { font-style: italic; }
.prose a { color: var(--lake); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .25s; }
.prose a:hover { color: var(--ink); }
.prose h3 {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.4em;
  font: 500 .75rem/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.prose h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prose > h3:first-child { margin-top: 0; }
.prose h3 + * { margin-top: 1.1rem; }
.prose h4, .prose h5 { margin-top: 1.8em; font: 650 1rem/1.4 var(--sans); color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: .55rem; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; }
.prose li > p { margin: 0; }
.prose ul > li::before { content: "–"; position: absolute; left: .1rem; top: 0; color: var(--ember); font-family: var(--serif); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; padding-left: 2rem; }
.prose ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .32em; font: .6875rem/1.4 var(--mono); color: var(--ember-cta); }
.prose li.has-emoji { padding-left: 2.15rem; }
.prose li.has-emoji::before { content: none; }
.prose .li-emoji {
  position: absolute; left: 0; top: 0; width: 1.55rem; text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.02rem;
}
@media (min-width: 720px) {
  .prose ul:has(> li:nth-child(7)) { display: block; columns: 2; column-gap: 2.5rem; }
  .prose ul:has(> li:nth-child(7)) > li { break-inside: avoid; margin-bottom: .55rem; }
}
.prose blockquote {
  position: relative; padding: 1.15rem 1.4rem 1.15rem 3.3rem;
  background: var(--paper-2); border-left: 2px solid var(--ember); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--ink); font-size: .96875rem; line-height: 1.6;
}
.prose blockquote::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.32rem; width: 1.2rem; height: 1.2rem; background: var(--ember-cta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose blockquote p + p { margin-top: .5em; }
.prose--lead { max-width: 40rem; }
.prose--lead > p:first-child {
  font: 300 clamp(1.5rem, 1.15rem + 1.25vw, 2.2rem)/1.27 var(--serif); letter-spacing: -.015em;
  color: var(--ink); font-variation-settings: "SOFT" 30;
}
.prose--light { color: rgba(243, 238, 230, .84); }
.prose--light strong, .prose--light a { color: var(--paper); }

/* ---------- Highlights, amenities, facts ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.hl {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  line-height: 1.35; transition: border-color .3s, transform .4s var(--ease-out);
}
.hl:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.hl__icon { font-size: 1.55rem; color: var(--ember); stroke-width: 1.45; }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); column-gap: 2.25rem; }
.amenity { display: flex; align-items: center; gap: .9rem; padding-block: .95rem; border-bottom: 1px solid var(--line); }
.amenity__icon { font-size: 1.3rem; color: var(--moss-ink); stroke-width: 1.5; }
.amenity-grid--compact .amenity { padding-block: .7rem; font-size: .9375rem; }
.amenities-more { margin-top: 2rem; justify-self: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .75rem; }
.fact { display: flex; align-items: flex-start; gap: .9rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fact__icon { margin-top: .15em; font-size: 1.3rem; color: var(--moss-ink); stroke-width: 1.5; }
.fact__text { display: grid; gap: .25rem; font-weight: 600; line-height: 1.35; }
.fact__text small { font-size: .8125rem; font-weight: 400; color: var(--ink-2); }

/* ---------- Location / map ---------- */
.location-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.4rem; }
.location-line .icon { color: var(--ember); }
.location-line__coords { font: .75rem var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.map {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(90% 70% at 50% 50%, var(--card), var(--paper-2)); color: var(--moss);
}
.topo--map { opacity: .55; --topo-size: 1250px auto; --topo-pos: 44% 38%; }
.map__pin { position: absolute; left: 50%; top: 46%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 6px rgba(196, 87, 42, .2); }
.map__consent {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: 2.5rem 1.25rem 1.25rem; background: linear-gradient(0deg, rgba(234, 227, 215, .97) 40%, rgba(234, 227, 215, 0));
}
.map__note { font-size: .8125rem; color: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded > :not(iframe) { display: none; }
.map-links { margin-top: 1rem; font-size: .9375rem; font-weight: 600; }

/* ---------- Booking card ---------- */
.book-card {
  display: grid; gap: 1.15rem; padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 60px -36px rgba(24, 34, 29, .45);
}
.book-card__head { display: grid; gap: .65rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.book-card__title { font: 500 .75rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.price--card .price__amount { font-size: clamp(2.25rem, 2rem + .6vw, 2.75rem); }
.book-form { display: grid; gap: .75rem; }
.book-form__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.book-form__dates .field + .field { border-left: 1px solid var(--line-strong); }
.field { position: relative; display: grid; gap: .15rem; padding: .7rem .95rem .6rem; background: #fff; transition: box-shadow .2s, background-color .2s; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.field.is-invalid { box-shadow: inset 0 0 0 2px var(--ember-deep); }
.field__label { font: 500 .625rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field__input {
  width: 100%; min-height: 1.85rem; padding: 0; border: 0; background: transparent;
  font: 600 1rem/1.4 var(--sans); color: var(--ink); text-align: left;
  -webkit-appearance: none; appearance: none; color-scheme: light;
}
.field__input:focus-visible { outline: none; }
.field__input::-webkit-date-and-time-value { text-align: left; }
.field__input::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; margin-left: 0; }
.field--select { border: 1px solid var(--line-strong); border-radius: 10px; }
.field--select .field__input { padding-right: 1.75rem; cursor: pointer; }
.field__chevron { position: absolute; right: .95rem; bottom: .95rem; color: var(--ink-2); pointer-events: none; }
.book-form__status { min-height: 1.5em; font-size: .875rem; color: var(--ink-2); }
.book-form__status.has-nights { color: var(--ink); font-weight: 650; }
.book-form__error { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--ember-deep); }
.book-card__note { display: flex; gap: .65rem; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.book-card__note .icon { margin-top: .22em; color: var(--moss-ink); }
.book-card__listing { justify-self: start; font-size: .875rem; font-weight: 650; }
.book-card__fine { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.55; color: var(--ink-3); }

/* ---------- Mobile booking bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, .92); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
  transition: transform .55s var(--ease-out);
}
.book-bar.is-hidden { transform: translateY(115%); }
.book-bar__info { display: grid; line-height: 1.2; min-width: 0; }
.book-bar__label { font: .625rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.book-bar__price { font-size: .9375rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-bar__price strong { font: 400 1.4rem/1.1 var(--serif); color: var(--ink); }
.book-bar .btn { min-height: 2.9rem; padding-inline: 1.3rem; }

/* ---------- Other chalets / cards ---------- */
.others { background: var(--paper-2); }
.others__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(2.5rem, 4vw, 4rem) var(--gutter); }
.card { display: grid; gap: 1.6rem; align-content: start; }
.card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--paper-3); view-transition-class: photo; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); }
.card:hover .card__media img { scale: 1.045; }
.card__meta { font: .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.card__name { margin-top: .6rem; font: 300 clamp(2.1rem, 1.5rem + 1.8vw, 3.4rem)/1 var(--serif); letter-spacing: -.03em; font-variation-settings: "SOFT" 50; }
.card__name a { background: linear-gradient(currentColor, currentColor) no-repeat 0 94% / 0 1px; transition: background-size .7s var(--ease-out); }
.card__name a:hover { background-size: 100% 1px; }
.card__name em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.card__headline { margin-top: .7rem; font: italic 300 1.3rem/1.35 var(--serif); color: var(--ink-2); font-variation-settings: "SOFT" 100, "WONK" 1; }
.card__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.others__grid--single .card { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.others__grid--single .card__media { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.others__grid--single .card__body { grid-column: 9 / span 4; }

/* ---------- Dialogs: shared ---------- */
dialog { color: inherit; }
dialog::backdrop { background: rgba(14, 20, 17, .6); }

/* amenities sheet */
.sheet {
  width: min(100% - 2rem, 48rem); max-width: none; max-height: min(100% - 3rem, 54rem);
  margin: auto; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(10, 15, 12, .6);
}
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(14, 20, 17, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__panel { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); }
.sheet__title { font: 300 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.02em; }
.sheet__count { font: .75rem var(--mono); letter-spacing: .1em; color: var(--ink-3); vertical-align: super; }
.sheet__body { overflow: auto; padding: .25rem 1.5rem 2rem; overscroll-behavior: contain; }
.amenity-group__title { margin: 1.75rem 0 .25rem; font: 500 .75rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* full photo gallery */
.gallery {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
.gallery[open] { display: block; }
.gallery::backdrop { background: var(--paper); }
.gallery__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter); background: rgba(243, 238, 230, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.gallery__kicker { font: .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.gallery__title { font: 300 clamp(1.5rem, 1.2rem + 1.1vw, 2.35rem)/1.05 var(--serif); letter-spacing: -.025em; }
.gallery__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; padding: clamp(1rem, 2vw, 2rem) var(--gutter) 4rem; }
.gallery__item { grid-column: span 2; }
.gallery__item:nth-child(5n + 1), .gallery__item:nth-child(5n + 2) { grid-column: span 3; }
.gallery__item a { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--paper-3); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease-out); }
.gallery__item a:hover img { scale: 1.04; }

/* lightbox */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0D1310; color: var(--paper); overflow: hidden; --focus: var(--paper);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox::backdrop { background: #0D1310; }
.lightbox__top { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; padding: .75rem var(--gutter); }
.lightbox__count { min-width: 5.5rem; font: .75rem var(--mono); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--paper-dim); }
.lightbox__name { flex: 1; text-align: center; font: italic 300 1.15rem/1.2 var(--serif); color: var(--paper-dim); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__top .icon-btn { margin-left: auto; }
.lightbox__stage {
  position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); /* definite track so the image's max-height: 100% resolves */
  padding: 0 clamp(.5rem, 7vw, 7rem) clamp(1rem, 4vh, 3rem);
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__img.is-dragging { transition: none; }
.lightbox__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid rgba(243, 238, 230, .3); color: var(--paper); background: rgba(13, 19, 16, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s, color .3s, border-color .3s;
}
.lightbox__nav .icon { font-size: 1.25rem; transition: transform .4s var(--ease-out); }
.lightbox__nav:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__nav--prev:hover .icon { transform: translateX(-3px); }
.lightbox__nav--next:hover .icon { transform: translateX(3px); }

/* ---------- 404 ---------- */
.notfound {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; min-height: max(36rem, 90svh);
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}
.topo--notfound { color: var(--moss); opacity: .2; }
.notfound__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: center; }
.notfound__code {
  grid-column: 1 / span 6; display: flex; align-items: center;
  font: 200 clamp(7rem, 2.5rem + 19vw, 21rem)/.8 var(--serif); letter-spacing: -.06em; color: var(--ink);
  font-variation-settings: "SOFT" 100;
}
.notfound__zero {
  display: inline-grid; place-items: center; width: .74em; height: .74em; margin-inline: .05em;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper);
}
.notfound__mark { width: 50%; height: 50%; color: var(--pine); --mark-door: var(--paper); }
.notfound__text { grid-column: 8 / span 5; display: grid; justify-items: start; gap: 1.5rem; }
.notfound__text .kicker { color: var(--ink-2); }
.notfound__title { font: 300 clamp(2.6rem, 1.6rem + 3.4vw, 4.75rem)/1 var(--serif); letter-spacing: -.035em; font-variation-settings: "SOFT" 50; }
.notfound__lead { max-width: 34ch; font-size: 1.125rem; color: var(--ink-2); }

/* ==========================================================================
   Motion (only when the visitor has not asked for reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* titles: words slide up from their masks */
  .mw__in { animation: mask-up 1.3s var(--ease-out) both; animation-delay: calc(.2s + var(--i, 0) * .085s); }
  .hero__kicker, .chalet-hero .kicker, .chalet-hero .back-link { animation: fade-up 1.1s var(--ease-out) .1s both; }
  .hero__lower, .chalet-hero__headline { animation: fade-up 1.2s var(--ease-out) .7s both; }
  .hero__bar, .chalet-hero__bar { animation: fade-in 1.4s var(--ease-out) .95s both; }

  /* slow Ken Burns on the active hero slide; keeps running while it fades out */
  .hero__slide.is-active img, .hero__slide.is-leaving img { animation: kenburns 18s linear both; }
  .hero__slide:nth-child(even).is-active img, .hero__slide:nth-child(even).is-leaving img { animation-name: kenburns-b; }
  .hero.is-paused .hero__slide img { animation-play-state: paused; }
  /* the progress bar also drives the slideshow timer (JS listens for animationend) */
  .slides-ui__bar.is-active > span { animation: bar-fill var(--slide-ms, 7000ms) linear forwards; }
  .hero.is-paused .slides-ui__bar.is-active > span { animation-play-state: paused; }
  .chalet-hero__img { animation: settle 2.6s var(--ease-out) both; }

  .scroll-cue__line::after { animation: cue 2.6s var(--ease-in-out) infinite; }
  .region__pin-dot::after, .map__pin::after { animation: ping 2.8s var(--ease-out) infinite; }

  /* dialogs fade (and the sheet rises) */
  @media (scripting: enabled) {
    dialog { opacity: 0; transition: opacity .45s var(--ease-out), overlay .45s allow-discrete, display .45s allow-discrete; }
    dialog[open] { opacity: 1; }
    dialog::backdrop { opacity: 0; transition: opacity .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
    dialog[open]::backdrop { opacity: 1; }
    @starting-style {
      dialog[open] { opacity: 0; }
      dialog[open]::backdrop { opacity: 0; }
    }
    .sheet { transform: translateY(18px) scale(.985); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), overlay .6s allow-discrete, display .6s allow-discrete; }
    .sheet[open] { transform: none; }
    @starting-style { .sheet[open] { transform: translateY(18px) scale(.985); } }
    .menu[open] .menu__nav li, .menu[open] .menu__chalets, .menu[open] .menu__foot {
      animation: fade-up .9s var(--ease-out) both; animation-delay: calc(.1s + var(--i, 0) * .07s);
    }
    .gallery[open] .gallery__item { animation: fade-up .9s var(--ease-out) both; animation-delay: calc(.08s + var(--i, 0) * 45ms); }
  }

  /* scroll reveals (JS adds .is-in; a CSS failsafe shows everything if JS never runs) */
  @media (scripting: enabled) {
    [data-reveal] { transition: opacity 1s var(--ease-out), translate 1.2s var(--ease-out), clip-path 1.5s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 90ms); }
    html:not(.no-reveal) [data-reveal]:not(.is-in) { opacity: 0; translate: 0 2rem; }
    html:not(.no-reveal) [data-reveal="clip"]:not(.is-in) { opacity: 1; translate: none; clip-path: inset(100% 0 0 0); }
    [data-reveal="clip"] img { transition: scale 1.8s var(--ease-out); }
    html:not(.no-reveal) [data-reveal="clip"]:not(.is-in) img { scale: 1.14; }
    html:not(.js-ready):not(.no-reveal) [data-reveal]:not(.is-in) { animation: reveal-failsafe .8s var(--ease-out) 3s forwards; }
  }

  @view-transition { navigation: auto; }
}

/* Reduced motion: no transitions either (hover zooms, slides, fades become instant) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@keyframes mask-up { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13) translate3d(-1.4%, -1.1%, 0); } }
@keyframes kenburns-b { from { transform: scale(1.13) translate3d(1.3%, -.9%, 0); } to { transform: scale(1.03); } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes reveal-failsafe { to { opacity: 1; translate: none; clip-path: inset(0); } }

/* Cross-document view transitions: the chalet photo morphs into its page */
::view-transition-group(*.photo) { animation-duration: .9s; animation-timing-function: cubic-bezier(.7, 0, .15, 1); overflow: clip; }
::view-transition-old(*.photo), ::view-transition-new(*.photo) { width: 100%; height: 100%; object-fit: cover; }
::view-transition-old(root) { animation: .45s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: .65s .12s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ==========================================================================
   No JavaScript: dialogs render inline, JS-only controls disappear
   ========================================================================== */
@media (scripting: none) {
  .gallery, .sheet { display: block; position: static; width: auto; height: auto; max-height: none; margin: 0; overflow: visible; box-shadow: none; }
  .gallery { width: min(100% - 2 * var(--gutter), var(--container)); margin: 3rem auto 0; background: transparent; }
  .gallery__head { position: static; padding-inline: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gallery__grid { padding-inline: 0; }
  .sheet { margin-top: 2rem; border: 1px solid var(--line); background: var(--card); }
  [data-dialog-close], .amenities-more, .map__consent { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1900px) {
  :root { --container: 1680px; }
}

@media (max-width: 1099px) {
  .feature--a .feature__media { grid-column: 1 / span 7; }
  .feature--a .feature__body { grid-column: 8 / span 5; }
  .feature--b .feature__media { grid-column: 6 / span 7; }
  .feature--b .feature__body { grid-column: 1 / span 5; }
}

@media (max-width: 959px) {
  :root { --header-h: 4rem; }
  .site-nav, .site-header .lang-switch { display: none; }
  .menu-toggle { display: inline-flex; }

  .intro__aside, .intro__body { grid-column: 1 / -1; }
  .intro__aside { gap: .9rem; padding-top: 0; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--a .feature__media, .feature--b .feature__media, .feature--a .feature__body, .feature--b .feature__body { grid-column: 1; grid-row: auto; }
  .feature__media { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .feature__body { max-width: 38rem; }

  .region__intro, .region__plate { grid-column: 1 / -1; }
  .region__plate { aspect-ratio: 5 / 4; }
  .activities { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section-head--split .section-title { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 2rem 0 2.25rem; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; }
  .step__num { grid-row: 1 / span 2; font-size: 3.5rem; }
  .step__title { margin-top: .35rem; }
  .note, .quick-book { grid-column: 1 / -1; }

  .chalet-layout { grid-template-columns: minmax(0, 1fr); }
  .chalet-aside { position: static; margin-top: 1rem; }
  .book-card { max-width: 34rem; }
  .others__grid--single .card { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
  .others__grid--single .card__media, .others__grid--single .card__body { grid-column: 1 / -1; }
  .page-chalet .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .page-chalet .admin-pill { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }

  .notfound__code, .notfound__text { grid-column: 1 / -1; }
}
@media (min-width: 480px) and (max-width: 959px) {
  .activity:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--line-light); }
}
@media (min-width: 960px) {
  .book-bar { display: none; }
}

@media (max-width: 759px) {
  .hero__bar { min-height: 4rem; }
  .slides-ui__name, .slides-ui__bars { display: none; }
  .slides-ui--single .slides-ui__name { display: block; }
  .hero__lower { flex-direction: column; align-items: flex-start; }
  .chalet-hero__bar .btn--glass { width: 100%; }
  .stats--light { gap: .5rem 1.15rem; }

  .mosaic {
    display: flex; height: auto; margin-top: .5rem; width: 100%; gap: .5rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic__tile { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .mosaic__all { display: none; }

  .map { aspect-ratio: 4 / 3; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item, .gallery__item:nth-child(5n + 1), .gallery__item:nth-child(5n + 2) { grid-column: span 1; }
  .gallery__item:nth-child(3n + 1) { grid-column: span 2; }
  .lightbox__stage { padding-bottom: 5.5rem; }
  .lightbox__nav { top: auto; bottom: 1.25rem; translate: none; }
  .lightbox__name { display: none; }
  .sheet { width: 100%; max-height: 90dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}

@media (max-width: 559px) {
  .site-header__book { display: none; }
  .wordmark { font-size: 1.25rem; }
  .wordmark__mark { width: 1.6rem; height: 1.6rem; }
  .stats--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
  .feature__actions .btn { flex: 1 1 auto; }
  .site-footer__sign { white-space: normal; }
}
@media (max-width: 479px) {
  .activities { grid-template-columns: minmax(0, 1fr); }
  .activity { grid-template-columns: 2.25rem 2.25rem minmax(0, 1fr); align-items: center; gap: .75rem; padding: 1.15rem 0; }
  .activity__icon { font-size: 1.5rem; }
  .book-form__dates { grid-template-columns: minmax(0, 1fr); }
  .book-form__dates .field + .field { border-left: 0; border-top: 1px solid var(--line-strong); }
}

@media print {
  .grain, .site-header, .book-bar, .admin-pill, .hero__bar, .mosaic__all { display: none !important; }
  .hero, .chalet-hero { min-height: auto; }
}
