/* =========================================================
   IRUVAI — private island, Maldives
   tokens → base → layout → components → animation → @media
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #D9D4CC;
  --sand: #D9CFC0;
  --lagoon: #9ECFC9;
  --teak: #6B5646;
  --deep: #0F3D52;
  --night: #10171C;
  --night-sky: #142B45;
  --glow: #7FE7F2;

  --page: var(--bg);
  --ink: #14201F;
  --ink-muted: rgba(20, 32, 31, .62);
  --paper: #F1EEE8;
  --paper-muted: rgba(241, 238, 232, .64);
  --line: rgba(20, 32, 31, .16);
  --line-dark: rgba(241, 238, 232, .18);

  --radius-card: 28px;
  --radius-pill: 999px;
  --gutter: clamp(20px, 3.2vw, 56px);
  --max: 1680px;
  --nav-h: 76px;

  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --vh: 1vh;

  --f-serif: "Noto Serif Display", "Times New Roman", serif;
  --f-brand: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--page);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.005em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, picture, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--bg); font-size: 14px;
  transform: translateY(-160%); transition: transform .3s var(--ease-quint);
}
.skip:focus-visible { transform: none; }

[data-tone="paper"] { color: var(--paper); }
[data-tone="ink"] { color: var(--ink); }

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

.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-fill img, video.media-fill { width: 100%; height: 100%; object-fit: cover; }

main, .reserve { position: relative; z-index: 2; }

/* ---------- type ---------- */
.h1 {
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: clamp(44px, 8.35vw, 152px);
  line-height: .92;
  letter-spacing: -.025em;
}
.h1 em { display: inline-block; padding-right: .04em; }
.h1__set { display: block; }
.h1__set--m { display: none; }

.h2 {
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: clamp(36px, 5.8vw, 104px);
  line-height: 1;
  letter-spacing: -.02em;
}
.h2--xl { font-size: clamp(42px, 6.7vw, 120px); line-height: .96; }
.h2 em { padding-right: .04em; }

.line {
  display: block;
  overflow: hidden;
  padding-bottom: .09em;
  margin-bottom: -.09em;
}
.line > span { display: inline-block; }

.label,
.link-mono,
.nav__clock,
.hero__meta,
.rail,
.vrow__num, .vrow__meta, .vrow__price,
.ritual__num, .ritual__time,
.field__label, .rform__note,
.night__hint, .foot, .menu__foot, .facts,
.pre__brand, .pre__count {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label { display: block; margin-bottom: 28px; opacity: .72; }

.link-mono {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.link-mono::after,
.u-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-expo);
}
.u-link { position: relative; display: inline-block; }
.u-link::after { bottom: -3px; }

/* ---------- glass ---------- */
.glass,
.glass-strong {
  position: relative;
  border: none;
  background-blend-mode: luminosity;
  overflow: hidden;
}
.glass {
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18);
}
.glass-strong {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(50px) saturate(120%);
  -webkit-backdrop-filter: blur(50px) saturate(120%);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, .05), inset 0 1px 1px rgba(255, 255, 255, .15);
}
.glass::before,
.glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .45) 0%,
    rgba(255, 255, 255, .15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, .15) 80%,
    rgba(255, 255, 255, .45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-strong::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .5) 0%,
    rgba(255, 255, 255, .2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, .2) 80%,
    rgba(255, 255, 255, .5) 100%);
}
.nav[data-tone="paper"] .glass { background: rgba(255, 255, 255, .08); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  overflow: hidden;
  transition: color .4s var(--ease-quint);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lagoon);
  transform: translateX(-101%);
  transition: transform .4s var(--ease-quint);
}
.btn--light { background: var(--paper); color: var(--ink); }
.btn:active { transform: scale(.98); }

.pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- preloader ---------- */
.preloader { display: none; }
html.js .preloader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
}
.pre__half {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: var(--bg);
  transition: transform 1.1s var(--ease-inout);
}
.pre__half--top { top: 0; }
.pre__half--bot { bottom: 0; }
.pre__center { position: absolute; inset: 0; color: var(--ink); transition: opacity .45s var(--ease-quint); }
.pre__brand,
.pre__count {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.pre__brand { top: calc(50% - 38px); letter-spacing: .5em; margin-left: .25em; font-size: 13px; }
.pre__count { top: calc(50% + 22px); font-variant-numeric: tabular-nums; opacity: .7; }
.pre__line {
  position: absolute;
  left: 50%; top: 50%;
  width: 38vw; height: 1px;
  transform: translate(-50%, -50%);
}
.pre__line i {
  position: absolute; inset: 0;
  background: rgba(20, 32, 31, .5);
  transform: scaleX(0);
}
.preloader.is-out { pointer-events: none; }
.preloader.is-out .pre__half--top { transform: translateY(-100%); }
.preloader.is-out .pre__half--bot { transform: translateY(100%); }
.preloader.is-out .pre__center { opacity: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: calc(var(--nav-h) + var(--safe-t));
  padding: var(--safe-t) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  transition: color .5s var(--ease-quint), transform .6s var(--ease-expo);
}
.nav.is-hidden { transform: translateY(-110%); transition-duration: .5s, .4s; transition-timing-function: var(--ease-quint), var(--ease-inout); }
.nav__brand {
  --ls: .5em;
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: var(--ls);
  margin-right: calc(var(--ls) * -1);
  padding: 12px 0;
}
/* letters are shared elements of the morph from the portfolio: tracking as a margin, not letter-spacing, so each box hugs its glyph */
.nav__brand .ch { display: inline-block; letter-spacing: 0; margin-right: var(--ls); line-height: 1; }
.nav__links { display: flex; gap: 36px; font-size: 13px; font-weight: 500; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav__clock { opacity: .72; white-space: nowrap; }
.nav__clock time { font-variant-numeric: tabular-nums; }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger i,
.menu__close i {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.burger i:nth-child(1) { top: 18px; }
.burger i:nth-child(2) { top: 25px; }

/* ---------- menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--safe-t)) var(--gutter) calc(80px + var(--safe-b));
  background: var(--bg);
  color: var(--ink);
  clip-path: circle(0 at var(--ox, 92%) var(--oy, 4%));
  transition: clip-path .7s var(--ease-inout);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150% at var(--ox, 92%) var(--oy, 4%)); }
.menu__close {
  position: absolute;
  top: calc(var(--safe-t) + (var(--nav-h) - 44px) / 2);
  right: calc(var(--gutter) - 10px);
  width: 44px; height: 44px;
}
.menu__close i { top: 21px; }
.menu__close i:nth-child(1) { transform: rotate(45deg); }
.menu__close i:nth-child(2) { transform: rotate(-45deg); }
.menu__links { display: grid; gap: 2px; }
.menu__links a {
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-size: clamp(44px, 12vw, 72px);
  line-height: 1.08;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-quint), transform .6s var(--ease-quint);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .32s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .39s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .46s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .53s; }
.menu__foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(28px + var(--safe-b));
  display: flex;
  justify-content: space-between;
  opacity: .72;
}

/* ---------- cursor ---------- */
.cursor { display: none; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  left: 0; top: 0;
  border-radius: 50%;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: currentColor; }
.cursor__ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  transition: width .5s var(--ease-expo), height .5s var(--ease-expo), margin .5s var(--ease-expo), background-color .4s;
}
.cursor__ring em {
  width: 64px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transition: opacity .3s var(--ease-quint);
}
.cursor.is-water .cursor__ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  background-color: rgba(255, 255, 255, .08);
}
.cursor.is-water .cursor__ring em { opacity: 1; transition-delay: .15s; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }

/* ---------- canvas / grain / previews ---------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.vpreview {
  position: fixed;
  left: 0; top: 0;
  z-index: 1;
  width: 26vw;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-quint), visibility 0s .5s;
}
.vpreview.is-on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-quint); }
.vpreview video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s var(--ease-quint);
}
.vpreview video.is-active { opacity: 1; }
html.gl-villa .vpreview { opacity: 0 !important; }

/* =========================================================
   SECTIONS
   ========================================================= */

/* ---------- 1 · hero ---------- */
.hero { position: relative; height: 170svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__frame { position: absolute; inset: 0; background: #B9C6CE; }
.hero__poster img { object-position: 50% 50%; }
.hero__video { opacity: 0; object-position: 50% 50%; }
/* GL takes over: the canvas under <main> already draws the same frame, the DOM one melts off it (no hard swap) */
html.gl-hero .hero__frame { opacity: 0; transition: opacity .6s var(--ease-quint); }

.hero__copy {
  position: absolute;
  inset: 0;
  padding: 0 var(--gutter);
  transform: translate3d(0, calc(var(--hc, 0) * -8svh), 0);
  opacity: calc(1 - var(--hc, 0));
  pointer-events: none;
}
.hero__copy a { pointer-events: auto; }
.hero .h1 { position: absolute; left: var(--gutter); right: var(--gutter); top: 15svh; text-align: center; }
/* empty proxy over the first line: «Мальдивы» from the portfolio lands here (the headline itself stays in the live frame and rises line by line) */
.h1__vt { position: absolute; left: 50%; top: 0; width: 4.6em; height: .92em; margin-left: -2.3em; pointer-events: none; }
.hero__sub {
  position: absolute;
  left: var(--gutter);
  bottom: calc(88px + var(--safe-b));
  max-width: 440px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.hero__cta {
  position: absolute;
  right: var(--gutter);
  bottom: calc(80px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero__meta {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(26px + var(--safe-b));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  opacity: calc(.78 - var(--hc, 0));
}

/* ---------- 2 · manifesto ---------- */
.manifesto {
  position: relative;
  isolation: isolate;
  background: var(--page);
  padding: 24svh 0 22svh;
  overflow: hidden;
}
.manifesto__shadow {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  mix-blend-mode: multiply;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.manifesto__inner { position: relative; }
.manifesto__text {
  max-width: 15.5em;
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-size: clamp(28px, 4vw, 72px);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.manifesto__text .w { display: inline-block; white-space: nowrap; }
.facts {
  display: flex;
  gap: clamp(28px, 5vw, 80px);
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  opacity: .8;
}
.facts b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

/* ---------- 3/5 · scroll scenes ---------- */
.scene { position: relative; }
.scene--descent { height: 500svh; }
.scene--dive { height: 360svh; }
.scene__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene--descent .scene__stage { background: var(--bg); }
.scene--dive .scene__stage { background: #7FB9B5; }
.scene__poster img, .scene__end img { object-position: 50% 50%; }
.scene__end { opacity: 0; }
.scene__video { opacity: 0; transition: opacity .35s var(--ease-quint); }
.scene.is-ready .scene__video { opacity: 1; }
.scene__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18svh;
  background: linear-gradient(to bottom, rgba(15, 61, 82, 0), var(--deep));
  opacity: var(--fade, 0);
  pointer-events: none;
}
.scene--descent .scene__stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  height: 34svh;
  background: linear-gradient(to bottom, var(--bg), rgba(217, 212, 204, 0));
  opacity: max(0, calc(1 - var(--p, 0) * 14));
  pointer-events: none;
}
.scene__panels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.panel {
  position: absolute;
  left: var(--gutter);
  bottom: 14svh;
  max-width: min(820px, 72vw);
  opacity: 0;
  will-change: opacity, transform;
}
.panel.is-active { pointer-events: auto; }
.panel[data-pos="top"] { bottom: auto; top: calc(var(--nav-h) + var(--safe-t) + 9svh); }
.panel[data-tone="paper"] { text-shadow: 0 1px 24px rgba(0, 0, 0, .22); }
.panel__text { max-width: 420px; margin-top: 26px; font-size: 17px; line-height: 1.5; opacity: .86; }
.panel .link-mono { margin-top: 24px; }

.rail {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: end;
  gap: 14px;
  opacity: .8;
  transition: color .5s var(--ease-quint);
}
.rail__bar {
  position: relative;
  width: 1px;
  height: 30svh;
  background: rgba(20, 32, 31, .28);
  background: color-mix(in srgb, currentColor 28%, transparent);
}
.rail__bar b {
  position: absolute;
  left: -1px;
  top: calc(var(--p, 0) * (100% - 28px));
  width: 3px; height: 28px;
  background: currentColor;
}
.rail__value { font-variant-numeric: tabular-nums; min-width: 8ch; text-align: right; }

/* ---------- 4 · villas ---------- */
.villas { position: relative; padding: 22svh 0 20svh; }
.sec-head { margin-bottom: 11svh; }
.vlist { list-style: none; margin: 0; padding: 0; position: relative; }
.vrow { position: relative; }
.vrow::before,
.vlist::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(var(--ls, 1));
  transform-origin: left;
  transition: transform 1.2s var(--ease-quart);
}
.vrow::before { top: 0; }
.vlist::after { bottom: 0; }
.vrow__link {
  display: grid;
  grid-template-columns: minmax(56px, 8vw) 1fr auto;
  grid-template-areas:
    "num name meta"
    "num name price";
  align-items: end;
  column-gap: 24px;
  row-gap: 8px;
  padding: 30px 0 34px;
}
.vrow__num { grid-area: num; align-self: start; padding-top: 1.2em; opacity: .6; }
.vrow__name {
  grid-area: name;
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-size: clamp(44px, 7.2vw, 138px);
  line-height: .95;
  letter-spacing: -.02em;
  transition: transform .7s var(--ease-expo), opacity .5s var(--ease-quint), filter .5s var(--ease-quint);
}
.vrow__meta { grid-area: meta; text-align: right; opacity: .72; }
.vrow__price { grid-area: price; text-align: right; }
.vrow__media { display: none; }

/* ---------- 6 · rituals ---------- */
.rituals {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(560px, 40vw));
  column-gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding: 20svh var(--gutter) 22svh;
}
.rituals > .wrap { padding: 0; margin: 0; }
.rituals .sec-head { position: sticky; top: 34svh; margin: 0; }
.rstack { display: grid; }
.ritual {
  position: sticky;
  top: calc(var(--nav-h) + 4svh);
  height: 78svh;
  margin-bottom: 14svh;
}
.ritual:nth-child(2) { top: calc(var(--nav-h) + 4svh + 28px); }
.ritual:nth-child(3) { top: calc(var(--nav-h) + 4svh + 56px); margin-bottom: 0; }
.ritual__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1B3A4A;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--k, 0) * .06));
  filter: brightness(calc(1 - var(--k, 0) * .3));
}
.ritual__card img { width: 100%; height: 100%; object-fit: cover; }
.ritual:nth-child(1) .ritual__card img { object-position: 50% 40%; }
.ritual:nth-child(2) .ritual__card img { object-position: 50% 45%; }
.ritual:nth-child(3) .ritual__card img { object-position: 50% 50%; }

.pblur { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none; }
.pblur i { position: absolute; inset: 0; }
.pblur i:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); mask: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.pblur i:nth-child(2) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); mask: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.pblur i:nth-child(3) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); mask: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.pblur i:nth-child(4) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); mask: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.pblur i:nth-child(5) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); mask: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }
.pblur i:nth-child(6) { -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); -webkit-mask: linear-gradient(to bottom, transparent 62.5%, #000 75%); mask: linear-gradient(to bottom, transparent 62.5%, #000 75%); }
.pblur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(8, 20, 28, .55) 100%); }

.ritual__caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 22px 24px 24px;
  border-radius: 20px;
  color: var(--paper);
  opacity: calc(1 - var(--k, 0));
}
.ritual__num { grid-column: 1; opacity: .7; }
.ritual__time { grid-column: 2; grid-row: 1; opacity: .7; }
.ritual__name {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: var(--f-serif);
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.ritual__caption p { grid-column: 1 / -1; font-size: 15px; line-height: 1.45; opacity: .82; }

/* ---------- 7 · night ---------- */
.night {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  cursor: none;
}
.night__media { position: absolute; inset: 0; }
.night__media img { object-position: 50% 50%; }
.night__glow {
  -webkit-mask-image: radial-gradient(circle var(--nr, 240px) at var(--mx, 50%) var(--my, 62%), #000 40%, transparent 100%);
  mask-image: radial-gradient(circle var(--nr, 240px) at var(--mx, 50%) var(--my, 62%), #000 40%, transparent 100%);
}
html.gl-night .night__media { opacity: 0; }
.night__copy { position: relative; z-index: 1; padding-top: 13svh; pointer-events: none; }
.night__copy a { pointer-events: auto; }
.night__text { max-width: 420px; margin-top: 26px; font-size: 17px; line-height: 1.5; opacity: .82; }
.night__hint { margin-top: 30px; color: var(--glow); letter-spacing: .2em; }
.hint-touch { display: none; }

/* ---------- 8 · reserve ---------- */
.reserve { background: #000; color: var(--paper); }
.reserve__stage { position: relative; min-height: 100svh; overflow: hidden; background: var(--night); }
.reserve__poster img { object-position: 50% 50%; }
.reserve__video { opacity: 0; object-position: 50% 50%; }
.reserve__stage::before,
.reserve__stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.reserve__stage::before { top: 0; height: 22svh; background: linear-gradient(to bottom, var(--page), transparent); z-index: 1; }
.reserve__stage::after { bottom: 0; height: 24svh; background: linear-gradient(to bottom, transparent, #000); }
.reserve__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 48px;
  padding-top: calc(var(--nav-h) + 12svh);
  padding-bottom: 20svh;
}
.reserve__copy { max-width: 560px; }
.reserve__text { max-width: 380px; margin-top: 24px; font-size: 17px; line-height: 1.5; opacity: .82; }

.rform { width: 100%; max-width: 480px; min-width: 0; padding: 28px; border-radius: var(--radius-card); }
.rform__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 14px;
  transition: opacity .4s var(--ease-quint), visibility 0s;
}
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field__label { opacity: .72; }
.field input,
.field select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--paper);
  font: 400 16px/1 var(--f-sans);
  color-scheme: dark;
  transition: border-color .3s, background-color .3s;
}
.field select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23F1EEE8' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { color: #14201F; }
.field input:focus-visible,
.field select:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-color: transparent; }
.field.is-invalid input,
.field.is-invalid select { border-color: #F2A99A; background-color: rgba(242, 169, 154, .08); }
.field__error { font-size: 12px; line-height: 1.3; color: #F6B8A9; }
.field__error:empty { display: none; }
.rform__submit { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.rform__note { grid-column: 1 / -1; opacity: .56; }
.rform__done {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .6s var(--ease-quint) .3s, transform .6s var(--ease-quint) .3s, visibility 0s .9s;
}
.rform__done-title { font-family: var(--f-serif); font-stretch: 87.5%; font-size: 48px; line-height: 1; }
.rform.is-sent .rform__fields { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-quint), visibility 0s .4s; }
.rform.is-sent .rform__done { opacity: 1; visibility: visible; transform: none; transition-delay: .3s, .3s, 0s; }

.wordmark {
  position: relative;
  isolation: isolate;
  background: #000;
  overflow: hidden;
}
.wordmark video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}
.wordmark__mask {
  position: relative;
  display: flex;
  justify-content: center;
  background: #000;
  color: #fff;
  mix-blend-mode: multiply;
}
.wordmark__mask span {
  display: block;
  font-family: var(--f-brand);
  font-size: 35vw;
  line-height: .78;
  letter-spacing: -.035em;
  padding: .04em 0 .06em;
  transform: translate3d(0, var(--wy, 0px), 0);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: calc(28px + var(--safe-b));
  color: var(--paper-muted);
  background: #000;
}

/* =========================================================
   ANIMATION STATES
   ========================================================= */

/* intro (only with JS, until html.intro-run) */
html.js .hero .line > span { transform: translateY(110%); }
html.js .hero .h1 em { opacity: .35; filter: blur(4px); }
html.js .intro-up { opacity: 0; transform: translateY(24px); }
html.js .intro-fade { opacity: 0; }
html.js .nav > * { opacity: 0; transform: translateY(-12px); }

html.intro-run .hero .line > span { transform: none; transition: transform 1.25s var(--ease-expo); }
html.intro-run .hero .line:nth-child(1) > span { transition-delay: .3s; }
html.intro-run .hero .line:nth-child(2) > span { transition-delay: .42s; }
html.intro-run .hero .line:nth-child(3) > span { transition-delay: .54s; }
html.intro-run .hero .h1 em { opacity: 1; filter: blur(0); transition: opacity .9s var(--ease-quint) .65s, filter .9s var(--ease-quint) .65s; }
html.intro-run .intro-up { opacity: 1; transform: none; transition: opacity .9s var(--ease-quint) .75s, transform .9s var(--ease-quint) .75s; }
html.intro-run .hero__cta.intro-up { transition-delay: .85s; }
html.intro-run .intro-fade { opacity: 1; transition: opacity .8s var(--ease-quint) 1.1s; }
html.intro-run .nav > * { opacity: 1; transform: none; transition: opacity .6s var(--ease-expo) .5s, transform .6s var(--ease-expo) .5s; }
html.intro-run .nav > *:nth-child(2) { transition-delay: .58s; }
html.intro-run .nav > *:nth-child(3) { transition-delay: .66s; }

/* morph from the portfolio («Смотреть проект» → this page, cross-document View Transitions; guard in <head> sets the classes):
   html.from-work — came by morph: no preloader, intro() gives intro-run at once;
   html.vt-in — entry under the flight: shared targets are visible from the first frame, the rest comes in with CSS animations
   (a transition can't start on the first frame — there is no "before" style); html.vt-names — names of the shared elements
   (pageswap / pagereveal toggle them). The portfolio side of every pair lives in ../style.css (section 18) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

html.from-work .preloader { display: none; }

html.vt-names .nav__brand .ch { view-transition-class: vt-ch; }
html.vt-names .nav__brand .ch:nth-child(1) { view-transition-name: vt-l1; }
html.vt-names .nav__brand .ch:nth-child(2) { view-transition-name: vt-l2; }
html.vt-names .nav__brand .ch:nth-child(3) { view-transition-name: vt-l3; }
html.vt-names .nav__brand .ch:nth-child(4) { view-transition-name: vt-l4; }
html.vt-names .nav__brand .ch:nth-child(5) { view-transition-name: vt-l5; }
html.vt-names .nav__brand .ch:nth-child(6) { view-transition-name: vt-l6; }
html.vt-names .h1__vt { view-transition-name: vt-title; }
html.vt-names .hero__meta span:first-child { view-transition-name: vt-meta; view-transition-class: vt-txt; }
html.vt-names .hero__cta .btn { view-transition-name: vt-cta; view-transition-class: vt-shape; }
html.vt-names .hero__cta .btn > span { view-transition-name: vt-cta-t; view-transition-class: vt-txt; }
html.vt-names .nav__right .pill { view-transition-name: vt-pill; view-transition-class: vt-shape; }
html.vt-names .nav__right .pill > span { view-transition-name: vt-pill-t; view-transition-class: vt-txt; }

/* a snapshot doesn't carry an ancestor's opacity: containers of the shared targets stay visible, their other children animate in */
html.vt-in .nav > *,
html.vt-in .intro-up,
html.vt-in .intro-fade { opacity: 1; transform: none; transition: none; }
html.vt-in .hero .line > span { transform: none; transition: none; animation: vt-rise 1.25s var(--ease-expo) .25s backwards; }
html.vt-in .hero .line:nth-child(2) > span { animation-delay: .37s; }
html.vt-in .hero .line:nth-child(3) > span { animation-delay: .49s; }
html.vt-in .hero .h1 em { opacity: 1; filter: none; transition: none; animation: vt-em .9s var(--ease-quint) .55s backwards; }
html.vt-in :is(.nav__links, .nav__clock, .burger) { animation: vt-drop .6s var(--ease-expo) .85s backwards; }
html.vt-in :is(.nav__clock, .burger) { animation-delay: .92s; }
html.vt-in .hero__sub { animation: vt-up .9s var(--ease-quint) .9s backwards; }
html.vt-in .hero__cta .link-mono { animation: vt-up .9s var(--ease-quint) 1s backwards; }
html.vt-in .hero__meta span:last-child { animation: vt-fade .8s var(--ease-quint) 1.1s backwards; }

/* the flight (this page is the new one): IRUVAI letter by letter (28 ms) into the brand, blur mid-way; pill backgrounds stretch,
   their text swaps halfway at natural size */
html.vt-names::view-transition-group(*) { animation-duration: .9s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
html.vt-names::view-transition-group(vt-l2) { animation-delay: 28ms; }
html.vt-names::view-transition-group(vt-l3) { animation-delay: 56ms; }
html.vt-names::view-transition-group(vt-l4) { animation-delay: 84ms; }
html.vt-names::view-transition-group(vt-l5) { animation-delay: 112ms; }
html.vt-names::view-transition-group(vt-l6) { animation-delay: 140ms; }
html.vt-names::view-transition-image-pair(*.vt-ch) { animation: vt-blur .9s cubic-bezier(.7, 0, .2, 1) both; animation-delay: inherit; }
html.vt-names::view-transition-old(*.vt-shape),
html.vt-names::view-transition-new(*.vt-shape) { height: 100%; object-fit: fill; }
html.vt-names::view-transition-old(*.vt-txt),
html.vt-names::view-transition-new(*.vt-txt) { inset: 0; width: auto; height: auto; margin: auto; }
html.vt-names::view-transition-old(vt-meta),
html.vt-names::view-transition-new(vt-meta) { inset: 0 auto 0 0; margin: auto 0; }
html.vt-names::view-transition-old(*.vt-txt) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
html.vt-names::view-transition-new(*.vt-txt) { animation: vt-in .45s var(--ease-quint) .4s both; }
/* «Мальдивы» flies to the headline and dissolves; the proxy is empty — the headline rises live in the root */
html.vt-names::view-transition-old(vt-title) { animation: vt-dissolve .45s cubic-bezier(.4, 0, 1, 1) both; }
html.vt-names::view-transition-new(vt-title) { animation: none; opacity: 0; }
/* the frame: the photo starts at the portfolio cover's zoom (--vt-s, same frame pixel for pixel) and exhales to 1.
   The old frame (that very cover) exhales in lockstep (1 → 1/--vt-s: both scales are linear in the same eased t, so the two stay
   aligned pixel for pixel) and melts slowly on top — the cover's grade blends into the photo instead of popping. The <head> guard
   holds the melt until the hero photo is decoded, so the photo can't pop in under it */
html.vt-names::view-transition-old(root) { z-index: 1; animation: vt-out .5s cubic-bezier(.4, 0, .2, 1) .05s both, vt-exhale-old 1.2s var(--ease-expo) .2s both; }
html.vt-names::view-transition-new(root) { animation: vt-exhale 1.2s var(--ease-expo) .2s both; }
@media (max-width: 767px) and (orientation: portrait) {
  html.vt-names::view-transition-old(root) { animation: vt-out .5s ease both; } /* hero-mobile is another frame — a plain crossfade */
}
@keyframes vt-rise { from { transform: translateY(110%); } }
@keyframes vt-em { from { opacity: .35; filter: blur(4px); } }
@keyframes vt-drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes vt-fade { from { opacity: 0; } }
@keyframes vt-blur { 50% { filter: blur(1.5px); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-dissolve { to { opacity: 0; filter: blur(12px); } }
@keyframes vt-exhale { from { transform: scale(var(--vt-s, 1)); } }
@keyframes vt-exhale-old { to { transform: scale(calc(1 / var(--vt-s, 1))); } }

/* scroll reveals */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-quint), transform .9s var(--ease-quint); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .facts .reveal:nth-child(2) { transition-delay: .08s; }
html.js .facts .reveal:nth-child(3) { transition-delay: .16s; }
html.js .reveal-lines .line > span { transform: translateY(110%); transition: transform 1.1s var(--ease-expo); }
html.js .reveal-lines .line:nth-child(2) > span { transition-delay: .1s; }
html.js .reveal-lines.is-in .line > span { transform: none; }
html.js .vlist { --ls: 0; }
html.js .vlist.is-in { --ls: 1; }
html.js .vrow:nth-child(2)::before { transition-delay: .12s; }
html.js .vrow:nth-child(3)::before { transition-delay: .24s; }
html.js .vlist::after { transition-delay: .36s; }

/* =========================================================
   @media
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  .u-link:hover::after,
  .link-mono:hover::after { transform: scaleX(1); transform-origin: left; }
  .btn:hover::before { transform: none; }
  .btn:hover { color: var(--ink); }

  html.js .cursor {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 60;
    pointer-events: none;
    color: var(--ink);
    opacity: 0;
    transition: opacity .3s var(--ease-quint);
  }
  html.js .cursor.is-on { opacity: 1; }
  html.js.cursor-on .hero__stage { cursor: none; }
  html.js.cursor-on .hero__stage a { cursor: pointer; }

  .vlist.is-hovering .vrow:not(.is-active) .vrow__name { opacity: .32; filter: blur(1px); }
  .vrow.is-active .vrow__name { transform: translateX(24px); }
}
.u-link:focus-visible::after,
.link-mono:focus-visible::after { transform: scaleX(1); }

/* villas: cards instead of hover list */
@media (hover: none), (pointer: coarse), (max-width: 1023px) {
  .vrow__link {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num meta"
      "name name"
      "price price";
    row-gap: 14px;
    padding: 26px 0 22px;
  }
  .vrow__num { padding-top: 0; align-self: center; }
  .vrow__meta { align-self: center; }
  .vrow__price { text-align: left; }
  .vrow__media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    margin-bottom: 44px;
    border-radius: 20px;
    overflow: hidden;
    background: center / cover no-repeat var(--sand);
  }
  .vrow__media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
  .vpreview { display: none; }
  .night { cursor: auto; }
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

@media (max-width: 1023px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__clock { display: none; }
  .nav__right { gap: 12px; }
  .burger { display: block; }

  .rituals { grid-template-columns: 1fr; row-gap: 8svh; }
  .rituals .sec-head { position: relative; top: auto; }
  .ritual { height: 78svh; max-width: 560px; width: 100%; margin-left: auto; margin-right: auto; }

  .reserve__inner { padding-top: calc(var(--nav-h) + 10svh); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__sub { max-width: 420px; font-size: 17px; }
}

@media (max-width: 767px) {
  .field--wide { grid-column: 1 / -1; }
  .h1 { font-size: clamp(44px, 14.4vw, 64px); }
  .h1__set--d { display: none; }
  .h1__set--m { display: block; }
  .hero .h1 { top: 16svh; }
  .hero__sub {
    left: var(--gutter); right: var(--gutter);
    bottom: calc(142px + var(--safe-b));
    max-width: 300px;
    font-size: 16px;
  }
  .hero__cta { left: var(--gutter); right: auto; bottom: calc(68px + var(--safe-b)); gap: 22px; }
  .hero__cta .btn { height: 52px; padding: 0 24px; }
  .hero__meta span:last-child { display: none; }
  .hero__poster img, .hero__video { object-position: 50% 60%; }

  .pill { height: 36px; padding: 0 16px; font-size: 12.5px; }
  .nav__brand { font-size: 12px; --ls: .42em; }

  .manifesto { padding: 18svh 0 16svh; }
  .manifesto__shadow { object-position: 72% 50%; }
  .facts { margin-top: 48px; }

  .panel { right: var(--gutter); max-width: none; bottom: 12svh; }
  .panel__text { font-size: 16px; }
  .rail { top: auto; bottom: auto; top: calc(var(--nav-h) + var(--safe-t) + 24px); transform: none; }
  .rail__bar { height: 14svh; }

  .villas { padding: 16svh 0 12svh; }
  .sec-head { margin-bottom: 8svh; }

  .rituals { padding: 16svh var(--gutter) 16svh; }
  .ritual { height: 72svh; margin-bottom: 10svh; }
  .ritual__caption { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px 20px; }

  .night__copy { padding-top: 14svh; }

  .rform { padding: 20px; }
  .reserve__inner { gap: 36px; padding-bottom: 14svh; }
  .foot { flex-direction: column; }
}

@media (max-width: 359px) {
  .rform__fields { grid-template-columns: 1fr; }
  .hero__sub { max-width: 260px; font-size: 15px; bottom: calc(136px + var(--safe-b)); }
  .hero__cta { gap: 16px; }
  .hero__cta .btn { height: 48px; padding: 0 20px; font-size: 14px; }
  .facts { gap: 22px; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hero__sub { display: none; }
}

/* short landscape */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-h: 52px; }
  .hero { height: 100svh; }
  .hero .h1 { top: 20%; font-size: clamp(40px, 7vw, 64px); }
  .hero__sub { display: none; }
  .hero__cta { bottom: 56px; }
  .hero__cta .btn { height: 44px; padding: 0 20px; }
  .scene--descent { height: 320svh; }
  .scene--dive { height: 240svh; }
  .panel .h2 { font-size: clamp(32px, 5vw, 48px); }
  .panel { bottom: 10%; }
  .ritual { height: 86svh; }
  .night { min-height: 100svh; }
  .night__copy { padding-top: 12%; }
  .night .h2--xl { font-size: 44px; }
}

/* reduced motion + no JS: static, fully readable */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
html.reduced .hero,
html:not(.js) .hero { height: 100svh; }
html.reduced .scene,
html:not(.js) .scene { height: auto; }
html.reduced .scene__stage,
html:not(.js) .scene__stage { position: relative; height: auto; min-height: 100svh; }
html.reduced .scene__end,
html:not(.js) .scene__end { opacity: 1; }
html.reduced .scene__video,
html:not(.js) .scene__video { display: none; }
html.reduced .scene__panels,
html:not(.js) .scene__panels {
  position: relative;
  display: grid;
  gap: 18svh;
  padding: 22svh var(--gutter) 22svh;
}
html.reduced .panel,
html:not(.js) .panel { position: relative; left: auto; bottom: auto; top: auto; opacity: 1; color: var(--paper); text-shadow: 0 1px 24px rgba(0, 0, 0, .4); }
html.reduced .rail,
html:not(.js) .rail { display: none; }
html.reduced .ritual,
html:not(.js) .ritual { position: relative; top: auto; }
html.reduced .rituals .sec-head,
html:not(.js) .rituals .sec-head { position: relative; top: auto; }
html.reduced .night__glow { --mx: 50%; --my: 64%; --nr: 44vmax; }
html:not(.js) .night__glow { --nr: 44vmax; --my: 64%; }
html:not(.js) .hero__video,
html:not(.js) .reserve__video { display: none; }
