/* =====================================================================================================
   btl.css — Behind the Line
   1. the red issue card (scales with its own width: every size is in cqw)
   2. the home: the card rises over the photo on hover
   3. the side panel
   4. the Behind the Line page: the passes on their lanyards
   ===================================================================================================== */

/* ---------- 1. the red issue card */
.btc{--r:#81171c;--g:#b6b6b6;container-type:inline-size;position:relative;overflow:hidden;background:var(--r);color:var(--g);text-align:center;-webkit-user-select:none;user-select:none}
.btc .btin{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;padding:8.5cqw 3.4cqw 3.4cqw}
.btc .btq{position:absolute;width:1.15cqw;height:1.15cqw;background:var(--g)}
.btc .q0{left:1.2cqw;top:1.2cqw}.btc .q1{left:15.4cqw;top:1.2cqw}.btc .q2{left:56.3cqw;top:1.2cqw}.btc .q3{left:83.3cqw;top:1.2cqw}
.btc .q4{right:1.2cqw;top:50%}.btc .q5{left:1.2cqw;bottom:1.2cqw}
.btc p{margin:0}
.btc .bti{font:400 3.25cqw/1 'Lusitana',Georgia,serif;letter-spacing:-.02em}
.btc .btl{width:60cqw;margin-top:2.4cqw;aspect-ratio:4585/2152}
.btc .btl svg{display:block;width:100%;height:auto;overflow:visible}
.btc .bth{margin-top:3.6cqw;width:96cqw;font:400 4.75cqw/1.04 'Lusitana',Georgia,serif;letter-spacing:-.035em;text-transform:uppercase}
.btc .bth>span{display:block;white-space:nowrap}
.btc .bth small{display:inline-block;vertical-align:.95em;margin:0 1.1cqw;font:400 1.6cqw/1 'Lusitana',Georgia,serif;letter-spacing:0;text-align:center}
.btc .btw{margin:auto 0;padding:3cqw 0;font:400 3.4cqw/1 'Helvetica Neue',Helvetica,Arial,sans-serif;letter-spacing:-.03em}
.btc .btv{position:relative;width:100%;flex:0 1 56cqw;min-height:26cqw;overflow:hidden;background:#5e1014}
.btc .btv video,.btc .btv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.btc .btsoon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:400 2.6cqw/1 'DM Mono',ui-monospace,monospace;text-transform:uppercase;letter-spacing:.02em;
  background:repeating-linear-gradient(90deg,rgba(182,182,182,.06) 0 1px,transparent 1px 3.2cqw),#6a1217}
.btc.soon .btw{opacity:.55}

/* ---------- 2. the home: over the photo, the red card rises (the photo sinks a little under it, the card's
   content travels the other way, a beat later), it leaves through the top */
#quiet .bfr.btr{cursor:pointer}
#quiet .bfr.btr .sig,#quiet:has(.bfr.btr) #bwatch{display:none!important}
#quiet .bfr .btc{position:absolute;inset:0;z-index:4;clip-path:inset(100% 0 0 0);transition:clip-path .95s cubic-bezier(.76,0,.2,1)}
#quiet .bfr .btc .btin{translate:0 22%;transition:translate 1.25s cubic-bezier(.2,.8,.1,1)}
#quiet .bfr img{transition:scale 1.3s cubic-bezier(.2,.8,.1,1),filter 1s ease}
#quiet .bfr .btc .bta,#quiet .bfr .btc .btq{opacity:0;translate:0 14px;transition:opacity .45s ease,translate .9s cubic-bezier(.2,.8,.1,1)}
#quiet .bfr .btc .btq{translate:none;scale:0;transition:opacity .3s ease,scale .5s cubic-bezier(.2,1.4,.4,1)}
#quiet .bfr .btc .btl{clip-path:inset(0 0 100% 0);opacity:1;translate:0 30%;transition:clip-path .9s cubic-bezier(.7,0,.2,1),translate 1.1s cubic-bezier(.2,.8,.1,1)}
#quiet .bfr .btc .btv video,#quiet .bfr .btc .btv img{scale:1.18;transition:scale 1.6s cubic-bezier(.2,.8,.1,1)}
#quiet .bfr.hv .btc{clip-path:inset(0 0 0 0)}
#quiet .bfr.hv .btc .btin{translate:0 0}
#quiet .bfr.hv img:not(.btc img){scale:1.07;filter:brightness(.8)}
#quiet .bfr.hv .btc .bta{opacity:1;translate:0 0}
#quiet .bfr.hv .btc .bti{transition-delay:.28s}
#quiet .bfr.hv .btc .btl{clip-path:inset(-2% -2% -2% -2%);translate:0 0;transition-delay:.3s}
#quiet .bfr.hv .btc .bth{transition-delay:.42s}
#quiet .bfr.hv .btc .btw{transition-delay:.5s}
#quiet .bfr.hv .btc .btv{transition-delay:.36s}
#quiet .bfr.hv .btc .btv video,#quiet .bfr.hv .btc .btv img{scale:1}
#quiet .bfr.hv .btc .btq{opacity:1;scale:1;transition-delay:calc(.45s + var(--q,0)*40ms)}
.btc .q1{--q:1}.btc .q2{--q:2}.btc .q3{--q:3}.btc .q4{--q:4}.btc .q5{--q:5}
#quiet .bfr.ho .btc{clip-path:inset(0 0 100% 0);transition-duration:.8s}
#quiet .bfr.ho .btc .btin{translate:0 -14%;transition-duration:.9s;transition-timing-function:cubic-bezier(.7,0,.3,1)}
#quiet .bfr.ho .btc .bta,#quiet .bfr.ho .btc .btq{opacity:1;scale:1;translate:0 0;transition:none}
#quiet .bfr.ho .btc .btl{clip-path:inset(-2%);translate:0 0;transition:none}
#quiet .bfr.ho .btc .btv video,#quiet .bfr.ho .btc .btv img{scale:1;transition:none}
#quiet .bfr.rs .btc,#quiet .bfr.rs .btc *{transition:none!important}
@media (prefers-reduced-motion:reduce){ #quiet .bfr .btc{display:none} }
/* ==== Behind the Line sidebar (27.10) ==== */
#bsd{position:fixed;inset:0;z-index:30;visibility:hidden;pointer-events:none}
#bsd.open{visibility:visible;pointer-events:auto}
#bsd .bsb{position:absolute;inset:0;background:rgba(129,23,28,.12);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);opacity:0;transition:opacity .5s cubic-bezier(.2,.75,.15,1)}
#bsd.open .bsb{opacity:1}
#bsd .bsp{position:absolute;top:0;right:0;bottom:0;width:600px;background:#b6b6b6;color:#81171c;overflow-y:auto;overscroll-behavior:contain;translate:100% 0;
  transition:translate .75s cubic-bezier(.2,.75,.15,1);box-shadow:-30px 0 80px rgba(0,0,0,.12)}
#bsd.open .bsp{translate:0 0}
#bsd .bsx{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;height:42px;padding:0 18px;background:#b6b6b6;font:400 12px/1 'Helvetica Neue',Helvetica,Arial,sans-serif;letter-spacing:-.24px}
#bsd .bsx button{appearance:none;border:0;background:none;padding:6px 0;font:inherit;color:inherit;cursor:pointer}
#bsd .bsx button:hover{opacity:.65}
#bsd .bsv{position:relative;margin:0 18px;aspect-ratio:16/9;background:#a9a9a9;overflow:hidden}
#bsd .bsv iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
#bsd .bsv video,#bsd .bsv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#bsd .bsv .soon{position:absolute;left:14px;bottom:12px;font:400 11px/1.2 'DM Mono',ui-monospace,'SF Mono',Menlo,monospace;letter-spacing:-.44px;text-transform:uppercase;color:#ececec}
#bsd .bsh{padding:26px 18px 34px}
#bsd .bsk{font:400 11px/1.2 'DM Mono',ui-monospace,'SF Mono',Menlo,monospace;letter-spacing:-.44px;text-transform:uppercase;margin:0 0 14px}
#bsd .bsn{margin:0;font:400 44px/42px 'Lusitana',Georgia,serif;letter-spacing:-1.76px}
#bsd .bsr{margin:8px 0 0;font:400 16px/19px 'Lusitana',Georgia,serif;letter-spacing:-.32px}
#bsd .bst{margin:30px 18px 40px;font:400 30px/30px 'Lusitana',Georgia,serif;letter-spacing:-1.2px;text-transform:uppercase;font-weight:400}
#bsd .bsdl{display:grid;grid-template-columns:42% 1fr;margin:0;font:400 12px/19px 'Lusitana',Georgia,serif;letter-spacing:-.01em}
#bsd .bsdl a{color:inherit;text-decoration:none}#bsd .bsdl a:hover{opacity:.65}
#bsd .bsdl dt,#bsd .bsdl dd{margin:0;border-bottom:1px solid rgba(129,23,28,.18);line-height:18px;min-height:19px}
#bsd .bss{display:grid;grid-template-columns:150px minmax(0,1fr);gap:0 0;margin:0 18px 34px}
#bsd .bss h3{margin:0;font:400 12px/19px 'Helvetica Neue',Helvetica,Arial,sans-serif;letter-spacing:-.01em}
#bsd .bss>*{min-width:0}
#bsd,#bsd p,#bsd li{white-space:normal}
#bsd .bsp:focus{outline:none}
#bsd .bss p{margin:0 0 12px;font:400 12px/16px 'Lusitana',Georgia,serif;letter-spacing:-.01em;text-align:justify}
#bsd .bss ul{list-style:none;margin:0;padding:0;font:400 12px/19px 'Lusitana',Georgia,serif;letter-spacing:-.01em}
#bsd .bss li{border-bottom:1px solid rgba(129,23,28,.18);line-height:18px;min-height:19px}
#bsd .bss li button{appearance:none;border:0;background:none;padding:0;width:100%;display:flex;justify-content:space-between;font:inherit;color:inherit;text-align:left;cursor:pointer}
#bsd .bss li button:hover{opacity:.65}
#bsd .bss li.off{opacity:.45}
#bsd .bss li span+span{opacity:.7}
/* the content comes in line after line */
#bsd .bsi{opacity:0;translate:0 10px;transition:opacity .5s cubic-bezier(.2,.75,.15,1),translate .8s cubic-bezier(.2,.75,.15,1);transition-delay:calc(.25s + var(--i,0)*60ms)}
#bsd.open .bsi{opacity:1;translate:0 0}
#bsd.swap .bsi{opacity:0;translate:0 10px;transition-duration:.18s;transition-delay:0s}
#quiet .bcol{cursor:pointer}
@media (max-width:1023px){ #bsd .bsp{width:100%} #bsd .bsn{font-size:32px;line-height:32px} #bsd .bss{grid-template-columns:110px minmax(0,1fr)} }
/* ==== /Behind the Line sidebar ==== */
#quiet .bfr .btc .btv img{top:0;left:0;height:100%;width:100%}

/* ---------- 4. the Behind the Line page: the passes on their lanyards */
body.btlpg{background:#b6b6b6}
#btlmain{position:relative;color:#81171c}
/* a page that runs sideways: nothing scrolls down, there is no footer */
html:has(body.btlpg),body.btlpg{overflow:hidden;height:100%;overscroll-behavior:none}
.btls{position:relative;height:var(--vh,100vh)}
.btlst{position:relative;height:var(--vh,100vh);overflow:hidden;background:#b6b6b6;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}
html.btpan .btlst{cursor:grabbing}
.btlr{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.btsb{fill:none;stroke:#81171c;stroke-width:24;stroke-linejoin:round}
.btse{fill:none;stroke:rgba(0,0,0,.16);stroke-width:1;stroke-dasharray:2 3;transform:translate(0,0)}
.btst0{fill:#b6b6b6;font:400 8px/1 'DM Mono',ui-monospace,monospace;letter-spacing:.22em;dominant-baseline:central}
.btlfx{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:2;image-rendering:pixelated}
.btlk{position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;perspective:1400px;pointer-events:none}
.btb{--cw:286px;position:absolute;left:0;top:0;width:calc(var(--cw) + 24px);transform-origin:50% 4px;will-change:transform;cursor:grab;touch-action:none;pointer-events:auto;outline:none;
  transform:translate3d(-999px,-999px,0);transform-style:preserve-3d}
.btb.grab{cursor:grabbing}
.btbm{transition:scale .6s cubic-bezier(.2,.8,.1,1)}
.btb.hv .btbm{scale:1.015}
.btb.grab .btbm{scale:1.03}
.btbclip{display:block;width:46px;height:auto;margin:0 auto -9px;position:relative;z-index:2;overflow:visible}
.btbclip .cl0{fill:#81171c}
.btbclip .cl1{fill:#3a3a3a}.btbclip .cl2{fill:#b6b6b6}
.btbclip .cl3{fill:#2a2a2a;stroke:#4a4a4a;stroke-width:3}
.btbclip .cl4{fill:#222}
.btbh{position:relative;padding:34px 12px 12px;border-radius:20px;background:linear-gradient(180deg,#242424,#191919);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.035),0 40px 70px -28px rgba(40,6,8,.55),0 12px 24px -8px rgba(0,0,0,.25);transition:box-shadow .5s ease}
.btb.grab .btbh{box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.035),0 70px 90px -30px rgba(40,6,8,.55),0 20px 34px -10px rgba(0,0,0,.28)}
.btbs{position:absolute;left:50%;top:13px;width:58px;height:9px;margin-left:-29px;border-radius:6px;background:#b6b6b6;box-shadow:inset 0 2px 3px rgba(0,0,0,.45)}
.btb .btc{width:var(--cw);aspect-ratio:698/1088;border-radius:7px}
.btbg{position:absolute;inset:0;border-radius:20px;pointer-events:none;
  background:linear-gradient(calc(110deg + var(--sh,0)*40deg),rgba(255,255,255,.10) 0%,rgba(255,255,255,0) 32%,rgba(255,255,255,0) 68%,rgba(255,255,255,.05) 100%)}
.btb .btc .btv video,.btb .btc .btv img{transition:scale 1.2s cubic-bezier(.2,.8,.1,1)}
.btb.hv .btc .btv video,.btb.hv .btc .btv img,.btb.cur .btc .btv img{scale:1.04}
.btb:focus-visible .btbh{outline:1px solid #81171c;outline-offset:4px}
/* the words around the row */
.btlui{position:absolute;left:12px;right:12px;bottom:22px;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;pointer-events:none}
.btlui a,.btlui button{pointer-events:auto}
.btlt{margin:0;white-space:nowrap;font:400 34px/34px 'Lusitana',Georgia,serif;letter-spacing:-.04em;text-transform:uppercase;font-weight:400}
.btlp{margin:10px 0 0;width:300px;white-space:normal;font:400 12px/16px 'Lusitana',Georgia,serif;letter-spacing:-.01em}
.btlh{justify-self:center;font:400 10px/1 'DM Mono',ui-monospace,monospace;letter-spacing:.02em;text-transform:uppercase;display:flex;gap:10px;align-items:center;padding-bottom:3px}
.btlh i{display:inline-block;width:22px;height:1px;background:currentColor;transform-origin:0 50%;animation:btlh 2.4s cubic-bezier(.6,0,.2,1) infinite}
@keyframes btlh{0%{scale:0 1}45%{scale:1 1;transform-origin:0 50%}55%{scale:1 1;transform-origin:100% 50%}100%{scale:0 1;transform-origin:100% 50%}}
.btlr0{justify-self:end;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.btlnum{font:400 12px/1 'Helvetica Neue',Helvetica,Arial,sans-serif;letter-spacing:-.02em}
.btlnum b{font-weight:400}
.btlbar{position:relative;width:150px;height:1px;background:rgba(129,23,28,.25)}
.btlbar i{position:absolute;inset:0;background:#81171c;transform-origin:0 50%;transform:scaleX(.02)}
.btlarw{display:flex;gap:6px}
.btlarw button{appearance:none;width:30px;height:24px;border:1px solid rgba(129,23,28,.4);border-radius:2px;background:none;color:#81171c;font:400 12px/1 'Helvetica Neue',Helvetica,Arial,sans-serif;cursor:pointer;transition:background .25s,color .25s}
.btlarw button:hover{background:#81171c;color:#b6b6b6}
/* the first frames: the words come in under the falling passes */
.btlui>*{opacity:0;translate:0 10px;transition:opacity .7s ease,translate 1s cubic-bezier(.2,.8,.1,1)}
.btls.on .btlui>*{opacity:1;translate:0 0}
.btls.on .btlui>:nth-child(2){transition-delay:.15s}.btls.on .btlui>:nth-child(3){transition-delay:.3s}
@media (max-width:1023px){
  .btls,.btlst{height:100svh;height:100dvh}
  /* phones: an epigraph under the pass, centred: the title, its line, then the hint and the count */
  .btlui{left:20px;right:20px;bottom:max(22px,env(safe-area-inset-bottom));grid-template-columns:auto auto;justify-content:center;column-gap:22px;row-gap:20px;text-align:center}
  .btlui>div:first-child{grid-column:1/-1;display:flex;flex-direction:column;align-items:center}
  .btlt{font-size:28px;line-height:28px}
  .btlp{width:auto;max-width:290px;margin-top:12px;font-size:12px;line-height:16px;text-align:center}
  .btlh{display:none!important}   /* phones: no how-to line under the passes */
  .btlui{grid-template-columns:auto}
  .btlr0{justify-self:center;flex-direction:row;align-items:center;gap:10px}
  .btlbar{width:60px}
  .btlarw{display:none}
  .btb{width:calc(var(--cw) + 20px)}
  .btbh{padding:28px 10px 10px;border-radius:17px}
  .btbs{top:10px;width:48px;height:8px;margin-left:-24px}
}
@media (prefers-reduced-motion:reduce){ .btlh i{animation:none} }
/* the previews never stop: the films loop, the photos drift slowly */
.btb .btc .btv img{animation:btkb 14s ease-in-out infinite alternate}
.btb:nth-child(2n) .btc .btv img{animation-duration:17s;animation-direction:alternate-reverse}
@keyframes btkb{0%{transform:scale(1.06) translate(-2%,1%)}100%{transform:scale(1.16) translate(2%,-2%)}}
@media (prefers-reduced-motion:reduce){ .btb .btc .btv img{animation:none} }

/* (29.10) cleaner foot: no arrows; the how-to line sits at the bottom right, over the count */
.btlui{grid-template-columns:1fr auto}
.btlr0 .btlh{justify-self:auto;padding-bottom:0}

/* (29.10) no count and no progress line under the passes */
.btlnum,.btlbar{display:none!important}
