:root {
  --ink: #19251f;
  --body: #4f5f56;
  --muted: #748078;
  --green-950: #153728;
  --green-900: #1b4432;
  --green-800: #214f3a;
  --green-700: #2f694d;
  --green-500: #6f9a72;
  --green-200: #cbdac7;
  --green-100: #e8f0e4;
  --green-50: #f4f7f1;
  --orange: #c66f3c;
  --orange-pale: #fbefe6;
  --paper: #fffdf8;
  --cream: #f6f1e8;
  --line: #d9dfd7;
  --line-dark: #bdc9be;
  --white: #fff;
  --shadow: 0 22px 70px rgba(28, 61, 45, 0.11);
  --text-body: 16px;
  --text-support: 15px;
  --text-small: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: var(--text-body); line-height: 1.7; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img, svg, video, object, iframe { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, figure { margin-top: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #ef9a64; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: var(--green-950); border-radius: 7px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.page-shell, .nav-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 106px 0; scroll-margin-top: 78px; }
.section-header { max-width: 850px; margin-bottom: 50px; }
.section-header h2 { max-width: 780px; margin-bottom: 18px; font: 500 clamp(28px, 3.2vw, 38px)/1.18 var(--serif); letter-spacing: -0.025em; }
.section-header > p:last-child { max-width: 760px; margin: 0; color: var(--body); font-size: clamp(16px, 1.6vw, 19px); }
.section-number, .card-label, .challenge-label, .analysis-index { margin-bottom: 13px; color: var(--green-700); font-size: var(--text-support); font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }

.section-number { font-size: 17px; letter-spacing: 0.07em; }

/* Header */
.site-header { position: sticky; z-index: 50; top: 0; height: 72px; border-bottom: 1px solid rgba(189, 201, 190, 0.72); background: rgba(255, 253, 248, 0.94); backdrop-filter: blur(16px); }
.nav-shell { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-800); font-size: 20px; font-weight: 790; letter-spacing: -0.045em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand > span > span { color: var(--orange); }
#site-nav { display: flex; align-items: center; gap: 5px; }
#site-nav a { position: relative; padding: 9px 14px; color: #45564b; border-radius: 6px; font-size: 17px; font-weight: 700; text-decoration: none; }
#site-nav a::after { position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; background: var(--orange); content: ""; transform: scaleX(0); transition: transform 160ms ease; }
#site-nav a:hover { color: var(--green-800); background: var(--green-50); }
#site-nav a[aria-current="location"] { color: var(--green-800); background: var(--green-100); }
#site-nav a[aria-current="location"]::after { transform: scaleX(1); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.menu-button > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--green-800); }

/* Overview */
.hero-section { position: relative; padding: 84px 0 88px; overflow: hidden; scroll-margin-top: 72px; background: radial-gradient(circle at 85% 8%, rgba(111, 154, 114, 0.14), transparent 31%), linear-gradient(180deg, #fffdf8 0%, #f8f4ec 100%); }
.hero-section::before { position: absolute; top: 0; left: max(24px, calc((100vw - 1180px) / 2)); width: 72px; height: 5px; background: var(--orange); content: ""; }
.hero-copy { max-width: 1000px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 13px; margin-bottom: 24px; color: var(--green-700); font-size: var(--text-small); font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }
.eyebrow span { padding: 5px 9px; color: #fff; background: var(--green-800); border-radius: 999px; letter-spacing: 0.08em; }
h1 { max-width: 1030px; margin-bottom: 29px; font: 500 clamp(30px, 3.7vw, 48px)/1.17 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.hero-lede { max-width: none; margin-bottom: 28px; color: var(--body); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.resource-links { display: flex; flex-wrap: wrap; gap: 9px; }
.resource-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 160px; min-height: 64px; padding: 10px 22px; color: var(--green-800); border: 1px solid var(--line-dark); border-radius: 12px; background: #fff; text-decoration: none; transition: background 160ms ease, border-color 160ms ease; }
.resource-icon { width: 20px; height: 20px; flex: none; }
.resource-copy { display: flex; flex-direction: column; align-items: flex-start; }
.resource-label { font-size: 15px; font-weight: 760; line-height: 1.5; }
.resource-status { color: #536459; font-size: var(--text-small); font-weight: 500; line-height: 1.5; }
.resource-paper:disabled { color: #55705c; border-color: #cbd8c6; background: var(--green-100); cursor: not-allowed; }
.resource-code:hover { border-color: var(--green-700); background: var(--green-50); }
.resource-arrow { font-size: 17px; line-height: 1; }
.abstract-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 40px; max-width: 980px; margin: 48px 0 36px auto; padding: 31px 35px; border: 1px solid #cbd7c9; border-left: 5px solid var(--green-700); background: rgba(255, 255, 255, 0.82); box-shadow: 0 15px 45px rgba(39, 74, 57, 0.07); }
.abstract-card > p:last-child { margin: 0; color: #42564a; font-size: var(--text-body); line-height: 1.75; }
.paper-figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.figure-button { position: relative; width: 100%; padding: 18px; border: 0; background: #fff; }
.figure-button img { width: 100%; max-height: 770px; object-fit: contain; }
.figure-button > span, .figure-expand { position: absolute; right: 15px; bottom: 15px; min-height: 34px; padding: 7px 11px; color: #fff; border: 0; border-radius: 5px; background: rgba(21, 55, 40, 0.92); font-size: var(--text-small); font-weight: 750; }
.paper-figure figcaption { padding: 14px 18px; color: #65736b; border-top: 1px solid var(--line); background: #fbfcf9; font-size: var(--text-small); }
.overview-figure { box-shadow: var(--shadow); }
.challenge-grid { display: grid; gap: 14px; margin-top: 58px; }
.challenge-card { display: grid; grid-template-columns: minmax(0, 0.9fr) 46px minmax(0, 1.1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.challenge-card > div { padding: 24px 27px; }
.challenge-card .improvement { background: var(--green-50); }
.challenge-card h3 { margin-bottom: 9px; font-size: 20px; letter-spacing: -0.025em; }
.challenge-card p:last-child { margin: 0; color: var(--body); font-size: var(--text-body); }
.challenge-label { margin-bottom: 8px; color: #a35a35; }
.improvement .challenge-label { color: var(--green-700); }
.challenge-arrow { display: grid; place-items: center; color: var(--orange); border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--cream); font-size: 21px; }
.overview-result { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 55px; padding: 28px 0 0; border-top: 1px solid var(--line-dark); }
.overview-result > div { max-width: 790px; }
.overview-result p:last-child { margin: 0; font: 500 clamp(20px, 2vw, 25px)/1.5 var(--serif); }
.text-link { flex: none; color: var(--green-800); font-size: var(--text-small); font-weight: 790; text-underline-offset: 5px; }

/* Videos */
.videos-section { color: #f5f7f2; background: var(--green-950); }
.inverse-header .section-number { color: #b9d0b9; }
.inverse-header h2 { color: #fff; }
.inverse-header > p:last-child { color: #cbd8d0; }
.policy-primer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.policy-primer article { padding: 20px; border: 1px solid rgba(214, 230, 216, 0.17); border-radius: 9px; background: rgba(255, 255, 255, 0.055); }
.policy-primer span { color: #a9c7a9; font-size: var(--text-small); font-weight: 810; letter-spacing: 0.06em; text-transform: uppercase; }
.policy-primer p { margin: 8px 0 0; color: #d5ded8; font-size: var(--text-body); line-height: 1.65; }
.video-interface-note { max-width: 920px; margin: 19px 0 12px; color: #c3d2c8; font-size: var(--text-small); }
.recording-scope { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; margin: 0 0 38px; padding: 14px 16px; color: #dce6df; border: 1px solid rgba(239, 154, 100, .42); border-radius: 9px; background: rgba(255, 255, 255, .065); font-size: var(--text-small); line-height: 1.6; }
.recording-scope strong { color: #ffc39e; }
.video-explorer { overflow: hidden; border: 1px solid rgba(214, 230, 216, 0.2); border-radius: 14px; background: #f8f5ee; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22); }
.tab-scroll { max-width: 100%; overflow-x: auto; }
.tab-list { display: flex; align-items: center; gap: 6px; }
.environment-tabs { min-width: max-content; padding: 15px 17px; border-bottom: 1px solid #d9dfd7; background: #ede9df; }
.tab-list button, .segmented-control button { border: 1px solid transparent; background: transparent; }
.environment-tabs button { min-height: 38px; padding: 8px 13px; color: #506158; border-radius: 6px; font-size: var(--text-small); font-weight: 780; }
.environment-tabs button[aria-selected="true"] { color: #fff; background: var(--green-800); box-shadow: inset 0 -3px 0 var(--orange); }
.video-stage { padding: 26px; color: var(--ink); }
.video-group-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.video-group-header h3 { margin-bottom: 6px; font: 500 clamp(23px, 2vw, 27px)/1.3 var(--serif); }
.video-group-header p { max-width: 760px; margin: 0; color: var(--body); font-size: var(--text-small); }
.context-badge { flex: none; padding: 6px 9px; color: var(--green-800); border: 1px solid #cad8c8; border-radius: 5px; background: var(--green-50); font-size: var(--text-small); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.video-panel-scroll { max-width: 100%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.video-panels { display: grid; gap: 12px; }
.video-panels[data-panel-count="3"] { grid-template-columns: repeat(3, minmax(360px, 1fr)); min-width: 1104px; }
.video-panels[data-panel-count="2"] { grid-template-columns: repeat(2, minmax(360px, 420px)); min-width: 732px; justify-content: safe center; }
.video-panel { min-width: 0; overflow: hidden; border: 1px solid #d6ddd4; border-radius: 9px; background: #fff; }
.video-method { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 8px; margin: 0; padding: 11px 13px; color: #42534a; border-bottom: 1px solid var(--line); font-size: var(--text-support); font-weight: 810; }
.ours-badge { display: inline-flex; padding: 2px 6px; color: #fff; border-radius: 999px; background: var(--green-700); font-size: var(--text-small); font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.video-media { display: grid; aspect-ratio: 1 / 2; place-items: center; overflow: hidden; background-color: #eef2e9; background-image: linear-gradient(rgba(81, 112, 87, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 112, 87, 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.video-media video { width: 100%; height: 100%; background: #101612; object-fit: contain; }
.video-unavailable { color: #874b2d; font-weight: 760; }
.video-meta { display: flex; flex-wrap: wrap; min-height: 43px; align-items: center; gap: 6px 13px; margin: 0; padding: 12px; color: #526358; background: #fbfcf9; font-size: var(--text-small); }
.video-speed-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; color: var(--green-800); border-bottom: 1px solid var(--line); background: var(--green-50); }
.video-speed-controls > span { font-size: var(--text-small); font-weight: 760; }
.video-speed-buttons { display: flex; gap: 6px; }
.video-speed-buttons button { min-width: 40px; min-height: 40px; padding: 7px 9px; color: var(--green-700); border: 1px solid #cad8c8; border-radius: 6px; background: #fff; font-size: var(--text-small); font-weight: 760; }
.video-speed-buttons button:hover { border-color: var(--green-700); background: var(--green-100); }
.video-speed-buttons button[aria-pressed="true"] { color: #fff; border-color: var(--green-800); background: var(--green-800); }
.group-note { margin: 15px 0 0; color: #57675e; font-size: var(--text-small); }
.publication-note { margin: 13px 0 0; padding: 11px 13px; color: #744023; border-left: 3px solid var(--orange); background: var(--orange-pale); font-size: var(--text-small); }
/* Method */
.method-section { background: var(--paper); }
.method-paper-figure { box-shadow: var(--shadow); }
.method-paper-figure .figure-button img { max-height: none; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.role-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.role-grid span { color: var(--orange); font: 700 16px/1.3 var(--serif); }
.role-grid h3 { margin: 12px 0 7px; font-size: 17px; }
.role-grid p { margin: 0; color: var(--body); font-size: var(--text-body); }
.role-note { margin: 10px 0 0; color: #738078; font-size: var(--text-small); text-align: right; }
.method-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; margin-top: 76px; }
.method-detail-grid > *,
.analysis-block > *,
.analysis-evidence { min-width: 0; }
.handoff-card, .configuration-card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.handoff-card h3, .configuration-card h3 { margin-bottom: 21px; font: 500 clamp(22px, 2vw, 26px)/1.3 var(--serif); }
.handoff-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 19px; }
.handoff-fields div { padding: 13px; border: 1px solid #d6dfd4; border-radius: 7px; background: var(--green-50); }
.handoff-fields strong, .handoff-fields span { display: block; }
.handoff-fields strong { color: var(--green-700); font-size: var(--text-small); letter-spacing: 0.08em; }
.handoff-fields span { margin-top: 4px; color: var(--body); font-size: var(--text-small); }
.handoff-card > p:not(.card-label), .configuration-card > p:not(.card-label) { color: var(--body); font-size: var(--text-body); }
.handoff-card > p:last-child, .configuration-card > p:last-child { margin-bottom: 0; }
.table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.method-matrix { width: 100%; min-width: 520px; margin-bottom: 17px; border-collapse: collapse; font-size: var(--text-small); }
.method-matrix th, .method-matrix td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; }
.method-matrix thead th { color: #66736c; background: #f5f7f2; font-size: var(--text-small); letter-spacing: 0.05em; text-transform: uppercase; }
.method-matrix tbody th { color: var(--green-800); }
.ours-cell { color: var(--green-800); background: var(--green-100); font-weight: 800; }
.ours-cell span { margin-left: 4px; padding: 2px 5px; color: #fff; border-radius: 999px; background: var(--green-700); font-size: var(--text-small); text-transform: uppercase; }
.evaluation-clock { display: grid; grid-template-columns: 135px minmax(0, 1fr); align-items: center; gap: 30px; margin-top: 27px; padding: 24px 29px; color: #fff; border-radius: 11px; background: var(--green-800); }
.clock-mark { display: grid; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font: 500 26px/1 var(--serif); }
.evaluation-clock .card-label { color: #c3d8c6; }
.evaluation-clock p:last-child { margin: 0; color: #e1e9e3; font-size: var(--text-small); }

/* Details */
.disclosure-stack { display: grid; gap: 11px; }
.method-disclosures { margin-top: 27px; }
.disclosure { overflow: clip; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.disclosure > summary { display: flex; min-height: 59px; align-items: center; justify-content: space-between; padding: 14px 18px; color: #40534a; font-size: var(--text-body); font-weight: 790; list-style: none; cursor: pointer; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { display: grid; width: 27px; height: 27px; flex: none; margin-left: 15px; place-items: center; color: var(--green-800); border: 1px solid var(--line); border-radius: 50%; content: "+"; font-size: 17px; }
.disclosure[open] > summary { border-bottom: 1px solid var(--line); background: var(--green-50); }
.disclosure[open] > summary::after { content: "−"; }
.disclosure-body { min-width: 0; padding: 25px; }
.disclosure-body > p { max-width: 930px; margin: 0; color: var(--body); font-size: var(--text-body); }
.skill-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }

/* Results */
.results-section { background: #f1f5ee; }
.setup-disclosure { max-width: 870px; margin: -17px 0 46px; }
.results-block { margin-top: 22px; padding: 30px; border: 1px solid #d2ddd0; border-radius: 13px; background: #fff; box-shadow: 0 17px 50px rgba(32, 67, 49, 0.06); }
.results-block + .results-block { margin-top: 36px; }
.results-heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 18px; }
.results-heading-row h3, .subsection-heading h3 { margin: 0; font: 500 clamp(23px, 2.1vw, 28px)/1.3 var(--serif); }
.segmented-control { display: inline-flex; flex: none; padding: 4px; border: 1px solid #ccd7ca; border-radius: 8px; background: #f7f9f5; }
.segmented-control button { min-height: 36px; padding: 7px 11px; color: #5d6a63; border-radius: 5px; font-size: var(--text-small); font-weight: 780; }
.segmented-control button[aria-pressed="true"] { color: #fff; background: var(--green-800); box-shadow: inset 0 -2px 0 var(--orange); }
.result-summary { margin: 0 0 17px; padding: 13px 15px; color: var(--green-800); border-left: 3px solid var(--orange); background: var(--orange-pale); font-size: var(--text-support); font-weight: 680; }
.results-table { width: 100%; min-width: 650px; border-collapse: collapse; color: var(--ink); font-size: var(--text-support); }
.results-table th, .results-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.results-table th:first-child, .results-table td:first-child { text-align: left; }
.results-table thead th { color: #68766e; background: #f5f7f3; font-size: var(--text-small); font-weight: 820; letter-spacing: 0.06em; text-transform: uppercase; }
.results-table tbody th { color: #485a50; font-weight: 690; }
.results-table tbody tr:last-child th, .results-table tbody tr:last-child td { border-bottom: 0; }
.results-table .ours-row { background: var(--green-50); }
.results-table strong { color: var(--green-800); font-weight: 860; }
.results-table .ours-badge { margin-left: 5px; vertical-align: 1px; }
.table-note { margin: 13px 0 0; color: #6a776f; font-size: var(--text-small); }
.difficulty-results { padding: 0; overflow: hidden; }
.difficulty-results .subsection-heading { padding: 30px 30px 24px; }
.subsection-heading > p:last-child { max-width: 760px; margin: 12px 0 0; color: var(--body); font-size: var(--text-support); }
.difficulty-figure { border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
.difficulty-figure .figure-button { padding: 26px; }
.difficulty-figure .figure-button img { max-height: none; }
.result-tabs { flex-wrap: wrap; justify-content: flex-end; }
.result-tabs button { min-height: 36px; padding: 7px 10px; color: #5f6e65; border: 1px solid #d8dfd5; border-radius: 6px; background: #fff; font-size: var(--text-small); font-weight: 780; }
.result-tabs button[aria-selected="true"] { color: #fff; border-color: var(--green-800); background: var(--green-800); box-shadow: inset 0 -2px 0 var(--orange); }
.difficulty-switch { margin: 0 0 16px auto; width: fit-content; }

/* Analysis */
.analysis-section { background: var(--paper); }
.analysis-block { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 50px; align-items: start; padding: 49px 0; border-top: 1px solid var(--line-dark); }
.analysis-block h3 { margin-bottom: 17px; font: 500 clamp(24px, 2.3vw, 30px)/1.3 var(--serif); letter-spacing: -0.02em; }
.analysis-copy > p:not(.analysis-index) { color: var(--body); font-size: var(--text-body); }
.analysis-note, .analysis-conclusion { padding: 13px 15px; border-left: 3px solid var(--orange); background: var(--orange-pale); }
.analysis-evidence > p { margin: 19px 0 0; color: var(--body); font-size: var(--text-small); line-height: 1.8; }
.compact-table { min-width: 510px; }
.trajectory-analysis { grid-template-columns: minmax(280px, 0.64fr) minmax(0, 1.36fr); }
.trajectory-figure { box-shadow: var(--shadow); }
.analysis-disclosures { margin-top: 34px; }
.analysis-detail-grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr); gap: 35px; align-items: start; }
.analysis-detail-grid > *, .skill-copy > *, .skill-analysis-copy > * { min-width: 0; }
.analysis-detail-grid > p { font-size: 15px; line-height: 1.8; }
.skill-analysis-copy { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 28px; }
.skill-analysis-copy > p { font-size: var(--text-body); }
.task-differences { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--green-50); }
.task-differences h3 { margin-bottom: 8px; font-size: 18px; }
.task-differences p { margin: 0; color: var(--body); font-size: var(--text-small); }
.skill-analysis-copy .analysis-conclusion { grid-column: 1 / -1; max-width: none; }

/* Footer and dialog */
.site-footer { padding: 46px 0; color: #e8efea; background: #122f23; }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 38px; }
.footer-brand { color: #fff; }
.footer-copy .paper-title { max-width: 650px; margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.footer-resources { margin-top: 13px; }
.footer-resources .resource-button { min-width: 138px; min-height: 58px; padding: 8px 15px; border-radius: 9px; }
.footer-resources .resource-code { color: #e8efea; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.footer-resources .resource-code:hover { border-color: #a7c5ad; background: rgba(255,255,255,.13); }
.footer-resources .resource-paper:disabled { color: #c5d7c7; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.footer-resources .resource-status { color: #a9bdb0; }
.back-top { color: #c8d5cc; font-size: var(--text-small); font-weight: 760; text-underline-offset: 4px; }
.figure-dialog { width: min(95vw, 1500px); max-width: 95vw; height: min(92vh, 1050px); max-height: 92vh; padding: 0; overflow: hidden; color: var(--ink); border: 0; border-radius: 12px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.38); }
.figure-dialog::backdrop { background: rgba(10, 24, 17, 0.78); backdrop-filter: blur(5px); }
.dialog-toolbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #f8faf6; }
.dialog-toolbar .card-label { margin-bottom: 2px; }
.dialog-toolbar h3 { margin: 0; font-size: 18px; }
.dialog-close { width: 42px; height: 42px; flex: none; color: var(--green-800); border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 27px; line-height: 1; }
.dialog-media { display: grid; height: calc(100% - 76px); overflow: auto; place-items: center; padding: 20px; background: #eef1ec; }
.dialog-media img { max-width: none; width: auto; min-width: min(100%, 900px); max-height: none; }
.dialog-media iframe { width: 100%; height: 100%; min-height: 70vh; border: 0; background: #fff; }

@media (max-width: 1000px) {
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-detail-grid { grid-template-columns: 1fr; }
  .analysis-block, .trajectory-analysis { grid-template-columns: 1fr; gap: 27px; }
  .trajectory-analysis .analysis-copy { max-width: 820px; }
}

@media (max-width: 780px) {
  .page-shell, .nav-shell { width: calc(100% - 32px); max-width: 1180px; }
  .section { padding: 82px 0; }
  .site-header { height: 64px; }
  .menu-button { display: block; }
  #site-nav { position: absolute; top: calc(100% + 1px); right: 16px; left: 16px; display: none; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 19px 45px rgba(20, 50, 35, .18); }
  #site-nav.is-open { display: grid; }
  #site-nav a { padding: 11px 13px; }
  #site-nav a::after { right: auto; left: 13px; width: 32px; }
  .hero-section { padding: 60px 0 68px; scroll-margin-top: 64px; }
  h1 { font-size: clamp(30px, 5.8vw, 40px); }
  .abstract-card { grid-template-columns: 1fr; gap: 7px; margin-top: 51px; padding: 25px; }
  .challenge-card { grid-template-columns: 1fr; }
  .challenge-arrow { height: 36px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(90deg); }
  .overview-result { align-items: flex-start; flex-direction: column; gap: 22px; }
  .policy-primer { grid-template-columns: 1fr; }
  .recording-scope { grid-template-columns: 1fr; }
  .video-group-header { align-items: flex-start; flex-direction: column; }
  .video-stage { padding: 20px 16px; }
  .video-panels { display: flex; min-width: 0; }
  .video-panel { width: min(88vw, 390px); min-width: min(88vw, 390px); scroll-snap-align: start; }
  .method-detail-grid { margin-top: 56px; }
  .evaluation-clock { grid-template-columns: 90px minmax(0, 1fr); gap: 19px; padding: 21px; }
  .skill-copy, .analysis-detail-grid, .skill-analysis-copy { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .results-block { padding: 22px 17px; }
  .results-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .result-tabs { justify-content: flex-start; }
  .difficulty-results { padding: 0; }
  .difficulty-results .subsection-heading { padding: 23px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .back-top { justify-self: start; }
  .dialog-media { padding: 10px; }
}

@media (max-width: 520px) {
  .page-shell, .nav-shell { width: calc(100% - 24px); max-width: 1180px; }
  .section-header h2 { font-size: clamp(26px, 6vw, 30px); }
  .figure-button { padding: 8px; }
  .figure-button > span { right: 8px; bottom: 8px; }
  .challenge-card > div { padding: 21px; }
  .role-grid { grid-template-columns: 1fr; }
  .handoff-card, .configuration-card { padding: 21px 17px; }
  .handoff-fields { grid-template-columns: 1fr; }
  .evaluation-clock { grid-template-columns: 1fr; }
  .clock-mark { width: 86px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; }
  .difficulty-switch { width: 100%; }
  .analysis-block { padding: 38px 0; }
  .dialog-toolbar h3 { font-size: var(--text-support); }
}

@media (max-width: 360px) {
  .hero-resources .resource-button { width: calc(50% - 4.5px); min-width: 0; gap: 7px; padding-inline: 10px; }
  .hero-resources .resource-icon { width: 18px; height: 18px; }
}

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