:root {
  --bg: #fbfcfd;
  --panel: #ffffff;
  --ink: #18212b;
  --muted: #64717d;
  --line: #dce3e8;
  --soft: #f2f6f8;
  --accent: #236c9b;
  --accent-2: #2f8474;
  --accent-soft: #eaf4f8;
  --max: 1180px;
  --wide: 1580px;
  --radius: 12px;
  --shadow: 0 14px 35px rgba(27,45,58,.08);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.shell.wide { width: min(var(--wide), calc(100% - 48px)); }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220,227,232,.9); background: rgba(251,252,253,.94); backdrop-filter: blur(10px); }
.nav { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 700 1.05rem/1 var(--serif); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a { color: var(--muted); font-size: .82rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.hero { padding: 72px 0 36px; text-align: center; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); }
h1 { max-width: 1050px; margin: 0 auto 20px; font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em; }
h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { margin: 0; font-size: 1.1rem; }
.authors { max-width: 1000px; margin: 18px auto 8px; font-size: 1.03rem; font-weight: 650; }
.affils { margin: 0 auto 24px; color: var(--muted); font-size: .92rem; }
.hero-copy { max-width: 860px; margin: 0 auto; color: #475663; font-size: 1.06rem; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: .9rem; font-weight: 700; text-decoration: none; transition: .18s ease; }
.button.primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(27,45,58,.09); }
.section { padding: 58px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 900px; margin-bottom: 26px; color: var(--muted); }
.intensity-copy { max-width: 1080px; }
.figure-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.figure-card img { width: 100%; }
.figure-card figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: .84rem; }
.abstract { max-width: 950px; margin: 0 auto; font-size: 1.02rem; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.key-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.key-card b { display: block; margin-bottom: 6px; color: var(--accent-2); }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.results-head p { margin: 0; color: var(--muted); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toolbar label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
select { padding: 8px 30px 8px 10px; border: 1px solid #bcc7ce; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.tabs button { padding: 8px 11px; border: 1px solid #bcc7ce; border-radius: 7px; background: #fff; color: #40505b; font: 700 .82rem/1.2 var(--sans); cursor: pointer; }
.tabs button.active, .tabs button:hover { border-color: var(--accent); color: #fff; background: var(--accent); }
.sample-box { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; align-items: center; margin: 20px 0 26px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.sample-box img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #101820; }
.sample-meta { display: grid; gap: 12px; }
.meta-label { margin-bottom: 2px; color: var(--accent-2); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sample-meta p { margin: 0; color: #45545f; font-size: .94rem; }
.method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 18px; }
.method-card { min-width: 0; }
.method-card h3 { margin-bottom: 8px; font-family: var(--sans); font-size: .9rem; }
.method-card video, .video-placeholder { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 10px; background: #101820; object-fit: contain; box-shadow: 0 8px 22px rgba(27,45,58,.08); }
.video-placeholder { display: grid; place-items: center; color: #aeb9c0; font-size: .8rem; }

/* Fine-grained section: intentionally wide so the videos are large enough to inspect. */
.fg-block { margin-top: 44px; padding-top: 4px; }
.fg-block + .fg-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.fg-title { margin-bottom: 16px; font-family: var(--sans); font-size: 1.2rem; }
.fg-context { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fg-input { margin: 0; display: flex; align-items: center; gap: 12px; }
.fg-input img { width: 210px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); border-radius: 9px; background: #101820; }
.fg-input figcaption { color: var(--muted); font-size: .78rem; font-weight: 700; }
.fg-method-block { margin-top: 24px; }
.fg-method-title { margin: 0 0 10px; font-family: var(--sans); font-size: .92rem; font-weight: 800; }
.fg-video-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.fg-cell { margin: 0; min-width: 0; }
.fg-cell figcaption { margin: 0 0 7px; color: var(--muted); font-size: .76rem; font-weight: 760; text-align: center; }
.fg-cell video { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 10px; background: #101820; object-fit: contain; box-shadow: 0 8px 22px rgba(27,45,58,.07); }

.citation-wrap { position: relative; }
pre { overflow-x: auto; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #111922; color: #e7edf2; font-size: .78rem; line-height: 1.55; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 6px 9px; border: 1px solid #43525d; border-radius: 6px; color: #e7edf2; background: #1f2a33; cursor: pointer; }
.footer { padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }

@media (max-width: 1250px) {
  .fg-video-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .key-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sample-box { grid-template-columns: 1fr; }
  .sample-box img { max-width: 520px; }
  .fg-video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .shell, .shell.wide { width: min(var(--max), calc(100% - 24px)); }
  .nav-links { gap: 10px; }
  .nav-links a:nth-child(2), .nav-links a:nth-child(3) { display:none; }
  .hero { padding-top: 52px; }
  .method-grid, .fg-video-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; margin-left: 0; }
  .tabs button { flex: 1 1 45%; }
  .fg-context { align-items: flex-start; }
  .fg-input { align-items: flex-start; flex-direction: column; }
  .fg-input img { width: min(100%, 420px); }
}
