:root {
  --bg: #090a1c;
  --surface: #111433;
  --raised: #171a3e;
  --line: #2b3068;
  --ink: #eef0ff;
  --ink-muted: #a9b0e8;
  --ink-faint: #8b93c9;
  --coach: #7ee7ff;
  --on-coach: #0a1e26;
  --runner: #8a92ff;
  --good: #7ce7b0;
  --font: system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 76rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lane: repeating-linear-gradient(90deg, var(--line) 0 1.5rem, transparent 1.5rem 2.25rem);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scrollbar-color: var(--line) var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--coach);
}

::selection {
  background: var(--coach);
  color: var(--on-coach);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--coach);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--coach);
  outline-offset: 4px;
  border-radius: 6px;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-header,
main > section,
.site-footer {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.hero {
  padding-block: clamp(3rem, 6vw, 4rem) clamp(2.5rem, 4vw, 3rem);
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.875rem, 10.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 36rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.jump svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.jump:hover {
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .jump svg {
    transition: transform 0.4s var(--ease-out);
  }

  .jump:hover svg {
    transform: translateY(3px);
  }
}

.strip {
  margin: 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.strip > * {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.strip-caption {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.track {
  --plot: clamp(9.5rem, 19vw, 15rem);
  --label: 3.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-block: 0 clamp(2.5rem, 6vw, 4.5rem);
}

.axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--plot);
  color: var(--ink-faint);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: right;
}

.axis-band {
  color: var(--good);
  font-weight: 600;
}

.moments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background:
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 var(--plot) / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgb(124 231 176 / 0.45) 0 0.5rem, transparent 0.5rem 0.875rem) 0 calc(var(--plot) * 0.4) / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgb(124 231 176 / 0.45) 0 0.5rem, transparent 0.5rem 0.875rem) 0 calc(var(--plot) * 0.6) / 100% 1px no-repeat,
    linear-gradient(rgb(124 231 176 / 0.08), rgb(124 231 176 / 0.08)) 0 calc(var(--plot) * 0.4) / 100% calc(var(--plot) * 0.2) no-repeat;
}

.moment {
  --trace: var(--ink-faint);
  position: relative;
  height: calc(var(--plot) + var(--label));
}

.moment:nth-child(1) {
  --y: 0.3;
  --prev: 0.3;
}

.moment:nth-child(2) {
  --y: 0.5;
  --prev: 0.3;
}

.moment:nth-child(3) {
  --y: 0.82;
  --prev: 0.5;
}

.moment:nth-child(4) {
  --y: 0.48;
  --prev: 0.82;
}

.moment + .moment {
  background: repeating-linear-gradient(180deg, var(--line) 0 0.375rem, transparent 0.375rem 0.75rem) 0 0 / 1px var(--plot) no-repeat;
}

.moment.is-on {
  --trace: var(--good);
}

.moment.is-off {
  --trace: var(--runner);
}

.moment.is-cue {
  background:
    repeating-linear-gradient(180deg, var(--line) 0 0.375rem, transparent 0.375rem 0.75rem) 0 0 / 1px var(--plot) no-repeat,
    linear-gradient(rgb(126 231 255 / 0.07), rgb(126 231 255 / 0.07)) 0 0 / 100% var(--plot) no-repeat;
}

.moment::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--plot) * var(--y));
  height: 3px;
  border-radius: 3px;
  background: var(--trace);
  translate: 0 -50%;
}

.moment::after {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  top: calc(var(--plot) * min(var(--y), var(--prev)));
  height: calc(var(--plot) * (max(var(--y), var(--prev)) - min(var(--y), var(--prev))));
  border-radius: 3px;
  background: var(--trace);
  translate: -50% 0;
}

.status {
  position: absolute;
  top: calc(var(--plot) + 0.75rem);
  left: 0;
  right: 0;
  padding-inline: 0.5rem 0.25rem;
  color: var(--ink-muted);
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  font-weight: 500;
  line-height: 1.3;
}

.moment:first-child .status {
  padding-left: 0;
}

.is-on .status {
  color: var(--good);
}

.cue-tick {
  position: absolute;
  inset: 0 0 auto;
  height: var(--plot);
  padding: 0.625rem 0.25rem 0 0.75rem;
  color: var(--coach);
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  font-weight: 600;
  line-height: 1.3;
}

.cue-tick::before {
  content: "";
  position: absolute;
  left: 62%;
  top: 2.75rem;
  bottom: calc(var(--plot) * (1 - var(--y)) + 0.625rem);
  border-left: 1px dashed var(--coach);
}

.cue-tick::after {
  content: "";
  position: absolute;
  left: 62%;
  top: calc(var(--plot) * var(--y));
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--coach);
  border-radius: 50%;
  background: var(--surface);
  translate: -50% -50%;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.45);
}

.cue {
  margin-block: 0;
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

.cue-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--coach);
  font-size: 0.9375rem;
  font-weight: 600;
}

.cue-label svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.cue-text {
  max-width: 27ch;
  margin-top: 0.75rem;
  color: var(--coach);
  font-size: clamp(1.75rem, 5vw, 3.75rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cue-note {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .cue-tick::after {
    animation: arrive 0.9s var(--ease-out);
  }
}

@keyframes arrive {
  from {
    scale: 0.85;
  }
  to {
    scale: 1;
  }
}

.phases,
.device {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 1rem;
}

.phases h2,
.device h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.phase {
  padding-top: 1.25rem;
  background: var(--lane) 0 0 / 100% 2px no-repeat;
}

.phase h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.phase p {
  max-width: 34rem;
  margin-top: 0.75rem;
}

.phase em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.device {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.device::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 2px;
  background: var(--lane);
}

.device-intro p {
  max-width: 26rem;
  margin-top: 1rem;
}

.facts {
  margin: 0;
}

.fact {
  display: grid;
  gap: 0.375rem 2rem;
  padding: 1.125rem 0;
  border-top: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 1px solid var(--line);
}

.fact dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
  color: var(--ink);
  font-weight: 600;
}

.fact dd {
  max-width: 40rem;
  margin: 0;
}

.online {
  padding: 0.0625rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 52rem) {
  .device {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .fact {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .fact dt {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem 3rem;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.footer-name {
  color: var(--ink);
  font-weight: 700;
}

.footer-domain {
  margin-left: 0.5rem;
}

@media (max-width: 30rem) {
  .track {
    --label: 4.5rem;
    gap: 0.625rem;
  }

  .axis {
    font-size: 0.6875rem;
  }

  .status {
    padding-inline: 0.375rem 0.125rem;
    font-size: 0.75rem;
  }

  .cue-tick {
    padding-left: 0.375rem;
    font-size: 0.75rem;
  }

  .cue-tick::before {
    top: 3rem;
  }
}
