:root {
  --text: #262626;
  --muted: #626262;
  --link: #2b67b1;
  --link-hover: #17477f;
  --border: #dedede;
  --soft-border: #e9e9e9;
  --tint: #f6f7f8;
  --accent: #3a73b8;
  --accent-soft: #e9f1fa;
  --container: 900px;
  --container-wide: 1120px;
  --sans: "Noto Sans", Arial, sans-serif;
  --display: "Google Sans", "Noto Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.container-wide {
  width: calc(100% - 40px);
  margin-inline: auto;
}

.container {
  max-width: var(--container);
}

.container-wide {
  max-width: var(--container-wide);
}

.publication-header {
  padding-top: 66px;
  padding-bottom: 40px;
  text-align: center;
}

.publication-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.subtitle {
  max-width: 830px;
  margin: 15px auto 24px;
  font-family: var(--display);
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.28;
}

.authors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
  max-width: 820px;
  padding: 0;
  margin: 24px auto 0;
  list-style: none;
}

.author {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.author > a:first-child {
  font-size: 17px;
  font-weight: 500;
}

.author-social {
  min-height: 24px;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-media {
  margin-bottom: 34px;
}

.hero-media video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 5px;
}

.caption,
figcaption {
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-media .caption {
  max-width: 900px;
  text-align: center;
}

.section {
  padding: 66px 0;
}

.section + .section:not(.section-tinted) {
  border-top: 1px solid var(--soft-border);
}

.section-tinted {
  background: var(--tint);
  border-block: 1px solid var(--soft-border);
}

.section h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.section-intro {
  max-width: 760px;
  margin: -8px auto 34px;
  color: var(--muted);
  text-align: center;
}

.prose {
  font-size: 17px;
  text-align: justify;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 32px 0 42px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 150px;
  padding: 18px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.pipeline-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 11px;
  color: #fff;
  place-items: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.pipeline-step strong {
  font-family: var(--display);
  font-size: 16px;
}

.pipeline-step small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.pipeline-arrow {
  color: #999;
  font-size: 22px;
}

.task-summary,
.method-details,
.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.task-summary > div,
.method-details > div {
  padding-top: 16px;
  border-top: 3px solid var(--accent);
}

.task-summary h3,
.method-details h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

.task-summary p,
.method-details p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.two-column-media {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 42px;
  align-items: start;
}

.data-control-section {
  max-width: 1000px;
}

figure {
  margin: 0;
}

.two-column-media video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 4px;
}

.media-grid video {
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 4px;
}

.method-text h3,
.async-copy h3,
.subsection-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}

.method-text p {
  margin-top: 0;
}

.method-text ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.method-text li + li {
  margin-top: 4px;
}

.async-block {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 50px;
  padding-top: 46px;
  margin-top: 52px;
  border-top: 1px solid var(--border);
}

.async-copy p {
  margin: 0;
  color: var(--muted);
}

.clock-table {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.clock-table > li {
  display: grid;
  grid-template-columns: 90px 65px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.clock-table strong {
  font-family: var(--display);
  font-weight: 500;
}

.clock-table span {
  color: var(--accent);
  font-weight: 700;
}

.clock-table p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: 1.15fr auto 1fr auto 1fr auto 1fr auto 0.9fr;
  gap: 8px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.architecture-inputs {
  display: grid;
  gap: 7px;
}

.architecture-inputs > div,
.architecture-stage {
  padding: 11px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.architecture-inputs strong,
.architecture-inputs small,
.architecture-stage strong,
.architecture-stage small {
  display: block;
}

.architecture-inputs strong,
.architecture-stage strong {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
}

.architecture-inputs small,
.architecture-stage small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.architecture-stage {
  min-height: 127px;
}

.architecture-stage p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.visual-stage {
  background: var(--accent-soft);
  border-color: #b9d0ea;
}

.output-stage {
  background: #eef5e9;
  border-color: #c7d9bc;
}

.architecture-arrow {
  color: #999;
  font-size: 18px;
}

.method-details {
  margin-top: 35px;
}

.subsection-title {
  margin-top: 55px;
  text-align: center;
}

.architecture-table-wrap {
  margin-top: 17px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.architecture-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.architecture-table th,
.architecture-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--soft-border);
}

.architecture-table th {
  font-family: var(--display);
  font-weight: 500;
  background: #f1f2f3;
}

.architecture-table tr:last-child td {
  border-bottom: 0;
}

.architecture-table td:first-child {
  width: 15%;
  color: var(--muted);
}

.architecture-table td:nth-child(2) {
  width: 24%;
  font-weight: 600;
}

.benchmark-figure img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.benchmark-figure figcaption {
  text-align: center;
}

.result-metrics {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.result-metrics > div {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.result-metrics > div:last-child {
  border-right: 0;
}

.result-metrics strong,
.result-metrics span {
  display: block;
}

.result-metrics strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
}

.result-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.centered-intro {
  max-width: 800px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 24px;
  align-items: start;
}

.media-grid .hardware-figure {
  grid-column: 1 / -1;
  width: min(100%, 360px);
  margin-inline: auto;
}

footer {
  padding: 30px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

footer .container {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .pipeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  .pipeline-arrow {
    display: none;
  }

  .architecture-diagram {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .architecture-arrow {
    display: none;
  }

  .architecture-inputs {
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .container,
  .container-wide {
    width: calc(100% - 28px);
  }

  .publication-header {
    padding-top: 44px;
  }

  .publication-header h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 21px;
  }

  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .prose {
    font-size: 16px;
    text-align: left;
  }

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

  .pipeline-step {
    min-height: 0;
  }

  .task-summary,
  .method-details,
  .result-metrics,
  .two-column-media,
  .async-block,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .authors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .author > a:first-child {
    font-size: 15px;
  }

  .task-summary,
  .method-details {
    gap: 20px;
  }

  .clock-table > div {
    grid-template-columns: 80px 55px 1fr;
  }

  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .architecture-inputs {
    grid-row: auto;
  }

  .architecture-stage {
    min-height: 0;
  }

  .architecture-table {
    min-width: 640px;
  }

  .result-metrics {
    border: 1px solid var(--border);
  }

  .result-metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .result-metrics > div:last-child {
    border-bottom: 0;
  }

  .media-grid .hardware-figure {
    grid-column: auto;
    width: 100%;
  }

  footer .container {
    flex-direction: column;
    gap: 4px;
  }
}

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