/* Shared interaction fade for the public website. */
/* Suppress touch-browser tap boxes without removing keyboard focus outlines. */
:is(a[href], button, [role="button"], .work-item) {
  -webkit-tap-highlight-color: transparent;
}
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
body :is(a[href], button, .work-item) {
  transition: opacity 0.2s ease;
}
body .menu-toggle, body .back-btn {
  font-size: 28px;
}
body .menu-toggle {
  transition: transform 0.35s ease, opacity 0.2s ease;
}
@media (max-width: 768px) {
  body .menu-toggle, body .back-btn { font-size: 26px; }
}
.orb-img { transition: opacity 0.2s ease; }
@media (hover: hover) {
  body :is(a[href], button, .work-item):not(:disabled):hover { opacity: 0.65; }
  .orb-cluster:has(.orb-hit-top:hover) #img-top,
  .orb-cluster:has(.orb-hit-left:hover) #img-left,
  .orb-cluster:has(.orb-hit-right:hover) #img-right,
  .orb-cluster:has(.orb-hit-bottom:hover) #img-bottom { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(a[href], button, .work-item), body .menu-toggle, .orb-img { transition: none; }
}

/* Highlights and motion for compact symbol controls. */
body :is(.menu-toggle, .back-btn, .inquiry-close, .cinema-close) {
  display: inline-block;
  transform-origin: center;
  text-shadow: 0 -0.6px 0 rgba(255, 255, 255, 0.7),
               0 1px 1px rgba(35, 30, 22, 0.12),
               0 2px 5px rgba(35, 30, 22, 0.06);
  transition: scale 0.48s cubic-bezier(0.22, 1.5, 0.36, 1),
              transform 0.35s ease, color 0.25s ease,
              text-shadow 0.25s ease, opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  body :is(.menu-toggle, .back-btn, .inquiry-close, .cinema-close):not(:disabled):hover {
    opacity: 1;
    scale: 1.045;
    text-shadow: 0 -0.7px 0 rgba(255, 255, 255, 0.85),
                 0 1.2px 1.5px rgba(35, 30, 22, 0.18),
                 0 3px 7px rgba(35, 30, 22, 0.1);
  }
}

body :is(.menu-toggle, .back-btn, .inquiry-close, .cinema-close):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
  border-radius: 2px;
}

/* Independent scale preserves the menu symbol's existing rotation. */
body :is(.menu-toggle, .back-btn, .inquiry-close, .cinema-close):not(:disabled):active {
  scale: 0.94;
  transition-duration: 0.09s;
  text-shadow: 0 -0.4px 0 rgba(255, 255, 255, 0.5),
               0 0.5px 1px rgba(35, 30, 22, 0.1);
}

/* Match Ari's softly springing plus-to-close rotation in both directions. */
body button.menu-toggle {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  scale: 1;
  transition: color 0.2s ease, opacity 0.2s ease,
              scale 0.45s cubic-bezier(0.2, 1.5, 0.4, 1),
              transform 0.5s cubic-bezier(0.2, 1.35, 0.4, 1);
}
body .menu-toggle, body .menu-toggle.open {
  color: rgba(50, 46, 42, 0.4);
  text-shadow: 0 -0.5px 0.5px rgba(255, 255, 255, 0.55),
               0 1px 2px rgba(50, 46, 42, 0.12);
}
body:has(.cinema-player) .menu-toggle {
  color: rgba(196, 194, 190, 0.4);
  text-shadow: 0 -0.5px 0.5px rgba(255, 255, 255, 0.2),
               0 1px 2px rgba(0, 0, 0, 0.3);
}
@media (hover: hover) and (pointer: fine) {
  body .menu-toggle:not(:disabled):hover {
    color: rgba(50, 46, 42, 0.15);
    scale: 1.08;
    text-shadow: 0 -0.5px 0.5px rgba(255, 255, 255, 0.55),
                 0 1px 2px rgba(50, 46, 42, 0.12);
  }
  body:has(.cinema-player) .menu-toggle:not(:disabled):hover {
    color: rgba(196, 194, 190, 0.15);
    text-shadow: 0 -0.5px 0.5px rgba(255, 255, 255, 0.2),
                 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}
body .menu-toggle:not(:disabled):active {
  scale: 0.92;
  transition-duration: 0.2s, 0.2s, 0.12s, 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  body button.menu-toggle { transition: none; }
  body :is(.menu-toggle, .back-btn, .inquiry-close, .cinema-close) {
    scale: none !important;
    transition: none;
  }
}

/* All text buttons share the quieter Ari Bakhtiari menu treatment. */
body :is(.nav-menu a, .inquiry-open, .inquiry-submit) {
  display: inline-block;
  transform-origin: center;
  scale: 1;
  text-shadow: 0 -0.3px 0.5px rgba(255, 255, 255, 0.2),
               0 0.5px 1px rgba(50, 46, 42, 0.06);
  transition: color 0.2s ease, opacity 0.2s ease,
              scale 0.45s cubic-bezier(0.2, 1.5, 0.4, 1),
              transform 0.5s cubic-bezier(0.2, 1.35, 0.4, 1);
}
body:has(.cinema-player) .nav-menu a {
  text-shadow: 0 -0.3px 0.5px rgba(255, 255, 255, 0.08),
               0 0.5px 1px rgba(0, 0, 0, 0.15);
}
@media (hover: hover) {
  body :is(.nav-menu a, .inquiry-open, .inquiry-submit):not(:disabled):hover { opacity: 0.65; scale: 1.015; }
}
body :is(.nav-menu a, .inquiry-open, .inquiry-submit):not(:disabled):active {
  scale: 0.985;
  transition-duration: 0.2s, 0.2s, 0.12s, 0.5s;
}
body :is(.nav-menu a, .inquiry-open, .inquiry-submit):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body :is(.nav-menu a, .inquiry-open, .inquiry-submit) { scale: 1; transition: none; }
}

/* Barely perceptible logo feedback; preserve the cinema logo's inversion. */
body a:is(.nav-logo, .top-logo) {
  scale: 1;
  transform-origin: center;
  transition: scale 0.35s ease-out, opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  body a:is(.nav-logo, .top-logo):hover { opacity: 1; scale: 1.005; }
}
body a:is(.nav-logo, .top-logo):active {
  scale: 0.995;
  transition-duration: 0.12s, 0.2s;
}
body a:is(.nav-logo, .top-logo):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body a:is(.nav-logo, .top-logo) { scale: 1; transition: none; }
}
