/* The companions scene on the homepage. Built by tools/apex-companions.mjs; edit there. */
/* Two versions. Laptops (wide screen, mouse or trackpad) get the full camera scene.
   Phones, tablets, small windows, no script and reduced motion get the light cards, which
   hold three small images and never load the full scene's pages. */
.cs-scene{display:none;height:580vh;position:relative;background:#0B1120;--cs-gold:#FFC983;--cs-ivory:#EDE8DC;--cs-rule:#26304A}
.cs-lite{background:#0B1120;padding:76px 24px 84px;--cs-w:min(100vw - 48px,560px)}
.cs-row{max-width:560px;margin:0 auto 76px}
.cs-row:last-child{margin-bottom:0}
.cs-lite .cs-row h3{color:#EDE8DC;font-size:28px;font-weight:800;margin:0 0 12px}
.cs-lite .cs-row p{color:#EDE8DC;font-size:20px;line-height:1.45;margin:0 0 26px}
.cs-card{position:relative;overflow:hidden;width:100%;border-radius:12px;background:#FAF7F0;border:2px solid #FFC983;box-shadow:0 0 22px rgba(255,201,131,0.35)}
.cs-card.cs-one{display:none}
@media (max-width:600px){
  .cs-card.cs-two{display:none}
  .cs-card.cs-one{display:block}
}
.cs-card img{position:absolute;height:auto;max-width:none;display:block}
.cs-hand{position:absolute;font-family:'Newsreader',Georgia,serif;font-style:italic;font-weight:500;color:#1F3A8A}
html.js:not(.static) .cs-hand span{opacity:0;transition:opacity .35s ease}
html.js:not(.static) .cs-card.cs-in .cs-hand span{opacity:1}
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  html.js:not(.static) .cs-scene{display:block}
  html.js:not(.static) .cs-lite{display:none}
}
.cs-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:grid;grid-template-columns:minmax(0,21em) minmax(0,760px);justify-content:center;align-items:center;column-gap:clamp(28px,5vw,80px);padding:86px max(24px,env(safe-area-inset-right,0px)) 96px max(24px,env(safe-area-inset-left,0px))}
.cs-view{position:relative;height:100%;min-height:0;overflow:hidden;border-radius:16px}
.cs-glow{position:absolute;inset:0;background:radial-gradient(62% 52% at 50% 47%,rgba(255,201,131,0.24),rgba(255,201,131,0) 100%);pointer-events:none;opacity:0}
.cs-world{position:absolute;left:0;top:0;width:1819px;height:2572px;transform-origin:0 0;--inv:4}
.cs-pg{position:absolute;left:0;top:0;width:1819px;height:2572px;border-radius:14px;overflow:hidden;background:#FAF7F0;box-shadow:0 0 0 calc(1.5px * var(--inv)) rgba(237,232,220,0.3),0 70px 180px rgba(0,0,0,0.6);display:none}
.cs-pg.cs-dark{background:#111A2B}
.cs-pg img{display:block;width:1819px;height:2572px;max-width:none}
.cs-ring{position:absolute;border-radius:20px;border:calc(3px * var(--inv)) solid var(--cs-gold);box-shadow:0 0 0 4000px rgba(11,17,32,0.5),0 0 calc(26px * var(--inv)) var(--cs-gold);opacity:0}
.cs-pen{position:absolute;font-family:'Newsreader',Georgia,serif;font-style:italic;font-weight:500;font-size:64px;line-height:74.6px;color:#1F3A8A}
.cs-pen.cs-cell{font-size:54px;line-height:62px}
.cs-pg:not(.cs-ready) .cs-pen,.cs-pg:not(.cs-ready) .cs-ring{visibility:hidden}
.cs-pen span{opacity:0;transition:opacity .18s linear}
.cs-pen span.on{opacity:1}
.cs-words{min-width:0;display:grid}
.cs-beat{grid-area:1/1;opacity:0;transform:translateY(14px);transition:opacity .4s ease,transform .4s ease;visibility:hidden;align-self:center}
.cs-beat.on{opacity:1;transform:none;visibility:visible}
.cs-scene .cs-beat h3{color:var(--cs-ivory);font-size:clamp(30px,3.4vw,46px);font-weight:800;margin:0 0 18px}
.cs-scene .cs-beat p{color:var(--cs-ivory);font-size:clamp(22px,2.2vw,30px);line-height:1.42;margin:0}
.cs-beat p span{opacity:0.26;transition:opacity .3s ease}
.cs-beat p span.lit{opacity:1}
.cs-thread{position:absolute;left:max(24px,env(safe-area-inset-left,0px));right:max(24px,env(safe-area-inset-right,0px));top:34px;height:30px}
.cs-rail{position:absolute;left:0;right:0;top:5px;height:2px;background:var(--cs-rule)}
.cs-fill{position:absolute;left:0;right:0;top:5px;height:2px;background:var(--cs-gold);transform-origin:0 50%;transform:scaleX(0)}
.cs-bead{position:absolute;top:0;left:0;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--cs-gold);box-shadow:0 0 18px var(--cs-gold)}
.cs-thread button{all:unset;cursor:pointer;position:absolute;top:0;padding-top:18px;font-family:'Archivo',Arial,sans-serif;font-weight:700;font-size:13px;line-height:1;color:var(--cs-ivory);white-space:nowrap}
.cs-thread button::before{content:"";position:absolute;left:0;top:1px;width:2px;height:10px;background:var(--cs-ivory)}
.cs-thread button:focus-visible{outline:2px solid var(--cs-gold);outline-offset:4px}
.cs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (max-width:820px){
  /* the fan of four covers: two rows of two, so every cover is whole */
  .collection .shelf{flex-wrap:wrap;gap:18px 16px;perspective:none}
  .collection .shelf .art{width:calc(50% - 8px);max-width:190px}
  .collection .shelf .a1{transform:rotate(-1.4deg);order:1}
  .collection .shelf .a4{transform:rotate(1.4deg);order:2}
  .collection .shelf .a2{transform:rotate(0.8deg);order:3}
  .collection .shelf .a3{transform:rotate(-0.8deg);order:4}
}
