/* Per-show theming and scroll-driven set pieces for the preview page.
   Motion uses CSS scroll timelines (animation-timeline: view()), so it only
   runs while the page scrolls; browsers without support show the finished
   layout and hide the decoration layers. Loaded after style.css. */

main{max-width:none}
.intro,.archive-search{max-width:1160px;margin-inline:auto}
.show{margin:0;padding:0 36px 72px;position:relative;overflow:clip;--ink:#fff;--font:Arial,Helvetica,sans-serif}
.show>*{max-width:1088px;margin-inline:auto;position:relative;z-index:1}
.show:before,.show:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;max-width:none;margin:0}
.show .year,.recordings-heading,.performance-heading h4{font-family:var(--font)}
.show .year{font-size:15px}
.recordings-heading{font-size:22px;margin-bottom:16px}
.performance-heading h4{font-size:20px;font-weight:400}
/* Dark cards keep text readable over the themed backgrounds and effects. */
.show .title{left:16px;right:92px;bottom:16px;padding:14px 18px 16px;background:#000000b8}
.show .year{top:16px;left:16px;padding:8px 12px;background:#000000b8}
.performance{background:#0000008c;padding:16px 18px}
.recordings-heading{display:inline-block;padding:10px 18px;background:#0000008c}
/* overflow:clip, not hidden: hidden makes a scroll container and view() timelines would attach to it. */
.picture{overflow:clip}

/* Sticky show tag that rides along the top of each section. */
.pin{position:sticky;top:0;z-index:6;display:flex;justify-content:space-between;align-items:center;padding:12px 0;margin-bottom:26px;font-size:12px;letter-spacing:3px;color:var(--accent);background:var(--pin-bg,#000);border-bottom:1px solid var(--accent)}
.pin span:last-child{font-family:var(--font);font-size:20px;letter-spacing:1px}

/* Nav tracks the show on screen. */
.intro nav a{transition:color .2s,border-color .2s}
.intro nav a.current{color:var(--nav,#fff);border-color:var(--nav,#fff);border-bottom-width:3px}
.intro nav a[href="#beetlejuice"]{--nav:#b4f175}.intro nav a[href="#off-with-their-heads"]{--nav:#f1cf7a}.intro nav a[href="#bionic"]{--nav:#86e9ff}.intro nav a[href="#hocus-pocus"]{--nav:#e9c5ff}

.actions{border-bottom:0;gap:20px;padding:22px 0 0}
.actions>button,.actions>a{min-height:0;padding:14px 22px}
.actions>button{border:2px solid var(--accent)}
.actions>a{border:1px solid #ffffff40}
.take-links button{color:var(--accent)}
dialog[data-show=beetlejuice]{border-color:#b4f175}dialog[data-show=off-with-their-heads]{border-color:#dc385c}dialog[data-show=bionic]{border-color:#86e9ff}dialog[data-show=hocus-pocus]{border-color:#ba85e5}

/* Decoration layers. Section layers sit above the content so beetles and
   swords cross the text; hero layers stay inside the picture. */
.fx{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:clip;max-width:none;margin:0}
.picture .fx{z-index:1}
.veil{position:absolute;inset:0;z-index:2;max-width:none;margin:0;display:grid;grid-auto-rows:1fr;pointer-events:none}
.veil div{background:#000}
.circuit,.wand{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;z-index:0;pointer-events:none}
@supports not (animation-timeline: view()){.fx,.veil,.circuit,.wand,.crown{display:none}}
@media(prefers-reduced-motion:reduce){.fx,.veil,.circuit,.wand,.crown{display:none}}

/* ---------- 2023 Beetlejuice: striped suit, acid green, Creepster ---------- */
.beetlejuice{--font:Creepster;--pin-bg:#000;padding-top:0}
.beetlejuice:before{background:repeating-linear-gradient(-30deg,#000 0 46px,#1a1a1a 46px 92px)}
.beetlejuice .pin,.beetlejuice .recordings-heading,.beetlejuice .performance-heading h4{letter-spacing:2px}
.beetlejuice .title h2{letter-spacing:3px}
.beetlejuice .actions>button,.beetlejuice .take-links button{font-family:Creepster;font-size:19px;letter-spacing:2px;text-transform:uppercase}
.beetlejuice .actions>button{transform:skewX(-6deg);background:#000;box-shadow:5px 5px 0 #b4f175}
.beetlejuice .actions>button:hover{text-decoration:none;background:#b4f175;color:#000}
.beetlejuice .actions>a{border:2px solid #fff;transform:skewX(-6deg)}
.beetlejuice .play{border-radius:0;border:2px solid #b4f175;transform:rotate(-6deg)}
.beetlejuice .performance{border-bottom:3px solid transparent;border-image:repeating-linear-gradient(90deg,#fff 0 10px,#000 10px 20px) 1}
.beetlejuice .stripe{height:14px;margin:0 0 30px;background:repeating-linear-gradient(90deg,#fff 0 24px,#000 24px 48px);width:200%;max-width:none;margin-left:-50%}
.beetle{position:absolute;left:var(--x);top:var(--y);width:calc(44px*var(--s)*var(--m,1));height:calc(62px*var(--s)*var(--m,1));transform:rotate(var(--a));filter:drop-shadow(0 3px 3px #000c);overflow:visible}
.beetle .legs{transform-origin:30px 44px}
.beetle .legs.right{transform:scaleX(-1);transform-origin:30px 44px}

/* ---------- 2024 Off with Their Heads: a king's rise and betrayal ---------- */
.heads{--font:Pirata;--pin-bg:#120004;--accent:#f1cf7a}
.heads:before{background:radial-gradient(ellipse 70% 60% at 0% 40%,#3a000c,transparent 70%),radial-gradient(ellipse 50% 50% at 100% 100%,#1c0006,transparent 70%),#000}
.heads:after{content:'♛';font-family:Pirata;font-size:min(70vw,900px);line-height:1;color:#dc385c;opacity:.05;left:auto;right:-6%;top:12%;bottom:auto}
.heads .title h2{color:#fff;text-shadow:3px 3px 0 #dc385c;position:relative}
/* The blade (z 1) passes behind the crown and the top line, and in front of the bottom line.
   The title drops its own stacking context so its halves can sit on either side of the blade. */
.heads .title{z-index:auto}
.heads .title h2 .top{display:block;position:relative;z-index:2;clip-path:inset(0 0 52% 0)}
.heads .title h2 .bottom{position:absolute;inset:0;z-index:1;clip-path:inset(48% 0 0 0)}
.heads .title p{position:relative;z-index:1}
.heads .year:after{content:'♛';font-size:26px;letter-spacing:0;color:#f1cf7a;margin-top:4px}
.heads .actions>button{background:#dc385c;color:#000;border-color:#dc385c;font-family:Pirata;font-size:21px}
.heads .actions>button:hover{text-decoration:none;background:#ffc6d7}
.heads .take-links button{font-family:Pirata;font-size:17px}
.heads .actions>a{border-color:#f1cf7a80}
.heads .play{border:2px solid #dc385c;background:#1a0008}
.heads .performance{border-bottom:1px solid #5a1020;padding-left:24px;position:relative}
.heads .performance:before{content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:#dc385c;transform-origin:top}
.heads .performance:nth-child(even) .performance-heading>span:after{content:' ⚔';color:#f1cf7a}
.heads .performance:nth-child(odd) .performance-heading>span:after{content:' ♛';color:#f1cf7a}
/* The symbol points left (tip at x=0). Swords from the left are turned 180 so the tip leads. */
.sword{position:absolute;left:var(--x);top:var(--y);width:260px;height:30px;filter:drop-shadow(0 3px 5px #000);transform:rotate(calc(180deg + var(--tilt))) translateX(900px);opacity:0;overflow:visible}
.sword.from-right{transform:rotate(var(--tilt)) translateX(900px)}
.crown{position:absolute;z-index:2;width:76px;height:57px;left:4px;top:-50px;transform-origin:85% 95%;filter:drop-shadow(0 3px 6px #000);overflow:visible}
.blade{transform:translateY(-100%)}
.blade svg{position:absolute;left:0;right:0;bottom:0;width:100%;height:46px;fill:#c9ccd1;filter:drop-shadow(0 3px 0 #dc385c)}

/* ---------- 2025 BIONIC: circuit grid, cyan, Orbitron ---------- */
.bionic{--font:Orbitron;--pin-bg:#000a14;--accent:#86e9ff}
.bionic:before{background:linear-gradient(#86e9ff12 1px,transparent 1px) 0 0/100% 48px,linear-gradient(90deg,#86e9ff12 1px,transparent 1px) 0 0/48px 100%,radial-gradient(ellipse 60% 40% at 50% 0%,#07263a,transparent 70%),#000}
.bionic .pin span:last-child{font-weight:800;letter-spacing:4px;font-size:16px}
.bionic .recordings-heading,.bionic .performance-heading h4{font-weight:600;letter-spacing:1px;font-size:16px}
.bionic .performance-heading>span,.bionic .take-angle,.bionic .take-duration{font-family:Orbitron;font-size:11px;letter-spacing:1px}
.bionic .title h2 span{display:inline-block}
.bionic .actions>button,.bionic .actions>a,.bionic .play{border-radius:0;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px)}
.bionic .actions>button{background:#86e9ff14;font-family:Orbitron;font-weight:600;font-size:12px;letter-spacing:2px;text-transform:uppercase;border:1px solid #86e9ff}
.bionic .actions>button:hover{text-decoration:none;background:#86e9ff;color:#000}
.bionic .take-links button{font-family:Orbitron;font-size:11px;letter-spacing:1.5px;text-transform:uppercase}
.bionic .play{border:1px solid #86e9ff;background:#001520}
.bionic .performance{border-bottom:1px solid #86e9ff30}
.bionic .take-thumbnail{outline:1px solid #86e9ff50;outline-offset:2px}
.circuit path{fill:none;stroke:#86e9ff;stroke-width:1.5;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:.6}
.circuit circle{fill:#86e9ff;opacity:0;filter:drop-shadow(0 0 6px #86e9ff)}
.scan{transform:translateY(-100%)}
.scan:after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#dffaff;box-shadow:0 0 18px 5px #86e9ff}
.scan:before{content:'';position:absolute;left:0;right:0;top:100%;height:100%;background:#001520e6;background-image:linear-gradient(#86e9ff10 1px,transparent 1px);background-size:100% 6px}

/* ---------- 2026 Hocus Pocus: fog, candlelight, Almendra ---------- */
.hocus{--font:Almendra;--pin-bg:#0d0314;--accent:#e9c5ff}
.hocus:before{background:radial-gradient(ellipse 50% 40% at 20% 20%,#2a1040,transparent 70%),radial-gradient(ellipse 40% 30% at 80% 70%,#2b1500,transparent 70%),#06020a}
.hocus .fog{position:absolute;inset:auto -40% 0;height:60%;z-index:0;max-width:none;margin:0;background:radial-gradient(ellipse 30% 50% at 30% 100%,#ba85e538,transparent 70%),radial-gradient(ellipse 25% 40% at 70% 90%,#f2a54a24,transparent 70%);pointer-events:none}
.hocus .pin span:last-child{font-size:24px}
.hocus .recordings-heading{font-size:26px;-webkit-text-stroke:.4px currentColor}
.hocus .performance-heading h4{font-size:24px;-webkit-text-stroke:.4px #fff}
.hocus .title h2{-webkit-text-stroke:0;text-shadow:0 0 30px #ba85e5,0 2px 14px #000}
.hocus .actions>button,.hocus .actions>a,.hocus .take-links button{border-radius:999px}
.hocus .actions>button{font-family:Almendra;font-size:19px;background:#1a0f26;border-color:#ba85e5}
.hocus .actions>button:hover{text-decoration:none;background:#ba85e5;color:#000}
.hocus .actions>a{border-color:#f2a54a80;color:#ffd9a3}
.hocus .take-links button{font-family:Almendra;font-size:19px;padding:10px 0;-webkit-text-stroke:.4px currentColor}
.hocus .play{border:1px solid #e9c5ff;background:#1a0f26;box-shadow:0 0 24px #ba85e580}
.hocus .performance{border-bottom:1px solid #3a2050}
.hocus .performance-heading>span{color:#ffd9a3}
.hocus .picture{background:radial-gradient(ellipse at 50% 55%,#2a1040,#06020a 70%)}
.spark{position:absolute;transform:translate(-50%,-50%) scale(.01);opacity:0;overflow:visible;will-change:transform,opacity}
.wand .trail{fill:none;stroke:#e9c5ff;stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:1;opacity:.55}
.wand use{opacity:0;transform-box:fill-box;transform-origin:center}

/* ---------- Scroll-driven motion ---------- */
@supports (animation-timeline: view()){
  .show .title h2{animation:title-in linear both;animation-timeline:view();animation-range:entry 20% entry 90%}
  .beetlejuice .title h2{animation-name:neon}
  /* An animated h2 would become one stacking context; animate the halves so the blade can pass between them. */
  .heads .title h2{animation:none}
  .heads .title h2 .bottom{animation:title-fade linear both;animation-timeline:view();animation-range:entry 20% entry 90%}
  .hocus .title h2{animation-name:title-glow}
  .bionic .title h2 span{animation:letter-in linear both;animation-timeline:view();animation-range:entry calc(15% + var(--i)*8%) entry calc(45% + var(--i)*8%)}
  .beetlejuice .stripe{animation:stripe-slide linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  .heads .performance{animation:card-fan linear both;animation-timeline:view();animation-range:entry calc(10% + 80px) entry calc(80% + 80px)}
  .heads .performance:before{animation:guillotine linear both;animation-timeline:view();animation-range:entry calc(20% + 80px) entry calc(100% + 80px)}
  .bionic .performance{animation:scanline linear both;animation-timeline:view();animation-range:entry calc(10% + 80px) entry calc(80% + 80px)}
  .hocus .performance{animation:candle linear both;animation-timeline:view();animation-range:entry calc(10% + 80px) entry calc(80% + 80px)}
  .hocus .fog{animation:fog-drift linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  .heads:after{animation:spade-turn linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  .take-thumbnail img{animation:parallax linear both;animation-timeline:view();animation-range:entry 0% exit 100%}

  /* Beetlejuice: each veil band lifts and each beetle scurries off as it reaches mid-screen. */
  .veil div{animation:veil-lift linear both;animation-timeline:view();animation-range:cover 6% cover 34%}
  .beetle{animation:crawl linear both;animation-timeline:view();animation-range:cover calc(8% + var(--d)*1%) cover calc(34% + var(--d)*1%)}
  .beetle .legs{animation:scurry 1s steps(2,jump-none) 22 both;animation-timeline:view();animation-range:cover calc(8% + var(--d)*1%) cover calc(34% + var(--d)*1%)}
  .beetle .legs.right{animation-name:scurry-right}
  /* Off with Their Heads */
  .sword{animation:strike linear both;animation-timeline:view();animation-range:cover calc(28% + var(--d)*1%) cover calc(40% + var(--d)*1%)}
  .sword.from-right{animation-name:strike-right}
  .blade{animation:drop linear both;animation-timeline:view();animation-range:cover 36% cover 56%}
  .heads .title h2 .top{animation:title-fade linear both,behead linear both;animation-timeline:view(),view();animation-range:entry 20% entry 90%,cover 54% cover 64%}
  .crown{animation:topple linear both;animation-timeline:view();animation-range:cover 56% cover 68%}
  /* BIONIC */
  .circuit path{animation:draw linear both;animation-timeline:view();animation-range:cover calc(var(--s)*1%) cover calc(var(--e)*1%)}
  .circuit circle{animation:node linear both;animation-timeline:view();animation-range:cover calc(var(--e)*1%) cover calc(var(--e)*1% + 60px)}
  .scan{animation:drop linear both;animation-timeline:view();animation-range:cover 15% cover 50%}
  /* Hocus Pocus */
  .hocus .picture>img{animation:unveil linear both;animation-timeline:view();animation-range:cover 18% cover 48%}
  .spark{animation:burst linear both;animation-timeline:view();animation-range:cover calc(12% + var(--d)*1%) cover calc(34% + var(--d)*1%)}
  .spark.hero{animation-range:cover calc(18% + var(--d)*1%) cover calc(44% + var(--d)*1%)}
  .wand .trail{animation:draw linear both;animation-timeline:view();animation-range:cover calc(var(--s)*1%) cover calc(var(--e)*1%)}
  .wand use{animation:twinkle linear both;animation-timeline:view();animation-range:cover calc(var(--s)*1%) cover calc(var(--e)*1%)}
}
@keyframes title-in{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@keyframes title-fade{from{opacity:0}to{opacity:1}}
@keyframes title-drop{from{opacity:0;transform:translateY(-60px)}60%{opacity:1;transform:translateY(8px)}to{transform:none}}
@keyframes title-glow{from{opacity:0;filter:blur(6px)}to{opacity:1;filter:none}}
@keyframes neon{0%{opacity:0;transform:rotate(-7deg) translateY(50px)}30%{opacity:1;transform:none;text-shadow:0 0 18px #b4f175,0 0 48px #b4f175,0 2px 14px #000}34%{opacity:.25;text-shadow:none}38%{opacity:1;text-shadow:0 0 18px #b4f175,0 0 48px #b4f175,0 2px 14px #000}42%{opacity:.4;text-shadow:none}46%,100%{opacity:1;transform:none;text-shadow:0 0 18px #b4f175,0 0 48px #b4f175,0 2px 14px #000}}
@keyframes letter-in{from{opacity:0;transform:translateY(.4em) scaleY(.4)}to{opacity:1;transform:none}}
@keyframes stripe-slide{from{transform:translateX(-120px)}to{transform:translateX(120px)}}
@keyframes card-fan{from{opacity:0;transform:translateX(-40px) rotate(-3deg)}to{opacity:1;transform:none}}
@keyframes guillotine{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes scanline{from{clip-path:inset(0 100% 0 0);opacity:.2}to{clip-path:inset(0 0 0 0);opacity:1}}
@keyframes candle{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes fog-drift{from{transform:translateX(-12%)}to{transform:translateX(12%)}}
@keyframes spade-turn{from{transform:rotate(-14deg) translateY(10%)}to{transform:rotate(14deg) translateY(-10%)}}
@keyframes parallax{from{transform:translateY(8%) scale(1.15)}to{transform:translateY(-8%) scale(1.15)}}
@keyframes veil-lift{from{opacity:.82}to{opacity:0}}
@keyframes crawl{from{transform:rotate(var(--a)) translateY(0)}to{transform:rotate(var(--a)) translateY(-1600px)}}
@keyframes scurry{from{transform:rotate(-10deg)}to{transform:rotate(10deg)}}
@keyframes scurry-right{from{transform:scaleX(-1) rotate(10deg)}to{transform:scaleX(-1) rotate(-10deg)}}
@keyframes strike{0%{opacity:0;transform:rotate(calc(180deg + var(--tilt))) translateX(900px)}5%{opacity:1}85%{transform:rotate(calc(180deg + var(--tilt))) translateX(-14px)}100%{opacity:1;transform:rotate(calc(180deg + var(--tilt))) translateX(0)}}
@keyframes strike-right{0%{opacity:0;transform:rotate(var(--tilt)) translateX(900px)}5%{opacity:1}85%{transform:rotate(var(--tilt)) translateX(-14px)}100%{opacity:1;transform:rotate(var(--tilt)) translateX(0)}}
@keyframes drop{from{transform:translateY(-100%)}to{transform:translateY(0)}}
@keyframes behead{from{transform:none}60%{transform:translate(14px,-4px) rotate(2.5deg)}to{transform:translate(28px,8px) rotate(4deg)}}
@keyframes topple{from{transform:none}40%{transform:rotate(28deg) translate(10px,-6px)}to{transform:rotate(110deg) translate(60px,120px);opacity:0}}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes node{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
@keyframes unveil{from{clip-path:circle(0% at 50% 55%)}to{clip-path:circle(85% at 50% 55%)}}
@keyframes burst{0%{transform:translate(-50%,-50%) rotate(var(--a)) translateX(0) scale(.01);opacity:0}25%{opacity:1;transform:translate(-50%,-50%) rotate(var(--a)) translateX(calc(var(--r)*.3)) rotate(calc(var(--spin)*.3)) scale(1.2)}100%{transform:translate(-50%,-50%) rotate(var(--a)) translateX(var(--r)) rotate(var(--spin)) scale(.4);opacity:0}}
@keyframes twinkle{0%{opacity:0;transform:scale(0) rotate(0)}50%{opacity:1;transform:scale(1.3) rotate(45deg)}100%{opacity:.7;transform:scale(1) rotate(90deg)}}
@media(prefers-reduced-motion:reduce){.show *,.show:after{animation:none!important}}

@media(max-width:600px){
  .show{padding:0 20px 44px}
  .show .title{left:10px;right:64px;bottom:10px;padding:10px 12px 12px}
  .show .year{top:10px;left:10px;padding:6px 9px}
  .performance{padding:14px 12px}
  .recordings-heading{padding:8px 12px}
  .pin{padding:10px 0;margin-bottom:18px;font-size:10px;letter-spacing:2px}
  .pin span:last-child{font-size:16px}
  .hocus .pin span:last-child{font-size:19px}
  .actions{flex-wrap:wrap;gap:10px;padding-top:16px}
  .actions>button,.actions>a{padding:12px 16px}
  .actions>a{max-width:none}
  .heads:after{font-size:120vw;right:-30%;top:30%}
  .beetlejuice .stripe{height:10px;margin-bottom:20px}
  .recordings-heading{font-size:18px}
  .performance-heading h4{font-size:17px}
  .beetle{--m:1.05}
  .sword{width:170px;height:20px}
  .crown{width:52px;height:39px;top:-34px}
  .blade svg{height:30px}
}
