/* Landing intro animation overlay */
.ff-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #0b1426 0%, #050912 70%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #fff;
  overflow: hidden;
  opacity: 1;
  transition: opacity 600ms ease, transform 600ms ease;
}
.ff-intro.ff-intro--exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.ff-intro__stage {
  text-align: center;
  max-width: min(94vw, 1000px);
  padding: 0 24px;
}
.ff-intro__beat {
  display: block;
  opacity: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.65rem, 5vw, 3.5rem);
  margin: 0;
}
.ff-intro__beat .ff-gold { color: #d4a853; }

/* Beat 1: It's 2026 */
.ff-intro__beat--1 {
  animation: ff-intro-rise 700ms ease-out 200ms forwards,
             ff-intro-fall 500ms ease-in 1200ms forwards;
}

/* Beat 2: AI is making and saving +$ to [TRADE] businesses */
.ff-intro__beat--2 {
  animation: ff-intro-rise 700ms ease-out 1500ms forwards,
             ff-intro-fall 500ms ease-in 6300ms forwards;
}
.ff-intro__trade-wrap {
  display: inline-block;
  min-width: 5ch;
  text-align: left;
}
.ff-intro__trade {
  display: inline-block;
  font-style: normal;
  font-weight: 800;
  will-change: transform, opacity;
  animation: ff-intro-trade-flip 360ms ease-out both;
}
.ff-intro__trade--in {
  animation: ff-intro-trade-flip 360ms ease-out both;
}

/* Beat 3: What are you waiting for? */
.ff-intro__beat--3 {
  font-size: clamp(2rem, 6vw, 4.25rem);
  animation: ff-intro-rise 700ms ease-out 6700ms forwards;
}
.ff-intro__underline {
  position: relative;
  display: inline-block;
}
.ff-intro__underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: #d4a853;
  transform: scaleX(0);
  transform-origin: left center;
  animation: ff-intro-underline 700ms ease-out 7200ms forwards;
}

.ff-intro__skip {
  position: absolute;
  bottom: 20px;
  right: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.ff-intro__skip:hover { background: rgba(212,168,83,0.12); color: #d4a853; border-color: #d4a853; }

@keyframes ff-intro-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ff-intro-fall {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}
@keyframes ff-intro-underline {
  to { transform: scaleX(1); }
}
@keyframes ff-intro-trade-flip {
  from { opacity: 0; transform: translateY(12px) rotateX(-30deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}

body.ff-intro-lock { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  .ff-intro__beat,
  .ff-intro__beat--1,
  .ff-intro__beat--2,
  .ff-intro__beat--3,
  .ff-intro__trade,
  .ff-intro__underline::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ff-intro__beat--1, .ff-intro__beat--2 { display: none; }
}

/* ============ Cinematic image bed ============ */
.ff-intro__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.ff-intro__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  transform: scale(1.02);
}
/* Image 1: dawn lot — Beat 1 (~0–1700ms) */
.ff-intro__img--1 { animation: ff-intro-img-1 1900ms ease-out 0ms forwards, ff-intro-kenburns 4000ms ease-out 0ms forwards; }
/* Image 2: roofer — 1700–3300ms */
.ff-intro__img--2 { animation: ff-intro-img-2 2100ms ease-out 1500ms forwards, ff-intro-kenburns 4000ms ease-out 1500ms forwards; }
/* Image 3: hvac — 3300–4900ms */
.ff-intro__img--3 { animation: ff-intro-img-3 2100ms ease-out 3100ms forwards, ff-intro-kenburns 4000ms ease-out 3100ms forwards; }
/* Image 4: plumber — 4900–6500ms */
.ff-intro__img--4 { animation: ff-intro-img-4 2100ms ease-out 4700ms forwards, ff-intro-kenburns 4000ms ease-out 4700ms forwards; }
/* Image 5: owner dusk — 6500–end */
.ff-intro__img--5 { animation: ff-intro-img-5 1800ms ease-out 6300ms forwards, ff-intro-kenburns 4000ms ease-out 6300ms forwards; }

@keyframes ff-intro-img-1 { 0% {opacity:0} 18% {opacity:0.55} 75% {opacity:0.55} 100% {opacity:0} }
@keyframes ff-intro-img-2 { 0% {opacity:0} 28% {opacity:0.55} 75% {opacity:0.55} 100% {opacity:0} }
@keyframes ff-intro-img-3 { 0% {opacity:0} 28% {opacity:0.55} 75% {opacity:0.55} 100% {opacity:0} }
@keyframes ff-intro-img-4 { 0% {opacity:0} 28% {opacity:0.55} 75% {opacity:0.55} 100% {opacity:0} }
@keyframes ff-intro-img-5 { 0% {opacity:0} 30% {opacity:0.6}  100% {opacity:0.6} }
@keyframes ff-intro-kenburns { from { transform: scale(1.02); } to { transform: scale(1.10); } }

/* Navy veil keeps the gold text dominant */
.ff-intro__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(11,20,38,0.55) 0%, rgba(5,9,18,0.85) 70%, rgba(0,0,0,0.95) 100%),
    linear-gradient(180deg, rgba(11,20,38,0.35) 0%, rgba(5,9,18,0.55) 100%);
  pointer-events: none;
}
.ff-intro__stage { position: relative; z-index: 2; }
.ff-intro__skip  { z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .ff-intro__img { animation: none !important; opacity: 0 !important; }
  .ff-intro__img--5 { opacity: 0.5 !important; }
}
