/* The pain (ku-fajdalom), group "fajdalom", prefix kuf-. Variant 3 "Idő egymásra" reuses variant 2 (kuf-v2). Variant 1: copy beside two strands that close in with the
   scroll (--p 0..1 on .kuf-strands): each strand slides to the centre, the habit labels get struck and fade, the knot
   ties. Variant 2: one column, the [data-ku-step] line at the reading line is full strength (is-on), read lines stay
   readable (is-past), lines below wait dimmed. Without JS (--p 0, no is-on) all copy is fully readable. */
.kuf{background:var(--bg)}
.kuf h2{font-size:clamp(2rem,3vw,2.9rem);line-height:1.15;max-width:18em}
.kuf-hl{display:block;margin-top:.35em;font-style:italic;color:var(--accent)}
.kuf-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:64px;align-items:center}
.kuf-copy{display:grid;gap:1.1rem;justify-items:start}
.kuf-copy p{max-width:36rem;font-size:1.05rem;line-height:1.7}
.lh .kuf-bridge{font:500 1.25rem/1.5 var(--serif);color:var(--ink);padding-left:1rem;border-left:3px solid var(--accent-dark)}
.kuf-copy .lh-btn{margin-top:.75rem}

.kuf-strands{position:relative;height:520px;--p:0}
.kuf-strand{position:absolute;inset:0 0 40px;width:100%;height:calc(100% - 40px);fill:none;stroke-width:3;stroke-linecap:round;overflow:visible}
.kuf-strand-a{stroke:var(--forest);translate:calc((1 - var(--p)) * -70px) 0;rotate:calc((1 - var(--p)) * -4deg)}
.kuf-strand-b{stroke:var(--accent);translate:calc((1 - var(--p)) * 70px) 0;rotate:calc((1 - var(--p)) * 4deg)}
.kuf-habit{position:absolute;left:50%;padding:.35rem .8rem;border-radius:99px;background:var(--card);border:1px solid var(--line-strong);
  font-size:.9rem;white-space:nowrap;color:var(--text);translate:-50% 0;opacity:calc(1 - var(--p) * .55)}
.kuf-habit::after{content:"";position:absolute;left:8%;right:8%;top:50%;height:2px;background:var(--accent);transform-origin:0 50%;transform:scaleX(clamp(0, calc(var(--p) * 1.6 - .1), 1))}
.kuf-habit-1{top:14%;rotate:calc(-6deg + var(--p) * 6deg)}.kuf-habit-2{top:36%;rotate:calc(5deg - var(--p) * 5deg)}.kuf-habit-3{top:58%}
.kuf-knot{position:absolute;left:50%;bottom:0;translate:-50% 0;scale:calc(.3 + var(--p) * .7);opacity:calc(var(--p) * 1.6 - .5);rotate:calc((1 - var(--p)) * -120deg)}

.kuf2-wrap{position:relative;max-width:820px;display:grid;gap:1.4rem;justify-items:start;padding-left:56px}
.kuf2-line{position:absolute;left:0;top:8px;width:20px;height:100%}
.kuf2-wrap [data-ku-step]{font-size:1.2rem;line-height:1.7;transition:opacity .6s ease,transform .6s ease!important}
.ku-js .kuf2-wrap [data-ku-step]{opacity:.3;transform:translateX(12px)}
.ku-js .kuf2-wrap [data-ku-step]:is(.is-on,.is-past){opacity:1;transform:none}
.ku-js .kuf2-wrap .is-past{opacity:.72!important}
[data-sv-review="on"] .kuf2-wrap [data-ku-step]{opacity:1!important;transform:none!important}

@media (max-width:991px){
  .kuf-grid{grid-template-columns:1fr;gap:40px}
  .kuf-strands{height:380px;max-width:360px;width:100%;margin-inline:auto}
}
@media (max-width:599px){.kuf2-wrap{padding-left:32px}.kuf2-wrap [data-ku-step]{font-size:1.06rem}}
