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

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #5f5f5f;
  --mark: #1f2340;
  --tile: #f4f4f5;
  --tile-ring: rgba(10, 10, 10, 0.05);
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-hover: #262626;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #a3a3a3;
    --mark: #fafafa;
    --tile: #161618;
    --tile-ring: rgba(255, 255, 255, 0.06);
    --btn-bg: #fafafa;
    --btn-fg: #0a0a0a;
    --btn-hover: #e5e5e5;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The wall: columns of character cards drifting up and down behind the words. */
.wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  padding: 0 16px;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 5%, #000 22%, #000 80%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 5%, #000 22%, #000 80%, transparent 96%);
}

/* Clears the middle of the wall so the words read cleanly. */
.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 34% 42% at 50% 50%, var(--bg) 0%, var(--bg) 46%, color-mix(in srgb, var(--bg) 72%, transparent) 70%, transparent 100%);
}

.col {
  overflow: hidden;
  min-width: 0;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: drift 42s linear infinite;
  will-change: transform;
}

.c1 .track { animation-duration: 40s; animation-delay: -6s; }
.c2 .track { animation-duration: 46s; animation-delay: -19s; animation-direction: reverse; }
.c3 .track { animation-duration: 37s; animation-delay: -11s; }
.c4 .track { animation-duration: 49s; animation-delay: -29s; animation-direction: reverse; }
.c5 .track { animation-duration: 42s; animation-delay: -3s; }
.c6 .track { animation-duration: 45s; animation-delay: -16s; animation-direction: reverse; }
.c7 .track { animation-duration: 38s; animation-delay: -24s; }

/* Each track holds its cards twice, so moving it by half loops without a seam. */
@keyframes drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-50% - 8px));
  }
}

.card {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-ring);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* The pictures are square with room around the character; filling the card's
   height crops only empty space at the sides. */
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  transform: scale(1.06);
  transform-origin: center 80%;
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  padding: 22px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  border-radius: 8px;
}

.brand:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.mark {
  width: 30px;
  height: 28px;
  color: var(--mark);
  flex: none;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 72px;
  text-align: center;
}

h1 {
  margin: 0;
  max-width: 11.5ch;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 0;
  max-width: 31rem;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

.meta {
  margin: 12px 0 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--btn-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.foot {
  display: flex;
  justify-content: center;
  padding: 22px 28px 26px;
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .c6,
  .c7 {
    display: none;
  }

  .wall::after {
    background: radial-gradient(ellipse 44% 40% at 50% 50%, var(--bg) 0%, var(--bg) 48%, color-mix(in srgb, var(--bg) 72%, transparent) 72%, transparent 100%);
  }
}

@media (max-width: 640px) {
  .wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 10px;
  }

  .track {
    gap: 10px;
  }

  .c4,
  .c5 {
    display: none;
  }

  .card {
    border-radius: 14px;
  }

  .wall::after {
    background: radial-gradient(ellipse 70% 34% at 50% 50%, var(--bg) 0%, var(--bg) 55%, color-mix(in srgb, var(--bg) 75%, transparent) 76%, transparent 100%);
  }

  @keyframes drift {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(calc(-50% - 5px));
    }
  }

  .top {
    padding: 18px 16px;
  }

  .hero {
    padding: 16px 16px 56px;
  }

  .lede {
    margin-top: 20px;
  }
}
