/* Hidden markup is the default; the head script presents the brand on each visit. */
#brand-intro { display: none; }
.by-intro-on #brand-intro,
.by-intro-on .home #brand-intro[hidden] {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #f2f7ff;
  background: #02050c;
  animation: by-intro-safety 1ms 7s forwards;
}
.brand-intro-halo {
  position: absolute;
  inset: -35%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 53% 55%, #0864d03d 0, #06347922 19%, transparent 43%);
  animation: by-intro-light 2s cubic-bezier(.16, 1, .3, 1) both;
}
.brand-intro-halo::before,
.brand-intro-halo::after {
  content: '';
  position: absolute;
  width: 64%;
  height: 38%;
  left: 18%;
  top: 32%;
  border: 1px solid #6da9f01a;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.brand-intro-halo::after {
  width: 53%;
  height: 30%;
  left: 23.5%;
  top: 36%;
  border-color: #6da9f010;
}
.brand-intro-content {
  position: relative;
  width: 100%;
  padding: 0 7vw 3vh;
  text-align: center;
  transform-origin: 50% 48%;
}
.brand-intro-eyebrow {
  margin: 0 0 clamp(22px, 4vh, 42px);
  color: #a0b8d5;
  font: 10px/1.5 Arial, sans-serif;
  letter-spacing: .38em;
  text-indent: .38em;
  animation: by-intro-detail 850ms 220ms both;
}
#brand-intro-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .14em;
  margin: 0;
  font-family: Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(58px, 9.2vw, 154px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.055em;
  white-space: nowrap;
  animation: by-intro-title 1600ms cubic-bezier(.16, 1, .3, 1) both;
}
#brand-intro-title > span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1px #d3e7ff7a;
}
#brand-intro-title > span::after {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  color: #f2f7ff;
  -webkit-text-stroke: 0;
  animation: by-intro-fill 1050ms 150ms cubic-bezier(.4, 0, .2, 1) both;
}
#brand-intro-title > span:nth-child(2) { letter-spacing: -.065em; }
#brand-intro-title > span:nth-child(2)::after {
  color: #70b5ff;
  animation-delay: 400ms;
}
#brand-intro-title > span:nth-child(3)::after { animation-delay: 600ms; }
.brand-intro-tagline {
  margin: clamp(25px, 4vh, 42px) 0 0;
  color: #9db0ca;
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 400;
  letter-spacing: .34em;
  text-indent: .34em;
  animation: by-intro-detail 900ms 650ms both;
}
.brand-intro-bottom {
  position: absolute;
  bottom: max(36px, env(safe-area-inset-bottom));
  left: 6.5vw;
  right: 6.5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #91a4bf;
  font-size: 11px;
  letter-spacing: .1em;
  animation: by-intro-detail 700ms 300ms both;
}
.brand-intro-loading { display: flex; align-items: center; gap: 16px; }
.brand-intro-track { width: 72px; height: 1px; overflow: hidden; background: #779bc032; }
.brand-intro-track::after {
  content: '';
  display: block;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #90c5ff, transparent);
  animation: by-intro-loading 1.45s ease-in-out infinite;
}
.is-ready .brand-intro-track::after { width: 100%; background: #90c5ff; animation: none; }
.brand-intro-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 8px 0 8px 20px;
  border: 0;
  background: transparent;
  color: #c3d2e5;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.brand-intro-skip .by-icon { width: 20px; height: 20px; }
.brand-intro-skip:hover { color: #fff; }
.brand-intro-skip:focus-visible { outline: 2px solid #8ac4ff; outline-offset: 6px; }
.by-intro-on #brand-intro.is-leaving {
  pointer-events: none;
  animation: by-intro-exit 740ms cubic-bezier(.7, 0, .3, 1) both;
}
.is-leaving .brand-intro-content { animation: by-intro-pass 720ms cubic-bezier(.65, 0, .32, 1) both; }
.is-leaving .brand-intro-halo { animation: by-intro-halo-exit 720ms ease-in both; }
.is-leaving .brand-intro-bottom { animation: by-intro-detail-exit 200ms ease both; }
@keyframes by-intro-title { from { opacity: 0; transform: scale(1.1) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes by-intro-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes by-intro-detail { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes by-intro-light { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes by-intro-loading { from { transform: translateX(-110%); } to { transform: translateX(290%); } }
@keyframes by-intro-pass { 0% { transform: scale(1); opacity: 1; } 72% { opacity: .8; } 100% { transform: scale(5.5); opacity: 0; } }
@keyframes by-intro-halo-exit { to { transform: scale(1.8); opacity: 0; } }
@keyframes by-intro-exit { 0%, 25% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes by-intro-detail-exit { to { opacity: 0; } }
@keyframes by-intro-safety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.by-intro-on #brand-intro.is-waiting { display: none !important; }
#brand-intro.is-brief .brand-intro-content,
#brand-intro.is-brief .brand-intro-halo,
#brand-intro.is-brief .brand-intro-eyebrow,
#brand-intro.is-brief #brand-intro-title,
#brand-intro.is-brief #brand-intro-title > span::after,
#brand-intro.is-brief .brand-intro-tagline,
#brand-intro.is-brief .brand-intro-bottom,
#brand-intro.is-brief .brand-intro-track::after { animation: none; }
#brand-intro.is-brief #brand-intro-title > span::after { clip-path: none; }
#brand-intro.is-brief .brand-intro-track { display: none; }
@media (max-width: 600px) {
  #brand-intro-title { font-size: 12vw; gap: .13em; }
  .brand-intro-eyebrow { font-size: 8px; letter-spacing: .3em; }
  .brand-intro-content { padding-inline: 4vw; }
  .brand-intro-tagline { font-size: 11px; letter-spacing: .2em; }
  .brand-intro-bottom { bottom: max(24px, env(safe-area-inset-bottom)); font-size: 10px; }
  .brand-intro-loading { gap: 10px; }
  .brand-intro-track { width: 38px; }
  .brand-intro-skip { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #brand-intro *,#brand-intro *::before,#brand-intro *::after { animation: none !important; }
  #brand-intro-title > span::after { clip-path: none; }
}
