/* Cinematic layer (assets/cine.js, preview via ?yk_look=1, body.yk-cine).
   Uses the theme tokens; everything that moves is switched off for prefers-reduced-motion. */
.yk-cine{--c-acc:var(--accent,#01983b);--c-ease:cubic-bezier(.16,1,.3,1)}

/* Page-to-page: a soft cross-fade + rise (browsers with cross-document view transitions). */
@view-transition{navigation:auto}
::view-transition-old(root){animation:cine-vt-out .35s var(--c-ease,ease) both}
::view-transition-new(root){animation:cine-vt-in .55s var(--c-ease,ease) both}
@keyframes cine-vt-out{to{opacity:0;transform:translateY(-14px) scale(.99)}}
@keyframes cine-vt-in{from{opacity:0;transform:translateY(24px)}}

/* 1. Progress bar */
.cine-bar{position:fixed;left:0;top:0;right:0;height:3px;z-index:9999;background:var(--c-acc);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}

/* 2. Headings, word by word */
.cine-js .cine-split .cw{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
.cine-js .cine-split .cwi{display:inline-block;transform:translateY(105%);opacity:0;transition:transform 1s var(--c-ease) calc(var(--i,0) * 55ms),opacity .6s ease calc(var(--i,0) * 55ms)}
.cine-js .cine-split.cine-in .cwi{transform:none;opacity:1}

/* 3. Section reveals: rise, un-blur. Works with the theme's own .rv/.in too. */
.yk-cine .rv{opacity:0;transform:translateY(46px) scale(.985);filter:blur(6px);transition:opacity 1s var(--c-ease) calc(var(--d,0) * 80ms),transform 1.1s var(--c-ease) calc(var(--d,0) * 80ms),filter .9s ease calc(var(--d,0) * 80ms)}
.yk-cine .rv.in{opacity:1;transform:none;filter:none}
.cine-js .cine-rv{opacity:0;transform:translateY(28px);transition:opacity .9s var(--c-ease) calc(var(--ci,0) * 70ms),transform 1s var(--c-ease) calc(var(--ci,0) * 70ms)}
.cine-js .cine-rv.cine-in{opacity:1;transform:none}
.cine-js .cine-wipe{clip-path:inset(12% 8% 12% 8% round 22px);transition:clip-path 1.3s var(--c-ease),opacity .9s ease,transform 1.2s var(--c-ease)}
.cine-js .cine-wipe.cine-in{clip-path:inset(0 0 0 0 round 0)}

/* 4. Hero: the text lifts away and the collage settles back as you scroll past */
.yk-cine .px-hero .sj-hero__text{transform:translateY(calc(var(--hx,0) * -70px));opacity:calc(1 - var(--hx,0) * .9)}
.yk-cine .px-hero .px-collage{scale:calc(1 - var(--hx,0) * .1);translate:0 calc(var(--hx,0) * 60px);filter:saturate(calc(1 - var(--hx,0) * .6))}
.yk-cine .post-hd .wrap{transform:translateY(calc(var(--hx,0) * -40px));opacity:calc(1 - var(--hx,0) * .7)}
.yk-cine .post-fig{overflow:hidden}
.yk-cine .post-fig img{transform:scale(var(--fz,1.06));transform-origin:50% 40%;will-change:transform}

/* Hero project tiles (replace the extra photos) */
.yk-cine .yk-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;color:var(--ink);text-align:center;overflow:hidden}
.yk-cine .yk-tile img{width:46%;height:auto;object-fit:contain;flex:none}
.yk-cine .yk-tile b{font-family:var(--font-display);font-size:clamp(13px,1.3vw,17px);line-height:1;color:#0a0a0a}
.yk-cine .yk-tile small{font-size:11px;color:#57534e;line-height:1}
/* The tiles keep their light backgrounds in dark mode, so their text stays dark too. */
.yk-cine .yk-tile{color:#0a0a0a}
.yk-cine .yk-tile--niguro{background:#e7f6ec}
.yk-cine .yk-tile--pako{background:#fff3d6}
.yk-cine .yk-tile--book{padding:6px}
.yk-cine .yk-tile--book img{width:100%;height:100%;object-fit:cover;border-radius:inherit}


/* 6. Pinned horizontal journey */
.cine-pin{position:relative}
.cine-pin .cine-stick{position:sticky;top:0;height:100vh;display:flex;align-items:center;overflow:hidden}
.cine-pin .cine-stick > .wrap{width:100%}
.cine-pin .tl{display:flex;gap:22px;grid-template-columns:none;will-change:transform;padding:10px 0 6px}
.cine-pin .tl-item{flex:0 0 min(400px,34vw);min-height:250px;padding:30px}
.cine-pin .tl-item h3{font-size:24px}
.cine-pin .tl-yr{font-size:22px}
.cine-pin .tl-item.rv{opacity:1;transform:none;filter:none}
.cine-bigyr{position:absolute;left:50%;bottom:-2vh;transform:translateX(-50%);font-family:var(--font-display);font-weight:700;font-size:clamp(140px,24vw,360px);line-height:1;letter-spacing:-.05em;color:var(--ink);opacity:.06;pointer-events:none;white-space:nowrap}
.cine-bigyr.pop{animation:cine-yr .7s var(--c-ease)}
@keyframes cine-yr{from{opacity:0;transform:translate(-50%,40px)}to{opacity:.06;transform:translate(-50%,0)}}
.cine-pin .cine-stick > .wrap{position:relative;z-index:1}
.cine-pin .tl-item{transition:transform .5s var(--c-ease),box-shadow .5s ease,border-color .5s ease}
.cine-pin .tl-item.cine-act{transform:translateY(-10px) scale(1.03);border-color:var(--c-acc);box-shadow:0 24px 50px -24px rgba(10,10,10,.35)}
.cine-jline{height:4px;border-radius:4px;background:var(--line,#e7dfd2);margin-top:26px;overflow:hidden}
.cine-jline span{display:block;height:100%;background:var(--c-acc);transform-origin:0 50%;transform:scaleX(0)}

/* 7. Tilt + glare */
.cine-tilt:not(.px-photo){position:relative}
.cine-tilt{transition:transform .5s var(--c-ease),box-shadow .4s ease}
.yk-cine .cine-tilt.cine-on,.yk-cine .rv.in.cine-tilt.cine-on{transform:perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)) translateY(-4px);transition:transform .12s linear,box-shadow .4s ease}
.cine-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .4s ease;background:radial-gradient(420px circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.35),transparent 45%);mix-blend-mode:soft-light;z-index:5}
.cine-tilt.cine-on .cine-glare{opacity:1}

/* 8. Magnetic buttons ease back */
.yk-cine .btn{transition:translate .35s var(--c-ease),background-color .2s,color .2s,box-shadow .2s,transform .2s}

/* 9. Cursor ring (mouse only) */
.cine-cursor{position:fixed;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border:1.5px solid var(--c-acc);border-radius:50%;pointer-events:none;z-index:9998;opacity:0;transition:width .25s var(--c-ease),height .25s var(--c-ease),margin .25s var(--c-ease),opacity .25s,background-color .25s}
.cine-cursor.on{opacity:.9}
.cine-cursor.big{width:62px;height:62px;margin:-31px 0 0 -31px;background:color-mix(in srgb,var(--c-acc) 14%,transparent)}

/* Reduced motion: show everything, move nothing */
@media (prefers-reduced-motion:reduce){
	.yk-cine .rv,.cine-js .cine-rv,.cine-js .cine-split .cwi,.cine-js .cine-wipe{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important;transition:none!important}
	.yk-cine .px-hero .sj-hero__text,.yk-cine .px-hero .px-collage,.yk-cine .post-hd .wrap{transform:none;opacity:1;scale:1;translate:none;filter:none}
	::view-transition-old(root),::view-transition-new(root){animation:none}
}
@media (max-width:760px){
	.yk-cine .yk-tile small{display:none}
	.yk-cine .yk-tile b{font-size:12px}
	.yk-cine .yk-tile img{width:52%}
	.yk-cine .rv{transform:translateY(30px);filter:none}
}

/* Hero balance: photo centred, the five extras spread round it like a clock face
   (Niguro top-left, note top-right, time right, Pako bottom-right, Founder bottom-left). */
.yk-cine .px-blob{inset:7% 5% 5% 5%}
.yk-cine .px-photo--main{left:21%}
.yk-cine .px-photo--a.yk-tile{width:26%;left:-1%;top:11%}
.yk-cine .px-photo--b.yk-tile{width:26%;right:-1%;left:auto;top:auto;bottom:5%}
.yk-cine .px-float--live{right:-3%;top:42%}
.yk-cine .px-float--org{left:-7%;top:auto;bottom:15%}
.yk-cine .px-spark--2{right:auto;left:44%;bottom:-2%}
@media (max-width:760px){
	.yk-cine .px-float--org{left:-2%;bottom:13%}
	.yk-cine .px-float--live{right:-1%}
}

/* Launch on isittrend (home #projects, front-page.php): dark launch card, steps, claim-your-link mock + Mitthu. */
.yk-launch{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(24px,4vw,56px);align-items:center;padding:clamp(26px,5vw,62px);border-radius:var(--r-lg,28px);background:linear-gradient(160deg,var(--ng-tint),var(--surface) 55%);color:var(--ink);overflow:hidden;border:1.5px solid color-mix(in srgb,var(--ng) 22%,transparent)}
.yk-launch > *{position:relative}
.yk-launch .note{color:var(--ng)}
.yk-launch .sec-title{color:var(--ink);font-size:clamp(34px,4.6vw,58px);line-height:1.02;margin:10px 0 16px}
.yk-launch-lead{color:var(--ink-2);font-size:clamp(16px,1.4vw,18px);line-height:1.6;max-width:56ch;margin:0}
.yk-launch-lead b{color:var(--ink)}
.yk-launch-steps{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.yk-launch-steps li{display:flex;gap:11px;align-items:flex-start;padding:14px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.yk-launch-steps b{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#01983b;color:#fff;font-family:var(--font-display);font-size:15px}
.yk-launch-steps span{font-size:14px;line-height:1.45;color:var(--ink-2)}
.yk-launch-steps strong{display:block;color:var(--ink);font-family:var(--font-display);font-weight:600;font-size:16px;margin-bottom:2px}
.yk-launch .btns{margin-top:28px}
.yk-launch-art{position:relative;display:block;min-height:320px;text-decoration:none}
.yk-launch-card{position:absolute;right:0;top:50%;width:min(100%,360px);transform:translateY(-50%) rotate(-3deg);display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:22px;background:#fff;color:#0a0a0a;box-shadow:0 26px 50px -26px rgba(22,20,31,.4);border:1px solid var(--line)}
.lc-top{display:flex;align-items:center;gap:10px}
.lc-top img{width:34px;height:34px;border-radius:10px}
.lc-top b{font-family:var(--font-display);font-size:19px}
.lc-week{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#0b5d2c;background:#e7f6ec;border-radius:999px;padding:5px 10px}
.lc-week i{width:7px;height:7px;border-radius:50%;background:#01983b;animation:yk-pip 1.6s ease-in-out infinite}
@keyframes yk-pip{50%{opacity:.25}}
.lc-url{display:flex;align-items:center;font-size:clamp(16px,1.6vw,19px);font-weight:700;padding:14px 16px;border-radius:14px;background:#f1ebe0;white-space:nowrap;overflow:hidden}
.lc-url span{color:#78716c}
.lc-url em{font-style:normal;color:#01983b}
.lc-caret{width:2px;height:1.1em;margin-left:2px;background:#0a0a0a;animation:yk-caret 1s steps(1) infinite}
@keyframes yk-caret{50%{opacity:0}}
.lc-hint{font-size:13px;color:#57534e}
.lc-btn{align-self:flex-end;padding:10px 18px;border-radius:999px;background:#01983b;color:#fff;font-weight:800;font-size:15px}
.yk-launch-mitthu{position:absolute;left:-10%;bottom:-16%;width:46%;max-width:190px;z-index:2;filter:drop-shadow(0 14px 18px rgba(22,20,31,.25))}
.yk-launch-art:hover .yk-launch-card{transform:translateY(-52%) rotate(-1.5deg);transition:transform .4s var(--c-ease,ease)}
.yk-launch-card{transition:transform .4s var(--c-ease,ease)}
@media (max-width:980px){
	.yk-launch{grid-template-columns:1fr}
	.yk-launch-art{min-height:300px;max-width:460px;width:100%;justify-self:center}
}
@media (max-width:640px){
	.yk-launch-steps{grid-template-columns:1fr}
	.yk-launch-art{min-height:270px}
	.yk-launch-card{width:86%}
	.yk-launch-mitthu{left:-4%;bottom:-8%;width:40%}
}
@media (prefers-reduced-motion:reduce){.lc-week i,.lc-caret{animation:none}}
