/* ========================================
   gp-story — layered scroll product story
   Uses 3D-rendered glass PNG layers from the asset pack.
   ======================================== */

.gp-story {
  position: relative;
  background: #FFFFFF;
  color: var(--ink-body);
  /* Total scroll length controls overall scene timing. */
  --gp-story-length: 480vh;
}

/* --------- Section intro (centered overlay inside the stage) --------- */
.gp-story__intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15; /* sits on top of canvas, captions, and progress indicators */
  max-width: 920px;
  width: calc(100% - 3rem);
  text-align: center;
  padding: 0;
  margin: 0;
  pointer-events: none; /* allow scrolling/clicking through */
}
/* --------- Header Fade-in overrides --------- */
@media (min-width: 881px) {
  .header {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .header.header--hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
  }
}

/* --------- Hero intro fade-in on page load (desktop only) --------- */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 881px) {
  .gp-story__logo-wrap {
    animation: heroFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .gp-story__heading {
    animation: heroFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
  .gp-story__sub {
    animation: heroFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  }
}


.gp-story__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}
/* gentle gaussian blur backplate behind the logo so grid lines are less prominent */
.gp-story__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -15px -35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 45px 25px rgba(255, 255, 255, 0.9);
  z-index: -1;
}
.gp-story__logo {
  display: block;
  height: 94.5px; /* desktop hero logo, +75% from 54px */
  width: auto;
}
.gp-story__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink-dark);
  margin-bottom: 1rem;
  text-wrap: pretty;
}
.gp-story__sub {
  color: var(--ink-body);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 56ch;
  margin: 0 auto;
}

/* --------- Scroll container + sticky stage --------- */
.gp-story__scroll {
  position: relative;
  height: var(--gp-story-length);
}
.gp-story__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* subtle ambient glow — enterprise neutral */
.gp-story__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(99, 102, 241, 0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
/* faint dot grid, vignetted — Stripe-style */
.gp-story__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 50%, transparent 30%, #FFFFFF 100%),
    radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px) center / 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* --------- Scene canvas --------- */
.gp-story__canvas {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.gp-story__scene {
  position: relative;
  width: min(1180px, 96vw);
  height: min(680px, 90vh);
}

/* --------- Right-edge progress dots --------- */
.gp-story__progress {
  position: absolute;
  top: 50%;
  right: clamp(0.75rem, 2vw, 2rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 11;
}
.gp-story__progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  transition: background var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.gp-story__progress-dot.is-active {
  background: #1A1A1A;
  transform: scale(1.6);
}

/* --------- Scene caption (top-left of stage) --------- */
.gp-story__caption {
  position: absolute;
  top: clamp(1.25rem, 3.5vh, 2.25rem);
  left: clamp(1.5rem, 4vw, 3rem);
  z-index: 11;
  max-width: 380px;
  pointer-events: none;
}
.gp-story__caption-kicker {
  font-family: var(--font-eyebrow);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gp-story__caption-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green-600);
}
.gp-story__caption-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  color: var(--ink-dark);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.gp-story__caption-body {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  line-height: 1.55;
}
.gp-story__caption [data-cap] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.gp-story__caption [data-cap].is-on {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PLATFORM STACK CONTAINER — perspective stage for CSS slabs
   ======================================== */
.gp-story__stack {
  position: absolute;
  /* Shifted right of dead-center so the dashboard slab clears the
     left-column feature cards in Act 1. Callouts live separately on
     the stage's right edge, so they aren't affected. */
  --stack-zoom: 1;
  --stack-offset-x: 0px;
  left: 56%;
  top: 50%;
  width: min(880px, 96%);
  height: min(640px, 95%);
  transform: translate(calc(-50% + var(--stack-offset-x)), -50%) scale(var(--stack-zoom));
  /* The slab is positioned at the horizontal center of an inner container
     that reserves 260px on the right for callouts — so the slab's true
     visual center is left-of-stack-center. Pin transform-origin there so
     scale changes happen radially around the slab itself, with no
     perceived sideways drift during the intro zoom. */
  transform-origin: 35% 50%;
  z-index: 5;
}
.gp-story__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform, opacity;
  /* Blend the white PNG margins into the cream page background */
  mix-blend-mode: multiply;
  transition: transform 1200ms var(--ease-spring),
              opacity 600ms var(--ease-out);
}
.gp-story__layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
/* Stack order: dashboard (data-layer=0) sits on top */
.gp-story__layer[data-layer="0"] { z-index: 17; }
.gp-story__layer[data-layer="1"] { z-index: 16; }
.gp-story__layer[data-layer="2"] { z-index: 15; }
.gp-story__layer[data-layer="3"] { z-index: 14; }
.gp-story__layer[data-layer="4"] { z-index: 13; }
.gp-story__layer[data-layer="5"] { z-index: 12; }
.gp-story__layer[data-layer="6"] { z-index: 11; }

/* Infrastructure layers (everything except dashboard) start hidden */
.gp-story__layer--infra { opacity: 0; }

/* ========================================
   INPUT FEATURE CARDS (Act 1, left column)
   ======================================== */
.gp-story__inputs {
  position: absolute;
  left: clamp(12px, 2.5vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: clamp(210px, 20vw, 250px);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 8;
  opacity: 0;
}
.gp-story__feature-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 600ms var(--ease-spring),
              transform 600ms var(--ease-spring),
              box-shadow 200ms ease,
              border-color 200ms ease;
}
.gp-story__feature-card.is-on {
  opacity: 1;
  transform: translateX(0);
}
.gp-story__feature-card.is-pulsing {
  transform: translateX(4px);
  border-color: #6366F1;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(99, 102, 241, 0.12);
  z-index: 10;
}
.gp-story__feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F7F7F8;
  border: 1px solid #E5E7EB;
  display: grid;
  place-items: center;
  color: #374151;
  flex-shrink: 0;
}
.gp-story__feature-icon svg { width: 18px; height: 18px; }
.gp-story__feature-card-body { display: flex; flex-direction: column; min-width: 0; }
.gp-story__feature-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.gp-story__feature-card-meta {
  font-size: 0.6875rem;
  color: #6B7280;
  margin-top: 2px;
}

/* ========================================
   WALLET — Merchant USD Account (Act 1, right column)
   Pocket-style with cards peeking out
   ======================================== */
.gp-story__wallet {
  position: absolute;
  right: clamp(0px, 1.5vw, 24px);
  top: 50%;
  transform: translate(28px, -50%);
  width: clamp(220px, 24vw, 280px);
  opacity: 0;
  transition: opacity 700ms var(--ease-spring),
              transform 700ms var(--ease-spring);
  z-index: 8;
}
.gp-story__wallet.is-on {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ========================================
   VIRTUAL CARDS — Globapay-branded cards that peek from behind the
   pocket box and fan out in the gap between Act 1 and the tilt.
   ======================================== */
.gp-story__vcards {
  position: absolute;
  /* Anchored above the pocket; cards extend down into the pocket. */
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 0;  /* zero-flow; cards positioned absolutely from this anchor */
  pointer-events: none;
  z-index: 1;
}
.gp-story__wallet {
  /* extra top padding to leave room for the peeking cards above the pocket */
  padding-top: 56px;
}
.gp-story__wallet-pocket {
  position: relative;
  z-index: 2;  /* covers the bottom portion of the peeking cards */
}

.gp-story__vcard {
  --fx: 0px;   /* fan X displacement (set per-card) */
  --fy: 0px;   /* fan Y displacement (negative = up) */
  --frot: 0deg; /* fan rotation */
  --fan: 0;    /* 0..1 — JS sets this */

  position: absolute;
  left: 50%;
  /* Anchor card center horizontally; top edge sits 24px BELOW the .vcards
     anchor so the bottom half ends up behind the pocket. */
  top: 6px;
  width: 140px;
  height: 180px;
  margin-left: -70px;
  border-radius: 12px;
  padding: 11px 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 12px 28px rgba(15, 32, 24, 0.20),
    0 2px 6px rgba(15, 32, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transform-origin: 50% 100%;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* Compose: keep center alignment via -50%, then apply fan offsets. */
  transform:
    translate(calc(-50% + var(--fx) * var(--fan)), calc(var(--fy) * var(--fan)))
    rotate(calc(var(--frot) * var(--fan)));
}

/* Order: silver behind, gold middle, platinum front. All centered on the
   wallet's horizontal axis — fan-out comes entirely from --fx/--fy/--frot. */
.gp-story__vcard--silver   { z-index: 1; --fx: -60px;  --fy: -56px;  --frot: -16deg; margin-left: -70px; }
.gp-story__vcard--gold     { z-index: 2; --fx:  60px;  --fy: -56px;  --frot:  16deg; margin-left: -70px; }
.gp-story__vcard--platinum { z-index: 3; --fx:   0px;  --fy: -80px;  --frot:   0deg; margin-left: -70px; }

/* Color treatments */
.gp-story__vcard--silver {
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, #EEEEEE 0%, #C8C8C8 50%, #9A9A9A 100%);
  color: #4A4A4A;
}
.gp-story__vcard--platinum {
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, #475065 0%, #232A3A 55%, #161B28 100%);
  color: #C9D0DE;
}
.gp-story__vcard--gold {
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, #F5DC9B 0%, #DCB36C 50%, #B68B3F 100%);
  color: #6B4A1A;
}

/* Card content */
.gp-story__vcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.gp-story__vcard-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.01em;
}
.gp-story__vcard-mark {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2EBD4B;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0;
  line-height: 1;
}
.gp-story__vcard--platinum .gp-story__vcard-mark { background: #B5E97E; color: #1A1F2C; }
.gp-story__vcard-name {
  font-size: 11px;
  font-weight: 700;
}
.gp-story__vcard-tier {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.15;
  opacity: 0.85;
}

.gp-story__vcard-chip {
  width: 28px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #D9C68E 0%, #B59A57 100%);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  margin-top: -2px;
}
.gp-story__vcard-chip::before,
.gp-story__vcard-chip::after {
  content: '';
  position: absolute;
  background: rgba(0, 0, 0, 0.18);
}
.gp-story__vcard-chip::before {
  /* Horizontal lines */
  inset: 4px 3px;
  background:
    linear-gradient(to right, transparent 30%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.20) 32%, transparent 32%, transparent 68%, rgba(0,0,0,0.20) 68%, rgba(0,0,0,0.20) 70%, transparent 70%),
    linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.20) 32%, transparent 32%, transparent 68%, rgba(0,0,0,0.20) 68%, rgba(0,0,0,0.20) 70%, transparent 70%);
}
.gp-story__vcard-chip::after { display: none; }

.gp-story__vcard-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.18;
  opacity: 0.88;
}
.gp-story__vcard-type { font-weight: 700; }
.gp-story__vcard-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* All cards centered on the wallet's horizontal axis in peek state. */
.gp-story__vcard--silver { margin-left: -70px; }
.gp-story__vcard--gold   { margin-left: -70px; }
.gp-story__vcard--platinum { margin-left: -70px; }

/* Wallet pocket body */
.gp-story__wallet-pocket {
  position: relative;
  background: linear-gradient(180deg, #14304B 0%, #0F2540 100%);
  border-radius: 22px;
  padding: 32px 22px 24px;
  color: var(--ink-on-dark);
  box-shadow:
    0 24px 60px rgba(15, 32, 24, 0.20),
    0 6px 16px rgba(15, 32, 24, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gp-story__wallet-pocket::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}
.gp-story__wallet-label {
  font-family: var(--font-eyebrow);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.gp-story__wallet-balance {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.gp-story__wallet-balance .cents {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.gp-story__wallet-balance-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  margin-bottom: 18px;
}
.gp-story__wallet-balance-sub strong {
  color: var(--green-200);
  font-weight: 600;
}
.gp-story__wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gp-story__wallet-row .l { color: rgba(255, 255, 255, 0.6); }
.gp-story__wallet-row .v { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.gp-story__wallet-cards-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.gp-story__wallet-cards-link-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #818CF8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.20);
}

/* ========================================
   CURRENCY CHIPS (flying)
   ======================================== */
.gp-story__chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}
.gp-story__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  color: #111827;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  left: 0;
  top: 0;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1));
  opacity: var(--o, 0);
  will-change: transform, opacity;
}
.gp-story__chip-code {
  font-weight: 700;
}
.gp-story__chip-amount {
  color: #6B7280;
  font-weight: 500;
  font-size: 0.7rem;
}
.gp-story__chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366F1;
}

/* Connector paths */
.gp-story__paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}
.gp-story__paths.is-on { opacity: 0.35; }
.gp-story__paths path {
  fill: none;
  stroke: #CBD5E1;
  stroke-width: 1;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}

/* ========================================
   STACK LAYER LABELS (Act 2, right rail)
   ======================================== */
.gp-story__labels {
  position: absolute;
  right: clamp(0.5rem, 2vw, 2rem);
  top: 0;
  bottom: 0;
  width: clamp(170px, 22vw, 240px);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}
.gp-story__labels.is-on { opacity: 1; }
.gp-story__label {
  position: absolute;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 7px 12px 7px 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: #111827;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  /* Combined translate-y from script (positions vs layer) plus initial x offset */
  transition: opacity 400ms var(--ease-out);
}
.gp-story__label.is-on { opacity: 1; }
.gp-story__label-num {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #F3F4F6;
  color: #374151;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.gp-story__label-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ========================================
   STATIC FALLBACK & REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .gp-story__scroll { height: auto; }
  .gp-story__stage {
    position: relative;
    height: auto;
    padding: 2rem 0 4rem;
  }
  .gp-story__scene {
    height: auto;
    min-height: 600px;
  }
  .gp-story__feature-card,
  .gp-story__wallet,
  .gp-story__caption [data-cap],
  .gp-story__layer--infra { opacity: 1; }
  .gp-story__wallet { transform: translateY(-50%); }
  .gp-story__feature-card { transform: none; }
}

/* ========================================
   RESPONSIVE: mobile vertical sequence
   ======================================== */
@media (max-width: 880px) {
  .gp-story { --gp-story-length: auto; }
  .gp-story__scroll { height: auto; }
  .gp-story__logo-wrap { display: none; }
  .gp-story__stage {
    position: relative;
    height: auto;
    padding: 1rem 1.25rem 4rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .gp-story__intro {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    pointer-events: auto;
    padding-top: 6rem;
  }
  .gp-story__stage::before,
  .gp-story__stage::after { display: none; }
  .gp-story__canvas {
    position: relative;
    inset: auto;
  }
  .gp-story__scene {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .gp-story__caption,
  .gp-story__progress,
  .gp-story__paths,
  .gp-story__chips,
  .gp-story__labels,
  .gp-story__inputs,
  .gp-story__stack,
  .gp-story__canvas { display: none; }

  .gp-story__wallet {
    position: relative;
    right: auto; top: auto;
    transform: none !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 360px;
    margin: 3.5rem auto 0;
  }
  .gp-story__heading {
    animation: heroFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .gp-story__sub {
    animation: heroFadeIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }
}

/* ─────────── Desktop Scaling Upgrades (Option B & C) ─────────── */
@media (min-width: 1300px) {
  .gp-story__scene {
    width: min(1360px, 96vw);
    height: min(760px, 92vh);
  }
  .gp-story__stack {
    width: min(980px, 96%);
    height: min(700px, 95%);
  }
  .gp-story__wallet {
    width: clamp(250px, 26vw, 320px);
    right: clamp(12px, 2.5vw, 44px);
  }
  .gp-story__inputs {
    left: clamp(12px, 3vw, 54px);
    width: clamp(230px, 21vw, 270px);
    gap: 18px;
    padding: 28px 24px;
  }
}

/* ─────────── Firefox 3D Stack Fallback ─────────── */
.gp-story__firefox-fallback {
  display: none;
}

@media (min-width: 881px) {
  @supports (-moz-appearance: none) {
    .gp-story__firefox-fallback {
      position: absolute;
      left: 56%;
      top: 50%;
      width: min(1200px, 130%) !important;
      height: min(1000px, 130%) !important;
      pointer-events: none;
      z-index: 10;
    }
    .gp-story__firefox-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      clip-path: inset(0 0 100% 0);
    }
  }
}
