:root {
  color-scheme: dark;
  --black: #030303;
  --frame: #050505;
  --border: #242424;
  --white: #f5f3ef;
  --muted: #aaa8a5;
  --mono: 'Courier New', Courier, monospace;
  --ui: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body { margin: 0; min-height: 100vh; background: var(--black); color: var(--white); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 1px solid #f3f3f3; outline-offset: 6px; }
.viewport { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px 0; }
.frame { position: relative; isolation: isolate; width: 90.7vw; max-width: 1660px; height: 75vh; height: 75dvh; min-height: 590px; max-height: 820px; border: 1px solid var(--border); border-radius: 12px; background: #030303; overflow: hidden; }
.site-header { position: absolute; top: 27px; left: 3.3%; right: 3.3%; z-index: 60; display:flex; align-items:center; justify-content:space-between; }
.brand { appearance:none; border:0; padding:0; margin:0; background:none; display:flex; align-items:center; cursor:pointer; }
.brand img { display:block; width: 165px; height:auto; }
.nav { display:flex; align-items:center; gap: clamp(28px, 4.0vw, 65px); }
.nav-link { border:0; background:none; cursor:pointer; padding: 5px 0; font: 12px/1.1 var(--mono); letter-spacing: 1.25px; color: #929292; transition: color .22s; }
.nav-link:is(:hover,:focus-visible), .nav-link.is-active { color: var(--white); }
.work-scene { position:absolute; inset:0; transition:opacity .35s ease; }
.project-caption { position:absolute; top: calc(33.6% + min(27.7%, 196px) + 29px); left:0; right:0; text-align:center; pointer-events:none; }
.project-caption h1 { font: 600 19px/1.22 var(--mono); color:var(--white); letter-spacing: .1px; margin:0 0 9px; }
.project-caption p { font: 400 12px/1.25 var(--mono); letter-spacing:1.1px; margin:0; color:#d7d5d1; }
.edge-control { position:absolute; top:49.6%; opacity:0; transition:opacity .2s; z-index:2; }
.edge-control.left { left: 1.4%; } .edge-control.right { right: 1.4%; }
.frame:hover .edge-control, .edge-control:focus-within { opacity:1; }
.edge-control button { width:37px; height:37px; background: rgba(0,0,0,.48); border:1px solid rgba(255,255,255,.18); border-radius:50%; cursor:pointer; font-size:20px; }
.edge-control button:hover { background:rgba(30,30,30,.85); }
.site-footer { position:absolute; z-index:40; bottom: 31px; left:3.3%; right:3.3%; display:flex; align-items:center; justify-content:space-between; }
.counter, .stills-link { font:400 11.5px/1 var(--mono); letter-spacing:1px; }
.counter { color:#d8d8d8; }
.stills-link { background:none; border:none; padding:0; display:flex; align-items:center; gap:12px; cursor:pointer; color:#d9d9d9; }
.stills-link:hover { color:white; }
.stills-link svg { flex:none; }
.overlay { position:absolute; z-index:50; inset:91px 0 70px; background:rgba(3,3,3,.98); overflow:auto; padding: 0 clamp(32px,8%,145px); opacity:0; transform:translateY(10px); pointer-events:none; visibility:hidden; transition: opacity .26s ease, transform .26s ease, visibility .26s; }
.overlay.is-open { opacity:1; transform:none; pointer-events:auto; visibility:visible; }
.overlay-inner { width:100%; min-height:100%; padding: 15px 0 15px; }
.overlay-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:44px; }
.micro { font: 11px/1.5 var(--mono); letter-spacing:1.25px; color:#a2a2a2; }
.back { padding:10px 0; border:0; background:none; cursor:pointer; font: 12px var(--mono); letter-spacing:1px; color:#e4e4e4; }
.back:hover { color:white; }
.overlay h2 { margin:0; font:400 clamp(42px, 7vw, 104px)/.95 var(--ui); letter-spacing:-.055em; }
.overlay-sub { font: 12px/1.7 var(--mono); text-transform:uppercase; letter-spacing:1.3px; color:#b3b3b3; margin-top:16px; }
.content-grid { display:grid; grid-template-columns: 1fr 1fr; gap:clamp(25px,6vw,90px); align-items:end; }
.content-text { padding-bottom:10px; }
.content-text p { max-width:500px; font-size:clamp(15px,1.5vw,20px); font-weight:300; line-height:1.55; color:#bfc0bd; }
.content-text .fine { font: 11px/1.6 var(--mono); color:#8a8a8a; }
.detail-image { width:100%; max-height:360px; height:auto; aspect-ratio:1.6/1; object-fit:cover; border-radius:3px; filter:saturate(.93); }
.line-button { cursor:pointer; border:0; padding:8px 0; background:none; border-bottom:1px solid #888; color:white; font:11px/1.5 var(--mono); letter-spacing:1.1px; }
.line-button:hover { border-color:#fff; }
.reel-slot { aspect-ratio:16/9; border:1px solid #333; background:radial-gradient(ellipse at center,#171717,#080808 65%); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; color:#999; text-align:center; padding:20px; }
.reel-slot .play { width:52px; height:52px; border:1px solid #888; border-radius:50%; display:grid; place-items:center; color:white; font-size:17px; }
.reel-slot video { width:100%; height:100%; object-fit:contain; }
.reel-slot.has-video { padding:0; background:black; }
.grid-layout { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:start; }
.grid-project { cursor:pointer; display:block; width:100%; padding:0; border:0; background:none; text-align:left; }
.grid-project .project-photo { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:3px; filter:brightness(.84); transition:filter .2s,transform .25s; }
.grid-project:hover .project-photo { filter:brightness(1); transform:translateY(-2px); }
.grid-project strong { display:block; margin-top:12px; font:600 13px var(--mono); letter-spacing:1px; }
.grid-project span { display:block; margin-top:5px; font:11px var(--mono); letter-spacing:.5px; color:#aaa; }
.muted-note { font:11px/1.65 var(--mono); letter-spacing:.2px; color:#7f7f7f; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 800px) {
 .frame {width:calc(100vw - 32px); height:calc(100dvh - 38px); min-height:550px; max-height:none;}
 .site-header {top:21px;left:24px;right:24px;}
 .brand img {width:133px;}
 .nav {gap:18px;}
 .nav-link {font-size:10px;letter-spacing:.7px;}
 .project-caption { top:calc(37% + max(21%, 124px) + 27px); }
 .project-caption h1 {font-size:17px;}
 .project-caption p {font-size:11px;}
 .site-footer {left:24px;right:24px;bottom:22px;}
 .overlay {top:79px;bottom:55px;padding:0 25px;}
 .content-grid {grid-template-columns:1fr;gap:24px;}
 .detail-image {max-height:220px;}
 .overlay h2 {font-size:clamp(46px,10vw,75px);}
 .grid-layout {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
}
@media (max-width: 560px) {
 .frame {width:calc(100vw - 20px); height:calc(100dvh - 20px); min-height:520px; border-radius:9px;}
 .site-header {left:16px;right:16px;top:18px;}
 .brand img {width:106px;}
 .nav {gap:13px;}
 .nav-link {font-size:9px;letter-spacing:.35px;}
 .project-caption {top:calc(37% + max(20%, 110px) + 25px);}
 .project-caption h1 {font-size:17px;}
 .project-caption p {font-size:10px;}
 .site-footer {left:16px;right:16px;bottom:19px;}
 .counter,.stills-link {font-size:10px;}
 .stills-link {gap:7px;}
 .edge-control {display:none;}
 .overlay {top:72px;bottom:55px;padding:0 16px;}
 .overlay-top {margin-bottom:28px;}
 .grid-layout {grid-template-columns:1fr 1fr; gap:12px;}
 .grid-project strong {font-size:10px;}
 .grid-project span {font-size:9px;}
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important;}
}
