:root {
  --paper: #f7f7f4;
  --panel: rgba(255, 255, 255, 0.66);
  --ink: #050505;
  --muted: #60605c;
  --soft: #d4d4cf;
  --hairline: #a2a29c;
  --line: #111111;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI Variable Display", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --brand: "Didot", "Bodoni 72", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.026) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(180deg, #fbfbfa 0%, var(--paper) 48%, #efefeb 100%);
  font-family: var(--mono);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(0, 0, 0, 0.035) 42.2% 42.8%, transparent 43%),
    radial-gradient(circle at 72% 18%, rgba(0, 0, 0, 0.055), transparent 24%);
  opacity: 0.75;
  pointer-events: none;
  animation: ambientShift 18s ease-in-out infinite alternate;
}

body.menu-is-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.stage {
  width: 100%;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 54px);
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  grid-template-rows: 76px 1fr auto;
  width: min(1180px, 100%);
  min-height: calc(100dvh - clamp(36px, 8vw, 108px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: shellIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 0 48%, rgba(0, 0, 0, 0.055) 50%, transparent 52%);
  opacity: 0;
  pointer-events: none;
  animation: shellGlint 5s ease-in-out 900ms infinite;
}

.site-shell > * {
  position: relative;
  z-index: 1;
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 158px 1fr auto;
  align-items: center;
  padding: 0 42px;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  font-family: var(--brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-game {
  gap: 0;
}

.brand-letter {
  display: inline-grid;
  place-items: center;
  min-width: 0.62em;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  line-height: 0.92;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    border-color 140ms ease;
}

.brand-game:hover .brand-letter,
.brand-game:focus-within .brand-letter {
  border-color: rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.brand-letter:hover,
.brand-letter:focus-visible {
  outline: 0;
  background: var(--ink);
  color: var(--paper);
}

.brand-letter.is-entering {
  background: var(--ink);
  color: var(--paper);
  transform: scale(0.86);
}

.desktop-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  margin-right: 42px;
  font-size: 13px;
}

.desktop-nav a,
.menu-button,
.close-menu,
.accordion-trigger {
  -webkit-tap-highlight-color: transparent;
}

.desktop-nav a,
.site-footer a,
.overlay-nav a,
.overlay-links a {
  text-underline-offset: 4px;
}

.desktop-nav a:hover,
.site-footer a:hover,
.project-row:hover strong,
.overlay-nav a:hover,
.overlay-links a:hover {
  text-decoration: underline;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.menu-lines {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 15px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.menu-lines::before {
  content: "";
  position: absolute;
  top: 4.5px;
  left: 0;
  width: 17px;
  height: 2px;
  background: var(--ink);
}

.side-rail {
  grid-row: 2 / 3;
  display: grid;
  align-content: center;
  gap: 76px;
  padding-left: 42px;
  font-size: 13px;
}

.side-rail ol {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rail li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.side-rail .is-current {
  color: var(--ink);
}

.side-rail .is-current::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--ink);
  animation: blinkBlock 1.6s steps(2, end) infinite;
}

.frame-meter {
  display: grid;
  gap: 10px;
  white-space: nowrap;
}

.meter-blocks {
  display: flex;
  gap: 4px;
}

.meter-blocks i,
.meter-blocks b {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
}

.meter-blocks i {
  background: var(--ink);
}

.site-content {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  width: min(820px, calc(100% - 42px));
  min-width: 0;
  padding: 30px 0 28px;
}

.hero {
  display: grid;
  gap: 20px;
}

.hero-heading {
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.hero-heading h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(54px, 6.2vw, 76px);
  font-weight: 520;
  line-height: 0.92;
  letter-spacing: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(260px, 1fr);
  gap: 38px;
  align-items: start;
}

.age-line,
.descriptor,
.hero-statement {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.age-line {
  font-variant-numeric: tabular-nums;
}

.age-line span:first-child {
  display: inline-block;
  min-width: 93px;
}

.descriptor {
  margin-top: 6px;
}

.hero-statement {
  max-width: 48ch;
}

.wordmark-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: 25px;
}

.pixel-word {
  --cell: clamp(8px, 1.1vw, 14px);
  --gap: 1px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  gap: var(--gap);
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}

.pixel-cell {
  width: var(--cell);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.48);
  background: #f7f7f4;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

.pixel-cell.on {
  border-color: #050505;
  background: #050505;
}

.pixel-cell.shade-1 {
  background: #d1d1cc;
}

.pixel-cell.shade-2 {
  background: #9d9d98;
}

.pixel-cell.shade-3 {
  background: #686864;
}

.pixel-cell.spark {
  transform: translateY(-1px);
  opacity: 0.72;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip article {
  min-width: 0;
  min-height: 64px;
  padding: 13px 16px 12px 0;
}

.signal-strip article + article {
  padding-left: 16px;
  border-left: 1px solid var(--soft);
}

.signal-strip span,
.motion-board span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.signal-strip strong,
.motion-board strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.motion-board {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.ticker {
  position: relative;
  display: flex;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 28px;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), transparent);
}

.ticker span {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 0 9px 18px;
  color: var(--ink);
  font-size: 11px;
  animation: tickerMove 18s linear infinite;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-grid article {
  position: relative;
  min-width: 0;
  min-height: 82px;
  padding: 15px 20px 15px 0;
}

.status-grid article:first-child span {
  color: var(--ink);
}

.status-grid article:first-child {
  padding-left: 14px;
  border-left: 3px solid var(--ink);
}

.status-grid article:first-child strong {
  font-size: 14px;
}

.status-grid article + article {
  padding-left: 20px;
  border-left: 1px solid var(--soft);
}

.status-grid p {
  margin: 9px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.accordion {
  display: grid;
  margin-top: 26px;
}

.accordion-item {
  border-top: 1px solid var(--line);
}

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

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.accordion-symbol {
  font-size: 21px;
  line-height: 1;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 190ms ease;
}

.accordion-panel > p {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  margin: 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel > p {
  padding: 10px 0 22px;
}

.timeline-list {
  margin-top: 22px;
}

.timeline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}

.timeline-heading h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1;
}

.timeline-heading a {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.project-row {
  display: grid;
  grid-template-columns: 42px 170px minmax(0, 1fr) 84px 18px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--hairline);
  column-gap: 10px;
}

.row-num {
  color: var(--muted);
}

.project-row strong {
  font-size: 15px;
}

.row-copy {
  max-width: 400px;
  font-size: 11px;
  line-height: 1.3;
}

.project-row time {
  font-size: 11px;
  text-align: right;
}

.row-arrow {
  font-size: 18px;
  text-align: right;
}

.site-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 61px;
  padding: 0 42px;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer > span:last-child {
  justify-self: end;
}

.site-overlay {
  position: fixed;
  top: clamp(18px, 4vw, 54px);
  right: clamp(18px, 4vw, 54px);
  z-index: 20;
  display: grid;
  align-content: start;
  width: min(360px, calc(100vw - 36px));
  min-height: min(690px, calc(100dvh - 36px));
  padding: 105px 24px 28px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 16px 24px 56px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.site-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.game-portal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.88);
  color: #f7f7f4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.game-portal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.blackhole {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.blackhole span {
  position: absolute;
  width: min(72vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 247, 244, 0.72);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.05) rotate(0deg);
}

.game-portal.is-open .blackhole span {
  animation: blackholeOpen 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.blackhole span:nth-child(2) {
  animation-delay: 70ms;
}

.blackhole span:nth-child(3) {
  animation-delay: 130ms;
}

.blackhole span:nth-child(4) {
  animation-delay: 190ms;
}

.game-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  width: min(440px, 100%);
  padding: 18px;
  border: 1px solid rgba(247, 247, 244, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 40px 40px,
    #050505;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(8px) scale(0.98);
  transition: transform 180ms ease;
}

.game-portal.is-open .game-panel {
  transform: translateY(0) scale(1);
}

.game-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.game-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(247, 247, 244, 0.62);
  font-size: 11px;
}

.game-top h2 {
  margin: 0;
  font-family: var(--brand);
  font-size: 34px;
  line-height: 0.95;
}

.game-actions {
  display: flex;
  gap: 8px;
}

.game-actions button,
.game-controls button {
  border: 1px solid rgba(247, 247, 244, 0.72);
  background: transparent;
  color: #f7f7f4;
  cursor: pointer;
}

.game-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.game-actions button:hover,
.game-actions button:focus-visible,
.game-controls button:hover,
.game-controls button:focus-visible {
  outline: 0;
  background: #f7f7f4;
  color: #050505;
}

.game-panel p,
.game-score {
  margin: 0;
  color: rgba(247, 247, 244, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.game-score {
  color: #f7f7f4;
}

.game-canvas,
.game-board {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 247, 244, 0.64);
  background: #050505;
}

.game-canvas {
  display: block;
  image-rendering: pixelated;
}

.game-board {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 7px;
  padding: 7px;
}

.game-board.is-visible {
  display: grid;
}

.game-tile {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(247, 247, 244, 0.42);
  background: rgba(247, 247, 244, 0.08);
  color: #f7f7f4;
  font-size: clamp(15px, 8vw, 28px);
  font-weight: 700;
}

.game-tile[data-value="0"] {
  color: transparent;
}

.game-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.game-controls button {
  min-height: 42px;
  font-size: 18px;
}

.close-menu {
  position: absolute;
  top: 28px;
  right: 25px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.close-menu::before,
.close-menu::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 7px;
  width: 17px;
  height: 2px;
  background: var(--ink);
}

.close-menu::before {
  transform: rotate(45deg);
}

.close-menu::after {
  transform: rotate(-45deg);
}

.overlay-nav,
.overlay-links {
  display: grid;
}

.overlay-nav {
  gap: 29px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 650;
}

.overlay-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  gap: 27px;
  font-size: 15px;
}

.overlay-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-links span {
  position: relative;
  width: 15px;
  height: 15px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.overlay-links span::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.overlay-links span::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 12px;
  height: 2px;
  background: var(--ink);
  transform: rotate(-45deg);
  transform-origin: right center;
}

@keyframes ambientShift {
  from {
    transform: translate3d(-1%, -1%, 0);
  }

  to {
    transform: translate3d(1%, 1%, 0);
  }
}

@keyframes shellIn {
  from {
    transform: translateY(10px) scale(0.992);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes shellGlint {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translateX(-70%);
  }

  68% {
    opacity: 0.22;
  }

  82% {
    opacity: 0;
    transform: translateX(70%);
  }
}

@keyframes blinkBlock {
  50% {
    opacity: 0.25;
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes blackholeOpen {
  0% {
    opacity: 0;
    transform: scale(0.02) rotate(0deg);
  }

  35% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.36) rotate(220deg);
  }
}

@media (max-width: 900px) {
  .stage {
    padding: 0;
  }

  .site-shell {
    display: block;
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
  }

  .site-shell::after {
    display: none;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    min-height: 82px;
    padding: 0 18px;
  }

  .brand-link {
    font-size: 25px;
    font-weight: 700;
  }

  .desktop-nav,
  .side-rail {
    display: none;
  }

  .menu-button span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-content {
    width: 100%;
    padding: 0 18px 34px;
  }

  .hero {
    gap: 23px;
  }

  .hero-heading {
    gap: 9px;
  }

  .hero-heading h1 {
    display: none;
  }

  .eyebrow {
    font-size: 11px;
  }

  .intro-grid {
    display: block;
  }

  .hero-statement {
    margin-top: 20px;
    max-width: 42ch;
  }

  .age-line,
  .descriptor,
  .hero-statement {
    font-size: 12px;
    line-height: 1.6;
  }

  .age-line span:first-child {
    min-width: 79px;
  }

  .wordmark-wrap {
    margin-top: 26px;
  }

  .pixel-word {
    --cell: clamp(4.4px, 1.35vw, 5.35px);
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .signal-strip article {
    min-height: 68px;
    padding: 12px 12px 12px 0;
  }

  .signal-strip article:nth-child(odd) {
    border-left: 0;
  }

  .signal-strip article:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid var(--soft);
  }

  .signal-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--soft);
  }

  .signal-strip strong {
    max-width: 16ch;
  }

  .motion-board {
    margin-top: 22px;
  }

  .ticker span {
    animation-duration: 16s;
  }

  .status-grid {
    display: block;
  }

  .status-grid article {
    min-height: auto;
    padding: 14px 0;
  }

  .status-grid article + article {
    padding-left: 0;
    border-top: 1px solid var(--soft);
    border-left: 0;
  }

  .accordion {
    margin-top: 28px;
  }

  .accordion-trigger {
    min-height: 40px;
    font-size: 12px;
  }

  .accordion-symbol {
    font-size: 16px;
  }

  .accordion-panel > p {
    max-width: 36ch;
    font-size: 12px;
    line-height: 1.6;
  }

  .timeline-heading h2 {
    font-size: 17px;
  }

  .timeline-heading a {
    display: none;
  }

  .project-row {
    grid-template-columns: 32px minmax(0, 1fr) 70px 16px;
    min-height: 50px;
    column-gap: 0;
    font-size: 11px;
  }

  .project-row strong {
    font-size: 13px;
  }

  .row-copy {
    display: none;
  }

  .project-row time {
    font-size: 11px;
  }

  .site-footer {
    display: none;
  }

  .site-overlay {
    inset: 0;
    width: auto;
    min-height: 100dvh;
    padding: 108px 22px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .game-portal {
    padding: 12px;
  }

  .game-panel {
    padding: 14px;
  }

  .game-top h2 {
    font-size: 30px;
  }
}

@media (max-width: 390px) {
  .signal-strip strong,
  .motion-board strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-portal.is-open .blackhole span {
    animation: none;
  }
}
