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

.brand-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
  color: #102d43;
  font-family: "Noto Sans TC", sans-serif;
  animation: brand-intro-depart .9s 2.5s cubic-bezier(.76, 0, .24, 1) both;
}

.brand-intro[open] {
  display: grid;
  place-items: center;
}

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

.brand-intro-identity {
  width: min(520px, 82vw);
  padding: 24px 0;
  text-align: center;
}

.brand-intro-kicker,
.brand-intro-english,
.brand-intro-caption {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .2em;
  color: #64788b;
}

.brand-intro-kicker {
  margin: 0 0 32px;
  animation: brand-intro-rise .8s .15s both;
}

.brand-intro-logo {
  animation: brand-intro-reveal 1.2s .25s cubic-bezier(.65, 0, .35, 1) both;
}

.brand-intro-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-intro-tagline {
  margin: 30px 0 10px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .18em;
  animation: brand-intro-rise .9s .85s both;
}

.brand-intro-english {
  margin: 0;
  animation: brand-intro-rise .9s 1.05s both;
}

.brand-intro-progress {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 144px;
  height: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  background: #e4edf3;
}

.brand-intro-progress span {
  display: block;
  height: 100%;
  background: #0079ba;
  transform-origin: left;
  animation: brand-intro-progress 2.25s .25s cubic-bezier(.65, 0, .35, 1) both;
}

.brand-intro-caption {
  position: absolute;
  bottom: 6%;
  left: 32px;
  margin: 0;
  font-size: 9px;
  animation: brand-intro-rise .9s 1.05s both;
}

.brand-intro-skip,
.brand-intro-replay {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid #aebecb;
  border-radius: 0;
  background: transparent;
  color: #102d43;
  font: 500 12px/1.5 "Noto Sans TC", sans-serif;
  cursor: pointer;
}

.brand-intro-skip {
  position: absolute;
  right: 32px;
  bottom: 5%;
}

.brand-intro-skip span {
  font-size: 18px;
}

.brand-intro-replay {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 20;
  color: #fff;
  border-color: #ffffff80;
  text-shadow: 0 1px 4px #102d43;
}

.brand-intro-skip:focus-visible,
.brand-intro-replay:focus-visible {
  outline: 2px solid #0079ba;
  outline-offset: 5px;
}

@keyframes brand-intro-reveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(8px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}

@keyframes brand-intro-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-intro-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes brand-intro-depart {
  from { clip-path: inset(0); }
  to { clip-path: inset(0 0 100% 0); }
}

@media (max-width: 600px) {
  .brand-intro-identity { width: min(380px, 80vw); }
  .brand-intro-kicker { font-size: 8px; margin-bottom: 24px; }
  .brand-intro-english { font-size: 8px; letter-spacing: .12em; }
  .brand-intro-caption { display: none; }
  .brand-intro-skip { right: 22px; }
  .brand-intro-replay { right: 20px; top: 18px; }
}

@media (max-height: 500px) {
  .brand-intro-identity { width: min(320px, 65vw); }
  .brand-intro-kicker { margin-bottom: 12px; }
  .brand-intro-tagline { margin-top: 12px; }
  .brand-intro-progress { bottom: 9%; }
  .brand-intro-caption { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-intro-playing .hero-slide .hero-content,
  .brand-intro-playing .hero-slide .hero-text-box {
    opacity: 0;
    animation: none;
  }
  .hero-slide.is-active .hero-content > *,
  .hero-slide.active .hero-text-box > * {
    animation: brand-intro-rise .8s .1s both;
  }
  .hero-slide.is-active .hero-content > :nth-child(2),
  .hero-slide.active .hero-text-box > :nth-child(2) { animation-delay: .2s; }
  .hero-slide.is-active .hero-content > :nth-child(3),
  .hero-slide.active .hero-text-box > :nth-child(3) { animation-delay: .3s; }
  .hero-slide.is-active .hero-content > :nth-child(4),
  .hero-slide.active .hero-text-box > :nth-child(4) { animation-delay: .4s; }
  .brand-intro-playing .hero-slide .hero-content > *,
  .brand-intro-playing .hero-slide .hero-text-box > * { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro-replay { display: none; }
  .brand-intro { animation: none; }
}
