/* Promo films (scripts/promo-video.mjs, dist/promo-video.js): the film band of the home page and the promo block of the product pages.
   Colours come from the brand-film palette in dist/tokens.css. Night and storm carry the mood, ivory the text, ember is the one heat accent
   (rules, button hover) and cyan appears once, in the film band's label. No glows, no mesh gradients, no pill shapes: the site's 2px radius.
   The only motion is scroll-linked (see the end of this file), off under prefers-reduced-motion and where scroll timelines are missing. */
.promo{margin:0;display:grid;gap:var(--s3);justify-items:center}
.promo-frame{position:relative;width:100%;border-radius:var(--radius);padding:6px;background:var(--storm);
  box-shadow:inset 0 0 0 1px rgb(var(--ivory-rgb) / .16),0 40px 60px -36px rgb(var(--night-rgb) / .9)}
.promo-video{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;border-radius:var(--radius);background:var(--night)}
.promo-video::cue{background:rgb(var(--night-rgb) / .78);color:var(--paper);font-family:var(--sans);font-size:1em;line-height:1.35}
.promo-controls{position:absolute;left:50%;bottom:11px;transform:translateX(-50%);display:flex;gap:8px;z-index:2}
.promo-frame:has(.promo-controls:not([hidden])){padding-bottom:62px}
.promo-controls[hidden]{display:none}
.promo-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;padding:0 12px;border:1px solid rgb(var(--ivory-rgb) / .55);border-radius:var(--radius);
  background:rgb(var(--night-rgb) / .82);color:var(--ivory);font:600 var(--t-label)/1 var(--sans);cursor:pointer;justify-content:center}
.promo-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.promo-play svg{fill:currentColor;stroke:none}
.promo-btn:hover{background:var(--ember);color:var(--night);border-color:var(--ember)}
.promo-btn:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.promo-btn[aria-pressed="true"]{border-color:var(--ember)}
.promo-play .i-pause,.promo-play[aria-pressed="true"] .i-play{display:none}
.promo-play[aria-pressed="true"] .i-pause{display:block}
.promo-sound .i-sound,.promo-sound[aria-pressed="true"] .i-muted{display:none}
.promo-sound[aria-pressed="true"] .i-sound{display:block}
.promo-cc[aria-pressed="false"]{opacity:.85;text-decoration:line-through}
.promo figcaption{font:var(--t-label)/1.4 var(--mono);letter-spacing:.04em;text-transform:uppercase;text-align:center}
.promo-summary summary{cursor:pointer;font-weight:600}
.promo-summary ol{margin:var(--s3) 0 0;padding-left:1.25em}

/* Home: the film band under the hero. */
/* The band opens on a horizon: a 2px ember line where the paper hero ends, and the faint light of that line falling 160px into the night,
   the way the phoenix lights the sky in the film. Below it the night turns slowly into storm slate. */
.film-band{position:relative;overflow:hidden;color:var(--ivory);
  background:linear-gradient(180deg,rgb(var(--ember-rgb) / .09),transparent 160px),linear-gradient(180deg,var(--night) 35%,var(--storm))}
.film-band::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--ember)}
.film-grid{display:grid;gap:var(--s7);align-items:center}
.film-copy .field{color:var(--cyan);font:var(--t-label)/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;margin:0 0 var(--s4)}
.film-copy h2{color:var(--paper);margin:0;font-size:var(--t-h2);letter-spacing:-.03em;max-width:16ch}
.film-copy .field::before{background:var(--cyan)}
.film-copy h2::after{content:"";display:block;width:88px;height:3px;margin-top:var(--s4);background:var(--ember);transform-origin:left}
.film-copy .lede{color:var(--ivory);font-size:var(--t-lede);line-height:1.5;max-width:42ch;margin:var(--s5) 0}
.film-note{color:var(--ivory-2);font-size:var(--t-small);max-width:46ch}
.film-band .promo-summary{margin-top:var(--s5);color:var(--ivory)}
.film-band .promo figcaption{color:var(--ivory-2)}
.promo-hero{width:min(100%,380px);justify-self:center}
@media (min-width:900px){
  .film-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
  .promo-hero{width:min(100%,400px)}
}

/* Product pages: the promo block after the product intro. */
.promo-section{margin:var(--s7) 0;padding:var(--s6);border-radius:var(--radius);border-top:2px solid var(--ember);background:linear-gradient(180deg,var(--storm),var(--night));color:var(--ivory)}
.promo-section h2{color:var(--paper);margin-top:0}
.promo-section h2::after{content:"";display:block;width:64px;height:3px;margin-top:var(--s3);background:var(--ember);transform-origin:left}
.promo-section a{color:var(--amber)}
.promo-layout{display:grid;gap:var(--s6);align-items:start}
.promo-product{width:min(100%,320px);justify-self:center}
.promo-product figcaption{color:var(--ivory-2)}
.promo-text p{color:var(--ivory)}
@media (min-width:720px){.promo-layout{grid-template-columns:minmax(0,320px) minmax(0,1fr)}}
@media (max-width:480px){.promo-section{padding:var(--s5) var(--s4)}.promo-btn-text{display:none}}
@media print{.promo-controls{display:none}.film-band,.promo-section{background:none;color:inherit}}

/* Scroll-linked motion, CSS only (no script, nothing for the CSP): the ember rule under a film heading is drawn as the heading
   enters the view, and the home film rises a little out of the horizon as the band scrolls in. Only transform moves, never
   opacity, so text contrast is the same in every frame. Without scroll timelines or with reduced motion everything is static. */
@keyframes ember-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes film-rise{from{transform:translateY(56px)}to{transform:none}}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .film-copy h2::after,.promo-section h2::after{animation:ember-draw linear both;animation-timeline:view();animation-range:entry 30% cover 40%}
    .film-band .promo-frame{animation:film-rise linear both;animation-timeline:view();animation-range:entry 0% cover 35%}
  }
}
