/* GSAP motion states (motion.js). html.motion: GSAP owns motion, CSS-only reveals are off. html.motion-pending (until
   KH.done() or the 3 s failsafe): only decorative pieces wait; photo and text are never hidden. */
html.motion .rv { opacity: 1; transform: none; transition: none; }
html.motion .hero-card > *, html.motion .hero-leader { animation: none; }
html.motion-pending :is(.chip, .faces-row .face-wrap, .spark, .hero-ghost, .hero-scroll, .lost-num) { visibility: hidden; }

/* SplitText wrappers (KH.splitHeading): each line clips its inner span while it rises. */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; }

/* Lenis (desktop smooth scroll). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Programmatic focus (anchor targets) must not ring the region. */
[tabindex="-1"]:focus:not(a, button, input, select, textarea, summary) { outline: none; }

/* The values strip drifts sideways: clip it. */
html.motion .values { overflow-x: clip; }

/* Article reading progress (injected by motion-pages.js). */
.read-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--y); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* Page transition curtain; html.kh-arriving (head script) covers from first paint. */
.kh-curtain, html.kh-arriving::after { position: fixed; inset: 0; z-index: 9999; background: var(--y); }
html.kh-arriving::after { content: ""; }
.kh-curtain { display: grid; place-items: center; }
.kh-curtain img { width: 72px; height: 72px; border-radius: 50%; }

/* Benefits (desktop): the rail beside the tabs fills as the pinned panel scrolls through them (motion-home.js). */
.tabs:has(> .tabs-rail) { position: relative; }
.tabs-rail { position: absolute; top: 8px; bottom: 8px; left: -14px; width: 2px; border-radius: 2px; background: var(--line); }
.tabs-rail i { position: absolute; inset: 0; border-radius: inherit; background: var(--y); transform: scaleY(0); transform-origin: 50% 0; }
/* Phone, while the panel is pinned: tighter tabs and photo so both fit under the nav (44 px tabs stay tappable). */
.is-stepping .tabs { gap: 6px; }
.is-stepping .tabs button { min-height: 44px; padding-block: 4px; }
.is-stepping .tabs button span { width: 32px; height: 32px; }
.is-stepping .benefits-grid { gap: 12px; }
.is-stepping .benefit-view { min-height: 220px; }
.is-stepping .tabs-rail { left: -10px; }

/* Print: every reveal target as it ends. */
@media print {
  html.motion :is(.split-line > span, .eyebrow, .steps li, .pillars li, .tabs button, .person, .post, .join-actions .btn, .stats-bar > div, .badge, .focus, .faq details, .trio li, .g-item, .ph, .leader-photo, .benefit-view, .g-tile, .post-img, .join-arch, .join-figure img) { opacity: 1 !important; visibility: visible !important; clip-path: none !important; }
  html.motion :is(.split-line > span, .eyebrow, .steps li, .pillars li, .tabs button, .person, .post, .join-actions .btn, .stats-bar > div, .badge, .focus, .faq details, .trio li, .g-item, .join-arch) { transform: none !important; }
  .footer { overflow: visible !important; }
  .footer > .wrap { transform: none !important; }
  .read-progress, .kh-curtain, .tabs-rail, html.kh-arriving::after { display: none; }
}
