:root {
  --navy: #1c3a4a;
  --mist: #ced9de;
  --ink: #0a0a0a;
  --accent-ink: #ffffff;
  --display: "Figtree", "Segoe UI", sans-serif;
}

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

html,
body.cover-page {
  margin: 0;
  min-height: 100%;
  background: var(--mist);
  overflow: hidden;
  font-family: var(--display);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.cover {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.cover-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/cover-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  transform-origin: 50% 16%;
}

.cover-filter {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px;
  overflow: auto;
}

.cover-logo {
  display: block;
  max-width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.cover-content h1 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 55px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cover-content h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 25px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  opacity: 0.92;
}

.btn-rounded-solid {
  font-family: var(--display);
  font-size: 1em;
  letter-spacing: 0.02em;
  font-weight: 700;
  display: inline-block;
  padding: 20px 50px;
  margin-top: 30px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  outline: none;
  color: var(--accent-ink);
  background-color: var(--navy);
  transition: opacity 0.2s ease;
  opacity: 0.8;
}

.btn-rounded-solid:hover {
  opacity: 1;
}

.btn-rounded-solid:active {
  opacity: 0.3;
}

/* Entrance + ken burns (active in full/auto motion) */
.text-animate {
  animation: text-focus-in 1s cubic-bezier(0.55, 0.085, 0.68, 0.53) 0.5s both;
}

.background-animate {
  animation: background-animate 15s ease-out both;
}

@keyframes text-focus-in {
  0% {
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes background-animate {
  0% {
    transform: scale(1) translateY(0);
    transform-origin: 50% 16%;
  }
  100% {
    transform: scale(1.1) translateY(-15px);
    transform-origin: top;
  }
}

@media (max-width: 640px) {
  .cover-content {
    padding: 50px 24px;
  }

  .cover-content h1 {
    font-size: 30px;
    letter-spacing: -0.04em;
  }

  .cover-content h2 {
    font-size: 20px;
  }

  .btn-rounded-solid {
    padding: 18px 28px;
  }
}

html[data-motion-mode="off"] .text-animate,
html[data-motion-mode="off"] .background-animate {
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-motion-mode="auto"] .text-animate,
  html[data-motion-mode="auto"] .background-animate {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
