/* The screening room: the whole page runs dark so the footage does the talking. The ribbon is the film itself, threading once around the camera. */
body { background: var(--night); }
.bar { background: var(--night); }
.bar.is-solid { background: var(--night); }
html.gl #fields rect { fill: var(--night); }
html.gl #fields path { fill: none; }
main > .s { background: var(--night); }
main > .s.cr-close { background: var(--sky); position: relative; }   /* positioned with no z-index: it paints over the night field, and its words stay above the dots */
.wedo { position: relative; }

/* ───── the suite. On a desktop the scroll wheel is the jog wheel, so the suite stays pinned while the playhead runs. */
.suite-s { padding: 0; }
html.gl .suite-s { height: 285vh; padding-block: 0; }
.suite:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.suite { --tlh: clamp(146px, 21vh, 220px); --mw: min(calc((100vh - 72px - 14px - var(--tlh) - 12px - 54px) * 16 / 9), calc(100vw - 2 * var(--gut) - 30vw)); display: grid; grid-template-columns: minmax(0, 1fr) var(--mw); grid-template-rows: auto minmax(var(--tlh), 1fr); gap: 12px clamp(16px, 2vw, 32px); padding: 72px var(--gut) 14px; outline: 0; }
html.gl .suite { position: sticky; top: 0; height: 100vh; min-height: 560px; }
html.gl .suite__h { font-size: clamp(1.6rem, min(2.8vw, 5vh), 4.6rem); }
html:not(.gl) .suite { display: flex; flex-direction: column; padding: 72px 0 0; }
.suite__say { min-width: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 16px); min-height: 0; }
/* phones and tablets: words, picture, strip, then the credit under the strip */
html:not(.gl) .suite__say { display: contents; }
html:not(.gl) .suite__h, html:not(.gl) .suite__line { margin-inline: var(--gut); }
html:not(.gl) .suite__line { margin-top: 10px; margin-bottom: 14px; }
html:not(.gl) .suite__h { order: 1; } html:not(.gl) .suite__line { order: 2; } html:not(.gl) .monitor { order: 3; } html:not(.gl) .tl { order: 4; } html:not(.gl) .credit { order: 5; margin: 14px var(--gut) 0; }
.suite__h { font-size: clamp(1.9rem, min(2.8vw, 5vh), 4.6rem); }
.suite__line { color: var(--mist); font-size: clamp(1rem, .85vw, 1.35rem); line-height: 1.38; max-width: 34ch; text-wrap: pretty; }
.credit { margin-top: auto; padding-top: clamp(10px, 1.6vh, 18px); border-top: 2px solid rgba(220, 230, 247, .24); transition: opacity .14s linear; }
.credit.is-swap { opacity: 0; }
.credit__brand { font: 900 clamp(1.35rem, min(1.9vw, 3.4vh), 2.9rem)/1 "SM Display", sans-serif; text-transform: uppercase; color: var(--white); }
.credit__clip { margin-top: 6px; font-weight: 700; color: var(--sky); font-size: clamp(1rem, .85vw, 1.35rem); line-height: 1.25; text-wrap: balance; }
.credit__what { margin-top: 3px; color: var(--mist); line-height: 1.35; font-size: clamp(1rem, .85vw, 1.35rem); max-width: 36ch; text-wrap: pretty; }
.suite__skip { color: var(--mist); font-size: .875rem; font-weight: 600; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 28px; align-self: flex-start; }
html:not(.gl) .suite__skip { display: none; }

/* the program monitor: black, nothing written on the picture */
.monitor { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.monitor__frame { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
html:not(.gl) .monitor__frame { border-radius: 0; }
.mon { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .1s linear; }
.mon.is-on { opacity: 1; }
.mon img, .mon video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.mon video { opacity: 0; }
.mon video.is-ready { opacity: 1; }
.transport { display: flex; align-items: center; gap: 4px; min-height: 38px; color: var(--mist); flex-wrap: wrap; }
html:not(.gl) .transport { padding: 6px var(--gut) 2px; }
.tbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--white); }
.tlink:active, .suite__skip:active, .roll__jump:active, .roll__more:active, main a:not([class]):active { opacity: .68; } .clip:active::after { box-shadow: inset 0 0 0 2px var(--white); }
@media (hover: hover) { .tlink:hover { color: var(--sky); } .suite__skip:hover { color: var(--white); } main a:not([class]):hover { text-decoration-thickness: 3px; } .spool__obj { transition: transform .2s var(--ease); } .spool__obj:hover { transform: translateY(-4px); } .spool__obj:active { transform: translateY(-1px); } }
@media (hover: hover) { .tbtn:hover { background: rgba(220, 230, 247, .12); } .tbtn--play:hover { background: var(--sky); } .clip:hover::after { box-shadow: inset 0 0 0 2px var(--sky); } }
.tbtn:active { background: rgba(220, 230, 247, .2); }
.tbtn--play, .tbtn--play:active { background: var(--white); color: var(--night); }
.tbtn svg { display: block; }
.tbtn[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.transport__tc { margin-left: 10px; font-weight: 800; color: var(--white); font-size: clamp(1rem, .85vw, 1.35rem); }
.transport__total { font-size: .875rem; }
.transport__total::before { content: "/ "; }
.transport__tc i, .transport__total i { display: inline-block; width: .7em; text-align: center; font-style: normal; }
@media (max-width: 480px) { .transport__total { display: none; } }
.tlink { margin-left: auto; min-height: 38px; padding: 0 10px; font-weight: 700; color: var(--white); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tlink[aria-pressed="true"] { color: var(--sky); }

/* the timeline */
.tl { grid-column: 1 / -1; display: grid; grid-template-columns: 30px minmax(0, 1fr); background: #050F2C; border-radius: 6px; overflow: hidden; min-height: 0; }
html:not(.gl) .tl { height: 172px; flex: none; border-radius: 0; margin-top: 6px; grid-template-columns: minmax(0, 1fr); }
.tl__labels { display: grid; grid-template-rows: 22px minmax(0, 1fr) 36%; font-size: 12px; font-weight: 700; color: #9FB2D6; border-right: 1px solid rgba(220, 230, 247, .14); }
.tl__labels span { display: grid; place-items: center; border-bottom: 1px solid rgba(220, 230, 247, .1); }
html:not(.gl) .tl__labels { display: none; }
.tl__view { position: relative; overflow: hidden; min-width: 0; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tl__world { position: absolute; left: 0; top: 0; bottom: 0; will-change: transform; }
.tl__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tl__hits { position: absolute; inset: 0; }
.clip { position: absolute; top: 22px; bottom: 0; padding: 0; text-align: left; border-radius: 3px; }
.clip::after { content: ""; position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 0 2px transparent; pointer-events: none; }
.clip.is-on::after { box-shadow: inset 0 0 0 2px var(--white); }
.clip:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.tl__hits.is-tight .clip__name { font-size: 11px; left: 4px; right: 2px; }
.clip__name { position: absolute; left: 5px; top: 3px; right: 3px; font-size: clamp(12px, .62vw, 15px); line-height: 1.25; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; }
.mk { position: absolute; top: 2px; height: 18px; font-size: clamp(12px, .62vw, 15px); font-weight: 600; line-height: 18px; color: #C9D6EC; white-space: nowrap; padding-left: 11px; pointer-events: none; }
.mk::before { content: ""; position: absolute; left: 0; top: 4px; width: 8px; height: 8px; background: var(--sky); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.tl__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; pointer-events: none; will-change: transform; z-index: 2; }
.tl__head i { position: absolute; top: 0; left: -5px; width: 12px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
html:not(.gl) .tl__head, html.reduced .tl__head { left: 50%; }
html.reduced .suite-s { height: auto; }
html.reduced .suite { position: relative; height: auto; }   /* stays positioned: left static it paints under the field behind the page, and every word disappears */

/* ───── stranger things: the film loops once around the camera */
.odd, .roll { scroll-margin-top: 64px; }
html.gl .odd { padding-top: var(--air); padding-bottom: calc(var(--band) * 1.4); }
.odd__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 44px); align-items: end; }
html:not(.gl) .odd__grid { grid-template-columns: minmax(0, 1fr); }
html.gl .odd__say { padding-bottom: calc(var(--band) + 20px); }
.odd__say .d { font-size: clamp(2.3rem, 3.9vw, 5.6rem); max-width: 13em; }
.odd__list { list-style: none; padding: 0; display: grid; gap: 2px; margin-top: clamp(14px, 2vw, 28px); }
.odd__list li { display: grid; grid-template-columns: clamp(84px, 8.4vw, 150px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(220, 230, 247, .2); }
.odd__list img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: #000; }
.odd__slate { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 5px; background: #050F2C; color: var(--sky); font: 900 clamp(1rem, 1.55vw, 1.6rem)/1 "SM Display", sans-serif; text-transform: uppercase; }
.odd__list p { font-size: var(--t-line); line-height: 1.32; color: var(--white); max-width: 34ch; text-wrap: balance; }
.spool { display: none; }
html.gl .spool { display: grid; place-items: center; width: calc(var(--band) * 3.3); height: calc(var(--band) * 3.3); }
.spool__obj { display: block; width: calc(var(--band) * 1.3); }
/* the object's canvas overscans its box by a third, so the box leaves room for it inside the page */
html:not(.gl) .spool { display: block; width: min(100%, 320px); margin: 8px auto 0; }
html:not(.gl) .spool__obj { width: 70%; margin-inline: auto; }

/* ───── the credit roll: two columns on one axis, like the end of a film */
.roll { padding-inline: var(--gut); }
html.gl .roll { padding-top: calc(var(--band) / 2 + var(--air) * .7); padding-bottom: calc(var(--band) / 2 + var(--air) * .7); }
.roll__h { font-size: clamp(2.3rem, 3.9vw, 5.6rem); text-align: center; max-width: 16em; margin-inline: auto; }
.roll__list { margin: clamp(26px, 3.4vw, 54px) auto 0; max-width: 1240px; }
.roll__list > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(14px, 2.2vw, 36px); align-items: baseline; padding: clamp(3px, .42vw, 8px) 0; }
.roll__list dt { font: 900 clamp(1.05rem, 1.55vw, 2rem)/1.15 "SM Display", sans-serif; text-transform: uppercase; text-align: right; color: var(--white); }
.roll__list dd { margin: 0; color: var(--mist); font-size: clamp(1rem, .85vw, 1.35rem); line-height: 1.32; text-wrap: pretty; max-width: 60ch; }
.roll__list dd:has(.roll__jump) { position: relative; padding-right: 4.2em; }
.nb { white-space: nowrap; }
html:not(.js) .roll__jump { display: none; }
.roll__more { display: none; padding: 0; }
.roll__also { margin: clamp(20px, 2.4vw, 32px) auto 0; max-width: 1240px; color: var(--mist); text-align: center; font-size: clamp(1rem, .85vw, 1.35rem); }
.roll__also a { color: var(--white); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-block; padding-block: 11px; margin-block: -11px; }
.roll__jump { position: absolute; right: 0; top: 0; padding: 0; font-weight: 700; color: var(--sky); text-decoration: underline; text-underline-offset: 4px; transition: color .15s var(--ease); }
@media (hover: hover) { .roll__jump:hover { color: var(--white); } }

/* ───── close */
/* close: one film frame across the whole field in the page's own dots, the words under it */
.cr-close { padding-bottom: clamp(44px, 5vw, 96px); }
html.gl .cr-close { padding-top: calc(var(--band) / 2 + var(--air) * .55); padding-bottom: clamp(44px, 5vw, 96px); }
.cr-close__frame { --b: min(36px, var(--gut)); margin-inline: calc(var(--b) * -1); min-height: clamp(300px, min(33vw, 56vh), 720px); }
.cr-close__say { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px clamp(20px, 4vw, 70px); align-items: end; margin-top: clamp(4px, 1vw, 16px); }
.cr-close .d { font-size: clamp(2.3rem, 3.9vw, 5.6rem); }
.cr-close__go { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.close__tag { margin-top: 0; }
@media (max-height: 500px) { .cr-close__frame { min-height: 260px; } }
@media (max-width: 760px) { .cr-close__frame { min-height: calc(58vw + 2 * var(--b)); } .cr-close__say { grid-template-columns: minmax(0, 1fr); margin-top: 6px; } }

@media (max-width: 1000px) { html.gl .odd__list p { font-size: 1rem; } }
@media (max-width: 760px) {
  html.gl .odd__grid { grid-template-columns: minmax(0, 1fr); }
  .roll__list > div { grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 9px 0; border-top: 1px solid rgba(220, 230, 247, .16); }
  .roll__list dt { text-align: left; font-size: 1.1rem; }
  .roll__h { text-align: left; margin-inline: 0; }
  .roll__also { text-align: left; }
  .js .roll__list:not(.is-all) > div:nth-child(n + 13) { display: none; }
  .js .roll__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 800; color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
  .js .roll__list.is-all + .roll__more { display: none; }
  .tbtn { width: 44px; height: 44px; }
  .tlink { min-height: 44px; }
  .roll__list dd:has(.roll__jump) { position: static; padding-right: 0; }
  .roll__jump { position: static; min-height: 44px; display: flex; align-items: center; }
  .suite__skip { min-height: 44px; }
}
@media (pointer: coarse) { .tbtn { width: 44px; height: 44px; } .tlink, .suite__skip { min-height: 44px; } .roll__jump { padding-block: 11px; margin-block: -11px; } }
@media (pointer: coarse) and (min-width: 761px) { .roll__list > div { padding-block: 10px; border-top: 1px solid rgba(220, 230, 247, .16); } }
/* tablets: the camera sits beside the list instead of alone under it */
@media (min-width: 640px) { html:not(.gl) .odd__grid { grid-template-columns: minmax(0, 1fr) clamp(180px, 28vw, 320px); align-items: center; } html:not(.gl) .spool { width: 100%; margin: 0; } html:not(.gl) .spool__obj { width: 86%; } }
/* phone transport: the buttons on one row, the running time and Play it all on the next, nothing left floating */
@media (max-width: 480px) {
  .transport { display: grid; grid-template-columns: 44px 44px 44px minmax(0, 1fr) 44px; row-gap: 2px; }
  .transport [data-t="sound"] { grid-column: 5; grid-row: 1; }
  .transport__tc { grid-column: 1 / 4; grid-row: 2; margin-left: 2px; align-self: center; }
  .tlink { grid-column: 4 / 6; grid-row: 2; justify-self: end; margin-left: 0; padding-right: 0; }
}
/* a tablet on its side: the suite sits side by side like the desktop, with the strip moving under a fixed playhead */
@media (min-width: 900px) and (orientation: landscape) {
  html:not(.gl) .suite { display: grid; padding: 72px var(--gut) 14px; }
  html:not(.gl) .suite__say { display: flex; }
  html:not(.gl) .suite__h, html:not(.gl) .suite__line { margin: 0; }
  html:not(.gl) .suite__h { font-size: clamp(1.6rem, min(2.8vw, 5vh), 4.6rem); }   /* the same size the desktop gives this column, or "FILMS," ends up alone on a line */
  html:not(.gl) .credit { margin: auto 0 0; }
  html:not(.gl) .monitor__frame { border-radius: 6px; }
  html:not(.gl) .transport { padding: 0; }
  html:not(.gl) .tl { height: var(--tlh); margin-top: 0; border-radius: 6px; }
}
.cr-close .line a { display: inline-block; padding-block: 11px; margin-block: -11px; }
@media (prefers-reduced-motion: reduce) { .mon, .credit { transition: none; } }
/* the footer block's longest word runs past a 320 screen (kit request logged) */
@media (max-width: 340px) { .wedo__list b { font-size: 1.86rem; } }
/* with JavaScript off: the words and links read, and nothing looks clickable that isn't */
html:not(.js) .transport, html:not(.js) .tl, html:not(.js) .suite__skip, html:not(.js) .suite__line, html:not(.js) .roll__more { display: none; }
html:not(.js) .suite { padding-bottom: 24px; }
.suite-s noscript .line { margin: 0 var(--gut) 24px; }
html:not(.js) .strip video::-webkit-media-controls { display: none !important; }
/* a landscape phone: the whole picture fits under the bar, with black at its sides like any player */
@media (max-height: 500px) { html:not(.gl) .monitor__frame { aspect-ratio: auto; height: calc(100svh - var(--bar-h, 64px) - 8px); } }
/* a 320 screen: long words get a size that doesn't stack them one per line */
@media (max-width: 340px) { .suite__h { font-size: 1.75rem; } }
/* phone headings scale with the screen, so each one breaks the same way on every phone */
@media (max-width: 430px) { .odd__say .d, .roll__h { font-size: min(2.3rem, 9.2vw); } }
