/* GATE · HOLD THE CANDLE */
.gate { background: #050404 !important; overflow: hidden; cursor: url("/cursor-flame.png") 16 13, auto; cursor: -webkit-image-set(url("/cursor-flame.png") 1x, url("/cursor-flame@2x.png") 2x) 16 13, auto; }
.gate__prelude, .gate__title, .gate__sub, .gate__enter { position: relative; z-index: 5; }
.gate .gate__whisper, .gate .gate__foot { z-index: 6; }
/* text sits low so the candle can find her face above it */
.gate { justify-content: flex-end !important; padding-bottom: clamp(140px, 17vh, 200px); }
.gate__sub { margin-bottom: 40px !important; }
.gate__dark, .gate__reveal {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("images/killsy-hand-shade.png") center 30% / cover no-repeat, url("images/2BBE84CE-A47F-4788-A3EF-269444A8D6A2.png") center 30% / cover no-repeat;
}
.gate__dark { filter: brightness(0.07) contrast(1.2) saturate(0.4); }
.gate__reveal {
  z-index: 2;
  filter: brightness(0.95) contrast(1.12) saturate(0.85) sepia(0.28);
  -webkit-mask-image: radial-gradient(circle var(--gr, 180px) at var(--gx, 50%) var(--gy, 40%), #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.35) 62%, transparent 100%);
          mask-image: radial-gradient(circle var(--gr, 180px) at var(--gx, 50%) var(--gy, 40%), #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.35) 62%, transparent 100%);
}
.gate__glow {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle calc(var(--gr, 180px) * 1.15) at var(--gx, 50%) var(--gy, 40%), rgba(255,170,80,.22) 0%, rgba(240,140,60,.08) 40%, transparent 75%);
}
.gate__motes { position: absolute; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }
.gate__title .gl { display: inline-block; transition: color 420ms ease, text-shadow 420ms ease; }
.gate__title .gl.lit { color: #ffe3b0; text-shadow: 0 0 18px rgba(255,180,90,.75), 0 0 46px rgba(240,140,60,.35); }
.gate__prelude, .gate__sub, .gate__title { text-shadow: 0 0 22px rgba(5,4,4,.9), 0 0 6px rgba(5,4,4,.9); }
.gate.is-lit .gate__prelude, .gate.is-lit .gate__title, .gate.is-lit .gate__sub,
.gate.is-lit .gate__enter, .gate.is-lit .gate__whisper, .gate.is-lit .gate__foot, .gate.is-lit .gate__hint { opacity: 0; transition: opacity 380ms ease; }
.gate.is-lit .gate__reveal { transition: filter 1600ms ease; filter: brightness(0.42) contrast(1.1) saturate(0.7); }
.gate.is-lit .gate__glow { transition: opacity 1400ms ease; opacity: 0; }
.gate.is-open.is-lit { transition: opacity 1300ms ease 1100ms, visibility 0s linear 2400ms !important; }
.gate__hint { position: absolute; z-index: 6; left: 50%; top: 18%; transform: translateX(-50%);
  font-family: "Inter Tight", sans-serif; font-size: 10px; letter-spacing: .45em; text-transform: uppercase;
  color: rgba(240,196,122,.55); transition: opacity 900ms ease; white-space: nowrap; }
.gate__hint.gone { opacity: 0; }
@media (hover: none) { .gate { cursor: auto; } }

@media (max-width: 600px) { .gate__title { font-size: 34px !important; padding: 0 12px; } }

/* slide I's edge shading, faded in during the bloom so the tone matches too */
.gate__reveal::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1400ms ease;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.55) 100%);
}
.gate.is-lit .gate__reveal::after { opacity: 1; }
