@import url("https://fonts.googleapis.com/css2?family=Birthstone&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Stack+Sans+Notch:wght@200..700&display=swap");

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "Stack Sans Notch", sans-serif;
  font-optical-sizing: auto;
  color: #fff;
  background: #fff;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

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

  to {
    transform: scale(1.08);
  }
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgb(0 0 0 / 25%), rgb(0 0 0 / 35%));
  z-index: -1;
}

.wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-rows:
    110px
    1fr
    90px;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header img {
  width: 235px;
}

.hero {
  display: grid;
  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;
}

.side {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-size: 2.5em;
  font-weight: 600;
}

.left {
  text-align: left;
  padding-left: 60px;
}

.right {
  text-align: right;
  padding-right: 60px;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.82;
}

.alumni {
  font-size: 11vw;
  font-weight: 900;
  line-height: 0.82;
}

.connect-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 1.05em;
}

.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  font-size: clamp(90px, 11vw, 180px);
  font-weight: 900;
  letter-spacing: -0.06em;
  border-right: 6px solid #ae0101;
  animation:
    typing 4s steps(7, end) infinite,
    blink 0.8s step-end infinite;
}

.gradient-text {
  background: linear-gradient(90deg, #ae0101 41%, #a71f23 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes typing {
  0% {
    width: 0;
  }

  35% {
    width: 7ch;
  }

  65% {
    width: 7ch;
  }

  100% {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.caption-wrapper {
  padding-top: 3rem;
  text-align: center;
}

.caption-text {
  font-family: "Birthstone", cursive;
  font-size: 3vw;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 300;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
  .wrapper {
    display: grid;
    grid-template-rows:
      120px
      1fr
      90px;
  }

  .header {
    justify-content: center;
  }

  .header img {
    width: 240px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    text-align: center;
  }

  .left,
  .right {
    padding: 0;
    font-size: 2.5rem;
  }

  .alumni {
    font-size: 14vw;
  }

  .typing {
    font-size: 14vw;
  }

  .caption-text {
    font-family: "Birthstone", cursive;
    font-size: 4vw;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .header {
    padding: 40px 24px 0;
    justify-content: center;
  }

  .background-video {
    object-position: center center;
  }

  .header img {
    width: 230px;
    max-width: 100%;
  }

  .hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .left {
    order: 1;
    padding: 0;
    margin-bottom: 48px;
    font-size: 2rem;
  }

  .title {
    order: 2;
    margin-bottom: 48px;
  }

  .right {
    order: 3;
    padding: 0;
    font-size: 2rem;
  }

  .alumni {
    font-size: 15vw;
    line-height: 0.82;
  }

  .typing {
    font-size: 15vw;
    line-height: 0.82;
  }

  .caption-text {
    font-family: "Birthstone", cursive;
    font-size: 8vw !important;
  }

  footer {
    padding: 40px 0;
    text-align: center;
    font-size: 16px;
  }
}