/* Opening screen: shown once per browser session, then rolls up like a garage door. */
html.intro-active, html.intro-active body { overflow: hidden; }
html.intro-active body > :not(.intro) { visibility: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: #050505; color: #f3f0ed; font-family: "DM Sans", Arial, sans-serif; cursor: pointer;
  transition: transform 1.1s cubic-bezier(.75, 0, .2, 1) .3s;
}
.intro::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, #0a0a0a 0 36px, #161616 37px, #060606 41px);
  opacity: 0; animation: intro-fade .9s ease .1s forwards;
}
.intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, #000 85%);
}
.intro-glow {
  position: absolute; z-index: 1; width: 80vmin; height: 80vmin; border-radius: 50%;
  background: radial-gradient(circle, #df202c66 0, #df202c22 40%, transparent 68%);
  filter: blur(24px); opacity: 0; transform: scale(.6);
  animation: intro-glow 1.8s ease .9s forwards, intro-breathe 2.8s ease-in-out 2.7s infinite alternate;
}
.intro-scan {
  position: absolute; z-index: 1; left: 0; right: 0; top: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, #df202c 20%, #ff9b8c 50%, #df202c 80%, transparent);
  box-shadow: 0 0 26px 4px #df202c88; transform: scaleX(0); opacity: 1;
  animation: intro-scan .9s cubic-bezier(.7, 0, .2, 1) .15s forwards, intro-out .5s ease 1.15s forwards;
}
.intro-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 20px; padding: 24px; text-align: center; transition: opacity .4s ease, transform .5s ease; }
.intro-logo-wrap { opacity: 0; animation: intro-flicker 1.3s linear .75s forwards; }
.intro-logo {
  display: block; width: min(440px, 74vw); height: auto;
  transform: scale(1.22); filter: blur(14px);
  animation: intro-logo 1.4s cubic-bezier(.2, .75, .2, 1) .75s forwards;
}
.intro-tagline {
  margin: 0; color: #bdbab7; font-size: 11px; font-weight: 700; letter-spacing: 1.1em; text-transform: uppercase;
  opacity: 0; animation: intro-tagline 1.1s ease 1.8s forwards;
}
.intro-bar { width: min(280px, 62vw); height: 2px; overflow: hidden; background: #232323; opacity: 0; animation: intro-fade .3s ease 2s forwards; }
.intro-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a9141e, #df202c, #ff6a5a); box-shadow: 0 0 12px #df202c; transform: scaleX(0); transform-origin: left; animation: intro-load 1.2s cubic-bezier(.6, 0, .2, 1) 2.1s forwards; }
.intro-actions { display: grid; justify-items: center; gap: 12px; opacity: 0; transform: translateY(12px); animation: intro-actions .6s ease 3.2s forwards; }
.intro-enter {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 36px;
  border: 1px solid #df202c; background: #df202c; color: #fff; cursor: pointer;
  font: 700 12px/1 "DM Sans", Arial, sans-serif; letter-spacing: .24em; text-transform: uppercase;
  animation: intro-pulse 1.9s ease-out 3.8s infinite; transition: background .2s, transform .2s;
}
.intro-enter:hover { background: #a9141e; transform: translateY(-1px); }
.intro-enter:focus-visible, .intro-silent:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.intro-silent { border: 0; padding: 4px; background: none; color: #8a8785; cursor: pointer; font: 600 10px/1 "DM Sans", Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.intro-silent:hover { color: #fff; }
.intro-corner { position: absolute; z-index: 2; color: #5a5754; font-size: 9px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: 0; animation: intro-fade .6s ease 1.6s forwards; }
.intro-corner.top { top: 26px; left: 28px; }
.intro-corner.bottom { right: 28px; bottom: 34px; }
.intro-stripe { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(135deg, #e7c566 0 14px, #111 14px 28px); opacity: 0; animation: intro-stripe .6s ease 1.4s forwards; }

/* Exit: content punches forward, then the whole screen rolls up like the shutter. */
.intro.is-leaving { transform: translateY(-102%); pointer-events: none; }
.intro.is-leaving .intro-center { opacity: 0; transform: scale(1.08); }
.intro.is-leaving .intro-logo-wrap { animation: intro-rev .3s linear; opacity: 1; }

@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; } }
@keyframes intro-scan { to { transform: scaleX(1); } }
@keyframes intro-glow { to { opacity: 1; transform: scale(1); } }
@keyframes intro-breathe { from { opacity: .65; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes intro-logo { to { transform: scale(1); filter: blur(0) drop-shadow(0 0 22px #df202c77); } }
@keyframes intro-flicker {
  0% { opacity: 0; } 6% { opacity: 1; } 10% { opacity: .15; } 16% { opacity: .9; } 21% { opacity: .3; }
  28% { opacity: 1; } 33% { opacity: .55; } 40%, 100% { opacity: 1; }
}
@keyframes intro-tagline { to { opacity: 1; letter-spacing: .42em; } }
@keyframes intro-load { to { transform: scaleX(1); } }
@keyframes intro-actions { to { opacity: 1; transform: translateY(0); } }
@keyframes intro-stripe { to { opacity: .7; } }
@keyframes intro-pulse { 0% { box-shadow: 0 0 0 0 #df202caa; } 70%, 100% { box-shadow: 0 0 0 18px #df202c00; } }
@keyframes intro-rev { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-2px, -1px); } }

@media (max-width: 650px) {
  .intro-tagline { font-size: 9px; }
  .intro-corner.top { top: 18px; left: 18px; }
  .intro-corner.bottom { right: 18px; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .intro *, .intro::before { animation-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .intro { transition-duration: .3s; transition-delay: 0s; }
}
