/* Scroll-animationer til Superforecaster.dk.
   Ændrer ikke layoutet: alt er bundet til html.motion, som kun sættes når JS kører
   og brugeren ikke har bedt om reduceret bevægelse. */
html.motion{scroll-behavior:smooth;scroll-padding-top:92px}

/* Fremtoning ved scroll */
html.motion [data-reveal]{opacity:0;translate:0 28px;transition:opacity .8s cubic-bezier(.2,.7,.2,1),translate .8s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * 90ms)}
html.motion [data-reveal].in{opacity:1;translate:0 0}
html.motion [data-reveal="left"]{translate:-36px 0}
html.motion [data-reveal="right"]{translate:36px 0}
html.motion [data-reveal="zoom"]{translate:0 0;scale:.94}
html.motion [data-reveal="zoom"].in{scale:1}
html.motion [data-reveal="zoom"]{transition-property:opacity,scale;transition-duration:1.1s}

/* Overskrifter med flere linjer: linje for linje */
html.motion .ln{display:inline-block;opacity:0;translate:0 .6em;transition:opacity .7s ease,translate .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--l,0) * 140ms + 80ms)}
html.motion .in .ln,html.motion .ln.in{opacity:1;translate:0 0}

/* Heltebilledet: blid zoom ind + let parallakse (translate sættes af JS) */
html.motion .sf-wrap-01 .hero-art{will-change:translate}

/* Streger der tegnes */
html.motion .draw{transition:stroke-dashoffset 1.8s cubic-bezier(.45,.05,.25,1);transition-delay:calc(var(--d,0) * 1ms)}
html.motion .pop{transform-box:fill-box;transform-origin:center;scale:0;transition:scale .5s cubic-bezier(.3,1.6,.5,1);transition-delay:calc(var(--d,0) * 1ms)}
html.motion .in .pop{scale:1}
html.motion .fadeline{opacity:0;transition:opacity 1.2s ease .4s}
html.motion .in .fadeline{opacity:1}

/* Produktcollagen: søjler vokser */
html.motion #sektion-07 .track i{transform-origin:left center;transform:scaleX(0);transition:transform 1.3s cubic-bezier(.2,.7,.2,1)}
html.motion #sektion-07 .in .track i{transform:scaleX(1)}
html.motion #sektion-07 .panel{transition:translate .35s ease,box-shadow .35s ease}
html.motion #sektion-07 .panel:hover{translate:0 -4px;box-shadow:0 14px 30px rgba(16,25,35,.14)}

/* Kort løfter sig ved hover */
html.motion .sf02-item,html.motion .sf-wrap-03 .role,html.motion .sf-wrap-04 .item,html.motion .sf-wrap-10 article,html.motion .sf-wrap-08 .columns>div{transition:opacity .8s cubic-bezier(.2,.7,.2,1),translate .8s cubic-bezier(.2,.7,.2,1),transform .3s ease,box-shadow .3s ease}
html.motion .sf02-item:hover,html.motion .sf-wrap-03 .role:hover,html.motion .sf-wrap-10 article:hover{transform:translateY(-5px);box-shadow:0 12px 26px rgba(16,25,35,.12)}
html.motion .sf-wrap-04 .item:hover .number{color:#6556B5}
html.motion .sf-wrap-04 .number{transition:color .3s ease}

/* Knapper */
html.motion .cta,html.motion .contact-button{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
html.motion .cta:hover,html.motion .contact-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(101,86,181,.28)}

/* Header får skygge når man scroller */
html.motion .site-header{transition:box-shadow .3s ease}
html.motion .site-header.scrolled{box-shadow:0 6px 18px rgba(16,25,35,.08)}

/* Fremdriftslinje øverst */
.sf-progress{position:fixed;left:0;top:0;height:3px;width:100%;background:linear-gradient(90deg,#C1B8FC,#6556B5);transform-origin:left;transform:scaleX(0);z-index:200;pointer-events:none}

@media (prefers-reduced-motion:reduce){.sf-progress{display:none}}
