/* =============================================================================
   Casa 68 · Montañas y el mar
   Palette + type from the moodboard, motion language from era-residence.com.
   Desktop first (1280–1920). Below 900px and with reduced motion the
   horizontal sections fall back to a vertical stack.
   ========================================================================== */

:root {
  /* palette (moodboard) */
  --kalk: #F5F0E6;        /* limewash: page ground */
  --zand: #E8D9C0;        /* sand: booking ground */
  --terracotta: #C4673F;  /* roof tiles: lines, buttons */
  --olijf: #6E7448;       /* olive: free days, small text */
  --zee: #1F5E86;         /* the sea */
  --bloem: #B8326F;       /* bougainvillea */
  --inkt: #1A2630;        /* text */
  --noche: #2A1220;       /* plum night: loader + footer */
  --huis: #ECE3D2;        /* deeper limewash: the house scene and the clouds above it */

  --inkt-soft: rgba(26, 38, 48, .66);
  --kalk-soft: rgba(245, 240, 230, .72);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  --display: "Noto Serif Display", "Cormorant Garamond", Georgia, serif;   /* titles: used condensed (font-stretch) */
  --squeeze: .74;               /* the big uppercase words are narrowed a little further, like era's display face */

  --rail: 74px;                 /* x of the rail line */
  --inset: clamp(140px, 11.5vw, 220px);  /* content starts right of the rail */
  --gap: 3vh;                   /* between the two photos of a stacked panel */
  --hs-gap: 6vw;                /* between panels in the horizontal scenes */
  --ease: cubic-bezier(.22, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x on html (not only on body): otherwise plant canvases near the edge widen the page on phones
   and the browser zooms out (the nav then falls half off the screen). clip keeps position: sticky working. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--kalk);
  color: var(--inkt);
  font: 400 17px/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-loading body { overflow: hidden; }

img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.h-display {
  font: 650 clamp(44px, 5.2vw, 100px)/1 var(--display);
  font-stretch: 78%;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.script {
  font: 400 clamp(44px, 4.6vw, 88px)/1 var(--script);
  color: var(--bloem);
  margin-bottom: .1em;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.script--xl { font-size: clamp(64px, 7vw, 132px); }
.h-display.h-caps {
  justify-self: start; width: calc(100% / var(--squeeze)); max-width: none;
  font: 700 clamp(56px, 11vh, 124px)/.92 var(--display); font-stretch: 62.5%; letter-spacing: 0; text-transform: uppercase;
  transform: scaleX(var(--squeeze)); transform-origin: 0 0;
}

/* ---------------------------------------------------------------- loader -- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 18px;
  color: var(--kalk); overflow: hidden;   /* the big script behind the logo must not widen the page */
  pointer-events: none;
  /* safety net: if JS never runs, the loader still gets out of the way */
  animation: loader-fallback 0s 8s forwards;
}
.loader::before { content: ""; position: absolute; inset: 0; background: var(--noche); z-index: -1; }
.loader__logo, .badge__logo {
  display: block; aspect-ratio: 640 / 517; background: currentColor;
  -webkit-mask: url("../assets/logo-68.png") center / contain no-repeat; mask: url("../assets/logo-68.png") center / contain no-repeat;
}
.loader__logo { width: 104px; }
.loader__count { font: 400 12px/1 var(--sans); letter-spacing: .3em; overflow: hidden; }
.loader__count span { display: inline-block; font-variant-numeric: tabular-nums; }
.loader__script {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font: 400 min(30vw, 420px)/1 var(--script); white-space: nowrap;
  color: rgba(245, 240, 230, .045); z-index: -1;
}
@keyframes loader-fallback { to { visibility: hidden; } }

/* ------------------------------------------------------------- fixed UI -- */
/* its own layer above the page: while the UI fades in after the loader (opacity < 1) it would otherwise
   drop below the photos for a moment and the badge, nav and music button could not be clicked */
.ui { position: relative; z-index: 60; color: var(--inkt); }
[data-ui] { color: var(--inkt); transition: color .5s ease; }
[data-ui][data-ui-theme="dark"] { color: var(--kalk); }

.badge {
  position: fixed; z-index: 60; top: 22px; left: 22px;
  width: 104px; height: 104px; display: block; text-decoration: none;
}
.badge__ring { width: 100%; height: 100%; overflow: visible; will-change: transform; }
.badge__ring text { font: 500 13px/1 var(--sans); letter-spacing: .2em; fill: currentColor; }
.badge__logo { position: absolute; left: 50%; top: 50%; width: 40%; translate: -50% -50%; }

.rail {
  position: fixed; z-index: 60; left: var(--rail); top: 158px; bottom: 30px; width: 0;
  --p: 0%;
}
.rail__track { position: absolute; left: 0; top: 0; bottom: 138px; width: 1px; }
.rail__track::before {
  content: ""; position: absolute; inset: calc(var(--p) + 18px) 0 0; background: currentColor; opacity: .28;
}
.rail__fill {
  position: absolute; left: 0; top: 0; width: 1px; height: max(0px, calc(var(--p) - 18px)); background: currentColor;
}
.rail__count {
  position: absolute; left: 0; top: var(--p); translate: -50% -50%;
  font: 500 11px/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.rail__scroll {
  position: absolute; left: 0; bottom: 0; translate: -50% 0;
  display: grid; justify-items: center; gap: 14px; pointer-events: auto;
}
.rail__label {
  writing-mode: vertical-rl; rotate: 180deg;
  font: 500 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
}
.rail__arrow { width: 12px; height: 48px; transition: rotate .5s var(--ease); }
.rail.is-end .rail__arrow { rotate: 180deg; }

.nav {
  position: fixed; z-index: 60; top: 26px; right: 36px;
  display: grid; justify-items: end; gap: 10px; text-align: right;
}
.nav__cta {
  font: 600 21px/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.nav__links { display: flex; gap: 20px; }
.nav__links a {
  font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  opacity: .82; transition: opacity .3s;
}
.nav__links a:hover, .nav__cta:hover { opacity: .6; }

/* background music: an outline circle bottom-right (opposite "Scroll"), next to the badge on phones (see the phone
   blocks). A speaker while it is off; while it plays, a short line that rolls like the sea. The colour follows what
   is underneath, like the badge and the nav; it fades away while it would cover something clickable (main.js). */
.sound {
  position: fixed; z-index: 60; right: 36px; bottom: 30px; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor;
  background: rgba(245, 240, 230, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: color .5s ease, opacity .4s ease, background-color .3s ease;
}
.sound[data-ui-theme="dark"] { background: rgba(20, 12, 16, .16); }
.sound:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.sound.is-dodging { opacity: 0; pointer-events: none; }
.sound svg {
  grid-area: 1 / 1; width: 22px; height: 22px; overflow: hidden;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .35s ease, transform .45s var(--ease);
}
.sound__wave { width: 27px; height: 27px; opacity: 0; transform: scale(.6); }
.sound.is-playing .sound__icon { opacity: 0; transform: scale(.6); }
.sound.is-playing .sound__wave { opacity: 1; transform: none; }
/* the line rolls sideways (one wavelength = 8 units, so the loop is seamless) and swells gently */
.sound__wave path { animation: sound-roll 1.5s linear infinite; }
.sound__amp { transform-origin: 12px 12px; animation: sound-swell 2.8s ease-in-out infinite; }
.sound:not(.is-playing) .sound__wave path, .sound:not(.is-playing) .sound__amp { animation-play-state: paused; }
@keyframes sound-roll { to { transform: translateX(8px); } }
@keyframes sound-swell { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1.15); } }

/* ------------------------------------------------------------------ hero -- */
.hero {
  --hero-h: 130vh;                                   /* the photo keeps going below the fold */
  position: relative; height: var(--hero-h); min-height: 620px;
  overflow: hidden; background: var(--noche); color: var(--kalk);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media::after {
  /* a light veil over the sky for the ink title */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245, 240, 230, .22) 0vh, rgba(245, 240, 230, .06) 34vh, rgba(0, 0, 0, 0) 52vh);
}
/* the darker fade under the facts at the bottom of the header (on the hero, so the photo's parallax can't move it) */
.hero::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 46vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 10, 4, 0) 0%, rgba(20, 10, 4, .38) 45%, rgba(20, 10, 4, .8) 100%);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 40%; will-change: transform; }

.hero__title {
  position: absolute; left: 0; right: 0; top: 4.5vh;
  display: grid; justify-items: center; color: var(--inkt);
  padding: 0 var(--inset);
}
.hero__name { display: grid; justify-items: center; font-weight: 300; }
.hero__word {
  position: relative; isolation: isolate;
  font: 500 clamp(140px, 15.5vw, 300px)/.78 var(--serif); letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero__word::before {
  content: attr(data-glow); position: absolute; inset: 0; z-index: -1; pointer-events: none;
  color: transparent; text-shadow: 0 2px 50px rgba(245, 240, 230, .55);
  opacity: var(--glow, 1);
}
/* era-style line under the name: words left and right, the script in between */
.hero__line {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2.4vw;
  width: min(64vw, 1160px); margin-top: -1.6vw;
}
.hero__script {
  font: 400 clamp(56px, 6.2vw, 120px)/1 var(--script); white-space: nowrap;
  rotate: -5deg; translate: 6% 0; color: var(--bloem);
  text-shadow: 0 2px 26px rgba(245, 240, 230, .6);
}
.hero__flank {
  font: 600 clamp(14px, 1.15vw, 20px)/1.2 var(--serif); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 14px rgba(245, 240, 230, .8);
}
.hero__flank--l { justify-self: start; }
.hero__flank--r { justify-self: end; }
.hero__place {
  position: absolute; z-index: 2; left: var(--inset); bottom: 6vh;
  font: 500 10px/1.9 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.hero__features {
  position: absolute; z-index: 2; left: 50%; bottom: 5.6vh; translate: -50% 0; display: flex; color: var(--kalk);
}
.hero__features li { display: grid; justify-items: center; gap: 9px; padding: 0 2.3vw; border-left: 1px solid rgba(245, 240, 230, .32); }
.hero__icon { width: clamp(46px, 3.9vw, 74px); height: auto; margin-bottom: 6px; }
.hero__features li:first-child { border-left: 0; }
.hero__features b { font: 600 clamp(32px, 2.9vw, 54px)/.9 var(--serif); color: var(--zand); }
.hero__features span { font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }

.hero__cascade { position: absolute; z-index: 3; top: -3vh; right: -7.5vw; width: 25vw; }
/* the olive grows in from the top-left corner, clear of "Wakker worden" */
.hero__olive { position: absolute; z-index: 3; top: 0; left: 0; width: 16vw; }
/* the nav sits over the cascade: give its type a soft halo on photos */
.nav[data-ui-theme="dark"] { text-shadow: 0 1px 14px rgba(20, 10, 16, .45); }
/* and a limewash halo on light ground, for when a plant hangs behind it */
.nav[data-ui-theme="light"] { text-shadow: 0 0 10px rgba(245, 240, 230, .95), 0 0 3px rgba(245, 240, 230, .9); }
.hero .sway-petals { z-index: 4; }

/* --------------------------------------------- door de wolken (sky) -- */
/* 250vh tall: the stage sticks for 150vh. Clouds part during the first 80vh,
   then the blue section (pulled up 70vh) slides over the terrace. */
.sky { position: relative; z-index: 2; height: 250vh; background: var(--huis); --lead-up: 50vh; --lead-h: 78vh; }
/* leading clouds: hang --lead-up above the scene, so they rise over the bottom of the last house photo.
   The haze and the mask are tied to the seam between that photo and this section (at --lead-up from the top),
   not to percentages: the haze is pure white just above the seam and the mask stays solid until 8vh below it,
   so the bottom edge of the photo never shows through as a line, whatever the screen size. */
.sky__lead {
  position: absolute; left: 0; right: 0; top: calc(-1 * var(--lead-up)); height: var(--lead-h); z-index: 3; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--lead-up) + 8vh), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--lead-up) + 8vh), transparent 100%);
}
/* a soft haze under the leading clouds, so the house photo fades into the white of the sky */
.sky__lead::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) calc(var(--lead-up) - 23vh), rgba(255, 255, 255, .75) calc(var(--lead-up) - 10vh), rgba(255, 255, 255, .98) calc(var(--lead-up) - 4vh), #fff calc(var(--lead-up) - 1vh));
}
.sky__lead-cloud { position: absolute; max-width: none; height: auto; will-change: transform; }
/* the cloud bands are cut off at the sides: feather those edges so no straight line shows when they part */
.sky__lead-cloud, .sky__cloud--veil-l, .sky__cloud--veil-r, .sky__cloud--band-l, .sky__cloud--band-r {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 62%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 62%, transparent 96%);
}
.sky__lead-cloud--l { width: 120vw; left: -38vw; top: 4vh; }
.sky__lead-cloud--r { width: 120vw; right: -40vw; top: 0; }   /* mirrored by gsap (scaleX), so tweens keep it upright */
.sky__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sky__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 65%; will-change: transform; }
.sky__white {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 46%, #f3f7fa 100%);
}
.sky__cloud { position: absolute; max-width: none; height: auto; pointer-events: none; will-change: transform, opacity; }
/* left and right halves so the sky can part to the sides */
/* the -r clouds are mirrored by gsap (scaleX), so the scale tweens keep them upright */
.sky__cloud--veil-l { width: 125vw; left: -45vw; top: -10vh; }
.sky__cloud--veil-r { width: 125vw; right: -45vw; top: -4vh; }
.sky__cloud--band-l { width: 115vw; left: -40vw; top: 40vh; }
.sky__cloud--band-r { width: 115vw; right: -38vw; top: 26vh; }
.sky__cloud--wisps { width: 130vw; left: -14vw; top: -8vh; opacity: .85; }

/* ------------------------------------------------ ligging (sea blue) -- */
.intro {
  position: relative; z-index: 2; overflow: clip; background: var(--zee); color: var(--kalk);
  margin-top: -70vh;                                   /* slides up over the terrace */
  border-radius: 50% 50% 0 0 / 15vh 15vh 0 0;          /* a wide, shallow arch on top */
  /* the bottom padding leaves room for the plants in the corners, which stay clear of the centred text */
  padding: 38vh var(--inset) 16vh;
}
/* the coast film: screened into the blue so it lights up the sea, with a soft blue pool behind the type.
   No z-index on the wrapper: it must not isolate, or the video has nothing to blend with. */
.intro__film { position: absolute; inset: 0; pointer-events: none; }
.intro__video {
  /* full width at its own 16:9 shape (not stretched to the section's height, so it stays sharp),
     pulled up so the empty sky falls off and the mountains meet the arch; it fades out into the blue below.
     On tall phone screens it keeps at least 60% of the section. */
  position: absolute; left: 0; top: calc(16vh - 15vw); width: 100%; height: max(56.25vw, 60%); object-fit: cover;
  mix-blend-mode: screen; opacity: .68;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 64%, transparent 100%);
}
.intro__film::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 66% 40% at 50% 50%, rgba(31, 94, 134, .58) 0%, rgba(31, 94, 134, .38) 55%, rgba(31, 94, 134, 0) 100%);
}
.intro__inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 6vh; }
.intro .label { color: var(--zand); }
.intro__statement {
  font: 500 clamp(38px, 4.1vw, 78px)/1.1 var(--serif); letter-spacing: -0.012em;
  max-width: 18.5em; text-wrap: balance;
}
.intro__statement .word { opacity: .2; }
.ridge {
  display: block; width: calc(100% + 2 * var(--inset) - 120px); height: 13vh; min-height: 90px;
  margin: 6vh 0 2vh; overflow: visible;
}
.ridge__line { fill: none; stroke: var(--zand); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__note { max-width: 44ch; font-size: 21px; color: rgba(245, 240, 230, .8); }

.intro__bush { position: absolute; z-index: 1; left: -1vw; bottom: 0; width: 24vw; }
.intro__column { position: absolute; z-index: 1; right: 7vw; bottom: 0; width: 12vw; }

/* ------------------------------------------------------- shared labels -- */
.label {
  display: inline-flex; align-items: center; gap: 18px;
  font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--olijf);
}
.label::after { content: ""; width: 64px; height: 1px; background: currentColor; opacity: .6; }
.label--center::before { content: ""; width: 64px; height: 1px; background: currentColor; opacity: .6; }
.rule { display: block; width: 72px; height: 1px; background: var(--terracotta); }

/* --------------------------------------------- het huis in drie bogen -- */
.arches {
  position: relative; overflow: clip;
  display: grid; gap: 12vh;
  padding: 26vh 4vw 34vh;
}
.arches__intro { position: relative; z-index: 2; display: grid; gap: 3vh; justify-items: start; max-width: 62vw; }
.arches__intro .h-display { font-size: clamp(44px, 4.6vw, 90px); max-width: 19em; }
.arches__stage { position: relative; z-index: 2; }
/* as big as the screen allows: the whole row (tall arch + captions) has to fit while it holds still */
.arches__grid {
  position: relative;
  --col: min(calc((100% - 2 * 5vw) / 3), calc(.8 * (92vh - 225px)));
  display: grid; grid-template-columns: repeat(3, var(--col)); justify-content: center;
  grid-template-rows: auto auto; column-gap: 5vw; row-gap: 3vh;
}
.arch-card { display: contents; }
.arch-card__img {
  grid-row: 1; align-self: end; position: relative; overflow: hidden;
  aspect-ratio: .9; border-radius: 50vw 50vw 0 0;
}
.arch-card--tall .arch-card__img { aspect-ratio: .8; }
.arch-card__img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.arch-card figcaption { grid-row: 2; }
/* fixed columns: the line shares the caption row, so auto-placement would push the captions aside */
.arch-card:nth-of-type(1) > * { grid-column: 1; }
.arch-card:nth-of-type(2) > * { grid-column: 2; }
.arch-card:nth-of-type(3) > * { grid-column: 3; }
/* each number is a small square on the line: outlined until the line reaches it, then filled */
.arch-card .num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1.5px solid var(--terracotta); background: var(--kalk);
  font: 600 14px/1 var(--sans); letter-spacing: .06em; color: var(--terracotta);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.arch-card.is-on .num { background: var(--terracotta); color: var(--kalk); }
.arches__track {
  grid-row: 2; grid-column: 1 / -1; align-self: start; position: relative; height: 2px; margin-top: 22px;
  background: rgba(196, 103, 63, .22); pointer-events: none;
}
.arches__fill { position: absolute; inset: 0; background: var(--terracotta); transform-origin: 0 50%; transform: scaleX(0); }
/* --p (0..1, set from main.js) brings a card out of the grey; without JS or with reduced motion it stays 1 */
.arch-card { --p: 1; }
.arch-card__img { opacity: calc(.2 + .8 * var(--p)); }
.arch-card__img img { filter: grayscale(calc(1 - var(--p))); }
.arch-card h3, .arch-card p { opacity: calc(.24 + .76 * var(--p)); translate: 0 calc((1 - var(--p)) * 16px); }
.arch-card h3 { font: 650 clamp(27px, 2.5vw, 48px)/1.02 var(--display); font-stretch: 80%; margin: 1.8vh 0 2vh; }
.arch-card p { font-size: 18.5px; line-height: 1.55; color: var(--inkt-soft); max-width: 34ch; }
/* the mountain line runs behind the tops of the arches */
.arches__ridge {
  position: absolute; z-index: 0; top: -6vh; left: 6%; width: 92%; height: 15vh; overflow: visible; pointer-events: none;
}
.arch-card__img { z-index: 1; }
.arches__ridge .draw { fill: none; stroke: var(--terracotta); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* olive in the top-right screen corner (mirrored so its cut stems sit on the edge), bush bottom-left */
.arches__olive { position: absolute; z-index: 3; top: 0; right: 0; width: 26.4vw; scale: -1 1; }

/* ---------------------------------------------------- horizontal scenes -- */
.hs { position: relative; }
.hs--huis { background: var(--huis); }
.hs__pin { position: relative; height: 100vh; overflow: hidden; }
.hs__track { position: relative; z-index: 1; display: flex; height: 100%; width: max-content; gap: var(--hs-gap); will-change: transform; }
/* soft colour glows behind the photos (main.js sets --c1..--c5): each corner runs through a palette of soft,
   mostly warm colours at its own pace while you scroll, leaning a little towards the photo in view */
.hs__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  --c1: 236 227 210; --c2: 236 227 210; --c3: 236 227 210; --c4: 236 227 210; --c5: 236 227 210;
  background:
    radial-gradient(54% 70% at 86% 8%, rgb(var(--c5) / .6), rgb(var(--c5) / 0) 70%),
    radial-gradient(56% 72% at 14% 10%, rgb(var(--c1) / .58), rgb(var(--c1) / 0) 70%),
    radial-gradient(58% 74% at 12% 94%, rgb(var(--c4) / .58), rgb(var(--c4) / 0) 72%),
    radial-gradient(60% 76% at 88% 92%, rgb(var(--c2) / .56), rgb(var(--c2) / 0) 72%),
    radial-gradient(46% 56% at 50% 50%, rgb(var(--c3) / .26), rgb(var(--c3) / 0) 70%);
}
html.no-hs .hs__bg { display: none; }
.panel { position: relative; flex: none; height: 100%; }

/* photos: most sit just short of full height (like era-residence), a few stay full height for rhythm */
.panel--img, .panel--stack { --py: 5.5vh; height: calc(100% - 2 * var(--py)); align-self: center; }
.panel--img { aspect-ratio: var(--ar); }
.panel--tall, .panel--pan, .panel--full { --py: 0px; }
.ph { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ph img {
  position: absolute; top: 0; left: -6%; width: 112%; height: 100%; max-width: none;
  object-fit: cover; will-change: transform;
}
.ph::after {
  content: ""; position: absolute; inset: 55% 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(12, 8, 4, .38));
}
.panel--stack { aspect-ratio: var(--ar) / 2; display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.panel--stack .ph:first-child::after { display: none; }
/* closing photo of a scene: the full screen, shrinks away on the way out (main.js) */
.panel--full { width: 100vw; aspect-ratio: auto; }



.caption {
  position: absolute; z-index: 2; left: 4vh; bottom: 3.6vh; max-width: 70%;
  font: italic 500 clamp(20px, 2.6vh, 34px)/1.2 var(--serif); color: var(--kalk);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
}
.caption--sm { font-size: clamp(17px, 2.1vh, 26px); left: 3vh; bottom: 2.8vh; }
.panel > .caption { bottom: calc(3.6vh + var(--clip-y, 0%)); }
.panel > .caption--sm { bottom: calc(2.8vh + var(--clip-y, 0%)); }
.panel > .giant { top: calc(2vh + var(--clip-y, 0%)); }

.giant {
  position: absolute; z-index: 2; top: 2vh; left: 4vh; pointer-events: none; white-space: nowrap;
  font: 700 30vh/.8 var(--display); font-stretch: 62.5%; text-transform: uppercase; letter-spacing: 0; color: var(--kalk);
  transform: scaleX(var(--squeeze)); transform-origin: 0 0;
  text-shadow: 0 8px 70px rgba(10, 30, 50, .22);
}
.giant--right { left: auto; right: 4vh; transform-origin: 100% 0; }
.giant--fit { font-size: 23vh; }

/* ---- era-style title: "De / Costa / Blanca" stepping across into the next photo, "Spanje" small beside it ---- */
.panel--title { position: relative; z-index: 6; width: 84vh; pointer-events: none; }
.cb {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 100%;
  display: grid; justify-items: start;
  font: 700 27vh/.84 var(--display); font-stretch: 62.5%; letter-spacing: 0; text-transform: uppercase;
  color: var(--inkt);
}
.cb__word {
  position: relative; display: block; padding: .05em .07em 0;
  transform: scaleX(var(--squeeze)); transform-origin: 0 50%;
}
.cb__word--1 { margin-left: 13%; }
.cb__word--2 { margin-left: 28%; }   /* stays inside its own panel, clear of the next photo */
.cb__word--3 { margin-left: 0; }
.cb__country {
  position: absolute; left: 0; top: calc(50% - .5em);
  font: 500 clamp(12px, 1.5vh, 15px)/1 var(--sans); letter-spacing: .85em; color: var(--inkt);
}
[data-reveal] > :nth-child(4) { transition-delay: .36s; }

/* wider era title (Het / leven / buiten): the words step across the left part, a short note sits bottom-right */
.panel--title-wide { width: 112vh; }
.cb--buiten .cb__word--1 { margin-left: 11%; }
.cb--buiten .cb__word--2 { margin-left: 23%; }
.cb__note {
  position: absolute; right: 4vh; bottom: 11vh; width: min(32vh, 340px); pointer-events: auto;
  display: grid; gap: 1.4vh;
}
.cb__note h3 { font: 700 clamp(22px, 3vh, 34px)/1 var(--display); font-stretch: 62.5%; text-transform: uppercase; letter-spacing: .01em; }
.cb__note p { font-size: 17.5px; line-height: 1.6; color: var(--inkt-soft); }

/* ---- "Voor warme zomers / maar ook / zachte winters": condensed capitals with a script word in between ---- */
.panel--duo { width: 128vh; display: flex; align-items: center; justify-content: center; padding: 0 7vh; }
.duo-wrap { width: 100%; text-align: center; }
.duo { position: relative; display: block; text-align: center; font: 700 15.5vh/.9 var(--display); font-stretch: 62.5%; text-transform: uppercase; color: var(--inkt); }
.duo__line { display: block; white-space: nowrap; margin-inline: calc(50% - 50% / var(--squeeze)); transform: scaleX(var(--squeeze)); transform-origin: 50% 50%; }
.duo__line--2 { margin-top: .8em; }   /* room for the script between the lines */
.duo__script {
  position: absolute; z-index: 1; left: 50%; translate: -50% 0; top: .8em;   /* in its own em (1.1 of the capitals) */
  font: 400 1.1em/1 var(--script); text-transform: none; white-space: nowrap; rotate: -2deg; color: var(--inkt);
}
.duo__note { margin: 6vh auto 0; max-width: 40ch; text-align: center; font-size: 19px; line-height: 1.6; color: var(--inkt-soft); }

/* ---- phones only: "Alles eenvoudig bereikbaar met de auto, / niets pal voor de deur, / BEHALVE RUST EN HET PRACHTIGE UITZICHT"
   replaces the text over the street panorama (which keeps the photo clear there). Same family as the duo, quieter:
   a serif line, the script in between, then the condensed capitals. Shown in the phone media query below. ---- */
.panel--road { display: none; }
.road { display: grid; justify-items: center; width: 100%; text-align: center; }
/* the lead is the quiet line; the script ("niets pal / voor de deur,", two lines) carries the panel */
.road__lead { max-width: 20em; font: 500 clamp(15px, min(4.5vw, 5.2vh), 23px)/1.3 var(--serif); color: rgba(26, 38, 48, .5); }
.road__script {
  position: relative; z-index: 1; margin: .16em 0 .04em; white-space: nowrap; rotate: -2deg;
  font: 400 clamp(44px, min(19vw, 14vh), 110px)/.96 var(--script); color: var(--inkt);
}
.road__caps {
  width: calc(100% / var(--squeeze)); max-width: none; margin-inline: calc(50% - 50% / var(--squeeze));
  font: 700 min(10vw, 9vh)/.94 var(--display); font-stretch: 62.5%; text-transform: uppercase; text-wrap: balance; color: var(--inkt);
  transform: scaleX(var(--squeeze)); transform-origin: 50% 0;
}
@media (orientation: portrait), (max-height: 520px) and (orientation: landscape) {
  .panel--road { display: flex; }
  .pano-text { display: none; }
}

/* ---- statement: small label, big condensed capitals, a short text (like era's "The concept") ---- */
.panel--statement { width: 128vh; display: flex; align-items: flex-end; justify-content: center; padding: 0 8vh 7vh; }
.statement { display: grid; justify-items: center; text-align: center; gap: 4.5vh; }
.statement__label { font: 600 15px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--inkt); }
/* the vine's branch is cut at the top (it hangs from the screen edge); its side ends fade out */
.statement__vine { position: absolute; z-index: 1; top: 0; left: 50%; translate: -50% 0; width: 66vh; pointer-events: none; }
.statement__vine img, .statement__vine canvas {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.statement__title {
  /* the line box is widened by 1/squeeze, so after the squeeze the text fills the column exactly */
  width: calc(100% / var(--squeeze)); max-width: none;
  font: 700 12.2vh/.94 var(--display); font-stretch: 62.5%; text-transform: uppercase; text-wrap: balance; color: var(--inkt);
  transform: scaleX(var(--squeeze)); transform-origin: 50% 0;
}
.statement__text { max-width: 46ch; font-size: 23px; line-height: 1.6; color: var(--inkt-soft); }

/* text panels between the photos */
.panel--text { width: var(--w, 40vw); display: flex; align-items: center; padding: 0 5.5vw; }
.panel__copy { position: relative; z-index: 2; display: grid; gap: 3.4vh; max-width: 30em; }
.panel__copy p:not(.script) { font-size: 20px; color: var(--inkt-soft); max-width: 38ch; }
.panel__olive { position: absolute; z-index: 1; top: 0; left: -1vw; width: 26vw; }
/* La mesa: the copy sits low, the olive branch grows in above it */
.panel--mesa { align-items: center; justify-content: center; padding: 0 4vw 0 27vw; }   /* the olive keeps the left */
.panel--mesa .panel__copy { max-width: none; width: 100%; justify-items: center; text-align: center; }
.panel--mesa .h-display.h-caps {
  justify-self: stretch; width: auto; margin-inline: calc(50% - 50% / var(--squeeze));
  font-size: clamp(64px, 14.5vh, 156px); text-align: center; transform-origin: 50% 0;
}
.panel--mesa .panel__copy p { margin-inline: auto; max-width: 40ch; font-size: 23px; }
.panel--low { align-items: flex-end; padding-bottom: 13vh; }
/* last panel of the second scene: copy low, a corner plant above it */
.panel--home { align-items: flex-end; padding-bottom: 13vh; }
.panel--home .panel__copy { max-width: 30vw; }
.panel--home .btn { justify-self: start; margin-top: 1vh; }


/* ---- flowers that grow over the photos (never over text) ---- */
.fl { position: absolute; z-index: 5; pointer-events: none; }
/* the arch panel: the bush, framing the arch and staying on the photo once it opens */
.fl--arch-bush { bottom: 0; left: -1vw; width: 25vw; }
.fl--gap-top.fl--narrow { width: 15.5vw; }
/* plants hanging from the top of the screen inside a text panel */
.fl--hang-l { top: 0; left: 5vw; width: min(18vw, 28vh); }
.fl--hang-r { top: 0; right: 4vw; width: 14vw; }
/* the last plant of the second scene: big, centred on the gap so it hangs over the top of the closing photo */
.panel--home .fl--hang-r { width: min(22vw, 40vh); right: calc(var(--hs-gap) / -2); translate: 50% 0; }
.panel--statement.panel--home { width: 134vh; padding: 0 30vh 7vh 8vh; }
.panel--home .statement .btn { justify-self: center; margin-top: 1vh; }
/* hanging from the top edge, centred on the gap to the next panel. A panel can widen that gap for a big plant:
   it sets --fl-gap and a margin of (--fl-gap - --hs-gap) on that side (see the phone blocks). */
.fl--gap-top { top: calc(-1 * var(--py, 0px)); right: calc(var(--fl-gap, var(--hs-gap)) / -2); translate: 50% 0; width: 24vw; }
/* same, on the gap to the previous panel */
.fl--gap-top.fl--gap-left { right: auto; left: calc(var(--fl-gap, var(--hs-gap)) / -2); translate: -50% 0; }
/* climbing up from the floor at the right edge */
.fl--climb { bottom: calc(-1 * var(--py, 0px)); right: -3vw; width: 19vw; }
/* standing across the gap, so it overlaps both photos a little */
.fl--climb.fl--over { right: -8.5vw; }
.fl--climb.fl--big { width: 21.5vw; }
/* the bush that frames the arch, and stays on the photo once it opens */



/* blur fade (like Magic UI BlurFade), only for the big titles. The class is added from JS. */
.bt { opacity: 0; filter: blur(14px); translate: 0 .18em; transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), translate 1.2s var(--ease); }
.bt.is-visible { opacity: 1; filter: none; translate: 0 0; }

/* reveal once, when the panel first slides in */
[data-reveal] > * { opacity: 0; translate: 0 26px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
[data-reveal] > *:nth-child(2) { transition-delay: .12s; }
[data-reveal] > *:nth-child(3) { transition-delay: .24s; }
.is-in [data-reveal] > *, [data-reveal].is-in > * { opacity: 1; translate: 0 0; }
/* the titles in a reveal also come out of the blur */
[data-reveal] > .h-display, [data-reveal] > h3 { filter: blur(14px); transition: opacity 1.2s var(--ease), translate 1.2s var(--ease), filter 1.2s var(--ease); }
.is-in [data-reveal] > .h-display, .is-in [data-reveal] > h3 { filter: none; }

/* the arch that opens into the first panel */
.panel--arch { width: 100vw; }
.arch { position: absolute; inset: 0; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; max-width: none; transform-origin: 50% 50%; will-change: transform; }
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 40, 64, .22), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 70%, rgba(12, 8, 4, .3));
}
.arch__label {
  position: absolute; left: 0; right: 0; top: 7vh; text-align: center;
  font: 500 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--inkt);
}
.arch__flank {
  position: absolute; top: 50%; translate: 0 -50%;
  font: 500 clamp(36px, 3.8vw, 72px)/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap;
}
.arch__flank--l { right: 67vw; }
.arch__flank--r { left: 67vw; font-style: italic; }
/* the small line above each flank: a mountain ridge and a wave, centred over the words */
.arch__flank { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.arch__glyph { display: block; width: 2.6em; height: auto; overflow: visible; fill: none; stroke: var(--terracotta); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.arch__glyph path { vector-effect: non-scaling-stroke; }
/* "Adembenemend uitzicht" over the sky, a line underneath; comes up once the arch has opened (main.js) */
.arch__title { position: absolute; z-index: 2; left: 0; right: 0; top: 10vh; text-align: center; pointer-events: none; opacity: 0; }
.panel--arch .giant { position: static; display: block; margin: 0 calc(50% - 50% / var(--squeeze)) 1.8vh; text-align: center; transform-origin: 50% 0; font-size: min(9vw, 21vh); }
.arch__sub {
  font: italic 500 clamp(20px, 3vh, 38px)/1.25 var(--serif); color: var(--kalk); letter-spacing: .01em;
  text-shadow: 0 1px 18px rgba(10, 30, 50, .45);
}
.panel--arch .caption { opacity: 0; }
.caption--right { left: auto; right: 4vh; text-align: right; }

/* cream card over the bedroom photo */
.story {
  position: absolute; z-index: 2; left: 4vh; bottom: 4vh; width: min(36vh, 380px);
  background: var(--kalk); padding: 4vh 3.6vh; display: grid; gap: 1.4vh;
}
.story h3 { font: 650 clamp(32px, 4.8vh, 58px)/1 var(--display); font-stretch: 80%; }
.story p { font-size: 17.5px; color: var(--inkt-soft); }

/* ---- the table + paella ---- */
.panel--table { height: 100%; align-self: center; aspect-ratio: 1; overflow: hidden; }
.table__img { width: 100%; height: 100%; object-fit: cover; }
.paella {
  position: absolute; left: 50%; top: 49%; width: 34.5%;
  translate: -50% -50%;
  /* the shadow lives on the wrapper so it stays put while the pan turns */
  filter: drop-shadow(0 2.6vh 2.4vh rgba(28, 12, 2, .5)) drop-shadow(0 .5vh .5vh rgba(28, 12, 2, .4));
}
.paella__pan { width: 100%; height: auto; will-change: transform; }
.tags li {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: grid; justify-items: center; text-align: center; white-space: nowrap;
  font: italic 600 clamp(17px, 2.5vh, 30px)/1.05 var(--serif); color: var(--kalk);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 22px rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity .9s var(--ease), translate .9s var(--ease);
  translate: -50% calc(-50% + 14px);
}
.tags li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--kalk); margin-bottom: 9px;
  box-shadow: 0 0 0 4px rgba(245, 240, 230, .22);
}
.tags small {
  font: 500 clamp(8px, 1.05vh, 11px)/1.4 var(--sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase;
  margin-top: 6px; opacity: .9;
}
.panel--table.is-in .tags li { opacity: 1; translate: -50% -50%; }
.panel--table .tags li:nth-child(2) { transition-delay: .08s; }
.panel--table .tags li:nth-child(3) { transition-delay: .16s; }
.panel--table .tags li:nth-child(4) { transition-delay: .24s; }
.panel--table .tags li:nth-child(5) { transition-delay: .32s; }
.panel--table .tags li:nth-child(6) { transition-delay: .4s; }
.panel--table .tags li:nth-child(7) { transition-delay: .48s; }
.panel--table .tags li:nth-child(8) { transition-delay: .56s; }
.panel--table .tags li:nth-child(9) { transition-delay: .64s; }

/* ---- de omgeving: the interactive map lives in css/omgeving.css ---- */

/* ---- panorama text: top and bottom of the screen, the middle stays open ---- */
.pano-text {
  position: absolute; z-index: 3; top: 0; left: calc(50% - 50vw); width: 100vw; height: 100%;
  color: var(--kalk); text-align: center; pointer-events: none;
}
.pano-text__top {
  position: absolute; left: 0; right: 0; top: 10vh;
  font: 600 clamp(32px, 5.4vh, 64px)/1.28 var(--serif); letter-spacing: -0.01em;
  text-shadow: 0 2px 28px rgba(10, 30, 50, .35);
}
.pano-text__punch {
  position: absolute; left: 0; right: 0; bottom: 3vh; padding: .32em 0;
  font: 400 clamp(84px, 16vh, 180px)/1 var(--script); color: var(--kalk);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
  /* written in from left to right: a feathered mask slides across */
  -webkit-mask-image: linear-gradient(90deg, #000 44%, transparent 56%); mask-image: linear-gradient(90deg, #000 44%, transparent 56%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 2.4s cubic-bezier(.55, .1, .25, 1) .55s, mask-position 2.4s cubic-bezier(.55, .1, .25, 1) .55s;
}
.pano-text.is-played .pano-text__punch { -webkit-mask-position: 0 0; mask-position: 0 0; }
.panel--pan .ph::after { inset: 40% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(12, 8, 4, .5)); }
.panel--pan .ph::before {
  content: ""; position: absolute; z-index: 1; inset: 0 0 62%; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 40, 64, .3), rgba(16, 40, 64, 0));
}

/* ---------------------------------------------------------------- guests -- */
/* the garland scales with the width: on wide screens the score moves down with it, so the flowers never touch it */
.guests { position: relative; z-index: 3; overflow: visible; padding: max(46vh, calc(26vw + 8vh)) var(--inset) 22vh; text-align: center; }
.guests__garland { position: absolute; z-index: 1; top: -6vw; left: 50%; translate: -50% 0; width: 100vw; }
.guests__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 5vh; }
.guests__score { display: grid; justify-items: center; gap: 4.4vh; }
.guests__score b { font: 600 clamp(100px, 10vw, 190px)/.8 var(--display); font-stretch: 75%; color: var(--terracotta); }
.guests__score span { font-size: 14px; color: var(--inkt-soft); }
.guests__quote { font: italic 500 clamp(34px, 3.6vw, 66px)/1.14 var(--serif); max-width: 22em; text-wrap: balance; }
.guests__quote .word { opacity: .14; }
.guests__who { font-size: 14px; color: var(--inkt-soft); }

/* --------------------------------------------------------------- booking -- */
.booking {
  position: relative; background: var(--zand);
  display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: 6vw; align-items: start;
  padding: 32vh var(--inset) 18vh; overflow: clip;
}
.booking__orange { position: absolute; z-index: 1; top: 0; right: 0; width: 20vw; }
.booking__intro { position: sticky; top: 16vh; display: grid; gap: 3.2vh; }
.booking__intro > p:not(.booking__small) { font-size: 20px; color: var(--inkt-soft); max-width: 36ch; }   /* the small print keeps its own size */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.d { width: 14px; height: 14px; display: inline-block; border-radius: 3px; }
.d--free { background: var(--kalk); box-shadow: inset 0 0 0 1px rgba(110, 116, 72, .45); }
.d--option { background: rgba(196, 103, 63, .42); }
.d--booked { background: rgba(184, 50, 111, .34); }
.d--none { background: rgba(26, 38, 48, .08); }

.stay { border-top: 1px solid rgba(26, 38, 48, .2); border-bottom: 1px solid rgba(26, 38, 48, .2); padding: 2.4vh 0; min-height: 92px; }
.stay__empty { color: var(--inkt-soft); font-size: 15px; }
.stay__dates { font: 500 clamp(24px, 2vw, 34px)/1.1 var(--serif); }
.stay__meta { font-size: 14px; color: var(--inkt-soft); margin-top: 6px; }
.stay__error { font-size: 14px; color: var(--bloem); margin-top: 6px; }
.booking__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking__small { font-size: 13px; line-height: 1.6; color: var(--inkt-soft); max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s, opacity .35s;
}
.btn--solid { background: var(--terracotta); color: var(--kalk); border: 1px solid var(--terracotta); }
.btn--solid:hover { background: var(--inkt); border-color: var(--inkt); }
.btn--line { border: 1px solid currentColor; }
.btn--line:hover { background: var(--inkt); color: var(--kalk); border-color: var(--inkt); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* calendar */
.cal__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4vh; }
.cal__updated { font-size: 13px; color: var(--inkt-soft); }
.cal__nav { width: 64px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(26, 38, 48, .35); transition: background .3s, color .3s; }
.cal__nav svg { width: 30px; height: 10px; }
.cal__nav--prev svg { rotate: 180deg; }
.cal__nav:hover:not(:disabled) { background: var(--inkt); color: var(--kalk); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; }
.month__name { font: 500 clamp(34px, 3vw, 56px)/1 var(--serif); margin-bottom: 3vh; text-transform: lowercase; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month__dow { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--inkt-soft); text-align: center; padding-bottom: 12px; }
.day {
  --c-prev: var(--c); --c: transparent;
  position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px;
  font: 400 15px/1 var(--sans); font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--c-prev) 50%, var(--c) 50%);
  transition: background .2s, color .2s;
}
.day--empty { background: none; }
.day--free { --c: var(--kalk); cursor: pointer; }
.day--option { --c: rgba(196, 103, 63, .32); color: rgba(26, 38, 48, .6); }
.day--booked { --c: rgba(184, 50, 111, .24); color: rgba(26, 38, 48, .55); text-decoration: line-through; text-decoration-thickness: 1px; }
.day--none, .day--past { color: rgba(26, 38, 48, .3); }
.day--past { --c: transparent; --c-prev: transparent; }
.day.from-free { --c-prev: var(--kalk); }
.day.from-option { --c-prev: rgba(196, 103, 63, .32); }
.day.from-booked { --c-prev: rgba(184, 50, 111, .24); }
.day.from-none { --c-prev: transparent; }
.day--arrive span { text-decoration: underline; text-decoration-color: var(--olijf); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.day--free:hover { outline: 1px solid var(--inkt); outline-offset: -1px; }
.day.is-range { --c: rgba(110, 116, 72, .42); --c-prev: rgba(110, 116, 72, .42); }
.day.is-start, .day.is-end { --c: var(--inkt); --c-prev: var(--inkt); color: var(--kalk); }
.day.is-start span, .day.is-end span { text-decoration-color: var(--kalk); }
.day.is-end { cursor: pointer; }
.day:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; z-index: 1; }

/* --------------------------------------------------------------- contact -- */

.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.contact__media { position: relative; overflow: hidden; }
.contact__bush { position: absolute; z-index: 2; left: -1vw; bottom: -1vh; width: 26vw; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.contact__body { padding: 16vh 7vw 14vh 6vw; display: grid; align-content: center; gap: 2.4vh; }
.contact__lead { font-size: 20px; color: var(--inkt-soft); }
.form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3.2vh 24px; margin-top: 4vh; }
.field { grid-column: span 6; display: grid; gap: 8px; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
.field span { font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--inkt-soft); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--inkt); background: transparent;
  border: 0; border-bottom: 1px solid rgba(26, 38, 48, .35); border-radius: 0; padding: 8px 0 10px; width: 100%;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terracotta); box-shadow: 0 1px 0 var(--terracotta); }
.form .btn { grid-column: span 3; justify-self: start; }
.form__status { grid-column: span 6; font-size: 14px; color: var(--olijf); min-height: 1.4em; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { color: var(--bloem); }

/* ---------------------------------------------------------------- footer -- */
.footer {
  position: relative; overflow: clip; background: var(--noche); color: var(--kalk);
  padding: 54vh var(--inset) 5vh; display: grid; gap: 12vh;
}
.footer__name { position: relative; z-index: 2; display: grid; justify-items: center; }
.footer__word { font: 500 clamp(160px, 22vw, 420px)/.78 var(--serif); letter-spacing: -0.035em; white-space: nowrap; }
.footer__script { font: 400 clamp(54px, 6vw, 116px)/1 var(--script); color: #E7A6C4; margin-top: -.5em; margin-left: 30%; rotate: -5deg; }
.footer__cols { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4vw; border-top: 1px solid rgba(245, 240, 230, .2); padding-top: 5vh; }
.footer__cols h3 { font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--kalk-soft); margin-bottom: 16px; }
.footer__cols p { font: 500 20px/1.5 var(--serif); }
.footer__cols a { text-decoration: none; border-bottom: 1px solid rgba(245, 240, 230, .3); transition: border-color .3s; }
.footer__cols a:hover { border-color: var(--kalk); }
.footer__base { position: relative; z-index: 2; font-size: 12px; color: var(--kalk-soft); }
.footer__corner { position: absolute; z-index: 1; top: 0; left: 0; width: 29vw; }
.footer__cascade { position: absolute; z-index: 1; top: 0; right: 3vw; width: 22vw; }

/* sway: plant images never catch clicks */
.sway, .sway-petals { pointer-events: none; }

/* --------------------------------------------- fallback: stacked layout -- */
/* phones/tablets and reduced motion: no pinning, scenes become a vertical flow */
html.no-hs .hs__pin { height: auto; overflow: visible; }
html.no-hs .hs__track { flex-direction: column; width: 100%; height: auto; gap: var(--gap); transform: none !important; will-change: auto; } /* will-change would trap the pinned panorama */
html.no-hs .panel { width: 100% !important; height: auto; min-width: 0; }
html.no-hs .panel--img, html.no-hs .panel--table { aspect-ratio: var(--ar, 1); }
html.no-hs .panel--stack { aspect-ratio: auto; grid-template-rows: none; }
html.no-hs .panel--stack .ph { aspect-ratio: var(--ar); }
html.no-hs .ph img { left: 0; width: 100%; transform: none; }
/* the street panorama keeps its sideways pan on phones (pinned, see main.js) */
html.no-hs .panel--pan { aspect-ratio: auto; height: 100vh; height: 100svh; overflow: hidden; }
html.no-hs .panel--pan .ph img { width: auto; height: 100%; aspect-ratio: 2896 / 1206; will-change: transform; }
html.no-hs .pano-text { left: 0; width: 100%; }
html.no-hs .panel--text { padding: 14vh var(--inset); }
html.no-hs .panel--arch { height: 100vh; }
html.no-hs .panel--arch .arch__title, html.no-hs .panel--arch .caption { opacity: 1; }
html.no-hs .panel--arch .giant { white-space: normal; font-size: 16vw; line-height: .86; }
html.no-hs .arch__title { top: max(15vh, 110px); }   /* clear of the badge */
html.no-hs .panel--title { height: auto; padding: 12vh var(--inset) 10vh; }
html.no-hs .cb { position: relative; top: auto; translate: none; font-size: 31vw; }
html.no-hs .cb__word--1 { margin-left: 34%; }
html.no-hs .cb__word--2 { margin-left: 14%; }
html.no-hs .cb__word--3 { margin-left: 0; }
html.no-hs .cb__country { left: auto; right: 0; top: calc(100% / 6 - .5em); }
html.no-hs .cb--buiten .cb__word--1 { margin-left: 30%; }
html.no-hs .cb--buiten .cb__word--2 { margin-left: 12%; }
html.no-hs .cb__note { position: relative; right: auto; bottom: auto; width: auto; max-width: 34rem; margin-top: 6vh; }
html.no-hs .panel--duo, html.no-hs .panel--statement { height: auto; padding: 13vh var(--inset); }
html.no-hs .panel--statement { padding-top: calc(36vw + 6vh); }   /* the vine hangs above the text */
html.no-hs .panel--statement.panel--home { padding: 13vh var(--inset); }
html.no-hs .statement__vine { width: 86vw; }
html.no-hs .duo { font-size: 12vw; }
html.no-hs .duo-wrap { width: 100%; min-width: 0; }
html.no-hs .duo__note { margin-left: 0; max-width: 100%; }
html.no-hs .statement__title { font-size: 11.5vw; }
html.no-hs .h-display.h-caps { font-size: 13vw; }
html.no-hs .arch__flank, html.no-hs .arch__label { display: none; }
html.no-hs [data-reveal] > * { opacity: 1; translate: none; filter: none; }
html.no-hs .fl { display: none; }
html.no-hs .tags li { opacity: 1; translate: -50% -50%; }
/* copy blocks that are narrowed for the horizontal scene get the full column back */

html.no-hs .panel__copy, html.no-hs .panel--home .panel__copy { max-width: 34rem; }
html.no-hs .panel--text.panel--mesa { padding-top: max(14vh, calc(23vw + 5vh)); }   /* the olive hangs above the heading */
/* bedroom: the photo keeps its shape and the card sits under it, instead of over the next photos */
html.no-hs .panel--story { aspect-ratio: auto; }
html.no-hs .panel--story .ph { height: auto; aspect-ratio: var(--ar); }

@media (prefers-reduced-motion: reduce) {
  .bt { opacity: 1; filter: none; translate: none; transition: none; }
  .pano-text__punch { -webkit-mask-image: none; mask-image: none; }
  .intro__statement .word, .guests__quote .word { opacity: 1 !important; }
  .ridge__line { stroke-dashoffset: 0; }
  .sound__wave path, .sound__amp { animation: none; }   /* the line stays still, it still says "playing" */
  /* no flight through the clouds: show the terrace straight away (the white and the clouds only part with motion) */
  .sky__white, .sky__cloud { display: none; }
}

@media (max-width: 899px) {
  :root { --inset: 20px; --gap: 8px; }
  body { font-size: 16px; }
  .rail { display: none; }
  .badge { width: 72px; height: 72px; top: 14px; left: 14px; }
  .nav { top: 18px; right: 18px; }
  .nav__links { display: none; }
  /* music: next to the badge (the bottom of the screen belongs to the map's info card on phones) */
  .sound { right: auto; bottom: auto; left: 100px; top: 30px; width: 40px; height: 40px; }
  .sound svg { width: 19px; height: 19px; }
  /* a light label behind the button, so it reads over photos and plants alike */
  .nav__cta { font-size: 15px; padding: 9px 13px 8px; border: 0; background: rgba(245, 240, 230, .88); color: var(--inkt); text-shadow: none !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .hero { --hero-h: 100svh; }
  .hero__title { top: 11vh; }
  .hero__word { font-size: 20vw; }
  .hero__cascade { width: 38vw !important; right: -20vw; }   /* mostly past the screen edge, clear of the name */
  .hero__olive { width: 20vw; }
  /* script under the name, then "Wakker worden · boven de vallei" as one line */
  .hero__line { width: 100%; grid-template-columns: auto auto; justify-content: center; column-gap: 4.5vw; row-gap: 1.6vh; margin-top: 1.2vh; }
  .hero__script { grid-column: 1 / -1; order: -1; justify-self: center; translate: none; font-size: 13vw; }
  .hero__flank { font-size: clamp(11px, 3.1vw, 17px); letter-spacing: .16em; }
  .hero__flank--l { justify-self: end; }
  .hero__flank--r { justify-self: start; }
  .intro__bush { width: 46vw; }
  .intro { padding-bottom: 27vh; }   /* on phones the text runs full width: the bush needs its own strip */
  .intro__column { display: none; }   /* too small to read as a plant on a phone */
  .panel__vine { width: 80vw; }
  .panel__orange { width: 44vw; }
  /* stacked layout only (reduced motion); the horizontal scenes on phones are sized in the portrait block below */
  html.no-hs .giant { font-size: 16vw; }
  html.no-hs .story { position: relative; left: 0; bottom: 0; width: 100%; }
  html.no-hs .pano-text__top { font-size: clamp(24px, 4.4vw, 38px); top: 9svh; padding: 0 var(--inset); }
  html.no-hs .pano-text__punch { font-size: clamp(64px, 13vw, 120px); bottom: 9svh; }
  .hero__features { bottom: 16svh; }
  .hero__features li { padding: 0 3.4vw; }
  .hero__features b { font-size: clamp(28px, 5.4vw, 44px); }
  .hero__icon { width: clamp(34px, 8vw, 56px); margin-bottom: 2px; }
  .hero__features span { font-size: clamp(8px, 1.4vw, 11px); letter-spacing: .16em; }
  .booking__orange { width: 40vw; }
  .tags li { font-size: 13px; }
  .tags small { display: none; }
  .booking { grid-template-columns: 1fr; }
  .booking__intro { position: relative; top: 0; }
  .booking__intro > p:not(.booking__small) { font-size: 17px; }
  .guests__quote { font-size: clamp(22px, 6vw, 30px); }
  .cal__months { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__media { min-height: 60vh; }
  .field--half, .field--third, .form .btn { grid-column: span 6; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__corner { width: 46vw; }
  .footer__word { font-size: 25vw; }
  .footer__script { margin-left: 0; justify-self: center; white-space: nowrap; font-size: 12.5vw; translate: 8% 0; }
  .footer__cascade { width: 38vw; }
}

/* phones and small tablets held upright: the three arches become a slider, one at a time, full bleed,
   moved sideways by scrolling (main.js). On their side they stay a row (see the low-screen block). */
@media (max-width: 899px) and (orientation: portrait) {
  /* the olive sits in the corner above the heading, never over it */
  .arches { padding: max(18vh, 36vw) var(--inset) 22vh; gap: 6vh; }
  .arches__intro { max-width: none; }
  /* full bleed, and roomy above and below so the clip only cuts the sides (mountain line on top, captions below) */
  .arches__stage { margin: -9vh calc(-1 * var(--inset)) -32px; padding: 9vh 0 32px; overflow: hidden; }
  /* one arch per screen, sized so arch + caption fit in the screen height too (tablets) */
  .arches__grid { --col: min(78vw, calc(.8 * (80vh - 230px))); column-gap: 6vw; justify-content: start; width: max-content; padding: 0 calc((100vw - var(--col)) / 2); will-change: transform; }
  .arches__ridge { top: -5vh; }
  .arch-card h3 { font-size: 27px; }
  .arch-card p { font-size: 17px; }
  .arches__olive { width: 34vw; }
}

/* small laptops and tablets on their side: a smaller plant top-right, clear of the line under the name */
@media (min-width: 900px) and (max-width: 1200px) {
  .hero__cascade { width: 20vw; right: -9vw; }
}

@media (min-width: 600px) and (max-width: 899px) {
  :root { --inset: 44px; --gap: 14px; }
  .nav { top: 22px; right: 26px; }
  .nav__links { display: flex; }
  .badge { width: 88px; height: 88px; top: 18px; left: 18px; }
  .sound { left: 120px; top: 42px; }
  .hero__title { top: 6vh; }
  .hero__olive { width: 16vw; }
  .hero__word { font-size: 20vw; }
  .hero__script { font-size: 10vw; }
  .hero__features li { padding: 0 2.6vw; }
  /* the two photos of a pair side by side */
  html.no-hs .panel--stack { grid-template-columns: 1fr 1fr; }
  html.no-hs .panel--text { padding: 12vh var(--inset); }
  .intro__bush { width: 32vw; }
  .cal__months { grid-template-columns: 1fr 1fr; }
  .contact__media { min-height: 52vh; }
}

/* =============================================================================
   Upright screens (phones, tablets held upright): the horizontal scenes keep scrolling
   sideways, sized for a tall screen. Photos sit at 60% of the screen height, so most of
   them slide past a little wider than the screen, like a panorama; the full-height photos
   (street, bedroom, pier, closing photo) keep the rhythm. Text panels are one screen wide
   and the big condensed words are sized to fit that width (measured after the squeeze:
   "Blanca" 2.62em, "buiten" 2.39em, "Voor warme zomers" 7.17em, "Adembenemend" 5.5em).
   ========================================================================== */
@media (orientation: portrait) {
  :root { --hs-gap: 9vw; }
  /* the background: one glow at the top and one at the bottom (not four corners squeezed into a narrow screen);
     main.js walks their colours with the distance travelled, so they flow into the next colours as you scroll */
  html:not(.no-hs) .hs__bg {
    background:
      radial-gradient(150% 64% at 50% -6%, rgb(var(--c1) / .68), rgb(var(--c1) / 0) 80%),
      radial-gradient(150% 64% at 50% 106%, rgb(var(--c2) / .64), rgb(var(--c2) / 0) 80%);
  }
  html:not(.no-hs) .panel--img, html:not(.no-hs) .panel--stack { --py: 20vh; }
  html:not(.no-hs) .panel--tall, html:not(.no-hs) .panel--pan, html:not(.no-hs) .panel--full { --py: 0px; }
  html:not(.no-hs) .panel--table { height: 72vh; }

  /* captions: a little smaller, close to the corner of the photo */
  html:not(.no-hs) .caption { font-size: clamp(17px, 2.3vh, 24px); left: 16px; bottom: 14px; max-width: min(80%, 320px); }
  html:not(.no-hs) .caption--sm { font-size: clamp(15px, 2vh, 21px); left: 14px; bottom: 12px; }
  html:not(.no-hs) .panel > .caption { bottom: calc(14px + var(--clip-y, 0%)); }
  html:not(.no-hs) .panel > .caption--sm { bottom: calc(12px + var(--clip-y, 0%)); }
  html:not(.no-hs) .caption--right { left: auto; right: 16px; text-align: right; }

  /* plants: clearly bigger than on a wide screen, still hanging from the top of the screen or standing on its bottom edge */
  html:not(.no-hs) .fl--gap-top { width: 46vw; }
  html:not(.no-hs) .fl--gap-top.fl--narrow { width: 30vw; }
  html:not(.no-hs) .fl--climb { width: 38vw; right: -8vw; }
  html:not(.no-hs) .fl--climb.fl--over { right: -15vw; }
  html:not(.no-hs) .fl--climb.fl--big { width: 42vw; }
  html:not(.no-hs) .fl--arch-bush { width: 30vw; }
  html:not(.no-hs) .panel__olive { width: 66vw; left: -3vw; }
  html:not(.no-hs) .fl--hang-r { width: 32vw; right: 3vw; }
  /* the last plant of the second scene hangs from the gap, partly over the closing photo */
  html:not(.no-hs) .panel--home .fl--hang-r { width: min(64vw, 32vh); right: calc(var(--hs-gap) / -2); translate: 30% 0; }
  html:not(.no-hs) .statement__vine { width: 130vw; }

  /* the blue section: the film reaches up to the arched top */
  .intro__video { top: 0; }

  /* the arch: tall and centred, "Van de bergen" above it, "tot aan de zee" below (main.js moves them away) */
  html:not(.no-hs) .arch__label { top: 8vh; }
  html:not(.no-hs) .arch__flank { left: 0; right: 0; translate: none; text-align: center; font-size: min(9vw, 54px); }
  /* each flank carries its little line above the words: "Van de bergen" a bit higher, "tot aan de zee" just under
     the arch (main.js makes the arch 25vh–81vh on upright screens) and a little to the right of the bush */
  html:not(.no-hs) .arch__flank--l { top: 10.5vh; }
  html:not(.no-hs) .arch__flank--r { top: auto; bottom: 6.5vh; padding-left: 14vw; }
  html:not(.no-hs) .arch__title { top: 12vh; padding: 0 6vw; }
  html:not(.no-hs) .panel--arch .giant { white-space: normal; font-size: min(15vw, 96px); line-height: .86; margin-bottom: 2.2vh; }
  html:not(.no-hs) .arch__sub { font-size: clamp(18px, 4.8vw, 28px); }

  /* the street panorama: text over sky and street, sized to the width */
  html:not(.no-hs) .pano-text__top { top: 13vh; padding: 0 7vw; font-size: clamp(22px, 6.2vw, 40px); line-height: 1.25; }
  html:not(.no-hs) .pano-text__punch { bottom: 9vh; font-size: min(15.5vw, 120px); }

  /* "De / Costa / Blanca" and "Het / leven / buiten": the words step across, but stay inside the screen */
  html:not(.no-hs) .panel--title { width: 94vw; }
  html:not(.no-hs) .cb { font-size: min(23vw, 19vh); }
  html:not(.no-hs) .cb__word--1 { margin-left: 9%; }
  html:not(.no-hs) .cb__word--2 { margin-left: 19%; }
  /* "Spanje" / "Al fresco" small beside the first word (line 1 is the top sixth of the block) */
  html:not(.no-hs) .cb__country { top: calc(17% - .5em); left: 40%; letter-spacing: .6em; }
  html:not(.no-hs) .cb--buiten .cb__country { left: 47%; }   /* "Het" is wider than "De" */
  html:not(.no-hs) .panel--arch .caption { max-width: 60%; }   /* two lines on the right, clear of the bush */
  html:not(.no-hs) .panel--title-wide { width: 100vw; }
  html:not(.no-hs) .cb--buiten { top: 40%; }
  html:not(.no-hs) .cb--buiten .cb__word--1 { margin-left: 8%; }
  html:not(.no-hs) .cb--buiten .cb__word--2 { margin-left: 17%; }
  html:not(.no-hs) .cb__note { left: 7vw; right: 7vw; width: auto; bottom: 8vh; }
  html:not(.no-hs) .cb__note p { font-size: 16px; }

  /* "Voor warme zomers / maar ook / zachte winters" */
  html:not(.no-hs) .panel--duo { width: 100vw; padding: 0 6vw; }
  html:not(.no-hs) .duo { font-size: min(12vw, 9vh); }
  html:not(.no-hs) .duo__note { margin-top: 4vh; font-size: 16px; max-width: 32ch; }

  /* statements under the vine and the cascade */
  html:not(.no-hs) .panel--statement { width: 100vw; padding: 0 7vw 9vh; }
  html:not(.no-hs) .statement { gap: 3vh; }
  html:not(.no-hs) .statement__label { font-size: 13px; }
  html:not(.no-hs) .statement__title { font-size: min(10.5vw, 7.5vh); }
  html:not(.no-hs) .statement__text { font-size: 16px; line-height: 1.55; }
  html:not(.no-hs) .panel--statement.panel--home { width: 100vw; padding: 0 7vw 8vh; }
  html:not(.no-hs) .panel--home .statement__title { font-size: min(9.5vw, 7vh); }
  html:not(.no-hs) .panel--home .statement__text { font-size: 15px; }

  /* "Proef de Costa Blanca": the olive above, the copy in the middle */
  html:not(.no-hs) .panel--mesa { width: 100vw; padding: 24vh 7vw 6vh; }
  html:not(.no-hs) .panel--mesa .h-display.h-caps { font-size: min(15vw, 10vh); }
  html:not(.no-hs) .panel--mesa .panel__copy p { font-size: 17px; max-width: 30ch; }

  /* "Mediterráneo" over the pier: a little lower, clear of the badge */
  html:not(.no-hs) .panel > .giant { top: calc(12vh + var(--clip-y, 0%)); }

  /* the clouds keep the composition of a wide screen: scaled to the full height and cropped at the sides
     (--sw is the width of that wide stage), so they cover the screen and part to the left and right.
     The leading clouds rise a little less far over the end of the house scene. */
  .sky { --sw: 177.8vh; --sx: calc((100vw - var(--sw)) / 2); --lead-up: 38vh; --lead-h: 64vh; }
  .sky__lead-cloud--l { width: calc(var(--sw) * 1.2); left: calc(var(--sw) * -0.38 + var(--sx)); }
  .sky__lead-cloud--r { width: calc(var(--sw) * 1.2); right: calc(var(--sw) * -0.4 + var(--sx)); }
  .sky__cloud--veil-l { width: calc(var(--sw) * 1.25); left: calc(var(--sw) * -0.45 + var(--sx)); }
  .sky__cloud--veil-r { width: calc(var(--sw) * 1.25); right: calc(var(--sw) * -0.45 + var(--sx)); }
  .sky__cloud--band-l { width: calc(var(--sw) * 1.15); left: calc(var(--sw) * -0.4 + var(--sx)); }
  .sky__cloud--band-r { width: calc(var(--sw) * 1.15); right: calc(var(--sw) * -0.38 + var(--sx)); }
  .sky__cloud--wisps { width: calc(var(--sw) * 1.3); left: calc(var(--sw) * -0.14 + var(--sx)); }

  /* the cream card over the bedroom photo */
  html:not(.no-hs) .story { left: 16px; bottom: 16px; width: min(78vw, 340px); padding: 22px 20px; gap: 10px; }
  html:not(.no-hs) .story h3 { font-size: 32px; }
  html:not(.no-hs) .story p { font-size: 15.5px; }
}

/* =============================================================================
   Low screens (a phone on its side): the wide layout, with the fixed UI, plants,
   type and cards scaled to the height instead of the width.
   ========================================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  .badge { width: 58px; height: 58px; top: 10px; left: 10px; }
  .sound { right: auto; bottom: auto; left: 80px; top: 20px; width: 38px; height: 38px; }
  .sound svg { width: 18px; height: 18px; }
  .rail { display: none; }
  .nav { top: 12px; right: 14px; }
  .nav__links { display: none; }
  .nav__cta { font-size: 13px; padding: 7px 11px 6px; border: 0; background: rgba(245, 240, 230, .88); color: var(--inkt); text-shadow: none !important; }

  /* hero: the name a little smaller, the plants sized to the height */
  .hero__word { font-size: min(15.5vw, 34vh); }
  .hero__cascade { width: min(25vw, 48vh) !important; right: -4vw; }
  .hero__olive { width: min(16vw, 34vh); }

  /* the three arches: a row with compact captions (no slider: the screen is wide but low). The arches are a
     little wider than on a big screen, so the row fills the width instead of leaving empty sides. */
  .arches { padding: 20vh 3vw 12vh; gap: 7vh; }
  .arches__intro .h-display { font-size: clamp(28px, 4vw, 44px); }
  .arches__olive { width: min(26.4vw, 40vh); }
  .arches__grid { --col: min(calc((100% - 2 * 3.5vw) / 3), calc(.95 * (100vh - 150px))); column-gap: 3.5vw; row-gap: 12px; }
  .arch-card__img { aspect-ratio: 1.05; }
  .arch-card--tall .arch-card__img { aspect-ratio: .95; }
  .arch-card .num { width: 34px; height: 34px; font-size: 12px; }
  .arches__track { margin-top: 16px; }
  .arch-card h3 { font-size: 20px; margin: 8px 0 4px; }
  .arch-card p { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* plants in the horizontal scenes: sized to the height */
  html:not(.no-hs) .fl--gap-top { width: min(24vw, 38vh); }
  html:not(.no-hs) .fl--gap-top.fl--narrow { width: min(15.5vw, 30vh); }
  html:not(.no-hs) .fl--climb { width: min(19vw, 34vh); }
  html:not(.no-hs) .fl--climb.fl--big { width: min(21.5vw, 38vh); }
  html:not(.no-hs) .fl--arch-bush { width: min(25vw, 46vh); }
  html:not(.no-hs) .panel__olive { width: min(26vw, 52vh); }
  html:not(.no-hs) .fl--hang-r, html:not(.no-hs) .panel--home .fl--hang-r { width: min(14vw, 26vh); }

  /* the arch and the giant words: clear of the badge */
  html:not(.no-hs) .arch__title { top: 15vh; }
  html:not(.no-hs) .panel--arch .giant { font-size: min(7vw, 19vh); }
  html:not(.no-hs) .arch__sub { font-size: 16px; }
  html:not(.no-hs) .arch__flank { font-size: clamp(24px, 3.8vw, 40px); }
  html:not(.no-hs) .panel > .giant { top: calc(17vh + var(--clip-y, 0%)); }
  html:not(.no-hs) .pano-text__top { font-size: clamp(20px, 6.4vh, 32px); }

  /* the big words in proportion: the era words a little smaller, "Proef de Costa Blanca" a little bigger */
  html:not(.no-hs) .cb { font-size: 24vh; }
  html:not(.no-hs) .panel--mesa .h-display.h-caps { font-size: 17vh; }
  .guests__quote { font-size: clamp(22px, 6.4vh, 30px); }
  .booking__intro > p:not(.booking__small) { font-size: 17px; }
  .intro__column { display: none; }

  /* text panels: a bit wider, smaller type, so everything fits in the height */
  html:not(.no-hs) .panel--statement { width: max(128vh, 74vw); padding: 0 6vh 6vh; }
  html:not(.no-hs) .statement { gap: 3vh; }
  html:not(.no-hs) .statement__label { font-size: 12px; }
  html:not(.no-hs) .statement__title { font-size: 10.5vh; }
  html:not(.no-hs) .statement__text { font-size: 14px; line-height: 1.5; max-width: 62ch; }
  html:not(.no-hs) .statement__vine { width: 56vh; }
  html:not(.no-hs) .panel--statement.panel--home { width: max(134vh, 80vw); padding: 0 26vh 6vh 6vh; }
  html:not(.no-hs) .panel--title-wide { width: max(112vh, 66vw); }
  html:not(.no-hs) .cb__note { width: min(46vh, 250px); bottom: 9vh; gap: 6px; }
  html:not(.no-hs) .cb__note h3 { font-size: 18px; }
  html:not(.no-hs) .cb__note p { font-size: 13.5px; line-height: 1.5; }
  html:not(.no-hs) .duo__note { font-size: 14px; margin-top: 4vh; }
  html:not(.no-hs) .panel--mesa .panel__copy p { font-size: 15px; }
  html:not(.no-hs) .story { width: min(64vh, 250px); padding: 14px 16px; gap: 6px; left: 12px; bottom: 12px; }
  html:not(.no-hs) .story h3 { font-size: 24px; }
  html:not(.no-hs) .story p { font-size: 13.5px; line-height: 1.45; }
  html:not(.no-hs) .caption { font-size: 15px; left: 12px; bottom: 10px; }
  html:not(.no-hs) .caption--sm { font-size: 13.5px; left: 10px; bottom: 8px; }
  html:not(.no-hs) .panel > .caption { bottom: calc(10px + var(--clip-y, 0%)); }
  html:not(.no-hs) .panel > .caption--sm { bottom: calc(8px + var(--clip-y, 0%)); }
  html:not(.no-hs) .caption--right { left: auto; right: 12px; }

  /* hero: bigger plants (olive +50%, bougainvillea +32%), the line under the name a touch bolder */
  .hero__cascade { width: min(33vw, 63vh) !important; }
  .hero__olive { width: min(24vw, 51vh); }
  .hero__flank { font-weight: 700; }
  .arches__olive { width: min(39.6vw, 60vh); }   /* +50% */

  /* the house scene: the cascade before the road text +30%, the column +18%, the sprig +20%,
     the cascade before the breakfast pair +25% with a wider gap, so the pair moves right */
  html:not(.no-hs) .fl--gap-top { width: min(31.5vw, 50vh); }
  html:not(.no-hs) .fl--gap-top.fl--narrow { width: min(18.6vw, 36vh); }
  html:not(.no-hs) .fl--gap-top.fl--gap-left { width: min(30vw, 47.5vh); }
  html:not(.no-hs) .panel:has(> .fl--gap-left) { --fl-gap: 13vw; margin-left: calc(var(--fl-gap) - var(--hs-gap)); }
  html:not(.no-hs) .fl--climb { width: min(22.4vw, 40vh); }

  /* "Rust & avontuur": a bigger vine, the text a little higher and its body a little smaller */
  html:not(.no-hs) .statement__vine { width: 80vh; }
  html:not(.no-hs) .panel--statement:not(.panel--home) { padding-bottom: 13vh; }
  html:not(.no-hs) .panel--statement:not(.panel--home) .statement__text { font-size: 13px; }

  /* the second scene: plants a third bigger, the olive by "Proef de Costa Blanca" +25%,
     the last cascade twice its size, hanging partly over the closing photo */
  html:not(.no-hs) .panel__olive { width: min(32.5vw, 65vh); }
  html:not(.no-hs) .panel--mesa { padding: 0 2vw 0 28vw; }
  html:not(.no-hs) .hs--proeven .fl--gap-top { width: min(32.4vw, 51vh); }
  html:not(.no-hs) .hs--proeven .panel:has(> .fl--gap-top) { --fl-gap: 10vw; margin-right: calc(var(--fl-gap) - var(--hs-gap)); }
  /* the column by the waterfalls stands in the middle of a wider gap, so it only brushes both photos */
  html:not(.no-hs) .fl--climb.fl--big { width: min(29vw, 51vh); right: calc(var(--fl-gap) / -2); translate: 50% 0; }
  html:not(.no-hs) .panel:has(> .fl--big) { --fl-gap: 16vw; margin-right: calc(var(--fl-gap) - var(--hs-gap)); }
  html:not(.no-hs) .panel--home .fl--hang-r { width: min(28vw, 52vh); }
}

/* phones held upright: the plants in the vertical sections are clearly bigger, and the garland
   above the score is zoomed in (its cut ends fall outside the screen) so it is more than a thin strip */
@media (orientation: portrait) and (max-width: 599px) {
  .hero__cascade { width: 50vw !important; right: -22vw; }
  .hero__olive { width: 30vw; }
  .arches__olive { width: 46vw; }
  .intro__bush { width: 58vw; }
  .booking__orange { width: 54vw; }
  .footer__corner { width: 60vw; }
  .footer__cascade { width: 50vw; }
  .guests__garland { width: 190vw; top: -10vw; }
  .guests { padding-top: calc(52vw + 9vh); }

  /* hero: "Wakker worden · boven de vallei" in the boldest cut with a firmer limewash halo, so it reads over the photo */
  .hero__flank {
    font-weight: 700; font-size: 3.3vw; -webkit-text-stroke: .25px currentColor;
    text-shadow: 0 0 3px rgba(245, 240, 230, .9), 0 1px 14px rgba(245, 240, 230, .95);
  }

  /* horizontal scenes: the photos fill 72% of the screen height (60% on bigger upright screens), so they slide
     past longer; the bedroom leaves 7% above and below; the table grows with them */
  html:not(.no-hs) .panel--img, html:not(.no-hs) .panel--stack { --py: 14vh; }
  html:not(.no-hs) .panel--tall, html:not(.no-hs) .panel--pan, html:not(.no-hs) .panel--full { --py: 0px; }
  html:not(.no-hs) .panel--story { --py: 7vh; }
  html:not(.no-hs) .panel--table { height: 80vh; }

  /* plants about a third bigger; where a big one hangs between two photos the gap widens (--fl-gap),
     so it only brushes the photos. The grapevine over "Rust & avontuur" keeps its size. */
  html:not(.no-hs) .fl--gap-top { width: 60vw; }
  html:not(.no-hs) .fl--gap-top.fl--narrow { width: 39vw; }
  html:not(.no-hs) .panel:has(> .fl--gap-top:not(.fl--gap-left):not(.fl--narrow)) { --fl-gap: 22vw; margin-right: calc(var(--fl-gap) - var(--hs-gap)); }
  html:not(.no-hs) .panel:has(> .fl--gap-left) { --fl-gap: 22vw; margin-left: calc(var(--fl-gap) - var(--hs-gap)); }
  html:not(.no-hs) .fl--climb { width: 50vw; }
  /* the column by the waterfalls stands in the middle of a wider gap, so it only brushes both photos */
  html:not(.no-hs) .fl--climb.fl--big { width: 56vw; right: calc(var(--fl-gap) / -2); translate: 50% 0; }
  html:not(.no-hs) .panel:has(> .fl--big) { --fl-gap: 28vw; margin-right: calc(var(--fl-gap) - var(--hs-gap)); }
  html:not(.no-hs) .panel__olive { width: 80vw; }

  /* the arch: a much bigger bush bottom-left that may reach over the arch; "tot aan de zee" moves right of it */
  html:not(.no-hs) .fl--arch-bush { width: 54vw; }
  html:not(.no-hs) .arch__flank--r { left: 46vw; right: 2vw; padding-left: 0; }

  /* "Rust & avontuur": the text sits in the middle of the screen, under the vine */
  html:not(.no-hs) .panel--statement:not(.panel--home) { align-items: center; padding: 18vh 7vw 6vh; }
}
