/* Showreel screen (11 Nov 2026): the TV's film, full window, dark. Brand v2: Shadow Grey ground, Orange and Blue Bell
   accents, white text (never white on orange), JetBrains Mono labels, Atkinson Hyperlegible Next for the text version.
   On a wide stage the end buttons sit in the film's own empty band under "What will we create?" (light frame, so dark
   text); on a narrow one they sit on a dark scrim over the last frame. */
:root { --grey: #232528; --ink: #eaf6ff; --orange: #ffa400; --blue: #009ffd; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --top: 64px; --bot: 64px; --gut: 16px; }
html, body { min-height: 100%; height: auto; }
body.reel { background: var(--grey); color: var(--ink); }
.reel__main {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh;
  padding: var(--top) max(var(--gut), env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--gut), env(safe-area-inset-left));
  box-sizing: border-box; place-items: unset;
}
.reel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

.reel__stage {
  position: relative; width: min(100%, calc((100vh - var(--top) - var(--bot)) * 16 / 9)); aspect-ratio: 16 / 9;
  background: #000; border-radius: 6px; overflow: hidden; container-type: inline-size;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
@supports (height: 100dvh) { .reel__stage { width: min(100%, calc((100dvh - var(--top) - var(--bot)) * 16 / 9)); } }
.reel__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.no-js .reel__video:not(.reel__video--plain), .no-js .reel__play { display: none; }

/* the one big play button over the poster */
.reel__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center;
  width: clamp(64px, 11cqi, 104px); aspect-ratio: 1; padding: 0; border: 2px solid rgba(234, 246, 255, .7); border-radius: 50%;
  background: rgba(35, 37, 40, .88); color: var(--orange); cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35); transition: scale .18s cubic-bezier(.3, .7, .3, 1), background-color .18s;
}
.reel__play svg { width: 50%; height: 50%; margin-left: 8%; fill: currentColor; }
.reel__play:hover { scale: 1.06; background: rgba(35, 37, 40, .96); }
.reel__play:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.reel__play[hidden] { display: none; }

/* end card: narrow stage = dark scrim over the last frame */
.reel__end {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; box-sizing: border-box; background: rgba(35, 37, 40, .96); font-family: var(--mono);
}
.reel__end[hidden] { display: none; }
.reel__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.reel__btn, .reel__again {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; box-sizing: border-box;
  border-radius: 22px; font: 700 13px/1 var(--mono); letter-spacing: .01em; text-decoration: none; cursor: pointer;
}
.reel__btn { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.reel__btn--main { border-color: var(--orange); background: var(--orange); color: var(--grey); }
.reel__btn:hover { background: rgba(234, 246, 255, .12); }
.reel__btn--main:hover { background: #ffb733; }
.reel__again { border: 0; background: transparent; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reel__again svg { width: 16px; height: 16px; }
.reel__btn:focus-visible, .reel__again:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* wide stage: in the film's empty band (End shot: y 645-759 of 1080) on the light frame */
@container (min-width: 720px) {
  .reel__end { display: block; padding: 0; background: none; }
  .reel__row { position: absolute; left: 0; right: 0; top: 59.7%; height: 10.6%; align-items: center; gap: 2.2cqi; }
  .reel__btn, .reel__again { min-height: max(44px, 4.4cqi); padding: 0 max(16px, 1.9cqi); border-radius: 99px; font-size: max(13px, 1.45cqi); }
  .reel__btn { border-color: var(--grey); color: var(--grey); }
  .reel__btn:hover { background: rgba(35, 37, 40, .08); }
  .reel__btn--main { border-color: var(--orange); color: var(--grey); }
  .reel__btn--main:hover { background: #ffb733; }
  .reel__again { position: absolute; left: 50%; translate: -50% 0; top: 76%; color: var(--grey); font-size: max(13px, 1.2cqi); }
  .reel__btn:focus-visible, .reel__again:focus-visible { outline-color: var(--grey); }   /* 14:1 on the light frame (Blue Bell was 2.6:1) */
}

/* text version */
.reel__text { width: 100%; max-width: min(100%, 720px); margin-top: 8px; align-self: center; }
.reel__text summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; cursor: pointer; list-style: none;
  font: 600 13px/1 var(--mono); color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.reel__text summary::-webkit-details-marker { display: none; }
.reel__text summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--blue); text-decoration: none; }
.reel__text[open] summary::before { content: "–"; }
.reel__text summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.reel__text ol, .reel__text p { margin: 4px 0 0; font: 400 16px/1.55 'Atkinson Hyperlegible Next', system-ui, sans-serif; color: var(--ink); }
.reel__text ol { padding-left: 1.6em; }
.reel__text li + li { margin-top: 6px; }
.reel__text p { margin: 10px 0 24px; }

/* the overlay has its own Close (top right) */
.in-frame .reel__main { --top: 64px; }

@media (prefers-reduced-motion: reduce) { .reel__play { transition: none; } .reel__play:hover { scale: 1; } }
@media (forced-colors: active) { .reel__play, .reel__btn, .reel__again { border: 2px solid ButtonText; } }
