/* ALL GUD FILMS : motion layer (2026-11-25)
   Loaded after style.css and offer.css. Everything here is decoration:
   with scripts off or reduced motion on, the pages read exactly as before. */

/* ---------- Page changes: the same wipe up as the homepage reel ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: page-wipe var(--wipe) var(--ease) both;
}
@keyframes page-wipe {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Pricing headline: rack focus ---------- */
.rack .line { display: block; }
.js .rack .line { opacity: 0; animation: show 0s 3s forwards; }
@keyframes show { to { opacity: 1; transform: none; } }
.js .rack.run .line:first-child { animation: rack-a 2.1s cubic-bezier(.22, .61, .36, 1) both; }
.js .rack.run .line:last-child { animation: rack-b 2.1s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes rack-a {
  0%   { opacity: .2; filter: blur(16px); letter-spacing: .03em; transform: scale(1.04); }
  42%  { opacity: 1;  filter: blur(0);    letter-spacing: -.03em; transform: none; }
  62%  { opacity: .5; filter: blur(3px); }
  100% { opacity: 1;  filter: blur(0);    letter-spacing: -.03em; transform: none; }
}
@keyframes rack-b {
  0%, 38% { opacity: .2; filter: blur(16px); letter-spacing: .03em; transform: scale(1.04); }
  84%, 100% { opacity: 1; filter: blur(0); letter-spacing: -.03em; transform: none; }
}
.rack .line { transform-origin: 0 60%; }

/* ---------- About: name reveal ---------- */
.name-reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.name-reveal .c { display: inline-block; }
.js .name-reveal .c { transform: translateY(105%); animation: show 0s 3s forwards; }
.js .name-reveal.run .c {
  animation: rise 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}
@keyframes rise {
  from { transform: translateY(105%); font-variation-settings: "wdth" 100; }
  to   { transform: none; font-variation-settings: "wdth" 62.5; }
}

/* ---------- About: key phrases fill in as you scroll ---------- */
.js .about .bio p { color: rgba(241, 237, 229, .55); }
.js .about .bio .inline-link { color: var(--fg); }
.js .hl {
  --p: 0%;
  color: transparent;
  background-image: linear-gradient(90deg, var(--fg) var(--p), rgba(241, 237, 229, .55) var(--p));
  -webkit-background-clip: text;
          background-clip: text;
}

/* ---------- Desktop cursor with a ripple on click ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.sheet-open.has-cursor, .sheet-open.has-cursor * { cursor: auto !important; }
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 9999;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #f1ede5;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s, width .25s, height .25s, margin .25s;
}
.cursor.on { opacity: 1; }
.cursor.down { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.sheet-open .cursor { opacity: 0; }
.ripple {
  position: fixed;
  z-index: 9998;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border: 1px solid #f1ede5;
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  animation: ripple .75s cubic-bezier(.2, .7, .3, 1) forwards;
}
.ripple.second { animation-delay: .12s; opacity: 0; }
@keyframes ripple {
  0%   { transform: scale(.1); opacity: .9; }
  100% { transform: scale(1);  opacity: 0; }
}

/* ---------- Work: clips over the stills ---------- */
.film-media[data-clip] video { opacity: 0; transition: opacity .45s; }
.film-media.is-live video { opacity: 1; }

/* ---------- Opening a film from Work ---------- */
.work-list li { transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; }
.opening .work-list li:not(.chosen) {
  opacity: 0;
  transform: translateY(28px) scale(.97);
  filter: blur(6px);
}
.opening .work-list li:not(.chosen):nth-child(odd) { transition-delay: .05s; }
.opening .work-list li.chosen .film-media { visibility: hidden; }
.fly {
  position: fixed;
  z-index: 60;
  left: 0; top: 0;
  object-fit: cover;
  background: #000;
  pointer-events: none;
  transform-origin: 0 0;
}
.player.open { animation: player-in .35s ease both; }
@keyframes player-in { from { opacity: 0; } }

/* ---------- FAQ answers glide open ---------- */
.faq details { overflow: hidden; }

/* ---------- Reduced motion: no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .rack .line, .js .name-reveal .c { opacity: 1; transform: none; animation: none !important; }
  .js .hl { --p: 100%; }
  .ripple { display: none; }
  .work-list li { transition: none; }
}
