/* =============================================================
   intro.css — Vicente Hernaiz Portfolio
   Full-screen intro animation overlay (home page only).
   Removed from DOM by intro.js when animation completes.
   ============================================================= */

/* ── Overlay ─────────────────────────────────────────────── */
.intro {
  position:   fixed;
  inset:      0;
  z-index:    9999;
  background: #000;
  overflow:   hidden;
}

/* ── Logo squares ────────────────────────────────────────── */
/* All 5 squares are absolutely positioned. CSS centers them
   at the viewport midpoint; GSAP animates x/y from there. */
.intro__sq {
  position:      absolute;
  top:           50%;
  left:          50%;
  margin-top:    -47.5px;   /* -SQ/2 — center the 95px square */
  margin-left:   -47.5px;
  width:         95px;
  height:        95px;
  background:    #d9d9d9;   /* matches Figma logo color */
  border-radius: 1px;
  will-change:   transform, opacity;
}

/* ── Pixel dissolve tiles ────────────────────────────────── */
.intro__pixel-grid {
  position:       absolute;
  inset:          0;
  pointer-events: none;
}

.intro__tile {
  position:   absolute;
  width:      95px;
  height:     95px;
  background: #000;
}

/* ── Skip button ─────────────────────────────────────────── */
/* Figma: glassmorphism, 1px solid white border, 48px height  */
.intro__skip {
  position:        fixed;
  bottom:          48px;
  right:           48px;
  height:          48px;
  padding:         0 16px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             6px;
  background:      rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border:          1px solid #fff;
  border-radius:   8px;
  font-family:     var(--font-text, 'Work Sans', sans-serif);
  font-size:       16px;
  font-weight:     600;
  line-height:     24px;
  color:           #fff;
  white-space:     nowrap;
  overflow:        hidden;
  cursor:          pointer;
  z-index:         10000;
  transition:      background 0.2s ease;
}

.intro__skip:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Mobile: centered at the bottom */
@media (max-width: 640px) {
  .intro__skip {
    right:     50%;
    transform: translateX(50%);
    bottom:    32px;
  }
}
