/* ================================================================
   BLACKTHORN UNIVERSITY — SPLASH / ENTRANCE
   Loads black → crest fades in, BLACK · crest · THORN,
   UNIVERSITY beneath, motto, "Click to Enter".
   ================================================================ */

.splash-body {
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* Optional cinematic background video (Zander's "video capability").
   Drop a file at assets/splash.mp4 and uncomment the <video> in index.html. */
.splash-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

/* Black vignette + faint gold aura behind the crest */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 45% at 50% 42%, rgba(201,168,76,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, #000 100%);
  pointer-events: none;
}

.splash-wrap {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── BLACK · crest · THORN row ── */
.splash-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-4), 3vw, var(--space-10));
  flex-wrap: nowrap;
}

.splash-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 5rem);
  letter-spacing: 0.14em;
  color: var(--color-gold);
  text-shadow: 0 2px 18px rgba(201,168,76,0.25);
  opacity: 0;
  white-space: nowrap;
}

.splash-word.left  { animation: splashSlideL 1s ease 0.5s forwards; }
.splash-word.right { animation: splashSlideR 1s ease 0.5s forwards; }

/* ── Crest ── */
.splash-crest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 18vw, 210px);
  height: clamp(120px, 18vw, 210px);
  flex-shrink: 0;
}

/* Gold ring fallback (shows even before crest.png is added) */
.splash-crest::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid var(--color-gold-dim);
  box-shadow: 0 0 40px rgba(201,168,76,0.15);
  opacity: 0;
  animation: splashFade 1.4s ease 0.1s forwards;
}

.splash-crest-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.8));
  opacity: 0;
  transform: scale(0.85);
  animation: splashCrest 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards;
}

/* ── UNIVERSITY ── */
.splash-university {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 4vw, 2rem);
  letter-spacing: clamp(0.3em, 2vw, 0.8em);
  text-indent: clamp(0.3em, 2vw, 0.8em); /* compensate trailing letter-spacing */
  color: var(--color-silver);
  margin-top: var(--space-5);
  opacity: 0;
  animation: splashFadeUp 1s ease 1.1s forwards;
}

.splash-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--color-gold-light);
  margin-top: var(--space-4);
  opacity: 0;
  animation: splashFadeUp 1s ease 1.4s forwards;
}

/* ── Enter button ── */
.splash-enter {
  margin-top: var(--space-10);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  background: transparent;
  border: 1px solid var(--color-border-gold);
  border-radius: 100px;
  padding: var(--space-3) var(--space-8);
  cursor: pointer;
  opacity: 0;
  animation: splashFadeUp 1s ease 1.8s forwards;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, letter-spacing 0.25s ease;
}

.splash-enter:hover {
  background: var(--color-gold);
  color: #0a0a0a;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(201,168,76,0.35);
  letter-spacing: 0.14em;
}

.splash-footer {
  position: fixed;
  bottom: var(--space-6);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-silver-dim);
  opacity: 0;
  animation: splashFade 1.2s ease 2.2s forwards;
}

/* ── Keyframes ── */
@keyframes splashCrest {
  to { opacity: 1; transform: scale(1); }
}
@keyframes splashFade {
  to { opacity: 1; }
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashSlideL {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes splashSlideR {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 540px) {
  .splash-logo-row { gap: var(--space-3); }
  .splash-word { font-size: clamp(1.4rem, 9vw, 2.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-word, .splash-crest-img, .splash-crest::before,
  .splash-university, .splash-motto, .splash-enter, .splash-footer {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
