/* mobile pass: why — every rule must sit inside a phone/tablet media query (max-width:900px or narrower); desktop must not change */

/* ---------- #why: no pin on phones. One compact statement: the headline (final "founders." state), the line, the three founders.
   home.js still paints inline styles from scroll; until it gets the phone play-once (see .context/notes/why.md, adds .is-mplay),
   the final state is forced here so the headline never sits on "intern." or half-blurred. ---------- */
@media (max-width:900px){
  .why,.why.is-pin{height:auto;min-height:0;display:block;padding:clamp(40px,7svh,64px) var(--pad) clamp(44px,7svh,64px)}
  .why .wC,.why.is-pin .wC.is-pin{position:static;height:auto;min-height:0;padding:0;justify-content:flex-start}
  /* 4 short lines: "You followed / the founder. / You got the / founders." — sized so the longest word fits at 320px */
  html .wC__h{font-size:clamp(2.6rem,12.4vw,4.6rem);line-height:.98;letter-spacing:-.05em;max-width:100%}
  .wC__l1{display:block;max-width:7.2em;text-wrap:balance}
  .wC__l2{flex-wrap:wrap;justify-content:center;column-gap:.22em;row-gap:0;max-width:100%}
  .wC__sub{margin-top:clamp(18px,3svh,26px);font-size:1.08rem;line-height:1.4}
  .wC__team[hidden]{display:flex}
  .wC__team{list-style:none;margin:clamp(20px,3.4svh,28px) 0 0;padding:0;justify-content:center;gap:clamp(18px,6vw,30px)}
  .wC__team li{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:0}
  .wC__team img{width:60px;height:60px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--cream-200,#F2EFE6),0 0 0 3.5px rgba(183,127,60,.55),0 14px 26px -14px rgba(16,36,26,.55)}
  .wC__team b{font-weight:500;font-size:.95rem;letter-spacing:-.01em;color:var(--ink)}
  html[data-theme=dark] .wC__team img{box-shadow:0 0 0 2px #0A1510,0 0 0 3.5px rgba(221,174,107,.55),0 14px 26px -14px rgba(0,0,0,.8)}

  /* final state unless the phone play-once is running */
  .why:not(.is-mplay) .wC__old{display:none!important}
  .why:not(.is-mplay) .wC__new i{opacity:1!important;filter:none!important;transform:none!important;animation:none!important}
  .why:not(.is-mplay) .wC__sub{opacity:1!important;transform:none!important}
  /* once played (or while playing) the cell is only as wide as "founders." so the line centres properly */
  .why .wC__cell{justify-items:center}
  /* play-once: home.js paints every frame, so no CSS transitions fighting it */
  .why.is-mplay .wC__sub,.why.is-mplay .wC__old,.why.is-mplay .wC__new i{transition:none}
}

/* ---------- #case: hero UR card, then the other quotes as a swipe carousel (peek of the next card + progress bar), then the CTA card ---------- */
@media (max-width:900px){
  .case{padding-top:clamp(36px,6svh,56px);padding-bottom:clamp(40px,7svh,64px)}
  .case .sechead .display--l{font-size:clamp(2.2rem,10.4vw,3.4rem);line-height:1}
  .cs2{margin-top:clamp(20px,3svh,28px);gap:16px}
  .cs2::before{inset:-6% -10%}

  /* Universal Robots card: tighter, quote readable but not a wall of 26px type */
  .cs2 .cs__card{min-height:0;border-radius:24px}
  .cs2 .cs__cardin{padding:24px 22px 22px}
  .cs__meta{align-items:flex-start}
  .cs__tag{font-size:.8rem}
  .cs__logo{height:22px;width:calc(22px*var(--r,4));flex:none}
  .cs__quote{margin-top:18px;gap:16px}
  html .cs2 .cs__card .cs__quote blockquote p{font-size:calc(1.16rem*var(--qk-u,1));line-height:1.32;letter-spacing:-.022em}
  .cs__quote figcaption img{width:44px;height:44px}
  .cs2 .cs__quote+.cs__nums{margin-top:20px}
  .cs2 .cs__nums{padding-top:16px;column-gap:8px}
  html .cs2 .cs__nums dd b{font-size:clamp(1.7rem,8.4vw,2.4rem)}
  .cs2 .cs__nums dt{font-size:.76rem;line-height:1.25}

  /* the side column: carousel (order 0), progress bar (::after, order 1), CTA (order 2) */
  .cs2__side{gap:14px;timeline-scope:--qs}
  .cs2__qs{order:0;display:flex;flex-direction:row;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-timeline:--qs x;
    margin-inline:calc(var(--pad)*-1);padding:4px var(--pad) 22px;scroll-padding-inline:var(--pad)}
  .cs2__qs::-webkit-scrollbar{display:none}
  .cs2__qs>.q,.cs2__qs>.q__pool{flex:0 0 min(84%,420px);scroll-snap-align:start;min-height:0;display:flex;flex-direction:column;padding:22px 22px 20px;border-radius:22px}
  .cs2__qs>.q__pool[hidden]{display:flex}
  /* the pool quote dressed as the same glass card (desktop keeps it hidden and rotates it into the two cards) */
  .cs2__qs>.q__pool{position:relative;background:var(--gl-q,linear-gradient(180deg,rgba(255,255,255,.78),rgba(251,250,245,.6)));box-shadow:var(--gl-qs,none);border:1px solid var(--gl-qb,rgba(16,36,26,.09));
    -webkit-backdrop-filter:blur(var(--gl-blur,0)) saturate(1.5);backdrop-filter:blur(var(--gl-blur,0)) saturate(1.5)}
  .cs2__qs .q__swap{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
  html .cs2__qs .q__swap blockquote p{font-size:calc(1rem*var(--qk-s,1));line-height:1.5;color:var(--ink)}
  .cs2__qs figcaption{display:flex;align-items:center;gap:12px;margin:0;padding-right:0!important;font-size:.86rem;line-height:1.3}
  .cs2__qs figcaption img{width:42px;height:42px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px rgba(243,193,120,.5)}
  .cs2__qs figcaption b{display:block;font-weight:500;font-size:.95rem;letter-spacing:-.01em}
  .cs2__qs figcaption span{color:var(--ink-soft)}
  .cs2__qs figcaption a{color:inherit}
  /* the desktop rotation dots belong to the 2-up rotation; on phones the carousel has its own bar */
  .cs2__qs .q__dots{display:none}

  /* progress bar: a 1/3-wide bronze thumb that tracks the carousel's scroll (scroll-driven animation; hidden where unsupported) */
  .cs2__side::after{content:"";order:1;display:none;align-self:center;width:96px;height:4px;margin-top:-6px;border-radius:9px;
    background:linear-gradient(var(--bronze),var(--bronze)) 0 0/33.4% 100% no-repeat,rgba(16,36,26,.14)}
  html[data-theme=dark] .cs2__side::after{background:linear-gradient(#DDAE6B,#DDAE6B) 0 0/33.4% 100% no-repeat,rgba(242,239,230,.16)}
  .cs2__side .q--cta{order:2}

  /* CTA card: compact, full-width tap target */
  .cs2__side .q--cta{min-height:0;padding:22px;gap:16px;border-radius:22px}
  .cs2__side .q--cta .q__k{font-size:1.45rem}
  .cs2__side .q--cta .q__go{min-height:44px;font-size:.98rem}
}
@supports (animation-timeline:scroll()){
  @media (max-width:900px){
    .cs2__side::after{display:block;animation:qsBar linear both;animation-timeline:--qs}
  }
}
@keyframes qsBar{from{background-position:0 0,0 0}to{background-position:100% 0,0 0}}

/* tablets: two quotes per view */
@media (min-width:600px) and (max-width:900px){
  .cs2__qs>.q,.cs2__qs>.q__pool{flex-basis:calc(50% - 6px)}
  .wC__l1{max-width:none}
  html .wC__h{font-size:clamp(2.6rem,8.6vw,4.6rem)}
}
