/* ======================= Motion layer (loaded after styles.css) ======================= */
/* Sticky bar: shrinks + glows after scrolling; a light string fills in as you scroll the page */
.topbar { transition: padding .35s var(--ease), background .35s, box-shadow .35s; }
.topbar.scrolled { padding-top: 9px; padding-bottom: 9px; background: rgba(8, 7, 13, .9); box-shadow: 0 10px 40px -20px var(--a1); }
.scroll-string { position: absolute; left: 0; right: 0; bottom: -7px; height: 12px; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.scroll-string::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 1px; background: rgba(255,255,255,.12); }
.scroll-string i { width: 7px; height: 9px; border-radius: 50% 50% 46% 46%; background: #2a2533; transition: background .3s, box-shadow .3s, transform .3s; }
.scroll-string i.on { background: var(--c); box-shadow: 0 0 10px 2px var(--c); transform: translateY(1px); }
.nav { position: relative; }
.nav a { position: relative; transition: color .2s; }
.nav a.active { color: var(--text); }
.nav-ind { position: absolute; bottom: -8px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--a1)); box-shadow: 0 0 12px var(--a1); transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; }
.logo-bulbs i { animation: twinkle 2.4s infinite, bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }

/* Hero */
.hero-photo { transform: translate3d(0, var(--py, 0), 0) scale(1.08); will-change: transform; }
.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }
.string i { transform-origin: 50% -6px; animation: chase 2.4s linear infinite, swing 3.6s ease-in-out infinite; animation-delay: calc(var(--n) * -.12s), calc(var(--n) * -.23s); }
@keyframes swing { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(6deg); filter: blur(6px); animation: letter .7s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * 55ms); }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.hero h1 { animation: glowpulse 5s ease-in-out infinite 1.6s; }
@keyframes glowpulse { 50% { filter: drop-shadow(0 0 60px color-mix(in srgb, var(--a1) 70%, transparent)); } }
.hero-inner { animation: none; }
.hero-inner > *:not(h1) { opacity: 0; animation: fadeup .8s var(--ease) forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > .status { animation-delay: .1s; }
.hero-inner > .lede { animation-delay: .9s; }
.hero-inner > .hero-actions { animation-delay: 1.05s; }
.hero-inner > .hero-facts { animation-delay: 1.2s; }

/* Buttons: a light sweep and a breathing glow */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { animation: btnglow 3s ease-in-out infinite; }
@keyframes btnglow { 50% { box-shadow: 0 10px 40px -6px var(--a1); } }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--stagger, 0s); }
.reveal.in { opacity: 1; transform: none; }
h2.reveal { transform: translateY(40px) skewY(3deg); }
h2.reveal.in { transform: none; }

/* Season cards: spinning glow border + tilt */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.season.reveal.in, .season { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.season { transition: transform .25s var(--ease), box-shadow .3s, opacity .8s var(--ease); }
.season::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 60%, var(--t1) 75%, var(--t2) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite; opacity: .9; }
.season.halloween { --t1: var(--hw1); --t2: var(--hw2); }
.season.christmas { --t1: var(--xm1); --t2: var(--xm2); }
/* logo + hero bulbs follow the theme */
body[data-season="christmas"] .logo-bulbs i:nth-child(1) { background: var(--xm3); box-shadow: 0 0 10px var(--xm3); }
body[data-season="christmas"] .logo-bulbs i:nth-child(2) { background: var(--xm2); box-shadow: 0 0 10px var(--xm2); }
body[data-season="christmas"] .logo-bulbs i:nth-child(3) { background: var(--xm1); box-shadow: 0 0 10px var(--xm1); }
body[data-season="neutral"] .logo-bulbs i:nth-child(1) { background: #ffd58a; box-shadow: 0 0 10px #ffd58a; }
body[data-season="neutral"] .logo-bulbs i:nth-child(2) { background: #8fd8ff; box-shadow: 0 0 10px #8fd8ff; }
body[data-season="neutral"] .logo-bulbs i:nth-child(3) { background: #fff4e0; box-shadow: 0 0 10px #fff4e0; }
@keyframes spin { to { --spin: 360deg; } }
.season h3 { transition: letter-spacing .4s var(--ease); }
.season:hover h3 { letter-spacing: .04em; }
.season-tag { animation: tagpulse 2s ease-in-out infinite; }
@keyframes tagpulse { 50% { box-shadow: 0 0 18px #5fe3a1; } }

/* Song lists: equaliser bars + row hover */
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; margin-left: 12px; vertical-align: middle; }
.eq i { width: 4px; border-radius: 2px; background: currentColor; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.5s; } .eq i:nth-child(3) { animation-delay: -.8s; } .eq i:nth-child(4) { animation-delay: -.35s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 22px; } }
.song-list li { transition: transform .3s var(--ease), background .3s; border-radius: 10px; }
.song-list li:hover { transform: translateX(8px); background: rgba(255,255,255,.03); }

/* Stats, cards, gallery, tips, FAQ */
.stats li, .bts .card { transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, opacity .8s var(--ease); }
.stats li:hover, .bts .card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--a1) 50%, transparent); box-shadow: 0 24px 50px -30px var(--a1); }
.bts .card:hover h3 svg { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(10deg); } }
.gallery img { transition: transform 1.2s var(--ease); }
.gallery figure:first-child img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.1) translate(-2%, -1%); } }
.tag-strip { background-size: 200% 100%; animation: slide 8s linear infinite; }
@keyframes slide { to { background-position: 200% 0; } }
.tips li::before { animation: twinkle 2s infinite; animation-delay: calc(var(--d, 0) * -.4s); }
.faq details { transition: border-color .3s, background .3s, opacity .8s var(--ease), transform .8s var(--ease); }
.faq details[open] { border-color: color-mix(in srgb, var(--a1) 45%, transparent); background: var(--panel-2); }
.faq details[open] p { animation: rise .45s var(--ease); }
.map { transition: box-shadow .4s, opacity .8s var(--ease), transform .8s var(--ease); }
.map:hover { box-shadow: 0 30px 70px -35px var(--a1); }
.footer-ig img { transition: transform .4s var(--ease); }
.footer-ig:hover img { transform: rotate(-4deg) scale(1.06); }

@media (max-width: 900px) { .scroll-string { padding: 0 6px; } .scroll-string i { width: 5px; height: 7px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 .ch, .hero-inner > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .embers { display: none; }
}
@media (max-width: 520px) { .season-tag { position: static; display: none; width: max-content; margin-bottom: 12px; } .season.now .season-tag { display: block; } }
/* Safety net: if a browser never runs the intro animation, show the hero text anyway. */
.hero.settled .ch, .hero.settled .hero-inner > * { opacity: 1 !important; transform: none !important; filter: none !important; }
/* Each letter carries its own copy of the title gradient (a parent's gradient text can't paint animated children). */
.hero h1 .ch { background: linear-gradient(180deg, #fff 10%, var(--gold) 55%, var(--a1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span:not(.ch) .ch { font-size: inherit; }
.hero h1.split { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.hero h1 .ch { filter: none !important; animation-name: letter2; }
@keyframes letter2 { from { opacity: 0; transform: translateY(.4em) rotate(6deg); } to { opacity: 1; transform: none; } }
.hero h1 .ch { font-size: inherit; vertical-align: baseline; }
.hero h1 .word { display: inline-block; white-space: nowrap; font-size: inherit; }

/* ======================= Phone tab bar, menu, background particles ======================= */
.bg-particles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .5; }
.topbar { z-index: 20; }
main, .footer { position: relative; z-index: 1; }
.tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(8, 7, 13, .86); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); text-decoration: none; font: 700 11px/1.1 var(--ui); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 23px; height: 23px; transition: transform .25s var(--ease), color .25s, filter .25s; }
  .tabbar .active { color: var(--text); }
  .tabbar .active svg { color: var(--a1); transform: translateY(-2px); filter: drop-shadow(0 0 6px var(--a1)); }
  .footer { padding-bottom: 30px; }
}
.menu-sheet { position: fixed; inset: 0; z-index: 40; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 8, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.menu-panel { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: var(--panel); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .35s var(--ease); max-height: 85vh; overflow-y: auto; }
.menu-sheet.open .menu-backdrop { opacity: 1; }
.menu-sheet.open .menu-panel { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.menu-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); display: grid; place-items: center; }
.menu-panel a { display: block; padding: 14px 6px; color: var(--text); text-decoration: none; font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.menu-panel a:active { color: var(--a1); }
.menu-panel .menu-ig { display: flex; align-items: center; gap: 10px; font: 800 17px/1 var(--ui); text-transform: none; color: var(--gold); border: 0; padding-top: 18px; }

