/* Homepage motion (GSAP, home-anim.js) */

.jw-anim.jw-home [data-reveal]:not([data-reveal="image"]).reveal-pending { opacity: 1; transform: none; }
.jw-anim.jw-home [data-reveal]:not([data-reveal="image"]) { transition: none; }
.jw-anim [data-split] { perspective: 700px; }
.jw-anim [data-split] .jw-word { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.jw-anim #home h1 .jw-char { display: inline-block; will-change: transform; }
/* the letter masks would clip descenders (the tail of ę): the clip box reaches a little lower without moving the line */
.jw-anim #home h1 [class*="char-mask"] { padding-bottom: .2em; margin-bottom: -.2em; }

.jw-anim .h-facts { display: block; padding: 0; background: none; }
.h-facts__inner { display: grid; gap: 48px; }
/* while stacking, the title and the cards stay in the middle of the window by plain CSS sticky (no JS pin, no jump when it starts) */
.jw-anim .h-facts.is-stacking .h-facts__inner { position: sticky; top: var(--stick-top, 120px); }
.jw-anim .h-facts__list { display: grid; gap: 16px; width: min(100%, 46rem); margin-inline: auto; }
.jw-anim .h-facts:has(.is-stacked) .h-facts__inner { gap: 92px; }
.jw-anim .h-facts__list li { position: relative; display: grid; align-content: stretch; min-height: 300px; margin: 0; padding: clamp(28px, 4vw, 60px); background: #fff; transform-origin: 50% 0; }
.jw-anim .h-facts__list li:nth-child(2) { background: #17181b; color: #f3f4f5; }
.jw-anim .h-facts__list li:nth-child(3) { background: #11914a; color: #fff; }
.jw-anim .h-facts__list li:nth-child(4) { background: #fff; }
.jw-anim .h-facts__list li:nth-child(2) strong, .jw-anim .h-facts__list li:nth-child(3) strong { color: inherit; }
.jw-anim .h-facts__list .h-fact { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; max-width: none; margin: 0; font-family: var(--t-head); color: inherit; }
.jw-anim .h-fact__lead { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -0.035em; opacity: .8; }
.jw-anim .h-fact__main { max-width: 17em; font-weight: 700; font-size: clamp(26px, 3vw, 46px); line-height: 1.06; letter-spacing: -0.045em; }
.jw-anim .h-facts__list li:nth-child(1) .h-fact__main strong { font-weight: inherit; color: #11914a; }
.jw-anim .h-facts__list.is-stacked { display: block; position: relative; height: clamp(320px, 44vh, 400px); }
.jw-anim .h-facts__list.is-stacked li { position: absolute; inset: 0; min-height: 0; will-change: transform; backface-visibility: hidden; }

.jw-anim .h-marquee__track { animation: none; }
.jw-anim .h-marquee__track span { font-size: clamp(18px, 1.6vw, 24px); color: var(--t-ink); }

@media (max-width: 767px) { .jw-anim .h-facts__list li { min-height: 260px; } }
.jw-cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; }
.jw-cursor__disc { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: #111417; color: #fff; transform: scale(0); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.jw-cursor.is-on .jw-cursor__disc { transform: scale(1); }
.jw-cursor.is-on.is-pressed .jw-cursor__disc { transform: scale(.86); }
.jw-cursor__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: jw-cursor-turn 24s linear infinite; }
.jw-cursor__ring text { font: 500 12px/1 "Geologica", Arial, sans-serif; fill: currentColor; }
.jw-cursor__arrow { width: 22px; height: 22px; color: #40d085; }
@keyframes jw-cursor-turn { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .jw-anim .portfolio-card.has-link, .jw-anim .portfolio-card.has-link a { cursor: none; } }
@media (hover: none), (pointer: coarse) { .jw-cursor { display: none; } }

.jw-anim .h-report { overflow-x: clip; }

.jw-anim .jw-keep { display: inline-block; white-space: nowrap; }

.jw-anim .h-fact__lead { font-weight: 200; }
@media (min-width: 768px) { .jw-anim .h-fact__lead { font-weight: 100; } }
