/* ========== LUMIO — fonts, tokens, base ========== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-0: #04061a;        /* deepest midnight */
  --bg-1: #070a25;        /* cosmic navy */
  --bg-2: #0c1235;        /* raised navy */
  --bg-3: #131a47;        /* card navy */
  --ink: #1c2659;         /* hairline */

  --gold: #e9c179;
  --gold-bright: #f6dca3;
  --gold-deep: #b48a44;
  --gold-glow: rgba(233, 193, 121, 0.45);

  --cream: #f5ecd6;
  --paper: #efe6cf;
  --text: #e9ecf7;
  --mute: #a9b1cb;
  --mute-2: #6b7398;

  --serif: 'Cormorant Garamond', 'Cormorant', 'Apple Garamond', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  /* layered cosmic background — radial pools of color over deep midnight */
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(233,193,121,0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(80,110,220,0.10), transparent 60%),
    radial-gradient(1200px 800px at 50% 110%, rgba(120,80,200,0.10), transparent 60%),
    linear-gradient(180deg, #04061a 0%, #060924 40%, #04061a 100%);
}

.font-serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.font-sans  { font-family: var(--sans); }

/* selection */
::selection { background: var(--gold); color: var(--bg-0); }

/* scrollbars (Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #1c2659; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #2a3680; }

/* ========== Typography helpers ========== */
.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.h-section {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.h-card {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  color: var(--cream);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.body-lead {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--mute);
  font-weight: 400;
}

/* ========== Gold rule / divider ========== */
.gold-rule {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold); font-family: var(--serif); font-style: italic;
}
.gold-rule::before, .gold-rule::after {
  content: "";
  display: block; width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  /* Emil: strong ease-out, fast. Transform/box-shadow only (cheap to animate). */
  transition: transform .16s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow .22s cubic-bezier(0.23, 1, 0.32, 1),
              background .22s ease,
              border-color .22s ease;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
/* Emil: buttons MUST feel responsive to press. Scale down on active for
   instant tactile feedback — this is the single biggest "feel" upgrade. */
.btn:active {
  transform: scale(0.97);
}
/* Keyboard accessibility — visible focus ring for tab users */
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  color: #1a1208;
  background: linear-gradient(180deg, #f6dca3 0%, #e9c179 50%, #c89a55 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 -8px 16px rgba(180,138,68,0.4) inset,
    0 10px 30px -8px rgba(233,193,121,0.5),
    0 0 0 1px rgba(180,138,68,0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -8px 16px rgba(180,138,68,0.5) inset,
    0 14px 40px -8px rgba(233,193,121,0.7),
    0 0 0 1px rgba(244,215,150,0.9);
}
/* On press, combine the lift-reset with the scale for a natural "push" */
.btn-primary:active {
  transform: scale(0.97);
}
.btn-ghost {
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(233,193,121,0.45);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(233,193,121,0.06);
  box-shadow: 0 0 30px -10px var(--gold-glow);
}
.btn-sm { padding: 11px 18px; font-size: 11px; letter-spacing: 0.2em; }

/* ========== Card surface — dark luxury panels with golden hairline ========== */
.surface {
  background: linear-gradient(180deg, rgba(19,26,71,0.55) 0%, rgba(8,12,40,0.7) 100%);
  border: 1px solid rgba(233,193,121,0.18);
  border-radius: 6px;
  position: relative;
}
.surface::before {
  /* subtle inner top-light */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(233,193,121,0.05), transparent 30%);
  pointer-events: none;
}
.surface-elev {
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(233,193,121,0.06) inset;
}

/* ========== Star field overlay ========== */
.starfield {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 22%, #fff6dc 0%, transparent 60%),
    radial-gradient(1px 1px at 31% 64%, #c9d5ff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 12%, #f5ecd6 0%, transparent 60%),
    radial-gradient(1px 1px at 63% 78%, #fff6dc 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 35%, #c9d5ff 0%, transparent 60%),
    radial-gradient(1px 1px at 88% 58%, #fff6dc 0%, transparent 60%),
    radial-gradient(1px 1px at 7% 80%, #fff6dc 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 56% 47%, #f5ecd6 0%, transparent 60%),
    radial-gradient(1px 1px at 22% 92%, #c9d5ff 0%, transparent 60%),
    radial-gradient(1px 1px at 71% 90%, #fff6dc 0%, transparent 60%);
  background-size: 100% 100%;
  opacity: 0.7;
}
.starfield.dense {
  background-image:
    radial-gradient(1px 1px at 4% 12%, #fff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 19% 38%, #fff6dc 0%, transparent 60%),
    radial-gradient(1px 1px at 32% 8%, #c9d5ff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 28%, #f5ecd6 0%, transparent 60%),
    radial-gradient(1px 1px at 57% 71%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 69% 11%, #c9d5ff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 47%, #fff6dc 0%, transparent 60%),
    radial-gradient(1px 1px at 92% 84%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 11% 73%, #fff 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 27% 92%, #f5ecd6 0%, transparent 60%),
    radial-gradient(1px 1px at 43% 89%, #c9d5ff 0%, transparent 60%),
    radial-gradient(1px 1px at 64% 38%, #fff6dc 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 76% 65%, #fff 0%, transparent 60%),
    radial-gradient(1px 1px at 88% 22%, #fff6dc 0%, transparent 60%);
}

/* tiny twinkle animation */
@keyframes twinkle { 0%,100% { opacity: 0.55 } 50% { opacity: 1 } }
.twinkle { animation: twinkle 4s ease-in-out infinite; }
.twinkle.slow { animation-duration: 7s; }
.twinkle.fast { animation-duration: 2.6s; }

/* float */
@keyframes drift-y { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes drift-y-rev { 0%,100% { transform: translateY(0) } 50% { transform: translateY(10px) } }
.drift { animation: drift-y 8s ease-in-out infinite; }
.drift.rev { animation-name: drift-y-rev; animation-duration: 9s; }
.drift.slow { animation-duration: 12s; }

/* portal glow pulse */
@keyframes portal-pulse {
  0%,100% { filter: drop-shadow(0 0 30px rgba(233,193,121,0.55)) drop-shadow(0 0 80px rgba(233,193,121,0.25)); }
  50%     { filter: drop-shadow(0 0 50px rgba(233,193,121,0.8))  drop-shadow(0 0 120px rgba(233,193,121,0.4)); }
}
.portal-pulse { animation: portal-pulse 5s ease-in-out infinite; }

/* particle rise */
@keyframes rise {
  0%   { transform: translateY(0)    translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* spin slow */
@keyframes spin-slow { from { transform: rotate(0) } to { transform: rotate(360deg) } }
.spin-slow { animation: spin-slow 60s linear infinite; }
.spin-slower { animation: spin-slow 120s linear infinite; }
.spin-rev { animation: spin-slow 90s linear infinite reverse; }

/* gold shimmer text */
.gold-text {
  background: linear-gradient(90deg, #b48a44 0%, #f6dca3 25%, #e9c179 50%, #f6dca3 75%, #b48a44 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50% } 100% { background-position: 200% 50% } }

/* ========== World card ========== */
.world-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(233,193,121,0.22);
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), border-color .3s ease, box-shadow .3s ease;
}
.world-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 60px -25px rgba(233,193,121,0.35); }
.world-card.selected { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold) inset, 0 30px 80px -25px rgba(233,193,121,0.55); }

/* ─── "Choisi" badge — top-right, solid background, always readable ─── */
.world-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 6;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(4, 6, 26, 0.85);
  border: 1px solid rgba(233, 193, 121, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── Info band — sits at bottom of card over image
   Default: 38% card height (title + subtitle only)
   Hover or selected: expands to 75% to reveal description + mission */
.world-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  pointer-events: none;
  /* height controls how much of the image gets covered */
  min-height: 38%;
  display: flex; align-items: flex-end;
  transition: min-height .4s cubic-bezier(0.23, 1, 0.32, 1);
}
.world-card:hover .world-card-info,
.world-card.selected .world-card-info {
  min-height: 75%;
}

/* Background of the info band — sharp transition from transparent to solid dark.
   This is what guarantees text readability over ANY uploaded image. */
.world-card-info-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(4, 6, 26, 0.4) 12%,
    rgba(4, 6, 26, 0.85) 28%,
    rgba(4, 6, 26, 0.97) 45%,
    rgba(4, 6, 26, 1) 100%
  );
  z-index: 1;
}

/* Text content sits above the gradient */
.world-card-info-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px 20px 20px;
}

/* The reveal zone — description + mission. Hidden by default,
   slides up on hover or when selected. */
.world-card-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height .4s cubic-bezier(0.23, 1, 0.32, 1),
    opacity .3s ease .04s;
}
.world-card:hover .world-card-reveal,
.world-card.selected .world-card-reveal {
  max-height: 280px;
  opacity: 1;
}

/* Mission only when selected (even on hover, not shown) */
.world-card-mission {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .42s cubic-bezier(0.23, 1, 0.32, 1), opacity .3s ease;
}
.world-card-mission[data-show='true'] {
  max-height: 120px;
  opacity: 1;
}

/* ─── Dot indicators (mobile carousel only) ────────────────────────── */
.worlds-indicator {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.worlds-indicator .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(233, 193, 121, 0.25);
  transition: width .25s ease, border-radius .25s ease, background .25s ease;
}
.worlds-indicator .dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--gold);
}

/* ─── Mobile (≤640px): convert worlds grid to horizontal swipeable
   carousel with scroll-snap. Each card snaps into view on swipe.
   Cards take ~78% viewport width so the next card peeks at the edge,
   making it obvious there's more to swipe. */
@media (max-width: 640px) {
  .worlds-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Negative margin + padding to bleed scroll to viewport edges
       while keeping cards aligned with the container gutters. */
    margin-left: -18px;
    margin-right: -18px;
    padding: 12px 18px 24px 18px;
    scrollbar-width: none;
  }
  .worlds-track::-webkit-scrollbar { display: none; }

  .worlds-track .world-card {
    scroll-snap-align: center;
    flex: 0 0 78%;
    max-width: 320px;
  }

  /* Show the dot indicators only on mobile */
  .worlds-indicator {
    display: flex;
  }
}
.world-card .corner-frame {
  position: absolute; inset: 8px;
  border: 1px solid rgba(233,193,121,0.0);
  pointer-events: none;
  z-index: 3;
  transition: border-color .3s ease;
}
.world-card:hover .corner-frame,
.world-card.selected .corner-frame { border-color: rgba(233,193,121,0.45); }

/* Belt-and-suspenders text shadow inside world cards — guarantees that
   if the image happens to have a bright color exactly at a text-edge zone,
   the text stays crisp via a soft dark drop-shadow. */
.world-card .font-serif,
.world-card .text-\[11\.5px\],
.world-card .hairline {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* On touch devices (mobile/tablet), hover doesn't exist — so always
   show the description so users see it without needing to tap. Only the
   mission stays hidden until tap (selected state). */
@media (hover: none) {
  .world-card .world-card-info {
    min-height: 75%;
  }
  .world-card .world-card-reveal {
    max-height: 280px;
    opacity: 1;
  }
}

/* corner ornaments */
.corner-frame::before, .corner-frame::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--gold);
}
.corner-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ========== Form ========== */
.field {
  width: 100%;
  background: rgba(4,6,26,0.65);
  border: 1px solid rgba(233,193,121,0.22);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 14px 16px 14px 44px;
  border-radius: 3px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;
}
.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,193,121,0.12);
  background: rgba(8,12,40,0.85);
}
.field::placeholder { color: var(--mute-2); }
.field.error { border-color: #e26a6a; box-shadow: 0 0 0 3px rgba(226,106,106,0.15); }
.field-wrap { position: relative; }
.field-wrap .field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); opacity: .85;
  pointer-events: none;
}
select.field {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select.field option { background: var(--bg-1); color: var(--text); }

/* ========== Language picker (preorder form) ========== */
.lang-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lang-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  background: rgba(4, 6, 26, 0.65);
  border: 1px solid rgba(233, 193, 121, 0.18);
  border-radius: 4px;
  color: #c9d0e8;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .22s cubic-bezier(.2,.7,.2,1), background .22s cubic-bezier(.2,.7,.2,1), color .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1), transform .22s cubic-bezier(.2,.7,.2,1);
}
.lang-option:hover {
  border-color: rgba(233, 193, 121, 0.5);
  background: rgba(8, 12, 40, 0.85);
  color: var(--cream);
}
.lang-option.active {
  border-color: var(--gold-bright);
  background: rgba(233, 193, 121, 0.08);
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(233, 193, 121, 0.4), 0 6px 24px -8px rgba(233, 193, 121, 0.3);
}
.lang-option .lang-flag {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.lang-option .lang-label {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.01em;
}
.lang-option.active .lang-label {
  color: var(--cream);
}
.lang-option .lang-check {
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--gold);
  display: inline-flex;
}
@media (max-width: 520px) {
  .lang-picker {
    grid-template-columns: 1fr;
  }
  .lang-option {
    justify-content: flex-start;
    padding: 12px 16px;
  }
}

/* ========== gender picker (same look as lang picker) ========== */
.gender-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gender-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px;
  background: rgba(4, 6, 26, 0.65);
  border: 1px solid rgba(233, 193, 121, 0.18);
  border-radius: 4px;
  color: #c9d0e8;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .22s cubic-bezier(.2,.7,.2,1), background .22s cubic-bezier(.2,.7,.2,1), color .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s cubic-bezier(.2,.7,.2,1), transform .22s cubic-bezier(.2,.7,.2,1);
}
.gender-option:hover {
  border-color: rgba(233, 193, 121, 0.5);
  background: rgba(8, 12, 40, 0.85);
  color: var(--cream);
}
.gender-option.active {
  border-color: var(--gold-bright);
  background: rgba(233, 193, 121, 0.08);
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(233, 193, 121, 0.4), 0 6px 24px -8px rgba(233, 193, 121, 0.3);
}
.gender-option .gender-emoji {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.gender-option .gender-label {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.gender-option .gender-check {
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--gold);
  display: inline-flex;
}
@media (max-width: 520px) {
  .gender-picker { grid-template-columns: 1fr; }
  .gender-option { justify-content: flex-start; padding: 12px 16px; }
}

/* ========== image-slot — premium dark theming ========== */
image-slot {
  display: block !important;
  color: rgba(245, 236, 214, 0.78);
  font-family: var(--sans) !important;
  width: 100% !important;
  height: 100% !important;
}
image-slot::part(frame) {
  background: transparent !important;
}
image-slot::part(empty) {
  color: rgba(245, 236, 214, 0.85);
  padding: 28px !important;
  gap: 12px !important;
  font-family: var(--serif) !important;
  font-size: 15px !important;
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 18px rgba(0,0,0,0.6);
}
image-slot::part(image) {
  /* let images breathe */
}

/* ========== Misc ========== */
.hairline { background: linear-gradient(90deg, transparent, rgba(233,193,121,0.4), transparent); height: 1px; width: 100%; }
.no-select { user-select: none; }

/* timeline dot */
.tl-node {
  width: 64px; height: 64px; border-radius: 999px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(233,193,121,0.25), rgba(8,12,40,0.9) 70%);
  border: 1px solid rgba(233,193,121,0.5);
  color: var(--gold);
  position: relative;
  box-shadow: 0 0 30px -8px var(--gold-glow);
}
.tl-node.active { border-color: var(--gold-bright); box-shadow: 0 0 40px -4px var(--gold-glow); }

/* check tick */
.tick {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: linear-gradient(180deg, #f6dca3, #c89a55);
  color: #1a1208;
  flex: 0 0 22px;
}

/* keyframe entry helpers (no-JS fallback if needed) */
.fade-in { animation: fade-in .8s ease forwards; opacity: 0; }
@keyframes fade-in { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(8px); } }

/* ───────────────────────────────────────────────────────────────────────
   Responsive refinements
   Mobile (≤640px): tight, scannable, big tap targets, no edge-touching text
   Tablet (641-1024px): comfortable two-column layouts stay readable
   ─────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* ── 1. Container gutters: never let text or buttons touch the edges ── */
  .max-w-7xl, .max-w-5xl { padding-left: 20px !important; padding-right: 20px !important; }

  /* ── 2. Section paddings: shrink the 7rem desktop padding to something
        that fits on a phone without scrolling forever between sections ── */
  section { padding-top: 56px !important; padding-bottom: 56px !important; }
  section.py-28 { padding-top: 56px !important; padding-bottom: 56px !important; }
  section.py-32 { padding-top: 64px !important; padding-bottom: 64px !important; }
  section.py-40 { padding-top: 72px !important; padding-bottom: 72px !important; }

  /* hero — fixed nav clearance on top, tight bottom, no forced viewport height */
  section#top {
    min-height: auto !important;
    padding-top: 96px !important;
    padding-bottom: 40px !important;
  }
  section#top .min-h-\[70svh\] { min-height: auto !important; }

  /* ── 3. Typography ── */
  .h-display { font-size: clamp(34px, 9vw, 52px) !important; line-height: 1.05 !important; }
  .h-section { font-size: clamp(26px, 7.5vw, 38px) !important; line-height: 1.1 !important; }
  .h-card    { font-size: 18px !important; line-height: 1.3 !important; }
  .body-lead { font-size: 15px !important; line-height: 1.6 !important; }
  .stat-big  { font-size: 44px !important; }
  .price-big { font-size: 44px !important; }
  .price-sm  { font-size: 18px !important; }

  /* eyebrow: smaller letters, tighter, and the rule on each side hides
     so wrapping is graceful. Achieved via .flex-wrap + hidden on rules
     (see Eyebrow primitive). */
  .eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.20em !important;
    line-height: 1.4 !important;
  }

  /* ── 4. Buttons ── big targets, comfortable padding, max-width so
        they don't look comical edge-to-edge on tablets-in-portrait ── */
  .btn {
    padding: 15px 24px !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
    min-height: 50px;
  }
  .btn-sm { padding: 11px 18px !important; font-size: 10.5px !important; letter-spacing: 0.16em !important; }

  /* keep cards' bordered surfaces less rounded on mobile for a sharper look */
  .surface { border-radius: 6px !important; }
  .surface-pad { padding: 22px !important; }

  /* ── 5. Hero-specific spacing ── */
  section#top .mt-9 { margin-top: 22px !important; }
  section#top .mt-6 { margin-top: 16px !important; }
  section#top .mt-5 { margin-top: 14px !important; }
  section#top .gap-3 { gap: 10px !important; }
  section#top .gap-4 { gap: 12px !important; }

  /* hero buttons: full-width but capped so they look intentional */
  section#top .btn {
    width: 100% !important;
    max-width: 100%;
  }

  /* ── 6. Grid collapses: any lg:grid-cols-{2,3,4,12} should be 1 col on phone.
        Tailwind handles this if breakpoints are correct, but some sections use
        explicit grid-template-columns. Catch the obvious cases. ── */
  .grid.md\:grid-cols-2,
  .grid.md\:grid-cols-3,
  .grid.lg\:grid-cols-2,
  .grid.lg\:grid-cols-3,
  .grid.lg\:grid-cols-4 { gap: 16px !important; }

  /* ── 7. Footer: stack columns nicely with breathing room ── */
  footer .grid { gap: 32px !important; }
  footer .eyebrow { margin-bottom: 10px !important; }
  footer ul { font-size: 13px !important; line-height: 1.8 !important; }

  /* ── 8. Hide nav-bar preorder pill on phone (the hamburger handles it) ── */
  header .btn-sm { display: none !important; }

  /* ── 9. Reveal animations are jittery on small screens, cap them ── */
  .reveal { transition-duration: 0.5s !important; }

  /* ── 10. Decorative blur orbs on mobile are heavy + over-saturated.
        Tone them down so paint perf doesn't suffer. ── */
  .glow-orb, [class*='blur-'] { opacity: 0.6 !important; }
}

/* ── Tablet (641–1024px): a few targeted fixes so two-column hero
   sections don't look cramped before they collapse on phone ── */
@media (min-width: 641px) and (max-width: 1024px) {
  .max-w-7xl { padding-left: 28px !important; padding-right: 28px !important; }
  section { padding-top: 80px !important; padding-bottom: 80px !important; }

  .h-display { font-size: clamp(46px, 7vw, 72px) !important; line-height: 1.05; }
  .h-section { font-size: clamp(34px, 5.2vw, 52px) !important; line-height: 1.1; }
}

/* ── Desktop polish (≥1280px): subtle improvements on big screens
   that make the brand feel more deliberate ── */
@media (min-width: 1280px) {
  /* slightly stronger leading on display headlines for that "luxury editorial" feel */
  .h-display { line-height: 1.04; letter-spacing: -0.012em; }

  /* heavier weight contrast on the gold-italic descender */
  .h-display .italic { font-weight: 300 !important; }
}

/* ── Universal: smoother focus rings on keyboard tabbing ── */
*:focus-visible {
  outline: 2px solid rgba(233, 193, 121, 0.6);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible, a:focus-visible {
  outline-color: #e9c179;
}

/* ── Universal: prevent horizontal scroll on long words/URLs ── */
body, html { overflow-x: hidden; }
section, footer, header { overflow-x: clip; }

/* ──────────────────────────────────────────────────────────────────
   IMAGE SAFETY — prevents uploaded images from breaking layouts.
   Strategy: any Slot renders <img> or <picture><img/></picture>. Both
   must fill their parent container (a div with inset:0) without
   overflow, AT EVERY VIEWPORT.

   Rule order (specificity):
     1. Universal img/picture max-width
     2. Picture element fills its parent like a block
     3. Images inside absolute wrappers (Slots) fill 100%×100% with cover
     4. Mobile-only extra safety
   ────────────────────────────────────────────────────────────────── */

/* 1. Universal: no image ever overflows its container */
img, picture {
  max-width: 100%;
}

/* 2. <picture> defaults to inline; force block so width/height work */
picture {
  display: block;
  line-height: 0;          /* prevent inline whitespace gap */
}

/* 3. Inside any absolute-positioned wrapper (all our Slot wrappers),
      both <img> and <picture><img/> fill 100% with cover-fit. */
.absolute > img,
.absolute > picture,
.absolute > picture > img,
.absolute > picture > source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.absolute > img,
.absolute > picture > img {
  object-fit: cover;
  object-position: center center;
}

/* 4. Smooth fade-in when image finishes loading */
img {
  transition: opacity 0.3s ease;
}

/* ──────────────────────────────────────────────────────────────────
   MOBILE READABILITY OVERLAY — critical fix.
   On desktop, hero text sits in a column to the LEFT of the image.
   They don't overlap. On mobile the grid collapses → text overlays
   the image → unreadable. Add a strong darkening overlay on mobile
   ONLY so the text wins the contrast war.
   ────────────────────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────────────────────
   COOKIE BANNER — RGPD-compliant, compact, fixed bottom
   Design: small slim bar at bottom on desktop, compact card on mobile.
   Never takes more than ~25% of viewport height.
   ────────────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(4,6,26,0.94), rgba(4,6,26,0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(233,193,121,0.28);
  box-shadow: 0 -16px 40px rgba(0,0,0,0.5);
  animation: cookie-slide-up .4s cubic-bezier(.2,.7,.2,1) both;
  /* Honor iOS safe area at bottom (notch devices) */
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-banner-text {
  flex: 1;
  min-width: 0;             /* allow text to shrink */
  font-size: 12.5px;
  color: #c9d0e8;
  line-height: 1.5;
}
.cookie-banner-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.cookie-banner-text p {
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
/* Override .btn mobile min-height inside the banner — it inflates the bar */
.cookie-banner-actions .btn {
  min-height: 0 !important;
  padding: 9px 18px !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
}

/* Mobile: stack text on top, actions below; keep it compact */
@media (max-width: 640px) {
  .cookie-banner {
    padding: 12px 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-banner-text {
    font-size: 12px;
    line-height: 1.4;
  }
  .cookie-banner-text strong {
    font-size: 12.5px;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
    gap: 8px;
  }
  /* Two buttons share width 50/50 — but no taller than 38px */
  .cookie-banner-actions .btn {
    flex: 1 1 0;
    padding: 10px 14px !important;
    min-height: 0 !important;
    height: 38px;
    text-align: center;
    justify-content: center;
  }
}

/* ──────────────────────────────────────────────────────────────────
   FOOTER LANDSCAPE — child + glowing path image at end of "Comment ça marche"
   Desktop: framed mini-banner with border + gradient bg (180px tall)
   Mobile:  full-bleed, natural image aspect, no frame
   ────────────────────────────────────────────────────────────────── */

/* Desktop: framed look */
.footer-landscape {
  height: 180px;
  border-radius: 6px;
  border: 1px solid rgba(233, 193, 121, 0.15);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(233, 193, 121, 0.18), transparent 60%),
    linear-gradient(180deg, #04061a, #0a1142);
}
.footer-landscape-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mobile: full-bleed, natural aspect, no frame */
@media (max-width: 1023px) {
  .footer-landscape {
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin-top: 48px !important;
    /* full viewport width even inside a padded Container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .footer-landscape-img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 60vh;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* ──────────────────────────────────────────────────────────────────
   HERO IMAGE BEHAVIOR
   Desktop (≥1024px): .hero-bg is full-bleed absolute background.
                      Text sits in left column, image is decorative behind.
   Mobile (<1024px):  .hero-bg flows inline at the top of the section,
                      showing the image at its NATURAL aspect ratio.
                      Text stacks below in normal flow.
   ────────────────────────────────────────────────────────────────── */

/* DESKTOP: full-bleed absolute background */
@media (min-width: 1024px) {
  .hero-bg {
    position: absolute;
    inset: 0;
  }
  .hero-vignette {
    display: block;
  }
}

/* TABLET + MOBILE: image stacks at top in natural ratio */
@media (max-width: 1023px) {
  /* Section: no forced viewport-height, let content dictate height */
  section#top.hero-section {
    padding-top: 0 !important;
    padding-bottom: 48px !important;
  }

  /* Image block on mobile: hide if no image (no <picture> or <img>) so we
     don't show an empty gradient strip at the top. */
  .hero-bg:not(:has(picture)):not(:has(img)) {
    display: none;
  }

  /* When there IS an image: full viewport width, natural aspect ratio */
  .hero-bg:has(picture),
  .hero-bg:has(img) {
    position: relative !important;
    inset: auto !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    padding-top: 88px;             /* clear the fixed nav */
    background: radial-gradient(ellipse at 50% 50%, #131a47 0%, #0a1142 35%, #04061a 75%);
    overflow: hidden;
    transform: none !important;     /* kill desktop parallax */
  }

  /* PortalScene's wrapper inside hero-bg: kill h-full, image dictates height */
  .hero-bg > .relative {
    height: auto !important;
    width: 100%;
  }

  /* The image's positioning wrapper (the .absolute inset-0 inside PortalScene)
     becomes a normal flow block on mobile */
  .hero-bg > .relative > .absolute:has(picture),
  .hero-bg > .relative > .absolute:has(img) {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Image itself: full width, natural height, contain not cover */
  .hero-bg picture,
  .hero-bg picture > img,
  .hero-bg img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
  }

  /* Hide decorative siblings (starfield gradient, particles) on mobile —
     they're designed for full-screen background, not a stacked image */
  .hero-bg > .relative > .absolute:not(:has(picture)):not(:has(img)),
  .hero-bg .starfield,
  .hero-bg .particles-wrap {
    display: none;
  }

  /* Hide the desktop vignette on mobile */
  .hero-vignette {
    display: none !important;
  }

  /* Container sits BELOW the image in normal flow */
  section#top.hero-section > .relative {
    position: relative;
    z-index: 2;
    padding-top: 32px;
  }
  /* When there's NO image, restore the nav clearance via section padding */
  section#top.hero-section:not(:has(.hero-bg picture)):not(:has(.hero-bg img)) {
    padding-top: 96px !important;
  }

  /* Kill the old dark overlay (no longer needed — image isn't behind text) */
  section#top::before {
    display: none;
  }

  /* Cards (PreorderCard) get solid backgrounds */
  .surface {
    background: linear-gradient(180deg,
      rgba(10, 13, 41, 0.92) 0%,
      rgba(4, 6, 26, 0.95) 100%
    ) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@media (max-width: 640px) {
  /* Tighter nav clearance on small phones */
  .hero-bg:has(picture),
  .hero-bg:has(img) {
    padding-top: 76px;
  }

  /* Generic safety: standalone <img> max height */
  img:not(.absolute *):not(picture *) {
    max-height: 80vh;
    height: auto;
  }
}

/* responsive nav blur */
.nav-blur {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(4,6,26,0.7), rgba(4,6,26,0.3));
  border-bottom: 1px solid rgba(233,193,121,0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   ULTRA — UX additions: scroll reveals, progress bar, sticky CTA,
   exit intent modal, scarcity banner, trust strip, photo preview,
   micro-interactions. Added in batch 1 of "everything else".
   ═══════════════════════════════════════════════════════════════════ */

/* Scroll reveal is defined further down — keep this section header here for reference */


/* ── Sticky mobile CTA (gold floating button at the bottom of the viewport) */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(180deg, transparent, rgba(4,6,26,0.95) 35%, rgba(4,6,26,0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sticky-cta.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-btn {
  width: 100%;
  justify-content: center;
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  padding: 14px 20px !important;
  box-shadow: 0 -2px 30px rgba(233,193,121,0.25), 0 8px 22px -8px rgba(233,193,121,0.4);
}
@media (min-width: 768px) {
  .sticky-cta { display: none !important; } /* desktop already has CTAs everywhere */
}

/* ── Scarcity banner (slim countdown bar pinned to viewport top) */
.scarcity-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  background: linear-gradient(90deg, #b48a44, #e9c179 50%, #b48a44);
  color: #04061a;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  padding-top: calc(8px + env(safe-area-inset-top, 0));
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.scarcity-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scarcity-flame { font-size: 15px; line-height: 1; }
.scarcity-label { font-weight: 500; }
.scarcity-time {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.scarcity-time b {
  display: inline-block;
  background: rgba(0,0,0,0.18);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
  margin: 0 1px;
}
.scarcity-close {
  background: none;
  border: none;
  color: rgba(4,6,26,0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 6px;
}
.scarcity-close:hover { color: #04061a; }
/* When scarcity banner is visible, nudge the page down to make room */
body:has(.scarcity-banner) { padding-top: 42px; }
body:has(.scarcity-banner) header.lumio-nav,
body:has(.scarcity-banner) nav.lumio-nav { top: 42px !important; }
@media (max-width: 640px) {
  .scarcity-banner { font-size: 12px; padding: 7px 10px; }
  .scarcity-banner-inner { gap: 8px; }
  body:has(.scarcity-banner) { padding-top: 38px; }
}

/* ── Exit intent modal */
.exit-intent {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: exit-fade .3s ease both;
}
@keyframes exit-fade { from { opacity: 0; } to { opacity: 1; } }
.exit-intent-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,3,15,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.exit-intent-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 36px 32px 28px;
  background: radial-gradient(ellipse at 50% 0%, #1c2659 0%, #0a1142 55%, #04061a 100%);
  border: 1px solid rgba(233,193,121,0.4);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(233,193,121,0.15);
  text-align: center;
  animation: exit-pop .4s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes exit-pop {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.exit-intent-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: rgba(245,236,214,0.5);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.exit-intent-close:hover { color: var(--gold); background: rgba(233,193,121,0.08); }
.exit-intent-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 14px;
}
.exit-intent-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 12px;
  font-weight: 500;
}
.exit-intent-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #c9d0e8;
  margin: 0 0 22px;
}
.exit-intent-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.exit-intent-form .field {
  flex: 1;
  min-width: 0;
}
.exit-intent-err {
  font-size: 12px;
  color: #f3b3b3;
  text-align: left;
  margin: 4px 2px 0;
}
.exit-intent-skip {
  background: none; border: none;
  display: block;
  margin: 16px auto 0;
  font-size: 11.5px;
  color: rgba(201,208,232,0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.exit-intent-skip:hover { color: rgba(201,208,232,0.85); }
@media (max-width: 480px) {
  .exit-intent-card { padding: 30px 22px 22px; }
  .exit-intent-title { font-size: 22px; }
  .exit-intent-form { flex-direction: column; }
}

/* ── Code pill on the popup success screen.
   Big gold-bordered box showing the promo code with a "Copy" CTA.
   Tapping anywhere on it copies the code (handled in JS). */
.exit-intent-code-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  margin: 4px 0 8px;
  background: linear-gradient(180deg, rgba(233,193,121,0.15), rgba(233,193,121,0.05));
  border: 2px dashed rgba(233,193,121,0.55);
  border-radius: 6px;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.exit-intent-code-pill:hover {
  border-color: rgba(233,193,121,0.9);
  background: linear-gradient(180deg, rgba(233,193,121,0.22), rgba(233,193,121,0.08));
}
.exit-intent-code-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(233,193,121,0.4);
}
.exit-intent-code-copy {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233,193,121,0.85);
  padding: 6px 12px;
  border: 1px solid rgba(233,193,121,0.35);
  border-radius: 3px;
  white-space: nowrap;
}
.exit-intent-code-label {
  font-size: 13px;
  color: var(--cream);
  margin: 6px 0 0;
  font-style: italic;
  font-family: var(--serif);
}
@media (max-width: 480px) {
  .exit-intent-code-value { font-size: 20px; letter-spacing: 0.08em; }
  .exit-intent-code-pill { padding: 14px 16px; }
}

/* ── Trust strip (3 badges below the form CTA) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
  background: rgba(233,193,121,0.05);
  border: 1px solid rgba(233,193,121,0.12);
  border-radius: 6px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c9d0e8;
}
.trust-badge svg {
  color: var(--gold);
  flex-shrink: 0;
}
.trust-badge-title {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}
.trust-badge-sub {
  font-size: 11px;
  color: #a9b1cb;
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Form progress bar */
.form-progress {
  margin-bottom: 28px;
}
.form-progress-track {
  height: 4px;
  background: rgba(233,193,121,0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b48a44, #f6dca3 50%, #e9c179);
  border-radius: 99px;
  transition: width .6s cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.form-progress-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progress-shimmer 2s ease-in-out infinite;
}
@keyframes progress-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.form-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11.5px;
}
.form-progress-label {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(233,193,121,0.85);
  letter-spacing: 0.02em;
}
.form-progress-percent {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 600;
}

/* ── Valid-field checkmark inside the input */
.field-wrap { position: relative; }
.field-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green, #7dc88f);
  pointer-events: none;
  animation: check-pop .3s cubic-bezier(.2,.9,.3,1.4) both;
}
@keyframes check-pop {
  from { transform: translateY(-50%) scale(0.8); opacity: 0; }
  to   { transform: translateY(-50%) scale(1); opacity: 1; }
}
.field-error-msg {
  animation: shake .35s ease both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

/* ── Photo upload — circle hover overlay (camera icon on top of photo) */
.photo-circle { position: relative; }
.photo-circle-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(4,6,26,0.65);
  color: var(--gold);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.photo-circle:hover .photo-circle-overlay { opacity: 1; }

/* ── Photo preview modal */
.photo-preview-modal {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: exit-fade .25s ease both;
}
.photo-preview-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,3,15,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.photo-preview-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 28px 26px 24px;
  background: radial-gradient(ellipse at 50% 0%, #1c2659 0%, #0a1142 55%, #04061a 100%);
  border: 1px solid rgba(233,193,121,0.3);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: exit-pop .35s cubic-bezier(.2,.9,.3,1.1) both;
  max-height: 92vh;
  overflow-y: auto;
}
.photo-preview-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: rgba(245,236,214,0.5);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.photo-preview-close:hover { color: var(--gold); background: rgba(233,193,121,0.08); }
.photo-preview-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 8px;
}
.photo-preview-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 18px;
  font-weight: 500;
}
.photo-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #04061a;
  margin-bottom: 14px;
}
.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.photo-preview-crop-guide {
  position: absolute;
  inset: 8% 8% 8% 8%;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.photo-preview-crop-ring {
  width: 60%;
  aspect-ratio: 1;
  border: 2px dashed rgba(233,193,121,0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 4000px rgba(4,6,26,0.35);
}
.photo-preview-crop-label {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(245,236,214,0.85);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.photo-preview-tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 11.5px;
  color: #a9b1cb;
  margin-bottom: 18px;
}
.photo-preview-tip { white-space: nowrap; }
.photo-preview-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   APPLE-GRADE MOTION SYSTEM (replaces overdone batch-1/2 animations)

   PRINCIPLES
   1. Animate only GPU-composited properties: transform, opacity, filter
      where unavoidable. Never animate box-shadow or background-image.
   2. Single signature easing: cubic-bezier(0.32, 0.72, 0, 1) — Apple's
      preferred ease-out spring.
   3. Durations: micro 200ms · standard 400ms · scroll reveals 600ms.
      Nothing loops on UI. Decorative loops only on slow, low-priority
      elements (one orbital sparkle).
   4. Movement distance ≤ 16px. Apple uses ~12px for reveals — bigger
      feels bouncy.
   5. Honor prefers-reduced-motion EVERYWHERE.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Scroll reveal — tighter, faster, no scale */
main > section.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity .6s cubic-bezier(0.32, 0.72, 0, 1),
    transform .6s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform, opacity;
}
main > section.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* Cleanup once revealed — release will-change */
main > section.reveal.in-view {
  will-change: auto;
}

/* ── Buttons — Apple-style press feedback (no infinite pulse, no shimmer) */
.btn-primary,
.btn-ghost,
.btn-secondary,
.btn {
  /* Reset any prior animation/transform from earlier batches */
  animation: none !important;
  transition:
    transform .25s cubic-bezier(0.32, 0.72, 0, 1),
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
  will-change: transform;
}
.btn-primary::after,
.btn::after { content: none !important; }      /* nuke shimmer sweep */
.btn-primary:hover,
.btn:hover { transform: translate3d(0, -1px, 0); }
.btn-primary:active,
.btn:active { transform: scale(0.97); transition-duration: .08s; }

/* ── Hero "ambient float" — KILLED (made the page feel seasick) */
.hero-bg { animation: none !important; }

/* ── Sparkle particles overlay — KILLED (expensive paint on every scroll) */
body.lumio-loaded::before { content: none !important; display: none !important; }

/* ── Magic ring shimmer — kept but refined.
   Replaced the box-shadow halo (CPU-heavy) with a cheap inner glow done
   via a layered pseudo-element. Slower, gentler, less attention-grabbing. */
@keyframes lumio-orbit {
  to { transform: rotate(360deg); }
}
.magic-ring-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: lumio-orbit 18s linear infinite;
  will-change: transform;
}
.magic-ring-shimmer::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  background: radial-gradient(circle, rgba(255,251,230,0.95), rgba(233,193,121,0.6) 40%, transparent 70%);
  border-radius: 50%;
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .magic-ring-shimmer { animation: none; }
  .magic-ring-shimmer::before { display: none; }
}

/* ── Nav blur-on-scroll (Apple-style chrome).
   Without scroll, nav is fully transparent. After 80px scroll, a frosted
   glass with hairline border appears. JS in app.jsx adds .nav-scrolled. */
header.lumio-nav, nav.lumio-nav {
  transition:
    background-color .35s cubic-bezier(0.32, 0.72, 0, 1),
    backdrop-filter .35s cubic-bezier(0.32, 0.72, 0, 1),
    border-color .35s cubic-bezier(0.32, 0.72, 0, 1);
}
body.nav-scrolled header.lumio-nav,
body.nav-scrolled nav.lumio-nav {
  background-color: rgba(4, 6, 26, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(233,193,121,0.08);
}

/* ── Magnetic CTA — primary CTA tilts ≤2deg toward cursor.
   Desktop only via pointer:fine. Activated by JS (mouseenter sets a CSS
   variable, mouseleave resets).

   Important: when magnetic-cta is active, the base btn :hover translate
   is OVERRIDDEN here so the magnetic vars take precedence (otherwise the
   browser would just use the last transform declared). */
@media (pointer: fine) {
  .magnetic-cta {
    transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(var(--mr, 0deg));
    transition: transform .4s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .magnetic-cta:hover {
    transition-duration: .12s;
  }
  /* magnetic-cta wins over the base .btn:hover translate */
  .magnetic-cta.btn-primary:hover,
  .magnetic-cta.btn:hover {
    transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 1px), 0) rotate(var(--mr, 0deg));
  }
  .magnetic-cta.btn-primary:active,
  .magnetic-cta.btn:active {
    transform: scale(0.97);
    transition-duration: .08s;
  }
}

/* ── Field validation checkmark + error — already in batch 1, refine timing */
.field-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  color: var(--green, #7dc88f);
  pointer-events: none;
  animation: lumio-check .35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes lumio-check {
  0%   { transform: translateY(-50%) scale(0.8); opacity: 0; }
  60%  { transform: translateY(-50%) scale(1.15); opacity: 1; }
  100% { transform: translateY(-50%) scale(1);    opacity: 1; }
}
.field-error-msg { animation: lumio-shake .25s ease both; }
@keyframes lumio-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  30%, 70% { transform: translate3d(2px, 0, 0); }
  50%      { transform: translate3d(-2px, 0, 0); }
}

/* ── Card hover (used for testimonials, world cards, etc.)
   Just a translate. No glow. No scale. Apple keeps it tight. */
.lumio-card-hover {
  transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
}
.lumio-card-hover:hover {
  transform: translate3d(0, -3px, 0);
}

/* ── Reveal stagger helper — when a parent has .in-view, children with
   .reveal-child fade up in sequence. Used for hero text → CTA stagger. */
.reveal-child {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity .55s cubic-bezier(0.32, 0.72, 0, 1),
    transform .55s cubic-bezier(0.32, 0.72, 0, 1);
}
.in-view .reveal-child { opacity: 1; transform: translate3d(0, 0, 0); }
.in-view .reveal-child:nth-child(1) { transition-delay: .00s; }
.in-view .reveal-child:nth-child(2) { transition-delay: .08s; }
.in-view .reveal-child:nth-child(3) { transition-delay: .16s; }
.in-view .reveal-child:nth-child(4) { transition-delay: .24s; }
.in-view .reveal-child:nth-child(5) { transition-delay: .32s; }
.in-view .reveal-child:nth-child(6) { transition-delay: .40s; }

/* ── Image cross-fade — used for world cards when selection changes.
   Apply this to a wrapper, and switch the src — looks like a fade-swap. */
.lumio-xfade { transition: opacity .4s cubic-bezier(0.32, 0.72, 0, 1); }
.lumio-xfade.fading { opacity: 0.4; }

/* ── Cookie banner / exit intent / scarcity — soften original animations */
@keyframes lumio-pop-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.exit-intent-card,
.photo-preview-card {
  animation: lumio-pop-in .35s cubic-bezier(0.32, 0.72, 0, 1) both !important;
}

/* ── Global reduced-motion blanket */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   BATCH 2 — animations (RESTRAINED VERSION)
   The infinite pulses and ambient floats from the original Batch 2
   were too much. Only keeping the truly subtle bits below.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Testimonial "verified" badge */
.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(233,193,121,0.08);
  border: 1px solid rgba(233,193,121,0.25);
  border-radius: 99px;
  font-family: var(--sans);
  font-weight: 600;
}

/* ── FAQ accordion (the grid-row trick is the only good thing from Batch 2) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(0.32, 0.72, 0, 1), opacity .25s ease;
  opacity: 0;
}
.faq-answer > div { overflow: hidden; }
.faq-answer.open {
  grid-template-rows: 1fr;
  opacity: 1;
}


/* (motion-lib CSS removed — components were causing perf issues and
    visual regressions. Kept the magnetic-cta block above which still
    works via app.jsx pointer handlers.) */


/* ── Promo code field status indicators */
.promo-field-wrap { position: relative; }
.promo-status {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  font-family: var(--sans);
}
.promo-checking {
  color: #a9b1cb;
  background: rgba(169,177,203,0.08);
}
.promo-valid {
  color: #7dc88f;
  background: rgba(125,200,143,0.12);
  font-weight: 600;
}
.promo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: promo-pulse 1s ease-in-out infinite;
}
@keyframes promo-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════
   LOGO HALO — animated golden ring used in preorder card & key spots.
   Two rings, slightly offset in timing, pulse outward like a beacon.
   ════════════════════════════════════════════════════════════════════ */
.logo-halo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-halo .halo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(233, 193, 121, 0.45);
  pointer-events: none;
  animation: halo-pulse 3.2s ease-out infinite;
  box-shadow:
    0 0 24px rgba(233, 193, 121, 0.25),
    inset 0 0 16px rgba(233, 193, 121, 0.10);
}
.logo-halo .halo-ring-delayed {
  animation-delay: 1.6s;
  border-color: rgba(246, 220, 163, 0.30);
}
@keyframes halo-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════════════
   HAIRLINE ORNAMENT — a refined divider with a gold diamond center.
   Replaces plain .hairline in premium contexts (preorder card, etc).
   ════════════════════════════════════════════════════════════════════ */
.hairline-ornament {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(233, 193, 121, 0.15) 25%,
    rgba(233, 193, 121, 0.55) 50%,
    rgba(233, 193, 121, 0.15) 75%,
    transparent 100%);
}
.hairline-ornament::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #f6dca3, #b48a44);
  box-shadow: 0 0 8px rgba(233, 193, 121, 0.6);
}

/* ════════════════════════════════════════════════════════════════════
   AURORA BACKGROUND — gentle layered gradients that drift slowly.
   Adds depth behind the hero without distracting.
   Applied via .aurora-bg class on any section.
   ════════════════════════════════════════════════════════════════════ */
.aurora-bg {
  position: relative;
}
.aurora-bg::before {
  content: '';
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(180, 138, 68, 0.10), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, rgba(80, 110, 220, 0.10), transparent 60%),
    radial-gradient(45% 50% at 60% 20%, rgba(246, 220, 163, 0.06), transparent 60%);
  filter: blur(8px);
  animation: aurora-drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-2%, 2%) rotate(2deg); }
}

/* ════════════════════════════════════════════════════════════════════
   GOLD ORNAMENT DIVIDER — between sections, replaces empty spacing
   with a meaningful filigree mark. Three diamonds + lines.
   ════════════════════════════════════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 0;
  color: var(--gold);
  opacity: 0.7;
}
.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  flex: 0 1 80px;
  background: linear-gradient(90deg, transparent, rgba(233, 193, 121, 0.45), transparent);
}
.section-divider .diamond {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f6dca3, #b48a44);
}
.section-divider .diamond.small {
  width: 4px; height: 4px;
  opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════════════
   PREMIUM CARD HOVER — subtle lift + golden glow on hover.
   ════════════════════════════════════════════════════════════════════ */
.card-lift {
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px -16px rgba(0, 0, 0, 0.4),
    0 0 36px -10px rgba(233, 193, 121, 0.30);
}

/* ════════════════════════════════════════════════════════════════════
   ENHANCED REVEAL — slightly more dramatic for hero, smoother curve.
   ════════════════════════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up 1s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════
   STEP BADGE — elegant outlined gold badge for numbered cards
   (PersonalizationProcess, timeline, etc).
   Replaces the heavy solid-gold sticker that read as cheap.
   ════════════════════════════════════════════════════════════════════ */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(19, 26, 71, 0.95), rgba(7, 10, 37, 0.98));
  border: 1px solid rgba(233, 193, 121, 0.55);
  box-shadow:
    0 0 0 1px rgba(233, 193, 121, 0.15) inset,
    0 0 24px -4px rgba(233, 193, 121, 0.35),
    0 12px 28px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  isolation: isolate;
}
/* Inner ring for the elegant double-rim look */
.step-badge::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(233, 193, 121, 0.20);
  pointer-events: none;
}
/* The numeral itself — gold gradient text on the dark badge */
.step-badge-num {
  background: linear-gradient(180deg, #f6dca3 0%, #e9c179 50%, #b48a44 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(233, 193, 121, 0.25);
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ════════════════════════════════════════════════════════════════════
   MOTION SYSTEM — Emil Kowalski design-engineering pass
   Signature easing, accessibility, and press-feedback for all pressables.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* One signature ease-out for the whole site (strong, intentional) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Faster, snappier section fade-in (was .8s ease) */
.fade-in {
  animation: fade-in .55s var(--ease-out) forwards;
  opacity: 0;
}

/* Any element with .pressable gets tactile press feedback */
.pressable {
  transition: transform .14s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.pressable:active { transform: scale(0.97); }

/* World cards, box items, anything clickable → press feedback too */
.world-card:active { transform: translateY(-4px) scale(0.995); }

/* Respect users who prefer reduced motion — kill all decorative motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep opacity transitions instant but content still visible */
  .fade-in, .reveal-up { opacity: 1 !important; transform: none !important; }
}
