@keyframes avGrainShift {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-4%, -3%); }
  20% { transform: translate(-8%, 4%); }
  30% { transform: translate(4%, -7%); }
  40% { transform: translate(-3%, 9%); }
  50% { transform: translate(-8%, 3%); }
  60% { transform: translate(9%, 0); }
  70% { transform: translate(0, 7%); }
  80% { transform: translate(-9%, 0); }
  90% { transform: translate(6%, 4%); }
  100% { transform: translate(0, 0); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.has-cinematic-hero {
  background: #000;
}

body.has-cinematic-hero .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.has-cinematic-hero .brand-sub,
body.has-cinematic-hero .nav-links a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.72);
}

body.has-cinematic-hero .brand-mark {
  color: #fff;
}

.hero-cinematic {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

#av-hero-root {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  background: #000;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  color: #f6f1e8;
  user-select: none;
}

#av-hero-root canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#av-hero-root .av-hero-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: avGrainShift 0.7s steps(1) infinite;
}

#av-hero-root [data-cue] {
  pointer-events: none;
}

#av-hero-root [data-cue="replay"],
#av-hero-root [data-cue="sound"],
#av-hero-root [data-cue="cta2"],
#av-hero-root [data-cue="score"] {
  pointer-events: auto;
}

#av-hero-root button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

#av-hero-root button:hover,
#av-hero-root [data-cue="cta2"]:hover {
  color: #e3b53e;
}

#av-hero-root [data-cue="cta2"] {
  cursor: pointer;
}

.hero-score-band {
  padding: 28px 24px 36px;
  text-align: center;
  background: linear-gradient(180deg, #000 0%, #070707 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-score-band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-score-band .eyebrow {
  margin-bottom: 10px;
}

.hero-score-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero-score-band p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1rem;
}

.score-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--panel);
  border: 1px solid rgba(253, 181, 33, 0.2);
  border-radius: 16px;
  padding: 24px 48px;
  margin-bottom: 24px;
}

.score-pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft);
  margin-bottom: 8px;
}

.score-pill-value {
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.score-pill-max {
  font-size: 0.9rem;
  color: var(--soft);
  margin-top: 4px;
}

@media (max-width: 720px) {
  body.has-cinematic-hero .nav-links {
    gap: 10px;
  }

  body.has-cinematic-hero .brand-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #av-hero-root .av-hero-grain {
    animation: none;
  }
}