/* The theatre: the films full screen, on the site's dark surface, with fine lines and nothing else.
   The picture is the Atlas's own and is never tinted or covered while it plays: the controls sit under it. */
.theatre { --tb: #0d1013; --ti: #e9ecef; --ti2: rgba(233,236,239,.74); --tm: #979b9f; --tl: rgba(233,236,239,.13); --tl2: rgba(233,236,239,.24); --tl3: rgba(233,236,239,.5); --tg: #e9c47a; --bar: 68px;
  position: fixed; inset: 0; z-index: 400; background: var(--tb); color: var(--ti); font-family: var(--font); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s var(--ease), visibility 0s linear .45s; overflow: hidden; outline: 0; }
.theatre.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s var(--ease); }
.theatre.now { transition: none; }
.theatre:not(.ga) .ga-page { display: none; }
.theatre-open .athena { opacity: 0; pointer-events: none; }
.th-screen { position: absolute; inset: 0; background: #05070b; }
.theatre.playing .th-screen { bottom: var(--bar); }
.th-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #05070b; }
.th-guard { position: absolute; inset: 0; }
.theatre.playing .th-guard { cursor: pointer; }
.th-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 8px 14px; color: var(--tm); background: var(--tb); border: 1px solid var(--tl); font-size: 10.5px; letter-spacing: .18em; }
.th-wait::after { content: ''; display: inline-block; width: 1.4em; text-align: left; animation: th-dots 1.5s steps(4, end) infinite; }
@keyframes th-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.theatre.failed .th-wait { letter-spacing: .04em; text-transform: none; font: 400 15px var(--font); border: 0; }
.theatre.failed .th-wait::after { content: none; }
.theatre.ga:not(.playing):not(.loading) .th-wait { display: none; }

/* cued on its first frame: one press, and it plays and speaks */
.th-cue { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; color: #fff; background: rgba(5,7,11,.42); text-align: center; padding: 24px; }
.th-cue[hidden] { display: none; }
.th-cue i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); font-style: normal; transition: transform .5s var(--expo), background .3s; }
.th-cue i svg { width: 26px; height: 26px; }
.th-cue:hover i, .theatre.kb .th-cue:focus-visible i { transform: scale(1.06); background: rgba(255,255,255,.08); }
.th-cue:focus-visible { outline: none; }
.theatre.kb .th-cue:focus-visible i { outline: 1px solid #fff; outline-offset: 6px; }
.th-cue b { margin-top: 6px; font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.02em; }
.th-cue small { color: rgba(255,255,255,.72); font-size: 10.5px; }

/* the controls, under the picture */
.th-bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); display: grid; grid-template-columns: 40px auto minmax(60px, 1fr) auto auto 40px 92px; align-items: center; gap: 14px; padding: 0 clamp(14px, 2vw, 26px); background: var(--tb); border-top: 1px solid var(--tl2); }
.th-bar[hidden] { display: none; }
.th-bar button { display: grid; place-items: center; color: var(--ti); }
.th-pp { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tl3); transition: border-color .25s, background .25s; }
.th-pp:hover { border-color: var(--ti); background: rgba(233,236,239,.06); }
.th-pp svg { width: 18px; height: 18px; }
.th-mu { width: 40px; height: 40px; }
.th-mu svg { width: 20px; height: 20px; }
.th-time, .th-dur { font-size: 11px; color: var(--tm); white-space: nowrap; min-width: 4ch; }
.th-time { color: var(--ti); text-align: right; }
.th-track { position: relative; display: flex; align-items: center; }
.th-ticks { position: absolute; left: 0; right: 0; top: 50%; height: 0; pointer-events: none; }
.th-ticks i { position: absolute; top: -5px; width: 1px; height: 10px; background: var(--tl3); }
.th-tip { position: absolute; bottom: 30px; transform: translateX(-50%); padding: 5px 9px; white-space: nowrap; pointer-events: none; background: var(--tb); border: 1px solid var(--tl2); color: var(--ti); font-size: 10px; }
.th-bar .th-pc { display: block; height: 34px; max-width: 26ch; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--tl2); font-size: 10.5px; color: var(--ti); transition: border-color .25s; }
.th-bar .th-pc[hidden] { display: none; }
.th-bar .th-pc:hover, .th-bar .th-pc[aria-expanded=true] { border-color: var(--ti); }
.theatre .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--tg) var(--p), var(--tl2) var(--p)); }
.theatre .range::-webkit-slider-thumb { background: var(--ti); }
.theatre .range::-moz-range-track { background: var(--tl2); }
.theatre .range::-moz-range-progress { background: var(--tg); }
.theatre .range::-moz-range-thumb { background: var(--ti); }
.th-now { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.th-pieces { position: absolute; z-index: 6; right: clamp(14px, 2vw, 26px); bottom: calc(var(--bar) + 10px); width: min(360px, calc(100% - 28px)); max-height: min(64vh, 520px); overflow: auto; list-style: none; margin: 0; padding: 6px 0; background: var(--tb); border: 1px solid var(--tl2); }
.th-pieces[hidden] { display: none; }
.th-pieces button { display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline; gap: 10px; width: 100%; padding: 11px 16px; text-align: left; font-size: 14px; color: var(--ti2); transition: background .2s, color .2s; }
.th-pieces button:hover, .th-pieces button:focus-visible { background: rgba(233,236,239,.06); color: var(--ti); }
.th-pieces button[aria-current] { color: var(--tg); }
.th-pieces i { font-style: normal; font-size: 10px; color: var(--tm); }
.th-pieces small { font-size: 10px; color: var(--tm); }
.th-x { position: absolute; top: 14px; right: 14px; z-index: 7; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ti); background: rgba(13,16,19,.55); border: 1px solid var(--tl2); transition: border-color .25s, opacity .5s; }
.th-x svg { width: 18px; height: 18px; }
.th-x:hover { border-color: var(--ti); }
.theatre.idle .th-x { opacity: 0; }
.theatre.idle .th-guard { cursor: none; }

/* the Great Archive's page: the words on the left, the mind and its memory turning behind them */
.theatre.ga:not(.playing) .th-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13,16,19,.94) 0%, rgba(13,16,19,.8) 40%, rgba(13,16,19,.18) 72%, rgba(13,16,19,0) 100%); }
.ga-page { position: absolute; inset: 0; z-index: 2; overflow: auto; overscroll-behavior: contain; padding: clamp(64px, 9vh, 128px) clamp(22px, 6vw, 96px) 72px; transition: opacity .5s var(--ease); }
.theatre.playing .ga-page { opacity: 0; pointer-events: none; visibility: hidden; }
.ga-col { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; }
.ga-eyebrow { margin: 0 0 20px; color: var(--tm); }
.ga-h { margin: 0 0 22px; font-size: clamp(44px, min(7.2vw, 10.6vh), 104px); font-weight: 400; letter-spacing: -.045em; line-height: .96; color: var(--tg); }
.ga-q { margin: 0 0 24px; max-width: 26ch; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.28; letter-spacing: -.02em; color: var(--ti); }
.ga-col > p:not([class]) { margin: 0 0 14px; max-width: 58ch; font-size: 16px; line-height: 1.62; color: var(--ti2); }
.ga-play { display: inline-flex; align-items: center; gap: 18px; margin: 16px 0 48px; color: var(--ti); text-align: left; }
.ga-play i { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.85); font-style: normal; transition: transform .5s var(--expo), background .3s; }
.ga-play i svg { width: 22px; height: 22px; }
.ga-play:hover i, .theatre.kb .ga-play:focus-visible i { transform: scale(1.06); background: rgba(255,255,255,.08); }
.ga-play:focus-visible { outline: none; }
.theatre.kb .ga-play:focus-visible i { outline: 1px solid #fff; outline-offset: 5px; }
.ga-play:disabled { cursor: progress; opacity: .7; }
.ga-play b { display: block; font-weight: 400; font-size: 21px; letter-spacing: -.02em; }
.ga-play small { display: block; margin-top: 6px; color: var(--tm); font-size: 10.5px; }
.ga-plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 0 44px; }
.ga-plates figure { margin: 0; }
.ga-plates img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0a0d16; border: 1px solid var(--tl); }
.ga-plates figcaption { padding-top: 10px; }
.ga-plates b { display: block; font-weight: 400; font-size: 14.5px; color: var(--ti); }
.ga-plates span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--tm); }
.ga-label { margin: 0 0 14px; color: var(--tm); }
.ga-parts { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 940px; }
.ga-parts a, .ga-parts span { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--tl2); color: var(--ti); font-size: 13px; transition: border-color .25s; }
.ga-parts a:hover, .ga-parts a:focus-visible { border-color: var(--ti); }
.ga-parts span { color: var(--ti2); }
.ga-parts i { font-style: normal; font-size: 10px; color: var(--tm); }
.ga-foot { margin: 0; font-size: 14px; color: var(--ti2); }
.ga-foot span { display: block; margin-top: 4px; color: var(--tm); }

@media (max-width: 860px) {
  .ga-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theatre.ga:not(.playing) .th-screen::after { background: rgba(13,16,19,.84); }
}
@media (max-width: 700px) {
  .theatre { --bar: 104px; }
  .th-bar { grid-template-columns: 40px auto auto 1fr 40px; grid-template-rows: 34px 1fr; gap: 0 12px; padding-top: 6px; }
  .th-track { grid-column: 1 / -1; grid-row: 1; }
  .th-pp { grid-row: 2; } .th-time { grid-row: 2; text-align: left; } .th-dur { grid-row: 2; } .th-dur::before { content: '/ '; }
  .th-bar .th-pc { grid-row: 2; justify-self: end; max-width: 100%; } .th-mu { grid-row: 2; }
  .th-vol { display: none; }
  .ga-page { padding-top: 84px; }
}
/* on a short screen the film comes before the reading, so its button is never under the fold */
@media (max-height: 760px) {
  .ga-play { order: 1; margin: 0 0 30px; }
  .ga-col > p:not([class]) { order: 2; }
  .ga-col > p:not([class]):last-of-type { margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) { .th-wait::after { animation: none; content: '...'; } }
