/* Only the logo spans the hero. The original copy and right-hand scenes keep their layout. */
.hero.hero-stage { position: relative; isolation: isolate; }
.hero-opening {
  position: absolute; z-index: 5; inset: 0;
  display: grid; place-items: center; overflow: hidden; background: #000;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.hero-opening-film {
  display: block; width: min(100%, 1440px); height: 100%; object-fit: contain;
  /* The film contains the particle reveal; keep the finished logo completely still. */
  transform: scale(1.1);
  /* Hide fractional-pixel video edge seams without resizing the logo or main scenes. */
  clip-path: inset(0 2px);
  -webkit-mask-image: linear-gradient(to right, transparent 2px, #000 12px, #000 calc(100% - 12px), transparent calc(100% - 2px));
  mask-image: linear-gradient(to right, transparent 2px, #000 12px, #000 calc(100% - 12px), transparent calc(100% - 2px));
}
.hero-opening-signature {
  position: absolute; top: 42px; left: var(--gutter);
  font-size: 9px; letter-spacing: .19em; color: #aaa;
}
.hero-opening-tools { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.hero-opening-controls {
  position: absolute; top: 26px; right: var(--gutter);
  display: flex; align-items: center; gap: 25px; pointer-events: auto;
}
.hero-opening-skip {
  display: flex; align-items: center; gap: 25px;
  padding: 12px 0; background: transparent; color: #ccc; font-size: 11px;
}
.hero-opening-skip:hover { color: #fff; }
.hero-opening-links {
  position: absolute; left: var(--gutter); bottom: 44px;
  display: flex; align-items: center; gap: 32px; pointer-events: auto;
}
.hero-opening-links a {
  display: flex; align-items: center; gap: 25px; padding: 10px 0;
  font-size: 12px; border-bottom: 1px solid #ffffff60;
}
.hero-opening-links a:hover { border-color: #fff; }
.hero-opening-scroll {
  position: absolute; left: 50%; bottom: 35px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 64px; min-height: 64px; padding: 5px 10px;
  color: #dedede; font-size: 12px; font-weight: 400; line-height: 1;
  letter-spacing: .045em; pointer-events: auto;
}
.hero-opening-scroll svg { width: 14px; height: 33px; }
.hero-opening-scroll svg path { stroke-width: .8; }
.hero-opening-scroll:hover { color: #fff; }
.hero-stage[data-opening="playing"] .hero-opening { opacity: 1; visibility: visible; transition-duration: .18s; }
.hero-stage[data-opening="playing"] .hero-copy,
.hero-stage[data-opening="playing"] .hero-controls { visibility: hidden; }
@media (max-width: 600px) {
  .hero-opening-film {
    width: 130%; max-width: none;
    height: min(100%, calc(100svh - var(--header)));
    align-self: start;
  }
  .hero-opening-controls { top: 20px; gap: 20px; }
  .hero-opening-signature { top: 94px; left: 0; width: 100%; text-align: center; font-size: 8px; }
  .hero-opening-links { top: calc(100svh - var(--header) - 165px); bottom: auto; gap: 25px; }
  .hero-opening-links a { font-size: 11px; gap: 15px; }
  .hero-opening-scroll { top: calc(100svh - var(--header) - 255px); bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-opening { transition: none; }
}
