/* Colaeb homepage: Our Impact face rows + count-up stats, How Colaeb Works stacking cards.
   Adapted from MotionSites recipes (MIT, github.com/Motionsites-AI/claude-skill):
   "Scroll-linked opposing marquee rows", "Count-up statistics", "Sticky stacking cards that scale down". */

/* ---- Our Impact: two opposing rows of faces ---- */
.hp-marquee.co-rows-on .hp-track{display:none}
.co-rows{display:grid;gap:16px;padding:8px 0 4px;overflow:hidden}
.co-row{display:flex;gap:16px;width:max-content;will-change:transform;transform:translate3d(-33.333%,0,0)}
.co-face{flex:none;width:184px;height:184px;border-radius:50%;overflow:hidden;background:#eef2f1;
  box-shadow:0 0 0 1px rgba(16,24,40,.06),0 10px 28px rgba(16,24,40,.08);transition:transform .45s cubic-bezier(.22,1,.36,1),filter .45s}
.co-face img{width:100%;height:100%;object-fit:cover;display:block}
.co-row:nth-child(2) .co-face{width:150px;height:150px}
@media (hover:hover) and (pointer:fine){.co-rows:hover .co-face{filter:saturate(.75)}.co-rows .co-face:hover{transform:scale(1.06);filter:none}}
@media (max-width:767px){.co-face{width:120px;height:120px}.co-row:nth-child(2) .co-face{width:100px;height:100px}.co-rows,.co-row{gap:12px}}

/* ---- How Colaeb works: sticky stacking step cards (desktop) ---- */
@media (min-width:992px){
  .hp-how-grid.co-stack{display:block;position:relative;padding-bottom:4vh}
  .co-slot{position:sticky;top:0;height:48vh;min-height:330px;display:flex;justify-content:center;align-items:flex-start;padding-top:clamp(88px,11vh,120px)}
  .co-slot:last-child{height:auto;min-height:0;padding-bottom:0}
  .hp-how-grid.co-stack .hp-step{position:relative;top:calc(var(--i) * 26px);width:100%;max-width:1072px;transform-origin:top center;will-change:transform;
    display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto 1fr;column-gap:40px;align-items:start;
    padding:44px 52px;border-radius:32px;border:1px solid #E3E8EF;background:#fff;box-shadow:0 24px 60px rgba(16,24,40,.08);min-height:220px}
  .hp-how-grid.co-stack .hp-step:nth-of-type(1){background:#fff}
  .hp-how-grid.co-stack .co-slot:nth-child(2) .hp-step{background:#F3FBF6;border-color:#D6F0E0}
  .hp-how-grid.co-stack .co-slot:nth-child(3) .hp-step{background:#FFF7F0;border-color:#FBE3CF}
  .hp-how-grid.co-stack .co-slot:nth-child(4) .hp-step{background:#0B1220;border-color:#0B1220}
  .hp-how-grid.co-stack .co-slot:nth-child(4) .hp-step .hp-how-h3{color:#fff}
  .hp-how-grid.co-stack .co-slot:nth-child(4) .hp-step .hp-our-impact-text-2{color:rgba(255,255,255,.72)}
  .hp-how-grid.co-stack .hp-num{grid-row:1 / span 2;width:auto;height:auto;background:none;border-radius:0;color:#2ECC71;
    font:600 96px/.9 Sora,sans-serif;letter-spacing:-.04em;display:block}
  .hp-how-grid.co-stack .hp-num::before{content:"0"}
  .hp-how-grid.co-stack .hp-how-h3{font-size:32px;line-height:1.15;margin:4px 0 12px}
  .hp-how-grid.co-stack .hp-our-impact-text-2{font-size:19px;line-height:1.6;max-width:640px;margin:0}
  .hp-how-grid.co-stack .hp-how-h3,.hp-how-grid.co-stack .hp-our-impact-text-2{grid-column:2}
  .co-step-tag{position:absolute;top:46px;right:52px;font:600 12px/1 'JetBrains Mono',monospace;letter-spacing:.14em;
    text-transform:uppercase;color:#5A6575}
  .co-slot:nth-child(4) .co-step-tag{color:rgba(255,255,255,.55)}
}
@media (max-width:991px){.co-step-tag{display:none}}
