/* ═══════════════════════════════════════════════════════════
   ANIMATIONS.CSS — Tom Web Studio
═══════════════════════════════════════════════════════════ */

/* ── Intro screen ───────────────────────────────────────── */
#intro-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  overflow: hidden;
}
#intro-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#intro-brand {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; gap: 0.35em;
  opacity: 0; pointer-events: none;
  font-family: 'Goldman', sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #000; white-space: nowrap;
}
#intro-brand .brand-mid {
  color: #000;
  animation: scintillate 0.9s ease-in-out infinite;
}
@keyframes scintillate {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(0,0,0,0.4); }
  45%       { opacity: 0.25; text-shadow: none; }
  55%       { opacity: 0.25; text-shadow: none; }
}
#intro-skip {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3; color: rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  pointer-events: none; opacity: 0;
  transition: opacity 1s ease;
}
#intro-skip.visible { opacity: 1; }

/* ── Site wrapper ───────────────────────────────────────── */
#site-wrapper.hidden { opacity: 0; pointer-events: none; }
#site-wrapper { opacity: 1; transition: opacity 0.9s ease; }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Hero entrance ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow   { animation: fadeUp 0.7s 0.1s both ease; }
#hero-title     { animation: fadeUp 0.7s 0.22s both ease; }
.hero-sub       { animation: fadeUp 0.7s 0.34s both ease; }
.hero-actions   { animation: fadeUp 0.7s 0.44s both ease; }
.hero-proof     { animation: fadeUp 0.7s 0.54s both ease; }
.hero-image-wrap{ animation: fadeUp 0.8s 0.35s both ease; }

/* ── Navbar scroll ──────────────────────────────────────── */
#navbar { transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease; }

/* ── Spinner ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; transform-origin: center; }

/* ── Hero badge float ───────────────────────────────────── */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.hero-img-badge { animation: floatBadge 3s ease-in-out infinite; }

/* ── Process items stagger ──────────────────────────────── */
.process-item:nth-child(1) { transition-delay: 0.05s; }
.process-item:nth-child(2) { transition-delay: 0.12s; }
.process-item:nth-child(3) { transition-delay: 0.19s; }
.process-item:nth-child(4) { transition-delay: 0.26s; }

/* ── Contact link hover ─────────────────────────────────── */
.contact-link { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }

/* ── Nav mobile slide ───────────────────────────────────── */
@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-menu.open { animation: menuDrop 0.2s ease forwards; }

/* ── Form success ───────────────────────────────────────── */
.form-success, .form-error { animation: fadeUp 0.4s ease both; }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
