/* The stairs in the intro's end screen, bottom right. */
.hero-stairs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero > .hero-body { position: relative; z-index: 1; }   /* the logo stays above the scene */

/* the invitation: bottom left, over the empty part of the scene */
.invite {
  position: absolute;
  left: clamp(24px, 3.3vw, 48px);
  bottom: clamp(48px, 12svh, 120px);
  z-index: 2;
  max-width: min(560px, 46vw);
}
.invite[hidden] { display: none; }
.invite-eyebrow {
  margin: 0 0 18px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--muted);
}
.invite-line {
  margin: 0;
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
/* one button, two shapes touching: the label in a pill, the arrow in its own circle */
.invite-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  font: inherit;
  background: none;
  cursor: pointer;
}
.cta-label, .cta-icon {
  height: 60px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0b0b0b;
  background: #fff;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.cta-label { padding: 0 28px; font-weight: 600; font-size: 17px; }
.cta-icon { width: 60px; color: #0b0b0b; background: #fff; }   /* white circle, black arrow, no border */
.cta-icon svg { width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.invite-cta:hover .cta-icon svg { transform: rotate(45deg); }
.invite-cta:focus-visible { outline: none; }
.invite-cta:focus-visible .cta-label, .invite-cta:focus-visible .cta-icon { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 720px) {
  .invite { left: 16px; right: 16px; bottom: auto; top: 22svh; max-width: none; }
  .invite-line { font-size: 34px; }
  .cta-label, .cta-icon { height: 54px; }
  .cta-icon { width: 54px; }
  .cta-label { font-size: 16px; padding: 0 24px; }
}

/* the film page, opened from the screen at the top of the stairs */
.portal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: transparent;
}
.portal.is-open { pointer-events: auto; }

/* sound on/off, top right of the end screen */
.sound-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background-color .2s;
}
.sound-toggle:hover { background: rgba(255, 255, 255, .16); }
.sound-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sound-toggle svg { width: 22px; height: 22px; }
.sound-toggle .i-off, .is-muted .sound-toggle .i-on { display: none; }
.is-muted .sound-toggle .i-off { display: block; }
