:root {
    --paper: #f8f7f4;
    --ink: #161b1b;
    --ink-soft: #4b5150;
    --deep: #06264a;
    --line: #1d2323;
    --gutter: clamp(20px, 5vw, 72px);
    --serif: "Instrument Serif", "Times New Roman", serif;
    --sans: "Figtree", system-ui, sans-serif;
    --caps: "Montserrat", system-ui, sans-serif;
    --ui: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Thin brand scrollbar (reference sizing, our sea-blue instead of their orange). */
html { scrollbar-width: thin; scrollbar-color: var(--deep) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--deep); border: 2px solid var(--paper); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #0b3a6e; }

/* Required by Lenis 1.3.26 (from its dist/lenis.css). */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { padding: 0 var(--gutter); }

.eyebrow {
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: .32em;
    text-transform: uppercase;
}
.eyebrow--light { color: #fff; }

.arrow { display: inline-block; margin-left: .35em; font-family: var(--sans); letter-spacing: 0; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 26px 9px 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--caps);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--paper); }

.text-link {
    font-family: var(--caps);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
}

/* ---------- Calligraphy cursor reveal ----------
   Wang Xizhi, Lanting Xu (Orchid Pavilion Preface, 353 AD), public domain.
   Mask alphas (15% → 8% → 0) match the reference; the layer itself runs at full opacity when active.
   Fixed behind <main> (which is transparent) and under the opaque hero, so it only shows on the paper sections. */
.chart-reveal {
    --x: -999px;
    --y: -999px;
    --radius: 260px;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../img/homepage/v2/lanting-xu.webp") center / cover no-repeat;
    opacity: 0;
    transition: opacity .8s ease;
    -webkit-mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), #00000026 0%, #00000014 45%, #0000 100%);
    mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), #00000026 0%, #00000014 45%, #0000 100%);
}
.chart-reveal.is-active { opacity: 1; }
main { position: relative; z-index: 1; }
/* Curtain ending: once the page content's last screen is reached it stays put (top = viewport - content height,
   set by script), and the footer slides up over it. Only applied when the script has measured the height. */
main.is-stacked { position: sticky; top: var(--stick-top); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 2;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
    background: var(--deep) url("../img/homepage/v2/hero-desktop-poster.webp") center / cover no-repeat;
}
@media (orientation: portrait) {
    .hero { background-image: url("../img/homepage/v2/hero-mobile-poster.webp"); }
}
.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 22, 52, .55) 0%, rgba(3, 22, 52, .2) 40%, rgba(3, 22, 52, 0) 65%),
        linear-gradient(0deg, rgba(3, 22, 52, .45) 0%, rgba(3, 22, 52, 0) 30%),
        linear-gradient(180deg, rgba(3, 22, 52, .4) 0%, rgba(3, 22, 52, 0) 20%);
}

/* Header (reference sizing): fixed, 12px uppercase links at .18em, turns solid white after the hero. */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
    color: #fff;
    border-bottom: 1px solid transparent;
    transition: background-color .45s, color .45s, padding .45s, border-color .45s;
}
.nav.is-solid {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    border-bottom-color: #e3e3df;
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
}
/* The logo artwork has ~7% empty space on its left; pull it back so the mark lines up with the page edge. */
.nav__logo { --logo-h: 40px; display: block; margin-left: calc(var(--logo-h) * -0.36); line-height: 0; }
.nav__logo img { width: auto; height: var(--logo-h); }
.nav__logo-dark, .nav.is-solid .nav__logo-light { display: none; }
.nav.is-solid .nav__logo-dark { display: block; }
/* Desktop: the menu's children join the header row (display: contents) so the account icon can sit
   between the links and "Book Your Stay". On phones the menu is a dropdown panel (see mobile rules). */
.nav__menu {
    display: contents;
    font-family: var(--ui);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.nav__menu a { position: relative; color: inherit; text-decoration: none; }
.nav__menu a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0;
    transition: transform .5s cubic-bezier(.77, 0, .18, 1);
}
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
    margin: -11px 0;
    padding: 10px 16px;
    border: 1px solid;
    border-radius: 999px;
    transition: background-color .3s, color .3s;
}
.nav__cta:hover { background: #fff; color: #000; }
.nav.is-solid .nav__cta:hover { background: var(--ink); color: #fff; }
@media (min-width: 1100px) {
    .nav { column-gap: 32px; }
    .nav__menu > a:first-child { margin-left: auto; }
    .nav__account { order: 1; margin-right: -16px; }
    .nav__cta { order: 2; }
}
/* Five links plus logo and buttons: tighten spacing on small laptops so the row never wraps. */
@media (min-width: 1100px) and (max-width: 1279px) {
    .nav { column-gap: 20px; }
    .nav__menu { letter-spacing: .1em; }
}
.nav__menu a[aria-current="page"]:not(.nav__cta)::after { transform: scaleX(1); }
.nav__account {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    margin-top: -11px;
    margin-bottom: -11px;
    border: 1px solid;
    border-radius: 50%;
    color: inherit;
    transition: background-color .3s, color .3s;
}
.nav__account:hover { background: #fff; color: #000; }
.nav.is-solid .nav__account:hover { background: var(--ink); color: #fff; }
.nav__toggle { display: none; }

.hero__content {
    position: absolute;
    z-index: 2;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    width: min(760px, 100% - 2 * var(--gutter));
}
.hero__title {
    margin-top: 14px;
    font-family: var(--caps);
    font-weight: 300;
    font-size: clamp(30px, 3.75vw, 60px);
    line-height: 1.12;
    letter-spacing: -.005em;
}
.hero__lede { margin-top: 14px; font-size: clamp(14px, 1.45vw, 18px); }
.hero__link {
    display: inline-block;
    margin-top: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid #fff;
    font-size: clamp(14px, 1.45vw, 18px);
    font-weight: 500;
    text-decoration: none;
}

/* Hero bottom (reference sizing): caption left, "Scroll" cue with a dropping line on the right. */
.hero__footer {
    position: absolute;
    z-index: 2;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 40px;
}
.hero__place {
    max-width: 32ch;
    font-family: var(--ui);
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .24em;
    text-transform: uppercase;
    opacity: .9;
}
.hero__scroll {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, .7);
}
.hero__scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 48px;
    overflow: hidden;
    background: rgba(255, 255, 255, .4);
}
.hero__scroll i::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: drop 1.8s cubic-bezier(.77, 0, .18, 1) infinite;
}
@keyframes drop { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i::after { animation: none; top: 0; } }

/* ---------- Intro ---------- */
/* Headline cascades diagonally. Size and indents scale with the viewport (vw), so the cascade keeps its
   proportions on narrow windows instead of shrinking with the padded container. */
/* Section rhythm follows the reference: viewport-height padding, so spacing tracks the screen. */
.intro { --step-2: 13vw; --step-3: 26vw; padding: 24vh 0 6vh; }
.intro .eyebrow { padding-left: 6px; }
.intro__title {
    margin-top: clamp(10px, 1.2vw, 20px);
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(52px, 9.8vw, 160px);
    line-height: .95;
    letter-spacing: -.025em;
}
.intro__line { display: block; }
/* Line mask for the headline entrance; padding/negative margin keep descenders and italic overhang unclipped. */
.line-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin: 0 -.06em -.18em;
    padding: 0 .06em .18em;
}
.line-mask > span { display: inline-block; }
/* Hidden state applies instantly; the transition only exists once the pending state is removed. */
.is-pending .line-mask > span { transform: translateY(120%); }
:is(.intro__title, .beneath__title, .life__title, .life__statement, .escape__title, .stories__title, .stories__statement, .journey__title, .finale__title):not(.is-pending) .line-mask > span { transition: transform 1.3s cubic-bezier(.23, 1, .32, 1) .1s; }
.intro__title:not(.is-pending) .intro__line--2 .line-mask > span,
.beneath__title:not(.is-pending) .beneath__line--2 .line-mask > span,
:is(.life__title, .life__statement):not(.is-pending) .life__line--2 .line-mask > span,
.escape__title:not(.is-pending) .escape__line--2 .line-mask > span,
:is(.stories__title, .stories__statement):not(.is-pending) .stories__line--2 .line-mask > span,
.journey__title:not(.is-pending) .journey__line--2 .line-mask > span,
.finale__title:not(.is-pending) .finale__line--2 .line-mask > span { transition-delay: .19s; }
.intro__title:not(.is-pending) .intro__line--3 .line-mask > span { transition-delay: .28s; }

.fade-up {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s cubic-bezier(.25, .46, .45, .94), transform .7s cubic-bezier(.25, .46, .45, .94);
}
.fade-up.is-in { opacity: 1; transform: none; }

.fig.reveal { clip-path: inset(0 0 100%); }
.fig.reveal.is-in { animation: unclip 1.4s cubic-bezier(.77, 0, .18, 1) forwards; }
@keyframes unclip { to { clip-path: inset(0); } }
.intro__line--2 {
    margin-left: var(--step-2);
    font-style: italic;
    color: var(--ink-soft);
    letter-spacing: -.01em;
}
.intro__line--3 { margin-left: var(--step-3); }

/* Details: copy beside the offer tags, centred under the headline; wraps to one centred column when narrow. */
.intro__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 48px clamp(40px, 6vw, 110px);
    max-width: 1120px;
    margin: 72px auto 0;
}
.intro__body { flex: 0 1 25em; }
.offer { flex: 1 1 480px; max-width: 640px; }
.intro__body p { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; max-width: 25em; color: #3a4040; }
.intro__body p + p { margin-top: 1em; }
.intro__body .pill { margin-top: clamp(18px, 1.6vw, 26px); }

.offer__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 1.9vw, 34px);
    line-height: 1.1;
    letter-spacing: -.01em;
}
.offer__rows { margin: 18px 0 0; display: grid; row-gap: 12px; }
.offer__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); column-gap: 16px; align-items: start; }
.offer__row dt {
    padding-top: 9px;
    font-family: var(--caps);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #5d6363;
}
.offer__row dd { margin: 0; display: flex; align-items: flex-start; gap: 8px; }
.tags { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags > .is-extra { display: none; }
.tags__more {
    flex: none;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    padding: 0;
    border: 1px solid rgba(22, 27, 27, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.tags__more[hidden] { display: none; }
.tags__more:hover { border-color: var(--ink); background: #fff; }
.tags__more svg { transition: transform .25s ease; }
.tags__more.is-open svg { transform: rotate(45deg); }
.tag {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(22, 27, 27, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}
a.tag { transition: border-color .2s, background-color .2s; }
a.tag:hover { border-color: var(--ink); background: #fff; }

/* Parallax frame: the image is 120% of the frame height (offset -10%) so it can drift without exposing edges. */
.fig {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 10px;
    background: #e9e7e2;
}
.fig > img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    max-width: none;
    object-fit: cover;
    will-change: transform;
}

/* Photo ring: a concave 3D carousel. Card i turns by i * 360deg / n and is pushed back by the radius, so the cards
   line the inside of a cylinder facing the viewer (near cards large at the edges, far cards small in the middle).
   Radius = (half a card + gap) * --k, where --k = 1 / tan(180deg / n) comes from the view. JS spins the track. */
/* Card width follows the screen but is capped by its height, so the ring fits a laptop screen. With the camera
   at 3x the radius the middle card shows at 75% of the edge cards. With 16 cards the ring is wider than the
   screen at every size, so the photos run off both edges. */
.ring {
    --w: clamp(250px, min(24vw, 50vh), 400px);
    --h: calc(var(--w) * 10 / 7);
    --r: calc((var(--w) / 2 + 40px) * var(--k));
    margin: 10vh calc(var(--gutter) * -1) 0;
}
/* overflow: clip (not hidden) so focusing a card can't scroll the stage sideways. */
.ring__stage {
    position: relative;
    height: calc(var(--h) * 1.2);
    overflow: hidden;
    overflow: clip;
    perspective: calc(var(--r) * 3);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.ring__stage.is-dragging { cursor: grabbing; }
.ring__track {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 0;
    list-style: none;
    transform-style: preserve-3d;
}
.ring__card {
    position: absolute;
    left: calc(var(--w) / -2);
    top: calc(var(--h) / -2);
    width: var(--w);
    height: var(--h);
    overflow: hidden;
    border-radius: 10px;
    background: #e9e7e2;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    /* --lift (0..1, set by JS) brings the card in the middle forward by up to one radius, so it shows about
       1.3x the size of its neighbours; the extra 40px gap keeps it from covering them. */
    transform: rotateY(calc(var(--i) * -360deg / var(--n))) translateZ(calc(var(--r) * (var(--lift, 0) - 1)));
}
.ring__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ring__open:focus-visible { outline-offset: -4px; outline-color: #fff; }
.ring__stage.is-dragging .ring__open { cursor: grabbing; }
/* Cards away from the middle sit under a sea-blue tint and a slight zoom; as a card turns into the middle the
   tint clears and the picture settles to full frame. Both default to the settled state when JS hasn't set --lift. */
.ring__open { position: relative; overflow: hidden; }
.ring__open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--deep);
    opacity: calc(.28 * (1 - var(--lift, 1)));
    pointer-events: none;
}
.ring__open > img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - .12 * var(--lift, 1))); }
.ring__controls { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.ring__controls[hidden] { display: none; }
.ring__btn { width: 44px; height: 44px; }
.ring__btn .ring__play, .ring__btn.is-paused .ring__pause { display: none; }
.ring__btn.is-paused .ring__play { display: block; }

/* Full-screen photo viewer (native <dialog>), same as the inner pages' viewer in rooms-v2.css. */
.viewer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
    border: 0;
    background: rgba(0, 21, 27, .96);
    color: #fff;
}
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.viewer::backdrop { background: transparent; }
.viewer__image { justify-self: center; align-self: center; width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.viewer__count { font-family: var(--caps); font-weight: 500; font-size: 11px; letter-spacing: .24em; }
.viewer__buttons { display: flex; gap: 8px; }
.viewer__buttons button {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}
.viewer__buttons button:hover { background: #fff; color: var(--abyss); }

/* ---------- Stay ---------- */
.stay { padding: 14vh 0; }
.stay__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 56px;
    padding: 0 6px;
}
.stay__head .text-link { margin-bottom: 8px; margin-right: 4px; }
.stay__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 4.75vw, 76px);
    line-height: 1;
    letter-spacing: -.02em;
}

.room {
    display: grid;
    grid-template-columns: 59fr 41fr;
    align-items: start;
    gap: clamp(24px, 4.2vw, 64px);
    padding: 0 6px;
}
.room + .room { margin-top: 48px; padding: 0; }
.room__image {
    width: 100%;
    aspect-ratio: 521 / 260;
}
.room__image > img { object-position: center 62%; }
.room__text { padding-top: clamp(12px, 1.8vw, 24px); }
.room__title {
    margin-top: 6px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 68px);
    line-height: 1.05;
    letter-spacing: -.015em;
}
.room__desc { margin-top: 6px; font-size: clamp(13px, 1.3vw, 16px); color: #2a3030; }
.room__text .pill { margin-top: 18px; }

.room--reverse { grid-template-columns: 38fr 62fr; }
.room--reverse .room__image { order: 2; aspect-ratio: 542 / 242; }
.room--reverse .room__image > img { object-position: center 40%; }
.room--reverse .room__text { order: 1; padding-left: clamp(16px, 3.1vw, 40px); padding-top: clamp(24px, 3.2vw, 44px); }

/* ---------- The world beneath ---------- */
.beneath { padding: 4vh 0 16vh; }
.beneath__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 0 6px;
}
.beneath__head .text-link { margin-bottom: 8px; margin-right: 4px; }
.beneath__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6.2vw, 104px);
    line-height: .98;
    letter-spacing: -.02em;
}
.beneath__line { display: block; }
.beneath__line--2 { margin-left: 8vw; font-style: italic; color: var(--ink-soft); letter-spacing: -.01em; }
.beneath__lede {
    max-width: 30em;
    margin: clamp(20px, 2.4vw, 32px) 0 0 8vw;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.55;
    color: #3a4040;
}

/* Full-bleed frame. --open runs 0 → 1 on scroll: from inset to the page gutter with rounded corners, to edge to edge.
   Defaults to 1 so it is simply full width without JS or with reduced motion. */
.beneath__stage {
    --open: 1;
    position: relative;
    height: 92vh;
    height: 92svh;
    min-height: 480px;
    margin-top: clamp(56px, 10vh, 120px);
    overflow: hidden;
    background: var(--deep);
    clip-path: inset(calc((1 - var(--open)) * 7vh) calc((1 - var(--open)) * var(--gutter)) round calc((1 - var(--open)) * 10px));
}
.beneath__stage > img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    max-width: none;
    object-fit: cover;
    object-position: 42% center;
    will-change: transform;
}
.beneath__video {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: 42% center;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(.25, .46, .45, .94);
    will-change: transform;
}
.beneath__video.is-playing { opacity: 1; }
.beneath__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 22, 52, .55) 0%, rgba(3, 22, 52, 0) 38%);
    pointer-events: none;
}
.beneath__caption {
    position: absolute;
    z-index: 1;
    left: var(--gutter);
    bottom: clamp(28px, 6vh, 56px);
    display: grid;
    justify-items: start;
    gap: 16px;
}
.pill--light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.pill--light:hover { background: #fff; color: var(--ink); }
.pill--solid { border-color: #fff; background: #fff; color: var(--ink); }
.pill--solid:hover { border-color: #fff; background: transparent; color: #fff; }
/* WhatsApp support button: icon before the label. Every support/contact block carries one. */
.pill--wa { gap: 10px; }
.footer__wa { margin-bottom: 12px; }

/* Experience selector: tabs and the active text on the left, one photo frame on the right. */
.exp {
    display: grid;
    grid-template-columns: 42fr 58fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "tabs media" "panel media";
    row-gap: 32px;
    column-gap: clamp(24px, 4.2vw, 64px);
    margin-top: clamp(72px, 14vh, 160px);
    padding: 0 6px;
}
.exp__tabs { grid-area: tabs; display: grid; }
.exp__tab {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 18px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 27, 27, .16);
    background: none;
    color: var(--ink);
    text-align: left;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(28px, 2.9vw, 46px);
    line-height: 1.05;
    letter-spacing: -.015em;
    cursor: pointer;
}
.exp__tab[aria-selected="false"] { color: #8a8f8e; }
.exp__tab[aria-selected="false"]:hover { color: var(--ink-soft); }
.exp__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: 0;
    transition: transform .7s cubic-bezier(.77, 0, .18, 1);
}
.exp__tab[aria-selected="true"]::after { transform: scaleX(1); }
.exp__tab { transition: color .3s, opacity .7s cubic-bezier(.25, .46, .45, .94), transform .7s cubic-bezier(.25, .46, .45, .94); }
.exp__num {
    flex: none;
    width: 3.2em;
    font-family: var(--caps);
    font-style: normal;
    font-weight: 500;
    font-size: 10.5px;
    letter-spacing: .32em;
    transform: translateY(-.6em);
}
/* Pinned to the bottom of the row so the text block ends level with the photo. */
.exp__panel { grid-area: panel; align-self: end; padding-left: calc(3.2 * 10.5px + 18px); }
.exp__label {
    margin: 22px 0 10px;
    font-family: var(--caps);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #5d6363;
}
.exp__panel:not([hidden]) { animation: panel-in .7s cubic-bezier(.25, .46, .45, .94); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.exp__desc { max-width: 26em; font-size: clamp(13px, 1.3vw, 16px); color: #2a3030; }
.exp__panel .pill { margin-top: 26px; white-space: nowrap; }

.exp__media { grid-area: media; aspect-ratio: 4 / 3; max-height: 80vh; }
.exp__media > img { opacity: 0; transition: opacity .9s cubic-bezier(.25, .46, .45, .94); }
.exp__media > img.is-active { opacity: 1; }
.exp__media > img:nth-child(1) { object-position: 88% center; }
.exp__media > img:nth-child(2) { object-position: center 40%; }
.exp__media > img:nth-child(3) { object-position: 45% center; }

/* ---------- Life on the island ---------- */
/* Asymmetric 12-column layout: large / small offset, then small / large offset, so it doesn't read as a card grid. */
.life { padding: 6vh 0 4vh; }
.life__head {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 40px clamp(24px, 5vw, 88px);
    padding: 0 6px;
}
.life__title, .life__statement {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6.2vw, 104px);
    line-height: .98;
    letter-spacing: -.02em;
}
.life__line { display: block; }
.life__line--2 { margin-left: 8vw; font-style: italic; color: var(--ink-soft); letter-spacing: -.01em; }
.life__intro p { max-width: 27em; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: #3a4040; }
.life__intro p + p { margin-top: 1em; }
.life__intro .text-link { display: inline-block; margin-top: clamp(20px, 2vw, 30px); }

.life__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
    row-gap: clamp(72px, 12vh, 150px);
    align-items: start;
    margin-top: clamp(72px, 14vh, 170px);
    padding: 0 6px;
}
.moment--1 { grid-column: 1 / 8; }
.moment--2 { grid-column: 9 / 13; margin-top: 24vh; }
.moment--3 { grid-column: 2 / 6; margin-top: 10vh; }
.moment--4 { grid-column: 7 / 13; }
.moment__image { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.moment--1 .moment__image { aspect-ratio: 4 / 5; max-height: 92vh; }
.moment--3 .moment__image { aspect-ratio: 4 / 5; }
.moment--3 .moment__image > img { object-position: 30% center; }
.moment__title {
    margin-top: 10px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(30px, 3.2vw, 52px);
    line-height: 1.05;
    letter-spacing: -.015em;
}
.moment__desc { max-width: 28em; margin-top: 10px; font-size: clamp(13px, 1.1vw, 16px); color: #2a3030; }
.moment .text-link { display: inline-block; margin-top: 20px; }

.life__close { margin-top: clamp(110px, 22vh, 240px); padding: 0 6px; }
.life__statement { font-size: clamp(44px, 7.6vw, 128px); }
.life__statement .life__line--2 { margin-left: 16vw; }
.life__coda { max-width: 26em; margin: clamp(22px, 2.4vw, 34px) 0 0 16vw; font-size: clamp(14px, 1.05vw, 17px); color: #3a4040; }

/* ---------- Island map ---------- */
/* Full-bleed sea drawn on canvas (home-v2-map.js); top and bottom edges fade into the paper. */
:root { --nav-h: 69px; }
/* The whole section (heading + map) is exactly one screen tall under the fixed header, at any resolution. */
.atlas {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    min-height: 540px;
    padding-top: clamp(16px, 3.5vh, 40px);
    scroll-margin-top: var(--nav-h);
}
.atlas__head {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 24px clamp(24px, 5vw, 88px);
    padding: 0 6px;
}
.atlas__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(30px, min(4.6vw, 7.5vh), 76px);
    line-height: 1;
    letter-spacing: -.02em;
}
.atlas__title em { color: var(--ink-soft); }
.atlas__lede { max-width: 27em; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: #3a4040; }
.atlas__stage { position: relative; flex: 1 1 auto; min-height: 0; margin-top: clamp(8px, 2vh, 24px); }
.atlas__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* Key card, bottom-left over the sea. */
.atlas__card {
    position: absolute;
    left: var(--gutter);
    bottom: clamp(16px, 3.5vh, 36px);
    display: grid;
    gap: 10px;
    max-width: min(420px, calc(100% - 2 * var(--gutter)));
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(248, 247, 244, .92);
    box-shadow: 0 10px 30px rgba(6, 38, 74, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.atlas__readout {
    display: grid;
    gap: 4px;
    font-family: var(--caps);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #5d6363;
    font-variant-numeric: tabular-nums;
}
.atlas__stage-name { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); font-style: italic; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.atlas__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.atlas__key li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--caps);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.atlas__icon { flex: none; display: block; }
.atlas__credit { font-size: 10px; color: #7a7f7e; }
.atlas__credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Packages ---------- */
/* Featured package left (55%), two smaller packages stacked on the right with text beside the photo.
   Kept shorter than the island-life section: no parallax here, just the reveal and a 1.03 hover zoom. */
.escape { padding: clamp(80px, 16vh, 180px) 0 16vh; }
.escape__head {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 40px clamp(24px, 5vw, 88px);
    padding: 0 6px;
}
.escape__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6.2vw, 104px);
    line-height: .98;
    letter-spacing: -.02em;
}
.escape__line { display: block; }
.escape__line--2 { margin-left: 8vw; font-style: italic; color: var(--ink-soft); letter-spacing: -.01em; }
.escape__intro p { max-width: 27em; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: #3a4040; }
.escape__intro .text-link { display: inline-block; margin-top: clamp(20px, 2vw, 30px); }

.escape__grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    grid-template-rows: auto auto;
    gap: clamp(40px, 6vh, 64px) clamp(24px, 4.2vw, 64px);
    margin-top: clamp(64px, 11vh, 130px);
    padding: 0 6px;
}
.pkg { position: relative; }
.pkg--featured { grid-row: 1 / 3; }
.pkg:not(.pkg--featured) { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 32px); align-items: end; }
.pkg__image { aspect-ratio: 4 / 5; }
.pkg--featured .pkg__image { aspect-ratio: 5 / 4; margin-bottom: 24px; }
.pkg__image > img { top: 0; height: 100%; transition: transform 1s cubic-bezier(.23, 1, .32, 1); }
.pkg:hover .pkg__image > img { transform: scale(1.03); }
.pkg__title {
    margin-top: 10px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 2.6vw, 42px);
    line-height: 1.05;
    letter-spacing: -.015em;
}
.pkg--featured .pkg__title { font-size: clamp(34px, 3.8vw, 62px); }
.pkg__title a { text-decoration: none; }
/* Whole card is the link target; the title link stays the single accessible name. */
.pkg__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pkg__meta {
    margin-top: 12px;
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #5d6363;
}
.pkg__desc { max-width: 28em; margin-top: 12px; font-size: clamp(13px, 1.05vw, 16px); color: #2a3030; }
.pkg .text-link { display: inline-block; margin-top: 18px; }

.escape__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(56px, 9vh, 96px); padding: 0 6px; }
.escape__more .exp__label { margin: 0; }
.escape__coda {
    margin-top: clamp(56px, 10vh, 110px);
    padding: 0 6px;
    font-family: var(--serif);
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.escape__coda em { color: var(--ink-soft); }
/* Laptop/tablet: the right column is too narrow for photo-beside-text, so stack it. */
@media (max-width: 1279px) {
    .pkg:not(.pkg--featured) { grid-template-columns: 1fr; gap: 0; }
    .pkg:not(.pkg--featured) .pkg__image { aspect-ratio: 16 / 10; margin-bottom: 18px; }
    .pkg--featured .pkg__image { aspect-ratio: 4 / 5; }
}

/* ---------- Guest stories ---------- */
/* One dominant photo with two smaller ones set lower, a single large guest quote, then a quiet closing CTA. */
.stories { padding: 4vh 0 18vh; }
.stories__head {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 40px clamp(24px, 5vw, 88px);
    padding: 0 6px;
}
.stories__title, .stories__statement {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6.2vw, 104px);
    line-height: .98;
    letter-spacing: -.02em;
}
.stories__line { display: block; }
.stories__line--2 { margin-left: 8vw; font-style: italic; color: var(--ink-soft); letter-spacing: -.01em; }
.stories__intro p { max-width: 27em; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: #3a4040; }
.stories__intro .text-link { display: inline-block; margin-top: clamp(20px, 2vw, 30px); }

.stories__gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: clamp(16px, 2vw, 32px);
    margin-top: clamp(64px, 11vh, 130px);
    padding: 0 6px;
}
.stories__photo--main { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.stories__photo--a { grid-column: 8 / 11; grid-row: 1; align-self: end; aspect-ratio: 3 / 4; margin-top: 18vh; }
.stories__photo--b { grid-column: 11 / 13; grid-row: 1; align-self: start; aspect-ratio: 3 / 4; }
.stories__photo--b > img { object-position: 30% center; }
.stories__caption {
    grid-column: 8 / 13;
    grid-row: 2;
    align-self: end;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(22, 27, 27, .16);
}
.stories__count { flex: none; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.5vw, 24px); color: var(--ink-soft); }

.stories__words { max-width: 1180px; margin: clamp(90px, 16vh, 180px) auto 0; padding: 0 6px; }
.review { margin: 22px 0 0; }
.review[hidden] { display: none; }
.review:not([hidden]) { animation: panel-in .7s cubic-bezier(.25, .46, .45, .94); }
.review__quote { margin: 0; }
.review__quote p {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(32px, 4.2vw, 68px);
    line-height: 1.08;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.review--mid .review__quote p { font-size: clamp(28px, 3.2vw, 52px); line-height: 1.12; }
.review--long .review__quote p { font-size: clamp(22px, 2.3vw, 38px); line-height: 1.2; }
.review__by {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: clamp(22px, 2.6vw, 36px);
    font-family: var(--caps);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review__label { font-weight: 500; font-size: 9.5px; letter-spacing: .22em; color: #5d6363; }
.stories__pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 3vw, 44px); }
.stories__pick-btn {
    padding: 8px 14px;
    border: 1px solid rgba(22, 27, 27, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    color: var(--ink);
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
.stories__pick-btn:hover { border-color: var(--ink); background: #fff; }
.stories__pick-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.stories__close {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 32px clamp(24px, 5vw, 88px);
    margin-top: clamp(110px, 20vh, 230px);
    padding: 0 6px;
}
.stories__close .eyebrow { grid-column: 1 / -1; }
.stories__close .stories__statement { margin-top: 0; }
.stories__cta p { max-width: 26em; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: #3a4040; }
.stories__cta .pill { margin-top: 22px; }

/* ---------- The journey ---------- */
.journey { padding: 0 0 16vh; }
.journey__grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    align-items: center;
    gap: clamp(32px, 5vw, 96px);
    padding: 0 6px;
}
.journey__media { width: 100%; aspect-ratio: 1 / 1; }
.journey__media > img { object-position: 60% center; }
.journey__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 22, 52, .45) 0%, rgba(3, 22, 52, 0) 32%);
    pointer-events: none;
}
.journey__tag { position: absolute; z-index: 1; left: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px); }
.journey__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 4.6vw, 80px);
    line-height: 1;
    letter-spacing: -.02em;
}
.journey__line { display: block; }
.journey__line--2 { margin-left: 3vw; font-style: italic; color: var(--ink-soft); letter-spacing: -.01em; }
.journey__lede { max-width: 30em; margin-top: clamp(18px, 2vw, 28px); font-size: clamp(14px, 1.05vw, 17px); line-height: 1.55; color: #3a4040; }
.journey__steps { margin: clamp(28px, 4vh, 48px) 0 0; padding: 0; list-style: none; }
.journey__step {
    display: grid;
    grid-template-columns: 3.4em minmax(0, 1fr);
    gap: 16px;
    padding: clamp(16px, 2.4vh, 26px) 0;
    border-top: 1px solid rgba(22, 27, 27, .16);
}
.journey__step:last-child { border-bottom: 1px solid rgba(22, 27, 27, .16); }
.journey__num { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.8vw, 30px); line-height: 1; color: var(--ink-soft); }
.journey__step-title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.journey__step p { max-width: 32em; margin-top: 6px; font-size: clamp(13px, 1vw, 15px); color: #2a3030; }
.journey__step .journey__meta {
    margin-top: 10px;
    font-family: var(--caps);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #5d6363;
}
.journey__links { display: flex; flex-wrap: wrap; gap: 18px; }
.journey__more { margin-top: 28px; }
.journey__step .journey__links { margin-top: 14px; }

/* ---------- Finale + footer ---------- */
/* One continuous water column: light at the surface, deep blue-black at the bottom, so the closing invitation
   (freediver photo) flows straight into the footer. Gradient stops are sampled from the photo's edge. */
:root { --abyss: #00151b; }
.footer {
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: #fff;
    background: var(--abyss);
    border-radius: clamp(20px, 2.6vw, 40px) clamp(20px, 2.6vw, 40px) 0 0;
    box-shadow: 0 -24px 60px rgba(0, 21, 27, .18);
}
.footer a:not(.pill) { color: inherit; text-decoration: none; }

.finale {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    max-height: 1100px;
    background: linear-gradient(180deg, #aacfdf 0%, #b0d0de 15%, #a0c9da 30%, #4ba2be 45%, #006286 60%, #00344d 75%, #001a26 90%, var(--abyss) 100%);
}
/* Desktop: the portrait photo sits right of centre at full height, its side edges dissolving into the gradient. */
.finale__photo {
    position: absolute;
    top: 0;
    right: 4vw;
    height: 100%;
    width: auto;
    max-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%, #000 72%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 28%, #000 72%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
    mask-composite: intersect;
}
.finale__content {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: clamp(56px, 12vh, 140px);
}
.finale__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 7.4vw, 128px);
    line-height: .95;
    letter-spacing: -.02em;
}
.finale__line { display: block; }
.finale__line--2 { margin-left: 6vw; font-style: italic; color: rgba(255, 255, 255, .78); }
.finale__lede { max-width: 26em; margin-top: clamp(18px, 2vw, 26px); font-size: clamp(15px, 1.25vw, 19px); color: rgba(255, 255, 255, .88); }
.finale__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.4vw, 32px); }

.footer__body { position: relative; z-index: 1; padding-top: clamp(48px, 9vh, 100px); }
.footer__main {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px clamp(32px, 5vw, 96px);
    padding: 0 6px clamp(48px, 8vh, 84px);
}
.footer__label {
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.footer__talk { display: grid; justify-items: start; gap: 6px; }
.footer__talk .footer__label { margin-bottom: 10px; }
.footer__big {
    font-family: var(--serif);
    font-size: clamp(28px, 2.9vw, 48px);
    line-height: 1.15;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 36px clamp(20px, 3vw, 48px); }
.footer__text { margin-top: 14px; font-style: normal; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.footer__links { display: flex; gap: 18px; margin-top: 14px; font-family: var(--caps); font-weight: 600; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.footer__nav { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.footer__big, .footer__nav a, .footer__links a, .footer__bottom a:not(.footer__social a) {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .5s cubic-bezier(.77, 0, .18, 1);
}
.footer__big:hover, .footer__nav a:hover, .footer__links a:hover, .footer__bottom a:not(.footer__social a):hover { background-size: 100% 1px; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    padding: 22px 6px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.footer__social { display: flex; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: #fff;
    transition: background-color .3s, color .3s, border-color .3s;
}
.footer__social a:hover { background: #fff; color: var(--abyss); border-color: #fff; }
.footer__bottom .footer__top-link { color: #fff; }
.footer__copy { line-height: 1.8; }
.footer__sep { margin: 0 .7em; opacity: .5; }
.footer__heart { color: #fff; }
.footer__copy a { color: #fff; }
/* Registered company name and SSM number: its own full-width line under the footer row. */
.footer__company { flex-basis: 100%; margin: 0; line-height: 1.8; color: rgba(255, 255, 255, .75); }
/* Oversized resort name as a quiet signature, shown in full; one line on wide screens, wraps on phones. */
.footer__signature {
    /* Instrument Serif at line-height .9 leaves ~0.095em under the baseline; pull that back so the letters sit on the edge. */
    margin: 0 0 -.09em;
    padding: clamp(8px, 1.5vw, 24px) var(--gutter) 0;
    font-family: var(--serif);
    font-style: italic;
    /* "The Rock Resorts" is ~5.3em wide in Instrument Serif italic: size it from the space between the gutters
       so it always stays on one line (white-space below). */
    font-size: calc((100vw - 2 * var(--gutter)) / 5.5);
    line-height: .9;
    white-space: nowrap;
    letter-spacing: -.03em;
    color: rgba(255, 255, 255, .06);
    user-select: none;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .review:not([hidden]) { animation: none; }
    .pkg__image > img { transition: none; }
    .exp__panel:not([hidden]) { animation: none; }
    .exp__media > img, .exp__tab::after { transition: none; }
}

/* ---------- Header below 1100px: the full link row needs ~1000px, so it collapses to the menu button ---------- */
@media (max-width: 1099px) {
    /* Header with the round menu button is 73px tall; the map section sizes itself from this. */
    :root { --nav-h: 73px; }
    .nav__account { width: 44px; height: 44px; margin: 0 0 0 auto; }
    .nav__toggle {
        display: grid;
        gap: 6px;
        place-content: center;
        width: 44px; height: 44px;
        margin-left: 10px;
        padding: 0;
        border: 1px solid;
        border-radius: 50%;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }
    .nav__toggle-bar { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .2s; }
    .nav.is-open .nav__toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
    .nav.is-open .nav__toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
    .nav__menu {
        position: absolute;
        top: calc(100% + 8px);
        right: var(--gutter);
        width: min(380px, 100% - 2 * var(--gutter));
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 8px 20px 20px;
        border-radius: 12px;
        background: rgba(4, 24, 52, .96);
        color: #fff;
        font-size: 13px;
    }
    .nav.is-open .nav__menu { display: flex; }
    .nav__menu a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
    .nav__menu a:not(.nav__cta)::after { display: none; }
    .nav__menu .nav__cta { margin: 16px 0 0; padding: 14px 16px; text-align: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .nav { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
    .nav__logo { --logo-h: 34px; }

    .hero__content { top: auto; bottom: 150px; transform: none; }
    .hero__shade {
        background:
            linear-gradient(0deg, rgba(3, 22, 52, .7) 0%, rgba(3, 22, 52, .35) 35%, rgba(3, 22, 52, 0) 60%),
            linear-gradient(180deg, rgba(3, 22, 52, .4) 0%, rgba(3, 22, 52, 0) 20%);
    }
    .hero__footer { padding-bottom: 28px; flex-wrap: nowrap; gap: 16px; }
    .hero__place { font-size: 11px; }

    .intro { --step-2: 8vw; --step-3: 12vw; }
    .intro__title { font-size: clamp(44px, 13.6vw, 72px); }
    .intro__details { justify-content: flex-start; }
    .intro__body, .offer { flex-basis: 100%; }
    .intro__body p { max-width: none; }
    .offer__row { grid-template-columns: 1fr; row-gap: 8px; }
    .offer__row dt { padding-top: 0; }

    .stay__head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; padding: 0; }
    .stay__head .text-link { margin-bottom: 0; }
    .room, .room--reverse { grid-template-columns: 1fr; gap: 16px; padding: 0; }
    .room + .room { margin-top: 48px; }
    .room__image, .room--reverse .room__image { order: 0; aspect-ratio: 3 / 2; }
    .room__text, .room--reverse .room__text { order: 1; padding: 0; }

    .beneath__head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0; }
    .beneath__head .text-link { margin-bottom: 0; }
    .beneath__line--2, .beneath__lede { margin-left: 0; }
    .beneath__stage { height: 78svh; min-height: 420px; }
    .exp {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas: "tabs" "media" "panel";
        margin-top: 64px;
        padding: 0;
    }
    .exp__tab { gap: 12px; padding: 14px 0; font-size: clamp(26px, 7.4vw, 34px); }
    .exp__num { width: 2.8em; }
    .exp__media { margin-top: 24px; aspect-ratio: 4 / 3; }
    .exp { row-gap: 0; }

    .life__head { grid-template-columns: 1fr; padding: 0; }
    .life__line--2, .life__statement .life__line--2, .life__coda { margin-left: 0; }
    .life__grid { grid-template-columns: 1fr; row-gap: 64px; margin-top: 56px; padding: 0; }
    .moment--1, .moment--2, .moment--3, .moment--4 { grid-column: 1 / -1; margin-top: 0; }
    .moment--1 .moment__image, .moment--3 .moment__image { aspect-ratio: 4 / 5; max-height: 78svh; }
    .moment__image { margin-bottom: 18px; }
    .life__close { margin-top: 96px; padding: 0; }

    .atlas__head { grid-template-columns: 1fr; gap: 14px; padding: 0; }
    .atlas { min-height: 520px; }
    .atlas__lede { font-size: 13px; }
    .atlas__card { left: 16px; right: 16px; bottom: 14px; max-width: none; padding: 12px 14px; gap: 8px; }
    .atlas__stage-name { font-size: 20px; }

    .stories__head, .stories__close { grid-template-columns: 1fr; padding: 0; }
    .stories__line--2 { margin-left: 0; }
    .stories__gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; margin-top: 48px; padding: 0; }
    .stories__photo--main { grid-column: 1 / -1; grid-row: auto; }
    .stories__photo--a, .stories__photo--b { grid-column: auto; grid-row: auto; margin-top: 0; align-self: auto; }
    .stories__caption { grid-column: 1 / -1; grid-row: auto; }
    .stories__words { margin-top: 72px; padding: 0; }
    .stories__close { margin-top: 96px; }

    .journey__grid { grid-template-columns: 1fr; padding: 0; }
    .journey__media { aspect-ratio: 4 / 3; }
    .journey__line--2 { margin-left: 0; }

    .finale { height: 100svh; min-height: 640px; }
    .finale__photo { right: auto; left: 50%; transform: translateX(-50%); -webkit-mask-image: none; mask-image: none; }
    .finale__line--2 { margin-left: 0; }
    .finale__content { bottom: 40px; }
    .footer__main { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
    /* Phones: everything centred in one column: social icons, terms, copyright (one part per line), back to top. */
    .footer__bottom { flex-direction: column; align-items: center; gap: 18px; padding: 26px 0 8px; text-align: center; }
    .footer__social { order: 1; margin: 0; }
    .footer__terms { order: 2; }
    .footer__copy { order: 3; display: grid; gap: 6px; width: 100%; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); line-height: 1.5; }
    .footer__copy .footer__sep { display: none; }
    .footer__company { order: 3; display: grid; gap: 6px; line-height: 1.5; }
    .footer__company .footer__sep { display: none; }
    .footer__top-link { order: 4; }
    /* Phones: two centred lines, "The Rock" over "Resorts". */
    .footer__signature { font-size: 28vw; line-height: .86; text-align: center; white-space: normal; }
    .footer__signature span:nth-child(3) { display: block; }

    .escape__head { grid-template-columns: 1fr; padding: 0; }
    .escape__line--2 { margin-left: 0; }
    .escape__grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 56px; margin-top: 56px; padding: 0; }
    .pkg--featured { grid-row: auto; }
    .pkg:not(.pkg--featured) { grid-template-columns: 1fr; gap: 0; }
    .pkg__image, .pkg--featured .pkg__image { aspect-ratio: 4 / 3; margin-bottom: 18px; }
    .escape__more, .escape__coda { padding: 0; }
    .exp__panel { padding: 20px 0 0; }
}

/* Redirect message (nav partial): sits under the fixed header until dismissed. */
.flash {
    position: fixed;
    top: calc(var(--nav-h) + 12px);
    left: 50%;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(560px, calc(100% - 32px));
    padding: 12px 12px 12px 18px;
    transform: translateX(-50%);
    font: 500 15px/1.4 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border-left: 4px solid var(--deep);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.flash--error { border-left-color: #b42318; }
.flash p { flex: 1; margin: 0; }
.flash__close {
    flex: none;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}
