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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  background: #82aedd;
  text-transform: uppercase;
}

:root {
  --stretch-delay: 0.5s;
  --stretch-duration: 2.8s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.88);
}

section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.logo {
  width: min(88vw, 720px);
  height: auto;
  opacity: 0;
  animation: logo-in 0.6s ease-out 0.2s forwards;
}

.tagline {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  opacity: 0;
  transform: translateY(8px);
  animation: tagline-in 0.7s ease-out calc(var(--stretch-delay) + var(--stretch-duration)) forwards;
}

footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  color: #e30d25;
  font-family: 'Roboto', sans-serif;
}

footer a {
  color: inherit;
  font-family: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p:last-child {
  font-weight: bold;
}

@keyframes tagline-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* E stretch animation */
.e-bars {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(1);
  animation: stretch-e var(--stretch-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--stretch-delay) forwards;
}

.nto-group {
  animation: slide-nto var(--stretch-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--stretch-delay) forwards;
}

@keyframes stretch-e {
  from { transform: scaleX(1); }
  to   { transform: scaleX(10.35); }
}

@keyframes slide-nto {
  from { transform: translateX(0); }
  to   { transform: translateX(344px); }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .tagline,
  .e-bars,
  .nto-group {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .e-bars {
    transform: scaleX(10.35);
  }

  .nto-group {
    transform: translateX(344px);
  }
}
