/* ══════════════════════════════════════════════
   AEA CLUB — SITE INTRO OVERLAY CSS
   Full-screen 3D cinematic intro
   ══════════════════════════════════════════════ */

#site-intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #07080a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.76, 0, 0.24, 1),
              transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
#site-intro.intro-exit {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
#site-intro.intro-done {
  display: none;
}

/* Three.js canvas */
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Intro content */
.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  pointer-events: none;
}

/* AEA logo mark */
.intro-mark {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.intro-mark i {
  display: block;
  width: 7px;
  border-radius: 2px;
  background: #c94b2b;
  transform-origin: bottom;
  animation: intro-bar-rise 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}
.intro-mark i:nth-child(1) { height: 28px; animation-delay: 0.1s; }
.intro-mark i:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.intro-mark i:nth-child(3) { height: 28px; animation-delay: 0.3s; }
@keyframes intro-bar-rise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.intro-mark.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Full club name */
.intro-fullname {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.6rem, 1.8vw, 0.78rem);
  letter-spacing: 0.18em;
  color: rgba(238,233,223,0.45);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s;
  margin-bottom: -8px;
}
.intro-mark.visible ~ .intro-fullname,
.intro-fullname.visible { opacity: 1; transform: translateY(0); }

/* AEA wordmark */
.intro-wordmark {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #eee9df;
  line-height: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.3s;
  clip-path: inset(0 0 0 0);
}
.intro-wordmark span {
  color: #c94b2b;
  font-style: italic;
}
.intro-wordmark.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tagline */
.intro-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  letter-spacing: 0.22em;
  color: rgba(238,233,223,0.4);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}
.intro-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading bar */
.intro-loader {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: intro-fadein 0.4s ease 0.5s both;
}
@keyframes intro-fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.intro-loader-track {
  width: 120px;
  height: 1px;
  background: rgba(238,233,223,0.1);
  border-radius: 1px;
  overflow: hidden;
}
.intro-loader-fill {
  height: 100%;
  width: 0%;
  background: #c94b2b;
  border-radius: 1px;
  transition: width 0.1s linear;
}
.intro-loader-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(238,233,223,0.25);
}

/* Skip button */
.intro-skip {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(238,233,223,0.2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  pointer-events: auto;
  opacity: 0;
  animation: intro-fadein 0.4s ease 1s both;
}
.intro-skip:hover { color: rgba(238,233,223,0.6); }

/* Scan line overlay */
.intro-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Grid overlay */
.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,75,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,75,43,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: intro-fadein 1s ease 0.2s both;
}

/* Corner brackets */
.intro-corners {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 2;
}
.intro-corners::before,
.intro-corners::after,
.intro-corner-br,
.intro-corner-bl {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
}
.intro-corners::before {
  top: 0; left: 0;
  border-top: 1.5px solid rgba(201,75,43,0.5);
  border-left: 1.5px solid rgba(201,75,43,0.5);
  opacity: 0;
  animation: intro-fadein 0.5s ease 0.4s both;
}
.intro-corners::after {
  top: 0; right: 0;
  border-top: 1.5px solid rgba(201,75,43,0.5);
  border-right: 1.5px solid rgba(201,75,43,0.5);
  opacity: 0;
  animation: intro-fadein 0.5s ease 0.5s both;
}
.intro-corner-br {
  bottom: 0; right: 0;
  border-bottom: 1.5px solid rgba(201,75,43,0.5);
  border-right: 1.5px solid rgba(201,75,43,0.5);
  opacity: 0;
  animation: intro-fadein 0.5s ease 0.6s both;
}
.intro-corner-bl {
  bottom: 0; left: 0;
  border-bottom: 1.5px solid rgba(201,75,43,0.5);
  border-left: 1.5px solid rgba(201,75,43,0.5);
  opacity: 0;
  animation: intro-fadein 0.5s ease 0.7s both;
}
