/* ============================================================
   HOBA GALAXY — "HOLO ARCADE"  ·  Gen-Z holographic redesign
   Void black · acid-emerald neon · iridescent foil · editorial type
   Shared system: tokens, type, nav, buttons, card artwork,
   background, marquee, stickers, footer, motion.
   ============================================================ */

:root {
  /* surfaces — CLASSIC: deep navy */
  --void:      #0f1320;
  --void-2:    #131829;
  --panel:     #171d31;
  --panel-2:   #1d2440;
  --line:      rgba(217, 179, 106, 0.20);
  --line-soft: rgba(200, 190, 160, 0.10);

  /* ink — warm ivory */
  --ink:   #f4f0e4;
  --mute:  #c2bcab;
  --faint: #948e7c;

  /* accent — gold (var names kept for compatibility) */
  --emerald: #d9b36a;        /* gold */
  --emerald-deep: #c8a25c;
  --lime:    #e3c685;
  --cyan:    #7da7d9;        /* steel blue secondary */
  --violet:  #c8a25c;
  --magenta: #d9b36a;

  --accent: var(--emerald);

  /* reward identity — gold (default accent) + premium purple + special */
  --reward-gold:       #e3c685;
  --reward-gold-deep:  #c8a25c;
  --reward-purple:     #b58bff;
  --reward-purple-deep:#7b50d6;
  --reward-special:    #8fb4e8;   /* gold + steel-blue special tier */

  /* foil — calm gold sheen (no rainbow) */
  --foil: linear-gradient(135deg,
      #c8a25c 0%, #e3c685 42%, #f3e2b2 62%, #c8a25c 100%);
  --foil-lin: linear-gradient(100deg,
      #c8a25c 0%, #e3c685 55%, #f3e2b2 100%);
  --foil-sweep: linear-gradient(100deg,
      #c8a25c, #e3c685 55%, #f3e2b2);

  --font-display: "Lora", "Cairo", serif;
  --font-body:    "Hanken Grotesk", "IBM Plex Sans Arabic", sans-serif;
  --font-mono:    "Space Mono", "IBM Plex Sans Arabic", monospace;

  --radius: 18px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[lang="ar"] {
  --font-display: "Cairo", "Bricolage Grotesque", sans-serif;
  --font-body:    "IBM Plex Sans Arabic", "Hanken Grotesk", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* language visibility */
html[lang="en"] .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

::selection { background: var(--emerald); color: #04110b; }

/* ============================================================
   LIVING BACKGROUND — void + drifting nebula + grid + grain
   ============================================================ */
.cosmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.cosmos::before { /* nebula blobs */
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(38% 40% at 78% 8%,  color-mix(in srgb, var(--emerald) 22%, transparent), transparent 70%),
    radial-gradient(34% 38% at 12% 22%, color-mix(in srgb, var(--violet)  20%, transparent), transparent 70%),
    radial-gradient(40% 42% at 52% 108%,color-mix(in srgb, var(--magenta) 14%, transparent), transparent 70%),
    radial-gradient(30% 34% at 96% 64%, color-mix(in srgb, var(--cyan)    12%, transparent), transparent 70%);
  filter: blur(8px);
  will-change: transform;
}
@media all {
  .cosmos::before { animation: nebulaDrift 26s ease-in-out infinite alternate; }
}
@keyframes nebulaDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2.5%, 1.8%, 0) scale(1.08); }
}

.cosmos .stars { /* fine starfield */
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 22% 18%, rgba(255,255,255,0.55), transparent 100%),
    radial-gradient(1px 1px   at 64% 9%,  rgba(255,255,255,0.40), transparent 100%),
    radial-gradient(1.5px 1.5px at 87% 32%, rgba(255,255,255,0.45), transparent 100%),
    radial-gradient(1px 1px   at 41% 44%, rgba(255,255,255,0.32), transparent 100%),
    radial-gradient(1.3px 1.3px at 12% 67%, rgba(255,255,255,0.38), transparent 100%),
    radial-gradient(1px 1px   at 73% 71%, rgba(255,255,255,0.30), transparent 100%),
    radial-gradient(1.4px 1.4px at 33% 88%, rgba(255,255,255,0.34), transparent 100%),
    radial-gradient(1px 1px   at 92% 86%, rgba(255,255,255,0.30), transparent 100%),
    radial-gradient(1.2px 1.2px at 6% 40%, rgba(255,255,255,0.3), transparent 100%);
  background-size: 1200px 1000px;
  background-repeat: repeat;
  opacity: 0.9;
}
@media all {
  .cosmos .stars { animation: twinkle 5.5s ease-in-out infinite alternate; }
}
@keyframes twinkle { 50% { opacity: 0.55; } }

.cosmos .grid { /* faint perspective grid at the base */
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, transparent 30%, #000 100%);
          mask-image: radial-gradient(120% 80% at 50% 0%, transparent 30%, #000 100%);
  opacity: 0.5;
}

/* grain overlay sits above everything, very subtle */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMjAiIGhlaWdodD0iMjIwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIvPjxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMjIwIiBoZWlnaHQ9IjIyMCIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjciLz48L3N2Zz4=');
}

main { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
html[lang="ar"] .display { line-height: 1.18; letter-spacing: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--emerald);
}
.kicker::before {
  content: ""; width: 1.6em; height: 2px; border-radius: 2px;
  background: var(--foil-lin); background-size: 200% 100%;
}
html[lang="ar"] .kicker { letter-spacing: 0.12em; }

/* foil text — the iridescent headline word */
.foil {
  background: var(--foil-sweep);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media all {
  .foil { animation: foilShift 6s linear infinite; }
}
@keyframes foilShift { to { background-position: 220% 0; } }

/* outline / stroke headline word */
.stroke {
  color: transparent;
  -webkit-text-stroke: 1.4px color-mix(in srgb, var(--ink) 60%, transparent);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 34px; }
section.band { padding: 84px 0; position: relative; }

.sec-head {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 52px;
}
.sec-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.sec-num {
  display: block; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--faint);
}
/* giant ghost index behind a section head */
.ghost-num {
  position: absolute; right: 0; top: -42px; z-index: -1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(90px, 16vw, 200px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line);
  opacity: 0.7; pointer-events: none; user-select: none;
}
html[lang="ar"] .ghost-num { right: auto; left: 0; }

/* ============================================================
   STICKERS — rotated neon pill badges
   ============================================================ */
.sticker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald);
  padding: 7px 13px; border-radius: 999px;
  border: 1.4px dashed color-mix(in srgb, var(--emerald) 55%, transparent);
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
}
.sticker.rot { transform: rotate(-4deg); }
.sticker .blip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}
@media all {
  .sticker .blip { animation: blip 1.8s ease-in-out infinite; }
}
@keyframes blip { 50% { transform: scale(0.6); opacity: 0.5; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  color: #04110b;
  background: var(--foil-sweep);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--emerald) 26%, transparent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px color-mix(in srgb, var(--violet) 38%, transparent);
  background-position: 100% 0;
}
.btn-ghost {
  color: var(--ink);
  background: rgba(236, 232, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(236, 232, 255, 0.1);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  transform: translateY(-3px);
}
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[lang="ar"] .btn .arr { transform: scaleX(-1); }
html[lang="ar"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }

/* magnetic wrapper offsets set in JS via --mxb/--myb */
.magnetic { transform: translate(var(--mxb, 0), var(--myb, 0)); transition: transform 0.18s var(--ease); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 80;
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: color-mix(in srgb, var(--void) 78%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 34px;
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
.nav-logo .dot {
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--foil);
  box-shadow: 0 0 16px color-mix(in srgb, var(--emerald) 75%, transparent);
}
@media all {
  .nav-logo .dot { animation: spinFoil 7s linear infinite; }
}
@keyframes spinFoil { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none;
  white-space: nowrap; transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(236, 232, 255, 0.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--foil-lin);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
/* Account + language live in the top bar on desktop; on mobile they move INTO
   the burger menu (see the max-width:960px block) and these copies are hidden. */
.nav-extra { display: none; }
.lang-btn {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  color: var(--mute); background: rgba(236, 232, 255, 0.05);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; cursor: pointer; transition: color 0.18s, border-color 0.18s;
}
.lang-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--emerald) 45%, transparent); }
.nav-buy { font-size: 13.5px; padding: 11px 20px; }

/* cart indicator */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; }
.nav-cart svg { display: block; }
.nav-cart-count {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 5px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1;
  color: #04110b; background: var(--foil-lin);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--emerald) 40%, transparent);
}

.nav-burger { display: none; }

/* ============================================================
   ACCESS-CARD ARTWORK — .hcard  (holographic foil)
   per-card hue passed via --ch (HSL hue, e.g. 80, 310)
   ============================================================ */
.hcard {
  --ch: 150;
  position: relative; isolation: isolate;
  aspect-ratio: 1.586; width: 100%;
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7.5% 8%;
  background:
    radial-gradient(120% 120% at 80% -10%, hsla(var(--ch), 90%, 16%, 0.9), transparent 60%),
    linear-gradient(160deg, #0c0a18 0%, #07060f 100%);
  border: 1px solid hsla(var(--ch), 80%, 60%, 0.22);
  box-shadow: 0 26px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  direction: ltr; text-align: left;
  /* pointer light position, updated by JS tilt */
  --mx: 50%; --my: 50%;
}

/* iridescent foil wash — the holographic surface */
.hcard .hc-foil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--foil);
  background-size: 180% 180%;
  opacity: 0.16; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(60% 60% at var(--mx) var(--my), #000 0%, transparent 72%);
          mask-image: radial-gradient(60% 60% at var(--mx) var(--my), #000 0%, transparent 72%);
  transition: opacity 0.3s;
}
.hcard:hover .hc-foil { opacity: 0.34; }
@media all {
  .hcard .hc-foil { animation: foilDrift 9s ease-in-out infinite alternate; }
}
@keyframes foilDrift { to { background-position: 100% 100%; } }

/* fine star dust */
.hcard .hc-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(255,255,255,0.6), transparent 100%),
    radial-gradient(1.3px 1.3px at 62% 14%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1px 1px at 84% 58%, rgba(255,255,255,0.45), transparent 100%),
    radial-gradient(1.1px 1.1px at 38% 72%, rgba(255,255,255,0.4), transparent 100%),
    radial-gradient(1px 1px at 70% 86%, rgba(255,255,255,0.36), transparent 100%);
}

/* holographic logo medallion */
.hcard .hc-mark {
  width: 2.6em; height: 2.6em; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1em;
  color: #04110b;
  background: var(--foil); background-size: 160% 160%;
  box-shadow: 0 0 22px hsla(var(--ch), 90%, 60%, 0.5);
}
@media all {
  .hcard .hc-mark { animation: foilDrift 6s linear infinite alternate; }
}

.hcard > div:not(.hc-foil):not(.hc-stars):not(.hc-sheen) { position: relative; z-index: 1; }
.hc-head { display: flex; align-items: center; justify-content: space-between; }
.hc-brand {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(8px, 0.58em, 12px); letter-spacing: 0.36em;
  color: rgba(245, 244, 255, 0.82);
}
.hc-chip {
  width: 2.5em; height: 1.8em; border-radius: 5px;
  background: linear-gradient(135deg, #ffe9a8, #c79a4e 55%, #ffe09a);
  position: relative; opacity: 0.95;
}
.hc-chip::after {
  content: ""; position: absolute; inset: 26% 18%;
  border: 1px solid rgba(80,58,18,0.5); border-radius: 3px;
}
.hc-mid { margin-top: auto; }
.hc-cat {
  display: block; margin-bottom: 0.6em;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(6px, 0.46em, 9px); letter-spacing: 0.46em; text-transform: uppercase;
  color: hsla(var(--ch), 90%, 72%, 0.95);
}
.hc-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(12px, 1.18em, 26px); line-height: 1.02;
  letter-spacing: -0.01em; color: #fff; text-transform: uppercase; max-width: 90%;
}
.hc-foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 1.3em;
  font-family: var(--font-mono);
  font-size: clamp(6px, 0.42em, 9px); letter-spacing: 0.26em;
  color: rgba(245, 244, 255, 0.5);
}

/* sheen sweep across the card */
.hcard .hc-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,0.22) 48%, rgba(255,255,255,0.04) 56%, transparent 66%);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.card-tile:hover .hc-sheen,
.hcard-hover:hover .hc-sheen,
.detail-card-wrap:hover .hc-sheen { transform: translateX(130%); }

/* 3D tilt host */
.tilt { perspective: 1000px; }
.tilt .hcard {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s var(--ease), box-shadow 0.3s;
  transform-style: preserve-3d;
}
.tilt:hover .hcard {
  box-shadow: 0 36px 80px rgba(0,0,0,0.65), 0 0 50px hsla(var(--ch), 90%, 55%, 0.25);
}

/* simple hover lift (grids without tilt) */
.hcard-hover { transition: transform 0.4s var(--ease-spring), box-shadow 0.4s; }
.hcard-hover:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 40px 90px rgba(0,0,0,0.7), 0 0 46px hsla(var(--ch), 85%, 55%, 0.18); }

/* ============================================================
   MARQUEE — neon ticker band
   ============================================================ */
.marquee {
  position: relative; z-index: 1; overflow: hidden; direction: ltr;
  border-block: 1px solid var(--line-soft);
  padding: 18px 0; background: color-mix(in srgb, var(--void-2) 70%, transparent);
}
.marquee.skew { transform: rotate(-1.6deg) scale(1.03); margin: 18px 0; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; letter-spacing: 0.02em; white-space: nowrap; color: var(--mute);
  text-transform: uppercase;
}
.marquee-track .mq-x { color: var(--emerald); }
.marquee-track .mq-hl { -webkit-text-stroke: 1.2px color-mix(in srgb, var(--emerald) 70%, transparent); color: transparent; }
@media all {
  .marquee-track { animation: marqueeScroll 30s linear infinite; }
  .marquee.rev .marquee-track { animation-direction: reverse; }
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1; margin-top: 40px; padding: 84px 0 40px;
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--void-2) 60%, transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 52px; margin-bottom: 56px; }
.footer-brand p { color: var(--mute); font-size: 14.5px; max-width: 380px; margin-top: 18px; text-wrap: pretty; }
.footer-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--emerald);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  background: color-mix(in srgb, var(--emerald) 7%, transparent);
  border-radius: 999px; padding: 6px 13px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--faint); text-transform: uppercase; margin-bottom: 22px;
}
html[lang="ar"] .footer-col h4 { letter-spacing: 0.12em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: var(--mute); text-decoration: none; font-size: 14.5px; transition: color 0.16s; }
.footer-col a:hover { color: var(--emerald); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--faint);
}
.footer-bottom a { color: var(--mute); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ============================================================
   MOTION — scroll reveal primitives
   ============================================================ */
@media all {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
  .rv-l { opacity: 0; transform: translateX(-32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .rv-l.in { opacity: 1; transform: none; }
  .rv-s { opacity: 0; transform: scale(0.94); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-spring); }
  .rv-s.in { opacity: 1; transform: none; }
}
/* hero entrance — staggered rise-in (matches Website Redesign V2) */
@media all {
  .hero .kicker     { animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s backwards; }
  .hero h1          { animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s backwards; }
  .hero .lede       { animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s backwards; }
  .hero .hero-ctas  { animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s backwards; }
  .hero .hero-stats { animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s backwards; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } }

/* Motion is intentionally kept ON regardless of the OS reduced-motion setting
   (per request). Re-enable the guard here if accessibility requires it. */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .wrap { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px 22px 26px;
    background: color-mix(in srgb, var(--void) 96%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); pointer-events: none;
  }
  .nav.open .nav-links { transform: none; pointer-events: auto; }
  /* side/mobile menu — each item sits in its own card container */
  .nav-links a {
    padding: 15px 18px; font-size: 16px; border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--panel) 50%, transparent);
    transition: border-color 0.16s, background 0.16s, color 0.16s;
  }
  .nav-links a:hover { background: color-mix(in srgb, var(--emerald) 8%, transparent); }
  .nav-links a.active {
    border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
    background: color-mix(in srgb, var(--emerald) 12%, transparent);
    color: var(--ink);
  }
  .nav-links a.active::after { display: none; }
  /* ----- account + language toggle, moved inside the burger menu on mobile ----- */
  .nav-extra { display: block; }
  .nav-extra.nav-extra-first {
    margin-top: 10px; padding-top: 16px;
    border-top: 1px solid var(--line-soft);
  }
  /* style the account link + lang button as full-width menu rows, matching the
     other items; works for both LTR and RTL because it follows the panel's dir */
  .nav-extra .nav-acct,
  .nav-extra .nav-extra-lang {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    width: 100%; box-sizing: border-box;
    padding: 15px 18px; border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--panel) 50%, transparent);
    font-size: 16px; font-weight: 600; color: var(--ink);
    text-decoration: none; cursor: pointer;
    transition: border-color 0.16s, background 0.16s, color 0.16s;
  }
  .nav-extra .nav-acct:hover,
  .nav-extra .nav-extra-lang:hover {
    background: color-mix(in srgb, var(--emerald) 8%, transparent);
  }
  /* keep only the cart icon + burger in the top bar; the lang toggle and the
     account link now live in the menu, so hide their top-bar copies */
  .nav-cta > .lang-btn:not(.nav-cart):not(.nav-acct),
  .nav-cta > .nav-acct { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
    background: rgba(236,232,255,0.05); border: 1px solid var(--line);
  }
  .nav-burger i { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.3s, opacity 0.2s; }
  .nav.open .nav-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger i:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-buy { display: none; }
  section.band { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; }
  .ghost-num { font-size: 84px; top: -28px; }
}
@media (max-width: 560px) {
  .marquee-track span { font-size: 14px; }
}

/* ============================================================
   CLASSIC THEME — calm the holographic card artwork to navy + gold
   ============================================================ */
.hcard {
  /* Navy base, but the per-card hue (--ch) now tints the glow, border and
     outer shadow so each card carries its own colour while staying on-brand. */
  filter: saturate(0.6) brightness(1.02);
  border-color: hsla(var(--ch), 55%, 62%, 0.45) !important;
  background:
    radial-gradient(120% 120% at 80% -10%, hsla(var(--ch), 65%, 32%, 0.60), transparent 60%),
    linear-gradient(160deg, #141a2e 0%, #0d1120 100%) !important;
  box-shadow: 0 22px 56px rgba(0,0,0,0.55), inset 0 1px 0 rgba(243, 226, 178, 0.08),
    0 0 42px hsla(var(--ch), 60%, 50%, 0.12) !important;
}
.hcard .hc-foil { mix-blend-mode: overlay; opacity: 0.22; }
.hcard:hover .hc-foil { opacity: 0.4; }
.hc-cat { color: #d9b36a !important; }
.hc-mark { color: #1a1407 !important; }
.hc-brand { letter-spacing: 0.32em; }

/* refined serif headings: a touch more air */
.hero h1, .page-hero h1, .cta-band h2, .sec-head h2 { font-weight: 700; }
.kicker { letter-spacing: 0.26em; }

/* foil words read as solid gold shimmer */
.foil, .ha-foil-word { -webkit-text-fill-color: transparent; }
