/* ==========================================================================
   01. VARIABLES & RESET
   ========================================================================== */
:root {
  --bg-light:      #EFE9E4;
  --bg-dark:       #001934;  /* Kayra navy (their logo and site) */
  --text-dark:     #373337;
  --text-light:    #FFFFFF;
  --text-muted:    #8A8378;
  --accent:        #001934;  /* Kayra navy on light sections */
  --accent-on-dark: #AEC4D1; /* Kayra's light blue (their site palette) on navy */
  --font-serif:    'Cormorant Garamond', serif;
  --font-sans:     'Manrope', sans-serif;
  --pad-x:         5vw;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; min-height: 100vh;
  background-color: var(--bg-light); color: var(--text-dark);
  font-family: var(--font-sans); font-weight: 300;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; cursor: none;
  transition: background-color 0.8s ease, color 0.8s ease;
}

::selection { background-color: var(--bg-dark); color: var(--bg-light); }

html.lenis { height: auto; }
/* Lenis owns the scroll; browser scroll anchoring would jump the page when the yacht flow swaps views */
html, body { overflow-anchor: none; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

.noise {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.theme-dark .noise { mix-blend-mode: overlay; opacity: 0.06; }
body.theme-dark  { background-color: var(--bg-dark);  color: var(--text-light); }
body.theme-light { background-color: var(--bg-light); color: var(--text-dark);  }
.theme-dark, .loader, footer { --accent: var(--accent-on-dark); }

/* ==========================================================================
   02. TYPOGRAPHY
   ========================================================================== */
.t-display { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 9rem); line-height: 0.9; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.t-h1      { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 7rem); line-height: 0.92; font-weight: 400; letter-spacing: -0.01em; margin: 0; }
.t-h2      { font-family: var(--font-sans);  font-size: clamp(1.8rem, 3.5vw, 4.5rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.t-body    { font-size: clamp(0.95rem, 1.1vw, 1.3rem); line-height: 1.75; max-width: 520px; opacity: 0.85; white-space: pre-line; }
.t-caption { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; }

.text-accent { color: var(--accent) !important; }
.font-serif  { font-family: var(--font-serif); }
.italic      { font-style: italic; }
.text-center { text-align: center; }
.flex-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mb-4  { margin-bottom: 1.5rem; }
.mb-6  { margin-bottom: 2.5rem; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.word-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; }
.word      { display: inline-block; transform: translateY(115%); will-change: transform; }

/* ==========================================================================
   03. CURSOR
   ========================================================================== */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--bg-dark); pointer-events: none; z-index: 100000; transform: translate(-50%, -50%);
  transition: background-color 0.4s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(55,51,55,0.3); pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; color: transparent;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1), height 0.4s cubic-bezier(0.16,1,0.3,1), background-color 0.4s, border-color 0.4s;
}
/* Over dark zones (script.js sets .on-dark from what is under the pointer, not from the body's scroll theme) */
.cursor-dot.on-dark { background: var(--accent-on-dark); }
.cursor-ring.on-dark { border-color: rgba(255,255,255,0.3); }
.cursor-ring.active { width: 90px; height: 90px; background-color: var(--bg-dark); border-color: transparent; color: var(--bg-light); }
.cursor-ring.on-dark.active { background-color: var(--bg-light); color: var(--bg-dark); }

/* ==========================================================================
   04. NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 2.5vw var(--pad-x);
  display: flex; justify-content: flex-end; align-items: center;
  z-index: 900; mix-blend-mode: difference; color: #fff;
  pointer-events: none; /* the full-width bar must not swallow clicks on what scrolls under it */
}
.nav a { pointer-events: auto; }
.nav-cta {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,0.6);
  padding: 0.5em 1.4em; border-radius: 2em;
}

/* ==========================================================================
   05. PRELOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; background: var(--bg-dark); color: var(--text-light);
  z-index: 999999; display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad-x);
}
.loader-label { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.loader-perc  { font-family: var(--font-serif); font-size: 16vw; line-height: 0.8; font-weight: 400; }
.loader-bar-wrap { width: 100%; height: 1px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.loader-bar   { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--accent); }

/* ==========================================================================
   06. LAYOUT UTILS
   ========================================================================== */
.section   { position: relative; width: 100vw; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.padding-x { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.img-mask     { position: relative; overflow: hidden; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); will-change: clip-path; border-radius: 2px; }
.img-parallax { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; filter: brightness(0.92); transition: filter 0.8s ease; }
.hover-scale:hover .img-parallax { filter: brightness(1); }

/* ==========================================================================
   07. HERO
   ========================================================================== */
.s-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; text-align: center; overflow: hidden;
}

.hero-bg-fallback {
  position: absolute; inset: 0;
  background: url('../media/hero/kayra-hero.webp') center/cover no-repeat;
  z-index: 0;
}

.s-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,25,52,0.4) 0%, rgba(0,25,52,0.2) 50%, rgba(0,25,52,0.55) 100%);
}
.hero-content { position: relative; z-index: 10; color: #fff; padding: 0 var(--pad-x); }
/* Kayra's logo is a wide wordmark: same width budget as a 170px square mark, not its height */
.hero-logo    { height: 74px; width: auto; margin-bottom: 5vh; filter: brightness(0) invert(1); opacity: 0; }

.hero-headline { font-family: var(--font-serif); font-size: clamp(2.8rem, 6.5vw, 8rem); line-height: 0.92; font-weight: 400; letter-spacing: -0.015em; margin: 0; display: block; }

.hero-caption { margin-top: 4vh; }
.hero-play    { margin-top: 3vh; display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.hero-play-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.hero-play-btn svg { width: 14px; height: 14px; fill: #fff; margin-left: 3px; }
.hero-play:hover .hero-play-btn { background: rgba(255,255,255,0.15); }

/* ==========================================================================
   08. ABOUT: THE KAYRA STORY
   ========================================================================== */
.s-about { background-color: var(--bg-dark); color: var(--text-light); justify-content: flex-start; }

.about-head { padding: 14vh var(--pad-x) 5vh; }
.about-eyebrow { color: var(--accent); margin-bottom: 2rem; }

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 7rem);
  line-height: 0.95; font-weight: 400;
  letter-spacing: -0.01em;
}

.about-lower {
  display: grid; grid-template-columns: 1fr 2fr; gap: 5vw;
  padding: 0 var(--pad-x) 8vh; align-items: start;
}
.about-body { font-size: clamp(0.95rem, 1.1vw, 1.3rem); line-height: 1.75; opacity: 0.8; white-space: pre-line; }

.about-img-wrap { aspect-ratio: 16 / 9; width: 100%; }
.about-img-wrap .img-mask { height: 100%; }
.about-img-wrap .img-parallax { filter: brightness(0.85); }

/* Stats strip */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw;
  padding: 0 var(--pad-x) 14vh;
}
.stat-value { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 4.5rem); color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; margin-top: 0.8rem; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   09. SCROLL-HIGHLIGHT QUOTE: EXPERIENCES
   ========================================================================== */
.s-creative { min-height: 120vh; display: flex; align-items: center; justify-content: center; background-color: var(--bg-light); }
.hl-container { max-width: 1300px; margin: 0 auto; text-align: center; line-height: 1.45; padding: 5vw; }

.hl-word {
  display: inline-block; opacity: 0.12; vertical-align: middle; margin: 0 0.12em;
  font-family: var(--font-sans); font-size: clamp(1.8rem, 3.5vw, 4.5rem); font-weight: 300;
  color: var(--text-dark); will-change: opacity;
}
.hl-word.serif  { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 7.5rem); font-style: italic; color: var(--bg-dark); }
.hl-word.accent-ul { border-bottom: 2px solid var(--accent); }

.hl-img {
  display: inline-block; vertical-align: middle; background-size: cover; background-position: center;
  opacity: 0.12; filter: grayscale(100%); transition: filter 0.4s, transform 0.4s; will-change: opacity, filter;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.hl-img:hover { filter: grayscale(0%) !important; transform: scale(1.05); cursor: pointer; }
.hl-img.pill { width: 13vw; height: 4.5vw; min-width: 90px; min-height: 30px; border-radius: 5vw; margin: 0 0.2em; transform: translateY(-0.15vw); }
.hl-img.arch { font-size: clamp(3rem, 6vw, 7.5rem); width: 1.1em; height: 1.4em; border-top-left-radius: 1.1em; border-top-right-radius: 1.1em; margin: 0 0.15em; transform: translateY(-0.08em); }

/* ==========================================================================
   10. RESIDENCES SLOT: DECKS
   ========================================================================== */
.s-residences { background-color: var(--bg-light); }
.residences-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; padding: 14vh var(--pad-x) 6vh; }
.residences-img { height: 80vh; }
.residences-img .img-mask { height: 100%; }
.residences-text { padding-left: 2vw; }
.residences-eyebrow { color: var(--accent); margin-bottom: 2rem; }

.residences-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 5.5rem);
  line-height: 1.0; font-weight: 400; margin-bottom: 2.5rem;
  color: var(--bg-dark);
}

.residences-cta {
  display: inline-block; margin-top: 3rem;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--bg-dark); border: 1px solid var(--bg-dark); background: none;
  padding: 0.8em 2em; border-radius: 2em; transition: background 0.3s, color 0.3s; cursor: inherit;
}
.residences-cta:hover { background: var(--bg-dark); color: var(--bg-light); }

/* --- Yacht flow: side view → side-to-top clip → deck view ------------- */
.deck-explorer { padding: 0 0 14vh; }
.yacht-flow { position: relative; }

/* The frame is the clips' own 16:9 at full width. On short screens the stage
   crops it top and bottom; layers and bands all live in the frame, so they stay on the boat. */
.yf-stage { position: relative; width: 100%; height: min(56.25vw, 100svh); overflow: hidden; background: #0c2f4c; }
.yf-frame { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 16 / 9; transform: translateY(-50%); }
.yf-layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
#yf-side { opacity: 1; }
.yf-group img, .yf-group video { position: absolute; inset: 0; width: 100%; height: 100%; }
.yf-group img, .yf-group video, video.yf-layer { display: block; object-fit: fill; }
.yf-group video { opacity: 0; }

/* Deck bands: soft highlight + label on hover/focus */
.yf-bands { position: absolute; inset: 0; z-index: 10; visibility: hidden; }
.yacht-flow[data-stage="side"] .yf-bands { visibility: visible; }
.yf-band {
  position: absolute; left: var(--x0); top: var(--y0);
  width: calc(var(--x1) - var(--x0)); height: calc(var(--y1) - var(--y0));
  appearance: none; border: 0; padding: 0; border-radius: 2px; cursor: inherit;
  background: rgba(255,255,255,0); box-shadow: inset 0 0 0 1px rgba(255,255,255,0);
  transition: background-color 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}
.yf-band:hover, .yf-band:focus-visible, .yf-band.is-hint { background: rgba(255,255,255,0.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); outline: none; }
.yf-band-label {
  position: absolute; left: calc(100% + 1.2vw); top: 50%; transform: translate(-0.6vw, -50%);
  display: flex; flex-direction: column; gap: 0.4rem; width: max-content; max-width: 19vw; text-align: left;
  padding: 0.85em 1.3em 0.9em; border-radius: 4px; background: rgba(255,255,255,0.94); color: var(--bg-dark);
  box-shadow: 0 8px 24px rgba(0,25,52,0.14); opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.yf-band-label b { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.5vw, 1.6rem); font-weight: 400; line-height: 1; }
.yf-band-label small { font-family: var(--font-sans); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.6; color: var(--text-muted); }
.yf-band:hover .yf-band-label, .yf-band:focus-visible .yf-band-label { opacity: 1; transform: translate(0, -50%); }

.yf-ui {
  position: absolute; left: 0; right: 0; bottom: 6%; z-index: 2; display: flex; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
.yacht-flow[data-stage="side"] .yf-ui-side { opacity: 1; visibility: visible; }
.yf-btn {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; background: rgba(0,25,52,0.18); border: 1px solid rgba(255,255,255,0.6);
  padding: 0.8em 2.2em; border-radius: 2em; cursor: inherit; transition: background 0.3s;
}
.yf-btn:hover { background: rgba(255,255,255,0.15); }
.yf-btn:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.yf-caption {
  position: absolute; right: var(--pad-x); bottom: calc(6% + 0.85rem); z-index: 2; pointer-events: none;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}

/* Deck list under the frame: the reference's unit-index rows (the way in on phones) */
.yf-list { list-style: none; padding: 6vh var(--pad-x) 0; }
.unit-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 3vw; align-items: baseline; width: 100%;
  padding: 2.2rem 0; border: 0; border-top: 1px solid rgba(55,51,55,0.14); background: none;
  font: inherit; text-align: left; color: var(--text-dark); cursor: inherit;
  transition: padding-left 0.4s cubic-bezier(0.16,1,0.3,1);
}
.yf-list li:last-child .unit-row { border-bottom: 1px solid rgba(55,51,55,0.14); }
.unit-row:hover, .unit-row:focus-visible { padding-left: 1.5vw; outline: none; }
.unit-type { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 3rem); font-weight: 400; line-height: 1.05; }
.unit-spec { font-size: clamp(0.8rem, 0.95vw, 1rem); color: var(--text-muted); line-height: 1.6; }
.unit-arrow { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 2.2rem); color: var(--accent); transition: transform 0.4s; }
.unit-row:hover .unit-arrow, .unit-row:focus-visible .unit-arrow { transform: translateX(0.5vw); }

/* Deck view: one deck from above, in the same frame. Deck stills and clips are 16:9 like the side view
   media and fill the frame; pins are % of the frame, so a new still drops in under the same pins. */
.dk-pins { position: absolute; inset: 0; z-index: 11; pointer-events: none; }
.dk-pin-group { position: absolute; inset: 0; visibility: hidden; }
.yacht-flow[data-stage="deck"] .dk-pin-group.is-on { visibility: visible; }

.deck-spot, .deck-note {
  position: absolute; transform: translate(-50%, -50%) scale(var(--sc, 1));
  font-family: var(--font-sans); text-transform: uppercase; white-space: nowrap;
}
.deck-spot {
  pointer-events: auto; appearance: none; border: 0; cursor: inherit;
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.75em 1.25em 0.75em 1em; border-radius: 2em;
  background: rgba(255,255,255,0.94); color: var(--bg-dark);
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em;
  box-shadow: 0 8px 24px rgba(0,25,52,0.14);
  transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.deck-spot i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.deck-spot i::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid currentColor;
  animation: spot-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes spot-ping { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.deck-spot:hover, .deck-spot.is-active { --sc: 1.06; background: var(--bg-dark); color: #fff; }
.deck-spot:focus-visible { outline: 1px solid var(--bg-dark); outline-offset: 3px; }
.deck-note {
  pointer-events: none; white-space: normal; text-align: center; max-width: 10rem;
  padding: 0.45em 0.9em; border-radius: 2em; background: rgba(239,233,228,0.82);
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.5; color: var(--text-muted);
}

/* Deck picker: a floating stack on the frame's right edge (the frame is the flow's first box) */
.dk-picker {
  position: absolute; z-index: 4; right: 2vw; top: calc(min(56.25vw, 100svh) / 2); transform: translateY(-50%);
  display: flex; flex-direction: column; width: max-content; min-width: 8.5rem;
  background: rgba(255,255,255,0.94); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,25,52,0.14);
}
.dk-step {
  appearance: none; background: none; border: 0; cursor: inherit; padding: 0.65rem 0;
  font-family: var(--font-serif); font-size: clamp(1.2rem, 1.6vw, 1.7rem); line-height: 1; color: var(--accent);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.dk-step:disabled { opacity: 0.25; }
#dk-up:hover:not(:disabled) { transform: translateY(-0.2rem); }
#dk-down:hover:not(:disabled) { transform: translateY(0.2rem); }
.dk-step:focus-visible { outline: 1px solid var(--accent); outline-offset: -4px; }
.dk-pick-list {
  position: relative; list-style: none; padding: 0.35rem 0;
  border-top: 1px solid rgba(55,51,55,0.14); border-bottom: 1px solid rgba(55,51,55,0.14);
}
.dk-pick {
  display: block; width: 100%; appearance: none; background: none; border: 0; cursor: inherit; text-align: left;
  padding: 0.5rem 1.6rem; color: var(--bg-dark); font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.55vw, 1.7rem); font-weight: 400; line-height: 1.1;
  opacity: 0.38; transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1);
}
.dk-pick:hover { opacity: 0.7; }
.dk-pick[aria-current="true"] { opacity: 1; }
.dk-pick:focus-visible { outline: 1px solid var(--accent); outline-offset: -4px; }
.dk-pick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dk-pick-line { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--accent); pointer-events: none; }

.dk-spaces { display: none; }
.dk-chip { position: static; transform: none; }

/* Under the frame in the deck view: the way back */
.dk-bar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3.2vh var(--pad-x) 0; }
.dk-hint { color: var(--text-muted); }
.yf-back {
  background: none; border: 0; cursor: inherit; color: var(--text-muted);
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 0.3s;
}
.yf-back:hover { color: var(--text-dark); }
.yf-back:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.yf-back span { display: inline-block; margin-right: 0.5em; font-family: var(--font-serif); font-size: 1.5em; line-height: 0; vertical-align: -0.1em; color: var(--accent); transition: transform 0.4s; }
.yf-back:hover span { transform: translateX(-0.3vw); }

/* ==========================================================================
   10b. HOTSPOT CARD (anchored next to its pin; phones: in the bottom sheet)
   ========================================================================== */
.dk-card {
  position: absolute; z-index: 5; left: 0; top: 0; width: clamp(300px, 26vw, 390px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--bg-light); color: var(--text-dark); border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,13,27,0.24); padding-bottom: 1.5rem;
}
.dk-card:focus { outline: none; }
.space-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.space-track::-webkit-scrollbar { display: none; }
.space-shot { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 2; position: relative; overflow: hidden; background: rgba(55,51,55,0.08); cursor: inherit; }
.space-shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.96); transition: filter 0.8s ease; }
.space-shot:hover img { filter: brightness(1); }
.space-gallery-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1.6rem 0; }
.space-count { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-muted); }
.space-count b { font-weight: 400; color: var(--text-dark); }
.space-arrow { background: none; border: 0; cursor: inherit; padding: 0 0.3rem; font-family: var(--font-serif); font-size: clamp(1.2rem, 1.6vw, 1.7rem); color: var(--accent); line-height: 1; transition: transform 0.4s, opacity 0.3s; }
.space-arrow:disabled { opacity: 0.25; }
.space-arrow.next:hover:not(:disabled) { transform: translateX(0.3vw); }
.space-arrow.prev:hover:not(:disabled) { transform: translateX(-0.3vw); }

.dk-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.6rem 0; }
.space-deck { color: var(--accent); margin-bottom: 0.7rem; font-size: 0.6rem; }
.space-name { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.1vw, 2.4rem); font-weight: 400; line-height: 1; color: var(--bg-dark); }
.space-close {
  background: none; border: none; color: rgba(55,51,55,0.6); cursor: inherit; flex-shrink: 0;
  font-family: var(--font-sans); font-size: 0.9rem; line-height: 1; padding: 0.2rem; transition: color 0.2s;
}
.space-close:hover { color: var(--text-dark); }
.space-close:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.space-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; margin: 1.2rem 1.6rem 0; border-top: 1px solid rgba(55,51,55,0.14); }
.space-fact { padding: 0.7rem 0; border-bottom: 1px solid rgba(55,51,55,0.14); }
.space-fact.is-wide { grid-column: 1 / -1; }
.space-fact dt { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500; color: var(--text-muted); margin-bottom: 0.3rem; }
.space-fact dd { font-size: 0.85rem; line-height: 1.45; }
.space-body { padding: 1.1rem 1.6rem 0; font-size: 0.88rem; line-height: 1.7; opacity: 0.85; }
.space-actions { padding: 0 1.6rem; }
.space-actions .residences-cta { margin-top: 1.3rem; }

/* Bottom sheet (phones only: the card moves in on open) */
.space-panel { position: fixed; inset: 0; z-index: 999980; pointer-events: none; visibility: hidden; }
.space-panel.active { pointer-events: auto; visibility: visible; }
.space-panel-overlay { position: absolute; inset: 0; background: rgba(0,13,27,0.45); opacity: 0; cursor: pointer; }
.space-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88svh; display: flex; flex-direction: column;
  background: var(--bg-light); color: var(--text-dark); border-radius: 12px 12px 0 0; cursor: auto;
  transform: translateY(101%); box-shadow: 0 -24px 80px rgba(0,13,27,0.18);
}
.space-sheet button, .space-shot { cursor: pointer !important; }
.space-grip { flex-shrink: 0; width: 40px; height: 4px; border-radius: 2px; background: rgba(55,51,55,0.2); margin: 10px auto; touch-action: none; }
.space-sheet .dk-card { position: static; width: 100%; flex: 1 1 auto; min-height: 0; border-radius: 0; box-shadow: none; padding-bottom: 5vh; }
.space-sheet .dk-card-head { touch-action: none; }

/* ?pins dev mode: positions on every pin and note, the last click marked */
.dk-dev { display: none; }
html.pins-dev .dk-dev { display: inline; margin-left: 0.6em; color: #c4132b; letter-spacing: 0.04em; }
.dk-dev-mark {
  position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); pointer-events: none;
  border: 1px solid #c4132b; border-radius: 50%;
  font: 600 0.62rem/12px var(--font-sans); color: #c4132b; text-indent: 20px; white-space: nowrap;
}
.dk-dev-mark[hidden] { display: none; }
.dk-dev-badge {
  position: absolute; left: 1rem; top: 1rem; z-index: 6; pointer-events: none;
  padding: 0.5em 1em; border-radius: 2em; background: #fff; color: #c4132b;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em;
}

/* ==========================================================================
   11. CINEMATIC EXPAND: KAYRA AT SEA
   ========================================================================== */
.s-expand { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: var(--bg-dark); padding: 0; }
.expand-wrapper { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; overflow: hidden; }

.expand-container {
  width: 14vw; height: 68vh;
  border-radius: 300px;
  overflow: hidden; position: relative;
  will-change: width, height, border-radius;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}
.expand-img {
  position: absolute; width: 100vw; height: 100vh; object-fit: cover;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  filter: brightness(0.6) grayscale(15%); transition: filter 1s ease;
}
.expand-text {
  position: absolute; z-index: 10; color: #fff; opacity: 0;
  pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; inset: 0; gap: 1.5rem;
}
.expand-text.revealed { pointer-events: all; }
.expand-cta {
  display: inline-block;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,0.6); background: none; cursor: inherit;
  padding: 0.8em 2.2em; border-radius: 2em; transition: background 0.3s;
}
.expand-cta:hover { background: rgba(255,255,255,0.15); }

/* ==========================================================================
   12. HORIZONTAL SCROLL: TOYS
   ========================================================================== */
.s-horiz { height: 100vh; overflow: hidden; position: relative; background: var(--bg-dark); }
.horiz-track { display: flex; height: 100vh; width: max-content; }

.h-panel {
  width: 100vw; height: 100vh;
  display: flex; align-items: stretch;
}
.h-img {
  width: 55vw; height: 100vh; flex-shrink: 0;
  position: relative; overflow: hidden;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
.h-img img {
  position: absolute; top: -15%; left: 0; width: 100%; height: 130%;
  object-fit: cover; will-change: transform; filter: brightness(0.88);
}
.h-text {
  width: 45vw; display: flex; flex-direction: column; justify-content: center;
  padding: 0 5vw; color: var(--text-light);
}
.h-text .t-caption { color: var(--accent); margin-bottom: 2rem; }
.h-text .h-heading {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2rem, 4vw, 5rem); font-weight: 400; line-height: 1.0;
  margin-bottom: 2rem; color: var(--text-light);
}
.h-text .t-body { color: rgba(255,255,255,0.75); max-width: 420px; }

/* ==========================================================================
   13. DESTINATIONS: 2-col décalage
   ========================================================================== */
.s-neighbourhood { background-color: var(--bg-light); justify-content: flex-start; }

.neighbourhood-header { padding: 14vh var(--pad-x) 6vh; text-align: center; }
.neighbourhood-header .eyebrow { color: var(--accent); margin-bottom: 2rem; }
.neighbourhood-header .n-intro {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 3rem);
  max-width: 700px; margin: 0 auto; line-height: 1.5; color: var(--text-dark); opacity: 0.75;
}

.neighbourhood-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4vw;
  padding: 0 var(--pad-x) 6vh; align-items: start;
}

.nc-left { display: flex; flex-direction: column; gap: 2rem; }
.nc-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 6rem);
  line-height: 0.95; font-weight: 400;
}
.nc-body { font-size: clamp(0.95rem, 1.1vw, 1.3rem); line-height: 1.75; opacity: 0.75; max-width: 460px; white-space: pre-line; }
.nc-cta {
  display: inline-block; align-self: flex-start;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--bg-dark); border: 1px solid var(--bg-dark);
  padding: 0.8em 2em; border-radius: 2em; transition: background 0.3s, color 0.3s;
}
.nc-cta:hover { background: var(--bg-dark); color: var(--bg-light); }

.nc-img { aspect-ratio: 4 / 3; width: 100%; }
.nc-img .img-mask { height: 100%; }
.nc-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; margin-top: 0.8rem; color: var(--text-muted); }

.nc-right { margin-top: 28vh; display: flex; flex-direction: column; gap: 0; }
.nc-right .nc-img { aspect-ratio: 3 / 4; }

/* Season and facts strip */
.landmarks {
  display: flex; flex-wrap: wrap; gap: 1rem 4vw;
  padding: 0 var(--pad-x) 14vh; justify-content: center;
}
.landmark { display: flex; align-items: baseline; gap: 0.7rem; }
.landmark-dist { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.8vw, 2rem); color: var(--bg-dark); }
.landmark-dist span { font-size: 0.65em; color: var(--text-muted); font-family: var(--font-sans); margin-left: 0.3em; }
.landmark-name { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-muted); }

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.s-faq { background-color: var(--bg-light); min-height: auto; padding: 10vh var(--pad-x) 14vh; }
.faq-inner { max-width: 860px; margin: 0 auto; width: 100%; }
.faq-heading {
  font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 4.5rem);
  font-weight: 400; line-height: 1; margin-bottom: 5rem; text-align: center;
}
.faq-item { border-top: 1px solid rgba(55,51,55,0.14); }
.faq-item:last-child { border-bottom: 1px solid rgba(55,51,55,0.14); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding: 1.8rem 0; cursor: pointer;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 1.8vw, 1.9rem); font-weight: 400; line-height: 1.25;
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-serif); font-size: 1.4em; color: var(--accent); flex-shrink: 0; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--bg-dark); }
.faq-answer { padding: 0 0 2rem; font-size: clamp(0.9rem, 1.05vw, 1.1rem); line-height: 1.8; opacity: 0.75; max-width: 92%; white-space: pre-line; }

/* ==========================================================================
   15. CLOSING CTA
   ========================================================================== */
.s-closing {
  background-color: var(--bg-light); justify-content: flex-end;
  padding-bottom: 5vh; padding-top: 14vh; min-height: 80vh;
}
.closing-inner { text-align: center; width: 100%; margin-bottom: 14vh; padding: 0 var(--pad-x); }

/* ==========================================================================
   16. ENQUIRE: PLAN YOUR VOYAGE
   ========================================================================== */
/* Section and footer photos load when near (script.js sets --lazy-bg) */
[data-lazy-bg].bg-on { --lazy-bg: var(--bg-src); }
.s-enquire {
  position: relative; color: var(--text-light);
  background: var(--bg-dark) var(--lazy-bg, none) center/cover no-repeat;
}
.s-enquire::before { content: ''; position: absolute; inset: 0; background: rgba(0,25,52,0.82); }
.s-enquire > * { position: relative; z-index: 1; }

.enquire-inner { max-width: 700px; margin: 0 auto; padding: 14vh var(--pad-x); }
.enquire-form  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.enquire-form .full { grid-column: 1 / -1; }

.form-field {
  background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3); border-radius: 0;
  padding: 0.9rem 0; color: #fff; font-family: var(--font-sans); font-size: 0.82rem;
  font-weight: 300; letter-spacing: 0.08em; outline: none; width: 100%;
  transition: border-color 0.3s; -webkit-appearance: none; appearance: none;
}
textarea.form-field { resize: vertical; min-height: 6.5rem; line-height: 1.6; }
.form-field::placeholder { color: rgba(255,255,255,0.4); }
.form-field:focus { border-color: var(--accent); }
.form-field option { background: var(--bg-dark); color: var(--text-light); }
select.form-field:invalid, select.form-field:has(option[value=""]:checked) { color: rgba(255,255,255,0.4); }

.form-submit { grid-column: 1 / -1; margin-top: 1rem; text-align: center; }
.btn-submit {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55);
  padding: 1em 3em; border-radius: 2em; cursor: pointer; transition: background 0.3s;
}
.btn-submit:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.form-disclaimer { grid-column: 1 / -1; font-size: 0.65rem; opacity: 0.4; line-height: 1.6; margin-top: 0.5rem; }
.form-success {
  display: none; text-align: center; margin-top: 4rem;
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 2rem); font-style: italic; color: var(--accent);
}
.form-success a { color: inherit; }

/* ==========================================================================
   17. VIDEO + 360 MODAL
   ========================================================================== */
.video-modal {
  position: fixed; inset: 0; z-index: 999990;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.video-modal.active { opacity: 1; pointer-events: all; }
.video-modal-overlay { position: absolute; inset: 0; background: rgba(0, 13, 27, 0.92); cursor: pointer; }
.video-modal-inner  { position: relative; width: 88vw; max-width: 1200px; z-index: 1; }
.video-embed        { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 4px; overflow: hidden; background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-modal-close  {
  position: absolute; top: -2.8rem; right: 0;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  transition: color 0.2s;
}
.video-modal-close:hover { color: #fff; }

/* Image lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 999991;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0, 13, 27, 0.92); cursor: pointer; }
.lightbox img {
  position: relative; z-index: 1; max-width: 90vw; max-height: 82vh;
  object-fit: contain; border-radius: 4px; box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 3.5vh; right: var(--pad-x); z-index: 2;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
footer {
  position: relative;
  background: var(--bg-dark) var(--lazy-bg, none) center/cover no-repeat;
  color: var(--text-light); padding: 8vh var(--pad-x) 4vh;
}
footer::before { content: ''; position: absolute; inset: 0; background: rgba(0,25,52,0.88); }
footer > * { position: relative; z-index: 1; }

.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4vw;
  padding-bottom: 6vh; border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.3s; width: fit-content;
}
.footer-nav a:hover { color: var(--accent); }

.footer-logos { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.footer-logo  { height: 44px; width: auto; opacity: 0.85; }

.footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.footer-social-label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.45; }
.footer-social-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-social-links a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  transition: color 0.3s;
}
.footer-social-links a:hover { color: var(--accent); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 3vh; }
.footer-copyright { font-size: 0.62rem; opacity: 0.35; letter-spacing: 0.1em; }
.footer-back-top  {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); cursor: inherit; opacity: 0.8; text-decoration: none;
  transition: opacity 0.3s;
}
.footer-back-top:hover { opacity: 1; }

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about-lower { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 5vh 3vw; }
  .unit-row { grid-template-columns: 1fr auto; }
  .unit-spec { grid-column: 1 / -1; }
  .expand-container { width: 50vw; height: 40vh; border-radius: 100px; }
  .expand-text { opacity: 1; pointer-events: all; position: relative; margin-top: 5vh; }
  .s-expand { height: auto; flex-direction: column; padding: 10vh 0; }
  .expand-wrapper { position: relative; width: 100vw; height: auto; flex-direction: column; gap: 4vh; padding: 0 var(--pad-x); }
  .horiz-track { flex-direction: column; width: 100vw; height: auto; }
  .s-horiz { height: auto; overflow: visible; }
  .h-panel { flex-direction: column; height: auto; }
  .h-img { width: 100vw; height: 55vh; clip-path: none; }
  .h-text { width: 100%; padding: 6vh var(--pad-x); }
  .neighbourhood-cols { grid-template-columns: 1fr; }
  .nc-right { margin-top: 0; }
  .nc-right .nc-img { aspect-ratio: 4/3; }
  .enquire-form { grid-template-columns: 1fr; }
  .residences-grid { grid-template-columns: 1fr; gap: 6vh; }
  .residences-img { order: -1; height: 55vh; }
  .residences-text { padding-left: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 5vh; }
  .footer-social { align-items: flex-start; }
  .cursor-dot, .cursor-ring { display: none !important; }
  html, body { cursor: auto; }
}

/* Phones: decks as a segmented control, the boat bow-up (same frame turned -90deg),
   the panel as a bottom sheet */
@media (max-width: 700px) {
  /* Phones: the frame stays 16:9 at full width (no crop), the deck list under it is the way in */
  .yf-stage { height: 56.25vw; }
  .yf-band-label { display: none; }
  .yf-ui { bottom: 5%; }
  .yf-btn { font-size: 0.58rem; padding: 0.7em 1.6em; letter-spacing: 0.2em; }
  .yf-caption { bottom: auto; top: 6%; font-size: 0.5rem; }
  .yf-list { padding-top: 3vh; }
  .unit-row { padding: 1.5rem 0; }

  /* Deck view: the picker turns into a segmented control under the frame, the card into a bottom sheet */
  .dk-picker {
    position: static; transform: none; width: auto; min-width: 0; margin: 0 var(--pad-x);
    background: none; border-radius: 0; box-shadow: none;
  }
  .dk-step { display: none; }
  .dk-pick-list { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; border-bottom: 0; }
  .dk-pick { text-align: center; padding: 1.1rem 0; font-size: 1.2rem; }
  /* Pins on the small frame are dots (hit area 38px); the names sit under the picker as chips */
  .dk-pin { width: 22px; height: 22px; padding: 0; gap: 0; justify-content: center; }
  .dk-pin::before { content: ''; position: absolute; inset: -8px; }
  .dk-pin span { display: none; }
  html.pins-dev .dk-pin { width: auto; height: auto; padding: 0.6em 0.95em 0.6em 0.8em; gap: 0.5em; font-size: 0.5rem; }
  html.pins-dev .dk-pin span { display: inline; }
  .dk-spaces { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.4rem var(--pad-x) 1.2rem; }
  .dk-chip { font-size: 0.56rem; letter-spacing: 0.14em; gap: 0.6em; padding: 0.8em 1.15em 0.8em 0.95em; box-shadow: 0 4px 14px rgba(0,25,52,0.1); }
  .dk-hint { display: none; }
  .dk-bar .yf-back { font-size: 0.6rem; letter-spacing: 0.15em; white-space: nowrap; }
  .dk-bar { padding-top: 0.6rem; border-top: 1px solid rgba(55,51,55,0.14); margin: 0 var(--pad-x); padding-left: 0; padding-right: 0; }
  .space-gallery-bar, .dk-card-head, .space-body, .space-actions { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .space-facts { margin-left: var(--pad-x); margin-right: var(--pad-x); }
  .vr-modal .video-embed { padding-bottom: 130%; }
  .vr-modal .video-modal-inner { width: 92vw; }
}

/* Tablets: the plan gets too short for the grey non-clickable labels */
@media (max-width: 900px) {
  .deck-note { display: none; }
}

@media (max-width: 600px) {
  .hero-logo { height: 48px; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}


/* ==========================================================================
   20. NO-JS / REDUCED MOTION FALLBACK
   ========================================================================== */
html.no-anim .loader { display: none; }
html.no-anim, html.no-anim body { cursor: auto; }
html.no-anim .cursor-dot, html.no-anim .cursor-ring { display: none; }
html.no-anim .word { transform: none; }
html.no-anim .gs-fade { opacity: 1 !important; }
html.no-anim .hero-logo { opacity: 1; }
html.no-anim .img-mask, html.no-anim .h-img { clip-path: none; }
html.no-anim .deck-spot i::after { animation: none; }
html.no-anim .hl-word, html.no-anim .hl-img { opacity: 1; filter: none; }
html.no-anim .expand-container { width: 100vw; height: 100vh; border-radius: 0; }
html.no-anim .expand-text { opacity: 1; pointer-events: all; }
html.no-anim .s-horiz { height: auto; overflow: visible; }
html.no-anim .horiz-track { flex-direction: column; width: 100vw; }
html.no-anim .h-panel { height: auto; flex-direction: column; }
html.no-anim .h-img { width: 100vw; height: 55vh; }
html.no-anim .h-text { width: 100%; padding: 6vh var(--pad-x); }

/* Aboard: the current deck in the always-visible list reads like a hovered row */
.yf-row[aria-current="true"] { padding-left: 1.5vw; }
.yf-row[aria-current="true"] .unit-type { font-style: italic; }
.yf-row[aria-current="true"] .unit-arrow { transform: translateX(0.5vw); }
/* Phones: the list already switches decks, so the segmented picker would repeat it */
@media (max-width: 700px) {
  .dk-below .dk-picker { display: none; }
}

/* ==========================================================================
   21. COMPARISON PILL (for the owners' review: old site vs this one)
   Bottom-left, clear of the Enquire button and the deck picker. .on-dark comes from what is under it
   (same zones as the cursor); .is-hidden while a hotspot card or a modal is open.
   ========================================================================== */
.cmp {
  --cmp-bg: rgba(239,233,228,0.92); --cmp-ink: var(--bg-dark); --cmp-line: rgba(0,25,52,0.22); --cmp-soft: rgba(55,51,55,0.72);
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 950;
  font-family: var(--font-sans); color: var(--cmp-ink);
  transition: opacity 0.3s ease, visibility 0.3s;
}
.cmp.on-dark { --cmp-bg: rgba(0,25,52,0.86); --cmp-ink: #fff; --cmp-line: rgba(255,255,255,0.32); --cmp-soft: rgba(255,255,255,0.72); }
.cmp.is-hidden, .cmp.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.cmp.is-dismissed { display: none; }
.cmp-pill {
  display: flex; align-items: stretch; border: 1px solid var(--cmp-line); border-radius: 2em; background: var(--cmp-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 22px rgba(0,13,27,0.14);
  transition: background-color 0.4s, border-color 0.4s;
}
.cmp-open, .cmp-dismiss, .cmp-x {
  background: none; border: 0; color: inherit; font: inherit; cursor: inherit;
}
.cmp-open {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.95em 1.1em 0.95em 1.5em; min-height: 38px;
}
.cmp-dismiss {
  font-size: 0.62rem; padding: 0 1.05em 0 0.75em; border-left: 1px solid var(--cmp-line); opacity: 0.7; min-width: 34px;
}
.cmp-dismiss:hover, .cmp-dismiss:focus-visible { opacity: 1; }
.cmp-open:focus-visible, .cmp-dismiss:focus-visible, .cmp-x:focus-visible, .cmp-link:focus-visible {
  outline: 1px solid currentColor; outline-offset: 2px; border-radius: 2em;
}
.cmp-card {
  position: absolute; left: 0; bottom: calc(100% + 0.6rem); width: min(23rem, calc(100vw - 2.5rem));
  max-height: calc(100svh - 6rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--cmp-bg); border: 1px solid var(--cmp-line); border-radius: 4px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 48px rgba(0,13,27,0.22);
  padding: 1.2rem 1.3rem 1.3rem;
}
.cmp-card[hidden] { display: none; }
.cmp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.cmp-title { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400; line-height: 1.1; }
.cmp-x { font-size: 0.7rem; padding: 0.4em 0.5em; opacity: 0.7; }
.cmp-x:hover { opacity: 1; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; line-height: 1.35; }
.cmp-table thead th {
  font-size: 0.54rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cmp-soft);
  text-align: right; padding: 0 0 0.45rem 0.6rem; border-bottom: 1px solid var(--cmp-line);
}
.cmp-table tbody th { text-align: left; font-weight: 400; color: var(--cmp-soft); padding: 0.5rem 0.4rem 0.5rem 0; }
.cmp-table td { text-align: right; white-space: nowrap; padding: 0.5rem 0 0.5rem 0.6rem; font-weight: 500; }
.cmp-table td:last-child { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; }
.cmp-table tbody tr + tr > * { border-top: 1px solid var(--cmp-line); }
.cmp-tbd {
  font-family: var(--font-sans); font-style: normal; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px dashed currentColor; border-radius: 2em; padding: 0.25em 0.7em; opacity: 0.8;
}
.cmp-note { font-size: 0.64rem; line-height: 1.55; color: var(--cmp-soft); margin-top: 0.8rem; }
.cmp-link {
  display: inline-block; margin-top: 0.9rem; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.2em;
}
@media (max-width: 700px) {
  .cmp { left: 0.75rem; bottom: 0.75rem; }
  .cmp-open { font-size: 0.56rem; letter-spacing: 0.16em; padding-left: 1.2em; }
  .cmp-card { width: calc(100vw - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) { .cmp, .cmp-pill { transition: none; } }
