@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.35f8aec5.woff2") format("woff2");
}
:root {
  --brand: #f94c43;
  --paper: #ffffff;
  color-scheme: only light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--brand);
  color: var(--paper);
  font: 400 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 150px;
  overflow: hidden;
  position: relative;
}

/* Two soft lights drifting behind the content. */
body::before, body::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  pointer-events: none;
}
body::before {
  left: -25vmax;
  top: -30vmax;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  animation: drift-a 18s ease-in-out infinite alternate;
}
body::after {
  right: -30vmax;
  bottom: -35vmax;
  background: radial-gradient(closest-side, rgba(198, 47, 40, 0.75), rgba(198, 47, 40, 0));
  animation: drift-b 22s ease-in-out infinite alternate;
}

/* A strip of pale tiles along the bottom, fading in and sliding slowly sideways. */
.strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: url("/brand/tiles.svg") repeat-x 0 0 / 120px 120px;
  opacity: 0;
  animation: strip-in 1.2s ease-out 1.2s forwards, strip-move 14s linear infinite;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(34px, 11vw, 64px);
  color: var(--paper);
  white-space: nowrap;
}
.lockup span { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both; }
.lockup svg { width: 1.18em; height: 1.18em; flex: none; fill: currentColor; overflow: visible; }
/* The tiles pop in one by one, then stay still. */
.lockup rect { transform-box: fill-box; transform-origin: center; animation: pop 0.55s cubic-bezier(0.3, 1.6, 0.4, 1) both; }
.lockup rect:nth-child(1) { animation-delay: 0.15s; }
.lockup rect:nth-child(2) { animation-delay: 0.3s; }
.lockup rect:nth-child(4) { animation-delay: 0.45s; }
.lockup rect:nth-child(3) { animation-delay: 0.6s; }
.lead {
  margin: 0;
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 600;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}
.dots i { font-style: normal; animation: blink 1.6s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.note {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}
a { color: var(--paper); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 4px; }
a.lockup, a.lockup:hover { text-decoration: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.2); }
}
@keyframes blink {
  0%, 60%, 100% { opacity: 1; }
  30% { opacity: 0.25; }
}
@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(18vmax, 12vmax); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-16vmax, -10vmax); }
}
@keyframes strip-in {
  to { opacity: 1; }
}
@keyframes strip-move {
  to { background-position-x: -120px; }
}

@media (max-height: 520px) {
  body { padding-bottom: 24px; }
  .strip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .strip { opacity: 1; }
}
