/* THE REEL'S FRAME — concept v1, all six pieces approved 2026-10-12 ("Yes to all six").
   RF01 four Sect focus corners · RF02 the recessed charcoal lip · RF03 the ember seam at the foot
   RF04 the record light · RF05 the corners' one move · RF06 every size, whole picture.
   The frame sits OUTSIDE the picture; the planet layer (z 2) and the words and button (z 3) stay above it. */
#pv-territory-home[data-pv7] #arrival .hero{overflow:visible}
#arrival .pvf{position:absolute;inset:0;pointer-events:none;--lip:8px;--arm:21px;--stroke:2px;--out:10px;--travel:8px;--lamp:7px;--reel-frame-sect:#F0E6D2}

/* RF02 · the lip: matte slate behind the picture, deepening to Slate Void at its outer edge */
#arrival .pvf-lip{position:absolute;inset:calc(var(--lip) * -1);z-index:-1;border-radius:2px;
  background:#111315;box-shadow:0 10px 26px rgba(0,0,0,.45)}
#arrival .pvf-lip::before{content:"";position:absolute;inset:1.5px;border-radius:1px;
  background:linear-gradient(180deg,#24272a 0%,#1E2022 40%,#1a1c1e 100%)}
/* the picture reads as a step below the lip: a 1 px recess line and a short inner shade on its edge */
#arrival .pvf-recess{position:absolute;inset:0;z-index:1;
  box-shadow:inset 0 0 0 1px rgba(5,6,8,.78),inset 0 3px 6px -2px rgba(0,0,0,.55),inset 0 -2px 5px -2px rgba(0,0,0,.4)}
/* RF02 dissolves the soft edge fade: the lip is the edge now */
#pv-territory-home #arrival .hero-reel video{-webkit-mask-image:none;mask-image:none}
/* The reel files carry their picture in the middle 80% of the frame, with black bars baked above and below
   (960×432 inside 960×540; 1280×576 inside 1280×720). Drawn 125% tall and centred, cover scales by that picture,
   so the bars fall outside the frame at every size and nothing is stretched. The poster is the same frame and fits the same way. */
#pv-territory-home[data-pv7] #arrival .hero .hero-reel video{inset:auto;left:0;top:-12.5%;width:100%;height:125%;object-fit:cover;object-position:center}

/* RF03 · the ember seam: one still hairline where the picture meets the lip, at the foot only */
#arrival .pvf-seam{position:absolute;left:0;right:0;top:100%;height:1px;z-index:1;background:var(--reel-frame-sect)}

/* RF04 · the record light: lit only while the reel is playing; never pulses */
#arrival .pvf-lamp{position:absolute;z-index:1;width:var(--lamp);height:var(--lamp);border-radius:50%;
  top:calc((var(--lip) + var(--lamp)) / -2);right:calc(var(--arm) + 6px);
  background:color-mix(in srgb,var(--reel-frame-sect) 22%,#111315);box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}
#arrival .pvf[data-rec="on"] .pvf-lamp{background:var(--reel-frame-sect);box-shadow:inset 0 1px 0 rgba(255,214,206,.55),0 0 4px color-mix(in srgb,var(--reel-frame-sect) 55%,transparent)}

/* RF01 · the four focus corners: supplied kit spec, canonical Sect ink, 10 px outside the picture */
#arrival .pvf-c{position:absolute;z-index:1;width:var(--arm);height:var(--arm);border:var(--stroke) solid var(--reel-frame-sect)}
/* the quiz's timeline owns a bare .tl class (fill and foot padding); the top-left corner shares the name and must not inherit it */
#arrival .pvf-c.tl{background:none;padding:0}
#arrival .pvf-c.tl{top:calc(var(--out) * -1);left:calc(var(--out) * -1);border-right:0;border-bottom:0;--dx:-1;--dy:-1}
#arrival .pvf-c.tr{top:calc(var(--out) * -1);right:calc(var(--out) * -1);border-left:0;border-bottom:0;--dx:1;--dy:-1}
#arrival .pvf-c.bl{bottom:calc(var(--out) * -1);left:calc(var(--out) * -1);border-right:0;border-top:0;--dx:-1;--dy:1}
#arrival .pvf-c.br{bottom:calc(var(--out) * -1);right:calc(var(--out) * -1);border-left:0;border-top:0;--dx:1;--dy:1}

/* RF05 · the corners' one move: a little wider until the reel's first frame lands, then they settle, once */
#arrival .pvf-c{transform:translate(calc(var(--dx) * var(--travel)),calc(var(--dy) * var(--travel)))}
#arrival .pvf.is-settled .pvf-c{transform:none;transition:transform 600ms cubic-bezier(.2,.7,.2,1)}
/* a reel that cannot play: the corners settle and all four stay drawn, so the frame keeps one geometry; the poster holds the picture */
@media (prefers-reduced-motion:reduce){
  #arrival .pvf-c,#arrival .pvf.is-settled .pvf-c{transform:none;transition:none}
}

/* RF06 · phones: the same frame, smaller, inside the 12 px side gutter; the whole picture still shows */
@media (max-width:640px){
  #arrival .pvf{--lip:4px;--arm:14px;--stroke:1.5px;--out:6px;--travel:6px;--lamp:5px}
}
/* the smallest phones keep a 6 px gutter: the corners come in 1 px so they never touch the screen's edge */
@media (max-width:360px){
  #arrival .pvf{--out:5px;--travel:4px}
}
