.tunnel-study{background:#000;color:var(--paper)}
.tunnel-study html{scroll-behavior:auto}
.study-nav{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:20px 4vw;font-size:12px;letter-spacing:.04em;background:#000}
.study-nav>div{display:flex;gap:28px;align-items:center}.study-nav a,.study-nav button{display:inline-flex;align-items:center;min-height:44px}.study-nav button{font-size:inherit;padding:0}
.tunnel-stage{position:relative;padding:70px 4vw}.scene{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.tile{margin:0;min-width:0}.tile img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}
.tunnel-title{text-align:center;padding:60px 0}.tunnel-title h1{font-size:clamp(42px,5vw,76px);font-weight:300;line-height:1.08;letter-spacing:-.04em}.tunnel-title .eyebrow{margin-bottom:20px}.scroll-hint{font-size:12px;margin-top:24px;color:var(--muted)}.arrival-title{text-align:center;padding:60px 24px}
#tunnel.is-animated{--tunnel-travel:220;--tunnel-hold:45;height:365svh}.is-animated .tunnel-stage{position:sticky;top:0;height:100svh;padding:0;overflow:clip;isolation:isolate}.is-animated .scene{display:block;position:absolute;inset:0;perspective:900px;perspective-origin:50% 50%;transform-style:preserve-3d}.is-animated .tile{position:absolute;top:50%;left:50%;width:clamp(180px,25vw,380px);aspect-ratio:4/3;transform-style:preserve-3d;backface-visibility:hidden}.is-animated .tile:nth-child(3n){aspect-ratio:3/4;width:clamp(140px,18vw,280px)}.is-animated .tile img{aspect-ratio:auto}.is-animated .tunnel-title,.is-animated .arrival-title{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:24px}.is-animated .tunnel-title{z-index:2;text-shadow:0 2px 22px #000}.is-animated .arrival-title{background:transparent}.arrival-title h2{font-size:clamp(40px,5vw,72px);max-width:20ch;margin:24px auto}.arrival-title>p:last-child{color:var(--muted);font-size:14px}
.film-browser{background:#000;scroll-margin-top:24px;min-height:100svh}.film-browser h2{margin:20px 0 32px}.study-filters{display:flex;flex-wrap:wrap;gap:12px 28px;margin-bottom:32px}.study-filters button{min-height:44px;padding:8px 0;font-size:12px;border-bottom:1px solid transparent}.study-filters button[aria-pressed=true]{border-color:var(--sage);color:var(--sage)}#study-player{width:100%;max-height:65svh;aspect-ratio:16/9;background:#0b100d;object-fit:contain}#film-label{margin:20px 0}.study-film-list{display:grid;grid-template-columns:repeat(3,1fr);gap:0 28px;margin-bottom:32px}.film-link{padding:18px 0;border-top:1px solid #ffffff30;font-size:13px}.film-link[aria-current=true]{color:var(--sage)}
@media(max-width:650px){.study-nav{padding:12px 20px;gap:20px;font-size:11px}.study-nav>div{gap:14px}.scene{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tunnel-stage{padding:24px 20px}.is-animated .tile{width:48vw}.is-animated .tile:nth-child(3n){width:38vw}.study-film-list{grid-template-columns:1fr 1fr}.is-animated .tunnel-title h1{font-size:40px}#tunnel.is-animated{--tunnel-travel:180;--tunnel-hold:25;height:305svh}}
@media(prefers-reduced-motion:reduce){#tunnel.is-animated{height:auto}.is-animated .tunnel-stage{position:relative;height:auto;padding:24px}.is-animated .scene{position:relative;display:grid;perspective:none}.is-animated .tile,.is-animated .tile:nth-child(3n){position:static;width:auto;transform:none!important;opacity:1!important}.is-animated .tunnel-title{position:relative;opacity:1!important}.is-animated .arrival-title{text-align:center;padding:60px 24px}.scroll-hint{display:none}}

#tunnel:not(.is-animated) .tile{transform:none!important;opacity:1!important}
#tunnel:not(.is-animated) .tunnel-title{opacity:1!important}

#tunnel{background:#000;color:var(--paper)}
#tunnel:not(.is-animated) .arrival-title h2,#tunnel:not(.is-animated) .arrival-instruction{opacity:1!important}
#tunnel:not(.is-animated) .scroll-hint{display:none}
.tunnel-controls{position:absolute;top:110px;right:var(--edge);z-index:5;display:flex;gap:24px;font-size:11px;letter-spacing:.04em}.tunnel-controls a,.tunnel-controls button{min-height:44px;display:inline-flex;align-items:center;padding:0;font-size:inherit}
#tunnel:not(.is-animated) .tunnel-controls{position:relative;top:auto;right:auto;justify-content:flex-end;margin-bottom:24px}
.work{background:#000}
@media(max-width:650px){.tunnel-controls{top:90px;gap:20px}}

/* Utilities are discoverable on keyboard focus, absent from the visual journey. */
.tunnel-keyboard-controls:not(:focus-within){position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tunnel-keyboard-controls:focus-within{background:#000;padding:8px 16px;clip-path:none}

/* Hold the final viewport of the existing track while the opaque film browser covers it.
   The track's height and Motion offsets stay unchanged: no extra scroll distance. */
.layered-portfolio>#tunnel.is-animated{position:sticky;top:calc((var(--tunnel-travel) + var(--tunnel-hold)) * -1svh)}
.layered-portfolio>#work{position:relative;z-index:2;background:#000}
@media(prefers-reduced-motion:reduce){.layered-portfolio>#tunnel.is-animated{position:relative;top:auto}}

/* Approved Fade Only opening: same title metrics as the isolated study. */
#tunnel.fade-opening.is-animated .tunnel-title{padding:0;text-shadow:none}
#tunnel.fade-opening.is-animated .tunnel-title .eyebrow{font-family:var(--font);font-weight:300;font-size:min(100px,14vw);letter-spacing:-.025em;line-height:1.2;margin:0;white-space:nowrap;color:var(--paper)}
@media(max-width:650px){#tunnel.fade-opening.is-animated .tunnel-title .eyebrow{font-size:min(48px,14vw)}}
