/* R40 faden – the red thread in motion (see faden.js) */

/* ---------- /projekt: the bead on the thread */
.pj-frame>.fd-line{position:absolute;left:0;top:0;z-index:2;overflow:visible;pointer-events:none}
.fd-line path{fill:none;stroke:none}
.fd-line.is-shown path{stroke:#00d8ff;stroke-width:1.4;stroke-linejoin:round}
.pj-frame>.fd-bead,.fd-air>.fd-bead{position:absolute;left:0;top:0;z-index:3;display:block;width:28px;height:28px;opacity:0;cursor:pointer;will-change:transform;-webkit-tap-highlight-color:transparent}
.fd-bead.is-in{opacity:1;transition:opacity .18s}
.fd-skin{position:absolute;inset:0;display:block;filter:drop-shadow(0 3px 3.5px rgba(60,35,10,.34))}
.fd-skin img{position:absolute;left:-13.4%;top:-1.6%;width:126%;max-width:none;height:auto;transform-origin:50.3% 45%;user-select:none;-webkit-user-drag:none}
html[data-theme=dark] .fd-skin{filter:drop-shadow(0 3px 3.5px rgba(240,240,240,.3))}
.fd-bead b{position:absolute;right:calc(100% + 8px);top:50%;translate:0 -50%;padding:4px 9px;border-radius:999px;background:#fffef9;border:1px solid #dcd8cc;font:800 10px/1.2 Manrope,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#5c6a66;white-space:nowrap;opacity:0;transition:opacity .25s;pointer-events:none}
.fd-bead:hover b,.fd-bead.is-new b{opacity:1}
.fd-bead:is(.is-inside,.no-label,.is-free) b,.fd-bead b:empty{display:none}
.fd-bead.in-loop b{opacity:0!important;transition-duration:.12s}
.pj-frame>.fd-cap{position:absolute;z-index:4;display:none;height:auto;max-width:none;pointer-events:none;clip-path:inset(0 0 44.6% 0)}
.fd-mend{position:absolute;display:block;background:url(/assets/images/faden/faden-strang.webp) repeat-y center top;opacity:0;transition:opacity .28s ease .1s;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 10px,#000 calc(100% - 10px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 10px,#000 calc(100% - 10px),transparent 100%)}
.fd-mend.is-on{opacity:1}
.fd-air{position:absolute;left:0;top:0;width:100%;overflow:hidden;overflow:clip;z-index:30;pointer-events:none}
.fd-air .fd-bead{pointer-events:none}
@media (max-width:1099px){.pj-frame>.fd-bead,.fd-air>.fd-bead{width:20px;height:20px}.fd-bead b{display:none}}
@media (max-width:600px){.pj-frame>.fd-bead,.fd-air>.fd-bead{width:18px;height:18px}}
@media print{.fd-bead,.fd-cap,.fd-line{display:none!important}}
/* arriving from the profile: the page's own thread draws itself in (600 ms) */
.pj-wool.fd-drawin{animation:fd-drawin .6s cubic-bezier(.22,.7,.2,1) .06s both!important}
@keyframes fd-drawin{from{clip-path:inset(-60px -400px calc(100% - var(--fd-from,200px)) -400px)}to{clip-path:inset(-60px -400px calc(100% - var(--fd-to,900px)) -400px)}}

/* ---------- /profil: the tangle and its thread (one rope on a canvas – ball, bow and straight piece are one thread, no seam) */
.work-feature .fd-rope{position:absolute;z-index:3;max-width:none;pointer-events:none}
.work-feature.yarn-stacked :is(.fd-rope,.fd-shade){display:none}
.work-feature.fd-on:not(.yarn-stacked) :is(.yarn-loose,.yarn-line){display:none!important}
/* the shadow stays where the light comes from while the ball turns: a dark, soft copy of the ball, 10 px lower, turning with it */
.work-feature.fd-on:not(.yarn-stacked) .yarn-unit .yarn-knot{filter:none;-webkit-user-drag:none}
.work-feature .yarn-unit .fd-shadow{z-index:1;transform-origin:50% 50%;translate:0 10px;filter:brightness(0) blur(7px);opacity:.17;pointer-events:none}
html[data-theme=dark] .work-feature.fd-on:not(.yarn-stacked) .yarn-unit .yarn-knot{filter:invert(1) hue-rotate(180deg)}
html[data-theme=dark] .work-feature .yarn-unit .fd-shadow{filter:brightness(0) invert(1) blur(7px);opacity:.14}
.work-feature.yarn-stacked .fd-shadow{display:none}
.work-feature.fd-live{z-index:6;overflow:visible}
.work-feature.fd-live :is(.yarn-unit,.yarn-knot,.yarn-pin,.fd-shadow){transition:none!important;animation:none!important}
.work-feature.fd-live :is(.yarn-unit,.yarn-knot,.fd-shadow){will-change:transform}
html.fd-playing{overflow-x:clip}
/* the scene: the text stays; R41 (bilder): the sheet stays too (no empty grey field any more) – only what is written on it
   (caption, tickets, note) steps back and comes back at the end */
.fd-shade{position:absolute;z-index:0;border-radius:6px;background:radial-gradient(ellipse at 46% 56%,rgba(23,38,42,.13),rgba(23,38,42,.06) 62%,rgba(23,38,42,.02));opacity:0;transition:opacity .2s ease;pointer-events:none;display:none}
.work-feature.fd-stage .tangle-art :is(.art-caption,.tangle-slips,.tangle-note){opacity:0;transition:opacity .16s ease}
.work-feature.fd-stage.fd-show .tangle-art :is(.art-caption,.tangle-slips,.tangle-note){opacity:1;transition:opacity .35s ease}
.work-feature.fd-stage.fd-show .tangle-art .tangle-slips{animation:fd-slips .35s cubic-bezier(.2,.9,.3,1.3) both}
@keyframes fd-slips{from{scale:.97}}
.work-feature.fd-await :is(.fd-rope,.yarn-unit){visibility:hidden}
.work-feature.fd-leaving .rf-link{pointer-events:none}
@media print{.fd-rope,.fd-shade{display:none!important}}

/* ---------- R42 bewegung */
/* /profil → /projekt: one canvas over the window carries pin, tangle and thread for 1.2 s; the originals step aside */
.fd-fly{position:fixed;left:0;top:0;z-index:45;pointer-events:none;max-width:none;will-change:transform;transform:translateZ(0)}
.work-feature.fd-flying :is(.fd-rope,.yarn-unit,.yarn-pin){visibility:hidden!important}
/* /projekt reached that way: the thread is already there – no entrance (set in the head, before the first picture) */
html.fd-arrive .pj-wool{animation:none!important}
/* "Der Faden führt zurück": the thread ends under the rolling ball (wound up); the hover turn and the rocking stay out of it */
/* R45: the thread lies to the right of the tangle, as the line under the words (no rope to the left edge any more); the thread from
   the knot of the stitched sentence runs into its end. A click lets the tangle roll out to the left and the thread stays lying. */
.pj-return.fd-tied-line::before{display:none!important}
.pj-return.fd-tied-line span{border-bottom-color:transparent!important}
.pj-return.fd-tied-line img{z-index:1}
.pj-return .fd-tie{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none;z-index:0}
.fd-tie path{fill:none;stroke-linecap:round}
.fd-tie-c{stroke:#9e2a20;stroke-width:2.75px}   /* = the cord of the stitched sentence (r41-statement.css), so the join does not show */
.fd-tie-sh{stroke:rgba(58,22,12,.32);stroke-width:3.25px;transform:translateY(1px)}
.fd-tie-tw{stroke-width:1.7px;stroke-linecap:butt}
.fd-tie-twl{fill:#d9503f;opacity:.62}
.fd-tie-fray{stroke:#9e2a20;stroke-width:.9px;opacity:.85;transition:opacity .3s ease}
.pj-return.is-tied .fd-tie-fray{opacity:0}
.pj-return.fd-unwind img{rotate:none!important;translate:none!important;animation:none!important;transition:none!important;will-change:transform}
/* dark: the same thread as the stitched sentence's cord in the dark (these colours are already the dark ones: dk:fest) */
/* R46: the colour of the photographed rope (top of /projekt, /profil) – the same as the stitched sentence's cord in the dark */
html[data-theme=dark] .pj-return .fd-tie-c,html[data-theme=dark] .pj-return .fd-tie-fray{/*dk:fest*/stroke:#b84a3c}
html[data-theme=dark] .pj-return .fd-tie-sh{/*dk:fest*/stroke:rgba(0,0,0,.55)}
html[data-theme=dark] .pj-return .fd-tie-twl{/*dk:fest*/fill:#e08a78}
@media (forced-colors:active){.fd-tie-c,.fd-tie-fray{stroke:LinkText!important}.fd-tie-sh,.fd-tie-tw{display:none}}
@media print{.fd-tie{display:none}}

/* ---------- R43 uebergang: /projekt fades in while the tangle lands (faden.js E) – the page itself without scripts, in a frame
   under the header (z 40) and the flight (z 45); the profile's header stays the one header */
iframe.fd-pv{position:fixed;left:0;top:0;z-index:39;display:block;margin:0;padding:0;border:0;max-width:none;opacity:0;visibility:hidden;pointer-events:none;contain:strict;background:transparent;color-scheme:normal}
iframe.fd-pv.is-on{visibility:visible;will-change:opacity}
/* dark: the frame shows the dark /projekt itself – the page's inversion (invert, hue-rotate, contrast .88) is undone for it exactly */
html[data-theme=dark] iframe.fd-pv{filter:contrast(1.13636) hue-rotate(180deg) invert(1)!important}
/* what only the profile has goes with it: the contact pill */
html.fd-pv-on .fs-dock{opacity:0!important;transition:opacity .35s ease!important}
@media print{iframe.fd-pv{display:none!important}}
