/* Option E: a silent product loop as its own section between the hero and Operational memory (task site-hero-video).
   The panel sits flat in the page like the first film page did (site/v5/film.html at 346da0e, .pg-win): 16:9, no frame,
   no border, no shadow, no overlay, not clickable. Site tokens only.
   Round 2 spacing: 64px above (Operational memory adds its own 64px below), 48px on phones, the same as that section's top padding.
   2026-11-11 (Mien): the panel holds the 90-second film on a loop; one speaker toggle, restart only while sound is on. */
.le-sec { position: relative; z-index: 1; background: var(--stage); padding: 40px var(--gutter) 0; }   /* round 6: 40px, the gap the drawing production intro leaves above its AutoCAD window (that section's GAP = 40), at every width */
/* round 4: the header reuses the Operational memory header markup and type (.v5-s3 .head rules copied), no blurb; the panel sits 40px (32 phones) under it */
.le-headwrap { background: var(--stage); padding-top: 64px; }
.le-headwrap .head { text-align: left; max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.le-headwrap .head h2 { font-family: var(--display); font-weight: 500; line-height: .9; letter-spacing: -.045em; font-size: clamp(44px, 6vw, 84px); }
/* the three rules above are the ones .v5-s3 .head applies to "Operational memory." (copied, not reused: the page's scripts take the first .v5-s3 as the board) */   /* the same 64px (48 on phones) .s3 puts above its header; no .s3 class, the page scripts look for the first .s3 board */
@media (max-width: 760px) { .le-headwrap { padding-top: 48px; } }
/* round 5 spacing: the h2 had the browser's default 0.83em margins (70 px above and below at 1440); the page's own rule (.v5-s3 .head h2) is margin 0.
   Gap header to video is the page's heading-to-media gap (.v5-s3 .board margin-top: 112 px, 56 px on phones); the video sits in the same 1180 px column as the headings. */
.le-headwrap .head h2 { margin: 0; }
/* 2026-11-11 (Mien): the demo page's line under the heading. Type and spacing measured from .v5-s4 .s4h p (drawing production intro): 18px/1.4, max 560px, 26px under the heading, 16px type and 18px under the heading at 760px and narrower. The 40px to the panel is .le-sec's top padding, unchanged. */
.le-headwrap .head p { margin: 26px 0 0; max-width: 560px; font-size: 18px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 760px) { .le-headwrap .head p { margin-top: 18px; font-size: 16px; } }
.le-panel { max-width: 1180px; margin: 0 auto; }
/* 2026-11-11 loop seam: the surface behind the film is the film's own frame 0 (cream #FCFAF6, sampled from cut-90.mp4), never black and never the darker page cream, so an empty video surface matches frame 0 */
.le-panel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #FCFAF6; }
.le-film { display: block; width: 100%; height: 100%; object-fit: cover; background: #FCFAF6; }
/* the speaker (bottom left) is the one always-visible control; restart sits beside it only while sound is on. Without JS neither shows. */
.le-ctl { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.le-panel:not(.is-live) .le-ctl { display: none; }
.le-spk, .le-rst { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(250, 249, 245, .92); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 200ms; }
.le-rst[hidden] { display: none; }
.le-spk:hover, .le-rst:hover { background: var(--stage); }
.le-spk:focus-visible, .le-rst:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.le-spk svg, .le-rst svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.le-spk .le-on, .le-spk .le-off, .le-spk .le-pl { display: none; }
.le-spk .le-pl { fill: var(--ink); }
.le-spk:not(.is-muted):not(.is-play) .le-on { display: inline; }
.le-spk.is-muted .le-off { display: inline; }
.le-spk.is-play .le-bd { display: none; }
.le-spk.is-play .le-pl { display: inline; }
/* thin progress line, only while sound is on */
.le-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hair-2); display: none; }
.le-panel.is-sound .le-prog { display: block; }
.le-prog b { display: block; height: 100%; width: 0; background: var(--ink); }
.js-rv .le-panel { animation: pg-rise 1000ms var(--ease) 320ms both; }
@media (prefers-reduced-motion: reduce) { .js-rv .le-panel { animation: none; } .le-spk, .le-rst { transition: none; } }
