/* ═══════════════════════════════════════════════════════════════
   fair. — motion & interaction layer (loads after site.css)
   Floating hero card, cursor parallax, spotlight, card scroll
   scene, scroll word reveals, counters, footer mega wordmark.
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero device cluster ─────────────────────────────────── */
.hero-device { position: relative; will-change: transform; }

/* ── Hero intro: headline zooms from full screen into place ─ */
body.zoomhero .hero-variant { height: 205vh; }
body.zoomhero .hero-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
body.zoomhero .hero-inner { width: 100%; padding-top: 0; padding-bottom: 0; }
body.zoomhero .display-hero { will-change: transform; }
body.zoomhero .scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  body.zoomhero.anim .he { opacity: 0; transform: translateY(22px); transition: none; }
  body.zoomhero.anim.stage2 .he { opacity: 1; transform: none; transition: opacity 700ms var(--ease-enter), transform 700ms var(--ease-enter); }
  body.zoomhero.anim.stage2 .he-1 { transition-delay: 0ms; }
  body.zoomhero.anim.stage2 .he-3 { transition-delay: 100ms; }
  body.zoomhero.anim.stage2 .he-5 { transition-delay: 200ms; }
  body.zoomhero.anim .he-phone { opacity: 0; transform: translateY(64px) scale(0.96); transition: none; }
  body.zoomhero.anim.stage2 .he-phone { opacity: 1; transform: none; transition: opacity 800ms var(--ease-enter) 140ms, transform 800ms var(--ease-enter) 140ms; }
}

/* second + third drifting glow layers on the ambient hero */
.hero-glow2 {
  position: absolute; pointer-events: none; border-radius: 999px; filter: blur(70px);
  width: 460px; height: 460px; left: -140px; bottom: -180px;
  background: radial-gradient(closest-side, rgba(212,160,67,0.22), transparent 70%);
}
.hero-glow3 {
  position: absolute; pointer-events: none; border-radius: 999px; filter: blur(64px);
  width: 420px; height: 420px; right: 6%; top: 26%;
  background: radial-gradient(closest-side, rgba(246,206,122,0.20), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body:not([data-motion="calm"]) .hero-glow { animation: fx-glowdrift 11s ease-in-out infinite alternate; }
  body:not([data-motion="calm"]) .hero-glow2 { animation: fx-glowdrift2 14s ease-in-out infinite alternate; }
  body:not([data-motion="calm"]) .hero-glow3 { animation: fx-glowdrift3 17s ease-in-out infinite alternate; }
}
@keyframes fx-glowdrift2 {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  to { transform: translate3d(56px, -40px, 0) scale(1.12); opacity: 1; }
}
@keyframes fx-glowdrift3 {
  from { transform: translate3d(-30px, 20px, 0) scale(0.96); opacity: 0.55; }
  to { transform: translate3d(44px, -30px, 0) scale(1.1); opacity: 0.95; }
}
@keyframes fx-glowdrift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(-48px, 34px, 0) scale(1.1); opacity: 1; }
}

/* ── In-phone life: balance crossfade + txn stagger ───────── */
.m-dots i { transition: width 240ms var(--ease-standard), background 240ms var(--ease-standard); }
.bal-fade { transition: opacity 240ms var(--ease-standard), transform 240ms var(--ease-standard); }
.bal-fade.out { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: no-preference) {
  body.anim .m-txns > div.m-row { opacity: 0; transform: translateY(10px); }
  body.anim.loaded .m-txns > div.m-row {
    opacity: 1; transform: none;
    transition: opacity 480ms var(--ease-enter), transform 480ms var(--ease-enter);
  }
  body.anim.loaded .m-txns > div.m-row:nth-of-type(1) { transition-delay: 560ms; }
  body.anim.loaded .m-txns > div.m-row:nth-of-type(2) { transition-delay: 650ms; }
  body.anim.loaded .m-txns > div.m-row:nth-of-type(3) { transition-delay: 740ms; }
  body.noanim .m-txns > div.m-row { opacity: 1 !important; transform: none !important; }
}

/* ── Scroll word reveal (.wr headings) ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body.anim .wr .hw > span { transform: translateY(115%); opacity: 0.2; filter: blur(5px); transition: none; }
  body.anim .wr.in .hw > span {
    transform: none; opacity: 1; filter: blur(0);
    transition: transform 780ms var(--ease-emphasised), opacity 480ms linear, filter 600ms var(--ease-standard);
  }
  body.anim .wr .gold-dot { display: inline-block; opacity: 0; transform: translateY(0.12em) scale(0.4); transition: none; }
  body.anim .wr.in .gold-dot { opacity: 1; transform: none; transition: opacity 420ms var(--ease-enter), transform 460ms var(--ease-enter); }
  body.noanim .wr .hw > span, body.noanim .wr .gold-dot { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ── Cursor spotlight on dark surfaces ────────────────────── */
.tile-dark, .cta-card { --mx: 50%; --my: 40%; }
.tile-dark::after, .cta-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(212,160,67,0.14), transparent 65%);
  transition: opacity 480ms var(--ease-standard);
}
.tile-dark:hover::after, .cta-card:hover::after { opacity: 1; }

/* ── Micro-interactions ───────────────────────────────────── */
.tile-go svg { transition: transform 240ms var(--ease-standard); }
.tile:hover .tile-go svg { transform: translateX(4px); }
.tile .tile-icon svg { transition: transform 320ms var(--ease-standard); }
.tile:hover .tile-icon svg { transform: translateY(-2px) scale(1.06); }
.nav { transition: padding 320ms var(--ease-standard), box-shadow 320ms var(--ease-standard); }
.nav-wrap.scrolled .nav { padding: 7px 9px 7px 18px; }

/* ── Fair Card scroll scene ───────────────────────────────── */
.card-scene { position: relative; height: 300vh; background: linear-gradient(160deg, #241C12 0%, #17110B 58%, #141009 100%); }
.cs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.cs-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.cs-stage { position: relative; perspective: 1300px; display: flex; justify-content: center; }
.cs-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 560px; height: 560px; border-radius: 999px; filter: blur(80px);
  background: radial-gradient(closest-side, rgba(212,160,67,0.28), transparent 70%);
}
.cc-xl {
  width: min(500px, 42vw); border-radius: 30px; padding: 32px 34px; will-change: transform;
  transform: rotateX(calc(14deg - 11deg * var(--csp, 0.5))) rotateY(calc(-24deg + 48deg * var(--csp, 0.5)));
}
.cc-xl .cc-chip { width: 60px; height: 45px; border-radius: 10px; }
.cc-xl .cc-wm { font-size: 42px; top: 26px; right: 34px; }
.cc-xl .cc-num { font-size: 27px; bottom: 86px; left: 34px; }
.cc-xl .cc-name { font-size: 15px; bottom: 38px; left: 34px; }
.cc-xl .cc-net { right: 34px; bottom: 34px; }
.cc-xl .cc-net i { width: 46px; height: 46px; }
.cc-xl .cc-net i + i { margin-left: -18px; }
.cs-sheen {
  position: absolute; top: -30%; bottom: -30%; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: translateX(calc(-150% + 420% * var(--csp, 0.5))) skewX(-14deg);
}
.cs-caps { position: relative; min-height: 300px; }
.cs-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-enter), transform var(--duration-slow) var(--ease-enter);
}
.cs-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cs-dots { margin-top: 36px; }
.card-scene .display-l2 { color: #FAF7F0; }
.card-scene .lead2 { color: rgba(250,247,240,0.72); }
.card-scene .eyebrow-gold { color: var(--brand-gold); }
.cs-stage::before { background: radial-gradient(closest-side, rgba(212,160,67,0.34), transparent 70%); }

@media (max-width: 1020px) {
  .card-scene { height: auto; }
  .cs-sticky { position: static; height: auto; padding: 80px 0; overflow: visible; }
  .cs-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-caps { min-height: 0; display: flex; flex-direction: column; gap: 36px; }
  .cs-cap { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .cs-dots { display: none; }
  .cc-xl { width: min(420px, 88vw); }
}
@media (prefers-reduced-motion: reduce) {
  .card-scene { height: auto; }
  .cs-sticky { position: static; height: auto; padding: 80px 0; overflow: visible; }
  .cs-caps { min-height: 0; display: flex; flex-direction: column; gap: 36px; }
  .cs-cap { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .cs-dots { display: none; }
  .cc-xl { transform: none; }
  .cs-sheen { display: none; }
}

/* ── Footer mega wordmark ─────────────────────────────────── */
.footer-mega {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(100px, 16vw, 220px); line-height: 0.85; letter-spacing: -0.05em;
  text-align: center; color: rgba(250,247,240,0.06); margin: 0 0 64px; user-select: none;
}
.footer-mega .d { color: var(--brand-gold); opacity: 0.9; }

/* ── Liquid glass pass ────────────────────────────────────── */
.nav {
  position: relative;
  background: rgba(250, 247, 240, 0.45);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(17,17,17,0.05), 0 12px 32px rgba(17,17,17,0.07), inset 0 1px 0 rgba(255,255,255,0.65);
}
.nav::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--material-glass-specular); opacity: 0.55;
}
.nav-badge {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.countdown.light .cd-cell {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 3px rgba(17,17,17,0.05);
}
.launch-pill.light {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.65);
}
.m-search {
  background: rgba(255, 255, 255, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

/* ── Hero glass panel (Save/Spend/Borrow/Invest) ──────────── */
.gp {
  position: relative; width: min(460px, 100%); border-radius: 34px; padding: 34px 26px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 36px 90px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.16);
  color: #FAF7F0;
}
.gp::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--material-glass-specular); opacity: 0.14;
}
.gp-tabs {
  position: relative; display: flex; justify-content: center; gap: 2px; padding: 0; border-radius: 999px;
  background: none; border: none; box-shadow: none;
  width: fit-content; max-width: 100%; margin: 0 auto;
}
.gp-tab {
  flex: 0 1 auto; min-width: 0; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: rgba(250,247,240,0.66);
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  transition: background 320ms var(--ease-standard), color 320ms var(--ease-standard);
}
.gp-tab:hover { color: rgba(250,247,240,0.9); }
.gp-tab.on { background: rgba(255,255,255,0.14); color: #FAF7F0; border: 0.5px solid rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.20); backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%); }
.gp-tab { border: 0.5px solid transparent; }
.gp-tab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.gp-views { position: relative; height: 172px; margin-top: 30px; }
.gp-view {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 240ms var(--ease-standard), transform 240ms var(--ease-standard);
}
.gp-view.on { opacity: 1; transform: none; }
.gp-lab { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: rgba(250,247,240,0.62); }
.gp-amt {
  font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1.05;
  letter-spacing: -0.035em; margin-top: 4px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.gp-amt .sym { font-family: var(--font-ui); font-weight: 700; font-size: 30px; opacity: 0.75; display: inline-block; transform: translateY(-4px); }
.gp-amt .tail { font-size: 24px; font-weight: 600; opacity: 0.6; }
.gp-sub { font-size: 13px; color: rgba(250,247,240,0.6); margin-top: 8px; }
.gp-actions { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }
.gp-act {
  width: 54px; height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.40), inset 0 -1px 0 rgba(0,0,0,0.12);
  color: #FAF7F0;
  transition: transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard);
}
.gp-act:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.12); }
.gp-act.solid { background: rgba(255,255,255,0.94); color: #111111; border-color: transparent; box-shadow: 0 12px 30px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,1); }
/* cream hero variant */
.hero-cream .gp {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 28px 70px rgba(17,17,17,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  color: var(--content-primary);
}
.hero-cream .gp-tabs { background: none; border: none; box-shadow: none; }
.hero-cream .gp-tab.on { background: rgba(255,255,255,0.7); color: #111111; border-color: rgba(255,255,255,0.9); box-shadow: 0 1px 4px rgba(17,17,17,0.08); }
.hero-cream .gp-tab { color: var(--content-secondary); }
.hero-cream .gp-tab:hover { color: var(--content-primary); }
.hero-cream .gp-lab { color: var(--content-tertiary); }
.hero-cream .gp-sub { color: var(--content-tertiary); }
.hero-cream .gp-act { background: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.85); color: var(--content-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 3px rgba(17,17,17,0.06); }
.hero-cream .gp-act.solid { background: #111111; color: #FAF7F0; }
