/* Portfolio v20: the page starts black (studied Apple's dark product pages + Linear) and turns light as you scroll.
   Black opening: hero + the film. Words come out of a soft blur. The work glows out of the dark.
   Then the light page rises over the black with a curved edge (mirrors the black contact rising at the end). */
:root{--k:#000;--k-ink:#f5f5f7;--k-mute:#86868b;--k-line:rgba(255,255,255,.12)}

/* the black zone sits behind the nav, hero and film; JS sets its height to the end of the film */
main{position:relative;isolation:isolate}
.dz{position:absolute;left:0;right:0;top:-52px;height:var(--dzh,200vh);background:var(--k);z-index:-1;pointer-events:none}
.iv-h{background:var(--k)}

/* nav over black */
.lnav{transition:background-color .45s,border-color .3s,color .45s}
.lnav.dk{background:rgba(0,0,0,.62);color:var(--k-ink)}
.lnav.dk .lnav-name,.lnav.dk nav,.lnav.dk nav a:not(.pill),.lnav.dk .snd{color:var(--k-ink)}
.lnav.dk.lined{border-bottom-color:var(--k-line)}
.lnav.dk::after{background:var(--k-ink)}

/* hero on black: white headline, grey second voice (Linear/Apple), blue stays the one colour */
.hero{color:var(--k-ink)}
.hero h1{color:var(--k-ink)}
.hero .eyebrow{color:var(--k-mute)}
.hero .clk::before{color:#3a3a3c}
.hero-side p{color:var(--k-mute)}
.hero-side p b{color:var(--k-ink);font-weight:500}

/* minimal reveal: words come out of a soft blur instead of only sliding */
.fu-on .hero .sp .wd>i{filter:blur(10px);opacity:0;transition:transform var(--rise) var(--ease-rise),filter 1s var(--ease-rise),opacity .9s var(--ease-rise);transition-delay:calc(var(--i,0) * 70ms + .1s)}
.fu-on .hero .sp.in .wd>i{filter:none;opacity:1}
.fu-on .hero .eyebrow.fu,.fu-on .hero .hero-side.fu{filter:blur(8px);transition:opacity 1s var(--ease-rise),transform 1s var(--ease-rise),filter 1s var(--ease-rise)}
.fu-on .hero .eyebrow.fu.in,.fu-on .hero .hero-side.fu.in{filter:none}

/* the work glows out of the dark: soft light under the window + a hairline edge that fades as it opens */
.film-stick{background:var(--k)}
.film-stick::before{content:'';position:absolute;left:50%;top:var(--gy,60%);width:min(1400px,120vw);height:70vh;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(140,160,255,.16),rgba(140,160,255,.05) 55%,transparent);opacity:var(--go,1);pointer-events:none}
.film-edge{position:absolute;top:var(--it,8vh);left:var(--ix,8vw);right:var(--ix,8vw);bottom:var(--ib,30vh);border-radius:var(--ir,28px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.22);opacity:var(--go,1);pointer-events:none}
.film-win{will-change:clip-path,opacity}

/* light rises over the black with a curved top edge */
#highlights{position:relative;background:var(--bg);border-radius:calc(var(--c2,0) * 50%) calc(var(--c2,0) * 50%) 0 0 / calc(var(--c2,0) * 140px) calc(var(--c2,0) * 140px) 0 0;margin-top:calc(var(--c2,0) * -60px);padding-top:calc(var(--c2,0) * 60px + clamp(56px,9vh,100px))}

@media (prefers-reduced-motion:reduce){.fu-on .hero .sp .wd>i,.fu-on .hero .eyebrow.fu,.fu-on .hero .hero-side.fu{filter:none;opacity:1}}
