@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

:root {
  --ping-bg: #fdfdfd;

  --ping-navy: #100e33;
  --ping-navy-rgb: 16 14 51;

  --ping-navy-80: rgb(var(--ping-navy-rgb) / 0.8);
  --ping-navy-60: rgb(var(--ping-navy-rgb) / 0.6);
  --ping-navy-40: rgb(var(--ping-navy-rgb) / 0.4);
  --ping-navy-20: rgb(var(--ping-navy-rgb) / 0.2);
  --ping-navy-13: rgb(var(--ping-navy-rgb) / 0.13);
  --ping-navy-08: rgb(var(--ping-navy-rgb) / 0.08);
  --ping-navy-04: rgb(var(--ping-navy-rgb) / 0.04);
  --ping-navy-02: rgb(var(--ping-navy-rgb) / 0.02);

  --ping-green: #26a27a;
  --ping-violet: #3a30fa;
  --ping-green-rgb: 38 162 122;
  --ping-violet-rgb: 58 48 250;
  --ping-gradient: linear-gradient(135deg, var(--ping-green), var(--ping-violet));

  --ping-shadow:
    0 24px 64px rgb(var(--ping-navy-rgb) / 0.09),
    0 4px 12px rgb(var(--ping-navy-rgb) / 0.05);

  --frame-w: 3840;
  --frame-h: 2160;
  --u: min(100vw / var(--frame-w), 100vh / var(--frame-h));
  --edge: linear-gradient(90deg, transparent, #000 1.5%, #000 98.5%, transparent);
  --edge-y: linear-gradient(180deg, transparent, #000 1.5%, #000 98.5%, transparent);
}

@supports (height: 100svh) {
  :root {
    --u: min(100vw / var(--frame-w), 100svh / var(--frame-h));
  }
}

@media (orientation: portrait) {
  :root {
    --frame-w: 2160;
    --frame-h: 3840;
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--ping-bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--ping-bg);
  color: var(--ping-navy);
  font-family: "Poppins", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.scene {
  position: relative;
  width: calc(var(--u) * var(--frame-w));
  height: calc(var(--u) * var(--frame-h));
}

.scene-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  -webkit-mask-image: var(--edge), var(--edge-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--edge), var(--edge-y);
  mask-composite: intersect;
}

.scene-video.is-visible {
  opacity: 1;
}

.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 30);
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-title {
  --logo-w: max(140px, calc(var(--u) * 560));
  display: flex;
  align-items: flex-end;
  gap: calc(var(--u) * 34);
  font-size: max(20px, calc(var(--u) * 72));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-logo {
  display: block;
  flex: none;
  width: var(--logo-w);
  height: auto;
  aspect-ratio: 1237 / 486;
  fill: var(--ping-navy);
}

.hero-coming {
  margin-bottom: calc(var(--logo-w) * 0.0574 - 0.15em);
}

.hero-tagline {
  font-size: max(13px, calc(var(--u) * 38));
  line-height: 1.3;
  white-space: nowrap;
}

.hero-tagline span {
  animation: 5s infinite;
}

.hero-tagline span:nth-child(1) {
  animation-name: dot-first;
}

.hero-tagline span:nth-child(2) {
  animation-name: dot-second;
}

.hero-tagline span:nth-child(3) {
  animation-name: dot-third;
}

@keyframes dot-first {
  20% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
}

@keyframes dot-second {
  45% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dot-third {
  70% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
}

.footer {
  position: fixed;
  left: 50%;
  bottom: max(10px, calc(var(--u) * 50), env(safe-area-inset-bottom));
  display: flex;
  gap: 0.4em;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 0.75em 1em;
  font-size: max(11px, calc(var(--u) * 26));
  line-height: 1.5;
  white-space: nowrap;
  background: var(--ping-navy-02);
  border: 1px solid var(--ping-navy);
  border-radius: 0.5rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

@media (orientation: landscape) and (max-width: 900px), (orientation: landscape) and (max-height: 520px) {
  .hero-title {
    flex-direction: column;
    align-items: center;
    gap: calc(var(--u) * 46);
  }

  .hero-coming {
    margin-bottom: 0;
  }

  .footer {
    bottom: max(4px, env(safe-area-inset-bottom));
    padding: 0.45em 0.9em;
    font-size: 9px;
  }
}

@media (orientation: portrait) {
  .hero {
    gap: calc(var(--u) * 50);
  }

  .hero-title {
    --logo-w: max(118px, calc(var(--u) * 740));
    flex-direction: column;
    align-items: center;
    gap: calc(var(--u) * 44);
    font-size: max(20px, calc(var(--u) * 128));
  }

  .hero-coming {
    margin-bottom: 0;
  }

  .hero-tagline {
    font-size: max(13px, calc(var(--u) * 80));
  }

  .footer {
    bottom: max(12px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: max(10.5px, calc(var(--u) * 58));
    text-align: center;
  }

  .footer-sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tagline span {
    animation: none;
  }

  .scene-video {
    transition: none;
  }
}
