/* Opener — full-viewport takeover hero, shared shell.
   The homepage's first screen IS the hero: no window chrome, the terminal is
   part of the background and the hero (v3, see loader.js) paints the whole
   scene inside .opener-root. This file owns the section shell, the shared
   typography helpers the hero composes from, and the no-JS fallback. */

/* The nav floats transparent over the opener and glasses up after scroll */
body.has-opener .nav {
  position: fixed;
  left: 0;
  right: 0;
  transition: background 400ms var(--ease-glass), border-color 400ms var(--ease-glass);
}
body.has-opener .nav.nav-clear {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.opener {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
/* The mounted variant owns the section's size: root is in-flow (so a tall
   mobile layout can grow past 100svh) and hidden until a variant mounts;
   variants layer position:absolute scenery inside it. */
.opener-root { position: relative; min-height: 100svh; display: none; }
.opener.has-variant .opener-root { display: block; }

/* ---- shared typography helpers (variants build with these) ---- */
.opener-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.opener-h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}
.opener-lede {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  line-height: 1.55;
  max-width: 50ch;
  margin: 0 0 24px;
}
.opener-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.opener-cue {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--muted);
  line-height: 0;
  animation: opener-bob 2.4s var(--ease-glass) infinite;
}
.opener-cue:hover { color: var(--text); }
@keyframes opener-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ---- shared transcript lines (HeroKit.buildLines) ---- */
.op-line {
  display: block;
  opacity: 0;
  transition: opacity 280ms var(--ease-glass);
  min-height: 1em;
}
.op-line.is-on { opacity: 1; }
.op-line.is-typing .tt::after {
  content: '▋';
  color: var(--accent);
  margin-left: 2px;
  animation: op-blink 1s steps(1) infinite;
}
@keyframes op-blink { 50% { opacity: 0; } }

/* ---- no-JS / load-failure fallback: copy + static transcript ---- */
.opener-fallback {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.opener.has-variant .opener-fallback { display: none; }
.opener-fallback .fb-term {
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.75;
  margin-top: 36px;
  white-space: pre-wrap;
  overflow-x: auto;
}

@media (prefers-reduced-motion: reduce) {
  .opener-cue { animation: none; }
}
