:root {
  --ink: #171717;
  --muted: #696969;
  --paper: #ffffff;
  --soft: #f3f4f2;
  --line: #d8d8d3;
  --play: #f4c542;
  --verify: #eb5b48;
  --learn: #30a77b;
  --contribution: #777777;
  --max: 1180px;
  --narrow: 940px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.hero {
  padding: 76px 24px 36px;
  text-align: center;
}
.hero-inner { max-width: 950px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}
.rule {
  width: min(100%, 690px);
  height: 1px;
  margin: 25px auto;
  background: var(--ink);
}
.authors {
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(940px, 100%);
  margin: 0 auto 20px;
  overflow-x: auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}
.authors > span {
  justify-self: center;
  white-space: nowrap;
}
.authors .author-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.authors .author-link:hover,
.authors .author-link:focus-visible {
  text-decoration-color: currentColor;
}
.authors .author-mark,
.authors .author-note {
  color: var(--contribution);
}
.authors .author-mark {
  margin-left: 1px;
  font-size: 0.72em;
}
.authors .affiliations {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
}
.authors .affiliations sup {
  margin-right: 2px;
  color: var(--contribution);
  font-size: 0.72em;
}
.authors .author-note {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 400;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: white;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--play);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover, .button:focus-visible { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--play); }
.button svg, .back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.button.muted { color: var(--muted); background: var(--soft); box-shadow: none; }

.section { padding: 80px 24px; }
.section:nth-of-type(even) { background: var(--soft); }
.narrow { width: min(100%, var(--narrow)); margin: 0 auto; }
.wide { width: min(100%, var(--max)); margin: 0 auto; }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .prose h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}
.section-heading > p:last-child { max-width: 700px; margin: 12px 0 0; color: var(--muted); }
.heading-rule { width: 80px; height: 4px; margin: 13px 0 24px; background: var(--verify); }

.demo-lead { padding-top: 20px; background: white !important; }
.pipeline-video {
  display: block;
  width: min(calc(100vw - 48px), 1140px);
  height: auto;
  margin-left: 50%;
  transform: translateX(-50%);
  border: 1px solid #b9b9b4;
  border-radius: 5px;
  background: #111;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  width: min(100%, 760px);
  margin: 0 auto;
}
.contents {
  --scroll-progress: 0;
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 10;
  display: grid;
  gap: 3px;
  width: 80px;
  padding: 11px 7px 10px;
  border: 1px solid var(--ink);
  border-left: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 3px 3px 0 var(--play);
  opacity: 0;
  pointer-events: none;
  transform: translate(-8px, -50%);
  visibility: hidden;
  font-size: 11px;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.contents.is-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); visibility: visible; }
.contents::before, .contents::after {
  position: absolute;
  top: 34px;
  left: 8px;
  width: calc(100% - 16px);
  height: 3px;
  border-radius: 3px;
  content: "";
}
.contents::before { background: var(--line); }
.contents::after { background: var(--verify); transform: scaleX(var(--scroll-progress)); transform-origin: left; }
.contents strong {
  margin-bottom: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contents a {
  position: relative;
  padding: 3px 4px;
  border-left: 3px solid transparent;
  color: var(--muted);
  line-height: 1.35;
  text-decoration: none;
}
.contents a:hover { color: var(--ink); background: var(--soft); }
.contents a[aria-current="location"] { border-color: var(--verify); color: var(--ink); background: var(--soft); font-weight: 700; }
.prose { grid-column: auto; }
.prose p { margin: 0 0 20px; }
.prose .lead { margin-bottom: 40px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.35; }
mark { padding: 0 3px; background: linear-gradient(transparent 62%, var(--play) 62%); }
.wide-figure { margin: 34px 0 70px; }
.wide-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
}
figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.filter {
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 3px 3px 0 0;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 700;
}
.filter.active { border-color: var(--ink); color: white; background: var(--ink); }
.method-propose-figure {
  margin: 0 0 28px;
}
.method-propose-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.method-stage {
  display: grid;
  align-items: start;
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}
.method-stage h3, .result-gallery-heading h3, .detail-grid h3, .analysis-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}
.method-stage p { color: var(--muted); font-size: 14px; }
.method-stage .panel-number { margin: 0 0 18px; color: var(--verify); font-size: 44px; font-weight: 700; }

.result-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 35px 0 55px;
}
.result-group {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--ink);
  background: white;
}
.result-group-heading {
  min-height: 190px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--ink);
}
.result-group-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.12;
}
.result-group-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.metrics article { padding: 25px 20px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { font-family: Georgia, "Times New Roman", serif; font-size: 47px; line-height: 1; }
.metrics strong { margin-left: 3px; font-size: 15px; }
.metrics p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.result-gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 20px;
}
.result-gallery-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.filter { border-radius: 3px; }
.video-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 34px 20px; }
.result-video[data-kind="real"] { grid-column: span 3; }
.result-video[data-kind="sim"] { grid-column: span 2; }
.result-video[hidden] { display: none; }
.result-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b9b9b4;
  border-radius: 5px;
  background: #111;
}
.result-video h4 { margin: 12px 0 0; font-size: 15px; line-height: 1.3; }
.result-video p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.real-world-figure { margin-bottom: 0; }

.team-diagram { position: relative; overflow: hidden; background: white; }
.team-diagram img { width: 100%; }
.team-highlight {
  position: absolute;
  z-index: 2;
  border: clamp(2px, .25vw, 4px) solid var(--verify);
  background: rgba(235, 91, 72, .035);
  box-shadow: 0 0 0 4px rgba(235, 91, 72, .14), 3px 3px 0 rgba(244, 197, 66, .85);
  opacity: 0;
  pointer-events: none;
  transition: left 620ms ease, top 620ms ease, width 620ms ease, height 620ms ease, opacity 260ms ease;
}
.team-diagram.is-active .team-highlight { opacity: 1; }
.team-diagram.is-active .team-highlight.is-hidden { opacity: 0; }

.team-cycle { position: relative; padding-top: 48px; }
.team-cycle-return {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 46px;
  color: var(--muted);
  pointer-events: none;
}
.team-cycle-return span {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 2;
  padding: 0 8px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.team-cycle-return svg { display: block; width: 100%; height: 46px; overflow: visible; }
.team-cycle-path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
  vector-effect: non-scaling-stroke;
}
.team-cycle-arrowhead { fill: var(--muted); transition: fill 180ms ease; }
.team-cycle.is-iterating .team-cycle-path { animation: team-cycle-flow 900ms ease-out; }
.team-cycle.is-iterating .team-cycle-arrowhead { fill: var(--verify); animation: team-cycle-arrow-pulse 900ms ease-out; }
.team-cycle.is-iterating .team-cycle-return span { animation: team-cycle-label-pulse 900ms ease-out; }

@keyframes team-cycle-flow {
  0% { stroke: var(--muted); stroke-dashoffset: 70; opacity: .45; }
  45%, 100% { stroke: var(--verify); stroke-dashoffset: 0; opacity: 1; }
}
@keyframes team-cycle-arrow-pulse {
  0%, 100% { opacity: .65; }
  55% { opacity: 1; }
}
@keyframes team-cycle-label-pulse {
  0%, 100% { color: var(--muted); }
  45% { color: var(--verify); background: #fff6dc; }
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}
.detail-grid article {
  min-height: 240px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  transition: background 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}
.detail-grid article.is-active { background: #fffaf0; box-shadow: inset 0 4px 0 var(--verify); transform: translateY(-4px); }
.team-step-number { display: block; margin-bottom: 10px; color: var(--verify); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; line-height: 1; }
.detail-grid b { display: inline-block; margin-bottom: 14px; color: var(--verify); font-size: 11px; text-transform: uppercase; }
.detail-grid p { color: var(--muted); font-size: 14px; }

.analysis-row {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.6fr);
  gap: 50px;
  align-items: center;
  padding: 55px 0;
  border-top: 1px solid var(--line);
}
.analysis-row.reverse { grid-template-columns: minmax(0, 1.6fr) minmax(230px, .75fr); }
.analysis-row.reverse .analysis-copy { order: 2; }
.analysis-copy p { color: var(--muted); font-size: 14px; }
.analysis-index {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 20px;
  border: 1px solid var(--ink);
  background: var(--learn);
  font-size: 13px;
  font-weight: 700;
}
.analysis-row figure img { width: 100%; border: 1px solid var(--line); background: white; }
.citation-box { position: relative; border: 1px solid var(--ink); background: #202220; color: #f3f4f2; }
.citation-box pre {
  margin: 0;
  padding: 30px;
  overflow-wrap: anywhere;
  font-size: 13px;
  white-space: pre-wrap;
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: white;
  background: var(--ink);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--ink);
  font-size: 12px;
}
footer div { display: grid; }
footer span, footer p { color: var(--muted); }
footer p { max-width: 460px; margin: 0; text-align: right; }

@media (max-width: 900px) {
  .section { padding: 62px 20px; }
  .team-cycle { padding-top: 0; }
  .team-cycle-return { display: none; }
  .result-groups { grid-template-columns: 1fr; }
  .result-group-heading { min-height: 0; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .result-video[data-kind] { grid-column: span 1; }
  .method-grid, .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-stage { min-height: 230px; }
  .analysis-row, .analysis-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .analysis-row.reverse .analysis-copy { order: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .contents { display: none; }
  .hero { padding: 52px 17px 24px; }
  .hero h1 { font-size: 47px; }
  .authors { gap: 7px; font-size: 13px; line-height: 1.45; }
  .authors > span { justify-self: start; }
  .authors .author-note { font-size: 11px; }
  .publication-links { gap: 7px; }
  .button { min-height: 38px; padding: 5px 9px; font-size: 12px; }
  .prose .lead { font-size: 22px; }
  .method-grid, .detail-grid, .result-groups {
    grid-auto-flow: column;
    grid-auto-columns: clamp(170px, 48vw, 220px);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 12px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--verify) var(--soft);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .method-grid::-webkit-scrollbar, .detail-grid::-webkit-scrollbar, .result-groups::-webkit-scrollbar { height: 5px; }
  .method-grid::-webkit-scrollbar-track, .detail-grid::-webkit-scrollbar-track, .result-groups::-webkit-scrollbar-track { background: var(--soft); }
  .method-grid::-webkit-scrollbar-thumb, .detail-grid::-webkit-scrollbar-thumb, .result-groups::-webkit-scrollbar-thumb { background: var(--verify); border-radius: 5px; }
  .method-stage, .detail-grid article, .result-group { scroll-snap-align: start; }
  .result-groups { grid-auto-columns: clamp(190px, 52vw, 250px); }
  .result-group, .result-group-heading, .metrics, .metrics article { min-width: 0; }
  .method-stage { min-height: 225px; padding: 13px; }
  .detail-grid article { min-height: 235px; padding: 13px; }
  .method-stage h3, .detail-grid h3 { font-size: 20px; }
  .method-stage .panel-number { margin-bottom: 8px; font-size: 30px; }
  .team-step-number { margin-bottom: 5px; font-size: 22px; }
  .detail-grid b { margin-bottom: 7px; font-size: 9px; }
  .method-stage p:not(.panel-number), .detail-grid p { margin: 7px 0 0; font-size: 11px; line-height: 1.4; }
  .result-group-heading { padding: 13px; }
  .result-group-heading h3 { font-size: 20px; }
  .result-group-heading > p:last-child { margin-top: 7px; font-size: 11px; line-height: 1.4; }
  .metrics article { padding: 13px 8px; }
  .metrics span { font-size: 29px; }
  .metrics strong { font-size: 10px; }
  .metrics p { margin-top: 6px; font-size: 9px; line-height: 1.35; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .result-gallery-heading { align-items: start; flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
  .detail-grid article.is-active { transform: none; }
  .section-heading h2, .prose h2 { font-size: 36px; }
  footer { flex-direction: column; }
  footer p { text-align: left; }
}
