/* v3.4 motion (2 Dec 2026): Swiss-style movement — type and rules, not effects.
   Everything here only applies once motion.js has set html.sw-motion, so the page is complete without JS,
   and nothing moves for visitors who ask for reduced motion. */

/* 1 · hero headline: lines rise out of a mask, one after another */
.sw-motion .sw-hero h1 .sw-ln{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.sw-motion .sw-hero h1 .sw-ln>span{display:block;transform:translateY(105%);transition:transform .95s cubic-bezier(.19,1,.22,1)}
.sw-motion.sw-go .sw-hero h1 .sw-ln>span{transform:none}

/* 2 · hero: status rule draws, lede and image settle, image breathes slowly */
.sw-motion .sw-hero__status{border-top-color:transparent;position:relative}
.sw-motion .sw-hero__status::before{content:"";position:absolute;left:0;top:-2px;height:2px;width:100%;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .9s cubic-bezier(.19,1,.22,1) .55s}
.sw-motion.sw-go .sw-hero__status::before{transform:none}
.sw-motion .sw-hero__lede,.sw-motion .sw-hero__status a{opacity:0;transform:translateY(14px);transition:opacity .8s ease .5s,transform .8s cubic-bezier(.19,1,.22,1) .5s}
.sw-motion.sw-go .sw-hero__lede,.sw-motion.sw-go .sw-hero__status a{opacity:1;transform:none}
.sw-motion .sw-hero__fig{overflow:hidden;clip-path:inset(0 0 100% 0);transition:clip-path 1.2s cubic-bezier(.77,0,.18,1) .25s}
.sw-motion.sw-go .sw-hero__fig{clip-path:inset(0 0 0 0)}
.sw-motion .sw-hero__fig .sw-ph{transform:scale(1.08);transition:transform 2.4s cubic-bezier(.19,1,.22,1) .25s;will-change:transform}
.sw-motion.sw-go .sw-hero__fig .sw-ph{transform:scale(1);animation:swBreathe 18s ease-in-out 2.6s infinite alternate}
@keyframes swBreathe{from{transform:scale(1)}to{transform:scale(1.045)}}

/* 3 · black rules draw across when a section arrives */
.sw-motion .sw-facts,.sw-motion .sw-pillars{border-top-color:transparent;position:relative}
.sw-motion .sw-facts::before,.sw-motion .sw-pillars::before{content:"";position:absolute;left:0;right:0;top:-2px;height:2px;background:#000;transform:scaleX(0);transform-origin:left;transition:transform 1.1s cubic-bezier(.77,0,.18,1)}
.sw-motion .sw-facts.is-in::before,.sw-motion .sw-pillars.is-in::before{transform:none}

/* 4 · reveal on scroll, staggered inside a group */
.sw-motion [data-rv]{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .9s cubic-bezier(.19,1,.22,1);transition-delay:calc(var(--i,0) * 90ms)}
.sw-motion [data-rv].is-in{opacity:1;transform:none}

/* 5 · “Our work” rows: the number turns red and a red rule runs under the row on hover */
.sw-row{position:relative}
.sw-row::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.19,1,.22,1)}
.sw-row:hover::after{transform:none}
.sw-row__n{transition:color .2s}
.sw-row:hover .sw-row__n{color:var(--red)}

/* 6 · statement band: the three principles move across in large type */
.sw-band{border-top:2px solid #000;border-bottom:1px solid var(--g-200);overflow:hidden;padding:30px 0;white-space:nowrap;user-select:none}
.sw-band__track{display:inline-flex;width:max-content;animation:swFlowL 46s linear infinite}
.sw-band span{font-size:clamp(34px,5vw,68px);font-weight:600;letter-spacing:-.035em;line-height:1;padding-right:.55em;color:#000}
.sw-band span i{font-style:normal;color:var(--red);padding-right:.55em}
.sw-band span:nth-child(3n+2){color:transparent;-webkit-text-stroke:1.5px #000}
.sw-band:hover .sw-band__track{animation-play-state:paused}

/* 7 · images: slow zoom on hover */
.sw-story .sw-ph,.sw-about__fig{overflow:hidden}
.sw-story .sw-ph{transition:transform .7s cubic-bezier(.19,1,.22,1),opacity .2s}
.sw-story:hover .sw-ph{transform:scale(1.03)}
.sw-about__fig .sw-ph{transition:transform 1.2s cubic-bezier(.19,1,.22,1)}
.sw-about__fig:hover .sw-ph{transform:scale(1.04)}

/* 8 · event dates count in */
.sw-motion .sw-ev__d{transition:color .4s}
.sw-motion .sw-ev:hover .sw-ev__d{color:var(--red)}

/* 9 · closing red section: a slow light sweep behind the call to join */
.sw-red{position:relative;overflow:hidden}
.sw-red::before{content:"";position:absolute;inset:-40% -20%;background:radial-gradient(closest-side,rgba(255,255,255,.14),transparent 70%);width:60%;animation:swSweep 14s ease-in-out infinite alternate;pointer-events:none}
.sw-red>*{position:relative}
@keyframes swSweep{from{transform:translateX(-30%)}to{transform:translateX(150%)}}

@media (max-width:760px){
  .sw-band{padding:20px 0}
  .sw-motion [data-rv]{transform:translateY(18px)}
}
@media (prefers-reduced-motion:reduce){
  .sw-band__track,.sw-red::before,.sw-motion.sw-go .sw-hero__fig .sw-ph{animation:none}
  .sw-row::after,.sw-story .sw-ph,.sw-about__fig .sw-ph{transition:none}
}
