@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #11120f;
  --muted: #5f6258;
  --paper: #f5f5ed;
  --white: #fffef7;
  --signal: #f3ff63;
  --signal-strong: #dfff00;
  --orange: #ff6737;
  --line: rgba(17, 18, 15, 0.17);
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: -9999px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--signal);
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 237, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 29px;
  height: 29px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.brand-mark span:nth-child(2) {
  transform: translate(3px, -7px);
}

.brand-mark span:nth-child(3) {
  transform: translate(-8px, 3px);
}

nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.construction-banner {
  display: grid;
  min-height: clamp(190px, 16vw, 260px);
  place-items: center;
  padding: clamp(1.4rem, 3vw, 2.6rem) 4vw;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    var(--signal) 0 28px,
    var(--signal) 28px 42px,
    var(--ink) 42px 70px
  );
  color: var(--ink);
  text-transform: uppercase;
}

.construction-sign {
  position: relative;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: center;
  width: min(92vw, 980px);
  padding: clamp(1rem, 2vw, 1.55rem) clamp(1.2rem, 3vw, 2.5rem);
  border: clamp(4px, 0.45vw, 7px) solid var(--ink);
  background: #ff9d22;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.2deg);
}

.construction-sign::before,
.construction-sign::after {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #d7d7c9;
  content: "";
}

.construction-sign::before {
  top: 10px;
  left: 10px;
}

.construction-sign::after {
  right: 10px;
  bottom: 10px;
}

.construction-symbol {
  position: relative;
  flex: 0 0 auto;
  width: clamp(62px, 8vw, 105px);
  aspect-ratio: 1;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--signal);
  transform: rotate(45deg);
}

.construction-symbol::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  content: "!";
  transform: rotate(-45deg);
}

.construction-copy {
  min-width: 0;
}

.construction-copy strong {
  display: block;
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
  white-space: nowrap;
}

.construction-copy small {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-github {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(4rem, 8vw, 8rem) 4vw;
  overflow: hidden;
}

.eyebrow,
.section-index {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 103, 55, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 2.2rem;
  font-size: clamp(4.3rem, 8vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.81;
}

h1 span {
  position: relative;
  display: inline-block;
  z-index: 0;
}

h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.08em;
  left: -0.02em;
  height: 0.28em;
  background: var(--signal);
  content: "";
  transform: rotate(-1deg);
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 2rem;
  color: #34362f;
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.button-primary:hover {
  color: var(--ink);
  background: var(--signal);
}

.button-muted {
  color: #777a6f;
  border-color: #adafa4;
  cursor: not-allowed;
}

.hero-media {
  position: relative;
  width: min(100%, 500px);
  min-height: 0;
  justify-self: center;
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  transform: rotate(1.1deg);
  box-shadow: 18px 18px 0 var(--signal);
}

.hero-media::before {
  position: absolute;
  z-index: -1;
  inset: -12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(243, 255, 99, 0.48), transparent 65%);
  content: "";
  filter: blur(24px);
}

.media-topline,
.media-caption,
.video-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-topline {
  padding: 0 0 0.85rem;
  color: var(--white);
}

.hero-media > img,
.hero-media > video {
  width: 100%;
  aspect-ratio: 832 / 480;
  border: 1px solid #44463e;
  object-fit: cover;
  image-rendering: auto;
}

.hero-media > video {
  aspect-ratio: 1;
  background: #080907;
  cursor: pointer;
  object-fit: contain;
}

.media-caption {
  justify-content: flex-start;
  gap: 0.6rem;
  padding-top: 0.85rem;
  color: #cfd0c8;
  text-transform: none;
}

.trace-key {
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: #0788ff;
}

.statement {
  padding: clamp(4rem, 8vw, 8rem) 4vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.statement p,
.statement strong {
  display: block;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.statement p {
  color: #888b80;
}

.statement strong {
  font-weight: 700;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 4vw;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.7fr;
  gap: clamp(2rem, 6vw, 8rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.section-heading > p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.embodiment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.embodiment-grid article {
  position: relative;
  min-height: 360px;
  padding: 1.5rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 254, 247, 0.32);
}

.card-number {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.embodiment-grid h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.embodiment-grid p {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.embodiment-icon {
  width: 150px;
  height: 150px;
  margin: 4rem auto 3rem;
  object-fit: contain;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: clamp(4rem, 8vw, 8rem);
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 1.2rem;
  border: 1px solid var(--ink);
}

.pipeline-step.active {
  background: var(--signal);
}

.pipeline-step span {
  margin-bottom: auto;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.pipeline-step strong {
  font-size: 1rem;
}

.pipeline-step small {
  margin-top: 0.3rem;
  color: var(--muted);
}

.pipeline-arrow {
  display: grid;
  width: 4vw;
  place-items: center;
  font-family: var(--mono);
}

.results-section {
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
}

.section-heading.light .section-index,
.section-heading.light > p:last-child {
  color: #b7b9af;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.video-card {
  overflow: hidden;
  border: 1px solid #484b42;
  background: #1a1b17;
}

.video-label {
  padding: 0.85rem 1rem;
  color: #c9cbc0;
  border-bottom: 1px solid #484b42;
}

.video-label span:first-child {
  color: var(--signal);
}

.result-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #484b42;
}

.result-pane {
  min-width: 0;
  background: #080907;
}

.result-pane-ours {
  box-shadow: inset 0 0 0 2px var(--signal);
}

.result-role {
  display: block;
  padding: 0.72rem 1rem;
  color: #d6d8ce;
  border-bottom: 1px solid #484b42;
  background: #11120f;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-pane-ours .result-role {
  color: var(--ink);
  background: var(--signal);
}

.result-pane video {
  width: 100%;
  aspect-ratio: 832 / 480;
  background: #080907;
  object-fit: cover;
  cursor: pointer;
}

.video-card p {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.85rem;
}

.video-note {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 2rem 0 0;
  color: #8e9187;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.video-note span {
  color: var(--orange);
}

.resource-list {
  border-top: 1px solid var(--ink);
}

.resource-list > * {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 112px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.resource-list a {
  transition: padding 180ms ease;
}

.resource-list a:hover {
  padding-right: 1rem;
  padding-left: 1rem;
  background: var(--signal);
}

.resource-id,
.resource-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.resource-list small {
  color: var(--muted);
  font-size: 0.82rem;
}

.resource-status {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.resource-status.live {
  border-color: var(--ink);
  color: var(--ink);
}

.citation {
  display: grid;
  grid-template-columns: 180px 1fr 0.6fr;
  gap: clamp(1.5rem, 5vw, 6rem);
  margin-top: clamp(5rem, 9vw, 10rem);
  padding: 2rem;
  border: 1px solid var(--ink);
  background: var(--white);
}

.citation > div {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.citation code {
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
}

.citation p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

footer {
  display: grid;
  grid-template-columns: 0.5fr 1fr 0.7fr;
  gap: 2rem;
  align-items: end;
  padding: 4rem 4vw;
  border-top: 1px solid #383a34;
  color: var(--white);
  background: var(--ink);
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  border-color: var(--white);
}

.footer-brand .brand-mark span {
  background: var(--white);
}

footer p {
  max-width: 480px;
  margin-bottom: 0;
  color: #969990;
  font-size: 0.84rem;
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
  }

  .hero-media {
    min-height: auto;
    transform: none;
  }

  .section-heading {
    grid-template-columns: 0.35fr 1fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .citation {
    grid-template-columns: 140px 1fr;
  }

  .citation p {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .construction-banner {
    min-height: 190px;
    padding: 1.2rem 4vw 1.6rem;
  }

  .construction-sign {
    gap: 1rem;
    width: 90vw;
    padding: 1.2rem 1rem;
    box-shadow: 7px 7px 0 var(--ink);
    transform: rotate(-1deg);
  }

  .construction-symbol {
    width: 58px;
    border-width: 4px;
  }

  .construction-copy strong {
    font-size: clamp(2rem, 8.4vw, 2.5rem);
    line-height: 0.84;
    white-space: normal;
  }

  .construction-copy small {
    max-width: 220px;
    margin-top: 0.5rem;
    font-size: 0.54rem;
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 66px;
  }

  nav a:not(.nav-github) {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 4.5rem 5vw 5rem;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 6rem);
  }

  .hero-media {
    padding: 0.7rem;
    box-shadow: 9px 9px 0 var(--signal);
  }

  .hero-media > img,
  .hero-media > video {
    min-height: 180px;
  }

  .media-caption {
    font-size: 0.56rem;
  }

  .section {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-heading > p:last-child {
    grid-column: 1;
  }

  .section-heading h2 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .embodiment-grid {
    grid-template-columns: 1fr;
  }

  .embodiment-grid article {
    min-height: 300px;
  }

  .embodiment-icon {
    width: 135px;
    height: 135px;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-arrow {
    width: auto;
    height: 35px;
    transform: rotate(90deg);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .result-pair {
    grid-template-columns: 1fr;
  }

  .resource-list > * {
    grid-template-columns: 42px 1fr;
  }

  .resource-status {
    grid-column: 2;
    justify-self: start;
  }

  .citation {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .citation p {
    grid-column: 1;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  footer > div {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
