/* Brand intro shown at most once per 24 hours. Hidden by default so a script failure never blocks the page. */
.brand-intro {
  display: none;
}

html.brand-intro-enabled,
html.brand-intro-enabled body {
  overflow: hidden;
}

.brand-intro-enabled .brand-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  contain: layout paint;
  touch-action: none;
  animation: brand-intro-lifecycle 3.08s step-end forwards;
}

.brand-intro-panels,
.brand-intro-content,
.brand-intro-axis {
  position: absolute;
  inset: 0;
}

.brand-intro-panel {
  position: absolute;
  width: 50.1%;
  height: 50.1%;
  background: #0b2236;
  will-change: transform;
}

.brand-intro-panel--tl { top: 0; left: 0; animation: brand-panel-left .72s 2.2s cubic-bezier(.22, 1, .36, 1) forwards; }
.brand-intro-panel--tr { top: 0; right: 0; animation: brand-panel-up .72s 2.24s cubic-bezier(.22, 1, .36, 1) forwards; }
.brand-intro-panel--bl { bottom: 0; left: 0; animation: brand-panel-down .72s 2.28s cubic-bezier(.22, 1, .36, 1) forwards; }
.brand-intro-panel--br { right: 0; bottom: 0; animation: brand-panel-right .72s 2.32s cubic-bezier(.22, 1, .36, 1) forwards; }

.brand-intro-content {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.brand-intro-content::before {
  position: absolute;
  width: min(64vw, 720px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(115, 195, 223, .14), rgba(49, 95, 189, .05) 38%, transparent 70%);
  opacity: 0;
  transform: scale(.78);
  animation: brand-glow-in .8s .18s ease-out forwards, brand-glow-out .3s 2.05s ease forwards;
}

.brand-intro-lockup,
.brand-intro-message {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.brand-intro-lockup {
  display: grid;
  justify-items: center;
  transform: translateY(0);
  animation: brand-lockup-out .38s 1.3s cubic-bezier(.55, 0, 1, .45) forwards;
}

.brand-intro-mark {
  position: relative;
  width: clamp(126px, 10vw, 160px);
  aspect-ratio: 1;
  margin-bottom: -18px;
}

.brand-intro-mark-piece,
.brand-intro-mark-complete {
  position: absolute;
  inset: 0;
  background: url("../images/hdevops-mark-v2.c78f49fdf48c.png") center / contain no-repeat;
}

.brand-intro-mark-piece {
  opacity: 0;
  will-change: opacity, transform;
}

.brand-intro-mark-piece--left {
  clip-path: inset(0 66% 0 0);
  transform: translate3d(-18px, 0, 0) scale(.96);
  animation: brand-piece-left .46s .12s cubic-bezier(.22, 1, .36, 1) forwards,
             brand-piece-clear .12s .72s linear forwards;
}

.brand-intro-mark-piece--center {
  clip-path: inset(0 33% 0 34%);
  transform: translate3d(0, 16px, 0) scale(.96);
  animation: brand-piece-center .46s .23s cubic-bezier(.22, 1, .36, 1) forwards,
             brand-piece-clear .12s .72s linear forwards;
}

.brand-intro-mark-piece--right {
  clip-path: inset(0 0 0 67%);
  transform: translate3d(18px, 0, 0) scale(.96);
  animation: brand-piece-right .46s .34s cubic-bezier(.22, 1, .36, 1) forwards,
             brand-piece-clear .12s .72s linear forwards;
}

.brand-intro-mark-complete {
  opacity: 0;
  transform: scale(.985);
  animation: brand-mark-complete .2s .66s ease-out forwards;
}

.brand-intro-name {
  display: flex;
  color: #fff;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.brand-intro-name span {
  display: block;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: brand-word-in .38s cubic-bezier(.22, 1, .36, 1) forwards;
}

.brand-intro-name span:nth-child(1) { animation-delay: .58s; }
.brand-intro-name span:nth-child(2) { animation-delay: .67s; }
.brand-intro-name span:nth-child(3) { animation-delay: .76s; }

.brand-intro-english {
  margin-top: 10px;
  color: #73c3df;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .28em;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  animation: brand-word-in .34s .92s cubic-bezier(.22, 1, .36, 1) forwards;
}

.brand-intro-message {
  width: min(calc(100vw - 80px), 1200px);
  color: #fff;
  font-size: clamp(48px, 6.2vw, 86px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.06em;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  animation: brand-message-in .52s 1.35s cubic-bezier(.22, 1, .36, 1) forwards,
             brand-message-out .24s 2.12s ease forwards;
}

.brand-intro-message span {
  display: block;
  white-space: nowrap;
}

.brand-intro-message em {
  color: #73c3df;
  font-style: normal;
}

.brand-intro-axis {
  z-index: 3;
  pointer-events: none;
}

.brand-intro-axis::before,
.brand-intro-axis::after {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, transparent, #73c3df 22%, #315fbd 78%, transparent);
  opacity: 0;
}

.brand-intro-axis::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  animation: brand-axis-x .28s 2.06s ease-out forwards, brand-axis-out .22s 2.48s ease forwards;
}

.brand-intro-axis::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, #315fbd 22%, #73c3df 78%, transparent);
  transform: scaleY(0);
  animation: brand-axis-y .28s 2.1s ease-out forwards, brand-axis-out .22s 2.5s ease forwards;
}

@keyframes brand-intro-lifecycle {
  0%, 99% { visibility: visible; opacity: 1; pointer-events: auto; }
  100% { visibility: hidden; opacity: 0; pointer-events: none; }
}

@keyframes brand-piece-left { to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes brand-piece-center { to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes brand-piece-right { to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes brand-piece-clear { to { opacity: 0; } }
@keyframes brand-mark-complete { to { opacity: 1; transform: scale(1); } }
@keyframes brand-word-in { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes brand-glow-in { to { opacity: 1; transform: scale(1); } }
@keyframes brand-glow-out { to { opacity: 0; transform: scale(1.08); } }
@keyframes brand-lockup-out { to { opacity: 0; transform: translate3d(0, -28px, 0) scale(.985); } }
@keyframes brand-message-in { to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes brand-message-out { to { opacity: 0; transform: translate3d(0, -18px, 0) scale(.99); } }
@keyframes brand-axis-x { to { opacity: .84; transform: scaleX(1); } }
@keyframes brand-axis-y { to { opacity: .84; transform: scaleY(1); } }
@keyframes brand-axis-out { to { opacity: 0; } }
@keyframes brand-panel-left { to { transform: translate3d(-102%, 0, 0); } }
@keyframes brand-panel-up { to { transform: translate3d(0, -102%, 0); } }
@keyframes brand-panel-down { to { transform: translate3d(0, 102%, 0); } }
@keyframes brand-panel-right { to { transform: translate3d(102%, 0, 0); } }
@media (max-width: 640px) {
  .brand-intro-content { padding: 12px; }
  .brand-intro-content::before { width: 118vw; }
  .brand-intro-mark { width: 118px; margin-bottom: -17px; }
  .brand-intro-name { font-size: 23px; }
  .brand-intro-english { margin-top: 8px; font-size: 10px; }
  .brand-intro-message {
    width: calc(100vw - 24px);
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1.08;
  }
}
