/*
==========================================================
 SENTRASKY
 Intro / Preloader
 Version: 1.1.0
==========================================================
*/

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--bg);
  overflow: hidden;

  animation: introFadeOut 0.8s ease forwards;
  animation-delay: 8.5s;
}

.intro-inner {
  width: min(1100px, 92vw);

  display: flex;
  justify-content: center;
}

.intro-stage {
  position: relative;

  width: 980px;
  height: 560px;
}


/*
==========================================================
 INTRO LOGO
==========================================================
*/

.intro-logo {
  position: absolute;
  top: 38px;
  left: 0;

  display: flex;
  align-items: baseline;

  color: var(--text);

  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
}

.intro-sentra-group {
  display: grid;
  grid-template-columns: repeat(6, auto);

  column-gap: 0.22em;

  color: var(--accent);

  opacity: 0;

  animation: sentraFadeIn 2.4s ease forwards;
}

.intro-letter-block {
  position: relative;
}

.intro-letter-main {
  line-height: 1;
}

.intro-logo-sky {
  color: var(--text);

  opacity: 0;

  animation: skyFlashIn 0.9s ease forwards;
  animation-delay: 4.7s;
}


/*
==========================================================
 MEANING LINES
==========================================================
*/

.intro-meaning-lines {
  position: absolute;
  top: 145px;
  left: 0;

  width: 920px;
  height: 330px;

  opacity: 0;

  animation: meaningLinesIn 0.2s ease forwards;
  animation-delay: 2.45s;
}

.intro-meaning-row {
  position: absolute;
  top: 0;

  display: flex;
  align-items: flex-end;
}


/*
==========================================================
 STARTPOSITIONS UNTER SENTRA
==========================================================
*/

.intro-meaning-row:nth-child(1) {
  left: 68px;
}

.intro-meaning-row:nth-child(2) {
  left: 168px;
}

.intro-meaning-row:nth-child(3) {
  left: 268px;
}

.intro-meaning-row:nth-child(4) {
  left: 368px;
}

.intro-meaning-row:nth-child(5) {
  left: 468px;
}

.intro-meaning-row:nth-child(6) {
  left: 568px;
}


/*
==========================================================
 LINE BASE
==========================================================
*/

.intro-line {
  position: relative;

  margin-right: 18px;

  overflow: visible;
}

.intro-line svg {
  display: none;
}


/*
==========================================================
 LINIENLÄNGEN UND HÖHEN
==========================================================
*/

.intro-meaning-row:nth-child(1) .intro-line {
  width: 652px;
  height: 285px;
}

.intro-meaning-row:nth-child(2) .intro-line {
  width: 552px;
  height: 243px;
}

.intro-meaning-row:nth-child(3) .intro-line {
  width: 452px;
  height: 201px;
}

.intro-meaning-row:nth-child(4) .intro-line {
  width: 352px;
  height: 159px;
}

.intro-meaning-row:nth-child(5) .intro-line {
  width: 252px;
  height: 117px;
}

.intro-meaning-row:nth-child(6) .intro-line {
  width: 152px;
  height: 75px;
}


/*
==========================================================
 GEZEICHNETE LINIEN
==========================================================
*/

.intro-line::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  border-left: 1.4px solid var(--accent);
  border-bottom: 1.4px solid var(--accent);
  border-bottom-left-radius: 12px;

  filter:
    drop-shadow(0 0 5px rgba(7, 176, 213, 0.35));

  clip-path: inset(0 100% 0 0);

  animation: drawIntroCornerLine 1.15s ease forwards;
  animation-delay: 2.55s;
}


/*
==========================================================
 LASER POINT
==========================================================
*/

.intro-laser-dot {
  position: absolute;

  right: -2px;
  bottom: -2px;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--accent);

  opacity: 0;

  box-shadow:
    0 0 8px rgba(7, 176, 213, 0.55),
    0 0 18px rgba(7, 176, 213, 0.25);

  animation: laserDotIn 0.35s ease forwards;
  animation-delay: 3.5s;
}


/*
==========================================================
 MEANING WORDS
==========================================================
*/

.intro-word {
  position: relative;
  top: 5px;

  min-width: 160px;

  color: var(--text);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;

  opacity: 0;

  transform: translateX(-8px);

  animation: introWordIn 0.55s ease forwards;
  animation-delay: 3.55s;
}


/*
==========================================================
 SLOGAN
==========================================================
*/

.intro-slogan {
  position: absolute;
  left: 0;
  bottom: 18px;

  width: 100%;

  color: var(--text);

font-size: clamp(1.3rem, 2.5vw, 1.8rem);
font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: center;

  opacity: 0;
  filter: blur(10px);

  transform: translateY(14px);

  animation: introSloganIn 3s ease forwards;
  animation-delay: 5.7s;
}


/*
==========================================================
 FLASH EFFECT
==========================================================
*/

.intro-flash {
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at center,
      rgba(7, 176, 213, 0.14),
      transparent 38%
    );

  opacity: 0;

  animation: introSoftFlash 0.65s ease forwards;
  animation-delay: 4.75s;
}


/*
==========================================================
 ANIMATIONS
==========================================================
*/

@keyframes sentraFadeIn {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: scale(0.96);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes meaningLinesIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes drawIntroCornerLine {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes laserDotIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introWordIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes skyFlashIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-6px);
  }

  45% {
    opacity: 1;
    filter: blur(0);

    text-shadow:
      0 0 24px rgba(255, 255, 255, 0.3),
      0 0 34px rgba(7, 176, 213, 0.22);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);

    text-shadow: none;
  }
}

@keyframes introSloganIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes introSoftFlash {
  0% {
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes introFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}


/*
==========================================================
 RESPONSIVE
==========================================================
*/

@media (max-width: 980px) {

  .intro-stage {
    transform: scale(0.82);
    transform-origin: center;
  }

}

@media (max-width: 760px) {

  .intro-stage {
    transform: scale(0.66);
  }

}

@media (max-width: 520px) {

  .intro-stage {
    transform: scale(0.48);
  }

}