/* Hero v3: centred title, stage lighting, red-gloved hands opening the doors */

/* ---------- doors ---------- */
.hx-doors{position:absolute;inset:0;z-index:20;pointer-events:none;perspective:1700px;perspective-origin:50% 45%;overflow:hidden}
.hx-doors.gone{display:none}
.hx-seam{position:absolute;left:50%;top:0;bottom:0;width:2px;translate:-50% 0;z-index:1;
  background:linear-gradient(180deg,transparent,#fff6ee 18%,#ffe9ef 82%,transparent);box-shadow:0 0 22px 6px rgba(255,226,214,.65),0 0 90px 30px rgba(232,163,176,.25)}
.hx-leaf{position:absolute;top:0;bottom:0;width:50.4%;z-index:2;transform-style:preserve-3d;backface-visibility:hidden;overflow:hidden;
  background:
    radial-gradient(120% 70% at 50% 0%,rgba(255,255,255,.06),transparent 60%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 2px,transparent 2px 7px),
    linear-gradient(90deg,#0c1d12,#1a4227 46%,#123020 100%);
  box-shadow:inset 0 0 120px rgba(0,0,0,.55)}
.hx-leaf.l{left:0;transform-origin:0 50%}
.hx-leaf.r{right:0;transform-origin:100% 50%;background:
    radial-gradient(120% 70% at 50% 0%,rgba(255,255,255,.06),transparent 60%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.012) 0 2px,transparent 2px 7px),
    linear-gradient(270deg,#0c1d12,#1a4227 46%,#123020 100%)}
/* moulded panels */
.hx-leaf::before,.hx-leaf::after{content:"";position:absolute;left:14%;right:14%;border:1.5px solid rgba(233,207,160,.42);border-radius:4px;
  box-shadow:inset 0 0 0 7px rgba(0,0,0,.18),inset 0 0 0 8px rgba(233,207,160,.18),0 1px 0 rgba(255,255,255,.05)}
.hx-leaf::before{top:9%;height:44%}
.hx-leaf::after{top:58%;height:32%}
/* brass handle at the meeting edge */
.hx-pull{position:absolute;top:44%;width:12px;height:17%;border-radius:8px;z-index:3;
  background:linear-gradient(90deg,#6e5222,#f1d9a2 45%,#b8914e 60%,#5b421b);box-shadow:0 6px 14px rgba(0,0,0,.55),0 0 0 3px rgba(0,0,0,.12)}
.hx-leaf.l .hx-pull{right:5.5%}
.hx-leaf.r .hx-pull{left:5.5%}
/* the monogram split across both leaves */
.hx-crest{position:absolute;top:27%;width:clamp(120px,15vw,200px);aspect-ratio:1;border-radius:50%;z-index:3;
  background:radial-gradient(circle at 40% 32%,#4a1019,#2a070d 70%);box-shadow:inset 0 0 0 2px rgba(233,207,160,.55),inset 0 0 0 9px rgba(0,0,0,.25),0 10px 30px rgba(0,0,0,.5)}
.hx-crest i{position:absolute;inset:22%;background:linear-gradient(140deg,#fbe6ea,#e8a3b0 55%,#b86a78);-webkit-mask:var(--mono-cut) center/contain no-repeat;mask:var(--mono-cut) center/contain no-repeat;filter:drop-shadow(0 1px 0 rgba(255,255,255,.4))}
.hx-leaf.l .hx-crest{right:0;translate:50% 0}
.hx-leaf.r .hx-crest{left:0;translate:-50% 0}

/* ---------- gloves ---------- */
.hx-hand{position:absolute;bottom:0;width:clamp(150px,19vw,280px);aspect-ratio:240/430;z-index:6;pointer-events:none;filter:drop-shadow(0 30px 40px rgba(0,0,0,.55))}
.hx-hand svg{width:100%;height:100%;display:block;overflow:visible}
.hx-hand.r svg{transform:scaleX(-1)}
.hx-doors .hx-hand.l{left:calc(50% - clamp(150px,19vw,280px) - 2vw);transform-origin:50% 100%}
.hx-doors .hx-hand.r{left:calc(50% + 2vw);transform-origin:50% 100%}

/* ---------- intro choreography ---------- */
.hx-doors .hx-hand{transform:translateY(105%)}
.hx.intro .hx-seam{animation:hxSeam 3.6s ease both}
@keyframes hxSeam{0%{opacity:.2}30%{opacity:1}45%{opacity:.6}52%{opacity:1;width:2px}70%{width:40vw;opacity:.9}100%{width:80vw;opacity:0}}
.hx.intro .hx-hand.l{animation:hxHandInL 1.25s cubic-bezier(.2,.8,.25,1) .35s both,hxPushL 1.9s cubic-bezier(.55,0,.25,1) 1.7s forwards}
.hx.intro .hx-hand.r{animation:hxHandInR 1.25s cubic-bezier(.2,.8,.25,1) .5s both,hxPushR 1.9s cubic-bezier(.55,0,.25,1) 1.7s forwards}
@keyframes hxHandInL{from{transform:translateY(105%) rotate(-10deg)}to{transform:translateY(22%) rotate(4deg)}}
@keyframes hxHandInR{from{transform:translateY(105%) rotate(10deg)}to{transform:translateY(22%) rotate(-4deg)}}
@keyframes hxPushL{0%{transform:translateY(22%) rotate(4deg)}18%{transform:translateY(17%) rotate(4deg) scale(.97)}100%{transform:translate(-55vw,6%) rotate(-22deg) scale(.7);opacity:0}}
@keyframes hxPushR{0%{transform:translateY(22%) rotate(-4deg)}18%{transform:translateY(17%) rotate(-4deg) scale(.97)}100%{transform:translate(55vw,6%) rotate(22deg) scale(.7);opacity:0}}
.hx.intro .hx-leaf.l{animation:hxLeafL 2.3s cubic-bezier(.6,0,.18,1) 1.95s both}
.hx.intro .hx-leaf.r{animation:hxLeafR 2.3s cubic-bezier(.6,0,.18,1) 1.95s both}
@keyframes hxLeafL{0%{transform:rotateY(0)}8%{transform:rotateY(4deg)}70%{opacity:1}100%{transform:rotateY(100deg);filter:brightness(.35);opacity:0}}
@keyframes hxLeafR{0%{transform:rotateY(0)}8%{transform:rotateY(-4deg)}70%{opacity:1}100%{transform:rotateY(-100deg);filter:brightness(.35);opacity:0}}
.hx.intro .hx-bg{animation:hxCam3 5.6s cubic-bezier(.16,.8,.2,1) 1.9s both}
@keyframes hxCam3{0%{scale:1.22;filter:brightness(1.6) saturate(.6) blur(3px)}35%{filter:brightness(1.1) saturate(.9) blur(0)}100%{scale:1;filter:none}}

/* ---------- centred composition + stage lighting ---------- */
.hx .lq{place-items:stretch!important;padding-block:clamp(10px,2vw,24px) clamp(22px,3vw,40px)!important}
.hx .lq-l{justify-self:stretch!important;align-self:stretch!important;max-width:none!important;width:100%;text-align:center;display:grid}
.hx [data-s]{left:0;right:0;top:0;bottom:0}
.hx [data-s="1"],.hx [data-s="2"]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:calc(100svh - 190px);gap:24px}
.hx-top,.hx-bottom{display:flex;flex-direction:column;align-items:center}
.hx-top{padding-top:clamp(6px,2vh,26px)}
.hx .lq-h{font-size:clamp(40px,4.9vw,86px)!important;line-height:.94;text-align:center;transform-origin:50% 50%!important;margin:0}
.hx-kick{margin-bottom:14px!important}
.hx .hx-hint{margin-top:12px}
.hx [data-s="2"] .hx-bottom{max-width:640px}
.hx [data-s="2"] .lq-sub{text-align:center;font-size:clamp(17px,1.45vw,22px);max-width:36ch}
.hx [data-s="2"] .hx-top{visibility:hidden}
/* overhead light on the title */
.hx-halo{position:absolute;z-index:2;left:50%;top:-8%;width:min(1100px,130vw);height:62%;translate:-50% 0;pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(50% 55% at 50% 38%,rgba(255,236,226,.22),rgba(232,163,176,.08) 55%,transparent 75%);opacity:.9;animation:hxHalo 7s ease-in-out infinite alternate}
.hx-halo::before{content:"";position:absolute;left:50%;top:0;width:44%;height:100%;translate:-50% 0;clip-path:polygon(40% 0,60% 0,100% 100%,0 100%);
  background:linear-gradient(180deg,rgba(255,240,232,.2),rgba(255,230,222,.04) 70%,transparent);filter:blur(10px)}
@keyframes hxHalo{to{opacity:.6;scale:1.04}}
.hx[data-step="2"] .hx-halo{top:auto;bottom:-14%;opacity:.6;animation:none}
.hx[data-step="3"] .hx-halo,.hx.travel:not(.arrived) .hx-halo{opacity:0;transition:opacity .6s}
/* vignette that frames the centre instead of the left */
.hx-scrim{background:
  radial-gradient(75% 70% at 50% 46%,rgba(8,6,4,0) 35%,rgba(8,6,4,.6) 100%),
  linear-gradient(180deg,rgba(8,6,4,.72),rgba(8,6,4,.1) 30%,rgba(8,6,4,0) 55%,rgba(8,6,4,.55))!important}
/* the title lights up instead of rising */
.hx.intro .lq-h .c{animation:hxIgnite 1.6s cubic-bezier(.2,.7,.2,1) both!important;animation-delay:calc(3.05s + var(--i) * 34ms)!important}
@keyframes hxIgnite{0%{opacity:0;filter:blur(10px) brightness(.2);transform:translateY(18px) scale(.96)}40%{opacity:1;filter:blur(2px) brightness(2.2);text-shadow:0 0 30px rgba(255,220,230,.9)}100%{opacity:1;filter:none;transform:none}}
.hx.intro .hx-kick{animation-delay:2.7s!important}
.hx.intro [data-s="1"] .hx-go{animation-delay:4.6s!important}
.hx.intro [data-s="1"] .hx-hint{animation-delay:4.8s!important}
.hx.intro .head{animation-delay:4.2s!important}
.hx.intro .hx-door{animation-delay:5s!important}
.hx.intro .hx-door::after{animation-delay:5.1s!important}
.hx.intro .hx-skip{animation-delay:5.4s!important}
.hx.intro .hx-rays{animation:hxRaysIn 2.4s ease 3s both,hxRays 9s ease-in-out 5.4s infinite alternate!important}

/* ---------- the letter arrives in gloved hands ---------- */
.hx .lq-card>.hx-carry{position:absolute!important;inset:0;z-index:4!important;pointer-events:none}
.hx-carry .hx-hand{width:clamp(96px,10vw,140px);bottom:-34%;filter:drop-shadow(0 18px 24px rgba(0,0,0,.6));opacity:0}
.hx-carry .hx-hand.l{left:-6%;transform:rotate(18deg)}
.hx-carry .hx-hand.r{right:-6%;transform:rotate(-18deg)}
.hx[data-step="3"] .hx-carry .hx-hand{animation:hxCarry 3s cubic-bezier(.3,0,.2,1) .55s both}
.hx[data-step="3"] .hx-carry .hx-hand.r{animation-name:hxCarryR}
@keyframes hxCarry{0%{opacity:1}55%{opacity:1;transform:rotate(18deg)}70%{opacity:1;transform:rotate(12deg) translate(-10px,-6px)}100%{opacity:0;transform:rotate(30deg) translate(-60%,90%)}}
@keyframes hxCarryR{0%{opacity:1}55%{opacity:1;transform:rotate(-18deg)}70%{opacity:1;transform:rotate(-12deg) translate(10px,-6px)}100%{opacity:0;transform:rotate(-30deg) translate(60%,90%)}}

@media (max-width:860px){
  .hx [data-s="1"],.hx [data-s="2"]{min-height:calc(100svh - 230px)}
  .hx .lq-h{font-size:clamp(34px,9.6vw,56px)!important}
  .hx-doors .hx-hand{width:clamp(130px,34vw,200px)}
  .hx-doors .hx-hand.l{left:calc(50% - clamp(130px,34vw,200px) - 1vw)}
  .hx-doors .hx-hand.r{left:calc(50% + 1vw)}
  .hx-skip{bottom:10px}
}
@media (prefers-reduced-motion:reduce){.hx-doors{display:none}.hx-carry{display:none}.hx-halo{animation:none}}
.hx .lq-card{align-self:center!important;justify-self:center!important}
.hx-carry .hx-hand{bottom:-24%}
.hx[data-step="2"] .hx-scrim{background:
  radial-gradient(75% 70% at 50% 40%,rgba(8,6,4,0) 35%,rgba(8,6,4,.55) 100%),
  linear-gradient(180deg,rgba(8,6,4,.6),rgba(8,6,4,0) 22%,rgba(8,6,4,0) 50%,rgba(8,6,4,.88) 82%)!important}
.hx [data-s="2"] .lq-sub{text-shadow:0 2px 18px rgba(0,0,0,.9)}
