/* ==========================================================================
   The session opening (#75). Board 17 of the design; timings are the
   comments on its frames. 2.5s in all, at the owner's request (2026-10-18). Transform, opacity and clip-path only.
   Shown only under html.ntc-intro-on (not .ntc-intro: that would match <html>
   itself through the display: none below and blank the page), which the inline head script in intro.php
   adds; without it (JS off, reduced motion, a later page) it never renders.
   ========================================================================== */

.ntc-intro { display: none; }

html.ntc-intro-on .ntc-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--color-ink);
  pointer-events: none;           /* a click falls through to the page and ends it */
  animation: ntc-intro-gold 400ms cubic-bezier(.4, 0, .2, 1) 1300ms both,
             ntc-intro-lift 750ms cubic-bezier(.7, 0, .2, 1) 1700ms both;
}

.ntc-intro__crest {
  width: 264px;
  height: auto;
  animation: ntc-intro-crest 600ms cubic-bezier(.2, 0, 0, 1) both;
}

.ntc-intro__strip {
  margin: 0;
  padding: 14px 40px;
  background: var(--color-accent-base);
  color: var(--color-ink);
  font-family: 'Fira Sans Condensed', 'Fira Sans Condensed Fallback', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ntc-intro-wipe 500ms cubic-bezier(.2, 0, 0, 1) 400ms both;
}

@keyframes ntc-intro-crest { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ntc-intro-wipe  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* The ink ground turns gold just before it lifts (1300-1700ms), so what leaves
   is the gold curtain of frame 3. Colour only: no layout. */
@keyframes ntc-intro-gold  { to { background-color: var(--color-accent-base); } }
@keyframes ntc-intro-lift  { to { transform: translateY(-100%); } }

@media (max-width: 767px) {
  .ntc-intro__crest { width: 168px; }
  .ntc-intro__strip { padding: 10px 24px; font-size: 15px; }
}

/* The head script never adds the class under reduced motion; this is the
   belt to its braces. */
@media (prefers-reduced-motion: reduce) {
  html.ntc-intro-on .ntc-intro { display: none; }
}
