/* The source animation fills the page and shares its exact theme background. */
html[data-theme] body { background: var(--paper); }
.site-header { max-width: none; min-height: 40px; padding: 4px 24px; }
.theme-toggle { min-height: 32px; padding: 5px 9px; }
.article-header { padding-top: 0; padding-bottom: 0; }
.article-header h1 { position: relative; left: 50%; transform: translateX(-50%); width: min(1440px, calc(100vw - 48px)); max-width: none; margin: 8px 0 0; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.12; }
.article-title-line { display: block; white-space: normal; text-wrap: balance; }
.article-header .resource-links { position: relative; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: nowrap; gap: 8px; width: min(460px, calc(100vw - 24px)); margin: 12px 0 0; }
.article-header .resource-links li { flex: 1 1 0; min-width: 0; }
.resource-button { min-height: 32px; padding: 5px 8px; gap: 6px; border-radius: 6px; box-shadow: inset 0 1px 0 #ffffff0d; }
.resource-icon { display: block; width: 16px; height: 16px; }
.resource-copy strong { font-size: 12px; line-height: 1; }
.resource-soon { padding: 2px 3px; font-size: 9px; letter-spacing: 0; }
.article-subtitle { max-width: 820px; margin: 20px auto 30px; color: var(--muted); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.55; font-weight: 400; text-align: center; text-wrap: balance; }
.hero-feature { position: relative; width: min(calc(100vw - 48px), var(--hero-viewport-width, 100vw)); max-width: none; margin: 12px 0 20px 50%; transform: translateX(-50%); text-align: left; }
.hero-feature-screen { position: relative; aspect-ratio: 16 / 9; width: 100%; min-height: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; touch-action: manipulation; }
.hero-feature-screen:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero-feature-screen > div { margin: 0; }
.hero-feature-screen video { border: 0; border-radius: 0; }
.hero-feature-feedback { position: absolute; z-index: 10; left: 50%; top: 50%; width: clamp(52px, 7vw, 84px); aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; pointer-events: none; border-radius: 50%; color: #fff; background: rgba(17, 26, 34, .8); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 4px 20px rgba(0, 0, 0, .18); animation: hero-playback-feedback 900ms ease-out forwards; }
.hero-feature-feedback svg { width: 44%; height: 44%; fill: currentColor; }
@keyframes hero-playback-feedback {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.94); }
  65% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}
@media(prefers-reduced-motion: reduce) { .hero-feature-feedback { animation: none; } }
.hero-feature-controls { display: block; min-height: 76px; padding-top: 4px; font-size: 12px; color: var(--muted); }
.hero-feature-controls[hidden] { display: none; }
.hero-feature-timeline { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.hero-feature-seek { --seek-progress: 0%; appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; width: 100%; height: 36px; margin: 0; background: transparent; cursor: grab; touch-action: none; }
.hero-feature-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) 0 var(--seek-progress), var(--line, #586a73) var(--seek-progress) 100%); }
.hero-feature-seek::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) 0 var(--seek-progress), var(--line, #586a73) var(--seek-progress) 100%); }
.hero-feature-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); cursor: grab; }
.hero-feature-seek::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); cursor: grab; }
.hero-feature-seek:active, .hero-feature-seek[data-scrubbing="true"] { cursor: grabbing; }
.hero-feature-seek:active::-webkit-slider-thumb { cursor: grabbing; }
.hero-feature-seek:active::-moz-range-thumb { cursor: grabbing; }
.hero-feature-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero-feature-time { min-width: 84px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-feature-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-feature-chapters { display: flex; align-items: center; gap: 4px; }
.hero-feature-controls .hero-feature-chapters button[aria-current="true"] { color: var(--accent); background: var(--surface); }
.hero-feature-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; white-space: nowrap; }
.hero-feature-controls button:hover { color: var(--ink); background: var(--surface,rgba(128,128,128,.08)); }
.hero-feature-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-feature-status:empty { display: none; }
.article-layout { padding-top: 0; }
@media(max-width:600px) {
 .site-header { padding-inline: 12px; }
 .article-header h1 { width: calc(100vw - 32px); }
 .article-header .resource-links { gap: 6px; }
 .resource-button { padding-inline: 5px; gap: 4px; }
 .resource-copy strong { font-size: 11px; }
 .resource-soon { padding-inline: 2px; font-size: 8px; }
 .hero-feature { width: min(calc(100vw - 16px), var(--hero-viewport-width, 100vw)); }
 .hero-feature-controls { min-height: 84px; font-size: 11px; }
 .hero-feature-toolbar { flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
 .hero-feature-chapters { justify-content: center; width: 100%; }
 .hero-feature-timeline { gap: 10px; }
 .hero-feature-seek { height: 44px; }
 .hero-feature-time { min-width: 74px; }
 .article-subtitle { margin: 16px auto 24px; }
}

/* Keep the film useful on a short landscape screen without hiding controls. */
@media(min-width:681px) and (max-height:500px) {
 .site-header { min-height: 28px; padding-block: 0; }
 .theme-toggle { min-height: 28px; padding: 3px 8px; font-size: 11px; }
 .article-header h1 { margin-top: 4px; font-size: 24px; line-height: 1.1; }
 .article-header .resource-links { margin-top: 8px; }
 .hero-feature { margin-top: 8px; }
 .hero-feature-controls { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 11px; }
 .hero-feature-timeline { flex: 1; min-width: 0; gap: 8px; min-height: 32px; }
 .hero-feature-seek { height: 32px; }
 .hero-feature-time { min-width: 74px; }
 .hero-feature-toolbar { flex-shrink: 0; }
 .hero-feature-controls button { min-height: 32px; padding-inline: 7px; }
}

@media(max-width:699px) { .hero-feature-screen { aspect-ratio: 16 / 9; } }

/* Theme-aware depth for the Remotion close-up, without an outer video frame. */
.hero-feature { --hero-feature-shadow: 0 8px 18px -8px rgba(0, 0, 0, .24); }
html[data-theme=light] .hero-feature { --hero-feature-shadow: 0 8px 18px -8px rgba(24, 45, 54, .12); }

.hero-feature-screen[data-mobile="true"] { aspect-ratio: 16 / 9; }
.hero-feature-screen[data-mobile="false"] { aspect-ratio: 16 / 9; }
