/* Scroll-driven motion. Kept as a plain file on purpose: the build minifier merges these longhands into
   one `animation:` shorthand with a timeline in it, which browsers drop. Do not move into global.css. */
/* Horizontal-scroll row (as in Ostro): the section pins, the cards travel sideways, then the page moves on.
   Desktop and phone. The travel distance (--hs-d) is measured in site.js, 65vw is the fallback. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hs { height: calc(100svh + var(--hs-d, 65vw)); view-timeline: --hs block; }
    .hs-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding-top: 5.5rem; container-type: inline-size; }
    .hs-stick .hs-track { display: flex; width: max-content; min-width: 100%; padding-right: max(var(--gutter), calc((100cqw - var(--max)) / 2)); animation-name: hsMove; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --hs; animation-range: cover 100svh cover calc(100% - 100svh); }
    .hs-stick .hs-track { overflow: visible; scroll-snap-type: none; touch-action: auto; }
    .hs-stick .hs-track > * { flex: none; width: min(30rem, 36vw); }
    @media (max-width: 64rem) { .hs-stick .hs-track > * { width: min(22rem, 78vw); } .hs-stick { gap: 1.75rem; } }
    .hs-stick .sec-head { margin-bottom: 0; }
    .hs-stick .hs-track .glass-card { min-height: 0; padding: clamp(1.5rem, 3vw, 2rem); }
    .hs-stick .hs-track .glass-card .tile { width: 4rem; height: 4rem; }
    .hs-stick .hs-track .glass-card .tile svg { width: 2rem; height: 2rem; }
    /* the panel starts as a smaller frame and opens to full screen while it scrolls up to the pin */
    .dark-panel:has(> .hs) { margin: 0; padding: 0; clip-path: polygon(calc(var(--pi) + var(--pc)) var(--pi), calc(100% - var(--pi)) var(--pi), calc(100% - var(--pi)) calc(100% - var(--pi) - var(--pc)), calc(100% - var(--pi) - var(--pc)) calc(100% - var(--pi)), var(--pi) calc(100% - var(--pi)), var(--pi) calc(var(--pi) + var(--pc))); animation-name: frameFull; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: cover 0px cover 100svh; }
  }
}
@property --pi { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --pc { syntax: '<length>'; inherits: true; initial-value: 0px; }
@keyframes frameFull { from { --pi: clamp(1.5rem, 7vw, 6rem); --pc: 30px; } to { --pi: 0px; --pc: 0px; } }
@keyframes hsMove { to { translate: calc(-100% + 100cqw); } }

