/* =========================================================
   STORY
========================================================= */
.story{ padding: 90px 0 110px; }
.story__inner{ width:min(1120px, 92vw); margin:0 auto; }
.story__head{ margin-bottom: 40px; }
.story__eyebrow{ margin:0 0 10px; font-size:12px; letter-spacing:.22em; color: var(--muted2); }
.story__title{ margin:0 0 14px; font-size: 56px; letter-spacing:.06em; }
.story__lead{ margin:0; color: rgba(255,255,255,.78); line-height: 1.9; }

.storyBlock{
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items:center;
}
.storyBlock:first-of-type{ border-top: 1px solid rgba(255,255,255,.10); }
.storyBlock--reverse{ grid-template-columns: .95fr 1.05fr; }
.storyBlock--reverse .storyBlock__media{ order:2; }
.storyBlock--reverse .storyBlock__body{ order:1; }

@media (max-width: 900px){
  .storyBlock, .storyBlock--reverse{ grid-template-columns: 1fr; gap: 26px; }
  .storyBlock--reverse .storyBlock__media,
  .storyBlock--reverse .storyBlock__body{ order: initial; }
}

.storyBlock__media img{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.storyBlock__title{ margin:0 0 12px; font-size: 24px; letter-spacing:.06em; }
.storyBlock__text{ margin:0; color: rgba(255,255,255,.82); line-height: 2.0; }

.story__act--1{ color: var(--act-red); text-shadow: 0 0 14px rgba(120,30,30,.25); }




/* =========================================================
   SPOILER GATE
========================================================= */
.spoilerGate{
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.spoilerGate__head{
  margin-bottom: 16px;
}

.spoilerGate__label{
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(255,255,255,.52);
}

.spoilerGate__title{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: .04em;
}

.spoilerGate__hint{
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.85;
}

.spoilerGate__form{
  display: grid;
  gap: 10px;
}

.spoilerGate__labelText{
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
}

.spoilerGate__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.spoilerGate__input{
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.92);
  outline: none;
}

.spoilerGate__input::placeholder{
  color: rgba(255,255,255,.34);
}

.spoilerGate__input:focus{
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}

.spoilerGate__button{
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.spoilerGate__button:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.spoilerGate__note{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.48);
  line-height: 1.7;
}

.spoilerGate__error{
  margin: 0;
  color: #ff9d9d;
  line-height: 1.7;
}

.spoilerGate__body{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.spoilerGate__body .storyBlock__text{
  min-height: 14em;
}

.spoilerGate__flash{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 238, 190, .20),
      rgba(255, 212, 120, .10) 34%,
      transparent 68%);
  opacity: 0;
}

.spoilerGate__granted{
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-18deg) scale(.92);
  font-size: clamp(34px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: .18em;
  white-space: nowrap;
  opacity: 0;
  color: rgba(255, 232, 170, .20);
  text-shadow:
    0 0 10px rgba(255, 244, 210, .22),
    0 0 24px rgba(255, 215, 120, .20),
    0 0 54px rgba(210, 150, 40, .12);
  -webkit-text-stroke: 1px rgba(255, 236, 190, .10);
  filter: saturate(1.08);
  mix-blend-mode: screen;
}

.spoilerGate__head,
.spoilerGate__form,
.spoilerGate__body{
  position: relative;
  z-index: 2;
}

.spoilerGate.is-flashing .spoilerGate__flash{
  animation: spoilerUnlockFlash .3s ease-out forwards;
}

.spoilerGate.is-granted .spoilerGate__granted{
  animation: accessGrantedStamp .85s cubic-bezier(.2,.8,.2,1) forwards;
}

.spoilerGate.is-typing .spoilerGate__body .storyBlock__text::after{
  content: "";
  display: inline-block;
  width: .62em;
  height: 1.1em;
  margin-left: .18em;
  vertical-align: -0.14em;
  background: rgba(255,255,255,.88);
  animation: spoilerCaretBlink .9s steps(1, end) infinite;
}

@keyframes spoilerUnlockFlash{
  0%{ opacity: 0; }
  20%{ opacity: 1; }
  100%{ opacity: 0; }
}

@keyframes accessGrantedStamp{
  0%{
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-18deg) scale(.78);
    filter: blur(10px);
  }
  16%{
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-18deg) scale(1.04);
    filter: blur(0);
  }
  38%{
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-18deg) scale(.99);
  }
  72%{
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-18deg) scale(1);
  }
  100%{
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-18deg) scale(1.02);
    filter: blur(1px);
  }
}

@keyframes spoilerCaretBlink{
  0%,49%{ opacity: 1; }
  50%,100%{ opacity: 0; }
}

@media (max-width: 640px){
  .spoilerGate{
    padding: 16px;
  }

  .spoilerGate__row{
    grid-template-columns: 1fr;
  }

  .spoilerGate__button{
    width: 100%;
  }
}