/* background video layer must be behind */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none; /* ensures it never blocks clicks */
}

.bgVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bgOverlay {
  position: absolute;
  inset: 0;
  z-index: 1; /* overlay sits ABOVE the video, but still behind the page */
}

/* (optional safety) if any section sets its own background */
.encryptSection {
  position: relative;
  z-index: 10;
}

.encryptSection {
  padding: 72px 0 86px;
  color: #fff;
}

.encryptWrap {
  width: 90vw;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* shared gradient (same for both headings) */
:root {
  --kana-grad: linear-gradient(90deg, #8a2be2, #23d2ff, #ffe46a);
}

/* Top header */
.encryptHeader {
  margin-bottom: 22px;
}

.encryptTitle {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 1.02;

  background: var(--kana-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.encryptSub {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 18px);
  font-style: italic;
  opacity: 0.9;
}

/* Image frame like your screenshot */
.encryptMedia {
  margin: 26px 0 28px;
}

.encryptImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  object-fit: cover; /* keeps the “cinematic” crop */
  aspect-ratio: 16 / 9; /* matches 2561x1440 feel */
}

/* Body heading */
.encryptHeading {
  margin: 10px 0 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: clamp(18px, 2vw, 28px);

  background: var(--kana-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Text block */
.encryptText {
  width: min(820px, 92%);
  margin: 0 auto;
}

.encryptText p {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.8;
  opacity: 0.92;
}

/* ============================
  REVEAL (fade) + POP (headings)
============================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* heading word-by-word pop */
.js-pop-heading .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 0.55s ease;
}

.js-pop-heading.in .w {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* spacing between word spans */
.js-pop-heading .w + .w {
  margin-left: 0.22em;
}

/* Mobile tighten */
@media (max-width: 680px) {
  .encryptSection {
    padding: 56px 0 70px;
  }
  .encryptMedia {
    margin: 18px 0 22px;
  }
  .encryptFrame {
    padding: 8px;
    border-radius: 24px;
  }
  .encryptImg {
    border-radius: 18px;
  }
  .encryptHeading {
    letter-spacing: 0.09em;
  }
}
