:root {
  --ink: #162333;
  --muted: #5e6a76;
  --blue: #235f82;
  --blue-dark: #17445f;
  --blue-light: #edf4f7;
  --line: #d9e1e5;
  --paper: #ffffff;
  --soft: #f6f8f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img, video { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
p, h1, h2, h3, figure, dl { margin-top: 0; }
.page-width { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 40px)); margin-inline: auto; padding: 18px 0; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.96); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 0.84rem; font-weight: 800; letter-spacing: 0.1em; text-decoration: none; }
.brand span { width: 14px; height: 14px; border: 4px solid var(--blue); border-radius: 50%; }
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); font-size: 0.88rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--blue); }

.hero { padding: 96px 0 86px; text-align: center; }
.label, .experiment-number { margin-bottom: 14px; color: var(--blue); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { max-width: 860px; margin: 0 auto 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.subtitle { max-width: 820px; margin: 0 auto; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.25; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.hero-links a, .hero-links span { padding: 8px 14px; border: 1px solid var(--line); color: var(--blue-dark); background: white; font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.hero-links span { color: var(--muted); }

.summary { border-block: 1px solid #cfdce2; background: var(--blue-light); }
.summary-inner { display: grid; grid-template-columns: 140px 1fr; gap: 36px; padding-block: 38px; }
.summary-inner .label { margin: 6px 0 0; }
.summary-inner > p:last-child { max-width: 820px; margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; }

.section { padding-block: 96px; }
.section-muted { border-block: 1px solid var(--line); background: var(--soft); }
.two-column { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(46px, 8vw, 96px); }
h2 { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.6vw, 3.7rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.body-copy { color: var(--muted); font-size: 1.02rem; }
.body-copy p:last-child { margin-bottom: 0; }
.abstract-section { max-width: 900px; }
.abstract-section .label { margin-bottom: 18px; font-family: Arial, Helvetica, sans-serif; font-size: 0.73rem; letter-spacing: 0.12em; }
.abstract-text { margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.02rem; }

.paper-figure { margin-bottom: 0; }
.paper-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: white; }
.paper-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.large-figure { margin-bottom: 40px; }
.task-overview { margin-bottom: 74px; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-grid article { min-height: 180px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid h3 { margin-bottom: 9px; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 600; line-height: 1.25; }
.method-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.87rem; }
.runtime-note { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center; margin-top: 34px; padding: 25px; border-left: 4px solid var(--blue); background: var(--blue-light); }
.runtime-note div { display: flex; flex-direction: column; }
.runtime-note strong { color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 3.2rem; font-weight: 500; line-height: 1; }
.runtime-note span { color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.runtime-note p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.experiment { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); gap: clamp(44px, 8vw, 92px); align-items: center; padding-block: 70px; border-top: 1px solid var(--line); }
.experiment-copy h3 { margin-bottom: 17px; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3.3vw, 2.7rem); font-weight: 500; line-height: 1.12; }
.experiment-copy > p:not(.experiment-number) { color: var(--muted); }
dl { margin-bottom: 0; border-top: 1px solid var(--line); }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; }

.video-group-title { margin: 56px 0 18px; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.video-grid-centered { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.video-grid-centered .video-card { grid-column: 2; }
.experiment-videos { width: min(1600px, calc(100vw - 16px)); margin-left: 50%; padding-bottom: 70px; transform: translateX(-50%); }
.experiment-videos-last { padding-bottom: 0; }
.video-conclusion { max-width: 760px; margin: 22px 0 0; color: var(--blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.video-card { margin-bottom: 0; border: 1px solid var(--line); background: white; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #e8edf0; object-fit: contain; }
.video-card figcaption { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.video-card strong { color: var(--blue-dark); font-size: 0.88rem; }
.video-card span { color: var(--muted); font-size: 0.78rem; }

.closing { padding-block: 90px; border-top: 1px solid var(--line); background: var(--blue-light); }
footer { color: #dce7ed; background: var(--blue-dark); }
footer .page-width { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; font-size: 0.76rem; }

@media (max-width: 820px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .experiment { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { position: static; }
  nav { display: none; }
  .hero { padding-block: 68px 58px; }
  .summary-inner, .two-column, .runtime-note { grid-template-columns: 1fr; gap: 20px; }
  .section { padding-block: 70px; }
  .method-grid, .video-grid, .video-grid-centered { grid-template-columns: 1fr; }
  .video-grid-centered .video-card { grid-column: auto; }
  .method-grid article { min-height: auto; }
  .task-overview { margin-bottom: 46px; }
  .experiment { padding-block: 50px; }
  footer .page-width { flex-direction: column; }
}

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