@font-face {
  font-family: Fredoka;
  src: url("./assets/fredoka.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f1f4f8;
  --muted: #aeb8c7;
  --blue: #a6c9f3;
  --line: #25303b;
  --display: Fredoka, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --pad: clamp(1.15rem, 4.4vw, 5rem);
  --shell: 97rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 550; line-height: 1.08; }
.shell { width: min(100%, var(--shell)); padding-inline: var(--pad); margin-inline: auto; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid #171f28; }
.header-inner { position: relative; min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark {
  font-family: var(--display);
  font-weight: 690;
  letter-spacing: -.035em;
  padding-right: .045em;
  color: #a7c1e7;
  background: linear-gradient(105deg, #86b0eb 3%, #d9bfa8 56%, #4e87d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mark-small { font-size: 1.62rem; line-height: 1.1; }
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem clamp(.75rem, 1.7vw, 1.65rem);
  font-size: .875rem;
  font-weight: 550;
}
.site-nav a { color: var(--muted); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav .repo-link, .nav-toggle {
  border: 1px solid var(--line);
  border-radius: .4rem;
  padding: .35rem .78rem;
  color: var(--blue);
}
.nav-toggle { display: none; font-size: .875rem; background: #101823; cursor: pointer; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { gap: .5rem .85rem; padding-block: .65rem; }
  .nav-toggle:not([hidden]) + .site-nav {
    position: absolute;
    top: calc(100% + .4rem);
    right: var(--pad);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(25rem, calc(100% - 2 * var(--pad)));
    gap: .3rem .5rem;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: #101823;
    box-shadow: 0 .8rem 2rem rgb(0 0 0 / .45);
  }
  .nav-toggle[aria-expanded="false"]:not([hidden]) + .site-nav { display: none; }
  .nav-toggle:not([hidden]) + .site-nav a {
    border: 0;
    padding: .55rem .6rem;
  }
}

.hero {
  position: relative;
  min-height: min(39rem, 77svh);
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  isolation: isolate;
}
.hero-copy { z-index: 1; padding-block: 3.5rem; }
.eyebrow { color: var(--blue); font-size: .875rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.hero-platform { display: flex; align-items: center; gap: .75rem; }
.hero-platform span { width: .25rem; height: .25rem; border-radius: 50%; background: #d9bfa8; }
.hero h1 { margin-top: .72rem; }
.hero h1 .wordmark { display: table; font-size: clamp(5.5rem, 11.2vw, 10rem); line-height: .95; }
.hero h1 span + span { display: block; margin-top: .7rem; font-size: clamp(1.68rem, 3.12vw, 3.35rem); letter-spacing: -.025em; }
.intro { max-width: 26rem; margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .55rem .95rem;
  border-radius: .45rem;
  font-size: .875rem;
  font-weight: 670;
  white-space: nowrap;
  cursor: pointer;
}
.primary { background: #a9c7ed; border: 1px solid #a9c7ed; color: #08121e; }
.primary:hover { background: #c6ddf8; }
.hero-image { margin-inline: -12% -5%; }
.hero-image img { display: block; width: 100%; height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.showcase { --stage-height: 100dvh; }
.showcase.is-scrubbing .stage-runway { height: calc(var(--stage-height) + var(--travel)); }
.stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
  isolation: isolate;
  height: var(--stage-height);
  overflow: clip;
  background: #000;
}
.is-scrubbing .stage { position: sticky; top: 0; }
.stage-scene {
  grid-row: 1;
  position: relative;
  min-height: 0;
  overflow: clip;
}
.stage-media, .ambient { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.stage-media { object-fit: contain; }
.ambient {
  object-fit: cover;
  transform: scale(1.12);
}
.stage-hint {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  border: 1px solid rgb(255 255 255 / .15);
  border-radius: 999px;
  padding: .42rem .9rem;
  background: rgb(4 9 16 / .72);
  color: var(--ink);
  font-size: .875rem;
  pointer-events: none;
}
.annotation {
  position: absolute;
  left: max(1rem, env(safe-area-inset-left), 3.4vw);
  bottom: max(3.5rem, calc(env(safe-area-inset-bottom) + 2rem));
  width: min(23rem, 42vw);
}
.callout {
  padding: clamp(.85rem, 1.8vw, 1.35rem) clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgb(221 235 255 / .25);
  border-radius: 1.3rem;
  background: linear-gradient(145deg, rgb(33 47 63 / .78), rgb(8 14 23 / .88));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .13), 0 14px 46px rgb(0 0 0 / .46);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}
.callout h3, .feature-item h3 { font-size: clamp(1.3rem, 2.15vw, 1.95rem); }
.callout h3 { color: var(--cue, var(--blue)); }
.callout p, .feature-item p { color: #e3ebf6; margin-top: .45rem; font-size: 1rem; line-height: 1.45; }
.transport {
  grid-row: 2;
  margin: .5rem auto max(.85rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  width: min(34rem, calc(100% - 2rem));
  min-height: 2.45rem;
  padding-inline: .85rem;
  border: 1px solid rgb(255 255 255 / .17);
  border-radius: 999px;
  background: rgb(7 13 21 / .83);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.track { flex: 1; position: relative; height: 1.7rem; }
.track-progress {
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  border-radius: 1px;
  background: #26313d;
  overflow: hidden;
}
.track-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: #9dbdec;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.marker {
  position: absolute;
  top: 0;
  left: var(--at);
  width: 1.7rem;
  height: 1.7rem;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: var(--cue, var(--blue));
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.marker::after { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; }
.marker:hover::after, .marker[aria-current]::after { width: .63rem; height: .63rem; }
@media (aspect-ratio > 1/1) {
  .is-scrubbing .annotation { bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 4.25rem)); }
}
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .is-scrubbing .stage.has-touch-card .annotation {
    top: max(1rem, env(safe-area-inset-top));
    bottom: auto;
  }
}
.still-picker {
  position: absolute;
  inset: max(1rem, env(safe-area-inset-top)) var(--pad) auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.still-picker button {
  border: 1px solid #36465a;
  border-radius: .5rem;
  background: rgb(8 14 23 / .91);
  color: var(--ink);
  padding: .45rem .7rem;
  font-size: .875rem;
  cursor: pointer;
}
.still-picker button[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--blue);
}
.feature-index { padding-block: 1.5rem 4rem; }
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.3rem; }
.feature-item { border-top: 1px solid var(--cue, var(--line)); padding-top: .85rem; }
.feature-index h2 { font-size: clamp(1.45rem, 2.8vw, 2.35rem); }
.footer { border-top: 1px solid #171f28; background: #070b10; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 12rem; padding-block: 2.5rem; }
.footer h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.footer p { color: var(--muted); margin-top: .55rem; }

@media (max-width: 750px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 2.55rem 0 0; }
  .hero h1 .wordmark { font-size: clamp(5rem, 18vw, 8rem); }
  .hero h1 span + span { margin-top: .43rem; }
  .hero-image { margin: -.6rem max(-5%, calc(0px - var(--pad))) .35rem; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px), (max-aspect-ratio: 1/1), (pointer: coarse) and (max-height: 650px) {
  .stage {
    grid-template-rows: minmax(0, 1fr) auto auto minmax(8rem, auto) minmax(0, 1fr);
  }
  .stage-scene {
    grid-row: 2;
    height: min(62.5vw, max(0px, calc(var(--stage-height) - 13rem)));
  }
  .transport, .still-picker {
    grid-row: 3;
    margin: .55rem auto .75rem;
  }
  .still-picker {
    position: static;
    width: calc(100% - 2rem);
  }
  .annotation, .is-scrubbing .annotation, .is-scrubbing .stage.has-touch-card .annotation {
    position: static;
    grid-row: 4;
    width: min(23rem, calc(100% - 2rem));
    align-self: start;
    justify-self: center;
  }
}
@media (max-width: 360px) {
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
