/* Start page only: hero slideshow, the evening story (pinned, scroll-driven), per-person price, yacht match. */

/* ---------- hero slideshow ---------- */
.hero-media .hs { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media .hs.on { opacity: 1; }
.hero-media .hs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-media .hs.on img { animation: kb 9s linear forwards; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-media .hs:first-child img { animation: none; transform: none; }
.hero-media .hs.on:first-child img { animation: kb 9s linear forwards; }
.hero-foot { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); z-index: 2; display: grid; gap: 12px; justify-items: end; }
.hero-place { font-weight: 650; font-size: 15px; color: rgba(var(--fg), 0.9); display: flex; gap: 8px; align-items: center; }
.hero-place i { color: var(--turq); font-size: 18px; }
.hero-bars { display: flex; gap: 8px; }
.hero-bars button { width: 46px; height: 18px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 3px; background: rgba(var(--fg), 0.3); }
.hero-bars button::after { content: ""; position: absolute; left: 0; top: 8px; height: 3px; border-radius: 3px; background: var(--foam); width: 0; }
.hero-bars button.done::after { width: 100%; }
.hero-bars button.on::after { animation: bar var(--slide-ms, 6500ms) linear forwards; }
@keyframes bar { to { width: 100%; } }
@media (max-width: 760px) { .hero-foot { left: var(--gutter); right: auto; top: 92px; bottom: auto; justify-items: start; } .hero-bars button { width: 34px; } }
@media (prefers-reduced-motion: reduce) { .hero-media .hs.on img { animation: none; transform: none; } .hero-bars button.on::after { animation: none; width: 100%; } }

/* ---------- evening story ---------- */
.story { position: relative; background: var(--abyss); }
.story-stage { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; }
.st-photo { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.st-photo.on { opacity: 1; }
.st-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease); }
.st-photo.on img { transform: scale(1); }
.story-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--ov), 0.9) 0%, rgba(var(--ov), 0.55) 38%, rgba(var(--ov), 0) 70%), linear-gradient(0deg, rgba(var(--ov), 0.6), rgba(var(--ov), 0) 30%); pointer-events: none; }
.st-inner { position: absolute; inset: 0; z-index: 2; }
.st-inner .wrap { height: 100%; position: relative; }
.st-kicker { position: absolute; top: 108px; left: var(--gutter); font-weight: 650; color: var(--champ); display: flex; gap: 10px; align-items: center; }
.st-ch { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 14vh, 150px); max-width: 600px; opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.st-ch.on { opacity: 1; transform: none; pointer-events: auto; }
.st-time { font-family: var(--display); font-weight: 750; font-size: clamp(64px, 9vw, 132px); line-height: 0.9; letter-spacing: -0.04em; color: var(--foam); font-variant-numeric: tabular-nums; }
.st-time small { font-size: 0.24em; letter-spacing: 0; font-weight: 600; color: var(--mist); margin-left: 12px; vertical-align: middle; }
.st-ch h3 { font-size: clamp(28px, 3.2vw, 46px); margin: 14px 0 12px; }
.st-ch p { color: rgba(var(--fg), 0.82); font-size: 18px; max-width: 46ch; }
.st-ch .btn { margin-top: 24px; }
.st-map { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 90px); width: min(34vw, 430px); aspect-ratio: 800 / 810; border-radius: 22px; background: rgba(var(--ov), 0.62); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(var(--fg), 0.14); padding: 14px; }
.st-map svg { width: 100%; height: 100%; overflow: hidden; }
.st-map .map-coast { stroke-opacity: 0.8; }
.st-boat { fill: var(--foam); stroke: var(--turq); stroke-width: 4; vector-effect: non-scaling-stroke; }
.st-boat-halo { fill: rgba(var(--acc), 0.28); }
.st-steps { position: absolute; top: 108px; right: var(--gutter); display: flex; gap: 6px; }
.st-steps span { width: 34px; height: 4px; border-radius: 4px; background: rgba(var(--fg), 0.25); transition: background 0.4s; }
.st-steps span.on { background: var(--turq); }
@media (max-width: 860px) {
  .st-kicker { top: 92px; right: var(--gutter); font-size: 14px; }
  .st-map { width: 46vw; top: 150px; bottom: auto; right: var(--gutter); padding: 8px; border-radius: 16px; }
  .st-steps { display: none; }
  .story-stage::after { background: linear-gradient(0deg, rgba(var(--ov), 0.95) 0%, rgba(var(--ov), 0.6) 45%, rgba(var(--ov), 0.2) 100%); }
  .st-ch { bottom: 48px; }
  .st-ch p { font-size: 16px; }
}
/* without pinning (reduced motion or no GSAP): chapters stack as normal sections */
.story.static .story-stage { height: auto; min-height: 0; overflow: visible; }
.story.static .st-photo, .story.static .story-stage::after, .story.static .st-map, .story.static .st-steps, .story.static .st-kicker { display: none; }
.story.static .st-inner { position: static; }
.story.static .st-ch { position: relative; opacity: 1; transform: none; left: auto; right: auto; bottom: auto; padding: 48px 0; max-width: 680px; }

/* ---------- per person ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pp-num { font-family: var(--display); font-weight: 750; font-size: clamp(72px, 10vw, 150px); line-height: 0.9; letter-spacing: -0.04em; color: var(--champ); font-variant-numeric: tabular-nums; margin: 26px 0 8px; white-space: nowrap; }
.pp-num small { display: block; font-size: 22px; color: var(--foam); letter-spacing: 0; margin-top: 10px; }
.pp-sub { color: var(--mist); font-size: 17px; }
.pp-ctrl { display: grid; gap: 18px; margin-top: 30px; max-width: 520px; }
.pp-ctrl label { font-weight: 650; display: flex; justify-content: space-between; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--turq) var(--fill, 30%), rgba(var(--fg), 0.14) var(--fill, 30%)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(var(--fg), 0.14); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--turq); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--turq); border: 4px solid var(--abyss); box-shadow: 0 0 0 2px var(--turq); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--turq); border: 4px solid var(--abyss); }
.pp-card { position: relative; display: block; text-decoration: none; border-radius: calc(var(--r) * 1.3); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--deep); isolation: isolate; }
.pp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: opacity 0.4s; }
.pp-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 12, 13, 0) 45%, rgba(12, 12, 13, 0.85)); }
.pp-card .pp-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #f8f8f6; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.pp-card .pp-cap b { font-size: 21px; display: block; }
.pp-card .pp-cap span { color: rgba(248, 248, 246, 0.8); font-size: 15px; }
.pp-split { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 18px; max-width: 520px; }
.pp-split i { font-size: 20px; color: var(--champ); transition: transform 0.3s var(--ease); }
@media (max-width: 860px) { .pp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .pp-num { font-size: 64px; } .pp-num small { font-size: 20px; } }

/* ---------- yacht match ---------- */
.match-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.match-side { display: grid; gap: 22px; align-content: start; }
.match-stats { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.match-stats b { font-family: var(--display); font-size: 40px; color: var(--champ); line-height: 1; }
.stack { position: relative; height: min(560px, 120vw); max-width: 520px; width: 100%; margin: 0 auto; touch-action: pan-y; user-select: none; }
.mcard { position: absolute; inset: 0 0 76px 0; border-radius: calc(var(--r) * 1.4); overflow: hidden; background: var(--deep); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.75); transform-origin: 50% 110%; transition: transform 0.45s var(--ease), opacity 0.45s; cursor: grab; isolation: isolate; }
.mcard:active { cursor: grabbing; }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.mcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 12, 13, 0) 40%, rgba(12, 12, 13, 0.9)); }
.mcard .mc-body { position: absolute; left: 24px; right: 24px; bottom: 22px; color: #f8f8f6; }
.mcard .mc-body h3 { font-size: clamp(24px, 2.4vw, 30px); }
.mcard .mc-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: rgba(248, 248, 246, 0.82); font-size: 15px; margin-top: 8px; }
.mcard .mc-price { position: absolute; top: 18px; left: 18px; background: rgba(12, 12, 13, 0.7); backdrop-filter: blur(8px); color: #f8f8f6; border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 15px; }
.mcard .stamp { position: absolute; top: 26px; right: 22px; padding: 8px 16px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; border: 3px solid; opacity: 0; transform: rotate(12deg); }
.mcard .stamp.yes { color: var(--champ); border-color: var(--champ); background: rgba(12, 12, 13, 0.55); }
.mcard .stamp.no { right: auto; left: 22px; top: 70px; transform: rotate(-12deg); color: #f8f8f6; border-color: #f8f8f6; background: rgba(12, 12, 13, 0.55); }
.mcard:nth-last-child(2) { transform: translateY(14px) scale(0.955); }
.mcard:nth-last-child(3) { transform: translateY(28px) scale(0.91); }
.mcard:nth-last-child(n + 4) { opacity: 0; transform: translateY(28px) scale(0.91); }
.match-btns { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 18px; }
.match-btns button { width: 62px; height: 62px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 26px; transition: transform 0.2s var(--ease); }
.match-btns button:active { transform: scale(0.92); }
.match-btns .no { background: rgba(var(--fg), 0.1); color: var(--foam); }
.match-btns .yes { background: var(--turq); color: var(--turq-ink); box-shadow: 0 14px 30px -14px rgba(var(--acc), 0.9); }
.match-end { position: absolute; inset: 0 0 76px 0; border-radius: calc(var(--r) * 1.4); background: var(--deep); display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 32px; }
@media (max-width: 860px) { .match-grid { grid-template-columns: minmax(0, 1fr); } }
[data-theme="uae"] .light .review:nth-child(1) { background: #0c0c0d; color: #f8f8f6; }
[data-theme="uae"] .light .review:nth-child(1) figcaption { color: #b6b9bb; }
[data-theme="uae"] .light .review:nth-child(1) .stars { color: #12b05e; }

/* ---------- F1 event band (start page) ---------- */
.f1-band { position: relative; overflow: hidden; isolation: isolate; color: #f8f8f6; }
.f1-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.f1-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 13, 0.94) 0%, rgba(12, 12, 13, 0.75) 45%, rgba(12, 12, 13, 0.2) 100%); }
.f1b-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.f1b-tag { display: inline-flex; gap: 8px; align-items: center; background: var(--turq); color: var(--turq-ink); font-weight: 750; font-size: 14px; border-radius: 999px; padding: 7px 14px; margin-bottom: 18px; }
.f1-band h2 { max-width: 18ch; }
.f1-band p { margin: 16px 0 26px; color: rgba(248, 248, 246, 0.84); max-width: 48ch; font-size: 18px; }
.f1b-count { text-align: right; }
.f1b-count b { display: block; font-family: var(--display); font-weight: 750; font-size: clamp(80px, 11vw, 160px); line-height: 0.85; letter-spacing: -0.04em; }
.f1b-count span { color: rgba(248, 248, 246, 0.75); font-weight: 650; }
@media (max-width: 760px) { .f1b-inner { grid-template-columns: minmax(0, 1fr); } .f1b-count { text-align: left; } .f1-band::after { background: linear-gradient(180deg, rgba(12, 12, 13, 0.55), rgba(12, 12, 13, 0.92)); } }
