/* Chrome and surfaces that only exist once the animation layer is running.
   Everything here is either injected by assets/js/motion.js or guarded by the
   `motion-ready` class it sets, so the static site is unaffected without it. */

/* Reading progress. Sits under both overlays (z-index 80 and 100). */
.nea-progress {
  position: fixed;
  z-index: 70;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #a37f1c, var(--gold) 55%, #f4dc8f);
  pointer-events: none;
}

/* Compact navigation. The page header is absolutely positioned and scrolls
   away, which leaves very tall pages with no way back to the menu. */
.nea-sticky {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  width: 100%;
  transform: translateY(-100%);
  opacity: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 20, .88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nea-sticky__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  width: min(calc(100% - var(--page-gutter) * 2), 1320px);
  min-height: 68px;
  margin-inline: auto;
  padding-block: 10px;
}
.nea-sticky__logo {
  display: block;
  flex: none;
  width: clamp(132px, 15vw, 168px);
}
.nea-sticky__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}
.nea-sticky__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nea-sticky__links a:hover,
.nea-sticky__links a:focus-visible { color: var(--gold); }
.nea-sticky__links a[aria-current="page"] { color: var(--gold); }
.nea-sticky__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nea-sticky .v2-apply { margin: 0; }
.nea-sticky .v2-menu-toggle { display: none; }

@media (max-width: 1100px) {
  .nea-sticky__links { display: none; }
  .nea-sticky .v2-search { display: none; }
  .nea-sticky__actions { margin-left: auto; }
  .nea-sticky .v2-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 620px) {
  .nea-sticky__inner { min-height: 60px; gap: 12px; }
  .nea-sticky .v2-apply { display: none; }
}

/* Accordion body wrapper, added by assets/js/motion.js so the open and close
   transitions have a single box to animate. The authored 285px floor on an open
   item would pre-size the box and swallow the height change, so it gives way to
   the item's own content — which is what the tablet and phone rules already do. */
.nea-panel > :first-child { margin-top: 0; }
html.motion-ready .v2-accordion details[open] { min-height: 0; }

/* A resting ring on the film placeholders. Drawn on a pseudo-element so it
   never competes with the transform Framer Motion writes on the button. */
html.motion-ready .v2-play::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: .55;
  animation: nea-play-ring 2.8s cubic-bezier(.16, 1, .3, 1) infinite;
  pointer-events: none;
}
@keyframes nea-play-ring {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Hover companions to the transforms driven from JavaScript. */
html.motion-ready .core-card,
html.motion-ready .v2-info-card,
html.motion-ready .invite-step,
html.motion-ready .invite-next__card,
html.motion-ready .about-callout {
  transition: border-color .3s ease, box-shadow .3s ease;
}
html.motion-ready .core-card:hover,
html.motion-ready .v2-info-card:hover,
html.motion-ready .invite-step:hover,
html.motion-ready .invite-next__card:hover,
html.motion-ready .about-callout:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(3, 4, 14, .55);
}
html.motion-ready .v2-carousel__slide.is-active { transform: scale(1.03); }

@media print {
  .nea-progress,
  .nea-sticky { display: none; }
}
