:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #0b0f18;
  --muted: #5b6472;
  --line: #d9dee7;
  --line-strong: #b8c0cc;
  --accent: #0c6b58;
  --accent-dark: #084c41;
  --progress: #d92d20;
  --progress-soft: #fff1ef;
  --code: #111827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.55;
  background: var(--bg);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar nav a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-video {
  position: relative;
  width: 100%;
  height: min(56.25vw, calc(100vh - 64px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000000;
}

.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  opacity: 0.92;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px));
  text-align: left;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0));
}

.hero-copy-block {
  max-width: 920px;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-overlay .kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-overlay h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.15rem, 2.25vw, 2.15rem);
  font-weight: 400;
  line-height: 1.02;
  white-space: nowrap;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.72);
}

.hero-overlay p:not(.kicker) {
  max-width: 500px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  line-height: 1.45;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.72);
}

.video-toggle {
  position: absolute;
  right: max(4px, calc((100vw - 1180px) / 2 + 4px));
  bottom: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #ffffff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.video-toggle span {
  line-height: 1;
}

.video-toggle:hover {
  background: rgba(0, 0, 0, 0.65);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
  line-height: 1.25;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: #ffffff;
}

.button-secondary:hover {
  border-color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "->";
  margin-left: 8px;
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.overview,
.split-section,
.citation {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-body {
  max-width: 860px;
}

.stacked-section {
  display: block;
}

.stacked-section .section-body {
  max-width: none;
}

.stacked-section .section-label {
  margin-bottom: 14px;
}

.section-body p {
  max-width: 76ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-body strong {
  color: var(--ink);
}

.dataset-link-copy {
  margin: 6px 0 0;
}

.dataset-link-copy a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.dataset-link-copy-disabled {
  color: var(--accent-dark);
  font-weight: 800;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.overview-stats article {
  position: relative;
  padding: 6px 0 6px 14px;
  border-left: 3px solid var(--accent);
  background: transparent;
}

.overview-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 0.95;
  font-weight: 900;
}

.overview-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.data-showcase {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(217, 222, 231, 0.65);
  transition: background 160ms ease;
}

.data-row:has(> .data-row-copy:last-child) {
  grid-template-columns: minmax(0, 1fr);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row:hover {
  background: rgba(245, 247, 250, 0.55);
}

.data-row-copy h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 62ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-tags li {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.data-tags li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--line-strong);
  font-weight: 500;
}

.data-row-media {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  height: 180px;
}

.data-row-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.metadata-media video {
  object-fit: cover;
  object-position: center 88%;
  background: #ffffff;
}

.metadata-media {
  aspect-ratio: 3 / 2;
  height: auto;
}

.data-row-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  border: 0;
  background: #000000;
}

.wrist-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  height: 150px;
}

.wrist-preview-grid video {
  min-width: 0;
  object-fit: cover;
}

.state-preview {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--bg-soft));
}

.state-preview div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.state-preview div:last-child {
  border-bottom: 0;
}

.state-preview span {
  color: var(--muted);
  font-weight: 700;
}

.state-preview b {
  color: var(--ink);
}

.annotated-preview i {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(217, 45, 32, 0.9);
}

.hardware-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.hardware-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  align-self: stretch;
}

.hardware-board figure {
  margin: 0;
  min-height: 0;
}

.hardware-board img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ffffff;
}

.hardware-board figure + figure {
  border-left: 1px solid var(--line);
}

.hardware-highlights {
  display: grid;
  gap: 12px;
  height: 100%;
}

.hardware-highlights article {
  display: grid;
  align-content: start;
  padding: 18px 0 18px 16px;
  border-left: 3px solid var(--line);
  background: transparent;
}

.hardware-highlights article:hover {
  border-left-color: var(--accent);
}

.highlight-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hardware-highlights span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.highlight-title h3 {
  margin-bottom: 0;
}

.hardware-highlights p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.distribution-block {
  margin-top: 64px;
  padding: 34px;
  border-radius: 8px;
  background: var(--bg-soft);
}

.distribution-block h2 {
  margin-bottom: 12px;
}

.rerun-frame {
  width: 100%;
  height: min(680px, 72vh);
  min-height: 460px;
  margin: 22px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0b0f18;
}

.rerun-preview {
  margin-top: 28px;
}

.rerun-preview h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.rerun-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec-list div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
}

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

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  margin-top: 32px;
}

.chart-card {
  height: 560px;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.episode-chart-card {
  height: 700px;
  margin-bottom: 24px;
}

.chart-card-compact {
  height: 620px;
}

.step-chart-card {
  height: 680px;
}

.duration-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: center;
  height: calc(100% - 38px);
}

.chart-card .duration-chart-layout canvas {
  justify-self: center;
  max-width: 360px;
  height: 100%;
  min-height: 320px;
}

.duration-legend {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duration-legend li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: default;
  transition: color 160ms ease, transform 160ms ease;
}

.duration-legend li:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.duration-legend li::after {
  content: attr(data-share);
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.duration-legend li:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.duration-legend i {
  display: block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chart-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.chart-card-header h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.chart-card-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-note {
  max-width: none;
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.step-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.step-summary article {
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--line);
  background: transparent;
}

.step-summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.step-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.step-treemap {
  position: relative;
  height: calc(100% - 158px);
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.step-treemap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.step-treemap g {
  cursor: default;
}

.treemap-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
}

.treemap-tooltip strong,
.treemap-tooltip span {
  display: block;
}

.treemap-tooltip span {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.chart-card canvas {
  display: block;
  width: 100%;
  height: calc(100% - 38px);
}

.chart-card > .chart-note + canvas {
  height: calc(100% - 74px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 28px;
  padding: 14px 0 6px;
  --timeline-progress: 0%;
  --timeline-x: 177px;
  --node-size: 20px;
  --node-color: var(--line-strong);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 14px;
  left: calc(var(--timeline-x) - 1px);
  width: 2px;
  background: var(--line);
  transform-origin: top;
  animation: timeline-grow 760ms ease-out both;
}

.timeline::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(var(--timeline-x) - 1px);
  width: 2px;
  height: calc((100% - 38px) * var(--timeline-progress));
  background: var(--progress);
  transform-origin: top;
  animation: progress-grow 900ms ease-out both;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  min-height: 108px;
  padding: 0 0 34px;
  overflow: visible;
  opacity: 0;
  transform: translateY(12px);
  animation: roadmap-in 520ms ease-out both;
}

.timeline article:nth-child(2) {
  animation-delay: 90ms;
}

.timeline article:nth-child(3) {
  animation-delay: 180ms;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--timeline-x) - (var(--node-size) / 2));
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--node-color) 0 36%, #ffffff 38% 100%);
  box-shadow: 0 0 0 1px var(--node-color), 0 8px 20px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.timeline article::after {
  content: none;
}

.timeline article.is-complete::before,
.timeline article.is-current::before {
  --node-color: var(--progress);
  box-shadow: 0 0 0 1px var(--progress), 0 8px 20px rgba(217, 45, 32, 0.16);
}

.timeline article.is-current::before {
  background:
    radial-gradient(circle, var(--progress) 0 36%, var(--progress-soft) 38% 100%);
}

.timeline article.is-current::before {
  animation: current-node 2.4s ease-in-out infinite;
}

.timeline time {
  display: block;
  width: fit-content;
  max-width: 128px;
  padding-top: 3px;
  color: #a8b0bb;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
  background: transparent;
  justify-self: end;
  transition: color 160ms ease;
}

.timeline article.is-complete time,
.timeline article.is-current time {
  color: var(--ink);
  background: transparent;
}

.timeline div {
  padding: 3px 0 0;
}

.timeline h3 {
  margin-bottom: 0;
  color: #7b8490;
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 700;
  transition: color 160ms ease, transform 160ms ease;
}

.timeline article.is-current h3 {
  color: var(--ink);
}

.timeline article:hover time,
.timeline article:hover h3 {
  color: var(--ink);
}

.timeline article:hover h3 {
  transform: translateX(3px);
}

.timeline p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

@keyframes roadmap-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-line-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes timeline-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes progress-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes current-node {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

pre {
  margin: 26px 0 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-left: 4px solid var(--progress);
  border-radius: 8px;
  color: #3b2020;
  background: #fff7f5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.contacts {
  padding: 64px 0 44px;
  border-bottom: 0;
}

.contacts + .overview {
  padding-top: 40px;
}

.contacts div {
  max-width: none;
}

.contacts h2 {
  margin-bottom: 22px;
}

.contacts p {
  margin-bottom: 8px;
  color: var(--muted);
}

.contacts strong {
  color: var(--ink);
}


.license-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.license-section p a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}


.contributor-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.contributor-logos a {
  display: grid;
  place-items: center;
  min-height: 192px;
  padding: 42px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contributor-logos a:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.contributor-logos img {
  display: block;
  max-width: min(220px, 80%);
  max-height: 72px;
  object-fit: contain;
}

.licensing {
  border-bottom: 0;
}

.licensing-layout {
  display: grid;
  gap: 22px;
}

.licensing-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
}

.licensing-copy h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.licensing-copy p {
  margin-bottom: 0;
}

.licensing-email {
  white-space: nowrap;
}

.licensing-email a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.licensing-email a:hover {
  color: var(--accent-dark);
}

.licensing-embed {
  overflow: hidden;
  padding: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.licensing-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

@media (max-width: 940px) {
  .topbar {
    padding: 0 20px;
  }

  .topbar nav {
    display: none;
  }

  main {
    width: min(100% - 32px, 720px);
  }

  .hero-video video {
    aspect-ratio: 16 / 9;
  }

  .overview,
  .split-section,
  .citation {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 54px 0;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .data-row-media video {
    max-height: none;
  }

  .data-row-media iframe {
    max-height: 260px;
  }

  .wrist-preview-grid video {
    max-height: none;
  }

  .overview-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .overview-stats article {
    padding-left: 10px;
  }

  .overview-stats strong {
    font-size: clamp(1.2rem, 5.2vw, 1.8rem);
  }

  .overview-stats span {
    font-size: 0.68rem;
  }

  .contributor-logos {
    grid-template-columns: 1fr;
  }

  .licensing-layout {
    gap: 22px;
  }

  .licensing-copy {
    grid-template-columns: 1fr;
  }

  .licensing-email {
    white-space: normal;
  }

  .hardware-layout,
  .hardware-highlights {
    grid-template-columns: 1fr;
  }

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

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline {
    padding-left: 0;
    --timeline-x: 8px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    align-items: start;
    padding-left: 34px;
  }

  .timeline time {
    justify-self: start;
    max-width: none;
  }

  .timeline h3 {
    padding-right: 0;
  }
}

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

  .timeline::before,
  .timeline::after,
  .timeline article::before,
  .timeline article {
    animation: none;
  }

  .timeline article {
    opacity: 1;
    transform: none;
  }

  .timeline article.is-current::before {
    transform: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 58px;
  }

  .hero-video {
    height: min(56.25vw, calc(100vh - 58px));
  }

  .hero-overlay {
    padding: 0 16px;
  }

  .hero-copy-block {
    max-width: 360px;
  }

  .hero-overlay h1 {
    font-size: 1.7rem;
    white-space: normal;
  }

  h2 {
    font-size: 1.8rem;
  }

  .button {
    width: 100%;
  }

  .rerun-frame {
    height: 440px;
    min-height: 360px;
  }

  .site-footer {
    flex-direction: column;
    width: min(100% - 32px, 720px);
  }

  .hardware-board {
    grid-template-columns: 1fr;
  }

  .hardware-board figure + figure {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hardware-board img {
    aspect-ratio: 4 / 3;
  }

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

  .duration-chart-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .chart-card {
    height: 560px;
    padding: 14px 10px 12px;
  }

  .episode-chart-card {
    height: 650px;
  }

  .chart-card-compact {
    height: 680px;
  }

  .step-chart-card {
    height: 760px;
  }

  .step-summary {
    grid-template-columns: 1fr;
  }

  .step-treemap {
    height: calc(100% - 272px);
  }
}
