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

html,
body {
  width: 100%;
  height: 100%;
  background: #fff;
  color: #111;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
}

#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

#stage {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #fff;
  container-type: size;
  transform-origin: center center;
}

.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1.15s ease;
}

.layer.visible {
  opacity: 1;
}

.layer.zoom-fade {
  transition: opacity 1.45s ease;
}

.layer.kenburns {
  transition: opacity 1.7s ease;
}

.photo {
  position: absolute;
  inset: -4%;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform, opacity;
}

.layer.zoom .photo {
  animation: slowZoom 5.2s ease-out forwards;
}

.layer.kb-1 .photo {
  animation: kb1 8.8s linear forwards;
}
.layer.kb-2 .photo {
  animation: kb2 8.8s linear forwards;
}
.layer.kb-3 .photo {
  animation: kb3 8.8s linear forwards;
}
.layer.kb-4 .photo {
  animation: kb4 8.8s linear forwards;
}

.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  padding: 6cqh 7cqw;
}

.card.show {
  opacity: 1;
}

#title-card h1,
#thanks-card h1 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #111;
}

#title-card h1 {
  font-size: 42px;
  font-size: 8.4cqw;
}

#title-card h1::after {
  content: "";
  display: block;
  width: 5.2cqw;
  height: 0.28cqh;
  min-height: 2px;
  margin: 2.6cqh auto 0;
  background: linear-gradient(90deg, #0077c8, #8dbd43);
}

#thanks-card h1 {
  font-size: 32px;
  font-size: 6.4cqw;
  margin-bottom: 6cqh;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5cqw;
  width: min(92cqw, 100%);
}

.logos img {
  display: block;
  height: 52px;
  height: 14cqh;
  width: auto;
  max-width: 220px;
  max-width: 28cqw;
  object-fit: contain;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.14);
  }
}

@keyframes kb1 {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.18) translate(-3.2%, -2%);
  }
}

@keyframes kb2 {
  from {
    transform: scale(1.16) translate(2.4%, 1.5%);
  }
  to {
    transform: scale(1) translate(-2%, -1.2%);
  }
}

@keyframes kb3 {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.2) translate(3%, -2.4%);
  }
}

@keyframes kb4 {
  from {
    transform: scale(1.14) translate(-2%, 2%);
  }
  to {
    transform: scale(1.02) translate(2.2%, -1.6%);
  }
}
