/* ==========================================================================
   KHET // Overlay Copy & Scene Typography CSS
   TYPO3 Sitepackage: Resources/Public/Css/copy.css
   ========================================================================== */

/* Fullscreen Copy Layer (Overlays Canvas) */
.khet-copy {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: var(--khet-z-copy);
  pointer-events: none;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Scene Item Container
   Positioned precisely at ~38% from the top, horizontally centered
   -------------------------------------------------------------------------- */
.khet-scene {
  position: absolute;
  top: var(--khet-title-top);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: opacity 0.15s linear;
}

/* Hero Special Alignment */
.khet-scene--hero {
  opacity: 1; /* Initial state before JS or for instant load */
}

/* --------------------------------------------------------------------------
   Headings & Titles (Montserrat 700, Uppercase, Soft Text-Shadow)
   -------------------------------------------------------------------------- */
.khet-scene__title {
  font-family: var(--khet-font-title);
  font-weight: var(--khet-font-weight-title);
  font-size: var(--khet-font-size-title);
  letter-spacing: var(--khet-tracking-title);
  text-transform: uppercase;
  color: var(--khet-color-sand);
  line-height: 1.12;
  margin: 0;
  text-shadow: var(--khet-shadow-title);
}

/* Subtitle (Jost 400) */
.khet-scene__subtitle {
  font-family: var(--khet-font-subtitle);
  font-weight: var(--khet-font-weight-body);
  font-size: var(--khet-font-size-subtitle);
  letter-spacing: var(--khet-tracking-subtitle);
  color: var(--khet-color-sand);
  margin-top: 1.25rem;
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   Scene 6: Multi-line reveal styling
   Line 1: "SOME PLACES YOU VISIT."
   Line 2: "EGYPT STAYS WITH YOU."
   -------------------------------------------------------------------------- */
.khet-scene__title-group {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 1.5rem 2.5rem;
}

/* Luxury Ethereal Ambient Scrim behind typography */
.khet-scene:last-of-type .khet-scene__title-group::before {
  content: '';
  position: absolute;
  inset: -25% -35%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(8, 7, 6, 0.68) 0%,
    rgba(8, 7, 6, 0.38) 45%,
    rgba(8, 7, 6, 0) 78%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(14px);
  -webkit-filter: blur(14px);
}

.khet-scene__title-line {
  display: block;
  font-family: var(--khet-font-title);
  font-weight: var(--khet-font-weight-title);
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px #000;
}

.khet-scene__title-line--one {
  font-size: var(--khet-font-size-title);
  letter-spacing: var(--khet-tracking-title);
  color: var(--khet-color-sand);
}

.khet-scene__title-line--two {
  font-size: var(--khet-font-size-title-line2);
  letter-spacing: var(--khet-tracking-title);
  color: var(--khet-color-sand);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px #000;
  opacity: 0;
  will-change: opacity, transform, filter;
}

/* --------------------------------------------------------------------------
   Mobile Enhancements
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --khet-title-top: 36%;
  }

  .khet-scene {
    width: 94%;
  }

  .khet-scene__subtitle {
    margin-top: 0.85rem;
  }

  .khet-scene__title-group {
    gap: 0.5rem;
  }
}
