/* The front door's StratLab mark and the BC door (index.html, bc/index.html).

   The animation is the Lab's opening splash (StratLab repo,
   lab/static/splash.css), cut down: the beaker is drawn as a line, the bars
   rise, the name lights up a letter at a time like a neon tube catching —
   then it stays lit and the way in fades up underneath. About four seconds;
   reduced-motion shows it lit straight away. Loaded after landing.css. */

.intro-main {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 44px; padding: 24px 16px;
}
.in-glow {
  position: absolute; width: 620px; height: 620px; max-width: 120vw; max-height: 120vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,138,.14), transparent 62%);
  animation: in-breathe 3.2s ease-in-out infinite; pointer-events: none;
}

.in-mark { position: relative; display: flex; align-items: center; gap: 20px; margin: 0; font: inherit; }
.in-svg { overflow: visible; flex: none; }
.in-flask { stroke-dasharray: 100; stroke-dashoffset: 100; animation: in-draw 1.8s cubic-bezier(.5,0,.2,1) .2s forwards; }
.in-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0);
  animation: in-rise .45s cubic-bezier(.3,1.4,.5,1) forwards; }
.in-bar.b1 { animation-delay: 1.8s; } .in-bar.b2 { animation-delay: 2.0s; } .in-bar.b3 { animation-delay: 2.2s; }

.in-word { font-size: 68px; font-weight: 400; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.in-word b, .in-word i {
  font-style: normal; display: inline-block; opacity: 0; color: #d9f7e6;
  text-shadow: 0 0 6px #4fc38a, 0 0 18px #4fc38a, 0 0 42px rgba(79,195,138,.6);
  animation: in-flicker .6s steps(1, end) forwards; animation-delay: calc(2.5s + var(--i) * .12s);
}
.in-word b { font-weight: 700; }
.in-word i { color: #eefbd9; text-shadow: 0 0 6px #b5e878, 0 0 18px #b5e878, 0 0 42px rgba(181,232,120,.55); }

/* the way in: a pill, faded up once the name is lit */
.in-login, .bc-form {
  position: relative; opacity: 0; transform: translateY(8px);
  animation: in-up .6s ease forwards; animation-delay: 3.6s;
}
.in-login {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 30px 14px 34px; border-radius: 999px;
  border: 1px solid rgba(79,195,138,.55); color: #d9f7e6; text-decoration: none;
  font-size: 18px; font-weight: 600; letter-spacing: .02em;
  background: rgba(79,195,138,.08);
  box-shadow: 0 0 0 0 rgba(79,195,138,0), inset 0 0 18px rgba(79,195,138,.08);
  transition: background .2s, box-shadow .25s, border-color .2s, transform .2s;
}
.in-login:hover, .in-login:focus-visible {
  background: rgba(79,195,138,.18); border-color: #4fc38a; outline: none;
  box-shadow: 0 0 24px rgba(79,195,138,.35), inset 0 0 18px rgba(79,195,138,.12);
}
.in-login svg { transition: transform .2s; }
.in-login:hover svg { transform: translateX(3px); }

/* ── BC: the word, and an email box ─────────────────────────────────── */
.bc-word {
  margin: 0; font-size: 110px; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: var(--text); opacity: 0; animation: in-up .8s ease .1s forwards;
}
.intro.bc .bc-form { animation-delay: .6s; }
.bc-form { display: flex; align-items: center; width: min(420px, 100%);
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  background: color-mix(in srgb, var(--text) 5%, transparent); padding: 6px 6px 6px 22px;
  transition: border-color .2s, box-shadow .2s; }
.bc-form:focus-within { border-color: var(--accent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.bc-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 17px; padding: 10px 0; outline: none; }
.bc-form input::placeholder { color: color-mix(in srgb, var(--text) 45%, transparent); }
.bc-form button { flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #0b0f0d; }

@keyframes in-draw { to { stroke-dashoffset: 0; } }
@keyframes in-rise { to { transform: scaleY(1); } }
@keyframes in-up { to { opacity: 1; transform: none; } }
@keyframes in-breathe { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes in-flicker { 0% { opacity: .9; } 18% { opacity: .15; } 34% { opacity: 1; } 48% { opacity: .35; } 62%, 100% { opacity: 1; } }

@media (max-width: 640px) {
  .in-mark { flex-direction: column; gap: 12px; }
  .in-svg { width: 96px; height: 96px; }
  .in-word { font-size: 50px; }
  .bc-word { font-size: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .in-flask { stroke-dashoffset: 0; animation: none; }
  .in-bar { transform: none; animation: none; }
  .in-word b, .in-word i, .in-login, .bc-form, .bc-word { opacity: 1; transform: none; animation: none; }
  .in-glow { animation: none; }
}
