/* r24c - how it works: the step cards beside the statues (owned by the how-it-works pass, 13.11.2026).
   Every step 01-06 is one dark glass card in the night-glass recipe of css/cards.css: a translucent near-black fill over a backdrop
   blur, a 1px moonlit rim brightest on the top edge, a whisper of the bust's marble grain, deep soft shadows. The title is the one
   lime job on the card; the number, the copy and the button stay chalk.
   Desktop: js/scenes/path.js projects each statue to the screen every frame and puts its card right beside it, on the side that
   faces the path (#how.hx turns that on), and fades the glass with the beat (--ck). Without the 3D the cards fall back to fixed
   spots next to where the statues stand. Phones: the card sits low, under the statue, above the "No 3D" pill. */

#how .beat.step{top:calc(var(--hd) + 13svh);bottom:auto;right:auto;width:clamp(320px,29vw,452px);transform:none;text-align:left}
#how .beat.step.sl{left:clamp(40px,13vw,240px)}
#how .beat.step.sr{left:auto;right:clamp(40px,13vw,240px)}
#how.hx .beat.step,#how.hx .beat.step.sl,#how.hx .beat.step.sr{left:0;top:0;right:auto}
#how .step:before{content:none}

/* the card */
#how .hc{--ck:1;position:relative;isolation:isolate;border-radius:24px;padding:28px 30px 30px;color:#F3F5F0;
  background-color:rgba(12,14,16,.6);
  background-image:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 34%);
  -webkit-backdrop-filter:blur(22px) saturate(1.15) brightness(.74);backdrop-filter:blur(22px) saturate(1.15) brightness(.74);
  box-shadow:0 1px 1px rgba(0,0,0,.35),0 24px 48px -26px rgba(0,0,0,.85),0 64px 120px -56px rgba(0,0,0,.7);
  opacity:var(--ck);transform:translate3d(0,calc((1 - var(--ck)) * 18px),0) scale(calc(.965 + var(--ck) * .035));transform-origin:50% 100%}
/* the moonlit rim: 1px, brightest along the top */
#how .hc::before{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(172deg,rgba(243,245,240,.34),rgba(243,245,240,.1) 22%,rgba(243,245,240,.055) 58%,rgba(243,245,240,.09));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}
/* the marble grain of the bust, strongest at the top where the light falls */
#how .hc::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:url(../models/tex/bustmarble_diff_m.jpg) 34% 40%/620px auto;opacity:.07;
  -webkit-mask:linear-gradient(172deg,#000,rgba(0,0,0,.3) 80%);mask:linear-gradient(172deg,#000,rgba(0,0,0,.3) 80%)}
#how .step:nth-child(odd) .hc::after{background-position:72% 18%}

/* type */
#how .hc .n{display:inline-grid;place-items:center;min-width:40px;height:28px;margin:0 0 18px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:600;line-height:1;letter-spacing:0;font-variant-numeric:tabular-nums;color:rgba(243,245,240,.66);background:rgba(243,245,240,.04);box-shadow:inset 0 0 0 1px rgba(243,245,240,.16)}
#how .hc .t3{margin:0;font-size:clamp(32px,2.75vw,48px);font-weight:500;line-height:1.06;letter-spacing:-.035em;color:#82FF1F;text-wrap:balance;padding-bottom:.1em;text-shadow:0 0 28px rgba(130,255,31,.22)}
#how .hc .lead{margin:12px 0 0;max-width:none;font-size:clamp(16px,1.2vw,19px);line-height:1.5;color:rgba(243,245,240,.8);text-align:left;text-wrap:pretty}
#how .beat.step.sr .lead{margin-left:0}
#how .hc .pill.cta{margin-top:22px;background:var(--green,#82FF1F);background-image:none;color:#04130b;animation:none;box-shadow:0 10px 34px -14px rgba(130,255,31,.55)} /* r24g: every main button is green (Vedran 14.11) */
#how .hc .pill.cta:hover{box-shadow:0 14px 42px -12px rgba(130,255,31,.7)}

/* tablets held upright: the camera frames the statue like on a phone, so the card sits low too */
@media (min-width:768px) and (max-aspect-ratio:9/10){
  #how .beat.step,#how .beat.step.sl,#how .beat.step.sr,#how.hx .beat.step{left:var(--gut);right:auto;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));width:min(520px,100% - 2 * var(--gut))}}

/* phones: low on the screen, under the statue, above the "No 3D" pill; number and title share a line */
@media (max-width:767px){
  #how .beat.step,#how .beat.step.sl,#how .beat.step.sr,#how.hx .beat.step{left:var(--gut);right:var(--gut);top:auto;bottom:calc(64px + env(safe-area-inset-bottom));width:auto}
  #how .hc{padding:16px 18px 18px;border-radius:20px;-webkit-backdrop-filter:blur(16px) saturate(1.15) brightness(.74);backdrop-filter:blur(16px) saturate(1.15) brightness(.74);background-color:rgba(12,14,16,.66)}
  #how .hc .n{min-width:34px;height:24px;margin:0 10px 0 0;font-size:12px;vertical-align:.32em}
  #how .hc .t3{display:inline;font-size:clamp(25px,7.2vw,30px);line-height:1.12}
  #how .hc .lead{margin-top:8px;font-size:15px;line-height:1.45}
  #how .hc .pill.cta{margin-top:14px}}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#how .hc{background-color:rgba(14,16,18,.9)}}
@media (prefers-reduced-transparency:reduce){#how .hc{background-color:rgba(14,16,18,.92)}}
