:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef4f0;
  --ink: #202521;
  --muted: #64716a;
  --line: #d9dfd7;
  --line-strong: #b7c4bb;
  --shadow: 0 18px 58px rgba(38, 48, 42, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 37, 33, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 37, 33, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

button,
video {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(217, 223, 215, 0.88);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 42px;
  text-align: center;
}

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

h1 {
  max-width: 1360px;
  margin: 0 auto 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1.1;
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-meta {
  max-width: 980px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-authors span:not(:last-child)::after {
  content: ",";
  margin-left: 2px;
  color: var(--muted);
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  max-width: 920px;
  margin: 0 auto 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  color: #7b8781;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-meta sup {
  font-size: 0.68em;
  line-height: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(38, 48, 42, 0.12);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.button.disabled {
  color: #8b948f;
  cursor: default;
}

.button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1.12;
}

.pipeline-section {
  padding-top: 18px;
}

.pipeline-figure {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pipeline-figure img {
  display: block;
  min-width: 760px;
  width: 100%;
  background: #fbfcf8;
}

.pipeline-figure figcaption {
  padding: 18px 24px 20px;
  border-top: 1px solid var(--line);
  color: #46544d;
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: left;
}

.text-section {
  display: block;
}

.section-body {
  max-width: 920px;
  margin: 0 auto;
  color: #46544d;
  font-size: 1.03rem;
}

.section-body p {
  margin-bottom: 18px;
}

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

.video-section {
  width: min(var(--max), calc(100% - 48px));
  max-width: var(--max);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.libero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.paired-video-grid {
  display: grid;
  gap: 30px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.paired-task {
  min-width: 0;
}

.paired-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

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

.video-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(38, 48, 42, 0.1);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  background: #101411;
  object-fit: cover;
}

.video-card h3 {
  display: flex;
  height: 72px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.video-card h3 span {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.libero-grid .video-card h3 {
  height: 136px;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 0.9rem;
  line-height: 1.28;
}

.libero-grid .video-card h3 span {
  font-size: 0.76rem;
}

.conclusion-section {
  padding-bottom: 80px;
}

.conclusion-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(183, 98, 67, 0.42);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  h1 {
    font-size: 2.7rem;
  }

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

  .paired-video-grid {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 92px;
    padding: 12px 18px;
  }

  .site-nav {
    width: 100%;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    padding: 42px 0 28px;
  }

  h1 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 48px 0;
  }

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

  .paired-videos {
    grid-template-columns: 1fr;
  }

  .conclusion-card {
    padding: 22px;
  }

  .site-footer {
    min-height: 78px;
  }
}

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