/* Home hero showreel card, shown in the wide-screen left gutter. */
.home-vfx-instrument{display:none}

@media(min-width:1600px) and (min-aspect-ratio:3/2){
  /* Keep the showreel and introduction as one spacious composition. */
  body.home-route .home-hero{
    --home-instrument-gutter:max(5.8vw,calc((100vw - 1240px)/2));
    --home-intro-left:max(388px,calc(var(--home-instrument-gutter) + 74px));
    min-height:clamp(480px,54dvh,620px);
    padding-inline:var(--home-instrument-gutter);
  }
  body.home-route .home-hero .hero-copy{
    margin-left:calc(var(--home-intro-left) - var(--home-instrument-gutter));
  }
  .home-vfx-instrument{
    position:absolute;
    z-index:3;
    top:50%;
    left:max(48px,calc(var(--home-instrument-gutter) - 266px));
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    width:275px;
    height:86%;
    max-height:460px;
    min-height:0;
    padding:16px;
    border:1px solid #526f88a8;
    background:linear-gradient(145deg,#0d2133e8,#07111dee 65%,#091522ef);
    box-shadow:inset 0 0 0 1px #142b3f9c,0 8px 30px #020b15a3;
    color:#dce8f1;
    font:8px/1.35 var(--mono);
    letter-spacing:.075em;
    text-decoration:none;
    isolation:isolate;
    overflow:hidden;
    transition:border-color .3s ease,box-shadow .3s ease;
  }
  .home-vfx-instrument:before,
  .home-vfx-instrument:after{content:"";position:absolute;z-index:3;width:20px;height:20px;pointer-events:none}
  .home-vfx-instrument:before{left:0;bottom:0;border-left:3px solid #348cf4;border-bottom:3px solid #348cf4;filter:drop-shadow(0 0 4px #348cf4) drop-shadow(0 0 9px #348cf4a8)}
  .home-vfx-instrument:after{right:0;top:0;border-right:2px solid #59b3ff;border-top:2px solid #59b3ff;filter:drop-shadow(0 0 4px #348cf4) drop-shadow(0 0 9px #348cf4a8)}
  .home-vfx-instrument:hover,
  .home-vfx-instrument:focus-visible{border-color:#69b7ff;box-shadow:inset 0 0 0 1px #2671ad,0 9px 33px #020b15bd,0 0 18px #348cf438}
  .home-vfx-instrument:focus-visible{outline:2px solid #8bc5ff;outline-offset:3px}
  .home-vfx-instrument-kicker{color:#56aaff;font-size:8px;white-space:nowrap}
  .home-vfx-instrument-title{margin-top:4px;color:#eff6fa;font-size:10px;font-weight:500;white-space:nowrap}
  .home-vfx-instrument-arrow{position:absolute;top:11px;right:13px;color:#b6d9f5;font:26px/1 var(--body);transition:transform .3s cubic-bezier(.16,1,.3,1),color .3s ease}
  .home-vfx-instrument:hover .home-vfx-instrument-arrow,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-arrow{transform:translate(4px,-4px);color:#fff}
  .home-vfx-instrument-preview{position:relative;display:block;flex:1 1 auto;min-height:0;margin:11px 0 9px;border:1px solid #243e53;background:#07111c;overflow:hidden}
  .home-vfx-instrument-preview img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 54%;filter:grayscale(1) contrast(1.2) brightness(.86);transition:transform .45s cubic-bezier(.16,1,.3,1),filter .35s ease}
  .home-vfx-instrument-preview:before{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:url('Media/Optimized/Projects/Portal%20FX/Square%20Cover/portal%20fx%20screenshots_1.1.1.png.webp') center 54%/auto 100% no-repeat;filter:hue-rotate(-55deg) saturate(2) brightness(1.12);mix-blend-mode:screen;opacity:.7;-webkit-mask-image:radial-gradient(ellipse 43% 32% at 50% 47%,#000 0 48%,transparent 100%);mask-image:radial-gradient(ellipse 43% 32% at 50% 47%,#000 0 48%,transparent 100%);transition:transform .45s cubic-bezier(.16,1,.3,1)}
  .home-vfx-instrument-preview:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0a1b2a16,#07111d66),linear-gradient(115deg,#6aa8da1d,transparent 65%);pointer-events:none}
  .home-vfx-instrument:hover .home-vfx-instrument-preview img,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-preview img{transform:scale(1.07);filter:grayscale(1) contrast(1.24) brightness(.98)}
  .home-vfx-instrument:hover .home-vfx-instrument-preview:before,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-preview:before{transform:scale(1.07)}
  .home-vfx-instrument-play{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:65px;height:65px;border:1px solid #59b3ff;border-radius:50%;background:radial-gradient(circle at 50% 38%,#102238,#030915 75%);box-shadow:0 0 0 5px #06121bbd,0 0 22px #348cf460,inset 0 0 12px #02070c;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease}
  .home-vfx-instrument-play:after{content:"";width:0;height:0;margin-left:4px;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:17px solid #f4f8fb}
  .home-vfx-instrument:hover .home-vfx-instrument-play,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-play{transform:translate(-50%,-50%) scale(1.11);box-shadow:0 0 0 6px #0b294591,0 0 28px #348cf496}
  .home-vfx-instrument-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:5px;color:#c6d7e4;font-size:9px;line-height:1.4}
  .home-vfx-instrument-meta strong{display:block;color:#f0f6fa;font-size:11px;letter-spacing:.09em}
  .home-vfx-instrument-duration{color:#afc2d1;font-size:10px;white-space:nowrap}
  .home-vfx-instrument-track{display:block;width:100%;height:10px;margin-top:7px;border-top:1px solid #4b718c;background:repeating-linear-gradient(90deg,#4aaaff 0 2px,transparent 2px 8px) left 4px/80px 4px no-repeat}
  .home-vfx-instrument-tags{margin-top:4px;color:#7898b1;font-size:7px;white-space:nowrap}
}

@media(prefers-reduced-motion:reduce){
  .home-vfx-instrument,
  .home-vfx-instrument-arrow,
  .home-vfx-instrument-preview img,
  .home-vfx-instrument-preview:before,
  .home-vfx-instrument-play{transition:none!important}
  .home-vfx-instrument:hover .home-vfx-instrument-arrow,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-arrow{transform:none}
  .home-vfx-instrument:hover .home-vfx-instrument-preview img,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-preview img{transform:none}
  .home-vfx-instrument:hover .home-vfx-instrument-preview:before,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-preview:before{transform:none}
  .home-vfx-instrument:hover .home-vfx-instrument-play,
  .home-vfx-instrument:focus-visible .home-vfx-instrument-play{transform:translate(-50%,-50%)}
}
