/* ============ Animoir — Stories page (Figma "Stories —" frames) ============
 * Layered on site.css (tokens, type, buttons, footer). Mobile first; 640 / 960 px.
 */

/* ---- hero ---- */
.sx-hero{padding:2.5rem 0 2rem;text-align:center}
.sx-hero__inner{display:grid;gap:1.375rem;justify-items:center}
.sx-hero .display{font-size:clamp(2.5rem,calc(7.4vw*var(--ui-scale,1)),4.75rem)}
.sx-hero .accent{color:var(--berry)}
.sx-hero .lead{max-width:54ch;font-size:1.125rem}
@media (min-width:960px){.sx-hero{padding:4.5rem 0 3.5rem}}
/* short laptop windows (site.css "SHORT LAPTOP WINDOWS"): a smaller headline, less air */
@media (min-width:960px) and (max-height:880px){
  .sx-hero{padding:2.5rem 0 2rem}
  .sx-hero .display{font-size:clamp(2.5rem,calc(7.4vw*var(--ui-scale,1)),4rem)}
  .sx-cta{padding:.5rem 0 4rem}
  .sx-cta__card{padding:3.5rem 4.5rem}
}

/* ---- badges, counts ---- */
.sx-badge{display:inline-flex;align-items:center;gap:.5rem;border-radius:var(--r-pill);padding:.375rem .75rem;background:var(--mint-soft);color:#1d7a54;
  font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;justify-self:start}
.sx-badge::before{content:"";width:.4375rem;height:.4375rem;border-radius:50%;background:var(--mint)}
.sx-count{display:inline-grid;place-items:center;min-width:1.375rem;height:1.375rem;padding:0 .4375rem;border-radius:var(--r-pill);background:var(--sun);
  color:var(--ink);font-size:.75rem;font-weight:700;letter-spacing:0}
.sx-pill{display:inline-flex;align-items:center;border-radius:var(--r-pill);padding:.25rem .75rem;background:var(--berry-soft);font-size:.8125rem;font-weight:600;align-self:center}
.sx-meta{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;font-size:.875rem}
.sx-meta li{display:inline-flex;align-items:center;gap:.5rem}
.sx-meta .ico{width:1.0625rem;height:1.0625rem}
.sx-actions{display:flex;flex-wrap:wrap;gap:.875rem;align-items:center}
.btn--onDark{background:transparent;color:#fff;border-color:#fff;box-shadow:none}
.btn--onDark:hover{box-shadow:none;background:rgba(255,255,255,.1)}

/* ---- featured ---- */
.sx-featured{padding:.5rem 0 2.5rem}
.sx-feature{display:grid;background:#fff;border:2px solid var(--ink);border-radius:var(--r-panel);box-shadow:0 .5rem 0 var(--ink);overflow:hidden}
.sx-feature__img{width:100%;aspect-ratio:682/364;object-fit:cover;border-bottom:2px solid var(--ink)}
span.sx-feature__img{display:grid;place-items:center}
span.sx-feature__img .ico{width:4rem;height:4rem}
.sx-feature__body{display:grid;gap:1rem;padding:1.5rem 1.25rem 1.75rem;align-content:center}
.sx-feature__body .h1{font-size:clamp(1.875rem,calc(4.4vw*var(--ui-scale,1)),3.25rem)}
.sx-feature__story{font-weight:600}
.sx-feature__body .lead{font-size:1.0625rem;max-width:44ch}
.sx-feature .sx-meta{color:var(--muted)}
@media (min-width:960px){
  .sx-featured{padding:.5rem 0 4.5rem}
  .sx-feature{grid-template-columns:1.25fr 1fr}
  .sx-feature__img{height:100%;aspect-ratio:auto;min-height:26.25rem;border-bottom:0;border-right:2px solid var(--ink)}
  .sx-feature__body{padding:3rem 3.5rem 3.25rem;gap:1.25rem}
}

/* ---- toolbar ---- */
.sx-worlds{padding:1.5rem 0 3rem}
.sx-tools{display:grid;gap:1rem;margin-bottom:2rem}
.sx-chips{display:flex;gap:.625rem;overflow-x:auto;padding:.125rem .125rem .5rem;margin:0 -1rem;padding-left:1rem;padding-right:1rem;scrollbar-width:none}
.sx-chips::-webkit-scrollbar{display:none}
.sx-chip{flex:none;display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:0 .5rem 0 1rem;border-radius:var(--r-pill);
  border:1.5px solid var(--ink);background:#fff;font-weight:500;font-size:.9062rem;cursor:pointer;white-space:nowrap}
.sx-chip[aria-pressed="true"]{background:var(--ink);color:#fff}
.sx-chip:focus-visible,.sx-search input:focus-visible,.world a:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.sx-search{display:flex;align-items:center;gap:.625rem;min-height:3rem;padding:0 1.125rem;border:1.5px solid var(--ink);border-radius:var(--r-pill);background:#fff;color:var(--muted)}
.sx-search input{flex:1;min-width:0;border:0;background:none;font-size:1rem;outline:none;color:var(--ink)}
.sx-note,.sx-empty{padding:.875rem 1.125rem;border-radius:1rem;background:var(--butter);margin-bottom:1.5rem}
.sx-empty{background:#fff;border:1.5px dashed var(--line);text-align:center;color:var(--muted)}
@media (min-width:640px){.sx-chips{margin:0;padding:.125rem .125rem .5rem;flex-wrap:wrap;overflow:visible}}
@media (min-width:1100px){.sx-tools{grid-template-columns:1fr 12.5rem;gap:.75rem;align-items:start}.sx-chips{gap:.5rem}}

/* ---- groups ---- */
.sx-group{padding:1.5rem 0 2.5rem}
.sx-group__head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .875rem;margin-bottom:1.5rem}
.sx-group__head p{flex-basis:100%;font-size:1rem}
.sx-sub{display:flex;align-items:center;gap:.625rem;margin:.5rem 0 1rem;font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.sx-sub::before{content:"";width:.5625rem;height:.5625rem;border-radius:50%;background:var(--sun)}
.sx-sub--open::before{background:var(--mint)}
.sx-sub .sx-count{background:#fff;border:1.5px solid var(--line)}
.sx-grid{display:grid;gap:1rem;margin-bottom:1.75rem}
@media (min-width:640px){.sx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}}
@media (min-width:1100px){.sx-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.375rem}.sx-grid--open{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- world cards ---- */
.world{border:1.5px solid var(--ink);border-radius:1.75rem;box-shadow:0 .3125rem 0 var(--ink);overflow:hidden}
.world h4{font-size:1.25rem;letter-spacing:-.01em;line-height:1.15}
.world--soon{display:flex;flex-direction:column;gap:.5rem;padding:1.375rem 1.375rem 1.25rem;min-height:13.75rem}
.world--soon .world__ico{margin-bottom:auto;padding-bottom:1.75rem}
.world--soon .world__ico .ico{width:2.25rem;height:2.25rem;stroke-width:1.3}
.world--soon p{font-size:.875rem;color:var(--muted)}
.world__foot{font-size:.875rem;color:var(--muted)}
.world__foot a{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:.1875rem}
.world--open{background:var(--grape);color:#fff;display:flex;flex-direction:column}
.world__img{width:100%;aspect-ratio:682/364;object-fit:cover;border-bottom:1.5px solid var(--ink)}
span.world__img{display:grid;place-items:center;aspect-ratio:auto;height:8rem}
span.world__img .ico{width:3.5rem;height:3.5rem}
.world__body{display:grid;gap:.75rem;padding:1.25rem 1.25rem 1.5rem}
.world__body h4{font-size:1.5rem}
.world__body p{color:rgba(255,255,255,.86);font-size:.9375rem}
.world__body .world__story{color:#fff;font-weight:600}
.world__body .sx-meta{color:rgba(255,255,255,.86)}
.world__body .btn--cta{min-height:3.375rem;font-size:1rem}
@media (min-width:960px){.world__body{padding:1.5rem 1.75rem 1.875rem}}
/* Zaid, 16 Nov (Figma "Available row" / "Available row Hover"): an open world rests white with
   an outlined button and turns grape with the coral button on hover, keyboard focus or when picked. */
.world--open{background:var(--white,#fff);color:var(--ink);transition:background-color .18s ease,color .18s ease}
.world--open .world__body p,.world--open .world__body .sx-meta{color:var(--muted)}
.world--open .world__body .world__story{color:var(--ink)}
.world--open .world__body .btn--cta{background:var(--white,#fff);color:var(--ink);border-color:var(--ink);box-shadow:none}
.world--open .world__body .btn--cta .btn__dot{background:var(--muted);color:#fff}
.world--open:hover,.world--open:focus-within,.world--open.is-picked{background:var(--grape);color:#fff}
.world--open:hover .world__body p,.world--open:focus-within .world__body p,.world--open.is-picked .world__body p,
.world--open:hover .world__body .sx-meta,.world--open:focus-within .world__body .sx-meta,.world--open.is-picked .world__body .sx-meta{color:rgba(255,255,255,.86)}
.world--open:hover .world__body .world__story,.world--open:focus-within .world__body .world__story,.world--open.is-picked .world__body .world__story{color:#fff}
.world--open:hover .world__body .btn--cta,.world--open:focus-within .world__body .btn--cta,.world--open.is-picked .world__body .btn--cta{background:var(--berry);color:#fff;box-shadow:0 .25rem 0 var(--ink)}
.world--open:hover .world__body .btn--cta .btn__dot,.world--open:focus-within .world__body .btn--cta .btn__dot,.world--open.is-picked .world__body .btn--cta .btn__dot{background:rgba(255,255,255,.22)}
@media (prefers-reduced-motion:reduce){.world--open{transition:none}}

/* tints: pastel card + matching icon colour (Figma) */
.sx-tint--pink{background:var(--berry-soft);color:var(--berry)}
.sx-tint--teal{background:#DCEBEA;color:#2F7C82}
.sx-tint--lavender{background:#E5E2F2;color:var(--grape)}
.sx-tint--green{background:#E3F0DA;color:#21865d}
.world.sx-tint h4{color:var(--ink)}
.ico--soft{fill:currentColor;fill-opacity:.2}

/* ---- CTA ---- */
.sx-cta{padding:.5rem 0 5.5rem}
.sx-cta__card{display:grid;gap:1.75rem;background:var(--grape);color:#fff;border:2px solid var(--ink);border-radius:var(--r-panel);
  box-shadow:0 .5rem 0 var(--ink);padding:2.5rem 1.5rem}
.sx-cta__copy{display:grid;gap:1rem}
.sx-cta__copy p{color:rgba(255,255,255,.86);font-size:1.0625rem}
.sx-cta__action{display:grid;gap:.75rem;justify-items:start}
.sx-cta__action small{color:rgba(255,255,255,.82);font-size:.875rem}
@media (min-width:960px){
  .sx-cta__card{grid-template-columns:1fr auto;align-items:center;padding:5rem 6rem}
  .sx-cta__action{justify-items:center}
}
