/* JINAFI / THREE FRAMES
   Nested = identity. Separated = possibility. Open = the work.
   All gesture timing lives here; no continuous decorative animation. */
:root{--frame-fast:180ms;--frame-settle:560ms;--frame-reveal:900ms}
.mark i{transition:transform var(--frame-settle) var(--ease),background var(--frame-fast),border-color var(--frame-fast)}
/* The menu trigger is the signature itself, with a 44px touch target. */
.menu-toggle{min-height:44px}
.menu-toggle>.menu-mark{display:block;width:28px;height:28px;aspect-ratio:1;position:relative}
.menu-toggle .menu-mark i{position:absolute;height:auto;width:auto;background:none;border:1px solid currentColor;inset:0}
.menu-toggle .menu-mark i:nth-child(2){inset:19%}
.menu-toggle .menu-mark i:nth-child(3){inset:38%;background:currentColor}
.menu-toggle:is(:hover,:focus-visible) .menu-mark i:first-child{transform:rotate(-12deg)}
.menu-toggle:is(:hover,:focus-visible) .menu-mark i:nth-child(2){transform:rotate(12deg)}
.menu-toggle:is(:hover,:focus-visible) .menu-mark i:nth-child(3){transform:scale(.7)}
.menu-toggle[aria-expanded=true] .menu-mark i:first-child{transform:rotate(45deg)}
/* Navigation keeps a quiet nested registration mark beside the current place. */
.dock{gap:24px}
.dock>a[data-nav]{min-height:40px;display:flex;align-items:center;gap:8px}
.dock .nav-mark{width:14px;opacity:.3;transition:opacity var(--frame-fast)}
.dock a[aria-current]>.nav-mark{opacity:1}
.dock a[aria-current]>.nav-mark i:last-child{background:var(--ink)}
.dock a:is(:hover,:focus-visible)>.mark i:nth-child(2){transform:rotate(45deg)}
.dock a:is(:hover,:focus-visible)>.mark i:nth-child(3){transform:scale(.65)}
.dock-brand[aria-current] .mark i:last-child{background:var(--ink)}
.dock-contact[aria-current]{background:var(--lime);color:var(--ink)}
/* Full menu: a typographic index paired with one responsive brand sculpture. */
.menu-layout{display:grid;grid-template-columns:minmax(0,1fr) 23%;gap:5vw;align-items:center;max-width:1600px;margin:3vh auto}
#menu .menu-layout nav{margin:0;width:100%}
#menu .menu-layout nav>a{grid-template-columns:40px 1fr;font-size:clamp(38px,5.8vw,92px);padding:16px 0;position:relative;column-gap:16px}
#menu .menu-name{font:inherit;transition:transform var(--frame-settle) var(--ease);display:block}
#menu .menu-layout nav>a>span{grid-column:2;text-align:left;font:10px ui-monospace,monospace;letter-spacing:.02em;margin-top:8px;opacity:.65}
#menu .menu-layout nav>a small{position:relative}
#menu .menu-layout nav>a small:before,#menu .menu-layout nav>a small:after{content:'';position:absolute;left:-8px;top:-10px;width:30px;height:30px;border:1px solid currentColor;opacity:0;transform:scale(.6);transition:transform var(--frame-settle) var(--ease),opacity var(--frame-fast)}
#menu .menu-layout nav>a small:after{inset:-15px auto auto -13px;width:40px;height:40px}
#menu .menu-layout nav>a:is(:hover,:focus-visible){padding-left:0}
#menu .menu-layout nav>a:is(:hover,:focus-visible) .menu-name{transform:translateX(14px)}
#menu .menu-layout nav>a:is(:hover,:focus-visible) small:before,#menu .menu-layout nav>a:is(:hover,:focus-visible) small:after{opacity:.5;transform:scale(1)}
.menu-perspective{position:relative;aspect-ratio:1;align-self:center}
.perspective-mark{width:100%;height:100%;color:var(--ink)}
.perspective-mark i{border-width:1.5px;transition:transform 700ms var(--ease),background 400ms}
.perspective-mark i:last-child{background:var(--ink)}
.perspective-code,.perspective-caption{position:absolute;left:0;font:9px ui-monospace,monospace;letter-spacing:.06em;white-space:nowrap}
.perspective-code{top:-50px}.perspective-caption{bottom:-50px}
.menu-perspective[data-view="1"] i:first-child{transform:rotate(-14deg)}
.menu-perspective[data-view="1"] i:nth-child(2){transform:rotate(14deg)}
.menu-perspective[data-view="1"] i:nth-child(3){transform:rotate(-14deg)}
.menu-perspective[data-view="2"] i:first-child{transform:translate(-6%,-6%)}
.menu-perspective[data-view="2"] i:nth-child(2){transform:translate(12%,12%)}
.menu-perspective[data-view="2"] i:nth-child(3){transform:translate(52%,52%)}
.menu-perspective[data-view="3"] i:first-child{transform:rotate(45deg) scale(.82)}
.menu-perspective[data-view="3"] i:nth-child(2){transform:rotate(45deg) scale(.82)}
.menu-perspective[data-view="3"] i:nth-child(3){transform:rotate(45deg) scale(.82)}
#menu[open] .menu-layout{animation:menu-arrive 500ms var(--ease) both}
@keyframes menu-arrive{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
/* A small frame opens around the directional arrow on deliberate actions. */
.action-glyph{display:inline-grid;place-items:center;position:relative;width:24px;height:24px;flex-shrink:0}
.action-glyph>.mark{position:absolute;inset:0;width:100%;height:100%}
.action-glyph>.mark i{opacity:0;transform:scale(.45);transition:transform var(--frame-settle) var(--ease),opacity var(--frame-fast)}
.action-glyph>.icon{width:18px;height:18px;transition:transform var(--frame-settle) var(--ease)}
:is(a,button):is(:hover,:focus-visible)>.action-glyph>.mark i{opacity:.45;transform:scale(1.4)}
:is(a,button):is(:hover,:focus-visible)>.action-glyph>.mark i:nth-child(2){transform:scale(2.2);transition-delay:35ms}
:is(a,button):is(:hover,:focus-visible)>.action-glyph>.mark i:nth-child(3){opacity:0}
:is(a,button):is(:hover,:focus-visible)>.action-glyph>.icon{transform:translate(3px,-3px)}
/* Same aperture gesture at page scale and project scale. */
#curtain{background:transparent;clip-path:none;visibility:hidden;overflow:hidden;isolation:isolate}
#curtain.enter{visibility:visible;animation:none}
.transition-plane{position:absolute;inset:0;display:block;background:var(--lime);clip-path:inset(50%);pointer-events:none}
.transition-plane:nth-child(2){background:var(--ink)}
.transition-plane:nth-child(3){background:var(--paper)}
#curtain>.transition-mark{width:100px;position:relative;color:var(--ink);opacity:0}
#curtain.enter>.transition-plane{animation:frame-close 480ms var(--ease) both}
#curtain.enter>.transition-plane:nth-child(2){animation-delay:45ms}
#curtain.enter>.transition-plane:nth-child(3){animation-delay:90ms}
#curtain.enter>.transition-mark{animation:mark-arrive 350ms 180ms var(--ease) both}
@keyframes frame-close{from{clip-path:inset(50%)}to{clip-path:inset(0)}}
@keyframes mark-arrive{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
.aperture-shutter{background:transparent;clip-path:none;overflow:hidden}
.aperture-shutter>.transition-mark{position:relative;opacity:0;color:var(--ink)}
.live-aperture.changing .aperture-shutter{animation:none;visibility:visible}
.live-aperture.changing .aperture-shutter>.transition-plane{animation:frame-exchange 1000ms var(--ease) both}
.live-aperture.changing .aperture-shutter>.transition-plane:nth-child(2){animation-delay:35ms}
.live-aperture.changing .aperture-shutter>.transition-plane:nth-child(3){animation-delay:70ms}
.live-aperture.changing .aperture-shutter>.transition-mark{animation:mark-exchange 1000ms var(--ease) both}
@keyframes frame-exchange{0%{clip-path:inset(50%)}35%,65%{clip-path:inset(0)}100%{clip-path:inset(50%)}}
@keyframes mark-exchange{0%,100%{opacity:0;transform:scale(.75)}35%,65%{opacity:1;transform:scale(1)}}
/* Project imagery is uncovered through the same centered aperture. */
[data-frame-reveal]{overflow:clip}
[data-frame-reveal].frame-ready>img{clip-path:inset(22% 34%);transition:clip-path var(--frame-reveal) var(--ease)}
[data-frame-reveal].frame-ready.frame-visible>img{clip-path:inset(0)}
.case-cover.frame-ready .case-mark i{transform:scale(.65);transition:transform var(--frame-reveal) var(--ease)}
.case-cover.frame-visible .case-mark i{transform:scale(1)}
.case-cover.frame-visible .case-mark i:nth-child(2){transition-delay:70ms}
.case-cover.frame-visible .case-mark i:nth-child(3){transition-delay:140ms}
.case-screen[data-frame-reveal]{overflow:visible}
.index-image{clip-path:inset(18%);transition:clip-path 650ms var(--ease),opacity 350ms,transform 650ms var(--ease)}
.index-row:is(:hover,:focus-within) .index-image{clip-path:inset(0);opacity:1;transform:translateY(-50%) rotate(-6deg) scale(1)}
.index-image:after{content:'';position:absolute;inset:10px;border:1px solid var(--lime);box-shadow:0 0 0 5px #d7fc7030,0 0 0 10px #d7fc7018;pointer-events:none}
/* Selection stays readable and the frames respond only to intentional input. */
.film-selectors button>span{position:relative;min-width:18px;text-align:center}
.film-selectors button>span:before,.film-selectors button>span:after{content:'';position:absolute;inset:-5px -2px;border:1px solid currentColor;opacity:0;transform:scale(.6);transition:transform var(--frame-settle) var(--ease),opacity var(--frame-fast)}
.film-selectors button>span:after{inset:-8px -5px}
.film-selectors button[aria-pressed=true]>span:before{opacity:.7;transform:scale(1)}
.film-selectors button[aria-pressed=true]>span:after{opacity:.3;transform:scale(1)}
.film-selectors{gap:24px;padding-top:5px;padding-bottom:8px}
.film-selectors button{gap:11px}
.live-aperture:is(:hover,:focus-within):not(.changing) .live-frames i:nth-child(2){transform:rotate(0)}
.live-aperture:is(:hover,:focus-within):not(.changing) .live-frames i:nth-child(3){transform:rotate(0)}
@media(max-width:1100px){.menu-layout{grid-template-columns:1fr 21%;gap:6vw}.dock{gap:19px}.perspective-caption{font-size:8px;white-space:normal;line-height:1.5}.menu-perspective{margin-right:8px}}
@media(max-width:760px){
 .menu-layout{display:block;margin:5vh auto 0}#menu .menu-layout nav{margin:0}#menu .menu-layout nav>a{font-size:10vw;padding:20px 0;grid-template-columns:30px 1fr;column-gap:15px}#menu .menu-layout nav>a>span{display:block;font-size:9px}.menu-perspective{display:none}
 .dock{gap:14px}.dock>a[data-nav]{gap:6px}.dock .nav-mark{width:12px}.dock-contact .action-glyph{width:18px;height:18px}.dock-contact{padding:10px}.dock .dock-contact{gap:10px}
 .menu-toggle>.menu-mark{width:25px;height:25px}.action-glyph{width:21px;height:21px}.film-selectors{gap:25px;padding-inline:5px}
 #curtain>.transition-mark{width:80px}
}
@media(max-width:370px){.dock{gap:10px}.dock .nav-mark{display:none}}
.motion-off [data-frame-reveal].frame-ready>img,.motion-off .index-image{clip-path:none}
.motion-off .case-cover.frame-ready .case-mark i{transform:none}
@media(prefers-reduced-motion:reduce){[data-frame-reveal].frame-ready>img,.index-image{clip-path:none}.case-cover.frame-ready .case-mark i{transform:none}#curtain{display:none}}
