/* hero: the film edge to edge behind a directional plum shade; copy at the inline start */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(640px, 100svh); background: var(--deep); color: var(--on-dark); }
.hero__land, .hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__land video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 45%; filter: saturate(0.9) brightness(0.91); }
.hero__shade { z-index: -1; background: linear-gradient(180deg, rgb(36 21 37 / 0.62), rgb(27 17 27 / 0.9) 46%, rgb(36 21 35 / 0.86) 72%, rgb(22 14 24 / 0.95)); }
.hero__inner { padding-block: calc(var(--header) + var(--header-top) + 44px) 56px; }
.hero__copy { max-width: 650px; }
.hero__title { font-weight: 400; font-size: clamp(2.75rem, 11.5vw, 3.75rem); line-height: 1.22; }
[lang="en"] .hero__title { font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
.hero__title:focus { outline: none; }
.hero__line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero__line > span { display: block; }
.hero__line--sand { color: var(--sand); }
.hero__text { margin-block: 14px 24px; max-width: 36ch; color: #f5e2d7; font-size: 1.02rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* the doorway wipe: both lines rise from behind their own mask, once */
@media (prefers-reduced-motion: no-preference) {
  .hero__line > span { animation: hero-line 850ms var(--ease-out) both; }
  .hero__line + .hero__line > span { animation-delay: 105ms; }
}
@keyframes hero-line { from { transform: translateY(106%); } to { transform: none; } }

@media (min-width: 700px) {
  .hero { min-height: 600px; height: min(800px, 100svh); }
  .hero__shade { background: linear-gradient(calc(var(--dir) * 90deg), rgb(26 17 27 / 0.93) 2%, rgb(34 22 33 / 0.73) 28%, rgb(43 23 44 / 0.2) 65%, rgb(36 20 36 / 0.06)), linear-gradient(0deg, rgb(26 17 27 / 0.92), transparent 46%); }
  .hero__inner { padding-block: calc(var(--header) + var(--header-top) + 50px) 70px; }
  .hero__title { font-size: clamp(3.25rem, 6.2vw, 5.5rem); }
  .hero__text { font-size: clamp(1.05rem, 1.35vw, 1.2rem); margin-block: 20px 28px; }
}

/* the full film, in a wide lightbox */
.film {
  width: min(100% - 22px, 1080px); max-width: none; max-height: calc(100dvh - 22px); padding: 0; overflow: auto;
  border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--radius); background: var(--deep); color: var(--on-dark);
  box-shadow: 0 25px 90px rgb(0 0 0 / 0.7); overscroll-behavior: contain;
}
.film::backdrop { background: rgb(22 14 22 / 0.88); }
.film[open] { animation: film-open 250ms var(--ease-out) both; }
@keyframes film-open { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes film-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .film[open] { animation-name: film-fade; } }
html:has(.film[open]) { overflow: hidden; }
.film__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px; padding-inline-start: 18px; }
.film__title { font-size: 1.15rem; font-weight: 500; }
.film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(100dvh - 110px); background: #0e0a10; object-fit: contain; }
.video-error { padding: 10px 16px; color: #f9d8e9; font-size: 0.9rem; }

/* the short film as a cinematic phone: the ridge and the night aerial behind a graphite device */
.story { --shift: 0px; position: relative; isolation: isolate; overflow: hidden; background: #211322; color: var(--ivory); padding-block: 34px 26px; }
.story__landscape, .story__night { position: absolute; inset: -26px 0; z-index: -3; pointer-events: none; }
.story__landscape { background: linear-gradient(180deg, rgb(29 17 37 / 0.65), rgb(36 23 35 / 0.72)), url("img/desert-ridge.webp") center / cover; transform: translateY(var(--shift)); filter: saturate(0.75); }
.story__night {
  z-index: -2; opacity: 0.86; background: linear-gradient(210deg, rgb(32 19 34 / 0.16), rgb(33 18 34 / 0.9) 68%), url("img/experience-night.webp") 45% 57% / cover;
  -webkit-mask-image: linear-gradient(0deg, #000 43%, transparent 87%); mask-image: linear-gradient(0deg, #000 43%, transparent 87%);
  transform: translateY(calc(var(--shift) * -0.55));
}
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(38 19 37 / 0.93) 3%, rgb(40 22 42 / 0.45) 41%, transparent 76%, rgb(32 20 34 / 0.85)); }
.story__inner { display: grid; gap: 14px; align-items: center; }
.story__copy { position: relative; z-index: 2; text-align: center; }
.story .display { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
.story__desc { margin: 12px auto 20px; max-width: 35ch; color: #f4dce4; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.story__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.story__studio { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; padding-block: 14px 8px; }
.story__orbits { position: absolute; inset: 9% 5%; z-index: -2; perspective: 640px; pointer-events: none; }
.story__orbits i { position: absolute; inset: 15% 0; border: 1px solid rgb(239 178 206 / 0.35); border-radius: 50%; transform: rotate(-23deg) rotateX(56deg) translateY(calc(var(--shift) * -0.7)); box-shadow: 0 0 32px rgb(238 117 194 / 0.1), inset 0 0 16px rgb(233 173 197 / 0.07); }
.story__orbits i:nth-child(2) { inset: 21% 9%; border-color: rgb(255 204 155 / 0.3); }
.story__orbits i:nth-child(3) { inset: 27% 18%; border-color: rgb(245 172 206 / 0.26); }
.story__glow { position: absolute; inset: 10% -16%; z-index: -3; pointer-events: none; opacity: 0.6; background: radial-gradient(ellipse, rgb(157 58 119 / 0.36), transparent 57%); transform: translateY(calc(var(--shift) * 0.65)); }
.story[data-visible] .story__glow { animation: desert-glow 7s ease-in-out infinite alternate; }
@keyframes desert-glow { from { opacity: 0.59; } to { opacity: 1; } }
.device {
  position: relative; z-index: 1; width: min(100%, 232px); padding: 13px 9px 11px; border-radius: 34px;
  background: #140e17; border: 2px solid #caa4b1;
  box-shadow: inset 0 0 0 2px #4c3545, 0 30px 48px rgb(11 6 12 / 0.67), 0 0 45px rgb(243 123 179 / 0.18);
  transform: translateY(calc(var(--shift) * 0.34));
}
.device::before, .device::after { content: ""; position: absolute; top: 20%; width: 3px; height: 36px; border-radius: 3px; background: #be9aa7; pointer-events: none; }
.device::before { left: -4px; }
.device::after { right: -4px; top: 25%; height: 51px; }
.device__top { display: flex; align-items: center; justify-content: center; gap: 7px; height: 13px; padding-block-end: 5px; }
.device__top span { width: 42px; height: 5px; border-radius: 999px; background: #4e3548; box-shadow: inset 0 1px #6b5261; }
.device__top b { width: 6px; height: 6px; border-radius: 50%; background: #2c1f33; box-shadow: inset 0 0 0 1.5px #57405a; }
.device video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: #150d16; border-radius: 22px; overflow: hidden; color-scheme: dark; }
.story__note { margin-block-start: 12px; text-align: center; color: #e9cfdc; font-size: 0.8rem; }
@media (min-width: 640px) {
  .story { padding-block: clamp(40px, 5vw, 72px); }
  .story__inner { grid-template-columns: minmax(0, 1fr) minmax(225px, 0.83fr); gap: 15px; min-height: 520px; }
  .story__copy { text-align: start; }
  .story__desc { margin-inline: 0; }
  .story__actions { justify-content: flex-start; }
  .story__studio { min-height: 400px; padding: 0; }
  .story__orbits { inset: 10% -8%; }
  .story__night { -webkit-mask-image: linear-gradient(calc(var(--dir) * -90deg), #000 42%, transparent 76%); mask-image: linear-gradient(calc(var(--dir) * -90deg), #000 42%, transparent 76%); }
  .story::after { background: linear-gradient(0deg, rgb(32 17 34 / 0.96), transparent 43%), linear-gradient(calc(var(--dir) * 90deg), rgb(37 20 38 / 0.91) 4%, rgb(36 22 38 / 0.42) 39%, transparent 65%); }
}
@media (min-width: 900px) {
  .story__inner { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.88fr); min-height: 590px; }
  .story__studio { min-height: 480px; }
  .device { width: min(100%, 268px); border-radius: 39px; }
  .device video { border-radius: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .story__landscape, .story__night, .story__glow, .story__orbits i, .device { transform: none; }
  .story__orbits i { transform: rotate(-23deg) rotateX(56deg); }
  .story[data-visible] .story__glow { animation: none; }
}

/* rates */
.rates { background: #f1e6db; border-block: 1px solid #ebdacb; padding-block: clamp(46px, 6vw, 72px); }
.rate-list { display: grid; border: 1px solid #e2cfc8; border-radius: var(--radius); background: var(--paper-hi); overflow: hidden; }
.rate {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
  border-block-start: 1px solid #e2cfc8; transition: background-color 250ms ease, box-shadow 250ms ease;
}
.rate:first-child { border-block-start: 0; }
.rate[data-current] { background: #fff1f9; box-shadow: inset 0 0 0 1.5px #bc4f94; }
.rate:first-child[data-current] { border-start-start-radius: var(--radius); border-start-end-radius: var(--radius); }
.rate:last-child[data-current] { border-end-start-radius: var(--radius); border-end-end-radius: var(--radius); }
.rate__days { font-size: 1.02rem; font-weight: 500; }
.rate__price { color: var(--magenta); font-weight: 500; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.2; white-space: nowrap; }
.hours { display: grid; gap: 6px; margin-block-start: 20px; color: var(--muted); }
.hours div { display: flex; gap: 8px; }
.hours dt { color: var(--ink); font-weight: 500; }
@media (min-width: 700px) {
  .rate-list { grid-template-columns: repeat(3, 1fr); }
  .rate { display: block; padding: 24px 26px; border-block-start: 0; border-inline-start: 1px solid #e2cfc8; }
  .rate:first-child { border-inline-start: 0; }
  .rate:first-child[data-current] { border-start-end-radius: 0; border-end-start-radius: var(--radius); }
  .rate:last-child[data-current] { border-end-start-radius: 0; border-start-end-radius: var(--radius); }
  .rate__price { margin-block-start: 12px; }
  .hours { display: flex; flex-wrap: wrap; gap: 8px 34px; }
}

/* closing */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-dark); padding-block: clamp(52px, 7vw, 84px); }
.closing__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.48) saturate(0.77); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(5deg, rgb(39 22 38 / 0.85), rgb(36 20 36 / 0.33)); }
.closing__inner { display: grid; gap: 20px; justify-items: start; }
.closing .display { font-size: clamp(2rem, 5vw, 3.75rem); }


/* the stay as one day: a line that carries the light of the hour, from afternoon sand through sunset and night to
   a pale morning; each moment hangs from it. Vertical on phones, a horizon from 900px.
   Motion (home page, once a visit): as the visitor scrolls, the day's light draws along the line with a small sun at
   its head; each moment lights up and its words rise in as the sun reaches it. Everything is visible without the
   script, and with reduced motion the line is simply drawn. */
.leafday { padding-block: clamp(56px, 8vw, 104px); background: var(--paper); }
.leafday__head { display: grid; gap: 14px; max-width: 62ch; margin-block-end: clamp(32px, 5vw, 56px); }
.leafday__intro { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }

.leafday__track { --p: 1; --len: 0px; position: relative; }
.leafday__arc {
  --sky: linear-gradient(180deg, #d9a36a, #c9607e 34%, #3a2240 60%, #241723 76%, #e9d6c2);
  position: relative; display: grid; gap: 34px; padding-inline-start: 34px; list-style: none; padding-block: 0; margin: 0;
}
/* the dim track, and the day's light drawn over it up to --p */
.leafday__arc::before, .leafday__arc::after {
  content: ""; position: absolute; inset-block: 6px; inset-inline-start: 7px; width: 3px; border-radius: 3px;
}
.leafday__arc::before { background: #eadccf; }
.leafday__arc::after { background: var(--sky); clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }

/* the sun at the head of the light */
.leafday__sun {
  position: absolute; inset-block-start: 6px; inset-inline-start: 8.5px; width: 12px; height: 12px; margin: -6px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff7e8 0 34%, #f3c27f 35% 100%);
  box-shadow: 0 0 0 5px rgb(243 194 127 / 0.28), 0 0 22px 6px rgb(233 140 90 / 0.45);
  transform: translateY(calc(var(--p) * var(--len)));
}
.js .leafday__track[data-live] .leafday__sun { opacity: 1; transition: opacity 300ms var(--ease-out); }
.leafday__track[data-done] .leafday__sun { opacity: 0 !important; }

.leafday__moment { position: relative; display: grid; gap: 4px; }
.leafday__moment::before {
  content: ""; position: absolute; z-index: 1; inset-block-start: 6px; inset-inline-start: -34px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px var(--dot);
  transition: box-shadow 400ms var(--ease-out), background-color 400ms var(--ease-out), transform 400ms var(--ease-out);
}
/* a ring that opens once around the dot when its moment lights */
.leafday__moment::after {
  content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: -34px; width: 17px; height: 17px;
  border-radius: 50%; border: 2px solid var(--dot); opacity: 0; transform: scale(1); pointer-events: none;
}
.leafday__moment[data-moment="afternoon"] { --dot: #d9a36a; }
.leafday__moment[data-moment="sunset"] { --dot: #c9607e; }
.leafday__moment[data-moment="night"] { --dot: #382236; }
.leafday__moment[data-moment="night"]::before { background: #382236; box-shadow: inset 0 0 0 4px #382236, 0 0 0 3px rgb(56 34 54 / 0.15); }
.leafday__moment[data-moment="morning"] { --dot: #c9a985; }
.leafday__time { color: var(--magenta); font-size: 0.9rem; font-weight: 500; }
.leafday__title { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 500; line-height: 1.35; }
.leafday__text { color: var(--muted); max-width: 40ch; }
.leafday__note { margin-block-start: 26px; color: var(--muted); font-size: 0.92rem; }

/* waiting for the sun: set only by the script, so a page without it shows everything */
.leafday__moment > * { transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out), filter 520ms var(--ease-out); }
.leafday__moment > :nth-child(2) { transition-delay: 70ms; }
.leafday__moment > :nth-child(3) { transition-delay: 140ms; }
.leafday__moment[data-wait] > * { opacity: 0; transform: translateY(14px); filter: blur(3px); }
.leafday__moment[data-wait]::before { box-shadow: inset 0 0 0 4px #e3d3c5; background: var(--paper); transform: scale(0.82); }
.leafday__moment[data-lit]::after { animation: leafday-ring 900ms var(--ease-out) both; }
@keyframes leafday-ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }

@media (min-width: 900px) {
  .leafday__arc {
    --sky: linear-gradient(calc(var(--dir) * 90deg), #d9a36a, #c9607e 34%, #3a2240 60%, #241723 76%, #e9d6c2);
    grid-template-columns: repeat(4, 1fr); gap: 32px; padding-inline-start: 0; padding-block-start: 38px;
  }
  .leafday__arc::before, .leafday__arc::after { inset-block: 7px auto; inset-inline: 0; width: auto; height: 3px; }
  .leafday__arc::after { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
  [dir="rtl"] .leafday__arc::after { clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%)); }
  .leafday__sun { inset-block-start: 8.5px; inset-inline-start: 0; transform: translateX(calc(var(--dir) * var(--p) * var(--len))); }
  .leafday__moment::before, .leafday__moment::after { inset-block-start: -38px; inset-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .leafday__track { --p: 1 !important; }
  .leafday__sun { display: none; }
  .leafday__moment > * { transition-property: opacity; transform: none !important; filter: none !important; }
  .leafday__moment[data-wait]::before { transform: none; }
  .leafday__moment[data-lit]::after { animation: none; }
}
