/* PayMax Vault — scroll-scrubbed product story.
   Layers (back → front): scene (poster + canvas + shade) → HUD → frame brackets → copy → chrome. */

/* fonts are self-hosted (latin subset): no third-party request, no layout jump */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/outfit-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/outfit-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --ink: #02040a;
  --night: #060b1a;
  --ion: #2f7bff;        /* button / glow core */
  --ion-hi: #36c2ff;     /* headline second line */
  --copper: #e0a074;     /* meteorite shell highlights */
  --ice: #cfe6ff;
  --text: #f3f6ff;
  --muted: #9aa7c2;
  --line: rgba(80, 200, 255, .55);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5.2vw, 84px);
  --top: clamp(18px, 3.4vh, 34px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 500 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.vx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vx-skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--text); color: var(--ink); border-radius: 8px; }
.vx-skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ion-hi); outline-offset: 3px; }

/* ---------- scene ---------- */
.vx-scene { position: fixed; inset: 0; z-index: 0; background: var(--ink); }
.vx-poster, #vx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vx-poster { object-fit: cover; object-position: 68% 50%; }
#vx-canvas { opacity: 0; transition: opacity .5s ease; }
.vx-has-frame #vx-canvas { opacity: 1; }
/* legibility: darken the copy side only, never the product */
.vx-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,4,10,.78) 0%, rgba(2,4,10,.46) 30%, rgba(2,4,10,0) 54%),
    linear-gradient(0deg, rgba(2,4,10,.55) 0%, rgba(2,4,10,0) 22%);
}
.vx-grain {
  /* static, no blend mode: a blended full-screen layer over a canvas that redraws every
     frame forces a full recomposite per frame and was the main source of stutter */
  position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- frame brackets ---------- */
.vx-frame { position: fixed; inset: 14px; z-index: 3; pointer-events: none; }
.vx-frame i { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--line); }
.vx-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vx-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vx-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vx-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* ---------- top bar ---------- */
.vx-top {
  position: fixed; z-index: 10; top: var(--top); left: var(--gutter); right: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.vx-top::before {             /* scrim behind the bar: keeps nav legible over the film and over scrolled content */
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: calc(-1 * var(--top)); height: calc(var(--top) + 96px);
  background: linear-gradient(180deg, rgba(2,4,10,.62) 0%, rgba(2,4,10,.3) 55%, rgba(2,4,10,0) 100%);
  transition: background .5s ease;
}
.vx-in-after .vx-top::before {
  height: calc(var(--top) + 66px);
  background: linear-gradient(180deg, rgba(2,4,10,.94) 0%, rgba(2,4,10,.82) 55%, rgba(2,4,10,0) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.vx-logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; justify-self: start; }
.vx-logo img { display: block; width: 136px; height: auto; }
.vx-nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.vx-nav a { font: 400 13px/1 var(--font-mono); letter-spacing: .04em; text-decoration: none; color: var(--ice); opacity: .82; padding: 8px 0; }
.vx-nav a:hover { opacity: 1; color: #fff; }
.vx-top__end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.vx-pill {
  justify-self: end; text-decoration: none; font: 600 14px/1 var(--font-body);
  padding: 12px 22px; border-radius: 999px; background: var(--ion); color: #fff;
  box-shadow: 0 0 0 1px rgba(120,190,255,.35) inset, 0 8px 30px -8px rgba(47,123,255,.8);
}
.vx-pill:hover { background: #4a8dff; }
.vx-load { position: absolute; left: 0; right: 0; bottom: -14px; height: 1px; background: rgba(120,180,255,.12); overflow: hidden; opacity: 1; transition: opacity .6s ease .4s; }
.vx-load i { display: block; height: 100%; background: var(--ion-hi); transform-origin: 0 50%; transform: scaleX(var(--vx-load, 0)); }
.vx-ready .vx-load { opacity: 0; }

/* ---------- copy ---------- */
.vx-copy { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.vx-chapter {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-46%);
  width: min(470px, 34vw); visibility: hidden; pointer-events: auto;
}
.vx-chapter:first-child { visibility: visible; }
.vx-title {
  margin: 0 0 22px; font: 800 clamp(40px, 4.6vw, 74px)/1.04 var(--font-display);   /* 1.04: descenders of one line clear the ascenders of the next */
  letter-spacing: -.035em; color: #fff;
}
.vx-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.vx-line > span { display: block; will-change: transform; }
.vx-line.is-open, .ax-l.is-open { overflow: visible; }   /* lift the reveal mask once in place, so the glow isn't cut into a box */
.vx-line--glow { color: var(--ion-hi); text-shadow: 0 0 34px rgba(54,194,255,.45); }
/* rotating word (rotate.js): the slot hugs the word in it and eases to the next one's width */
.vx-rot__slot { position: relative; display: inline-block; white-space: nowrap; text-align: left; vertical-align: baseline; transition: width .3s cubic-bezier(.2,.7,.3,1); }
.vx-rot__word { display: inline-block; white-space: nowrap; }
.vx-rot__word.is-leaving { position: absolute; left: 0; top: 0; }
.vx-rot__probe { position: absolute; visibility: hidden; white-space: nowrap; }
.vx-lede { margin: 0 0 18px; max-width: 33ch; text-wrap: pretty; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.38; color: var(--text); }
.vx-eyebrow { margin: 0 0 16px; font: 500 12px/1 var(--font-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--copper); }
.vx-meta { margin: 0 0 28px; font: 400 12px/1.4 var(--font-mono); letter-spacing: .08em; color: var(--ice); opacity: .75; }
.vx-reveal { will-change: opacity, transform; }
.vx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border-radius: 14px; background: var(--ion); color: #fff; text-decoration: none; font: 700 16px/1 var(--font-body);
  box-shadow: 0 0 0 1px rgba(140,200,255,.4) inset, 0 14px 40px -10px rgba(47,123,255,.9);
}
.vx-btn:hover { background: #4a8dff; }

/* copy that would sit on top of the product goes higher up, into the dark sky */
.vx-chapter--high { top: 31%; }
/* ...and copy that would cover a product filling the left half goes down, under it */
.vx-chapter--low { top: auto; bottom: 9vh; transform: none; width: min(820px, 60vw); }
/* the two headline lines share one row (they wrap back into two where the column is narrow), so the block stays low enough to clear the card */
.vx-chapter--low .vx-title { display: flex; flex-wrap: wrap; column-gap: .28em; margin-bottom: 16px; }
.vx-chapter--low .vx-lede { max-width: 72ch; }

/* final chapter is centred under the vault */
.vx-chapter--final { width: min(500px, 35vw); }   /* same left column as the story; the card + vault sit right */
.vx-chapter--final .vx-title { margin-bottom: 18px; font-size: clamp(36px, 3.6vw, 60px); }
.vx-form { display: grid; gap: 10px; }
.vx-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vx-form input[type="email"], .vx-phone {
  height: 54px; border-radius: 14px; background: rgba(6, 12, 30, .62); border: 1px solid rgba(90,170,255,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s;
}
.vx-form input { min-width: 0; width: 100%; padding: 0 16px; color: #fff; font: 500 16px/1 var(--font-body); }
.vx-form input::placeholder { color: #8796b6; }
.vx-form input:focus { outline: none; }
.vx-form input[type="email"]:focus, .vx-phone:focus-within { border-color: var(--ion-hi); }
.vx-form [aria-invalid="true"], .vx-phone:has([aria-invalid="true"]) { border-color: #ff8a8a; }
.vx-phone { position: relative; display: flex; align-items: stretch; min-width: 0; }
.vx-phone input { flex: 1; height: auto; padding: 0 14px 0 12px; border: 0; background: none; }
.vx-phone__code { position: relative; display: flex; flex: none; }
.vx-phone__face { display: flex; align-items: center; gap: 7px; padding: 0 10px 0 15px; border-right: 1px solid rgba(90,170,255,.22);
  font: 500 14px/1 var(--font-mono); color: var(--ice); white-space: nowrap; pointer-events: none; }
.vx-phone__face::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .7; }
.vx-phone select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.vx-phone:has(select:focus-visible) .vx-phone__face { color: #fff; }
.vx-form button {
  width: 100%; height: 54px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--ion); color: #fff;
  font: 700 16px/1 var(--font-body); cursor: pointer; white-space: nowrap;
}
.vx-form__fine { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vx-form__fine a { color: var(--ice); text-underline-offset: 3px; }
.vx-form button:hover { background: #4a8dff; }
.vx-form button:disabled { opacity: .7; cursor: progress; }
.vx-error { min-height: 1.4em; margin: 8px 0 4px; font-size: 14px; color: #ffb4b4; }
.vx-error:empty { margin: 0; }
.vx-count { margin: 10px 0 0; max-width: 46ch; font-size: 14px; color: var(--muted); }
.vx-count b { font: 500 15px/1 var(--font-mono); color: var(--ice); }

/* ---------- HUD ---------- */
.vx-hud { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.vx-hud svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vx-hud polyline { fill: none; stroke-width: 1; stroke-linecap: round; }
.vx-hud circle { fill: #fff; }
.vx-hud circle.halo { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: vx-ping 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes vx-ping { 0% { transform: scale(.45); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.vx-hud__label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap;
  display: grid; gap: 6px; padding: 11px 16px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 60%), rgba(10,14,22,.38);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.vx-hud__label[data-side="left"] { text-align: right; }
.vx-hud__label small { font: 600 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #d9b25f; }
.vx-hud__label b { font: 500 14.5px/1.2 var(--font-body); letter-spacing: .005em; color: #fff; }
/* the exploded view carries nine parts: plain type there, cards would wall off the object */
.vx-hud__label.is-dense { padding: 0 2px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 4px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.vx-hud__label.is-dense small { color: rgba(217,178,95,.9); }
@media (prefers-reduced-motion: reduce) { .vx-hud circle.halo { animation: none; opacity: .5; } }

/* ---------- footer chrome ---------- */
.vx-foot { position: fixed; z-index: 6; left: var(--gutter); bottom: clamp(22px, 4vh, 40px); display: flex; align-items: center; gap: 16px; font: 400 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ice); }
.vx-bar { width: 90px; height: 1px; background: rgba(120,180,255,.2); overflow: hidden; }
.vx-bar i { display: block; height: 100%; background: var(--ion-hi); transform-origin: 0 50%; transform: scaleX(0); }
.vx-rail { position: fixed; z-index: 6; right: calc(var(--gutter) * .5); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.vx-rail button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.vx-rail button::after { content: ''; position: absolute; inset: -8px; }
.vx-rail button[aria-current="step"] { background: var(--ion-hi); box-shadow: 0 0 12px rgba(54,194,255,.8); }
.vx-scroll { position: fixed; z-index: 6; left: 50%; bottom: clamp(18px, 3.4vh, 34px); width: 22px; height: 38px; margin-left: -11px; border: 1.5px solid var(--line); border-radius: 12px; transition: opacity .4s; }
.vx-scroll i { position: absolute; left: 50%; top: 8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ion-hi); animation: vx-nudge 1.8s ease-in-out infinite; }
@keyframes vx-nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: 0; } }
.vx-scrolled .vx-scroll { opacity: 0; }

#vx-track { position: relative; z-index: -1; height: 800vh; }
.vx-end {
  position: relative; z-index: 7; padding: 40px var(--gutter) 48px; background: var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: var(--muted);
  border-top: 1px solid rgba(120,180,255,.12);
}
.vx-end p { margin: 0; }
.vx-end a { margin-right: 18px; color: var(--ice); }

/* ---------- FX layer, clips ---------- */
#vx-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.vx-fx #vx-fx { display: block; }
.vx-fx #vx-canvas, .vx-fx .vx-grain { opacity: 0 !important; }
.vx-fx .vx-poster { visibility: hidden; }
.vx-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; opacity: 0; pointer-events: none; }
.vx-clip.is-visible { opacity: 1; }
.vx-fx .vx-clip { visibility: hidden; }              /* drawn through WebGL instead */
.vx-clip--finale { object-position: 50% 50%; }
@media (max-aspect-ratio: 6/5) { .vx-clip--finale { object-fit: contain; } }

/* intro / finale: hide the story chrome, freeze the page */
.vx-intro, .vx-finale { overflow: hidden; }
.vx-shade, .vx-hud, .vx-frame, .vx-copy, .vx-top, .vx-foot, .vx-rail, .vx-scroll { transition: opacity .7s ease; }
:is(.vx-intro, .vx-finale) :is(.vx-shade, .vx-hud, .vx-copy, .vx-foot, .vx-rail, .vx-scroll) { opacity: 0; pointer-events: none; }
:is(.vx-intro, .vx-finale) .vx-top { opacity: .0; pointer-events: none; }
.vx-finale .vx-copy .vx-chapter { visibility: hidden !important; }

/* intro clip: black until it starts; the scene fades in. The keyframe animation is a safety net
   that lifts the cover by itself if the script never runs. */
.vx-scene { transition: opacity .6s ease; }
.vx-intro-wait .vx-scene { opacity: 0; animation: vx-unveil 0s 4s forwards; }
.vx-intro-wait :is(.vx-shade, .vx-hud, .vx-copy, .vx-foot, .vx-rail, .vx-scroll, .vx-top) { opacity: 0; }
@keyframes vx-unveil { to { opacity: 1; } }

/* ---------- finale ---------- */
.vx-engrave { position: fixed; inset: 0; z-index: 8; width: 100%; height: 100%; pointer-events: none; }
.vx-result {
  position: fixed; z-index: 9; left: 50%; bottom: clamp(28px, 7vh, 72px); transform: translate(-50%, 24px);
  width: min(620px, calc(100vw - 2 * var(--gutter))); text-align: center; opacity: 0;
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.1,1);
}
.vx-result.is-in { opacity: 1; transform: translate(-50%, 0); }
.vx-result__eyebrow { margin: 0 0 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .4em; text-transform: uppercase; color: var(--ion-hi); }
.vx-result::before { content: ''; position: absolute; inset: -40px -10vw -60px; z-index: -1; background: radial-gradient(closest-side, rgba(2,4,10,.78), rgba(2,4,10,0)); pointer-events: none; }
.vx-result__title { text-shadow: 0 2px 24px rgba(2,4,10,.9); margin: 0 0 10px; font: 800 clamp(28px, 3.6vw, 48px)/1.05 var(--font-display); letter-spacing: -.02em; }
.vx-result__title span { color: var(--ion-hi); text-shadow: 0 0 30px rgba(54,194,255,.5); white-space: nowrap; }
.vx-result__lede { margin: 0 auto 22px; max-width: 40ch; color: var(--muted); }
.vx-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.vx-btn { border: 0; cursor: pointer; }
.vx-btn--ghost { background: rgba(6,12,30,.5); box-shadow: 0 0 0 1px rgba(120,190,255,.45) inset; }
.vx-btn--ghost:hover { background: rgba(47,123,255,.2); }
.vx-result__links { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 0; font: 500 13px/1 var(--font-body); color: var(--muted); }
.vx-result__links a { color: var(--ice); text-underline-offset: 3px; padding: 8px 0; }
.vx-result__close { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.vx-result__close:hover, .vx-result__links a:hover { color: #fff; }
.vx-result__toast { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); margin: 0; padding: 9px 14px; border-radius: 10px;
  background: rgba(6,12,30,.92); border: 1px solid rgba(120,190,255,.35); font-size: 13px; color: var(--ice); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.vx-result__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- static fallback (no JS / boot failed / no frames) ---------- */
.vx-static #vx-track { height: 0; }
.vx-static .vx-copy { position: relative; }
.vx-static .vx-chapter, .vx-static .vx-chapter--final { position: relative; inset: auto; transform: none; visibility: visible; width: auto; max-width: 640px; margin: 0 var(--gutter); padding: 30vh 0 10vh; text-align: left; }
.vx-static .vx-chapter--final .vx-title { position: static; transform: none; width: auto; }
.vx-static .vx-hud, .vx-static .vx-rail, .vx-static .vx-scroll, .vx-static .vx-foot { display: none; }

/* ---------- squarish windows (4:3 tablets in landscape, small laptops): the product fills more of
   the width, so the copy column gets narrower and its side of the frame darker ---------- */
@media (min-width: 821px) and (max-aspect-ratio: 3/2) {
  .vx-shade { background: linear-gradient(90deg, rgba(2,4,10,.88) 0%, rgba(2,4,10,.62) 34%, rgba(2,4,10,0) 62%), linear-gradient(0deg, rgba(2,4,10,.55) 0%, rgba(2,4,10,0) 22%); }
  .vx-chapter { width: min(420px, 38vw); }
  .vx-chapter--low { width: min(820px, 72vw); }       /* stays one row under the card */
  .vx-title { font-size: clamp(38px, 5.2vw, 64px); }
  .vx-lede { font-size: 17px; max-width: 28ch; }
}

/* ---------- phones & narrow ---------- */
@media (max-width: 820px) {
  .vx-nav { display: none; }
  .vx-top { grid-template-columns: 1fr auto; }
  .vx-logo img { width: 112px; }
  .vx-pill { padding: 10px 16px; font-size: 13px; }
  .vx-frame { inset: 10px; }
  .vx-frame i { width: 16px; height: 16px; }
  .vx-shade { background: linear-gradient(0deg, rgba(2,4,10,.95) 0%, rgba(2,4,10,.8) 34%, rgba(2,4,10,0) 62%), linear-gradient(180deg, rgba(2,4,10,.6) 0%, rgba(2,4,10,0) 16%); }
  .vx-chapter { top: auto; bottom: calc(env(safe-area-inset-bottom) + 64px); transform: none; width: auto; right: var(--gutter); }
  .vx-title { font-size: clamp(38px, 11.5vw, 60px); margin-bottom: 14px; }
  .vx-lede { font-size: 16px; max-width: none; margin-bottom: 14px; }
  .vx-meta { margin-bottom: 18px; }
  .vx-eyebrow { font-size: 10.5px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vx-meta { letter-spacing: .02em; }
  .vx-chapter--final { left: var(--gutter); right: var(--gutter); margin: 0; transform: none; width: auto; bottom: calc(env(safe-area-inset-bottom) + 56px); }
  .vx-chapter--final .vx-title { font-size: clamp(32px, 9vw, 48px); text-align: left; }
  .vx-form__fields { grid-template-columns: 1fr; }
  .vx-form input[type="email"], .vx-phone { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,12,30,.85); }
  .vx-rail, .vx-scroll { display: none; }
  .vx-foot { bottom: calc(env(safe-area-inset-bottom) + 22px); }
  .vx-grain { display: none; }
  .vx-top__end { gap: 8px; }
  .vx-result { bottom: calc(env(safe-area-inset-bottom) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .vx-scroll i { animation: none; }
  #vx-canvas { transition: none; }
}

/* =================================================================================
   After the story: normal-scroll sections that slide up over the fixed scene
   ================================================================================= */
.vx-after { position: relative; z-index: 7; background: var(--ink); }
.vx-after::before {             /* soft leading edge as the page rises over the vault */
  content: ''; position: absolute; left: 0; right: 0; top: -38vh; height: 38vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,4,10,0) 0%, rgba(2,4,10,.75) 60%, var(--ink) 100%);
}
.vx-finale .vx-after, .vx-finale .vx-end { opacity: 0; pointer-events: none; transition: opacity .6s ease; }

.ax-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ax-eyebrow { margin: 0 0 18px; font: 500 12px/1 var(--font-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--copper); }
.ax-h { margin: 0 0 26px; font: 800 clamp(40px, 5vw, 84px)/1.04 var(--font-display); letter-spacing: -.035em; color: #fff; }
.ax-h--xl { font-size: clamp(44px, 6.4vw, 112px); }
.ax-l { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.ax-l > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.ax-l + .ax-l > span { transition-delay: .09s; }
.ax-l--glow { color: var(--ion-hi); text-shadow: 0 0 40px rgba(54,194,255,.4); }
.is-in .ax-l > span { transform: none; }
.ax-lede { max-width: 36ch; margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; color: var(--muted); }
[data-ax-reveal]:not(.ax-h) { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1s ease .15s, transform 1.1s cubic-bezier(.16,1,.3,1) .15s; }
[data-ax-reveal].is-in { opacity: 1; transform: none; }

/* ---------- privileges (pinned) ---------- */
.ax-priv { height: 320vh; }
.ax-priv .ax-sticky { display: grid; grid-template-columns: minmax(320px, 0.82fr) 1.18fr; gap: clamp(28px, 4vw, 72px); align-items: center; padding: 0 var(--gutter); }
.ax-list { list-style: none; margin: 8px 0 34px; padding: 0; display: grid; gap: 6px; }
.ax-list li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 18px 0; border-top: 1px solid rgba(120,180,255,.14); opacity: .38; transition: opacity .6s ease; }
.ax-list li:last-child { border-bottom: 1px solid rgba(120,180,255,.14); }
.ax-list li.is-on { opacity: 1; }
.ax-num { font: 500 12px/1.9 var(--font-mono); color: var(--copper); }
.ax-list h3 { margin: 0 0 6px; font: 700 clamp(21px, 1.8vw, 28px)/1.15 var(--font-display); letter-spacing: -.01em; }
.ax-list p { margin: 0; max-width: 40ch; color: var(--muted); line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s cubic-bezier(.16,1,.3,1), opacity .5s ease; }
.ax-list li.is-on p { max-height: 6em; opacity: 1; }
.ax-list li.is-on .ax-num { color: var(--ion-hi); }
.ax-count { display: flex; align-items: center; gap: 12px; font: 400 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ice); }
.ax-count b { font-weight: 500; color: #fff; }
.ax-bar { width: 120px; height: 1px; background: rgba(120,180,255,.2); overflow: hidden; }
.ax-bar i { display: block; height: 100%; background: var(--ion-hi); transform-origin: 0 50%; transform: scaleX(0); }
.ax-media { position: relative; height: min(76vh, 46vw); border-radius: 28px; overflow: hidden; background: #05070f; box-shadow: 0 40px 120px -40px rgba(47,123,255,.45), 0 0 0 1px rgba(120,180,255,.12) inset; }
.ax-shot { position: absolute; inset: 0; margin: 0; opacity: 0; will-change: opacity, transform; }
.ax-shot:first-child { opacity: 1; }
.ax-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-shot figcaption { display: none; position: absolute; left: 22px; bottom: 18px; font: 500 11px/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ice); opacity: .8; }

/* ---------- cashback: ring film in the middle, category tiles around it ---------- */
.ax-cash { height: 260vh; }
.ax-cash__film { position: absolute; inset: 0; will-change: transform; transform-origin: 49% 44%;
  -webkit-mask-image: radial-gradient(closest-side at 49% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side at 49% 46%, #000 62%, transparent 100%); }
.ax-cash__film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ax-wires path { fill: none; stroke: rgba(224,160,116,.7); stroke-width: 1.2; filter: drop-shadow(0 0 4px rgba(255,190,120,.6)); opacity: 0; }
.ax-cash__head { position: absolute; left: 0; right: 0; top: max(calc(var(--top) + 78px), 10vh); text-align: center; z-index: 2; }
.ax-cash__head .ax-eyebrow { margin-bottom: 10px; }
.ax-cash__head .ax-h { font-size: clamp(30px, 3.1vw, 54px); margin: 0; }
.ax-cash__head .ax-l { display: inline-block; vertical-align: top; }
.ax-cash__head .ax-l + .ax-l { margin-left: .28em; }
.ax-tiles { list-style: none; margin: 0; padding: 0; }
.ax-tile {
  position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; will-change: transform, opacity;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; min-width: 168px;
  border-radius: 16px; background: linear-gradient(160deg, rgba(30,22,14,.82), rgba(8,8,14,.88));
  box-shadow: 0 0 0 1px rgba(232,172,110,.55) inset, 0 0 22px -4px rgba(255,170,90,.55), 0 18px 40px -18px rgba(0,0,0,.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ax-tile__icon { width: 34px; height: 34px; flex: none; fill: none; stroke: #f1c27e; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,190,110,.55)); }
.ax-tile div { display: grid; line-height: 1; }
.ax-tile__name { font: 600 14px/1.15 var(--font-body); color: #fff; margin-bottom: 4px; white-space: nowrap; }
.ax-tile b { font: 800 clamp(30px, 2.5vw, 42px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff1cf 0%, #f3c27c 45%, #c98a4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,180,90,.35)); }
.ax-tile b em { margin-right: .18em; font: 600 .36em/1 var(--font-body); font-style: normal; letter-spacing: .02em; color: #d9c3a5; vertical-align: .32em; }
.ax-tile small { margin-top: 3px; font: 500 11px/1 var(--font-body); color: #d9c3a5; letter-spacing: .02em; }
.ax-brand { font: 700 15px/1.1 var(--font-body); margin-bottom: 4px; white-space: nowrap; }
.ax-brand--booking { color: #fff; letter-spacing: -.01em; }
.ax-brand--booking em { font-style: normal; color: #4aa3ff; }
.ax-brand--allegro { color: #ff5a00; font-size: 17px; letter-spacing: -.02em; }
.ax-cash .ax-note { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vh, 30px); text-align: center; z-index: 2; }

/* phones / small windows: ring on top, tiles in a grid below, normal scroll */
.ax-cash.is-grid { height: auto; }
.ax-cash.is-grid .ax-sticky { position: relative; height: auto; overflow: visible; padding: 72px var(--gutter) 48px; }
.ax-cash.is-grid .ax-cash__film { position: relative; inset: auto; width: auto; height: 56vw; max-height: 420px; margin: 0 calc(-1 * var(--gutter)) 8px; }
.ax-cash.is-grid .ax-cash__film video { object-fit: cover; }
.ax-cash.is-grid .ax-wires { display: none; }
.ax-cash.is-grid .ax-cash__head { position: relative; top: auto; margin-bottom: 22px; }
.ax-cash.is-grid .ax-cash__head .ax-l { display: block; }
.ax-cash.is-grid .ax-cash__head .ax-l + .ax-l { margin-left: 0; }
.ax-cash.is-grid .ax-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ax-cash.is-grid .ax-tile { position: relative; min-width: 0; padding: 10px 12px; gap: 10px; }
.ax-cash.is-grid .ax-tile__icon { width: 26px; height: 26px; }
.ax-cash.is-grid .ax-tile b { font-size: 28px; }
.ax-cash.is-grid .ax-note { position: relative; bottom: auto; margin-top: 18px; }
@media (min-width: 600px) { .ax-cash.is-grid .ax-tiles { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; } }

/* ---------- lineup ---------- */
/* ---------- card picker: pinned coverflow, one stretch of scroll per card ---------- */
.ax-pick { height: calc(100vh + (var(--pick-n, 7) - 1) * 46vh); height: calc(100svh + (var(--pick-n, 7) - 1) * 46svh); }
.ax-pick__stage { display: grid; grid-template-rows: auto 1fr auto auto auto auto; justify-items: center; text-align: center;
  padding: clamp(84px, 11vh, 120px) var(--gutter) clamp(22px, 4vh, 40px);
  background: radial-gradient(55% 45% at 50% 52%, rgba(47,123,255,.14), rgba(2,4,10,0) 70%); }
.ax-pick__head .ax-h { font-size: clamp(34px, 4.2vw, 68px); margin-bottom: 0; }
.ax-pick__head .ax-eyebrow { margin-bottom: 12px; }
.ax-pick__ring { position: relative; width: 100%; min-height: 0; container-type: size; perspective: 1600px; transform-style: preserve-3d; touch-action: pan-y; outline: none; }
.ax-pick__card { position: absolute; left: 50%; top: 50%; width: min(520px, 40vw, 58vh, 84cqh * 1.585); aspect-ratio: 1200 / 757; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 4.2% / 6.6%; will-change: transform, opacity; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; }
.ax-pick__card img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.ax-pick__card[aria-selected="true"] img { filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(217,178,95,.28)); }
.ax-pick__card:focus-visible { outline: 2px solid #d9b25f; outline-offset: 6px; }
.ax-pick__info { min-height: 92px; max-width: 46ch; display: grid; justify-items: center; gap: 6px; }
.ax-pick__info.is-in > * { animation: ax-pick-in .55s cubic-bezier(.16,1,.3,1) both; }
.ax-pick__info.is-in > :nth-child(2) { animation-delay: .04s; } .ax-pick__info.is-in > :nth-child(3) { animation-delay: .08s; }
@keyframes ax-pick-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.ax-pick__tag { margin: 0 0 2px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(217,178,95,.4); background: rgba(217,178,95,.08);
  font: 700 11.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #f0cd7d; }
.ax-pick__name { margin: 0; font: 700 clamp(22px, 2vw, 30px)/1.1 var(--font-display); letter-spacing: -.01em; color: #fff; }
.ax-pick__desc { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ax-pick__bar { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.ax-pick__arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.ax-pick__arrow:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.ax-pick__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ax-pick__track { width: 120px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 2px; }
.ax-pick__track i { display: block; height: 100%; background: #d9b25f; transform-origin: 0 50%; transform: scaleX(.14); }
.ax-pick__idx { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ice); min-width: 56px; }
.ax-pick__fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); opacity: .7; }
@media (max-width: 820px) {
  .ax-pick { height: calc(100svh + (var(--pick-n, 7) - 1) * 38svh); }
  .ax-pick__stage { padding-top: 76px; }
  .ax-pick__card { width: min(78vw, 46svh * 1.585, 84cqh * 1.585); }
  .ax-pick__desc { font-size: 14px; }
  .ax-pick__info { min-height: 98px; }
  .ax-join .ax-eyebrow { letter-spacing: .22em; }
}
@media (max-height: 700px) { .ax-pick__fine { display: none; } .ax-pick__bar { margin: 8px 0 10px; } }
@media (prefers-reduced-motion: reduce) { .ax-pick__info.is-in > * { animation: none; } }

/* ---------- join ---------- */
.ax-join { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: clamp(90px, 12vh, 130px) var(--gutter) clamp(60px, 9vh, 110px);
  background: radial-gradient(60% 50% at 50% 60%, rgba(47,123,255,.16), rgba(2,4,10,0) 70%); }
.ax-join__form { width: min(560px, 100%); margin-top: 6px; }
.ax-join__card { margin: 0 auto clamp(6px, 2vh, 22px); perspective: 1400px; }
.ax-join__card img {
  display: block; height: min(30vh, 320px); width: auto; max-width: 78vw; object-fit: contain;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s cubic-bezier(.16,1,.3,1);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(217,178,95,.22));
}
.ax-join .vx-count { margin-top: 18px; }

@media (max-width: 820px) {
  .ax-priv { height: 300vh; }
  .ax-priv .ax-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 18px; padding: 84px var(--gutter) 28px; }
  .ax-media { order: -1; height: 40vh; border-radius: 20px; }
  .ax-h { font-size: clamp(34px, 10vw, 54px); margin-bottom: 16px; }
  .ax-list { margin: 0 0 16px; }
  .ax-list li { padding: 12px 0; }
  .ax-line__head { padding: 0 var(--gutter); }
  .ax-line__frame { border-radius: 0; }
}
/* ---------- phones in landscape: very little height ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --top: 12px; }
  .vx-nav { display: none; }
  .vx-top { grid-template-columns: 1fr auto; }
  .vx-top::before { height: calc(var(--top) + 64px); }
  .vx-logo img { width: 104px; }
  .vx-pill { padding: 9px 15px; font-size: 13px; }
  .vx-frame { inset: 8px; }
  .vx-frame i { width: 14px; height: 14px; }
  .vx-chapter { top: 54%; transform: translateY(-50%); width: min(380px, 44vw); }
  .vx-chapter--high { top: 54%; }
  .vx-chapter--low { top: auto; bottom: 34px; transform: none; width: min(820px, 72vw); }   /* under the card, not on it */
  .vx-chapter--low .vx-title { margin-bottom: 6px; }
  .vx-chapter--low .vx-lede { margin-bottom: 0; }
  .vx-title { font-size: clamp(28px, 8.4vh, 40px); margin-bottom: 10px; }
  .vx-lede { font-size: 14px; line-height: 1.4; margin-bottom: 12px; max-width: 34ch; }
  .vx-eyebrow, .vx-meta { display: none; }
  .vx-btn { min-height: 42px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
  .vx-foot { bottom: 12px; }
  .vx-rail, .vx-scroll, .vx-grain { display: none; }
  .ax-h { font-size: clamp(28px, 9vh, 42px); margin-bottom: 14px; }
  .ax-priv { height: auto; }
  .ax-priv .ax-sticky { position: relative; height: auto; overflow: visible; grid-template-columns: 1fr 1.1fr; gap: 24px; padding: 72px var(--gutter) 40px; }
  .ax-media { height: 68vh; border-radius: 18px; }
  .ax-list li { opacity: 1; padding: 10px 0; }
  .ax-list li p { max-height: none; opacity: 1; }
  .ax-count { display: none; }
  .ax-cash.is-grid .ax-sticky { padding-top: 60px; }
  .ax-cash.is-grid .ax-cash__film { height: 52vh; }
  .ax-cash.is-grid .ax-tiles { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .ax-line { padding-top: 70px; padding-bottom: 50px; }
  .ax-line__head { margin-bottom: 24px; }
  .ax-line__frame { max-width: 640px; border-radius: 16px; }
  .ax-join { min-height: 0; padding: 64px var(--gutter) 48px; }
  .ax-join__card img { height: 42vh; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-l > span, [data-ax-reveal] { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* short phones (SE, mini, landscape-ish): tighter copy so it doesn't bury the product */
@media (max-width: 820px) and (max-height: 720px) {
  .vx-meta { display: none; }
  .vx-title { font-size: clamp(34px, 10vw, 50px); margin-bottom: 10px; }
  .vx-lede { font-size: 15px; line-height: 1.45; }
}
