:root {
  --bg: #121316;
  --ink: #f2f1ee;
  --muted: rgba(242, 241, 238, 0.6);
  --line: rgba(242, 241, 238, 0.15);
  --chip: #ffffff;
  --chip-ink: #0b0b0c;
  --gold: #f0c75e;
  --ivory: #fff9ee;
  --deep-green: #164a3a;
  --green: #3f6f5b;
  --neutral: #b9b1a4;
  --bar: 48px;
  --pad: 20px;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

@media (min-width: 641px) {
  html {
    zoom: 1.5;
  }
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--bar);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 19, 22, 0.95);
}

.wordmark,
.chip {
  display: flex;
  align-items: center;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark {
  padding: 0 var(--pad);
  border-right: 1px solid var(--line);
}

.wordmark img {
  display: block;
  width: 32px;
  height: 32px;
}

.foot img {
  display: block;
  height: 20px;
  width: auto;
}

.wordmark:hover,
.chip:hover,
.nav a:hover {
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: stretch;
  margin-right: auto;
}

.nav a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] span {
  padding: 2px 6px;
  background: var(--green);
}

.chip {
  margin: 13px var(--pad);
  padding: 2px 6px;
  background: var(--chip);
  color: var(--chip-ink);
}

a.chip[href^="mailto:"] {
  background: var(--gold);
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px calc(var(--pad) + 168px) 72px var(--pad);
  text-align: center;
  animation: rise 600ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stage h1 {
  margin-bottom: -12px;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: Archivo, system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.lead {
  margin: 0 0 -12px;
  max-width: 28em;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.scope {
  margin: 0;
  max-width: 46em;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
}

.stage .chip {
  margin: 0;
  padding: 0 24px;
  height: 40px;
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: var(--bar);
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ruler {
  position: fixed;
  top: var(--bar);
  right: 0;
  bottom: var(--bar);
  z-index: 2;
  width: 168px;
  padding: 16px 8px;
  pointer-events: none;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ruler ol {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ruler ol::before {
  content: "";
  position: absolute;
  top: 0.55em;
  right: 0;
  bottom: 0.55em;
  width: 1px;
  background: var(--line);
}

.ruler li {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  padding-right: 16px;
  white-space: nowrap;
}

.ruler li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 1px;
  background: var(--line);
}

.ruler .year::after,
.ruler .now::after {
  width: 14px;
}

.ruler .now {
  color: var(--gold);
}

.ruler .now::after {
  background: var(--gold);
}

.wall {
  --step: 238px;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}

.band.top {
  top: calc(var(--bar) + 16px);
}

.band.bottom {
  bottom: calc(var(--bar) + 16px);
}

.row {
  overflow: hidden;
  padding: 8px 0;
}

.track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.band.top .row:nth-child(1) .track {
  animation-name: drift;
  animation-duration: 64s;
}

.band.top .row:nth-child(2) .track {
  animation-name: drift-shift;
  animation-duration: 108s;
}

.band.bottom .row:nth-child(1) .track {
  animation-name: drift;
  animation-duration: 46s;
  animation-direction: reverse;
}

.band.bottom .row:nth-child(2) .track {
  animation-name: drift-shift;
  animation-duration: 82s;
  animation-direction: reverse;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--step) * -10));
  }
}

@keyframes drift-shift {
  from {
    transform: translateX(calc(var(--step) / -2));
  }
  to {
    transform: translateX(calc(var(--step) * -10.5));
  }
}

.wall span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 190px;
  color: rgba(242, 241, 238, 0.08);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.wall img {
  width: 34px;
  height: 34px;
  opacity: 0.08;
}

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

@media (max-width: 640px) {
  .stage {
    padding-right: var(--pad);
  }

  .ruler {
    display: none;
  }

  .wall {
    --step: 168px;
  }

  .band.top {
    top: 104px;
  }

  .wall span {
    width: 132px;
    font-size: 18px;
  }

  .wall img {
    width: 22px;
    height: 22px;
  }

  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "mark contact"
      "nav nav";
    height: auto;
  }

  .wordmark {
    grid-area: mark;
    min-width: 0;
  }

  .bar > .chip {
    grid-area: contact;
    align-self: center;
    margin: 10px 12px;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    min-height: 40px;
    margin-right: 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
  }

  .nav a {
    padding: 0 12px;
    white-space: nowrap;
  }
}