/* TECTOAR motion effects (kimia 2026-12-01): only movement, no new content or layout.
   Everything is under html.fx, which JS/fx.js sets only when the visitor has not asked for reduced motion,
   so without JS (or with reduced motion) the site looks exactly as before.
   Elements are marked with data-fx (not classes): JS/scroll_effect.js rewrites each .card's className. */

/* 10. Scroll progress line */
.fx-progress{position:fixed; top:0; left:0; right:0; height:2px; z-index:50; pointer-events:none;
    background:#fff; mix-blend-mode:difference; transform-origin:0 50%; transform:scaleX(0); transition:none;}

/* 2. Background photo: slow cinematic zoom on load; on wide screens a light parallax and darkening on scroll */
@media (min-aspect-ratio: 1/1){
    html.fx body::before{transition:none; will-change:transform; scale:1.08; translate:0 calc(var(--fx-par, 0) * -1px);
        animation:fxKen 3.2s cubic-bezier(.2,.6,.2,1) both;}
}
@keyframes fxKen{from{scale:1.2;} to{scale:1.08;}}
.fx-shade{position:fixed; inset:0; z-index:-1; pointer-events:none; background:#000; opacity:0; transition:none;}

/* 1. Hero: logo and slogan lines rise from behind a mask, the short line under the slogan draws itself */
html.fx .heroslogan:not([data-fx-split]){visibility:hidden;}
html.fx .fx-mask{display:block; overflow:hidden; padding-bottom:.08em; transition:none;}
html.fx .fx-mask > span{display:block; transition:none; animation:fxUp 1.3s cubic-bezier(.16,1,.3,1) both;
    animation-delay:calc(.45s + var(--i, 0) * .14s);}
html.fx .heroslogan::after{transition:none; transform-origin:0 50%; animation:fxDraw 1.1s cubic-bezier(.65,0,.35,1) 1.2s both;}
html.fx .header .navlogo img{animation:fxFade 1.4s ease .2s backwards;}
html.fx .header .tab{animation:fxFade 1s ease backwards; animation-delay:calc(.5s + var(--i, 0) * .08s);}
@keyframes fxUp{from{transform:translateY(105%);} to{transform:none;}}
@keyframes fxDraw{from{transform:scaleX(0);} to{transform:scaleX(1);}}
@keyframes fxFade{from{opacity:0; transform:translateY(-8px);} to{opacity:1; transform:none;}}

/* 3. Section titles: letters close in from wide spacing and rise */
html.fx [data-fx-title]{transition:letter-spacing 1.4s cubic-bezier(.16,1,.3,1), opacity 1s ease, transform 1.2s cubic-bezier(.16,1,.3,1);}
html.fx [data-fx-title]:not([data-fx="in"]){letter-spacing:.45em; opacity:0; transform:translateY(.5em);}

/* 4. Text: words appear line by line */
html.fx .fx-w{display:inline-block; transition:opacity .9s ease, transform 1s cubic-bezier(.16,1,.3,1);
    transition-delay:calc(var(--l, 0) * 70ms);}
html.fx [data-fx-text]:not([data-fx="in"]) .fx-w{opacity:0; transform:translateY(.7em); transition:none;}

/* 5. Project cards: one after another, the photo opens like a curtain, hover zooms the photo */
html.fx .pcard{transition:opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1), border-color .3s;
    transition-delay:calc(var(--i, 0) * 90ms);}
html.fx .pgrid:not([data-fx="in"]) .pcard{opacity:0; transform:translateY(40px); transition:none;}
html.fx .fx-ph{overflow:hidden; aspect-ratio:4/3; transition:clip-path 1.3s cubic-bezier(.77,0,.18,1);
    transition-delay:calc(.15s + var(--i, 0) * 90ms); clip-path:inset(0 0 0 0);}
html.fx .pgrid:not([data-fx="in"]) .fx-ph{clip-path:inset(0 0 100% 0); transition:none;}
html.fx .fx-ph .pphoto{transition:transform 1.2s cubic-bezier(.16,1,.3,1);}
html.fx .pcard:hover .fx-ph .pphoto, html.fx .pcard:focus-visible .fx-ph .pphoto{transform:scale(1.07);}

/* 6. Icons: rise one after another; the Inside line icons draw themselves */
html.fx [data-fx-icons] .icon, html.fx [data-fx-icons] .ins-row > div{transition:transform .5s;}
html.fx [data-fx-icons]:not([data-fx="in"]) .icon, html.fx [data-fx-icons]:not([data-fx="in"]) .ins-row > div{opacity:0;}
html.fx [data-fx-icons][data-fx="in"] .icon, html.fx [data-fx-icons][data-fx="in"] .ins-row > div{
    animation:fxRise 1s cubic-bezier(.16,1,.3,1) backwards; animation-delay:calc(var(--i, 0) * 110ms);}
@keyframes fxRise{from{opacity:0; transform:translateY(30px);} to{opacity:1; transform:none;}}
html.fx #inside .ins-row svg *{stroke-dasharray:1; stroke-dashoffset:0; transition:stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1);
    transition-delay:calc(.2s + var(--i, 0) * 110ms);}
html.fx #inside [data-fx-icons]:not([data-fx="in"]) .ins-row svg *{stroke-dashoffset:1; transition:none;}

/* 8. Cursor ring (mouse only) */
.fx-cursor{position:fixed; left:0; top:0; width:30px; height:30px; margin:-15px 0 0 -15px; border:1px solid #fff; border-radius:50%;
    pointer-events:none; z-index:60; mix-blend-mode:difference; opacity:0; transition:width .35s, height .35s, margin .35s, opacity .3s, background-color .35s;}
.fx-cursor.on{opacity:1;}
.fx-cursor.big{width:64px; height:64px; margin:-32px 0 0 -32px; background-color:#fff;}

/* 9. Magnetic buttons */
html.fx [data-fx-mag]{transition:transform .45s cubic-bezier(.16,1,.3,1), background-color .2s, color .2s; will-change:transform;}

/* 11. Menu: a line slides in under a tab on hover and stays under the section you are in */
html.fx .header .tab h3{position:relative; display:inline-block;}
html.fx .header .tab h3::after{content:""; position:absolute; left:0; right:.3em; bottom:-6px; height:1px; background:currentColor;
    transform:scaleX(0); transform-origin:100% 50%; transition:transform .6s cubic-bezier(.65,0,.35,1);}
html.fx .header .tab:hover h3::after, html.fx .header .tab[data-fx-on] h3::after{transform:scaleX(1); transform-origin:0 50%;}
@media (max-aspect-ratio: 1/1){
    html.fx .header .tab h3::after{bottom:10px;}
}
