/* ==========================================================================
   Galvitech — welcome intro
   A short brand splash on first arrival. Deliberately restrained: it sits on
   top of an already-rendered page, never hides content from crawlers or
   assistive tech, and is skipped entirely for anyone who prefers reduced
   motion. Plays once per browser session, not on every page.
   ========================================================================== */

.g-intro {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background:
    radial-gradient(900px 520px at 50% 42%, rgba(37, 99, 235, .22), transparent 66%),
    linear-gradient(180deg, #070c18, #04070f 60%, #02040a);
  opacity: 1;
  transition: opacity .5s ease, visibility 0s linear 0s;
}

/* once finished: invisible and never intercepts clicks */
.g-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility 0s linear .5s;
}

/* ---------- logo ----------
   Uses the same horizontal lockup as the site header, so the tagline reads
   "PC SERVICES & SOLUTIONS" here and in the header. That file is 1200x218, a
   ~5.5:1 ratio, so it is sized by width but sized generously - sizing it to
   the same width as the old stacked emblem would render the wordmark too
   small to read. */
.g-intro__logo {
  width: clamp(280px, 58vw, 440px);
  height: auto;
  opacity: 0;
  transform: translateY(12px) scale(.975);
  filter: blur(6px);
  animation: gIntroLogo 1.15s cubic-bezier(.22, .9, .3, 1) .18s forwards;
}

@keyframes gIntroLogo {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* soft cyan glow that settles as the logo resolves */
.g-intro__glow {
  position: absolute;
  width: min(640px, 82vw);
  height: min(420px, 56vw);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, .20), transparent 66%);
  opacity: 0;
  animation: gIntroGlow 1.9s ease-out .15s forwards;
  pointer-events: none;
}
@keyframes gIntroGlow {
  0%   { opacity: 0; transform: scale(.7); }
  45%  { opacity: 1; }
  100% { opacity: .5; transform: scale(1); }
}

/* ---------- hairline rule ---------- */
.g-intro__rule {
  display: block;          /* explicit: a bare <span> would be inline, and
                               width has no effect on an inline box */
  width: 0;
  height: 2px;
  margin: 30px 0 16px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent, rgba(34, 211, 238, .35) 18%,
    rgba(103, 232, 249, .95) 50%,
    rgba(34, 211, 238, .35) 82%, transparent);
  box-shadow: 0 0 12px rgba(34, 211, 238, .45);
  animation: gIntroRule 1s cubic-bezier(.22, .9, .3, 1) 1.25s forwards;
}
@keyframes gIntroRule {
  to { width: min(260px, 62vw); }
}

/* ---------- caption ---------- */
.g-intro__cap {
  margin: 0;
  font-family: var(--g-font);
  font-size: clamp(10px, 1.5vw, 11.5px);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--g-text-mut);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  animation: gIntroCap .85s ease 1.55s forwards;
}
@keyframes gIntroCap {
  to { opacity: 1; transform: none; }
}

/* ---------- accessible name, hidden from sight ---------- */
.g-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- honour reduced motion: no animation, no flash ---------- */
@media (prefers-reduced-motion: reduce) {
  .g-intro { display: none !important; }
}

/* ---------- very short viewport guard ---------- */
@media (max-height: 420px) {
  .g-intro__logo { width: clamp(210px, 42vw, 300px); }
  .g-intro__rule { margin: 18px 0 10px; }
}
