/* ARABISCA motion layer: subtle, premium movement shared by every public page.
   Respects "reduce motion" system settings and the homepage "Pause motion" control. */

/* 1. Page transitions: a soft cross-fade between pages (supported browsers only). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: arb-page-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: arb-page-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.public-nav { view-transition-name: arb-nav; }
::view-transition-group(arb-nav) { animation: none; }
@keyframes arb-page-out { to { opacity: 0; } }
@keyframes arb-page-in { from { opacity: 0; translate: 0 12px; } }

/* 2. Reveal on scroll: content glides in as it enters the screen. */
html.arb-motion [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity .9s cubic-bezier(.2, .8, .2, 1) var(--arb-delay, 0ms),
    translate .9s cubic-bezier(.2, .8, .2, 1) var(--arb-delay, 0ms);
}
html.arb-motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
/* Some pages force older .reveal elements visible; let the motion layer animate them once. */
html.arb-motion .reveal[data-reveal]:not(.is-in) { opacity: 0 !important; }
html.arb-motion .reveal[data-reveal].is-in { opacity: 1 !important; }

/* 3. Hover: cards lift, borders warm up, buttons respond (mouse and trackpad only). */
.public-nav nav a, .simple-footer a { transition: color .25s ease, border-color .25s ease; }
.simple-footer a:hover { color: #f3f1ea; }

@media (hover: hover) and (pointer: fine) {
  .service, .roster-grid > li, .principle, .about-founder, .faq details, .contact-offices, .contact-next {
    transition: translate .45s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, background-color .35s ease;
  }
  html.arb-motion .service.is-in:hover, html .service:hover,
  html .roster-grid > li:hover, html .about-founder:hover { translate: 0 -5px; }

  .service .service-info h3, .principle h3, .principle h2 { transition: color .3s ease; }
  .service:hover .service-info h3 { color: #ff3b1d; }
  .service .arrow { display: inline-block; transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
  .service:hover .arrow { translate: 4px -4px; }

  .principle { transition: translate .4s cubic-bezier(.2, .8, .2, 1); }
  .principle .number { display: inline-block; transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
  .principle:hover .number { translate: 6px 0; }
  .principle:hover h3, .principle:hover h2 { color: #ff3b1d; }

  .platform-grid li { transition: background-color .3s ease; }
  .platform-grid li:hover { background-color: #19191d; }
  .platform-grid .platform-name, .platform-grid h3 { transition: color .3s ease, translate .35s cubic-bezier(.2, .8, .2, 1); }
  .platform-grid li:hover .platform-name, .platform-grid li:hover h3 { color: #ff3b1d; translate: 3px 0; }

  .roster-grid > li .artist-avatar { transition: scale .4s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
  .roster-grid > li:hover .artist-avatar { scale: 1.08; }
  .roster-grid > li:hover .artist-name { color: #ff3b1d; }
  .artist-name { transition: color .3s ease; }

  .faq details summary { transition: color .25s ease, padding-left .35s cubic-bezier(.2, .8, .2, 1); }
  .faq details summary:hover { color: #ff3b1d; padding-left: 6px; }

  .action, .move-options button, .service-filters button, .platform-filters button,
  .journey-tabs button, .contact-page button[type=submit], #film-toggle, .motion-control {
    transition: translate .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  }
  .action:hover, .move-options button:hover, .service-filters button:hover, .platform-filters button:hover,
  .contact-page button[type=submit]:hover, #film-toggle:hover {
    translate: 0 -2px;
    box-shadow: 0 10px 28px -12px rgba(255, 59, 29, .55);
  }
}

/* 4. Moving banner (homepage): a slow strip of the platforms ARABISCA delivers to. */
.arb-marquee {
  display: block;
  overflow: hidden;
  border-top: 1px solid #ffffff26;
  background: #08080a;
  padding: 22px 0;
  text-decoration: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.arb-marquee-track {
  display: flex;
  width: max-content;
  animation: arb-marquee 70s linear infinite;
}
.arb-marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.arb-marquee-group span {
  font: 400 clamp(22px, 2.4vw, 34px)/1 Anton, Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #f3f1ea;
  opacity: .32;
  white-space: nowrap;
  transition: opacity .35s ease, color .35s ease;
}
.arb-marquee i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 28px;
  border-radius: 50%;
  background: #ff3b1d;
  flex-shrink: 0;
}
.arb-marquee:hover .arb-marquee-track { animation-play-state: paused; }
.arb-marquee:hover .arb-marquee-group span { opacity: .75; }
.arb-marquee:focus-visible { outline: 2px solid #ff3b1d; outline-offset: -4px; }
.arb-marquee-label {
  display: block;
  text-align: center;
  font: 500 10px/1 Onest, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a09f99;
  margin-top: 16px;
}
.arb-marquee:hover .arb-marquee-label { color: #ff3b1d; }
@keyframes arb-marquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .arb-marquee { padding: 16px 0; }
  .arb-marquee i { margin: 0 18px; width: 6px; height: 6px; }
}
html.arb-paused .arb-marquee-track { animation-play-state: paused; }

/* Respect visitors who prefer less movement. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.arb-motion [data-reveal] { opacity: 1; translate: none; transition: none; }
  .arb-marquee-track { animation: none; }
  .service, .roster-grid > li, .about-founder, .action, .move-options button { translate: none !important; }
}
