.brand-intro:not([open]) {
  display: none;
}

html.brand-intro-running {
  overflow: hidden;
}

.brand-intro[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  color: #f3fcff;
  background: radial-gradient(ellipse at 50% 52%, #0d2337, #060c14 55%, #03060a 86%);
  transition: opacity .34s cubic-bezier(.32, 0, .25, 1);
}

.brand-intro[open][data-leaving] {
  opacity: 0;
}

.brand-intro::backdrop {
  background: transparent;
}

.brand-intro-lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.brand-intro-lights i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 1px;
  background: linear-gradient(90deg, transparent 30%, #20b7ee50 55%, transparent 83%);
  transform: translate(-50%, var(--offset, -15vmin)) rotate(-20deg);
  animation: intro-ambient 1.55s .1s ease-out both;
}

.brand-intro-lights i:nth-child(2) {
  --offset: 13vmin;
  animation-delay: .25s;
}

.brand-intro-lights i:nth-child(3) {
  --offset: 17vmin;
  animation-delay: .34s;
  opacity: .6;
}

.brand-intro-content {
  width: min(79vw, 560px);
  text-align: center;
}

.brand-intro-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
  mix-blend-mode: screen;
  animation: intro-emblem .86s .07s cubic-bezier(.16, 1, .3, 1) both;
}

.brand-intro-track {
  display: block;
  position: relative;
  width: 68%;
  height: 1px;
  margin: clamp(24px, 5vmin, 44px) auto 0;
  background: linear-gradient(90deg, transparent, #44cfff87 50%, transparent);
  animation: intro-track .8s .22s cubic-bezier(.16, 1, .3, 1) both;
}

.brand-intro-track::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 24%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #9beaff, transparent);
  filter: drop-shadow(0 0 6px #35bcff);
  animation: intro-sheen .93s .4s ease-out both;
}

.brand-intro-content p {
  margin: 15px 0 0;
  color: #c5deef;
  font-size: clamp(.68rem, 2.1vw, .82rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: intro-copy .43s .52s cubic-bezier(.2, .7, .3, 1) both;
}

.brand-intro-skip, .brand-intro-replay {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.brand-intro-skip {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  border-color: #b0d8f338;
  font-size: .8rem;
}

.brand-intro-skip span {
  color: #69d6ff;
  margin-left: 5px;
}

.brand-intro-skip:hover, .brand-intro-skip:focus-visible {
  border-color: #69d6ff;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
}

.brand-intro-replay:hover {
  color: var(--accent);
}

.brand-intro-running .hero.lit .hero-light {
  animation: none;
}

.maya-section .chapter-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chapter-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: .45;
}

@keyframes intro-emblem {
  from { opacity: 0; transform: scale(.95); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; transform: scale(1); clip-path: inset(0); }
}

@keyframes intro-ambient {
  from { opacity: 0; scale: .55 1; }
  65% { opacity: 1; }
  to { scale: 1; }
}

@keyframes intro-track {
  from { transform: scaleX(.12); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes intro-sheen {
  from { transform: translateX(0); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translateX(315%); opacity: 0; }
}

@keyframes intro-copy {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro, .brand-intro *, .brand-intro *::after {
    animation: none !important;
    transition: none !important;
  }
}
