/* CIFF motion layer — only active when JS adds html.motion and the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Hero: slow cinematic zoom + staggered entrance */
  html.motion .hero { overflow: hidden; }
  html.motion .hero > img { animation: ciffKenBurns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; will-change: transform; }
  @keyframes ciffKenBurns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }

  html.motion .hero .eyebrow,
  html.motion .hero .lead,
  html.motion .hero .row,
  html.motion .hero .stats > div,
  html.motion .hero .countdown { opacity: 0; animation: ciffUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
  html.motion .hero .eyebrow { animation-delay: .15s; }
  html.motion .hero .lead { animation-delay: .95s; }
  html.motion .hero .row { animation-delay: 1.15s; }
  html.motion .hero .countdown { animation-delay: 1.3s; }
  html.motion .hero .stats > div:nth-child(1) { animation-delay: 1.4s; }
  html.motion .hero .stats > div:nth-child(2) { animation-delay: 1.5s; }
  html.motion .hero .stats > div:nth-child(3) { animation-delay: 1.6s; }
  html.motion .hero .stats > div:nth-child(4) { animation-delay: 1.7s; }
  html.motion .hero .stats > div:nth-child(5) { animation-delay: 1.8s; }

  /* headline words rise one by one */
  html.motion .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em); animation: ciffUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes ciffUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

  /* 2. Scroll reveal for sections, cards, photos */
  html.motion .rv { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  html.motion .rv.rv-zoom { transform: scale(.94); }
  html.motion .rv.in { opacity: 1; transform: none; }

  /* 3. Gold top bar shimmer */
  html.motion .passtop { background-size: 200% 100%; animation: ciffSlide 6s linear infinite; }
  @keyframes ciffSlide { from { background-position: 0% 0; } to { background-position: 200% 0; } }

  /* 4. Festival Pass box: glowing border + light sweep on the button */
  html.motion .passband { animation: ciffGlow 3.2s ease-in-out infinite; }
  @keyframes ciffGlow { 0%,100% { box-shadow: 0 0 0 6px rgba(233,180,76,.08), 0 0 0 rgba(233,180,76,0); } 50% { box-shadow: 0 0 0 6px rgba(233,180,76,.16), 0 0 42px rgba(233,180,76,.35); } }
  html.motion .passband .btn, html.motion .hero .btn { position: relative; overflow: hidden; }
  html.motion .passband .btn::after, html.motion .hero .btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: ciffSweep 3.6s ease-in-out infinite; }
  @keyframes ciffSweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }

  /* 5. Photos and posters respond to the mouse */
  html.motion .feature > img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  html.motion .feature:hover > img { transform: scale(1.05); }
  html.motion .people > div img, html.motion .pcard img, html.motion .posters img { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s, filter .5s; }
  html.motion .people > div:hover img { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.45); filter: saturate(1.15); }
  html.motion .posters a:hover img, html.motion .pcard:hover img { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 48px rgba(0,0,0,.5); }
}

/* Ticker band (static text if motion is reduced) */
.ciff-ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg3); padding: 18px 0; white-space: nowrap; }
.ciff-ticker .track { display: inline-flex; gap: 48px; padding-right: 48px; font-family: "Bebas Neue", Anton, Impact, sans-serif; font-size: 28px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.ciff-ticker .track span::after { content: "\2726"; color: var(--gold); margin-left: 48px; }
@media (prefers-reduced-motion: no-preference) {
  .ciff-ticker .track { animation: ciffTicker 38s linear infinite; }
  .ciff-ticker:hover .track { animation-play-state: paused; }
}
@keyframes ciffTicker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Countdown chip in the hero */
.countdown { display: table; clear: both; margin-top: 28px; padding: 10px 18px; border: 1px solid rgba(233,180,76,.55); border-radius: 999px; background: rgba(13,14,18,.55); backdrop-filter: blur(6px); font-size: 14px; color: var(--ink2); }
.countdown b { margin: 0 3px 0 8px; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 18px; }

/* Preview label */
.motion-label { position: fixed; left: 16px; bottom: 16px; z-index: 99; padding: 8px 14px; border-radius: 999px; background: #E9B44C; color: #14130F; font: 700 13px/1.2 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.4); }