@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3f4f6;
  --ink: #11141a;
  --muted: #717680;
  --line: #d8dbe1;
  --blue: #002a91;
  --page-x: clamp(1.25rem, 3.8vw, 4.5rem);
  --page-y: clamp(1.1rem, 2vw, 2rem);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-160%);
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 620;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.masthead {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--page-y) var(--page-x) 0;
  opacity: 0;
  transform: translateY(-0.4rem);
  animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
}

.brand {
  display: inline-flex;
  width: 5.65rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.masthead__edition,
.motion-field__topline p,
.motion-field__bottomline p,
.footer__copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 570;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.masthead__edition {
  text-transform: none;
}

.masthead__links {
  display: flex;
  justify-self: end;
  gap: clamp(1.3rem, 2.5vw, 2.5rem);
}

.masthead__links a {
  position: relative;
  color: #454a52;
  font-size: 0.72rem;
  font-weight: 530;
  text-decoration: none;
}

.masthead__links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.masthead__links a:hover::after,
.masthead__links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.masthead__links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0.4rem;
}

.hero {
  min-height: 0;
  padding: clamp(1rem, 2vh, 1.5rem) var(--page-x) clamp(0.75rem, 1.6vh, 1.25rem);
}

.motion-field {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(31rem, 72svh, 56rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: crosshair;
  opacity: 0;
  animation: field-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.motion-field::before,
.motion-field::after {
  position: absolute;
  z-index: 3;
  height: 1px;
  background: var(--blue);
  content: "";
  pointer-events: none;
}

.motion-field::before {
  top: -1px;
  left: 0;
  width: clamp(3rem, 9vw, 8rem);
}

.motion-field::after {
  right: 0;
  bottom: -1px;
  width: clamp(3rem, 9vw, 8rem);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.motion-field__fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(58%, 42rem);
  height: auto;
  transform: translate(-50%, -50%);
}

.js .motion-field__fallback {
  display: none;
}

.motion-field__topline,
.motion-field__bottomline {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.motion-field__topline {
  top: 0;
  padding: 1.1rem 0;
}

.launch-status__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.launch-status {
  display: grid;
  justify-items: end;
  gap: 0.48rem;
  text-align: right;
}

.launch-status__note {
  color: #959aa3 !important;
  font-size: 0.59rem !important;
  font-weight: 480 !important;
  text-transform: none !important;
  letter-spacing: 0.015em !important;
}

.motion-field__tagline {
  color: var(--ink) !important;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem) !important;
  font-weight: 550 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
}

.motion-field__tagline span {
  color: var(--blue);
}

.motion-field__bottomline {
  bottom: 0;
  padding: 1.1rem 0;
}

.motion-field__word {
  display: flex;
  gap: 1.5rem;
}

.motion-field__word span:first-child {
  color: var(--blue);
}

.status-dot {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--blue);
  animation: status-pulse 3.6s ease-in-out infinite;
}

.footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  margin: 0 var(--page-x);
  padding: 0.9rem 0 var(--page-y);
}

.footer p {
  margin: 0;
}

.footer__copyright {
  justify-self: end;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@media (max-width: 46rem) {
  :root {
    --page-x: clamp(1.05rem, 5vw, 1.5rem);
    --page-y: 1rem;
  }

  .site-shell {
    overflow: visible;
  }

  .masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead__edition,
  .masthead__links a:first-child {
    display: none;
  }

  .brand {
    width: 5rem;
  }

  .hero {
    padding-top: 0.8rem;
  }

  .motion-field {
    min-height: 72svh;
  }

  .motion-field__hint {
    display: none;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 24rem) {
  .launch-status__note {
    display: none;
  }

  .motion-field__topline {
    gap: 1rem;
  }

  .footer__copyright {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #particle-canvas {
    display: none;
  }

  .js .motion-field__fallback {
    display: block;
  }
}
