.section-page{animation:section-arrive .42s ease-out both}
.section-page .section-wave{animation:section-rim 3.8s ease-in-out infinite alternate}
@keyframes section-arrive{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes section-rim{from{opacity:.32;filter:drop-shadow(0 0 5px #43e4dc60)}to{opacity:.72;filter:drop-shadow(0 0 12px #43e4dca0)}}
@media(prefers-reduced-motion:reduce){.section-page,.section-page .section-wave{animation:none}}

.home-rim-shadow,.home-suit-lights,.cursor-glow{display:none}

@media(any-hover:hover) and (any-pointer:fine){
  .cursor-glow{
    display:block;
    position:fixed;
    z-index:120;
    top:0;
    left:0;
    width:148px;
    height:148px;
    will-change:transform;
    background:radial-gradient(circle closest-side,#7dfff02b 0%,#43e4dc19 22%,#43e4dc0a 54%,transparent 100%);
    pointer-events:none;
  }
}

@media(prefers-reduced-motion:no-preference){
  .home-art-frame::before,.home-art-frame::after{content:''}
  .home-art-frame::before,.home-art-frame::after,.home-rim-shadow{
    position:absolute;
    z-index:1;
    opacity:0;
    animation:control-room-voltage 9.6s linear infinite;
  }
  .home-art-frame::before{
    inset:0;
    background:url('./assets/control-room-light-falloff.webp') center/100% 100% no-repeat;
    /* Strong local changes at the fixtures, soft falloff across the background and around the silhouette. */
    mask-image:radial-gradient(ellipse 2.7% 2.7% at 4% 51.1%,#000a,transparent),
      radial-gradient(ellipse 13.4% 28.7% at 17.35% 24.45%,transparent 98%,#000 115%),
      radial-gradient(ellipse 24.85% 43% at 13.76% 81.83%,transparent 98%,#000 115%),
      linear-gradient(#000 0 59%,transparent 74%),
      radial-gradient(ellipse 2.8% 16% at 33.6% 6.5%,#000e 20%,transparent),
      radial-gradient(ellipse 6% 9% at 1% 9%,#000d 16%,transparent),
      radial-gradient(ellipse 3.4% 3% at 3.4% 26.2%,#000a,transparent),
      radial-gradient(ellipse 6% 8% at 1% 31%,#000c 16%,transparent),
      linear-gradient(102deg,#0003,#0004 40%,#0002 100%);
    mask-composite:add,intersect,intersect,intersect,add,add,add,add;
  }
  @media(min-width:801px){
    .home-art-frame::after{
      /* The 1073 × 164 reflections tile covers the work surface and its front highlight. */
      inset:calc(100% * 708 / 941) 0 calc(100% * 69 / 941) calc(100% * 598 / 1671);
      background:url('./assets/control-room-table-falloff.webp') center/100% 100% no-repeat,
        linear-gradient(transparent,#07151916 26% 76%,transparent);
      mask-image:linear-gradient(90deg,transparent,#000 5%);
    }
  }
  .home-rim-shadow{
    display:block;
    inset:0 auto auto 0;
    width:calc(100% * 600 / 1671);
    height:calc(100% * 660 / 941);
    background:#10272d;
    mask:url('./assets/control-room-rim-mask.webp') center/100% 100% no-repeat;
  }

  /* Align the three lighting tiles with the cropped region of the 1671 × 941 artwork. */
  .home-suit-lights{
    display:block;
    position:absolute;
    z-index:2;
    inset:calc(100% * 430 / 941) auto 0 0;
    width:calc(100% * 592 / 1671);
    pointer-events:none;
    opacity:.025;
    animation:suit-light-pulse var(--home-suit-pulse-period) ease-in-out infinite;
  }
  .home-suit-lights>span{
    position:absolute;
    inset:0;
    background-image:url('./assets/control-room-suit-light.webp');
    background-size:100% 300%;
    background-repeat:no-repeat;
  }
  .home-suit-neck{background-position:center top}
  .home-suit-chest{background-position:center center}
  .home-suit-arms{background-position:center bottom}
}

@keyframes control-room-voltage{
  0%,12.4%,15.3%,32.5%,46%,62.7%,65.2%,76.7%,90%,100%{opacity:0}
  12.82%{opacity:.52}
  13.28%{opacity:.21}
  13.58%{opacity:.36}
  14.35%{opacity:.07}
  33.01%{opacity:.86}
  34.3%{opacity:.49}
  35%{opacity:.1}
  35.42%{opacity:.91}
  37.4%{opacity:.66}
  39.1%{opacity:.29}
  40.25%{opacity:.36}
  42.4%{opacity:.1}
  63.15%{opacity:.23}
  64.3%{opacity:.05}
  77.21%{opacity:.6}
  78.1%{opacity:.25}
  78.62%{opacity:.69}
  80.3%{opacity:.5}
  82.35%{opacity:.17}
  83.12%{opacity:.28}
  86.25%{opacity:.05}
}

@keyframes suit-light-pulse{
  0%,100%{opacity:.025}
  50%{opacity:1}
}
