*{box-sizing:border-box}html,body{margin:0;background:#000;color:#fff;font-family:Alata,sans-serif;min-height:100%}.backdrop{position:fixed;inset:60px 0 0;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .45s}.backdrop.active{opacity:1}.backdrop>img{width:100%;height:100%;object-fit:cover;filter:brightness(.35)}.motion{position:absolute;inset:0;opacity:.35}.motion iframe{border:0;width:100%;height:100%;pointer-events:none}.backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(#0003,#0004 30%,#000d)}main{position:relative;padding:110px 0 70px;overflow:hidden}h1{font-size:clamp(80px,14vw,190px);font-weight:400;line-height:1;margin:0 6% 60px;letter-spacing:-.05em}.reel-tools{margin:0 6% 32px;display:flex;justify-content:space-between;align-items:center}.reel-tools p{font-size:18px}.reel-tools button{font:28px Alata;background:#0009;border:1px solid #777;border-radius:50%;color:white;width:45px;height:45px;margin-left:10px;cursor:pointer}.reel{display:flex;gap:32px;overflow-x:auto;scroll-snap-type:x mandatory;padding:20px 6% 35px;scroll-padding:6%;scrollbar-width:thin;scrollbar-color:#ffa000 #111}.project{flex:0 0 clamp(235px,24vw,340px);scroll-snap-align:start;color:white;text-decoration:none;animation:enter .8s both;animation-delay:calc(var(--i)*70ms)}.project small{display:block;text-align:right;font-size:16px;margin-bottom:12px}.picture{display:block;background:#ffa000;border-radius:32px}.project img{display:block;width:100%;aspect-ratio:1.42;object-fit:cover;border-radius:32px;transition:transform .2s}.project strong{display:block;font-size:26px;font-weight:400;margin-top:15px}.project:hover img,.project:focus-visible img{transform:translate(-4px,-4px)}.project:hover strong{color:#ffa000}.project:focus-visible,button:focus-visible{outline:2px solid #ffa000;outline-offset:7px}.hint{margin:24px 6%;color:#bbb;font-size:15px}.hint span{color:#ffa000;margin-left:15px}@keyframes enter{from{opacity:0;transform:translateX(90px)}to{opacity:1;transform:translateX(0)}}@media(max-width:768px){main{padding-top:100px}h1{margin-bottom:24px;font-size:clamp(76px,19vw,130px)}.reel-tools{margin-bottom:15px}.reel-tools p{max-width:190px;font-size:16px}.reel-tools button{width:37px;height:37px;font-size:23px;margin-left:6px}.reel{gap:22px;padding-top:15px}.project{flex-basis:76vw;max-width:380px}.project strong{font-size:26px}.project small{font-size:15px}.backdrop{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.motion{display:none}}
/* Keep the reel together on laptop-height screens; allow room for all titles. */
@media(min-width:769px){main{padding-top:95px}h1{margin-bottom:34px}.reel-tools{margin-bottom:12px}}
.reel-tools button:disabled{opacity:.3;cursor:default}.reel-position{font-variant-numeric:tabular-nums;color:#bbb;letter-spacing:.08em}.project img{user-select:none}

/* Desktop is a single-screen reel. The wheel moves the reel, not the page. */
@media(min-width:769px){
  html,body{height:100%;overflow:hidden}
  main{height:100dvh;display:flex;flex-direction:column;padding:80px 0 18px}
  h1{font-size:clamp(66px,17vh,170px);margin-bottom:12px;flex-shrink:0}
  .reel-tools{margin-bottom:0;flex-shrink:0}
  .reel-tools p{margin:8px 0}
  .reel{flex:1;min-height:0;align-items:center;padding-top:12px;padding-bottom:12px;scroll-snap-type:none}
  .project{flex-basis:clamp(180px,min(24vw,43vh),340px)}
  .project small{margin-bottom:8px}
  .project strong{font-size:clamp(20px,3.5vh,26px);margin-top:10px}
  .hint{margin:10px 6% 0;flex-shrink:0}
}

/* A narrow desktop window still supports real pointer hover previews. */
@media(any-hover:hover){.backdrop{display:block}}

/* Video is the backdrop itself, never blended with a poster underneath. */
.backdrop{transition:opacity .15s}.backdrop>img{display:none}.motion{opacity:1}.backdrop:after{background:linear-gradient(#0003,transparent 35%,#0002)}.preview-player{position:absolute;inset:0;visibility:hidden}.preview-player.show{visibility:visible}.project strong,.project small,h1,.reel-position,.hint{text-shadow:0 2px 8px #0009}

/* Written Work: a close crop of Michael's prose, independent of video layers. */
.backdrop.still>img{display:block;object-fit:cover;object-position:center;transform:scale(1.12);filter:brightness(.58)}
.backdrop.still .motion{display:none}.backdrop.still:after{background:linear-gradient(#0003,transparent 45%,#0003)}

/* Cover the viewport with the video surface, cropping embedded-player edges. */
.backdrop{transition:opacity .45s ease}.preview-player{visibility:visible;opacity:0;transition:opacity .45s ease;overflow:hidden}.preview-player.show{visibility:visible;opacity:1}
.motion iframe{position:absolute;left:50%;top:50%;width:max(125vw,calc((100dvh - 60px)*2.22223));height:max(70.3125vw,calc((100dvh - 60px)*1.25));max-width:none;transform:translate(-50%,-50%)}
.backdrop>img,.backdrop.still>img{display:block;opacity:0;transition:opacity .45s ease;object-fit:cover;object-position:center;transform:scale(1.12);filter:brightness(.58)}.backdrop.still>img{opacity:1}.backdrop.still .motion{display:block}
@media(prefers-reduced-motion:reduce){.backdrop,.preview-player,.backdrop>img{transition:none}}

/* Plain directional controls; retain comfortable pointer and touch targets. */
.reel-tools{justify-content:flex-end}.reel-tools>div{display:flex;gap:8px}.reel-tools button{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:7px;background:none;border:0;border-radius:0;color:#fff}.reel-tools svg{width:30px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.reel-tools button:hover:not(:disabled){color:#ffa000}.reel-tools button:disabled{opacity:.25}
