/* GameMandi motion layer: the hero headline split (React Bits SplitText port, MIT + Commons
   Clause, github.com/DavidHDev/react-bits), quiet scroll reveals and the golden-hour scroll
   scene. Deliberately small: no cursor glows, click effects or animated backgrounds. Every
   effect here is decoration on top of a page that already works without it. */

/* ---- SplitText: keep the hero heading's line box steady while characters rise. ---- */
gm-fx-split { font: inherit; }
/* Plain HTML pages parse the heading before the module defines the element: hold it back
   for that moment so it doesn't flash and then restart. If the script never arrives, the
   heading shows after 1s anyway. React pages define the element first, so this never applies. */
gm-fx-split:not(:defined) { opacity: 0; animation: gm-fx-show 0s linear 1s forwards; }
@keyframes gm-fx-show { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  gm-fx-split:not(:defined) { opacity: 1; animation: none; }
}

/* ===== Scene 01 "climb": layout from the MotionSites Freight Scroll Hero =====
   A sticky full-screen aerial plate (<gm-fx-climb> writes --climb-*), the copy
   scrolling up its centre line, facts mirrored across the axis, then the scene
   dissolves into the page. */
html[data-campaign="gtavi"] main section.vx-climb {
  position: relative; max-width: none; margin: 0; padding: 0 !important; isolation: isolate;
}
gm-fx-climb {
  position: sticky; top: 0; z-index: 0; display: block; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden; background: var(--vx-bg2, #0E1120);
  --climb-z: 1.28; --climb-dim: 0.4; --climb-out: 0;
}
.vx-climb-media, .vx-climb-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.vx-climb-media img { object-fit: cover; object-position: 50% 60%; transform: scale(var(--climb-z)); transform-origin: 50% 55%; will-change: transform; }
.vx-climb-shade { position: absolute; inset: 0; pointer-events: none; }
.vx-climb-shade::before { /* overall dusk shade that lifts as the camera climbs */
  content: ""; position: absolute; inset: 0; background: rgb(9 11 22); opacity: var(--climb-dim);
}
.vx-climb-shade::after { /* centre-axis scrim + top/bottom edge blend */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--vx-bg, #090B16) 0%, rgb(9 11 22 / 0) 16%, rgb(9 11 22 / 0) 80%, var(--vx-bg, #090B16) 100%),
    radial-gradient(ellipse 46% 70% at 50% 50%, rgb(9 11 22 / 0.5), rgb(9 11 22 / 0) 100%);
}
gm-fx-climb::after { /* the end dissolve into the page */
  content: ""; position: absolute; inset: 0; background: var(--vx-bg, #090B16); opacity: var(--climb-out); pointer-events: none;
}

.vx-climb-track {
  position: relative; z-index: 1; box-sizing: border-box; max-width: 1100px; margin: 0 auto;
  padding: 58vh 24px 46vh; text-align: center; text-shadow: 0 2px 22px rgb(0 0 0 / 0.55);
}
.vx-climb-intro { max-width: 760px; margin: 0 auto; }
html[data-campaign="gtavi"] .vx-climb .vx-scene-tag { color: #FFC2A3; }
html[data-campaign="gtavi"] .vx-climb .vx-scene-tag > span { color: rgb(247 243 238 / 0.8); }
html[data-campaign="gtavi"] .vx-climb .vx-h2 { margin: 6px 0 22px; font-size: clamp(56px, 7.6vw, 116px); line-height: 0.88; text-shadow: 0 12px 32px rgb(0 0 0 / 0.5); }
html[data-campaign="gtavi"] .vx-climb .vx-h2 .vx-grad { display: block; }
.vx-climb-sub { max-width: 520px; margin: 0 auto; font-size: 17px; line-height: 1.6; color: rgb(247 243 238 / 0.92); }

.vx-climb-facts {
  list-style: none; margin: 44vh 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 160px; row-gap: 26vh;
}
.vx-climb-facts li { display: grid; gap: 8px; max-width: 300px; }
.vx-climb-facts li:nth-child(1) { justify-self: end; text-align: right; }
.vx-climb-facts li:nth-child(2) { justify-self: start; text-align: left; }
.vx-climb-facts li:nth-child(3) { grid-column: 1 / -1; justify-self: center; text-align: center; }
.vx-climb-facts b { font-family: var(--vx-head, inherit); font-weight: 700; font-size: clamp(44px, 4.6vw, 64px); line-height: 0.9; text-transform: uppercase; color: #FFF3EA; }
.vx-climb-facts li:nth-child(1) b { color: var(--vx-sunset, #FF976B); }
.vx-climb-facts li > span { font-size: 15px; line-height: 1.5; letter-spacing: 0.02em; color: rgb(247 243 238 / 0.88); }

@media (max-width: 820px) {
  html[data-campaign="gtavi"] main section.vx-climb { margin: 0 calc(50% - 50vw) !important; }
  html[data-campaign="gtavi"] main section.vx-climb > div.vx-climb-track { padding: 52vh 22px 40vh !important; }
  html[data-campaign="gtavi"] .vx-climb .vx-h2 { font-size: clamp(46px, 13.5vw, 72px); }
  .vx-climb-sub { font-size: 15.5px; }
  .vx-climb-facts { grid-template-columns: minmax(0, 1fr); margin-top: 34vh; row-gap: 20vh; }
  .vx-climb-facts li:nth-child(n) { justify-self: center; text-align: center; grid-column: auto; }
  .vx-climb-shade::after { background:
    linear-gradient(180deg, var(--vx-bg, #090B16) 0%, rgb(9 11 22 / 0) 14%, rgb(9 11 22 / 0) 82%, var(--vx-bg, #090B16) 100%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgb(9 11 22 / 0.5), rgb(9 11 22 / 0) 100%); }
  /* phone hero: keep the booking buttons on the first screen; the payment note follows them */
  html[data-campaign="gtavi"] .vx-hero-details > .gm-paynote,
  html[data-campaign="gtavi"] .vx-hero-details > sc-if:has(.gm-paynote) { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-climb-media img { transform: none; will-change: auto; }
}
