:root {
  --void: #05070c;
  --ink: #0a0e16;
  --panel: #101622;
  --line: #1c2740;
  --blue: #1a3a8a;
  --blue-deep: #0d2460;
  --blue-mid: #2f5fd0;
  --blue-glow: #4d7fff;
  --ice: #dce6f5;
  --muted: #8b97ad;
  --carton: #c4a574;
  --carton-dark: #8a6d42;
  --pink: #ff7ab0;
  --pink-deep: #e0447e;
  --pink-soft: #ffb6d3;
  --display: "Aref Ruqaa", "Cairo", serif;
  --kufi: "Reem Kufi", "Cairo", sans-serif;
  --body: "Cairo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #05070c;
  color: var(--ice);
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 120, 170, 0.14), transparent 40%),
    radial-gradient(ellipse at 88% 22%, rgba(47, 95, 208, 0.28), transparent 44%),
    radial-gradient(ellipse at 85% 75%, rgba(26, 58, 138, 0.22), transparent 48%),
    linear-gradient(90deg, #120812 0%, #05070c 42%, #071228 72%, #0a1a45 100%);
}
.star {
  position: absolute;
  width: var(--size, 10px);
  height: var(--size, 10px);
  background: #e8f0ff;
  clip-path: polygon(
    50% 0%,
    62% 38%,
    100% 50%,
    62% 62%,
    50% 100%,
    38% 62%,
    0% 50%,
    38% 38%
  );
  opacity: 0.15;
  filter: drop-shadow(0 0 4px rgba(120, 170, 255, 0.65));
  animation: starTwinkle var(--dur, 2.8s) ease-in-out var(--delay, 0s) infinite;
}
.star--bright {
  background: #fff;
  filter: drop-shadow(0 0 8px rgba(180, 210, 255, 0.95));
}
.star--blue {
  background: #8eb6ff;
  filter: drop-shadow(0 0 7px rgba(77, 127, 255, 0.9));
}
.star--pink {
  background: #ffa3c8;
  filter: drop-shadow(0 0 7px rgba(255, 110, 170, 0.85));
}
@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.65) rotate(0deg);
  }
  40% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
  55% {
    opacity: 0.35;
    transform: scale(0.85) rotate(8deg);
  }
  75% {
    opacity: 0.95;
    transform: scale(1.05) rotate(-10deg);
  }
}

.binary-morph {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

/* ═══════════ COTTON CANDY ═══════════ */
.cotton {
  position: absolute;
  width: 88px;
  height: 120px;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.28));
  animation: cottonFloat 6.5s ease-in-out infinite;
  transform-origin: center bottom;
}
.cotton::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 78px;
  height: 72px;
  margin-left: -39px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 38%, rgba(255,255,255,0.9) 0 14%, transparent 28%),
    radial-gradient(circle at 68% 30%, rgba(255,255,255,0.55) 0 12%, transparent 26%),
    radial-gradient(circle at 50% 58%, var(--candy-a) 0 42%, transparent 68%),
    radial-gradient(circle at 28% 55%, var(--candy-b) 0 34%, transparent 58%),
    radial-gradient(circle at 74% 60%, var(--candy-c) 0 32%, transparent 56%);
  filter: blur(0.2px);
  box-shadow:
    -18px 10px 0 -8px var(--candy-b),
    20px 12px 0 -10px var(--candy-c),
    0 22px 0 -14px var(--candy-a);
}
.cotton::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 7px;
  height: 52px;
  margin-left: -3.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3e1b4, #d4b06a 55%, #b88945);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.cotton--pink {
  --candy-a: #ffb6d3;
  --candy-b: #ff8eb8;
  --candy-c: #ffd0e4;
}
.cotton--blue {
  --candy-a: #b7d4ff;
  --candy-b: #7eb0ff;
  --candy-c: #d9e8ff;
}
.cotton--mix {
  --candy-a: #ffb6d3;
  --candy-b: #9ec8ff;
  --candy-c: #ffe0ef;
}
.cotton--sm { width: 64px; height: 92px; }
.cotton--sm::before { width: 54px; height: 50px; margin-left: -27px; }
.cotton--sm::after { height: 40px; width: 5px; margin-left: -2.5px; }
.cotton--md { width: 78px; height: 108px; }
.cotton--md::before { width: 66px; height: 60px; margin-left: -33px; }
.cotton--lg { width: 108px; height: 142px; }
.cotton--lg::before { width: 92px; height: 84px; margin-left: -46px; }
.cotton--lg::after { height: 58px; width: 8px; margin-left: -4px; }

.gate-candy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.gate-candy .cotton--pink {
  top: 18%;
  left: 6%;
  animation-delay: -0.5s;
}
.gate-candy .cotton--blue {
  top: 22%;
  right: 7%;
  animation-delay: -2s;
}

.hero-candy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-candy .cotton--pink {
  top: 18%;
  right: 4%;
}
.hero-candy .cotton--blue {
  bottom: 16%;
  left: 3%;
  animation-delay: -1.8s;
}

.toys-candy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.toys-candy .cotton:nth-child(1) {
  top: 8%;
  left: 2%;
}
.toys-candy .cotton:nth-child(2) {
  top: 42%;
  right: 3%;
  animation-delay: -2.2s;
}
.toys-candy .cotton:nth-child(3) {
  bottom: 6%;
  left: 8%;
  animation-delay: -3.4s;
}
.toys > *:not(.toys-candy) {
  position: relative;
  z-index: 1;
}

@keyframes cottonFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}

@media (max-width: 720px) {
  .hero-candy .cotton--blue { display: none; }
  .gate-candy .cotton--lg { transform: scale(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .cotton { animation: none; }
}

main {
  position: relative;
  z-index: 1;
  background: transparent;
}

.kicker {
  color: var(--blue-glow);
  font-family: var(--kufi);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.btn-blue {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff8eb8, #e0447e 38%, #2f5fd0 72%, #0d2460);
  color: #fff;
  font: 700 1rem var(--kufi);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(26, 58, 138, 0.4);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(47, 95, 208, 0.55);
}
.btn-blue--sm { padding: 0.75rem 1.6rem; font-size: 0.9rem; }
.btn-blue__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(77, 127, 255, 0.5);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  to { transform: scale(1.25); opacity: 0; }
}

/* ═══════════ GIFT GATE ═══════════ */
.carton-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(255, 120, 170, 0.18), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(47, 95, 208, 0.32), transparent 48%),
    transparent;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.carton-gate--out { opacity: 0; transform: scale(1.05); pointer-events: none; }
.carton-gate__dust {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0 1px, transparent 2px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.gift {
  position: absolute;
  top: 4%;
  width: min(410px, 88vw);
  height: 325px;
  perspective: 1100px;
  animation: giftFloat 3.2s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform;
}
.gift.is-open {
  animation: none;
}
.gift__box {
  position: absolute;
  inset: auto 0.5rem 0;
  height: 220px;
  animation: giftSway 4s ease-in-out infinite;
  transform-origin: center bottom;
  transform-style: preserve-3d;
}
.gift.is-open .gift__box {
  animation: none;
}
.gift__body {
  position: absolute;
  inset: 56px 0 0;
  border-radius: 12px 12px 16px 16px;
  background: transparent;
  box-shadow:
    0 36px 65px rgba(0,0,0,0.6);
  overflow: visible;
}
.gift__face {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}
.gift__face--front {
  left: 0;
  right: auto;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.55) 0 11px, transparent 12px),
    radial-gradient(circle at 68% 38%, rgba(255,255,255,0.4) 0 8px, transparent 9px),
    radial-gradient(circle at 40% 68%, rgba(255,255,255,0.35) 0 7px, transparent 8px),
    radial-gradient(circle at 78% 78%, rgba(255,255,255,0.3) 0 6px, transparent 7px),
    radial-gradient(circle at 18% 48%, rgba(255,255,255,0.45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.5) 0 1.5px, transparent 2.5px),
    linear-gradient(160deg, #ffc5dc, #f48ab8 48%, #d95b91);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset -8px 0 18px rgba(115, 25, 70, 0.12);
  border-radius: 14px 0 0 16px;
}
.gift__face--front::before,
.gift__face--front::after,
.gift__face--side::before,
.gift__face--side::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.8);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.55));
}
.gift__face--front::before,
.gift__face--side::before {
  top: 16px;
  left: 18px;
}
.gift__face--front::after,
.gift__face--side::after {
  right: 18px;
  bottom: 16px;
  width: 9px;
  height: 9px;
  opacity: 0.75;
}
.gift__face--side {
  left: auto;
  right: 0;
  width: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.55) 0 11px, transparent 12px),
    radial-gradient(circle at 68% 38%, rgba(255,255,255,0.4) 0 8px, transparent 9px),
    radial-gradient(circle at 40% 68%, rgba(255,255,255,0.35) 0 7px, transparent 8px),
    radial-gradient(circle at 78% 78%, rgba(255,255,255,0.3) 0 6px, transparent 7px),
    radial-gradient(circle at 18% 48%, rgba(255,255,255,0.45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.5) 0 1.5px, transparent 2.5px),
    linear-gradient(160deg, #a8d0ff, #5b8fe0 48%, #2452bd);
  border-radius: 0 14px 16px 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 8px 0 18px rgba(9, 27, 80, 0.18);
  transform: none;
}
.gift__lid {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 22px;
  height: 64px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #ffa8ca 0%, #f078b0 50%, #769eff 50%, #3260d5 100%);
  box-shadow:
    0 12px 26px rgba(0,0,0,0.35),
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -8px 15px rgba(45, 20, 75, 0.12);
  transform-origin: center top;
  transition: transform 0.85s var(--ease), opacity 0.6s ease;
  z-index: 4;
  animation: giftLidPulse 2.4s ease-in-out infinite;
}
.gift.is-open .gift__lid {
  animation: none;
}
.gift__lid::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8px;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #d95b91 0 50%, #214cad 50%);
  opacity: 0.9;
}
.gift.is-open .gift__lid {
  transform: translateY(-130px) rotateX(-18deg) scale(1.04);
  opacity: 0.35;
}
.gift__ribbon--v,
.gift__ribbon--h {
  position: absolute;
  background:
    linear-gradient(180deg, #ffe08a, #f0c14b 30%, #c9922e 70%, #a87318);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  z-index: 3;
  overflow: hidden;
}
.gift__ribbon--v::after,
.gift__ribbon--h::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,0.45) 48%,
    transparent 62%
  );
  animation: ribbonShine 2.8s ease-in-out infinite;
}
.gift__ribbon--v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 30px;
  transform: translateX(-50%);
}
.gift__ribbon--h {
  top: 44%;
  left: 0;
  right: 0;
  height: 28px;
}
.gift__tag {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  min-width: 110px;
  padding: 0.35rem 0.7rem 0.42rem;
  text-align: center;
  color: #fff8e8;
  text-shadow: 0 2px 8px rgba(20, 5, 30, 0.45);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(123, 28, 78, 0.88), rgba(40, 34, 100, 0.86));
  box-shadow:
    0 8px 18px rgba(50, 10, 45, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(5px);
}
.gift__tag strong {
  display: block;
  font: 700 1.55rem/1 var(--display);
  letter-spacing: 0.04em;
}
.gift__tag small {
  display: block;
  margin-top: 0.22rem;
  font: 600 0.62rem var(--kufi);
  opacity: 0.9;
}

.gift__bow {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 110px;
  height: 64px;
  transform: translateX(-50%);
  z-index: 5;
  animation: bowBounce 2.2s ease-in-out infinite;
  transform-origin: center 70%;
}
.gift.is-open .gift__bow {
  animation: none;
}
.gift__loop,
.gift__knot,
.gift__tail {
  position: absolute;
  background: linear-gradient(145deg, #ffd978, #e0a83a 55%, #b87d1c);
}
.gift__loop {
  top: 4px;
  width: 50px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(160, 100, 20, 0.35);
}
.gift__loop--l { left: 0; transform: rotate(-18deg); }
.gift__loop--r { right: 0; transform: rotate(18deg); }
.gift__knot {
  left: 50%;
  top: 14px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2;
}
.gift__tail {
  top: 32px;
  width: 20px;
  height: 40px;
  border-radius: 40% 40% 60% 60%;
}
.gift__tail--l { left: 34px; transform: rotate(18deg); }
.gift__tail--r { right: 34px; transform: rotate(-18deg); }

.gift__surprises {
  position: absolute;
  inset: 0 0 86px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(28px) scale(0.86);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}
.gift.is-open .gift__surprises {
  opacity: 1;
  transform: translateY(-12px) scale(1);
}

.gift-pods {
  display: grid;
  justify-items: center;
  animation: giftPop 0.8s var(--ease) both;
}
.gift.is-open .gift-pods {
  animation: giftPop 0.8s var(--ease) both, giftItemFloat 2.4s ease-in-out 0.8s infinite;
}
.gift-pods__case {
  position: relative;
  width: 86px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f5f7fb, #c9d0db 70%, #aeb7c6);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.gift-pods__lid {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 7px;
  height: 34px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #fff, #d7dde8);
}
.gift-pods__hinge {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 20px;
  height: 6px;
  margin-left: -10px;
  border-radius: 999px;
  background: #8f99ab;
}
.gift-pods__stem {
  position: absolute;
  bottom: 14px;
  width: 12px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #b8c0cd);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.gift-pods__stem--l { left: 22px; }
.gift-pods__stem--r { right: 22px; }
.gift-pods__light {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #4d7fff;
  box-shadow: 0 0 10px rgba(77,127,255,0.9);
  animation: podBlink 1.6s ease-in-out infinite;
}

.gift-frame {
  position: relative;
  width: 118px;
  height: 138px;
  animation: giftPop 0.8s var(--ease) 0.08s both;
}
.gift.is-open .gift-frame {
  animation: giftPop 0.8s var(--ease) 0.08s both, giftItemFloat 2.6s ease-in-out 0.9s infinite;
}
.gift-frame__outer {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 6px;
  background:
    linear-gradient(145deg, #f0d9a0, #c9a35c 35%, #8d6a2f 70%, #6e5122);
  box-shadow:
    0 18px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -2px 4px rgba(0,0,0,0.25);
  padding: 11px;
}
.gift-frame__outer::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(255, 230, 170, 0.45);
  border-radius: 3px;
  pointer-events: none;
}
.gift-frame__outer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 18px;
  height: 10px;
  margin-left: -9px;
  border: 2px solid #b89560;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.gift-frame__inner {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #fbf8f1, #efe7d6);
  box-shadow:
    inset 0 0 0 3px #2a2114,
    inset 0 0 0 5px #d8bc8e,
    inset 0 8px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}
.gift-frame__glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      125deg,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.08) 28%,
      transparent 46%,
      rgba(255,255,255,0.12) 100%
    );
  pointer-events: none;
}

@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes giftSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.8deg); }
}
@keyframes giftLidPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes bowBounce {
  0%, 100% { transform: translateX(-50%) rotate(-4deg) scale(1); }
  50% { transform: translateX(-50%) rotate(4deg) scale(1.05); }
}
@keyframes ribbonShine {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}
@keyframes giftPop {
  from { opacity: 0; transform: translateY(24px) scale(0.8); }
  to { opacity: 1; transform: none; }
}
@keyframes giftItemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes podBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(77,127,255,0.9); }
  50% { opacity: 0.45; box-shadow: 0 0 4px rgba(77,127,255,0.35); }
}

.carton-gate__copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 17rem;
  padding: 1rem;
}
.carton-gate__copy h1 {
  font: 700 clamp(2.6rem, 10vw, 5rem)/1.05 var(--display);
  color: #fff;
  margin: 0.4rem 0;
}
.carton-gate__copy h1 span { color: var(--blue-glow); }
.carton-gate__copy .sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: var(--kufi);
}

@media (max-width: 480px) {
  .gift { top: 3%; width: min(300px, 88vw); height: 270px; }
  .gift__box { height: 190px; }
  .carton-gate__copy { margin-top: 14.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: 0.45; }
}

/* ═══════════ TOP ═══════════ */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  background:
    linear-gradient(90deg, rgba(40, 12, 28, 0.88), rgba(5, 7, 12, 0.9) 45%, rgba(8, 20, 55, 0.92));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 150, 220, 0.25);
}
.top__mark {
  font: 700 1.25rem var(--display);
  color: #fff;
  text-decoration: none;
}
.top__mark i { color: var(--blue-glow); font-style: normal; }
.top nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--kufi);
}
.top a:hover { color: #fff; }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.sec-head h2 {
  font: 700 clamp(1.9rem, 5.5vw, 3.1rem)/1.2 var(--display);
  color: #fff;
  margin: 0.35rem 0;
}
.sec-head p:last-child { color: var(--muted); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4.5rem 1.3rem;
  background: transparent;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 95, 208, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 95, 208, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 48px 48px; }
}
.hero__code {
  position: absolute;
  left: 6%;
  bottom: 12%;
  opacity: 0.22;
  direction: ltr;
  text-align: left;
}
.hero__code pre {
  font: 500 0.75rem/1.55 var(--mono);
  color: var(--blue-glow);
}
.hero__inner { position: relative; z-index: 4; text-align: center; max-width: 740px; }
.hero__names {
  font: 700 clamp(3rem, 12vw, 6.5rem)/1 var(--display);
  color: #fff;
  margin: 0.5rem 0;
  text-shadow: 0 0 40px rgba(47, 95, 208, 0.45);
}
.hero__names i { color: var(--blue-glow); font-style: normal; font-size: 0.55em; }
.hero__line {
  color: #b7c4dc;
  font: 500 1.15rem var(--display);
  margin-bottom: 1.4rem;
}
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 22, 34, 0.75);
}
.hero__meta span { color: var(--muted); font-size: 0.85rem; }
.hero__meta strong { font: 700 1.2rem var(--display); color: var(--blue-glow); }

/* ═══════════ TOYS IN BOX ═══════════ */
.toys {
  padding: 5rem 1.2rem;
  background: transparent;
  position: relative;
}
.box-stage {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.45) 0 10px, transparent 11px),
    radial-gradient(circle at 38% 70%, rgba(255,255,255,0.35) 0 8px, transparent 9px),
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.45) 0 10px, transparent 11px),
    radial-gradient(circle at 86% 68%, rgba(255,255,255,0.35) 0 8px, transparent 9px),
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 30%, rgba(255,255,255,0.45) 0 2px, transparent 3px),
    linear-gradient(90deg, #ffb6d3 0%, #f78ab5 50%, #6ea0ff 50%, #2f5fd0 100%);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.35),
    0 30px 60px rgba(0,0,0,0.45),
    0 0 44px rgba(77, 127, 255, 0.18);
}
.box-stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  pointer-events: none;
}
.box-stage::after {
  content: "";
  position: absolute;
  inset: 12% 0 18%;
  width: 2px;
  left: 50%;
  margin-left: -1px;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
}
.box-stage__lid {
  position: absolute;
  top: -10px;
  left: 8%;
  right: 8%;
  height: 16px;
  background: linear-gradient(90deg, #f78ab5 0 50%, #6ea0ff 50%, #2f5fd0);
  border-radius: 8px 8px 0 0;
  opacity: 0.9;
}
.box-stage__inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 4vw, 2rem);
  min-height: 320px;
  padding: 1.5rem 0.5rem 1rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(26, 58, 138, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12));
  border-radius: 10px;
  border: 1px dashed rgba(60, 40, 15, 0.35);
}
.box-stage__inner--photo {
  align-items: center;
  min-height: 0;
  padding: 1.2rem 0.8rem;
  gap: clamp(0.6rem, 3vw, 1.6rem);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 110, 170, 0.22), transparent 60%),
    #0a0710;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  perspective: 1100px;
}
.nano-pack {
  position: relative;
  flex: 1 1 0;
  max-width: 330px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: packFloat 5.5s ease-in-out infinite;
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.nano-pack--groom { animation-delay: -2.6s; }
.nano-pack img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
}
.nano-pack__tag {
  position: absolute;
  inset-inline: 12%;
  bottom: -0.6rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.8);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nano-pack__tag b {
  color: #fff;
  font: 700 0.95rem var(--display);
}
.nano-pack__tag small {
  color: #ff9ec4;
  font: 600 0.62rem var(--kufi);
}
.nano-pack:hover {
  transform: translateY(-10px) rotateY(-6deg) scale(1.03);
  animation-play-state: paused;
}
.nano-pack--groom:hover { transform: translateY(-10px) rotateY(6deg) scale(1.03); }
.nano-pack:hover .nano-pack__tag,
.nano-pack.is-selected .nano-pack__tag {
  border-color: rgba(255, 120, 170, 0.85);
  box-shadow: 0 0 26px rgba(255, 90, 150, 0.4);
}
.nano-pack.is-selected img {
  filter: drop-shadow(0 18px 34px rgba(255, 90, 150, 0.45));
}
.nano-pack.is-shaking {
  animation: packShake 0.7s var(--ease);
}
@keyframes packFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}
@keyframes packShake {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  18% { transform: translateY(-22px) rotate(-7deg) scale(1.06); }
  38% { transform: translateY(0) rotate(6deg) scale(0.98); }
  56% { transform: translateY(-12px) rotate(-4deg) scale(1.04); }
  74% { transform: translateY(0) rotate(3deg) scale(1); }
  88% { transform: translateY(-5px) rotate(-1.5deg); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
.box-stage__heart {
  align-self: center;
  color: #ff7ab0;
  font-size: 1.4rem;
  animation: beat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 90, 150, 0.6));
}
@keyframes beat {
  40% { transform: scale(1.2); }
}

@media (max-width: 640px) {
  .box-stage__inner--photo { padding: 0.9rem 0.4rem 1.2rem; }
  .nano-pack__tag {
    inset-inline: 4%;
    padding: 0.3rem 0.35rem;
  }
  .nano-pack__tag b { font-size: 0.78rem; }
  .nano-pack__tag small { font-size: 0.55rem; }
  .box-stage__heart { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nano-pack { animation: none; }
}

.toy {
  position: relative;
  width: clamp(130px, 32vw, 190px);
  text-align: center;
  z-index: 2;
}
.toy__blister {
  position: absolute;
  inset: -8px -6px 40px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
  pointer-events: none;
}
.toy__figure {
  position: relative;
  height: 210px;
  filter: drop-shadow(0 12px 10px rgba(0,0,0,0.35));
}
.toy__head {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 52px;
  height: 56px;
  margin-left: -26px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(160deg, #f0c8a0, #d49a68);
  z-index: 3;
}
.toy__eye {
  position: absolute;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a1208;
}
.toy__eye:first-child { left: 12px; }
.toy__eye:nth-child(2) { right: 12px; }
.toy__smile {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 14px;
  height: 7px;
  border: 2px solid #8a4a2a;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}
.toy__hair--g {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 56px;
  height: 28px;
  margin-left: -28px;
  border-radius: 20px 20px 4px 4px;
  background: #1a1c22;
  z-index: 4;
}
.toy__hair--b {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 64px;
  height: 70px;
  margin-left: -32px;
  border-radius: 30px 30px 8px 8px;
  background: linear-gradient(180deg, #3a2410, #1a1008);
  z-index: 2;
}
.toy__veil {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100px;
  height: 150px;
  margin-left: -50px;
  border-radius: 50px 50px 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.05));
  z-index: 1;
}
.toy__body--suit {
  position: absolute;
  top: 95px;
  left: 50%;
  width: 70px;
  height: 85px;
  margin-left: -35px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #151820, #05070c);
  z-index: 2;
}
.toy__tie {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 10px;
  height: 36px;
  margin-left: -5px;
  background: linear-gradient(180deg, var(--blue-mid), var(--blue-deep));
  clip-path: polygon(50% 0, 100% 12%, 70% 100%, 30% 100%, 0 12%);
}
.toy__legs {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 50px;
  height: 28px;
  margin-left: -25px;
  background: #0a0c10;
  border-radius: 0 0 6px 6px;
}
.toy__body--dress {
  position: absolute;
  top: 98px;
  left: 50%;
  width: 90px;
  height: 110px;
  margin-left: -45px;
  border-radius: 16px 16px 45% 45%;
  background: linear-gradient(180deg, #fff, #e8eef8);
  box-shadow: inset 0 0 0 1px rgba(26, 58, 138, 0.15);
  z-index: 2;
}

.toy__props {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 3;
}
.prop-car {
  width: 42px;
  height: 16px;
  border-radius: 6px 10px 4px 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid));
  position: relative;
  box-shadow: 0 3px 0 #05070c;
}
.prop-car::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 10px;
  right: 8px;
  height: 9px;
  border-radius: 6px 8px 0 0;
  background: #1a3a8a;
}
.prop-car::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 4px;
  right: 4px;
  height: 5px;
  background:
    radial-gradient(circle at 20% 50%, #222 0 45%, transparent 46%),
    radial-gradient(circle at 80% 50%, #222 0 45%, transparent 46%);
}
.prop-chip {
  font: 700 0.7rem/1.6 var(--mono);
  padding: 0 0.35rem;
  border-radius: 4px;
  background: #0d2460;
  color: #9ec0ff;
  direction: ltr;
}
.prop-book {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 34px;
  border-radius: 2px 4px 4px 2px;
  background: linear-gradient(90deg, #1a3a8a, #2f5fd0);
  color: #fff;
  font: 700 0.65rem var(--mono);
  box-shadow: 2px 2px 0 #0a1628;
  direction: ltr;
}
.prop-flag { font-size: 1.1rem; }

.toy p { margin-top: 0.55rem; position: relative; z-index: 3; }
.toy strong {
  display: block;
  font: 700 1.15rem var(--display);
  color: #1a1208;
}
.toy span {
  color: #4a3420;
  font-size: 0.72rem;
  font-family: var(--kufi);
}

.box-stage__barcode {
  margin-top: 0.8rem;
  text-align: center;
  font: 700 0.85rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: rgba(120, 20, 60, 0.5);
  direction: ltr;
}
.box-stage__sku {
  width: fit-content;
  margin: 0.45rem auto 0;
  padding: 0.3rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6ea6, #2f5fd0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 6px 14px rgba(47, 95, 208, 0.35);
  text-align: center;
  font: 700 0.72rem var(--mono);
  letter-spacing: 0.08em;
  color: #fff;
  direction: ltr;
}

.lyric-line {
  text-align: center;
  margin-top: 1.8rem;
  color: var(--pink);
  font: 500 1.1rem var(--display);
}

/* ═══════════ DAY STORY SCENES ═══════════ */
.worlds {
  padding: 5rem 1.2rem;
  background: transparent;
}
.day-story {
  display: grid;
  gap: 1.2rem;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .day-story { grid-template-columns: repeat(3, 1fr); }
}
.scene-card {
  padding: 1rem;
  border: 1px solid rgba(120, 160, 230, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(255, 120, 170, 0.08), transparent 40%),
    linear-gradient(255deg, rgba(47, 95, 208, 0.22), transparent 50%),
    var(--panel);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.scene-card:hover {
  border-color: rgba(77, 127, 255, 0.55);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35);
}
.scene-card__visual {
  position: relative;
  height: 220px;
  margin-top: 0.55rem;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #152038, #0a1220);
}
.scene-card__step {
  display: inline-block;
  color: var(--blue-glow);
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.12em;
  direction: ltr;
}

/* Scene 01: ride together */
.ride-scene { position: absolute; inset: 0; }
.ride-scene__sky {
  position: absolute;
  inset: 0 0 38%;
  background:
    radial-gradient(circle at 78% 28%, rgba(180,205,255,0.35), transparent 28%),
    linear-gradient(180deg, #1a2f55, #101b30);
}
.ride-scene__road {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 42%;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(220,230,245,0.45) 18px 34px, transparent 34px 58px) 0 48% / auto 3px no-repeat,
    linear-gradient(180deg, #1a2333, #070a10);
  animation: roadRush 1.2s linear infinite;
}
.ride-scene__car {
  position: absolute;
  left: 12%;
  bottom: 18%;
  width: min(78%, 220px);
  animation: drive 2.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.45));
}
.ride-scene__car img {
  display: block;
  width: 100%;
  height: auto;
}
.ride-scene__hearts {
  position: absolute;
  top: 18%;
  left: 48%;
  font-size: 0.85rem;
  animation: floatHearts 2.2s ease-in-out infinite;
}
@keyframes floatHearts {
  50% { transform: translateY(-8px); opacity: 0.7; }
}
@keyframes drive {
  50% { transform: translateX(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pop {
  50% { transform: scale(1.06); }
}

/* Scene 02: German class for kids */
.class-scene { position: absolute; inset: 0; padding: 0.7rem; }
.class-scene__board {
  display: grid;
  place-content: center;
  height: 58%;
  border-radius: 8px;
  background: linear-gradient(160deg, #1a3a8a, #0d2460);
  color: #fff;
  text-align: center;
  direction: ltr;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12);
}
.class-scene__board b { font: 700 0.78rem var(--mono); }
.class-scene__board small { font-size: 0.65rem; opacity: 0.85; }
.class-scene__teacher {
  position: absolute;
  bottom: 18%;
  left: 46%;
  width: 18px;
  height: 34px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(#fff 0 55%, #e8eef8 55%);
}
.class-scene__teacher::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #e0a870;
  box-shadow: 0 -5px 0 -1px #3a2410;
}
.class-scene__kid {
  position: absolute;
  bottom: 14%;
  width: 12px;
  height: 22px;
  border-radius: 5px 5px 2px 2px;
  background: #2f5fd0;
  animation: kidBounce 1.8s ease-in-out infinite;
}
.class-scene__kid::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #e8b888;
}
.class-scene__kid--1 { left: 16%; animation-delay: 0s; background: #4d7fff; }
.class-scene__kid--2 { left: 30%; animation-delay: 0.25s; background: #1a3a8a; }
.class-scene__kid--3 { left: 70%; animation-delay: 0.4s; background: #2f5fd0; }
@keyframes kidBounce {
  50% { transform: translateY(-5px); }
}
.class-scene__bubble {
  position: absolute;
  top: 62%;
  right: 10%;
  padding: 0.2rem 0.45rem;
  border-radius: 10px 10px 10px 2px;
  background: rgba(77, 127, 255, 0.22);
  border: 1px solid rgba(77, 127, 255, 0.4);
  color: #c5d8ff;
  font: 600 0.62rem var(--mono);
  direction: ltr;
  animation: pop 2.4s ease-in-out infinite;
}

/* Scene 03: pickup after lesson */
.pickup-scene { position: absolute; inset: 0; }
.pickup-scene__building {
  position: absolute;
  top: 10%;
  right: 12%;
  width: 42%;
  height: 62%;
  border-radius: 8px 8px 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(120,160,220,0.35) 10px 12px),
    linear-gradient(180deg, #1d355f, #101b30);
  border: 1px solid rgba(77, 127, 255, 0.25);
}
.pickup-scene__door {
  position: absolute;
  bottom: 28%;
  right: 24%;
  width: 16px;
  height: 28px;
  border-radius: 3px 3px 0 0;
  background: #0d2460;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.pickup-scene__her {
  position: absolute;
  bottom: 28%;
  right: 34%;
  width: 12px;
  height: 28px;
  border-radius: 6px 6px 2px 2px;
  background: #f4f7ff;
  animation: walkOut 2.8s ease-in-out infinite;
}
.pickup-scene__her::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #e0a870;
  box-shadow: 0 -4px 0 -1px #3a2410;
}
@keyframes walkOut {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-14px); }
}
.pickup-scene__car {
  position: absolute;
  left: 4%;
  bottom: 12%;
  width: min(70%, 180px);
  animation: waitPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.45));
}
.pickup-scene__car img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes waitPulse {
  50% { transform: translateY(-3px); }
}
.pickup-scene__text {
  position: absolute;
  top: 12%;
  left: 8%;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(13, 36, 96, 0.55);
  border: 1px solid rgba(77, 127, 255, 0.35);
  color: #c5d8ff;
  font: 600 0.62rem var(--kufi);
}

.big-lyric {
  max-width: 820px;
  margin: 2.8rem auto 0;
  text-align: center;
  padding: 1.5rem 1.2rem;
  border-top: 0;
  border-bottom: 0;
  font: 600 clamp(1.15rem, 3.5vw, 1.7rem)/1.55 var(--display);
  color: #d7e2f5;
}
.big-lyric em {
  font-style: italic;
  color: var(--blue-glow);
  direction: ltr;
  display: inline-block;
}
.big-lyric span {
  display: block;
  margin-top: 0.7rem;
  color: var(--blue-glow);
  font-size: 0.95em;
}

/* keep old world styles unused but harmless if present */

/* ═══════════ EVENTS ═══════════ */
.event { padding: 4.5rem 1.2rem; }
.event--henna {
  background: transparent;
}
.event--wedding {
  background: transparent;
}
.event__panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.4rem;
  border: 1px solid rgba(120, 160, 230, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(105deg, rgba(60, 18, 40, 0.35), transparent 42%),
    linear-gradient(255deg, rgba(26, 58, 138, 0.45), transparent 48%),
    rgba(12, 16, 28, 0.88);
}
.event__panel--photo {
  max-width: 760px;
  padding: 1rem 1rem 2rem;
  overflow: hidden;
}
.wedding-hero {
  position: relative;
  margin: 0 0 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.wedding-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
  object-fit: cover;
  object-position: center top;
}
.wedding-hero__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 5.5rem 1.2rem 1.5rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 7, 14, 0.35) 28%,
    rgba(5, 7, 14, 0.78) 62%,
    rgba(5, 7, 14, 0.94) 100%
  );
}
.wedding-hero__caption .kicker {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
.wedding-hero__caption h2 {
  font: 700 clamp(2.4rem, 8vw, 3.6rem)/1.05 var(--display);
  color: #fff;
  margin: 0.25rem 0 0.55rem;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(47, 95, 208, 0.35);
}
.wedding-hero__caption p:last-child {
  margin: 0 auto;
  max-width: 28rem;
  color: #e8eef8;
  font: 500 0.98rem/1.55 var(--display);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 6px 18px rgba(0, 0, 0, 0.55);
}
.event__panel h2 {
  font: 700 clamp(2rem, 5vw, 3rem) var(--display);
  color: #fff;
  margin: 0.3rem 0 0.6rem;
}
.event__lead { color: var(--muted); margin-bottom: 1.4rem; }
.event__facts {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
@media (min-width: 560px) {
  .event__facts { grid-template-columns: repeat(3, 1fr); }
}
.event__facts div {
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(5, 7, 12, 0.55);
  border: 1px solid var(--line);
}
.event__facts span {
  display: block;
  color: var(--blue-glow);
  font-size: 0.72rem;
  font-family: var(--kufi);
  margin-bottom: 0.2rem;
}
.event__facts strong {
  font: 700 1.05rem var(--display);
  color: #fff;
}
.event__facts em {
  display: block;
  margin-top: 0.35rem;
  color: #9eb6e0;
  font: 500 0.68rem/1.35 var(--mono);
  font-style: normal;
  direction: ltr;
  opacity: 0.9;
}
.event__panel--photo .event__facts div:last-child {
  border-color: rgba(77, 127, 255, 0.4);
  background:
    linear-gradient(160deg, rgba(47, 95, 208, 0.22), transparent 70%),
    rgba(5, 7, 12, 0.55);
}
@media (min-width: 560px) {
  .event__panel--photo .event__facts {
    grid-template-columns: 1fr 1fr 1.35fr;
  }
}

.map {
  margin-top: 1.4rem;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05) brightness(0.85) hue-rotate(190deg);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.countdown > div {
  min-width: 58px;
  padding: 0.7rem 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--void);
}
.countdown b {
  display: block;
  font: 700 1.5rem var(--display);
  color: var(--blue-glow);
}
.countdown span { font-size: 0.65rem; color: var(--muted); }
.countdown > i {
  color: var(--blue-mid);
  font-style: normal;
}

/* ═══════════ RSVP ═══════════ */
.rsvp {
  padding: 4.5rem 1.2rem;
  background: transparent;
}
.rsvp__panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.8rem 1.6rem;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(120, 160, 230, 0.28);
  background:
    linear-gradient(105deg, rgba(255, 120, 170, 0.1), transparent 40%),
    linear-gradient(255deg, rgba(47, 95, 208, 0.35), transparent 50%),
    var(--panel);
  overflow: hidden;
}
.rsvp__copy {
  text-align: center;
}
.rsvp__panel h2 {
  font: 700 clamp(1.8rem, 4vw, 2.4rem) var(--display);
  margin: 0.3rem 0 1.2rem;
}
#rsvpForm { display: grid; gap: 1rem; text-align: right; }
#rsvpForm label > span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  font-family: var(--kufi);
}
#rsvpForm input[name="name"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--ice);
  font-family: var(--body);
}
#rsvpForm input:focus {
  outline: none;
  border-color: var(--blue-mid);
}
#rsvpForm fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
#rsvpForm legend {
  padding: 0 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.radio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.3rem 0;
  font-family: var(--kufi);
  font-size: 0.9rem;
}
.radio input { accent-color: var(--blue-mid); }
#rsvpForm button { justify-self: center; }
.rsvp__status {
  margin-top: 1rem;
  min-height: 1.3em;
  color: var(--blue-glow);
  font-family: var(--kufi);
}

.foot {
  padding: 2.8rem 1.2rem;
  text-align: center;
  border-top: 0;
  background: transparent;
}
.foot__names {
  font: 700 1.8rem var(--display);
  color: #fff;
}
.foot__names span { color: var(--blue-glow); }
.foot__lyric {
  color: var(--blue-glow);
  font: 500 1rem var(--display);
  margin: 0.4rem 0;
}
.foot span { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 640px) {
  .top nav { display: none; }
  .hero__code { display: none; }
  .box-stage__inner:not(.box-stage__inner--photo) { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ EXPERIENCE UPGRADE ═══════════ */
.music {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 82px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 36, 96, 0.35);
  color: #cbdcff;
  cursor: pointer;
}
.music__bars {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 15px;
}
.music__bars i {
  width: 3px;
  height: 45%;
  border-radius: 2px;
  background: var(--blue-glow);
  animation: equalize 0.7s ease-in-out infinite alternate;
}
.music__bars i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.music__bars i:nth-child(3) { height: 70%; animation-delay: 0.3s; }
.music__label { font: 700 0.62rem var(--mono); letter-spacing: 0.12em; }
.music[aria-pressed="false"] .music__bars i { animation-play-state: paused; height: 3px; }
@keyframes equalize { to { height: 100%; } }

.hero__scan {
  position: absolute;
  inset: -100% 0 auto;
  height: 40%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(77, 127, 255, 0.13), transparent);
  animation: scanScene 6s linear infinite;
  pointer-events: none;
}
@keyframes scanScene { to { transform: translateY(500%); } }

.hero-drive {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-drive__moon {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8e7ff, #6888bf 65%, #1a3158);
  box-shadow: 0 0 70px rgba(126, 165, 235, 0.35);
  opacity: 0.8;
}
.hero-drive__city {
  position: absolute;
  right: 0;
  bottom: 18%;
  left: 0;
  display: flex;
  align-items: end;
  gap: 2%;
  height: 25%;
  opacity: 0.38;
}
.hero-drive__city i {
  flex: 1;
  height: 45%;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(77,127,255,.6) 10px 12px),
    linear-gradient(#14264b, #091225);
  border-top: 1px solid rgba(77,127,255,.5);
}
.hero-drive__city i:nth-child(2) { height: 85%; }
.hero-drive__city i:nth-child(3) { height: 60%; }
.hero-drive__city i:nth-child(4) { height: 100%; }
.hero-drive__city i:nth-child(5) { height: 70%; }
.hero-drive__road {
  position: absolute;
  right: -5%;
  bottom: -6%;
  left: -5%;
  height: 28%;
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(220,230,245,.65) 70px 110px, transparent 110px 190px) 0 48% / auto 4px no-repeat,
    linear-gradient(180deg, #111827, #030509);
  transform: perspective(350px) rotateX(56deg);
  transform-origin: bottom;
  animation: roadRush 1.3s linear infinite;
}
@keyframes roadRush { to { background-position: -190px 48%, 0 0; } }

.hero-drive__car {
  position: absolute;
  bottom: 6%;
  left: 4%;
  width: min(42vw, 280px);
  z-index: 2;
  filter: drop-shadow(0 16px 14px rgba(0,0,0,.55));
  animation: heroCarIdle 2.2s ease-in-out infinite;
  transition: transform 0.8s var(--ease);
}
.hero-drive__car img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-drive__car.is-revving { animation: heroRev 0.18s linear 6; }
@keyframes heroCarIdle { 50% { transform: translateY(-4px); } }
@keyframes heroRev {
  25% { transform: translate(4px, -2px); }
  75% { transform: translate(-3px, 1px); }
}
.hero__inner { z-index: 4; }
.hero__actions {
  display: flex;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.btn-ghost {
  padding: .72rem 1.35rem;
  border: 1px solid rgba(77,127,255,.45);
  border-radius: 999px;
  background: rgba(5,7,12,.55);
  color: #bcd0f7;
  font: 600 .85rem var(--kufi);
  cursor: pointer;
}
.hero__hint {
  position: absolute;
  right: 0;
  bottom: 1.3rem;
  left: 0;
  z-index: 4;
  text-align: center;
  color: #71809a;
  font: 500 .68rem var(--mono);
  direction: ltr;
}

/* Mouse tilt and toy reveals */
.interactive-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.world.interactive-card:hover,
.scene-card.interactive-card:hover {
  border-color: rgba(77,127,255,.65);
  box-shadow: 0 26px 55px rgba(0,0,0,.35), 0 0 30px rgba(47,95,208,.12);
}
button.toy {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.toy__figure, .toy__props, .toy > p { transform: translateZ(24px); }
.toy__click {
  display: inline-block;
  margin-top: .35rem;
  padding: .15rem .5rem;
  border: 1px solid rgba(26,58,138,.3);
  border-radius: 999px;
  color: #3a2a16 !important;
  font-size: .6rem !important;
}
.toy.is-selected .toy__blister {
  border-color: rgba(77,127,255,.8);
  box-shadow: inset 0 0 25px rgba(77,127,255,.25), 0 0 34px rgba(47,95,208,.35);
}
.toy.is-selected .toy__figure { animation: toyJump .6s var(--ease); }
@keyframes toyJump {
  45% { transform: translateZ(24px) translateY(-20px) rotate(4deg); }
}

/* ═══════════ INTERACTIVE JOURNEY ═══════════ */
.journey {
  padding: 5.5rem 1.2rem;
  background: transparent;
  overflow: hidden;
}
.journey-console {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid rgba(120, 160, 230, 0.3);
  border-radius: 24px;
  background:
    linear-gradient(105deg, rgba(255, 120, 170, 0.08), transparent 38%),
    linear-gradient(255deg, rgba(47, 95, 208, 0.28), transparent 52%),
    linear-gradient(180deg, rgba(16,25,44,.96), rgba(6,10,18,.98));
  box-shadow: 0 35px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.journey-console__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid #263654;
  background: rgba(5,7,12,.45);
  color: #7788a5;
  font: 500 .66rem var(--mono);
  direction: ltr;
}
#journeyStatus { color: #75a3ff; }
.journey-road {
  position: relative;
  height: 330px;
  margin: 0 2%;
  direction: ltr;
}
.journey-road::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: 34px;
  left: -6%;
  height: 128px;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(225,232,245,.32) 38px 70px, transparent 70px 112px) 0 54% / auto 3px no-repeat,
    linear-gradient(180deg, #121a27, #030509);
  transform: perspective(500px) rotateX(58deg);
  border-top: 1px solid #2d3c56;
}
.journey-road__line {
  position: absolute;
  top: 92px;
  right: 3%;
  left: 3%;
  height: 3px;
  border-radius: 4px;
  background: #26344c;
}
.journey-road__progress {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f5fd0, #76a0ff);
  box-shadow: 0 0 16px rgba(77,127,255,.6);
  transition: width .9s var(--ease);
}
.journey-stop {
  position: absolute;
  top: 52px;
  left: var(--x);
  width: 104px;
  margin-left: -52px;
  border: 0;
  background: transparent;
  color: #8795aa;
  text-align: center;
  cursor: pointer;
  font-family: var(--body);
  transition: color .3s, transform .3s;
}
.journey-stop:hover { transform: translateY(-5px); color: #c8d7f1; }
.journey-stop__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 16px auto .45rem;
  border: 2px solid #33425e;
  border-radius: 50%;
  background: #0c1320;
  font: 700 .75rem var(--mono);
  direction: ltr;
  transition: all .3s;
}
.journey-stop strong,
.journey-stop small { display: block; }
.journey-stop strong { font: 700 .78rem var(--kufi); }
.journey-stop small { font-size: .62rem; color: #627089; }
.journey-stop.is-active { color: #fff; }
.journey-stop.is-active .journey-stop__icon {
  border-color: var(--blue-glow);
  background: var(--blue-deep);
  box-shadow: 0 0 25px rgba(77,127,255,.42);
}
.journey-car {
  position: absolute;
  top: 160px;
  left: 4%;
  width: 130px;
  margin-left: -65px;
  z-index: 3;
  filter: drop-shadow(0 9px 8px rgba(0,0,0,.5));
  transition: left .9s var(--ease);
}
.journey-car img {
  display: block;
  width: 100%;
  height: auto;
}
.journey-car.is-driving { animation: carBounce .18s linear infinite; }
@keyframes carBounce { 50% { transform: translateY(-3px); } }
.journey-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 150px;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid #263654;
  background: rgba(8,13,23,.86);
}
.journey-card__count {
  font: 700 1.35rem var(--mono);
  color: #49658e;
  direction: ltr;
}
.journey-card h3 {
  color: #fff;
  font: 700 1.35rem var(--display);
}
.journey-card > div > p:last-child { color: var(--muted); font-size: .86rem; }
.journey-card.is-changing > div { animation: chapterSwap .5s var(--ease); }
@keyframes chapterSwap {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: none; }
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 1.5rem;
  z-index: 100;
  max-width: min(360px, 88vw);
  padding: .75rem 1.1rem;
  border: 1px solid rgba(77,127,255,.42);
  border-radius: 999px;
  background: rgba(6,10,18,.92);
  color: #dbe7ff;
  font: 600 .82rem var(--kufi);
  text-align: center;
  box-shadow: 0 14px 36px rgba(0,0,0,.42);
  transform: translate(50%, 140%);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(50%, 0); opacity: 1; }

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1b46a7, #72a0ff, #d9e7ff);
  box-shadow: 0 0 12px rgba(77,127,255,.65);
  pointer-events: none;
}

@media (max-width: 740px) {
  .music { min-width: auto; }
  .music__label { display: none; }
  .hero-drive__car { width: min(58vw, 180px); left: 2%; opacity: .8; }
  .journey-road { height: 430px; }
  .journey-road__line {
    top: 38px;
    bottom: 46px;
    left: 50%;
    width: 3px;
    height: auto;
  }
  .journey-road__progress { width: 100%; height: 4%; transition: height .9s var(--ease); }
  .journey-road::before { display: none; }
  .journey-stop {
    top: calc(18px + (var(--step, 0) * 74px));
    left: 50% !important;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    width: 210px;
    margin-left: -105px;
    text-align: right;
  }
  .journey-stop:nth-of-type(1) { --step: 0; }
  .journey-stop:nth-of-type(2) { --step: 1; }
  .journey-stop:nth-of-type(3) { --step: 2; }
  .journey-stop:nth-of-type(4) { --step: 3; }
  .journey-stop:nth-of-type(5) { --step: 4; }
  .journey-stop__icon { grid-row: 1 / span 2; margin: 0; }
  .journey-stop strong { align-self: end; }
  .journey-stop small { align-self: start; }
  .journey-car { display: none; }
  .journey-card { grid-template-columns: auto 1fr; }
  .journey-card .btn-blue { grid-column: 1 / -1; justify-self: center; }
}
