/* ==========================================================================
   Monkey homepage — visual polish
   Keeps the approved hero direction; unifies navigation, media and controls.
   ========================================================================== */

/* Navigation ---------------------------------------------------------------
   Exact alignment with the hero copy and social rail. Light sections get a
   quiet, opaque bar instead of low-contrast white text over a blurred page. */
@media (min-width: 901px) {
  .nav {
    padding-left: calc(var(--shot-edge) + clamp(24px, 4.4vw, 78px));
    padding-right: calc(var(--shot-edge) + clamp(14px, 2vw, 34px));
  }
}

.nav-inner {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav::before {
  display: block;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-dark::before {
  background: #0b0a0f;
  border-bottom-color: rgba(248, 244, 236, .08);
  box-shadow: none;
}
.nav:not(.is-dark)::before {
  background: rgba(247, 243, 234, .97);
  border-bottom-color: rgba(19, 17, 16, .09);
  box-shadow: 0 10px 34px -28px rgba(19, 17, 16, .35);
}
.nav:not(.is-dark) .brand-word,
.nav:not(.is-dark) .nav-links a { color: var(--ink); }
.nav:not(.is-dark) .brand-age {
  color: var(--ink-soft);
  border-color: rgba(19, 17, 16, .24);
}
.nav:not(.is-dark) .nav-links a:hover {
  color: var(--purple);
  background: rgba(100, 74, 241, .07);
}
.nav:not(.is-dark) .menu-toggle { background: rgba(19, 17, 16, .07); }
.nav:not(.is-dark) .menu-toggle span { background: var(--ink); }

/* Hero --------------------------------------------------------------------- */
/* Preserve text contrast while giving the person in the video more presence. */
.hero-shot .shot-scrim {
  background:
    linear-gradient(90deg, #3a1e8f 0%, rgba(58, 30, 143, .94) 24%, rgba(58, 30, 143, .6) 45%, rgba(58, 30, 143, .08) 66%, rgba(58, 30, 143, 0) 80%),
    linear-gradient(180deg, rgba(10, 6, 24, .3) 0%, rgba(10, 6, 24, 0) 25%, rgba(10, 6, 24, 0) 61%, rgba(10, 6, 24, .5) 100%);
}
.hero-shot .shot-wave {
  display: inline-block;
  transform-origin: 70% 75%;
  animation: monkey-wave 3.4s ease-in-out infinite;
}
@keyframes monkey-wave {
  0%, 72%, 100% { transform: rotate(0); }
  78% { transform: rotate(12deg); }
  84% { transform: rotate(-7deg); }
  90% { transform: rotate(8deg); }
  96% { transform: rotate(0); }
}
.hero-shot .shot-lede { text-wrap: pretty; }
.hero-shot .shot-chips li {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(28, 14, 66, .28);
}
.hero-shot .shot-soc {
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .6);
}
.hero-shot .shot-soc:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

/* Worldwide cast ----------------------------------------------------------- */
.cast-frame {
  border-radius: 16px;
  box-shadow: 0 18px 42px -34px rgba(19, 17, 16, .55);
}
.cast-frame img { border-radius: inherit; }
.cast-tile figcaption {
  left: 10px;
  bottom: 10px;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(19, 17, 16, .48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: .09em;
}
.cast-tile figcaption::before { width: 5px; height: 5px; border-radius: 50%; }

/* Call preview ------------------------------------------------------------- */
.call-topbar {
  height: 54px;
  padding-inline: 20px;
  font-size: 10px;
}
.call-grid { padding: 0 16px; }
.team-label { font-size: 10.5px; }
.call-tile { border-radius: 12px; }
.role {
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .06em;
}
.call-dock { height: 70px; gap: 9px; }
.dock-btn { width: 42px; height: 42px; }

/* Safety ------------------------------------------------------------------- */
.safety-frame { border-radius: 20px; }
.safety-tile:first-child { border-radius: 20px 0 0 20px; }
.safety-tile:last-child { border-radius: 0 20px 20px 0; }
.safety-action { min-height: 42px; }

/* Footer ------------------------------------------------------------------- */
.foot { padding: 0 var(--edge) 28px; }
.foot-links a { font-size: 12px; }
.foot-bottom { font-size: 10.5px; }

/* Interaction and accessibility ------------------------------------------- */
.cast-strip:focus-visible,
.acc-btn:focus-visible,
.mode-switch button:focus-visible,
.safety-action:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .nav { padding-inline: 16px; }
  .cast-frame { border-radius: 12px; }
  .cast-tile figcaption { font-size: 9px; }
  .call-topbar { height: 46px; padding-inline: 12px; }
  .call-grid { padding-inline: 10px; }
  .call-tile { border-radius: 10px; }
  .safety-frame,
  .safety-tile:first-child,
  .safety-tile:last-child { border-radius: 14px; }
  .foot { padding: 0 var(--edge) 24px; }
}

@media (max-width: 520px) {
  .hero-shot .shot-content { max-width: calc(100% - 36px); }
  .hero-shot .shot-title { letter-spacing: -.04em; }
  .hero-shot .shot-chips { gap: 8px; }
  .hero-shot .shot-chips li { padding: 8px 12px; }
  .cast-tile figcaption { left: 7px; bottom: 7px; }
  .foot-links { gap: 15px; }
  .foot-bottom { align-items: flex-start; flex-wrap: wrap; }
  .foot-note { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shot .shot-wave { animation: none; }
}
