/* Pantheon's backdrop, live (Dec 3). Her notes: "C, whole pipeline", "needs to look more grand", "less transparent band",
   "don't cover the actual pantheon words and description", "animate the backsplash for pantheon", "when i click on
   pantheon pictures it should pull them individually".
   Three screens on Pantheon's navy: a Portals drill, Zeus' leaderboards, Zeus' search. features/pantheon-band.js
   measures the title and line and sets the box the screens may use (--pl-x, --pl-y, --pl-w, --pl-h): beside the words on
   a computer, above them on a phone. Never behind them.
   Motion: they're dealt in one by one when the band arrives, then float gently out of step, and every few seconds a
   light passes along them from left to right (practice, then a rating, then a job). The Portals drill scrolls slowly
   inside its frame. All of it pauses off screen, and none of it runs with reduced motion. */

html #pantheon .band { background: #1D2434; }
html #pantheon .band::after { background: none; }
html #pantheon .band-text { z-index: 1; }
@media (max-width: 640px) { html main > #pantheon.sec > .band { min-height: 236px; } }

#pantheon .pl { position: absolute; z-index: -1; left: var(--pl-x, 45%); top: var(--pl-y, 0px); width: var(--pl-w, 52%); height: var(--pl-h, 100%);
  container-type: size; opacity: calc(1 - var(--cover, 0) * 0.6); }
/* a soft blue light behind the screens */
#pantheon .pl::before { content: ""; position: absolute; inset: -30% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 176, 255, 0.34), rgba(110, 136, 220, 0.1) 60%, transparent); }

#pantheon .pl-tilt { --sw: min(35cqw, 170cqh); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transform: perspective(1500px) rotateY(-13deg) rotateX(4deg); transform-style: preserve-3d; }
#pantheon .pl-scr { position: relative; flex: none; width: var(--sw); aspect-ratio: 1.6; padding: 0; border: 0; background: none;
  border-radius: 10px; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
#pantheon .pl-scr + .pl-scr { margin-left: calc(var(--sw) * -0.1); }
#pantheon .pl-scr:nth-child(1) { transform: translateY(9%); }
#pantheon .pl-scr:nth-child(3) { transform: translateY(-7%); }
#pantheon .pl-face { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; background: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 26px 50px -18px rgba(0, 0, 0, 0.75), 0 0 60px rgba(140, 170, 255, 0.16);
  transition: translate 0.5s var(--e-out, ease), scale 0.5s var(--e-out, ease), box-shadow 0.5s ease, filter 0.5s ease; }
#pantheon .pl-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#pantheon .pl-scr:nth-child(2) .pl-face img { filter: brightness(1.15); }
#pantheon .pl-scr:nth-child(3) .pl-face { background: #141414; }
#pantheon .pl-scr:nth-child(3) .pl-face img { filter: brightness(1.75) contrast(1.06); }
#pantheon .pl-scr:focus-visible { outline: none; }
#pantheon .pl-scr:focus-visible .pl-face { box-shadow: 0 0 0 3px #FCFAF6, 0 26px 50px -18px rgba(0, 0, 0, 0.75); }
@media (hover: hover) {
  #pantheon .pl-scr:hover { z-index: 2; }
  #pantheon .pl-scr:hover .pl-face { translate: 0 -6px; scale: 1.04; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 34px 60px -18px rgba(0, 0, 0, 0.8), 0 0 80px rgba(150, 180, 255, 0.3); }
}

/* the light that passes along the screens */
#pantheon .pl-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.34) 48%, rgba(255, 255, 255, 0.08) 56%, transparent 70%);
  transform: translateX(-110%); }

/* motion */
.motion #pantheon .pl-scr { opacity: 0; translate: 70px 14px; scale: 0.94; transition: opacity 0.7s ease, translate 1s var(--e-out, ease), scale 1s var(--e-out, ease); }
.motion #pantheon .band.in .pl-scr { opacity: 1; translate: 0 0; scale: 1; }
.motion #pantheon .band.in .pl-scr:nth-child(1) { transition-delay: 0.15s; }
.motion #pantheon .band.in .pl-scr:nth-child(2) { transition-delay: 0.32s; }
.motion #pantheon .band.in .pl-scr:nth-child(3) { transition-delay: 0.49s; }
.motion #pantheon .band.in .pl-face { animation: plBob 7s ease-in-out infinite alternate; }
.motion #pantheon .band.in .pl-scr:nth-child(2) .pl-face { animation-delay: -2.4s; }
.motion #pantheon .band.in .pl-scr:nth-child(3) .pl-face { animation-delay: -4.8s; }
.motion #pantheon .band.in .pl-face::after { animation: plSweep 7.5s ease-in-out infinite; animation-delay: 1.6s; }
.motion #pantheon .band.in .pl-scr:nth-child(2) .pl-face::after { animation-delay: 2.05s; }
.motion #pantheon .band.in .pl-scr:nth-child(3) .pl-face::after { animation-delay: 2.5s; }
.motion #pantheon .band.in .pl-scr:nth-child(1) img { animation: plScroll 18s ease-in-out infinite alternate; animation-delay: 1.4s; }
.motion #pantheon .pl:not(.run) *, .motion #pantheon .pl:not(.run) *::after { animation-play-state: paused !important; }
@keyframes plBob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes plSweep { 0% { transform: translateX(-110%); opacity: 1; } 22% { transform: translateX(110%); opacity: 1; } 23%, 100% { transform: translateX(110%); opacity: 0; } }
@keyframes plScroll { 0%, 12% { object-position: 50% 0%; } 88%, 100% { object-position: 50% 58%; } }

/* Dec 3, her notes: "i should be able to press it", and the screens were cut off at the top of the slim band. The whole
   band presses (features/pantheon-band.js), the words let clicks through, and the screens fit inside the band. */
#pantheon .band.pl-press { cursor: zoom-in; }
#pantheon .band.pl-press .band-text { pointer-events: none; }
#pantheon .pl-tilt { --sw: min(33cqw, 132cqh); }
#pantheon .pl-scr:nth-child(1) { transform: translateY(5%); }
#pantheon .pl-scr:nth-child(3) { transform: translateY(-4%); }
@media (hover: hover) { #pantheon .band.pl-press:hover .pl::before { opacity: 1.25; filter: brightness(1.2); } }
/* Dec 3, her pick: pantheonprep.com/programs/debate is the first screen (images/pan-debate.webp, captured from the page,
   banner cropped off). It's landscape, so it doesn't scroll in its frame. The Portals drill waits in images/ for her
   own Portals screenshots. */
.motion #pantheon .band.in .pl-scr:nth-child(1) img { animation: none; }
#pantheon .pl-scr:nth-child(1) .pl-face { background: #101826; }

/* Dec 3, her note: "get a better pantheon screenshot for the banner and the screen bkg it's ugly take it yourself you
   get the point and the concept". The three screens were full app windows shrunk into a slim band, too small and busy
   to read, and tilted hard. Now each is a close crop of the part that tells its step, sharp (2x captures), nearly flat,
   in a taller band:
   1. Portals: her own screenshot of the Practice page (the coach's name in the sidebar covered) → pan-band-portals.webp
   2. Zeus rankings: the Competitions leaderboards (demo data) → pan-band-ranks.webp
   3. Zeus hiring: "Who are you hiring?" (demo data) → pan-band-hire.webp
   Pressing a screen opens the whole screen (pan-portals.webp, zeus-leaderboards.webp, pan-zeus-search-2x.webp). Made
   with lab/pantheon-band/crop.html. */
@media (min-width: 641px) { html main > #pantheon.sec > .band { min-height: clamp(250px, 23vw, 340px); } }
#pantheon .pl-tilt { --sw: min(37cqw, 136cqh); transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); }
#pantheon .pl-scr + .pl-scr { margin-left: calc(var(--sw) * -0.18); }
#pantheon .pl-scr:nth-child(1) { z-index: 3; transform: translateY(-3%); }
#pantheon .pl-scr:nth-child(2) { z-index: 2; transform: translateY(4%); }
#pantheon .pl-scr:nth-child(3) { z-index: 1; transform: translateY(-2%); }
#pantheon .pl-scr .pl-face img, #pantheon .pl-scr:nth-child(2) .pl-face img, #pantheon .pl-scr:nth-child(3) .pl-face img { filter: none; object-position: 50% 0; }
#pantheon .pl-scr:nth-child(1) .pl-face { background: #F4F1EA; }
#pantheon .pl-scr:nth-child(2) .pl-face, #pantheon .pl-scr:nth-child(3) .pl-face { background: #161618; }
#pantheon .pl-face { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 60px -22px rgba(0, 0, 0, 0.8), 0 0 70px rgba(140, 170, 255, 0.14); }
/* Dec 3, her note: "when i click the specific pictures in pantheon it should pop up as the picture i clicked". The
   band's own layers (the fold's dimming layer) sat over the screens and took every click, so the band opened the first
   screen each time. The screens sit above those layers now, still under the words, and each opens itself. */
#pantheon .band { isolation: isolate; }
#pantheon .band::before, #pantheon .band::after { pointer-events: none; }
#pantheon .pl { z-index: 1; }
#pantheon .band-text { z-index: 2; }

/* Dec 3, her note: "don't make the pantheon thing and pictures shine do something else to make it look better".
   No light sweeping across the screens, no blue glow behind them or on hover. Instead the screens take turns: the
   pipeline's steps come forward one at a time (practice, then the rating, then the hire), the others step back a little
   and dim, about every 2.6 s (features/pantheon-band.js). Pointing at a screen brings that one forward and holds it.
   Off screen it waits, and with reduced motion they all sit still at full light. */
.motion #pantheon .band.in .pl-face::after { animation: none; opacity: 0; }
#pantheon .pl::before { display: none; }
#pantheon .pl-face { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 26px 50px -22px rgba(0, 0, 0, 0.85);
  transition: translate 0.8s var(--e-out, ease), scale 0.8s var(--e-out, ease), filter 0.8s ease, box-shadow 0.8s ease; }
.motion #pantheon .band.in .pl-face { animation: none; }
@media (hover: hover) {
  #pantheon .pl-scr:hover .pl-face { translate: 0 0; scale: 1; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 26px 50px -22px rgba(0, 0, 0, 0.85); }
}
#pantheon .pl.seq .pl-scr .pl-face { filter: brightness(0.62) saturate(0.85); scale: 0.97; }
#pantheon .pl.seq .pl-scr.on { z-index: 4; }
#pantheon .pl.seq .pl-scr.on .pl-face { filter: none; scale: 1.05; translate: 0 -6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 36px 64px -22px rgba(0, 0, 0, 0.9); }

/* Dec 3, later (her notes: "the pantheon section is too long, now the backsplash line is too big, the pantheon word and
   logo needs to be centered on the backsplash"). A shorter band, still the tallest one, with the temple, title, line and
   role centered in it. On wider screens the screens frame the words: Portals on the left, turned in a little, and the
   two Zeus screens overlapping on the right, turned in the other way (.pl.split, --mid is the room the words need, set
   by features/pantheon-band.js). Phones keep the screens above the words. */
@media (min-width: 641px) { html main > #pantheon.sec > .band { min-height: clamp(300px, 25vw, 380px); } }
html main > #pantheon.sec > .band { justify-content: center; align-items: center; }
#pantheon .band .band-text { margin: 0 auto; }
@media (max-width: 899px) { html main > #pantheon.sec > .band { align-items: flex-end; } }
#pantheon .pl.split .pl-tilt { --sw: min(calc((100cqw - var(--mid, 420px)) / 2.9), 150cqh); transform: none; justify-content: center; }
#pantheon .pl.split .pl-scr:nth-child(1) { transform: perspective(1400px) rotateY(14deg) translateY(2%); margin-right: var(--mid, 420px); margin-left: calc(var(--sw) * 0.38); }
#pantheon .pl.split .pl-scr:nth-child(2) { transform: perspective(1400px) rotateY(-14deg) translateY(-5%); margin-left: 0; }
#pantheon .pl.split .pl-scr:nth-child(3) { transform: perspective(1400px) rotateY(-14deg) translateY(7%); margin-left: calc(var(--sw) * -0.62); }
#pantheon .band .pb-mark { width: clamp(50px, 4.4vw, 74px); }
#pantheon .band .sec-title { font-size: clamp(52px, 5.6vw, 92px); }
