/* Halloween splash — Sentinel Command (seasonal: October 30 – November 1).
   LIVING rebuild (owner order 2026-10-31 18:50 CDT): the splash is a
   living page, animated from first paint INDEPENDENT of the video —
   a breathing black field, a pulsing moon glow, two drifting fog
   layers, twelve rising embers on baked paths, a slow sheen across
   the video card, and (when the video itself is not playing) the
   HAPPY HALLOWEEN greeting animating letter by letter BELOW the card,
   in clear space, never over the art or its name block. Inside the
   window the Night Watch video replaces the regular welcome splash;
   outside it the seasonal controller never builds this overlay.
   Palette stays inside the Command system (black field, soft white
   text, the estate green as an accent; warm amber lives only in the
   embers and the greeting, echoing the video art itself).
   All animation is transform/opacity only; no libraries, no external
   assets. prefers-reduced-motion stills every layer. */
.sentinel-halloween{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#060806;color:#d7e0d8;cursor:pointer;isolation:isolate;opacity:1;transition:opacity .45s ease;animation:halloweenFadeIn .3s ease both}
.sentinel-halloween.is-exiting{opacity:0;pointer-events:none}
.sentinel-halloween__stage{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;gap:16px;padding:16px}
.sentinel-halloween__video{display:block;width:auto;height:min(68vh,1100px);max-width:94vw;aspect-ratio:704/1424;background:#000;border-radius:10px}
.sentinel-halloween__skip{margin:0;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#d7e0d8;opacity:.72}
@keyframes halloweenFadeIn{from{opacity:0}to{opacity:1}}

/* ---- ambient living layers (aria-hidden, pointer-transparent) ---- */
.hw-base{position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(120% 90% at 50% 112%,rgba(0,230,118,.055),transparent 55%),radial-gradient(100% 70% at 50% -12%,rgba(170,200,255,.05),transparent 60%),#060806;animation:hwBreathe 9s ease-in-out infinite alternate}
@keyframes hwBreathe{from{opacity:.72}to{opacity:1}}
.hw-moon{position:absolute;z-index:1;pointer-events:none;top:-16vmin;left:50%;width:62vmin;height:62vmin;margin-left:-31vmin;border-radius:50%;background:radial-gradient(circle,rgba(205,225,255,.15) 0%,rgba(205,225,255,.05) 42%,transparent 68%);animation:hwMoonPulse 7s ease-in-out infinite alternate}
@keyframes hwMoonPulse{from{opacity:.5;transform:scale(1)}to{opacity:.88;transform:scale(1.045)}}
.hw-fog{position:absolute;z-index:1;pointer-events:none;left:-20%;width:140%;height:36%;filter:blur(12px);background:radial-gradient(ellipse at center,rgba(190,215,200,.075),transparent 65%)}
.hw-fog--a{bottom:-7%;animation:hwFogA 26s ease-in-out infinite alternate}
.hw-fog--b{bottom:6%;height:26%;opacity:.6;animation:hwFogB 38s ease-in-out infinite alternate}
@keyframes hwFogA{from{transform:translateX(-3.5%)}to{transform:translateX(3.5%)}}
@keyframes hwFogB{from{transform:translateX(3%)}to{transform:translateX(-3%)}}
.hw-embers{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.hw-ember{position:absolute;bottom:5%;border-radius:50%;background:radial-gradient(circle,rgba(255,205,130,.95) 0%,rgba(255,150,60,.55) 45%,transparent 72%);opacity:0;animation-timing-function:linear;animation-iteration-count:infinite}
.hw-ember:nth-child(1){left:6%;width:4px;height:4px;animation-name:hwEmberA;animation-duration:8.6s;animation-delay:-1.2s}
.hw-ember:nth-child(2){left:14%;width:3px;height:3px;animation-name:hwEmberB;animation-duration:7.4s;animation-delay:-4.6s}
.hw-ember:nth-child(3){left:23%;width:5px;height:5px;animation-name:hwEmberC;animation-duration:9.8s;animation-delay:-2.8s}
.hw-ember:nth-child(4){left:33%;width:3px;height:3px;animation-name:hwEmberD;animation-duration:6.8s;animation-delay:-5.9s}
.hw-ember:nth-child(5){left:44%;width:4px;height:4px;animation-name:hwEmberA;animation-duration:8.1s;animation-delay:-0.6s}
.hw-ember:nth-child(6){left:55%;width:6px;height:6px;animation-name:hwEmberB;animation-duration:10.4s;animation-delay:-7.3s}
.hw-ember:nth-child(7){left:63%;width:3px;height:3px;animation-name:hwEmberC;animation-duration:7.9s;animation-delay:-3.4s}
.hw-ember:nth-child(8){left:72%;width:4px;height:4px;animation-name:hwEmberD;animation-duration:9.2s;animation-delay:-6.1s}
.hw-ember:nth-child(9){left:81%;width:5px;height:5px;animation-name:hwEmberA;animation-duration:8.8s;animation-delay:-2.1s}
.hw-ember:nth-child(10){left:88%;width:3px;height:3px;animation-name:hwEmberB;animation-duration:7.1s;animation-delay:-5.2s}
.hw-ember:nth-child(11){left:94%;width:4px;height:4px;animation-name:hwEmberC;animation-duration:9.5s;animation-delay:-8.4s}
.hw-ember:nth-child(12){left:38%;width:3px;height:3px;animation-name:hwEmberD;animation-duration:8.3s;animation-delay:-4.1s}
@keyframes hwEmberA{0%{transform:translate3d(0,0,0);opacity:0}7%{opacity:.9}30%{transform:translate3d(9px,-16vh,0)}55%{transform:translate3d(-6px,-30vh,0);opacity:.75}80%{transform:translate3d(7px,-44vh,0)}100%{transform:translate3d(-3px,-54vh,0);opacity:0}}
@keyframes hwEmberB{0%{transform:translate3d(0,0,0);opacity:0}7%{opacity:.8}30%{transform:translate3d(-8px,-15vh,0)}55%{transform:translate3d(6px,-29vh,0);opacity:.7}80%{transform:translate3d(-7px,-42vh,0)}100%{transform:translate3d(3px,-52vh,0);opacity:0}}
@keyframes hwEmberC{0%{transform:translate3d(0,0,0);opacity:0}7%{opacity:.95}30%{transform:translate3d(5px,-17vh,0)}55%{transform:translate3d(-9px,-31vh,0);opacity:.8}80%{transform:translate3d(4px,-45vh,0)}100%{transform:translate3d(-5px,-56vh,0);opacity:0}}
@keyframes hwEmberD{0%{transform:translate3d(0,0,0);opacity:0}7%{opacity:.75}30%{transform:translate3d(-5px,-14vh,0)}55%{transform:translate3d(8px,-28vh,0);opacity:.65}80%{transform:translate3d(-4px,-41vh,0)}100%{transform:translate3d(5px,-50vh,0);opacity:0}}

/* ---- the video card: breathing ember glow + a slow sheen sweep ---- */
.hw-card{position:relative;border-radius:10px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 rgba(255,150,60,0);animation:hwCardGlow 6s ease-in-out infinite alternate}
.hw-card::after{content:"";position:absolute;inset:0;border-radius:10px;pointer-events:none;background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.055) 50%,transparent 58%);background-size:250% 100%;background-position:120% 0;animation:hwSheen 7.5s ease-in-out infinite}
@keyframes hwCardGlow{from{box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 rgba(255,150,60,0)}to{box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 44px rgba(255,150,60,.12)}}
@keyframes hwSheen{0%{background-position:120% 0}22%{background-position:-20% 0}100%{background-position:-20% 0}}

/* ---- the DOM greeting (fallback layer; clear space below the card) ---- */
.hw-greet{margin:2px 0 0;min-height:1.5em;font-family:Georgia,'Times New Roman',serif;font-size:clamp(17px,2.6vh,24px);font-weight:600;letter-spacing:.34em;text-indent:.34em;color:#ffc98a;text-align:center;visibility:hidden}
.hw-greet.is-on{visibility:visible;animation:hwGreetGlow 3.4s ease-in-out 2.6s infinite alternate}
.hw-greet__ch{display:inline-block;opacity:0}
.hw-greet.is-on .hw-greet__ch{animation:hwGreetIn .95s cubic-bezier(.22,.61,.21,1) both}
.hw-greet__sp{display:inline-block;width:.38em}
.hw-greet.is-on .hw-greet__ch:nth-child(1){animation-delay:0s}
.hw-greet.is-on .hw-greet__ch:nth-child(2){animation-delay:.088s}
.hw-greet.is-on .hw-greet__ch:nth-child(3){animation-delay:.176s}
.hw-greet.is-on .hw-greet__ch:nth-child(4){animation-delay:.264s}
.hw-greet.is-on .hw-greet__ch:nth-child(5){animation-delay:.352s}
.hw-greet.is-on .hw-greet__ch:nth-child(6){animation-delay:.44s}
.hw-greet.is-on .hw-greet__ch:nth-child(7){animation-delay:.528s}
.hw-greet.is-on .hw-greet__ch:nth-child(8){animation-delay:.616s}
.hw-greet.is-on .hw-greet__ch:nth-child(9){animation-delay:.704s}
.hw-greet.is-on .hw-greet__ch:nth-child(10){animation-delay:.792s}
.hw-greet.is-on .hw-greet__ch:nth-child(11){animation-delay:.88s}
.hw-greet.is-on .hw-greet__ch:nth-child(12){animation-delay:.968s}
.hw-greet.is-on .hw-greet__ch:nth-child(13){animation-delay:1.056s}
.hw-greet.is-on .hw-greet__ch:nth-child(14){animation-delay:1.144s}
.hw-greet.is-on .hw-greet__ch:nth-child(15){animation-delay:1.232s}
@keyframes hwGreetIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes hwGreetGlow{from{text-shadow:0 0 6px rgba(255,150,60,.25)}to{text-shadow:0 0 16px rgba(255,150,60,.55)}}
.hw-greet--still .hw-greet__ch{opacity:1;animation:none!important}
.hw-greet--still{animation:none!important}

@media (max-height:560px){
  .sentinel-halloween__video{height:min(58vh,1100px)}
}
@media (prefers-reduced-motion: reduce){
  .sentinel-halloween{animation:none}
  .hw-base,.hw-moon,.hw-fog,.hw-card,.hw-card::after,.hw-greet,.hw-greet__ch{animation:none!important}
  .hw-embers{display:none}
  .hw-greet{visibility:visible}
  .hw-greet__ch{opacity:1}
}
