
    :root{
      --bg:#080808;
      --text:#f3f3ef;
      --muted:rgba(255,255,255,.64);
      --line:rgba(255,255,255,.15);
      --accent:#ff3d23;
      --radius:28px;
      --ease:cubic-bezier(.18,.78,.2,1);
    }

    *{box-sizing:border-box}
    html,body{width:100%;height:100%;margin:0;overflow:hidden;background:var(--bg)}
    body{font-family:Arial,Helvetica,sans-serif;color:var(--text)}
    button,a{font:inherit;color:inherit}
    button{cursor:pointer}
    a{text-decoration:none}

    .app{
      width:100%;
      height:100%;
      padding:18px;
      background:
        radial-gradient(circle at 85% 15%,rgba(130,12,6,.22),transparent 35%),
        #070707;
    }

    .stage{
      position:relative;
      width:100%;
      height:100%;
      overflow:hidden;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:#090909;
      isolation:isolate;
    }

    .hero{
      position:absolute;
      inset:0;
      background:
        linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.48) 35%,rgba(0,0,0,.08) 68%,rgba(0,0,0,.46) 100%),
        linear-gradient(0deg,rgba(0,0,0,.8),transparent 48%),
        url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=2200&q=85") center 32%/cover no-repeat;
      transform:scale(1.02);
      transition:transform .9s var(--ease),filter .75s var(--ease);
      z-index:-2;
    }

    .stage.work-open .hero{transform:scale(1.08);filter:brightness(.54)}
    .vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 170px rgba(0,0,0,.5);z-index:5}

    header{
      position:absolute;
      top:0;left:0;right:0;
      min-height:108px;
      display:grid;
      grid-template-columns:1fr auto 1fr;
      align-items:start;
      padding:30px 42px 0;
      z-index:20;
      background:linear-gradient(180deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.34) 58%,transparent 100%);
    }

    .logo{
      font-family:Impact,"Arial Narrow",sans-serif;
      font-size:34px;
      letter-spacing:.08em;
      line-height:1;
    }

    nav{
      display:flex;
      gap:34px;
      padding-top:4px;
      font-size:11px;
      letter-spacing:.18em;
      text-transform:uppercase;
    }

    nav button{
      border:0;
      background:none;
      padding:8px 0;
      opacity:.9;
      position:relative;
    }

    nav button:hover,nav button.active{opacity:1}
    nav button.active:after{
      content:"";
      position:absolute;
      left:0;right:0;bottom:0;
      height:1px;background:#fff;
    }
    nav .nav-saved{
      width:30px;height:30px;
      display:grid;place-items:center;
      padding:0;
      margin-left:4px;
      border:1px solid rgba(255,255,255,.14);
      border-radius:50%;
    }
    nav .nav-saved:after{display:none}
    nav .nav-saved svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
    nav .nav-saved[hidden]{display:none}


    .menu{
      justify-self:end;
      border:0;
      background:none;
      padding:4px 0;
      min-width:32px;
      display:flex;
      flex-direction:column;
      align-items:flex-end;
      gap:6px;
    }
    .menu span{display:block;height:1px;background:#fff;transition:.25s}
    .menu span:first-child{width:26px}
    .menu span:last-child{width:16px}
    .menu:hover span:last-child{width:26px}

    .socials{
      position:absolute;
      left:34px;
      top:50%;
      transform:translateY(-50%);
      display:flex;
      flex-direction:column;
      gap:44px;
      z-index:14;
      padding:22px 12px;
      border-radius:18px;
      background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.26));
      backdrop-filter:blur(5px);
    }
    .socials a{
      width:22px;height:22px;
      display:grid;place-items:center;
      opacity:.94;
      transition:opacity .25s,transform .25s;
    }
    .socials a:hover{opacity:1;transform:scale(1.12)}
    .socials svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

    .intro{
      position:absolute;
      left:13%;
      top:47%;
      transform:translateY(-50%);
      max-width:680px;
      z-index:10;
      transition:.7s var(--ease);
    }
    .stage.work-open .intro{transform:translateY(-72%) scale(.9);opacity:.25}

    .intro h1{
      margin:0;
      font-family:Impact,"Arial Narrow",sans-serif;
      font-size:clamp(74px,8.2vw,148px);
      line-height:.84;
      letter-spacing:-.025em;
      text-transform:uppercase;
      font-weight:500;
    }

    .roles{
      display:flex;
      flex-wrap:wrap;
      gap:12px;
      margin-top:28px;
      text-transform:uppercase;
      font-size:12px;
      letter-spacing:.09em;
    }
    .roles span:not(:last-child):after{content:"•";margin-left:12px;opacity:.4}
    .tags{margin-top:16px;color:var(--muted);font-size:14px}

    .showreel{
      margin-top:30px;
      border:0;
      background:none;
      padding:0;
      display:inline-flex;
      align-items:center;
      gap:14px;
      text-transform:uppercase;
      letter-spacing:.08em;
      font-size:12px;
    }
    .play-ring{
      width:48px;height:48px;
      border:0;
      border-radius:50%;
      display:grid;place-items:center;
      padding:0;
      color:#fff;
      background:rgba(18,18,18,.50);
      box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 8px 24px rgba(0,0,0,.16);
      transition:background .2s ease,transform .2s ease;
    }
    .showreel:hover .play-ring{transform:scale(1.04);background:rgba(255,255,255,.18)}

    .scroll-indicator{
      position:absolute;
      right:28px;
      top:50%;
      transform:translateY(-50%);
      display:flex;
      flex-direction:column;
      align-items:center;
      z-index:13;
    }
    .scroll-indicator span{
      writing-mode:vertical-rl;
      font-size:9px;
      letter-spacing:.18em;
      text-transform:uppercase;
      opacity:.65;
    }
    .scroll-line{width:1px;height:78px;background:rgba(255,255,255,.25);position:relative}
    .scroll-dot{
      position:absolute;
      left:50%;top:0;
      transform:translateX(-50%);
      width:10px;height:10px;
      border:1px solid #fff;border-radius:50%;background:#111;
      transition:top .5s var(--ease)
    }

    .work-panel{
      position:absolute;
      left:0;right:0;bottom:0;
      height:48%;
      padding:26px 40px 46px;
      background:linear-gradient(180deg,rgba(7,7,7,.02),rgba(7,7,7,.9) 14%,rgba(7,7,7,.99));
      transform:translateY(76%);
      transition:transform .8s var(--ease);
      z-index:30;
    }
    .stage.work-open .work-panel{transform:translateY(0)}

    .work-head{
      display:flex;
      justify-content:space-between;
      align-items:center;
      margin-bottom:24px;
    }
    .work-head h2{
      margin:0;
      font-family:Impact,"Arial Narrow",sans-serif;
      font-size:18px;
      letter-spacing:.13em;
      font-weight:400;
      text-transform:uppercase;
    }

    .projects{
      display:grid;
      grid-auto-flow:column;
      grid-auto-columns:clamp(360px,30vw,470px);
      overflow-x:auto;
      overflow-y:hidden;
      scrollbar-width:none;
      position:relative;
      z-index:40;
    }
    .projects::-webkit-scrollbar{display:none}

    .project{
      position:relative;
      aspect-ratio:16/9;
      padding:0;
      margin:0;
      appearance:none;
      -webkit-appearance:none;
      min-width:360px;
      overflow:hidden;
      border-radius:9px;
      border:0;
      background:#141414;
    }
    .project:hover{
      z-index:6;
    }

    .project img{
      width:100%;height:100%;object-fit:cover;
      display:block;
      transition:transform .55s var(--ease),filter .3s;
    }
    .project-preview{
      position:absolute;inset:0;
      width:100%;height:100%;
      object-fit:cover;
      opacity:0;
      transition:opacity .28s ease;
      z-index:1;
      pointer-events:none;
    }
    .project.previewing .project-preview{opacity:1}
    .project.previewing > img{opacity:0}
    .project:hover img{filter:brightness(.72)}

    .project:after{
      content:"";
      position:absolute;inset:0;
      background:linear-gradient(0deg,rgba(0,0,0,.9),transparent 68%);
    }

    .project-meta{
      position:absolute;bottom:16px;
      z-index:2;
      display:flex;
      align-items:flex-end;
      gap:10px;
    }
    .project-title{
      font-family:Impact,"Arial Narrow",sans-serif;
      font-size:22px;
      letter-spacing:.04em;
      text-transform:uppercase;
    }
    .project-sub{
      margin-top:3px;
      font-size:10px;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:rgba(255,255,255,.72)
    }
    .mini-play{
      position:absolute;
      right:0;
      bottom:0;
      width:38px;height:38px;
      border:0;
      border-radius:50%;
      display:grid;place-items:center;flex:none;
      padding:0;
      color:#fff;
      background:rgba(18,18,18,.50);
      box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 8px 24px rgba(0,0,0,.16);
      transition:background .2s ease,transform .2s ease;
    }
    .project:hover .mini-play{transform:scale(1.04);background:rgba(255,255,255,.18)}

    .detail{
      opacity:0;visibility:hidden;
      transition:none;
      transform:none;
      display:block;
    }
    .detail.open{transform:none}
    .detail-close{
      border:0;
      background:none;
      font-size:38px;
      line-height:1;
      padding:0;
    }
    .video-wide img{
      width:100%;height:100%;
      object-fit:cover;
      display:block;
      filter:brightness(.78);
    }
    .video-wide:after{
      content:"";
      position:absolute;inset:0;
      background:
        linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.18) 42%,transparent 68%),
        linear-gradient(0deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.32) 38%,transparent 66%);
    }

    .video-wide video{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      object-fit:cover;
      z-index:1;
      background:#000;
    }
    .video-wide.video-active:after{pointer-events:none;opacity:.18}
    .video-wide.video-active .controls,
    .video-wide.video-active > img{display:none}

    .about{
      position:absolute;inset:0;
      background:#070707;
      backdrop-filter:none;
      z-index:100;
      opacity:0;visibility:hidden;
      transition:none;
      display:grid;
      place-items:center;
      padding:90px 10vw;
    }
    .about.open{opacity:1;visibility:visible}
    .about-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:8vw;align-items:center}
    .about h2{
      margin:0;
      font-family:Impact,"Arial Narrow",sans-serif;
      font-size:clamp(70px,8vw,140px);
      line-height:.82;
      text-transform:uppercase;
      font-weight:400;
    }
    .about p{color:var(--muted);line-height:1.8}
    .about-close{position:absolute;right:36px;top:28px}

    @media(max-width:900px){
      header{grid-template-columns:1fr auto;padding:26px 22px 0;min-height:88px}
      nav{display:none}
      .intro{left:10%;top:44%}
      .intro h1{font-size:clamp(58px,16vw,108px)}
      .socials{display:none}
      .work-panel{height:52%;padding:22px 20px 38px}
      .projects{grid-auto-columns:74vw;gap:12px;padding-left:18px;padding-right:18px}
      .detail{padding:0}
      .about-grid{grid-template-columns:1fr}
    }
  
    /* Final alignment pass */
    .projects{
      padding-left:0;
      padding-right:0;
    }
    .project:first-child{transform-origin:left center}
    .project:last-child{transform-origin:right center}
    .project-meta{
      left:20px;
      right:20px;
      justify-content:flex-start;
      text-align:left;
    }
    .project-meta > div:first-child{max-width:calc(100% - 48px)}

    /* Fullscreen menu and vertical work index */
    .menu-overlay{
      position:absolute;inset:0;z-index:105;
      background:#050505;backdrop-filter:none;
      opacity:0;visibility:hidden;transition:none;
      display:grid;place-items:center;
    }
    .menu-overlay.open{opacity:1;visibility:visible}
    .menu-close{position:absolute;right:38px;top:28px;border:0;background:none;font-size:40px;line-height:1}
    .menu-inner{text-align:center}
    .menu-links{display:flex;flex-direction:column;gap:18px}
    .menu-links button{border:0;background:none;font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(52px,7vw,108px);line-height:.95;text-transform:uppercase;letter-spacing:.035em;opacity:.72;transition:.25s}
    .menu-links button:hover{opacity:1;transform:translateX(6px)}
    .menu-socials{display:flex;justify-content:center;gap:28px;margin-top:42px}
    .menu-socials a{width:32px;height:32px;display:grid;place-items:center;opacity:.9}
    .menu-socials svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
    .menu-saved{
      align-self:center;
      width:54px;height:54px;
      display:grid;place-items:center;
      margin-top:6px;
      border:1px solid rgba(255,255,255,.18);
      border-radius:50%;
      opacity:.88;
    }
    .menu-saved svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
    .menu-saved[hidden]{display:none}

    .work-index{
      position:absolute;inset:0;z-index:100;background:#070707;
      opacity:0;visibility:hidden;transition:none;
    }
    .work-index.open{opacity:1;visibility:visible}
    .work-index-close{position:absolute;right:38px;top:28px;z-index:4;border:0;background:none;font-size:40px;line-height:1}
    .work-index-label{position:absolute;left:42px;top:34px;z-index:4;font-family:Impact,"Arial Narrow",sans-serif;font-size:20px;letter-spacing:.13em;text-transform:uppercase}
    .work-index-list{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none}
    .work-index-list::-webkit-scrollbar{display:none}
    .work-index-item{height:100%;scroll-snap-align:center;display:grid;place-items:center;padding:86px 8vw 58px;border:0;background:none;width:100%;text-align:left}
    .work-index-item[hidden]{display:none}
    .work-index-card{position:relative;width:min(1120px,86vw);height:min(68vh,680px);overflow:hidden;border-radius:14px;background:#111}
    .work-index-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s var(--ease)}
    .work-index-item:hover img{transform:scale(1.025)}
    .work-index-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.9),transparent 55%)}
    .work-index-meta{position:absolute;left:34px;right:34px;bottom:30px;z-index:2;display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
    .work-index-title{font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(34px,5vw,74px);line-height:.95;text-transform:uppercase}
    .work-index-sub{margin-top:8px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.72)}
    .work-index-count{font-size:11px;letter-spacing:.18em;color:rgba(255,255,255,.7)}

    .scroll-indicator{gap:0}
    .scroll-indicator span{display:none}

    @media(max-width:900px){
      .menu-close,.work-index-close{right:22px;top:20px}
      .work-index-label{left:22px;top:28px}
      .work-index-item{padding:76px 18px 36px}
      .work-index-card{width:100%;height:64vh}
      .work-index-meta{left:20px;right:20px;bottom:20px}
    }

/* WordPress theme additions */
html.wp-toolbar body{margin-top:0!important}
body.admin-bar .app{height:calc(100vh - 32px)}
.project{color:inherit}
.menu-overlay a,.socials a{color:#fff}
.video-embed{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:1;background:#000}

:root{
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

@media(max-width:782px){
  #wpadminbar{display:none!important}
  html{margin-top:0!important}
  body.admin-bar .app{height:100dvh}
}

@media(max-width:700px){
  html,body{
    width:100%;height:100%;margin:0;
    background:#000;overflow:hidden;
    overscroll-behavior:none;
  }

  .app,.stage{
    width:100vw;height:100dvh;
    margin:0;padding:0;
    border:0;border-radius:0;
    background:#060606;
  }
  .stage{overflow:hidden}

  header{
    padding:calc(var(--safe-top) + 18px) 18px 0;
    min-height:80px;
    background:linear-gradient(180deg,rgba(0,0,0,.54),transparent);
  }
  .logo{font-size:31px}
  .intro{left:20px;right:20px;top:44%;max-width:none}
  .intro h1{font-size:clamp(56px,17vw,92px);line-height:.9}
  .roles{gap:8px;margin-top:20px;font-size:10px}
  .roles span:not(:last-child):after{margin-left:8px}
  .tags{font-size:12px;line-height:1.45}
  .showreel{margin-top:24px}
  .scroll-indicator{right:14px}

  .work-panel{
    height:50%;
    padding:18px 0 calc(var(--safe-bottom) + 18px) 20px;
    background:linear-gradient(180deg,transparent,rgba(6,6,6,.95) 16%,#060606);
  }
  .work-head{margin-bottom:13px;padding-right:20px}
  .projects{grid-auto-columns:74vw}
  .project{min-width:74vw;border:0;border-radius:12px;transform:none}

  /* Work/About remain bottom sheets */
  .work-index,.about{
    position:fixed;left:0;right:0;bottom:0;top:auto;
    width:100vw;height:92dvh;z-index:600;
    background:#080808;border-radius:24px 24px 0 0;
    overflow:hidden;opacity:1;visibility:visible;
    pointer-events:none;transform:translateY(104%);
    transition:transform .36s cubic-bezier(.18,.78,.2,1);
    box-shadow:0 -30px 90px rgba(0,0,0,.62);
  }
  .work-index.open,.about.open{transform:translateY(0);pointer-events:auto}
  .work-index:before,.about:before{
    content:"";position:absolute;left:50%;top:9px;transform:translateX(-50%);
    width:42px;height:4px;border-radius:999px;background:rgba(255,255,255,.34);z-index:20;
  }
  .work-index-close,.about-close{
    top:20px;right:18px;width:40px;height:40px;
    border-radius:50%;background:rgba(255,255,255,.08);
    font-size:30px;display:grid;place-items:center;z-index:30;
  }
  .work-index-label{left:20px;top:28px}
  .work-index-list{padding-top:66px;scroll-snap-type:y mandatory}
  .work-index-item{height:calc(92dvh - 66px);padding:14px 16px 24px;scroll-snap-align:start}
  .work-index-card{width:100%;height:100%;border-radius:16px}
  .work-index-meta{left:20px;right:20px;bottom:20px}
  .work-index-title{font-size:clamp(34px,11vw,58px)}
  .about{padding:74px 22px calc(var(--safe-bottom) + 30px);display:block;overflow-y:auto}
  .about-grid{display:block}
  .about h2{font-size:clamp(56px,16vw,92px);line-height:.88;margin:10vh 0 28px}

  .menu-overlay{
    position:fixed;inset:0;width:100vw;height:100dvh;
    z-index:700;background:#050505;
  }
  .menu-close{
    top:calc(var(--safe-top) + 15px);right:18px;
    width:42px;height:42px;border-radius:50%;
    background:rgba(255,255,255,.08);font-size:30px;
    display:grid;place-items:center;
  }
}

body.video-open{overflow:hidden}

.detail{
  position:fixed;
  inset:0;
  width:100vw;
  height:100dvh;
  z-index:1200;
  padding:0;
  border:0;
  border-radius:0;
  background:#000;
  overflow:hidden;
}
.detail.open{opacity:1;visibility:visible;pointer-events:auto}

.video-wide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
  border:0;
  border-radius:0;
}
.video-wide:after{display:none}

/* Ambient layer: visible only where the original aspect ratio leaves room. */
#detailImage{
  display:block;
  position:absolute;
  inset:-7%;
  width:114%;
  height:114%;
  object-fit:cover;
  transform:scale(1.03);
  z-index:0;
}
.video-wide:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

#detailVideo,#detailEmbed{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  border:0;
  z-index:3;
  background:transparent;
  object-position:center center;
}
#detailVideo[hidden],#detailEmbed[hidden]{display:none}

/* Default/embeds are treated as landscape until native metadata says otherwise. */
.detail.media-landscape #detailVideo,
.detail.media-landscape #detailEmbed,
.detail:not(.media-portrait):not(.media-square):not(.media-wide) #detailVideo,
.detail:not(.media-portrait):not(.media-square):not(.media-wide) #detailEmbed{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
}

/* Very wide, square and portrait films remain uncropped; ambient media fills the unused area. */
.detail.media-wide #detailVideo{
  width:100%;
  height:auto;
  max-width:100%;
  max-height:82%;
  object-fit:contain;
}
.detail.media-square #detailVideo,
.detail.media-portrait #detailVideo{
  width:auto;
  height:100%;
  max-width:74%;
  max-height:100%;
  object-fit:contain;
}

.mobile-video-topbar{
  position:absolute;
  top:calc(env(safe-area-inset-top,0px) + 24px);
  left:clamp(20px,3vw,46px);
  right:clamp(20px,3vw,46px);
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}
.mobile-video-topbar button{pointer-events:auto}
.mobile-icon-btn{
  width:44px;height:44px;padding:0;
  border-radius:999px;
  color:#fff;
  display:grid;place-items:center;
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
  backdrop-filter:blur(18px) saturate(1.2);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.mobile-icon-btn:active{transform:scale(.94)}
.mobile-icon-btn svg{stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}

.mobile-video-tap{position:absolute;inset:10% 8% 18%;z-index:12;border:0;padding:0;background:transparent;cursor:pointer;outline:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.mobile-video-tap:focus{outline:none}
.mobile-video-tap:focus-visible{outline:1px solid rgba(255,255,255,.3);outline-offset:-1px;border-radius:18px}
@media(hover:none),(pointer:coarse){.mobile-video-tap:focus-visible{outline:none}.mobile-video-tap:active{background:transparent}}
.mobile-video-tap.is-disabled{display:none}
.mobile-play-feedback{
  position:absolute;left:50%;top:50%;width:72px;height:72px;
  transform:translate(-50%,-50%) scale(.94);border-radius:50%;
  display:grid;place-items:center;color:#fff;opacity:0;z-index:31;pointer-events:none;
  border:1px solid rgba(255,255,255,.16);background:rgba(8,8,8,.42);
  -webkit-backdrop-filter:blur(16px) saturate(120%);backdrop-filter:blur(16px) saturate(120%);
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}
.mobile-play-feedback.show,.mobile-play-feedback.is-paused{opacity:1;transform:translate(-50%,-50%) scale(1)}
.mobile-play-feedback svg{width:30px;height:30px;display:block}

.mobile-video-ui{
  position:absolute;left:0;right:0;bottom:0;z-index:32;
  padding:112px clamp(24px,4vw,58px) calc(env(safe-area-inset-bottom,0px) + 24px);
  background:linear-gradient(to top,rgba(0,0,0,.86) 0%,rgba(0,0,0,.42) 43%,transparent 100%);
  pointer-events:none;
}
.mobile-video-content{display:block}
.mobile-video-meta,.mobile-video-actions,.mobile-progress-wrap{pointer-events:auto}
.mobile-video-title{margin:0 0 7px;font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(30px,3vw,48px);line-height:.95;letter-spacing:.025em;text-transform:uppercase;font-weight:400}
.mobile-video-sub{margin:0;color:rgba(255,255,255,.68);font-size:12px;line-height:1.45}
.mobile-video-credit{margin-top:8px;color:rgba(255,255,255,.46);font-size:10px;letter-spacing:.09em;text-transform:uppercase}

/* Navigation mirrors mobile: vertical transport stack on the right. */
.mobile-video-actions{
  position:absolute;
  right:clamp(24px,3vw,46px);
  bottom:76px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.mobile-progress-wrap{margin-top:17px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:12px;align-items:center;padding-right:72px}
.mobile-time{font-size:10px;color:rgba(255,255,255,.68);font-variant-numeric:tabular-nums}
.mobile-time:last-child{text-align:right}
.mobile-progress{appearance:none;-webkit-appearance:none;width:100%;height:20px;background:transparent;margin:0;cursor:pointer}
.mobile-progress::-webkit-slider-runnable-track{height:3px;border-radius:999px;background:linear-gradient(to right,#fff 0 var(--progress,0%),rgba(255,255,255,.26) var(--progress,0%) 100%);transition:none}
.mobile-progress::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;border-radius:50%;background:#fff;margin-top:-4px;transition:none}
.mobile-progress::-moz-range-track{height:3px;border-radius:999px;background:rgba(255,255,255,.26)}
.mobile-progress::-moz-range-progress{height:3px;border-radius:999px;background:#fff;transition:none}
.mobile-progress::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:#fff;transition:none}
.mobile-swipe-hint{display:none}

/* Desktop lives inside the same framed stage as the homepage. */
@media(min-width:701px){
  body.video-open{background:var(--bg)}
  body.video-open .stage{border-color:var(--line)}
  .detail{position:absolute;inset:0;width:100%;height:100%;border-radius:calc(var(--radius) - 1px)}
  .video-wide{border-radius:inherit}
  .mobile-video-topbar{top:22px;left:26px;right:26px}
  .mobile-video-ui{padding:116px 42px 22px}
  .mobile-video-meta{max-width:calc(100% - 118px)}
  .mobile-video-title{font-size:clamp(30px,2.55vw,45px)}
  .mobile-video-actions{right:26px;bottom:66px}
  .mobile-progress-wrap{padding-right:68px}

  /* Native landscape fills the frame — no black letterbox strips. */
  .detail.media-landscape #detailVideo{object-fit:cover}
}

/* Mobile keeps the current app-like behaviour: preserve every aspect ratio. */
@media(max-width:700px){
  .detail{position:fixed;inset:0;width:100vw;height:100dvh;border-radius:0}
  #detailVideo,#detailEmbed,
  .detail.media-landscape #detailVideo,.detail.media-wide #detailVideo,.detail.media-square #detailVideo,.detail.media-portrait #detailVideo{
    left:50%;top:46%;transform:translate(-50%,-50%);
    width:100vw;height:70dvh;max-width:100vw;max-height:70dvh;
    object-fit:contain;background:#000;
  }
  #detailEmbed{height:56.25vw;max-height:70dvh}
  #detailImage{inset:-9%;width:118%;height:118%}
  .mobile-video-topbar{top:calc(env(safe-area-inset-top,0px) + 12px);left:14px;right:14px}
  .mobile-icon-btn{width:42px;height:42px}.mobile-icon-btn svg{width:20px;height:20px}
  .mobile-video-tap{left:0;right:0;top:15%;bottom:25%}.mobile-play-feedback{top:46%}
  .mobile-video-ui{padding:86px 16px calc(env(safe-area-inset-bottom,0px) + 14px);background:linear-gradient(to top,rgba(0,0,0,.94) 0%,rgba(0,0,0,.60) 45%,transparent 100%)}
  .mobile-video-title{font-size:25px;margin-bottom:5px}.mobile-video-sub{font-size:11px}.mobile-video-credit{font-size:9px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-video-actions{right:16px;bottom:78px}
  .mobile-progress-wrap{margin-top:13px;grid-template-columns:34px 1fr 34px;gap:8px;padding-right:52px}
  .mobile-swipe-hint{display:block;position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 110px);transform:translateX(-50%);z-index:33;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.56);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .25s ease}
  .mobile-swipe-hint.show{opacity:1}
}

@media(max-width:700px) and (orientation:landscape){
  #detailVideo,#detailEmbed,.detail.media-landscape #detailVideo,.detail.media-wide #detailVideo,.detail.media-square #detailVideo,.detail.media-portrait #detailVideo{top:50%;width:82vw;height:88dvh;max-width:82vw;max-height:88dvh}
  #detailEmbed{height:46.125vw}.mobile-video-ui{padding-top:54px}.mobile-video-title{font-size:21px}.mobile-video-credit{display:none}
}

@media(display-mode:standalone){html,body,.app,.stage{background:#000}}

/* Give hover scale actual breathing room while keeping the first card aligned with WORK. */
.projects{
  gap:14px;
  padding:12px 12px 34px;
  margin-left:-12px;
  margin-right:-12px;
  scroll-padding-inline:12px;
}
.project{
  transform-origin:center center;
  transition:transform .24s var(--ease),box-shadow .24s var(--ease);
}
.project:hover{
  transform:scale(1.016);
  box-shadow:0 14px 32px rgba(0,0,0,.42);
}
.project:hover img{transform:scale(1.018)}
.project:first-child,.project:last-child{transform-origin:center center}

@media(max-width:700px){
  .projects{
    padding:8px 20px 14px;
    margin-left:-20px;
    margin-right:0;
    scroll-padding-inline:20px;
    gap:10px;
  }
  .project:hover{transform:none;box-shadow:none}

  /* True 9:16 on a phone is full-width, like a native reel — no narrow floating strip. */
  .detail.media-portrait #detailVideo{
    left:50%;
    top:50%;
    width:100vw;
    height:177.7777778vw;
    max-width:100vw;
    max-height:100dvh;
    transform:translate(-50%,-50%);
    object-fit:cover;
    object-position:center;
    background:#000;
    box-shadow:none;
  }
  /* Optional project override: deliberate reel-style 9:16 stage. */
  .detail.mobile-force-portrait #detailVideo,
  .detail.mobile-force-portrait #detailEmbed{
    left:50%;
    top:50%;
    width:100vw;
    height:177.7777778vw;
    max-width:100vw;
    max-height:100dvh;
    transform:translate(-50%,-50%);
    object-fit:cover;
    object-position:center;
    background:#000;
    box-shadow:none;
  }

  /* Optional project override: classic full-width 16:9 stage. */
  .detail.mobile-force-landscape #detailVideo,
  .detail.mobile-force-landscape #detailEmbed{
    left:50%;
    top:46%;
    width:100vw;
    height:56.25vw;
    max-width:100vw;
    max-height:70dvh;
    transform:translate(-50%,-50%);
    object-fit:cover;
    object-position:center;
    background:#000;
    box-shadow:none;
  }
}

.mobile-save.is-saved{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.3);
}
.mobile-save.is-saved svg{transform:scale(.94)}
.mobile-save:disabled{opacity:.32;cursor:default}
.work-index-empty{
  position:absolute;
  inset:0;
  z-index:3;
  display:grid;
  place-items:center;
  padding:100px 24px 40px;
  color:rgba(255,255,255,.58);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  pointer-events:none;
}
.work-index-empty[hidden]{display:none!important}

.icon-button,
.play-ring,
.mini-play,
.project-save-mark{
  color:#fff;
}
.icon-button svg,
.project-save-mark svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.play-ring svg,
.mini-play svg{
  display:block;
  width:79%;
  height:79%;
  fill:currentColor;
  stroke:none;
  transform:translateX(1px);
}

.detail-close,
.menu-close,
.work-index-close{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  background:rgba(8,8,8,.34);
  color:#fff;
  font-size:0;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.detail-close:hover,
.menu-close:hover,
.work-index-close:hover{
  background:rgba(255,255,255,.11);
  border-color:rgba(255,255,255,.24);
}
.detail-close:active,
.menu-close:active,
.work-index-close:active{transform:scale(.94)}

.project-save-mark{
  position:absolute;
  top:12px;
  right:12px;
  z-index:6;
  display:none;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:50%;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  pointer-events:none;
}
.project.is-saved .project-save-mark{display:grid}
.mobile-icon-btn{
  border:1px solid rgba(255,255,255,.15);
  background:rgba(8,8,8,.36);
  box-shadow:none;
}
.mobile-icon-btn:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.24)}
.mobile-icon-btn svg{width:19px;height:19px;stroke-width:1.7}

@media(max-width:700px){
  .detail-close,.menu-close,.work-index-close{width:40px;height:40px}
  .detail-close svg,.menu-close svg,.work-index-close svg{width:19px;height:19px}
}
.icon-button,
.mobile-icon-btn{
  background:rgba(8,8,8,.30);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
}
.icon-button:hover,
.mobile-icon-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.22)}
.icon-button svg,
.mobile-icon-btn svg{stroke-width:1.65}
.project-save-mark{
  width:30px;height:30px;
  background:rgba(7,7,7,.30);
  border-color:rgba(255,255,255,.12);
}
.project-save-mark svg{width:15px;height:15px;fill:currentColor;stroke:currentColor}
.project.is-saved:before{content:none;display:none}
@media(max-width:700px){
  .mobile-video-actions{gap:10px}
  .mobile-video-actions .mobile-icon-btn{
    border-radius:999px;
    background:rgba(5,5,5,.30);
    border-color:rgba(255,255,255,.10);
  }
  .mobile-video-actions .mobile-icon-btn svg{width:20px;height:20px}
  .mobile-back,.mobile-close{width:42px;height:42px;border-radius:999px}
  .mobile-play-feedback{
    width:58px;height:58px;border-radius:999px;
    background:rgba(5,5,5,.34);
    border-color:rgba(255,255,255,.12);
  }
}
#detailImage{filter:blur(46px) brightness(.28) saturate(.45);opacity:.82}
.video-wide:before{background:linear-gradient(90deg,rgba(0,0,0,.12),rgba(8,10,13,.30) 54%,rgba(8,10,13,.72) 100%)}
.mobile-video-actions{gap:12px}
.mobile-video-actions .mobile-icon-btn{
  width:46px;
  height:46px;
  border-radius:50%;
  background:rgba(26,29,34,.66);
}
.mobile-video-actions .mobile-icon-btn:hover{background:rgba(255,255,255,.15)}
.mobile-video-actions .mobile-icon-btn svg{width:21px;height:21px}
.detail-close{width:42px;height:42px;border-radius:50%}
.detail-close svg{width:20px;height:20px;stroke-width:1.8}

@media(min-width:701px){
  .detail.media-portrait #detailVideo{width:auto;height:100%;max-width:54%;max-height:100%;object-fit:contain}
  .detail.media-portrait .mobile-video-meta{max-width:52%}
}

@media(max-width:700px){
  .play-ring{width:46px;height:46px}
  .mini-play{width:36px;height:36px}
  .mobile-video-actions .mobile-icon-btn{width:44px;height:44px}
  #detailImage{filter:blur(36px) brightness(.24) saturate(.42);opacity:.76}
}

/* Project story reuses the existing About overlay component. */
.project-info-overlay{z-index:1300}
.project-info-copy{color:var(--muted);line-height:1.8}
.project-info-copy p:first-child{margin-top:0}
.project-info-copy h2,.project-info-copy h3,.project-info-copy h4{color:#fff;line-height:1.15;margin:1.4em 0 .55em}
.project-info-copy a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.mobile-info[hidden]{display:none}
.mobile-video-actions{z-index:45;pointer-events:auto}
.mobile-video-actions .mobile-icon-btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:700px){
  .project-info-overlay{padding-top:74px}
  .project-info-overlay .project-info-grid h2{margin-top:6vh}
}
