@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100% 150%;
  font-display: swap;
  src: url("assets/fonts/anybody-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000;
  --cyan: #7ebec6;
  --bone: #e4d2b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--black);
  color: var(--bone);
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Anybody", "Arial Black", Impact, sans-serif;
  font-weight: 700;
  font-stretch: 130%;
}

.room {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000 url("assets/subway.jpg") center / cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

.room video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 48%, transparent 74%);
}

.brand,
main,
.colophon {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.45rem 1rem 0;
}

.mark {
  width: min(168px, 40vw);
  height: auto;
  filter: invert(1);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1400px);
  padding: 1rem 1rem 1.6rem;
  text-align: center;
}

.presents {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.82rem, 1.6vw, 1.35rem);
  font-stretch: 136%;
  font-weight: 650;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
  animation: presents 8s infinite;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0;
  max-width: 100%;
  color: var(--cyan);
  font-size: clamp(1.7rem, 6.4vw, 6.6rem);
  font-stretch: 146%;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 2px #f3feff,
    0 0 12px rgba(168, 230, 236, 0.9),
    0 0 28px rgba(126, 190, 198, 0.62),
    0 0 56px rgba(90, 176, 190, 0.38);
  animation: title 5.6s infinite;
}

.soon {
  margin: 1.7rem 0 0;
  padding: 0.5rem 0.85rem 0.45rem;
  border: 1px solid rgba(228, 210, 184, 0.72);
  color: var(--bone);
  font-size: 0.74rem;
  font-stretch: 138%;
  font-weight: 700;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(228, 210, 184, 0.45);
  box-shadow:
    0 0 12px rgba(228, 210, 184, 0.22),
    inset 0 0 10px rgba(228, 210, 184, 0.08);
  animation: soon 7.2s infinite;
}

@keyframes presents {
  0%, 46%, 54%, 100% { opacity: 1; }
  49% { opacity: 0.55; }
  51% { opacity: 0.82; }
}

@keyframes title {
  0%, 16%, 23%, 58%, 66%, 100% {
    opacity: 1;
    text-shadow:
      0 0 2px #f3feff,
      0 0 12px rgba(168, 230, 236, 0.9),
      0 0 28px rgba(126, 190, 198, 0.62),
      0 0 56px rgba(90, 176, 190, 0.38);
  }
  18%, 21% {
    opacity: 0.62;
    text-shadow: 0 0 4px rgba(126, 190, 198, 0.28);
  }
  19% {
    opacity: 0.95;
    text-shadow:
      0 0 3px #fff,
      0 0 16px rgba(198, 246, 250, 1),
      0 0 40px rgba(126, 190, 198, 0.8),
      0 0 70px rgba(90, 176, 190, 0.5);
  }
  61% {
    opacity: 0.42;
    text-shadow: 0 0 3px rgba(126, 190, 198, 0.2);
  }
  63%, 65% {
    opacity: 0.84;
    text-shadow:
      0 0 2px #e7fbff,
      0 0 10px rgba(126, 190, 198, 0.55),
      0 0 24px rgba(126, 190, 198, 0.3);
  }
}

@keyframes soon {
  0%, 38%, 46%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(228, 210, 184, 0.5);
    box-shadow:
      0 0 14px rgba(228, 210, 184, 0.32),
      inset 0 0 10px rgba(228, 210, 184, 0.1);
  }
  40% {
    opacity: 0.4;
    text-shadow: none;
    box-shadow: none;
  }
  42%, 44% {
    opacity: 0.86;
    text-shadow: 0 0 8px rgba(228, 210, 184, 0.35);
    box-shadow: 0 0 8px rgba(228, 210, 184, 0.16);
  }
}

.colophon {
  padding: 0.85rem 1rem 1.2rem;
  text-align: center;
}

.colophon p {
  margin: 0;
  font-size: 0.68rem;
  font-stretch: 130%;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.colophon .place {
  margin-top: 0.3rem;
  opacity: 0.55;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .mark { width: min(128px, 36vw); }
  h1 {
    font-size: clamp(1.28rem, 7.6vw, 2.4rem);
    letter-spacing: 0.03em;
  }
  .presents {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }
  .soon {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room video { display: none; }
  h1,
  .presents,
  .soon { animation: none; }
}
