@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #0f172a;
  --deep: #020617;
  --line: #1e293b;
  --muted: #94a3b8;
  --dim: #475569;
  --orange: #fb923c;
}

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

html {
  background: var(--deep);
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--muted);
  font: 400 13px/1.6 "IBM Plex Sans", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Curtain: the hero sits above the footer and scrolls away to uncover it. */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #13203a 0%, var(--navy) 60%);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.45);
}

.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand {
  position: relative;
  margin: 0;
  padding: 0 16px;
}

.brand img,
.brand .logo {
  display: block;
  width: clamp(240px, 38vw, 520px);
  height: auto;
}

/* The intro's node pop overshoots the mark's edge. */
.brand .logo { overflow: visible; }

.lost { text-align: center; }
.lost h1 {
  margin: 40px 0 6px;
  font-size: 15px;
  font-weight: 400;
  color: #e2e8f0;
}
.lost .home {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lost .home:hover,
.lost .home:focus-visible { color: var(--orange); }

.cue {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  width: 24px;
  height: 44px;
  margin-left: -12px;
  display: grid;
  justify-items: center;
}
.cue::before {
  content: "";
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--dim), transparent);
}
.cue span {
  position: absolute;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0; }
  100% { transform: translateY(40px); opacity: 0; }
}

.info {
  position: sticky;
  bottom: 0;
  z-index: 0;
  border-top: 1px solid var(--line);
  padding: 22px 16px max(22px, env(safe-area-inset-bottom));
}

.info address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  max-width: 1100px;
  margin: 0 auto;
  font-style: normal;
  text-align: center;
}

.info address > :not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--dim);
}

.info a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.info a:hover,
.info a:focus-visible { color: var(--orange); }

a:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .info address { flex-direction: column; }
  .info address > :not(:last-child)::after { content: none; }
}

/* Intro: the mark draws itself, then the wordmark sweeps in. */
.mk-left,
.mk-right {
  transform-box: fill-box;
  transform-origin: center;
  animation: mk-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.mk-left { animation-delay: 0.15s; }
.mk-right { animation-delay: 1.35s; }
.mk-zig {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: mk-draw 1s cubic-bezier(0.65, 0, 0.35, 1) 0.45s both;
}
.mk-word,
.mk-tag { animation: mk-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.mk-word { animation-delay: 1.5s; }
.mk-tag { animation-delay: 2s; }
.mk-word path,
.mk-tag path { animation: mk-fade 0.5s ease-out both; }
.mk-word path:nth-child(1) { animation-delay: 1.54s; }
.mk-word path:nth-child(2) { animation-delay: 1.58s; }
.mk-word path:nth-child(3) { animation-delay: 1.62s; }
.mk-word path:nth-child(4) { animation-delay: 1.66s; }
.mk-word path:nth-child(5) { animation-delay: 1.70s; }
.mk-word path:nth-child(6) { animation-delay: 1.74s; }
.mk-word path:nth-child(7) { animation-delay: 1.78s; }
.mk-word path:nth-child(8) { animation-delay: 1.82s; }
.mk-word path:nth-child(9) { animation-delay: 1.86s; }
.mk-word path:nth-child(10) { animation-delay: 1.90s; }
.mk-word path:nth-child(11) { animation-delay: 1.94s; }
.mk-tag path:nth-child(1) { animation-delay: 2.04s; }
.mk-tag path:nth-child(2) { animation-delay: 2.08s; }
.mk-tag path:nth-child(3) { animation-delay: 2.12s; }
.mk-tag path:nth-child(4) { animation-delay: 2.16s; }
.mk-tag path:nth-child(5) { animation-delay: 2.20s; }
.mk-tag path:nth-child(6) { animation-delay: 2.24s; }
.mk-tag path:nth-child(7) { animation-delay: 2.28s; }
.mk-tag path:nth-child(8) { animation-delay: 2.32s; }
.cue { animation: mk-fade 0.8s ease-out 2.6s both; }

@keyframes mk-pop { from { transform: scale(0); } }
@keyframes mk-draw { to { stroke-dashoffset: 0; } }
@keyframes mk-rise { from { transform: translateY(3px); } }
@keyframes mk-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span { animation: none; opacity: 1; }
  .logo *, .cue { animation: none !important; }
  .mk-zig { stroke-dasharray: none; stroke-dashoffset: 0; }
}
