/* Motion hotfix t2 (in-site router): short, quiet transitions. Keep system fonts (no swap). */
html{background:#09090b;color-scheme:dark}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s;animation-timing-function:cubic-bezier(.2,0,0,1)}
::view-transition-group(vf-chrome){animation-duration:.18s}
.top{view-transition-name:vf-chrome}
/* Drop the cheap lift/zoom; keep a quiet border/scale */
.tile{transition:border-color .18s ease}
.tile:hover{transform:none}
.shot img{transition:opacity .2s ease,transform .25s ease}
.shot:hover img{transform:scale(1.015)}
.shot img.pending,.tile img.pending,.stile img.pending,.card img.pending{opacity:0}
.shot img.is-in,.tile img.is-in,.stile img.is-in,.card img.is-in{opacity:1}
/* Lightbox for stills on film/look pages */
.lb{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;background:rgba(4,4,6,0);opacity:0;pointer-events:none;transition:opacity .18s ease,background .18s ease}
.lb.is-open{opacity:1;pointer-events:auto;background:rgba(4,4,6,.88)}
.lb-inner{position:relative;max-width:min(1200px,96vw);max-height:94vh;display:flex;flex-direction:column;align-items:center;gap:10px}
.lb-inner img{max-width:96vw;max-height:82vh;width:auto;height:auto;object-fit:contain;border-radius:8px;background:#101013}
.lb-cap{color:#cfcfd6;font-size:13px;text-align:center;max-width:90vw;line-height:1.4}
.lb-cap a{color:#e8ff5a;text-decoration:none}
.lb-cap a:hover{text-decoration:underline}
.lb-x{position:fixed;top:14px;right:16px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(20,20,22,.85);color:#ededf0;font-size:28px;cursor:pointer;line-height:1}
.lb-nav{position:fixed;top:50%;width:44px;height:44px;margin-top:-22px;border:0;border-radius:50%;background:rgba(20,20,22,.75);color:#ededf0;font-size:26px;cursor:pointer;line-height:1}
.lb-prev{left:12px}.lb-next{right:12px}
.lb-x:hover,.lb-nav:hover{background:rgba(40,40,46,.95)}
@media(prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  *{transition:none!important;animation:none!important}
  .shot:hover img{transform:none}
  .shot img.pending,.tile img.pending,.stile img.pending,.card img.pending{opacity:1}
}

/* router: only <main> crossfades; header, nav, root stay pixel-static */
html.vf-route::view-transition-old(root),html.vf-route::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.vf-route main.wrap{view-transition-name:vf-main}
html.vf-route .top{view-transition-name:none}
html.vf-route::view-transition-group(vf-main){animation:none}
html.vf-route::view-transition-old(vf-main),html.vf-route::view-transition-new(vf-main){animation-duration:.17s;animation-timing-function:ease-out}
html.vf-busy,html.vf-busy a{cursor:progress}
.vf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1:focus{outline:none}

/* ---- t3: premium motion tokens (see /workspace/vf-seo-src/MOTION_RULES.md) ---- */
:root{--ease-out:cubic-bezier(0.23,1,0.32,1);--ease-move:cubic-bezier(0.2,0,0,1)}
/* content: old leaves fast (110ms), new rises in (200ms). Only <main> moves. */
html.vf-route::view-transition-old(vf-main){animation:vf-out .11s var(--ease-out) both}
html.vf-route::view-transition-new(vf-main){animation:vf-in .2s var(--ease-out) .04s both}
@keyframes vf-out{to{opacity:0}}
@keyframes vf-in{from{opacity:0;transform:translateY(6px)}}
/* shared hero (tile image <-> first still) */
html.vf-route::view-transition-group(vf-hero){animation-duration:.32s;animation-timing-function:var(--ease-move)}
html.vf-route::view-transition-old(vf-hero),html.vf-route::view-transition-new(vf-hero){height:100%;object-fit:cover;animation-duration:.32s;animation-timing-function:var(--ease-move);mix-blend-mode:normal}
html.vf-route::view-transition-old(vf-hero){animation:none;opacity:0}
html.vf-route::view-transition-new(vf-hero){animation:none}
/* lightbox: image morphs thumb<->center; backdrop+controls fade via root */
html.vf-lb::view-transition-group(vf-still){animation-duration:.32s;animation-timing-function:var(--ease-move)}
html.vf-lb::view-transition-old(vf-still),html.vf-lb::view-transition-new(vf-still){height:100%;object-fit:cover;animation:none;mix-blend-mode:normal}
html.vf-lb::view-transition-old(vf-still){opacity:0}
html.vf-lb::view-transition-old(root),html.vf-lb::view-transition-new(root){animation-duration:.2s;animation-timing-function:var(--ease-out)}
html.vf-lb .lb{transition:none}
html.vf-lbstep::view-transition-group(vf-lbimg){animation:none}
html.vf-lbstep::view-transition-old(vf-lbimg){animation:vf-out .1s var(--ease-out) both}
html.vf-lbstep::view-transition-new(vf-lbimg){animation:vf-in .16s var(--ease-out) .03s both}
html.vf-lbstep::view-transition-old(root),html.vf-lbstep::view-transition-new(root){animation:none}
/* press feedback + hover only on real hover devices */
.tile,.shot a,.pill,.btn,.stile{transition:border-color .18s ease,transform .16s var(--ease-out)}
.tile:active,.stile:active,.shot a:active,.tile.is-press,.stile.is-press,.shot a.is-press{transform:scale(.98)}
.tile.is-selected,.stile.is-selected,.shot.is-selected a,.shot a.is-selected{box-shadow:inset 0 0 0 2px rgba(232,255,90,.92),0 0 0 1px rgba(232,255,90,.28)}
.pill:active,.btn:active{transform:scale(.97)}
.shot img,.tile img{transition:opacity .22s var(--ease-out),transform .3s var(--ease-out)}
@media (hover:none){.shot:hover img{transform:none}}
@media (prefers-reduced-motion:reduce){html::view-transition-group(*),html::view-transition-old(*),html::view-transition-new(*){animation:none!important}}

/* trickle progress at the top of the viewport */
.vf-bar{position:fixed;top:0;left:0;right:0;height:2px;z-index:80;pointer-events:none;opacity:0;transform:translateZ(0);transition:opacity .2s var(--ease-out,cubic-bezier(0.23,1,0.32,1))}
.vf-bar.is-on{opacity:1}
.vf-bar.is-done{opacity:0}
.vf-bar>i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:0 50%;background:rgba(232,255,90,.72);box-shadow:0 0 8px rgba(232,255,90,.35)}
@media(prefers-reduced-motion:reduce){
  .tile:active,.stile:active,.shot a:active,.tile.is-press,.stile.is-press,.shot a.is-press{transform:none}
  .vf-bar{transition:none}
}
