/* Micro-Edits layout family. The accent is the teaser's capture-trail teal (#278b85), darkened
   for text contrast. Blue stays reserved for the target move, as in teaser-v54.svg.
   This stylesheet is only loaded by the project page, not the scene viewers. */
:root {
  --ink: #303740;
  --ink-dim: #5a5f69;
  --line: #d8e3eb;
  --out: #0f766e;
  --accent-hover: #115e59;
  --out-tint: #effaf8;
  --blue: #3c96eb;
  --blue-tint: #f4f9fe;
  --font-b: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-d: var(--font-b);
}
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { line-height: 1.6; }
a { text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline-color: var(--blue); }
.gallery { max-width: 1060px; padding: 0 20px 30px; }
.gallery > section { width: 100%; max-width: var(--fitted-video-width, 100%); margin-inline: auto; container-type: inline-size; }
.skip-link { position: absolute; top: 8px; left: 16px; transform: translateY(-150%); background: white; padding: 10px 16px; z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.project-hero { max-width: 940px; margin: auto; padding: 20px 0 16px; text-align: center; }
.project-hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.authors, .affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; }
.authors { margin-top: 14px; gap: 5px 18px; font-size: 16px; }
.authors a { color: var(--out); }
.authors a:hover { color: var(--accent-hover); }
.authors span, .affiliations span { white-space: nowrap; }
sup { color: var(--out); font-size: .65em; margin-left: 2px; }
.affiliations { margin-top: 8px; color: var(--ink-dim); font-size: 14px; }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.resource { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--out); border-radius: 4px; color: var(--out); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.resource:hover { color: var(--out); background: var(--out-tint); text-decoration: none; }
.resource:disabled { color: var(--ink-dim); border-color: var(--line); background: transparent; opacity: .65; cursor: default; }
.resource.primary { background: var(--out); border-color: var(--out); color: white; }
.resource.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.project-teaser { margin: 0; padding: 0 0 26px; }
.project-teaser > a { display: block; border-radius: 8px; overflow: hidden; }
.project-teaser img { display: block; width: 100%; height: auto; }
.project-teaser figcaption { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--blue-tint); color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.abstract { margin: 4px auto 34px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.abstract h2 { font-size: 22px; margin-bottom: 12px; font-weight: 700; }
.abstract p { font-size: 16px; line-height: 1.65; }
.project-video { padding-bottom: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.section-heading h2 { font-size: 24px; font-weight: 700; }
.video-frame { width: 100%; margin-inline: auto; aspect-ratio: 16 / 9; background: #15252d; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 22px rgb(30 110 140 / 12%); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.risk-story { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.risk-story .section-heading h2 { font-size: 20px; line-height: 1.35; }
.risk-example { display: grid; grid-template-columns: minmax(0, 1fr) min(18%, 180px); grid-template-rows: auto auto; column-gap: clamp(8px, 2vw, 24px); row-gap: 8px; }
.risk-example figure, .slider-motif { margin: 0; min-width: 0; }
.reshoot-comparison, .risk-detail { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
.reshoot-comparison figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.risk-faces { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: 0; contain: size; font-size: 13px; line-height: 1.35; }
.risk-faces figure { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.reshoot-comparison figcaption, .risk-detail > p { color: var(--ink-dim); font-size: 14px; font-weight: 600; align-self: end; }
.reshoot-comparison figcaption { text-align: center; }
.reshoot-comparison video { display: block; width: 100%; aspect-ratio: 1000 / 572; border: 1px solid var(--line); border-radius: 6px; }
.risk-faces img { display: block; flex: none; width: auto; max-width: 100%; height: auto; max-height: calc(100% - 1.35em - 5px); border: 1px solid var(--line); border-radius: 4px; }
.risk-faces figure:first-child img { border-color: #b64045; }
.risk-faces figcaption { margin-top: 5px; color: var(--ink-dim); text-align: center; }
.slider-motif { margin-top: 10px; }
.slider-motif video { display: block; width: 100%; aspect-ratio: 12 / 1; background: white; }
.slider-motif figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; }
.slider-motif figcaption > span:last-child { text-align: right; color: var(--blue); }
.slider-motif small { display: block; color: var(--ink-dim); font-size: 13px; font-weight: 400; }
.contributions { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.contributions h2 { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.contributions ol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 44px; list-style: decimal-leading-zero; margin: 0; padding-left: 28px; }
.contributions li { padding-left: 6px; }
.contributions li::marker { color: var(--out); font-weight: 600; }
.contributions h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.contributions p { color: var(--ink-dim); font-size: 15px; }
.coming-soon { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.coming-soon h2 { font-size: 22px; font-weight: 700; }
.coming-soon p { margin-top: 8px; color: var(--ink-dim); font-size: 15px; }
.visualizer-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.visualizer-previews figure { margin: 0; min-width: 0; }
.visualizer-previews figcaption { margin-top: 8px; color: var(--ink-dim); font-size: 14px; }
#video-examples, #video { scroll-margin-top: 28px; }
.scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-bottom: 5px; color: var(--out); font-size: 12px; font-weight: 600; text-align: center; }
.scene { border: 0; border-radius: 0; background: transparent; }
.scene:hover { text-decoration: none; }
.scene .thumb { border: 1px solid var(--line); border-radius: 8px; background: var(--blue-tint); transition: box-shadow .2s, transform .2s; }
.scene:hover .thumb { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(30 110 140 / 14%); }
.scene .thumb { position: relative; aspect-ratio: 7 / 2; }
.thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--blue-tint); opacity: 0; pointer-events: none; }
.thumb video.has-preview { opacity: 1; }
.preview-controls { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.preview-toggle { cursor: pointer; background: white; font-family: inherit; }
.preview-toggle[hidden] { display: none; }
.scene:hover h3 { color: var(--out); }
.scene-info { flex-wrap: wrap; gap: 8px; padding: 10px 0 0; }
.scene-info h3 { margin: 0 0 3px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.scene-info p { font-size: 13px; }
.video-heading p { font-size: 16px; }
.video-heading h2 { font-size: 24px; font-weight: 700; }
.video-section { margin-top: 0; padding-top: 0; border-top: 0; }
.risk-explainer { margin: 0 0 42px; padding-bottom: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.risk-explainer .section-heading { margin-bottom: 8px; }
.risk-intro { color: var(--ink-dim); font-size: 16px; margin-bottom: 20px; }
.factor-videos { display: grid; gap: 28px; }
.factor-videos figure { display: grid; gap: 12px; margin: 0; min-width: 0; }
.factor-videos h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.factor-videos p { color: var(--ink-dim); font-size: 15px; }
.factor-videos video, .visualizer-previews video, .risk-walkthrough video { display: block; width: 100%; background: #fcfdfe; border: 1px solid var(--line); border-radius: 8px; }
.factor-videos video, .risk-walkthrough video { aspect-ratio: 16 / 9; height: auto; }
.factor-videos video { margin-inline: auto; }
.risk-walkthrough { width: 100%; margin: 28px auto 0; }
.risk-walkthrough h3 { font-size: 20px; margin-bottom: 8px; }
.risk-walkthrough p { color: var(--ink-dim); font-size: 15px; margin-bottom: 12px; }
.visualizer-previews video { aspect-ratio: 4 / 3; }
.risk-note { color: var(--ink-dim); font-size: 13px; margin: 14px 0 10px; }
.risk-follow { font-size: 14px; font-weight: 600; }
.drone-demo { margin-bottom: 42px; padding-bottom: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.drone-demo > h2 { font-size: 24px; font-weight: 700; margin: 4px 0 10px; }
.demo-intro { font-size: 16px; margin-bottom: 22px; }
.demo-walkthrough { display: grid; gap: 12px; margin-bottom: 30px; }
.drone-demo h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.demo-walkthrough p { font-size: 15px; line-height: 1.6; }
.demo-walkthrough p + p { margin-top: 12px; }
.drone-demo video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #101316; border-radius: 6px; }
.shot-plan { margin-bottom: 28px; }
.shot-plan dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 14px 0; }
.shot-plan dl > div { border-left: 3px solid var(--out); padding-left: 14px; }
.shot-plan dt { color: var(--out); font-size: 16px; font-weight: 600; }
.shot-plan dd { margin: 4px 0 0; color: var(--ink-dim); font-size: 15px; }
.shot-plan > p { font-size: 15px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.demo-grid figure { margin: 0; min-width: 0; }
.demo-step { display: block; color: var(--out); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.demo-grid p { font-size: 14px; color: var(--ink-dim); margin-top: 10px; }
.drone-demo .demo-caption { color: var(--ink-dim); font-size: 13px; margin-top: 14px; }
@container (max-width: 720px) {
  .reshoot-comparison figcaption, .risk-detail > p, .risk-faces { font-size: clamp(9px, 2.5cqw, 12px); line-height: 1.35; }
  .reshoot-comparison figcaption { gap: 6px; align-items: end; }
  .contributions ol { grid-template-columns: 1fr; }
  .demo-grid, .shot-plan dl { grid-template-columns: 1fr; }
}
@container (max-width: 600px) {
  .scene-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .visualizer-previews { grid-template-columns: 1fr; }
  .gallery { padding: 0 16px 28px; }
  .project-hero { padding: 24px 0; }
  .project-hero h1 { font-size: 24px; }
  .authors { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 16px; font-size: 15px; }
  .affiliations { gap: 6px 18px; }
  .resource-links { gap: 8px; }
  .resource { padding-inline: 12px; }
  .abstract { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .resource, .scene .thumb { transition: none; }
  .scene:hover .thumb { transform: none; }
}
