/* ============================================================
   DPSTUDIO - Opening animation (homepage), see js/intro.js
   Hidden unless the inline <head> script adds "dps-intro" to <html>.
   ============================================================ */

.intro {
  display: none;
}

html.dps-intro,
html.dps-intro body {
  overflow: hidden;
}

html.dps-intro .intro {
  display: block;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 45%, #1A1F4A 0%, #0F1230 55%, #090B20 100%);
  touch-action: none;
}

.intro.is-leaving {
  pointer-events: none;
}

.intro__particles,
.intro__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro__skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-width: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 18, 48, 0.55);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: intro-skip-in 0.6s ease 1.2s forwards;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.intro__skip:hover,
.intro__skip:focus-visible {
  color: #FFFFFF;
  border-color: #F5A524;
  outline: none;
}

@keyframes intro-skip-in {
  to { opacity: 1; }
}

/* Double click / double tap on the logo (the big one and the one in the bar) plays the animation again. */
.hero__logo-img,
.nav__logo-img {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* The welcome screen before the first opening: one click starts the animation and its jingle together.
   Set in Red Hat Mono SemiBold, the typeface of "studio" in the logo, with its amber cursor blinking. */
@font-face {
  font-family: 'Red Hat Mono';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('../fonts/red-hat-mono-600-latin.woff2') format('woff2');
}

.intro.is-waiting .intro__skip {
  display: none;
}

.intro__welcome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Red Hat Mono', ui-monospace, monospace;
  font-weight: 600;
  cursor: pointer;
}

.intro__welcome-title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1;
}

.intro__welcome-cta {
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  color: #A9B0D6;
  display: inline-flex;
  align-items: baseline;
}

.intro__welcome-cursor {
  display: inline-block;
  width: 0.62em;
  height: 0.14em;
  margin-left: 0.12em;
  background: #F5A524;
  animation: intro-welcome-blink 1.1s steps(1) infinite;
}

.intro__welcome:focus-visible {
  outline: none;
}

@keyframes intro-welcome-blink {
  0%, 55% { opacity: 1; }
  55.01%, 100% { opacity: 0; }
}
