/* A quiet, cinematic opening and a continuous reveal into the hero. */
@media screen and (prefers-reduced-motion: no-preference) {
  .motion-opening .site-intro {
    isolation: isolate;
    background: #08090d;
    animation-duration: 7s;
  }
  .site-intro::before, .site-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .site-intro::before {
    z-index: -2;
    background: radial-gradient(ellipse at 50% 48%, rgba(93,91,154,.18), transparent 42%), #08090d;
    animation: opening-light 3.8s ease-out both;
  }
  .site-intro::after {
    z-index: -1;
    inset: 10%;
    background: radial-gradient(ellipse at center, rgba(166,174,255,.08), transparent 57%);
    filter: blur(35px);
    animation: opening-light 3.8s ease-out both;
  }
  .site-intro__frame { padding: clamp(24px, 4vw, 56px); }
  .site-intro__meta, .site-intro__foot {
    position: relative;
    border-color: rgba(255,255,255,.1);
    color: #a8aab5;
    font-size: clamp(9px, .7vw, 10px);
    letter-spacing: .12em;
    animation: opening-meta 1.2s ease .2s both;
  }
  .site-intro__brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 900px);
    font-size: clamp(58px, 10vw, 132px);
    font-weight: 650;
    line-height: .94;
    letter-spacing: -.065em;
    text-align: center;
  }
  .site-intro__row { justify-content: center; width: 100%; padding-block: .025em; }
  .site-intro__row > span { animation: opening-type 1.45s cubic-bezier(.16,1,.3,1) both; }
  .site-intro__row--middle { justify-content: center; gap: .16em; color: #c4c3f7; }
  .site-intro__row--middle > span { animation-delay: .16s; }
  .site-intro__row:nth-child(3) > span { animation-delay: .32s; }
  .site-intro__row i {
    width: .38em;
    height: .38em;
    border-color: rgba(201,203,255,.65);
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5), rgba(135,128,220,.2) 35%, rgba(42,40,72,.15) 72%);
    box-shadow: 0 0 35px rgba(136,126,231,.18), inset 0 0 18px rgba(220,221,255,.12);
    animation: opening-orb 1.6s cubic-bezier(.16,1,.3,1) .35s both;
  }
  .site-intro__dot, .page-transition__mark span { color: #a6a0ff; }
  .motion-ready .site-intro { animation: opening-handoff 1150ms cubic-bezier(.76,0,.24,1) both; }
  .motion-opening .page-transition, .motion-entry .page-transition, .motion-exiting .page-transition {
    isolation: isolate;
    overflow: hidden;
    background: #0c0d12;
  }
  .page-transition::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 100%, rgba(121,111,206,.18), transparent 48%), #0c0d12;
  }
  .page-transition::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(219,216,255,.75), transparent);
    box-shadow: 0 0 24px rgba(164,155,255,.25);
  }
  .page-transition__mark { font-size: clamp(42px, 5vw, 64px); font-weight: 650; color: #f5f5f7; }
  .motion-revealing .page-transition { animation-duration: 1400ms; }
  .motion-revealing .page-transition__mark { animation: mark-out 650ms ease both; }
  .motion-revealing .hero-reveal-word { animation-duration: 1200ms; }
  .motion-revealing .hero-eyebrow { animation-delay: 200ms; }
  .motion-revealing .hero-subhead { animation-delay: 450ms; }
  .motion-revealing .hero-ctas { animation-delay: 550ms; }
  @keyframes opening-light { from { opacity: .15; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
  @keyframes opening-meta { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes opening-type { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: translateY(0); } }
  @keyframes opening-orb { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
  @media (max-width: 600px) {
    .site-intro__brand { font-size: clamp(52px, 14vw, 80px); }
    .site-intro__meta, .site-intro__foot { gap: 12px; font-size: 9px; }
    .site-intro__meta span:last-child, .site-intro__foot span:last-child { text-align: right; }
  }
}
