/* Original motion treatments. Atmosphere from Monopo Saigon, restrained
   accents from Raycast, and cover-led composition from Desktop.fm. */
:root {
  --motion-ease: cubic-bezier(.2,.75,.26,1);
  --motion-edge: #8b9b5866;
}

.section-heading {
  position: relative;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.section-heading::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 0;
  width: min(7rem, 34%);
  height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent);
  transform-origin: left;
  pointer-events: none;
}

.press .section-heading { border-color: #a5a995; }
.press .section-heading::after { background: linear-gradient(90deg,#527000,transparent); }
.press-grid { border-top: 0; }
.feature { outline: 1px solid var(--motion-edge); outline-offset: -1px; }
.track { position: relative; }
.track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#b8e63a16,transparent 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.track:focus-within::before, .track:hover::before { opacity: 1; }
.track-action { position: relative; }

.duo-photo { position: relative; isolation: isolate; }
.duo-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #fff8;
  pointer-events: none;
}
.live, .mix { overflow: hidden; }
.live-copy, .mix-copy { position: relative; }
.live > img, .mix > img, .feature > img { transition: transform .6s var(--motion-ease); }
.press-grid article:focus-within h3, .press-grid article:hover h3 { color: #415b0b; }

.booking { position: relative; isolation: isolate; overflow: hidden; }
.booking::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 25%;
  background: repeating-radial-gradient(ellipse at 95% 105%, transparent 0 21px, #a9ce4140 22px 23px, transparent 24px 41px);
  mask-image: linear-gradient(115deg,transparent 20%,#0009 70%);
  pointer-events: none;
}
.footer { box-shadow: inset 0 1px #a2ba4e3f; }
.footer-grid nav a { text-underline-offset: .3em; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature:hover > img, .live:hover > img, .mix:hover > img { transform: scale(1.045); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero.motion-enter .hero-copy { animation: arrive .72s var(--motion-ease) both; }
  .motion-enter .section-heading::after { animation: trace .9s var(--motion-ease) both; }
  #musica.motion-enter .feature, #sets.motion-enter .live { animation: arrive .64s var(--motion-ease) both; }
  #musica.motion-enter .track { animation: arrive .52s var(--motion-ease) both; }
  #musica.motion-enter .track:nth-of-type(2) { animation-delay: .07s; }
  #musica.motion-enter .track:nth-of-type(3) { animation-delay: .14s; }
  #musica.motion-enter .track:nth-of-type(4) { animation-delay: .21s; }
  .duo.motion-enter .duo-photo { animation: photo-arrive .82s var(--motion-ease) both; }
  .duo.motion-enter .duo-copy, #sets.motion-enter .mix { animation: arrive .72s .1s var(--motion-ease) both; }
  .press.motion-enter .press-grid article { animation: arrive .55s var(--motion-ease) both; }
  .press.motion-enter .press-grid article:nth-child(2) { animation-delay: .08s; }
  .press.motion-enter .press-grid article:nth-child(3) { animation-delay: .16s; }
  .booking.motion-enter::before { animation: rings-arrive 1.05s var(--motion-ease) both; }
  .booking.motion-enter .booking-grid, .footer.motion-enter .footer-grid { animation: arrive .65s var(--motion-ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  .track::before, .live > img, .mix > img, .feature > img { transition: none; }
}

@keyframes arrive {
  from { transform: translateY(.8rem); }
  to { transform: translateY(0); }
}
@keyframes trace {
  from { transform: scaleX(.08); }
  to { transform: scaleX(1); }
}
@keyframes photo-arrive {
  from { clip-path: inset(0 5% 0 0); transform: translateX(-.5rem); }
  to { clip-path: inset(0); transform: translateX(0); }
}
@keyframes rings-arrive {
  from { opacity: .25; transform: translate(2rem, 1rem); }
  to { opacity: 1; transform: translate(0); }
}
