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

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: #ffffff;
  background: #000;
  overflow: hidden;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.bg-video.is-ready {
  opacity: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 8vh, 96px) 24px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.heading-wrap {
  flex: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  padding-bottom: clamp(40px, 8vh, 120px);
}

.brand__icon {
  width: 400px;
  height: auto;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.heading {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.counter-char {
  display: inline-block;
  min-width: 0.55em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.counter-char--space {
  min-width: 0.4em;
}

.counter-char:not(.counter-char--settled) {
  color: #ffd54f;
  text-shadow:
    0 0 8px rgba(255, 193, 7, 0.85),
    0 0 24px rgba(255, 152, 0, 0.45);
}

.counter-char--settled {
  color: #ffffff;
  animation: counter-settle 0.35s ease forwards;
}

@keyframes counter-settle {
  0% {
    text-shadow:
      0 0 12px rgba(255, 193, 7, 0.9),
      0 0 28px rgba(255, 152, 0, 0.5);
    transform: translateY(-2px);
  }

  100% {
    text-shadow: none;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .brand__icon {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .brand {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .heading {
    letter-spacing: 0.08em;
    white-space: normal;
  }
}
