/* =====================================================================
   CHRISTMAS SPIRITS · the dark band above the Late Night hero (30 Nov – 19 Dec 2026)
   One section in the poster's world; the rest of the site stays paper-white.
   The scene (banner without text) is drawn by xmas.js with a depth map; without WebGL / with reduced
   motion the still image underneath is all there is. Remove after the run: this folder, the <section
   class="xmas"> and the two tags in index.html.
   ===================================================================== */
.xmas {
  --px: 0; --py: 0;                                  /* pointer, -1 … 1 (xmas.js) */
  --cream: #ede8e2; --gold: #e0b46f; --night: #0b0405;
  position: relative; margin-top: var(--header-h); overflow: hidden;
  height: clamp(480px, 46.9vw, calc(100vh - var(--header-h) - 40px));     /* the banner's shape, never taller than the screen: the white hero peeks in below */
  background: var(--night); color: var(--cream);
  display: flex; align-items: center;
}
.xmas-scene { position: absolute; inset: 0; }
.xmas-scene img, .xmas-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xmas-scene img { object-fit: cover; object-position: 100% 45%; }
.xmas-scene canvas { opacity: 0; transition: opacity .9s; }
.xmas.live .xmas-scene canvas { opacity: 1; }

.xmas-copy {
  position: relative; z-index: 1; width: 41%; max-width: 720px; margin-left: clamp(18px, 5.5vw, 110px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.xmas-eyebrow { margin: 0 0 clamp(8px, 1.2vw, 18px); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(11px, 1vw, 14px); font-variation-settings: "wdth" 100, "wght" 800; color: var(--cream); opacity: .85; }
.xmas-title { margin: 0; width: 100%; }
.xmas-title .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.xmas-lockup {
  position: relative; display: block; width: 100%; aspect-ratio: 1400 / 712;
  transform: translate3d(calc(var(--px) * -9px), calc(var(--py) * -6px), 0);          /* the title floats in front of the scene */
}
.xmas-lockup img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.xmas-lockup .t { inset: 0; width: 100%; height: 100%; }
.xmas-lockup .i {                                                                      /* the I of SPIRITS: left, top, width from scene.json */
  left: 59.54%; top: 48.88%; width: 6.76%; height: auto;
  transform: translate3d(calc(var(--px) * -7px), calc(var(--py) * -9px), 0);
}
.xmas-lockup .i-bob { position: absolute; inset: 0; animation: xmasBob 7s ease-in-out infinite; transform-origin: 63% 70%; transition: transform .9s cubic-bezier(.2, .8, .3, 1); }
.xmas-lockup:hover .i-bob { animation-play-state: paused; transform: translateY(-9%) rotate(5deg); }   /* come near and it lifts off */
.xmas-lockup .s { left: 1.57%; top: -18.66%; width: 100.46%; height: 88.67%; animation: xmasTwinkle 3.4s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes xmasBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3.2%) rotate(1.6deg); } }
@keyframes xmasTwinkle { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 60% { opacity: .9; } 75% { opacity: .5; } }

.xmas-tag { margin: clamp(14px, 2.2vw, 34px) 0 0; text-transform: uppercase; font-size: clamp(17px, 2.25vw, 40px); line-height: 1; letter-spacing: -.01em; font-variation-settings: "wdth" 112, "wght" 900; white-space: nowrap; }
.xmas-gold { margin: clamp(6px, .8vw, 12px) 0 0; text-transform: uppercase; color: var(--gold); font-size: clamp(15px, 1.75vw, 31px); line-height: 1; letter-spacing: -.02em; font-variation-settings: "wdth" 74, "wght" 800; }
.xmas-meta { margin: clamp(14px, 1.6vw, 24px) 0 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.4; color: #d9d2ca; }
.xmas-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(14px, 1.6vw, 24px); }
.xmas .btn { background: var(--gold); border-color: var(--gold); color: #1b0d09; }
.xmas .btn:hover { background: var(--cream); border-color: var(--cream); color: #1b0d09; }
.xmas .ghost-btn { color: var(--cream); border-color: rgba(237, 232, 226, .5); }
.xmas .ghost-btn:hover { background: var(--cream); color: #1b0d09; }

.xmas + .hero { padding-top: clamp(34px, 5vw, 70px); }      /* the band already clears the header */

/* phones and narrow windows: the ball on top, the title under it */
@media (max-width: 860px) {
  .xmas { height: auto; display: block; padding-bottom: 34px; background: #110607; }
  .xmas-scene { position: relative; inset: auto; aspect-ratio: 5 / 4; }
  .xmas-scene img { object-position: 89% 50%; }
  .xmas-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(transparent, #110607); pointer-events: none; }
  .xmas-copy { width: auto; max-width: 560px; margin: -9% auto 0; padding: 0 20px; }
  .xmas-tag { font-size: clamp(15px, 4.5vw, 30px); }
  .xmas-meta .wide-only { display: none; }
  .xmas-gold { font-size: clamp(15px, 4.2vw, 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lockup, .xmas-lockup .i { transform: none; }
  .xmas-lockup .i-bob, .xmas-lockup .s { animation: none; }
}

/* ---------- the cursor inside the band: a will-o'-the-wisp, cold and bright (xmas.js sets .in-xmas on the orb) ---------- */
.cursor-orb.in-xmas .orb-shape {
  width: 14px; height: 18px; margin: -10px 0 0 -7px; border: 0; opacity: .95; mix-blend-mode: screen;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(circle at 50% 62%, #fff 0 22%, #cfe6ff 45%, rgba(150, 195, 255, .0) 72%);
  box-shadow: 0 0 10px 3px rgba(190, 220, 255, .55), 0 0 34px 12px rgba(120, 170, 255, .28);
  animation: wispFlicker 2.3s ease-in-out infinite;
}
.cursor-orb.in-xmas[data-mood="link"] .orb-shape { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: none; border: 2px solid #cfe6ff; opacity: .8; box-shadow: 0 0 14px 2px rgba(150, 195, 255, .5), inset 0 0 10px rgba(150, 195, 255, .4); }
.cursor-orb.in-xmas[data-mood="tickets"] .orb-shape { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 200, .95), rgba(224, 180, 111, .5) 55%, transparent 72%); box-shadow: 0 0 26px 8px rgba(224, 180, 111, .45); opacity: .9; animation: orbBeat 1.1s ease-in-out infinite; }
@keyframes wispFlicker { 0%, 100% { scale: 1; opacity: .95; } 22% { scale: 1.12 .92; opacity: .8; } 41% { scale: .92 1.14; opacity: 1; } 63% { scale: 1.06 .97; opacity: .72; } 80% { scale: .96 1.08; opacity: .95; } }

/* ---------- Christmas in the white sections ---------- */
/* the calendar entry: a small piece of the night */
.run-xmas { background: radial-gradient(120% 140% at 100% 0%, #4a1820 0%, #1d090d 55%, #0b0405 100%); color: #ede8e2; }
.run-xmas .run-dates { color: #e0b46f; }
.run-xmas .run-title { color: #ede8e2; }
.run-xmas .run-detail { color: #d9d2ca; }
.run-xmas .links a:hover { color: #e0b46f; }
.run-xmas a.night:hover { background: #e0b46f; border-color: #e0b46f; color: #1b0d09; }
/* until the last Late Night before the run: a line under the buttons that sends people there first */
.xmas-first { margin: clamp(12px, 1.3vw, 20px) 0 0; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.35; color: #d9d2ca; }
.xmas-first a { color: var(--cream); text-decoration: none; border-bottom: 2px solid var(--red, #e63323); font-variation-settings: "wdth" 96, "wght" 700; }
.xmas-first a:hover { color: #fff; }

.xmas-deco { position: absolute; pointer-events: none; user-select: none; max-width: none; z-index: 3; }
/* the pudding (one bite missing) has been left on the Christmas entry */
.xmas-pudding { right: -4px; top: 0; width: 114px; height: auto; translate: 0 -80%; }
/* mistletoe under the content warning: MAY CONTAIN … SNOGS */
.xmas-mistletoe { top: 100%; right: 14%; width: clamp(64px, 7vw, 96px); height: auto; transform-origin: 50% 0; animation: mistletoeSway 5.5s ease-in-out infinite alternate; mix-blend-mode: multiply; }
@keyframes mistletoeSway { from { rotate: -4deg; } to { rotate: 5deg; } }
/* the fairy lights that someone fixed themselves, dumped on the show's card */
.xmas-lights { right: -14px; top: 0; width: clamp(120px, 12vw, 168px); height: auto; translate: 0 -40%; rotate: 4deg; mix-blend-mode: multiply; }
/* the aftermath of a very loud cracker on the studio floor of the group photo (Gernot's placement) */
.key-visual .xmas-cracker { left: 58.5%; bottom: 3%; width: 13.4%; height: auto; mix-blend-mode: multiply; filter: brightness(1.12); z-index: 0; }
.key-visual .xmas-cracker-top { mix-blend-mode: normal; filter: none; z-index: 1; }   /* the solid part really lies in front */
@media (max-width: 700px) { .key-visual .xmas-cracker { left: auto; right: 2%; bottom: 2%; width: 27%; } }   /* the phone square is a tighter cut of the photo */
@media (prefers-reduced-motion: reduce) { .xmas-mistletoe, .cursor-orb.in-xmas .orb-shape { animation: none; } }

/* the Late Night card on its way from the band to its place (xmas.js → fly) */
.ln-fly .xmas-first { display: none; }
.ln-fly .hero-grid > .next-card { z-index: 6; transform-origin: 0 0; will-change: transform; }
.next-card.flying { cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); outline: 2px solid rgba(237, 232, 226, .28); }
.next-card.flying .note-arrow { display: none; }
.next-card.flying .next-count, .next-card.flying .actions { opacity: var(--ln-open, 0); pointer-events: none; }
.next-card.nag { animation: ln-nag .75s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ln-nag { 0%, 100% { rotate: 0deg; translate: 0 0; } 18% { rotate: -5deg; translate: -6px -8px; } 42% { rotate: 4deg; translate: 2px 0; } 64% { rotate: -2.5deg; translate: -2px -4px; } 82% { rotate: 1deg; } }
