/* =========================================================
   TAHERYS — Christmas Edition intro (promo.js builds the markup)
   Motion: transform + opacity only. One warm key light upper-left,
   red rim from behind. No tilt, no parallax.
   ========================================================= */
.xm-lock { overflow: hidden; }
.xm {
  --xm-ink: #120c09;
  --xm-cream: #F3EEE3;
  --xm-red: #B23124;
  --xm-hot: #E41414;
  --xm-gold: #E9C27A;
  --xm-settle: cubic-bezier(.16,1,.3,1);
  --xm-press: cubic-bezier(.34,1.5,.5,1);
  position: fixed; inset: 0; z-index: 9999; touch-action: none; overscroll-behavior: none;
  background: radial-gradient(120% 90% at 70% 40%, #2a1912 0%, #160e0a 55%, #0b0705 100%);
  color: var(--xm-cream);
  font-family: "Poppins", system-ui, sans-serif;
  overflow: hidden;
  transition: opacity .6s var(--xm-settle), transform .8s var(--xm-settle);
}
.xm.is-out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.xm canvas.xm-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xm-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.xm-stage {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  align-items: center; gap: clamp(24px,4vw,72px);
  max-width: 1280px; margin: 0 auto; padding: clamp(24px,5vw,72px);
}

/* ---------- copy ---------- */
.xm-copy { position: relative; z-index: 3; }
.xm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--xm-gold);
}
.xm-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.xm-title { margin: 18px 0 0; line-height: .92; font-weight: 600; letter-spacing: -.02em; }
.xm-title .l { display: block; overflow: hidden; padding-bottom: .06em; }
.xm-title .l > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--xm-settle); }
.xm-title .t1 > span { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(52px,7.4vw,112px); color: var(--xm-cream); letter-spacing: -.03em; }
.xm-title .t2 > span { font-size: clamp(44px,6.2vw,96px); color: var(--xm-red); text-shadow: 0 0 38px rgba(228,20,20,.35); }
.xm-sub { margin: 22px 0 0; max-width: 34ch; font-size: clamp(15px,1.25vw,18px); line-height: 1.6; color: rgba(243,238,227,.74); }
.xm-sub em { font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--xm-cream); }
.xm-price { margin: 18px 0 0; font-size: 13px; letter-spacing: .08em; color: rgba(243,238,227,.62); }
.xm-price b { color: var(--xm-cream); font-weight: 600; }
.xm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.xm-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 "Poppins", system-ui, sans-serif; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .5s var(--xm-press);
  -webkit-tap-highlight-color: transparent;
}
.xm-btn:active { transform: scale(.96); }
.xm-btn-red { background: var(--xm-red); color: var(--xm-cream); box-shadow: 0 14px 34px -12px rgba(228,20,20,.7), inset 0 1px 0 rgba(255,255,255,.22); }
.xm-btn-red:hover { background: var(--xm-hot); }
.xm-btn-glass {
  color: var(--xm-cream); background: rgba(243,238,227,.07); border-color: rgba(243,238,227,.18);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.xm-btn-glass:hover { background: rgba(243,238,227,.14); }
.xm-btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); opacity: 1; pointer-events: none; animation: xmRipple .6s var(--xm-settle) forwards; }
@keyframes xmRipple { to { transform: scale(1); opacity: 0; } }

.xm-copy .xm-fade { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--xm-settle), transform .9s var(--xm-settle); }

/* ---------- the world: Tony's film is the whole room ---------- */
.xm-far, .xm-world { position: absolute; pointer-events: none; }
.xm-far { inset: -8%; z-index: 0; opacity: 0; transition: opacity 1s var(--xm-settle); }
.xm-far video, .xm-far img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; filter: blur(22px) brightness(.55) saturate(1.2); transform: scale(2.6); transform-origin: 88% 4%; } /* only the tree and garland, never a second Tony */
.xm-far::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,9,7,.92) 0%, rgba(14,9,7,.55) 30%, rgba(14,9,7,0) 60%); }
.xm-world {
  z-index: 0; top: 0; bottom: 0; right: max(1vw, calc(50% - 720px)); width: clamp(56.25vh, 46vw, 70vh); height: 100%;
  opacity: 0; transform: scale(1.06); transition: opacity .35s var(--xm-settle), transform 5s var(--xm-settle);
  /* sides melt into the dark; the floor below the sign fades out, so the film's own cropped tagline never shows */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 12%, rgba(0,0,0,.75) 24%, #000 34%, #000 84%, rgba(0,0,0,0) 100%), linear-gradient(180deg, #000 68%, rgba(0,0,0,0) 92%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 12%, rgba(0,0,0,.75) 24%, #000 34%, #000 84%, rgba(0,0,0,0) 100%), linear-gradient(180deg, #000 68%, rgba(0,0,0,0) 92%);
          mask-composite: intersect;
}
.xm-world::after { /* the room's left wall falls into shadow so the film melts into the dark */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,9,7,.85) 0%, rgba(14,9,7,.35) 18%, rgba(14,9,7,0) 34%),
              linear-gradient(0deg, rgba(14,9,7,.5) 0%, rgba(14,9,7,0) 18%);
}
.xm-world-in { position: absolute; inset: 0; transform: scale(1.035); background: #1a110d url(christmas-world-poster.jpg) 50% 30% / cover no-repeat; }
.xm-world video, .xm-world img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.xm-scrim { /* keeps the words readable without boxing them */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,7,5,.88) 0%, rgba(11,7,5,.62) 34%, rgba(11,7,5,.12) 58%, rgba(11,7,5,0) 70%),
              linear-gradient(0deg, rgba(11,7,5,.55) 0%, rgba(11,7,5,0) 26%);
}
.xm canvas.xm-field { z-index: 1; pointer-events: none; }
.xm-grain { z-index: 1; }
.xm.xm-on-tony { cursor: pointer; }

/* touch signifier: a breathing ring on Tony's chest (JS places it) */
.xm-hint {
  position: absolute; left: 0; top: 0; z-index: 2; margin: 0; pointer-events: none;
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--xm-cream);
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
  opacity: 0; transition: opacity .8s var(--xm-settle);
}
.xm-hint span { transform: translateX(-50%); margin-left: 0; white-space: nowrap; }
.xm-hint i { position: relative; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255,226,180,.9); box-shadow: 0 0 18px 4px rgba(255,190,110,.65); }
.xm-hint i::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid rgba(255,230,190,.8); animation: xmPulse 2.2s var(--xm-settle) infinite; }
@keyframes xmPulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.xm.s4 .xm-hint { opacity: 1; }
.xm.xm-touched .xm-hint { opacity: 0; transition-duration: .3s; }

.xm-stage { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); max-width: none; padding-left: clamp(24px, 5vw, 96px); align-items: end; pointer-events: none; }
.xm-copy { align-self: center; pointer-events: auto; touch-action: manipulation; }
.xm-bag {
  position: absolute; left: 50%; bottom: 4vh; height: min(58vh, 560px);
  aspect-ratio: 571 / 1100; pointer-events: auto;
  transform: translateY(46px) scale(.96); opacity: 0;
  transition: transform 1.3s var(--xm-press), opacity .9s var(--xm-settle);
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.xm-bag-body { position: absolute; inset: 0; z-index: 1; transition: transform .45s var(--xm-press); }
.xm-bag img { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(-1px 0 0 rgba(255,120,90,.35)) drop-shadow(18px 24px 30px rgba(0,0,0,.6)) drop-shadow(12px 0 26px rgba(178,49,36,.35)); }
.xm-sheen { /* light sweep, masked to the bag */
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(christmas-bag.webp) center / 100% 100% no-repeat; mask: url(christmas-bag.webp) center / 100% 100% no-repeat;
  overflow: hidden;
}
.xm-sheen::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 45%; left: -60%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,244,225,.38) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(0) skewX(-14deg);
}
.xm-sheen.go::before { animation: xmSweep 1.5s var(--xm-settle) forwards; }
@keyframes xmSweep { to { transform: translateX(400%) skewX(-14deg); } }
.xm-floor {
  position: absolute; left: -30%; right: -30%; bottom: -4%; height: 9%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.85), rgba(0,0,0,0) 70%);
}
.xm-ring { /* hold gauge: a warm disc that grows to the outline (transform only) */
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; pointer-events: none;
  border-radius: 50%; border: 1.5px solid rgba(243,238,227,.85); opacity: 0; transition: opacity .25s;
}
.xm.s4 .xm-bag:not(.is-held) .xm-ring { opacity: .55; animation: xmRingBreathe 2.4s ease-in-out infinite; }
@keyframes xmRingBreathe { 0%,100% { transform: scale(.82); opacity: .25; } 50% { transform: scale(1); opacity: .7; } }
.xm.xm-touched .xm-bag:not(.is-held) .xm-ring { animation: none; opacity: 0; }
.xm-ring i { position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,160,.85), rgba(255,170,90,.35) 70%, rgba(255,170,90,0)); transform: scale(0); }

.xm-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243,238,227,.2);
  background: rgba(18,12,9,.45); color: var(--xm-cream); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: transform .4s var(--xm-press);
}
.xm-close:hover { background: rgba(243,238,227,.12); }
.xm-close:active { transform: scale(.92); }
.xm-mark { position: absolute; top: max(22px, env(safe-area-inset-top)); left: clamp(20px,5vw,72px); z-index: 5; height: 30px; opacity: 0; transition: opacity 1s var(--xm-settle); }

/* ---------- choreography ---------- */
.xm.s1 .xm-far { opacity: 1; }
.xm.s1 .xm-world { opacity: 1; transform: none; }
.xm.s2 .xm-bag { transform: none; opacity: 1; }
.xm.s2 .xm-mark { opacity: .9; }
.xm.s3 .xm-title .l > span { transform: none; }
.xm.s3 .xm-title .t2 > span { transition-delay: .09s; }
.xm.s3 .xm-copy .xm-fade { opacity: 1; transform: none; }
.xm.s3 .xm-copy .xm-fade.d1 { transition-delay: .18s; }
.xm.s3 .xm-copy .xm-fade.d2 { transition-delay: .27s; }
.xm.s3 .xm-copy .xm-fade.d3 { transition-delay: .36s; }

/* pressed (hold) */
.xm-bag.is-held { cursor: grabbing; }
.xm-bag.is-held .xm-bag-body { transform: scale(.955) translateY(6px); }
.xm-bag.is-held .xm-ring { opacity: 1; }

/* ---------- phone: Tony fills the screen, words sit on the floor ---------- */
@media (max-width: 820px) {
  .xm-far { display: none; }
  .xm-world { inset: 0 0 auto 0; right: 0; width: 100%; height: 80%; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0,0,0,0) 86%);
            mask-image: linear-gradient(180deg, #000 62%, rgba(0,0,0,0) 86%); }
  .xm-world::after { display: none; }
  .xm-scrim { background: linear-gradient(0deg, rgba(11,7,5,.96) 0%, rgba(11,7,5,.88) 34%, rgba(11,7,5,.3) 52%, rgba(11,7,5,0) 62%); }
  .xm-stage { display: block; padding: 0 20px max(22px, env(safe-area-inset-bottom)); }
  .xm-copy { position: absolute; left: 20px; right: 20px; bottom: max(22px, env(safe-area-inset-bottom)); }
  .xm-bag { position: absolute; left: auto; right: 18px; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 236px); height: min(21vh, 172px); margin: 0; z-index: 3; }
  .xm-bag img { filter: drop-shadow(-1px 0 0 rgba(255,120,90,.3)) drop-shadow(6px 10px 14px rgba(0,0,0,.65)); }
  .xm-floor { bottom: -3%; height: 6%; }
  .xm-title .t1 > span { font-size: clamp(46px,13vw,64px); }
  .xm-title .t2 > span { font-size: clamp(38px,11vw,54px); }
  .xm-sub { margin-top: 14px; font-size: 14.5px; max-width: 30ch; }
  .xm-price { margin-top: 10px; font-size: 12px; }
  .xm-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr; }
  .xm-btn { width: 100%; min-height: 54px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .xm-sub { display: none; }
  .xm-bag { bottom: calc(max(22px, env(safe-area-inset-bottom)) + 180px); height: 19vh; }
}

@media (prefers-reduced-motion: reduce) {
  .xm, .xm *, .xm *::before, .xm *::after { transition-duration: .01s !important; animation: none !important; }
}

/* ---------- Christmas Edition section + page ---------- */
.xe { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 75% 40%, #2a1912 0%, #150d0a 60%, #0d0806 100%); color: #F3EEE3; }
.xe .eyebrow { color: #E9C27A; }
.xe .display { color: #F3EEE3; }
.xe .display .fx { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; }
.xe .lede { color: rgba(243,238,227,.75); }
.xe-visual { position: relative; width: 100%; max-width: 540px; aspect-ratio: 5 / 6; margin: 0 auto; }
.xe-visual video { position: absolute; right: -8%; top: -4%; height: 100%; aspect-ratio: 9/16; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 45%, rgba(0,0,0,.5) 70%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 45%, rgba(0,0,0,.5) 70%, rgba(0,0,0,0) 100%); }
.xe-visual img { position: absolute; left: 4%; bottom: 0; height: 82%; width: auto; z-index: 2; filter: drop-shadow(18px 30px 40px rgba(0,0,0,.7)) drop-shadow(10px 0 24px rgba(178,49,36,.3)); }
.xe .display { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; }
.xe-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.xe-chips span { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(243,238,227,.2); color: rgba(243,238,227,.85); }
.xe-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; max-width: 560px; }
.xe-pack { position: relative; padding: 22px; border-radius: 20px; background: rgba(243,238,227,.05); border: 1px solid rgba(243,238,227,.12); }
.xe-pack.best { border-color: rgba(178,49,36,.8); background: linear-gradient(180deg, rgba(178,49,36,.16), rgba(178,49,36,.04)); }
.xe-pack .k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #E9C27A; margin: 0; }
.xe-pack h3 { margin: 8px 0 4px; font-size: 22px; color: #F3EEE3; }
.xe-pack .p { margin: 0 0 16px; font-size: 14px; color: rgba(243,238,227,.7); }
.xe-pack .p b { font-size: 26px; color: #F3EEE3; font-weight: 600; margin-right: 4px; }
.xe-pack .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) { .xe-packs { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .xe-hero .split > :last-child { order: -1; margin-bottom: 8px; } .xe-hero .xe-visual { max-width: 360px; } }
.xe-pack-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.xe-pack-wide .btn { width: auto; }
@media (max-width: 640px) { .xe-pack-wide .btn { width: 100%; } }

/* pack visuals: show exactly what's in the box */
.xe-stage { position: relative; height: 150px; display: flex; align-items: flex-end; justify-content: center; margin: -4px 0 14px; }
.xe-stage::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -2px; height: 14px; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), rgba(0,0,0,0) 70%); }
.xe-stage figure { margin: 0; height: 100%; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.xe-stage img { height: 100%; width: auto; filter: drop-shadow(8px 14px 18px rgba(0,0,0,.55)); }
.xe-stage.two figure + figure { margin-left: -18px; transform: translateY(6px); z-index: 0; }
.xe-stage.mix { height: 170px; padding-bottom: 22px; }
.xe-stage.mix figure + figure { margin-left: 10px; transform: none; }
.xe-stage.mix figcaption { position: absolute; bottom: -22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #E9C27A; white-space: nowrap; }
.xe-pack-wide { align-items: center; }
.xe-pack-wide .xe-stage { margin: 0; flex: 0 0 auto; }
.xe-mix-copy { flex: 1 1 180px; }
@media (max-width: 640px) { .xe-pack-wide .xe-stage { flex: 1 1 100%; } }
