/* ══════════════════════════════════════════════════════
   MASA — CINEMATIC LAYER v4 — "FIRST LIGHT" (frame scrub)
   Higgsfield 1080p clips scrubbed by scroll
   ══════════════════════════════════════════════════════ */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ── SCRUB SECTIONS (canvas frame sequence) ── */
.scrub-section { position: relative; }
.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── HERO SCRUB ── */
#hero.scrub-section { height: 340vh; background: #060a18; }
#hero .scrub-stage { align-items: center; }

/* readability scrim — soft dark wash behind the text column */
.fl-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(4, 8, 18, 0.62) 0%,
    rgba(4, 8, 18, 0.38) 38%,
    rgba(4, 8, 18, 0.05) 68%,
    rgba(4, 8, 18, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

#hero .container {
  position: relative;
  z-index: 5;
  max-width: none;
  padding: 0 6vw;
  margin: 0;
}
.fl-content {
  max-width: 620px;
  padding-top: 22vh;
  will-change: opacity, transform;
}

.fl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ff8a4d;
  margin-bottom: 40px;
}
.fl-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: #ff8a4d; }

.fl-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 36px;
}
.fl-title .accent { color: #F26722; }

.fl-sub {
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.95;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 440px;
  margin-bottom: 48px;
}

.fl-hint {
  position: absolute;
  bottom: 28px;
  right: 48px;
  left: auto;
  transform: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246,248,255,0.6);
  will-change: opacity;
}
.fl-hint::before {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(246,248,255,0), rgba(246,248,255,0.65));
  animation: fl-drip 2.2s ease-in-out infinite;
}
@keyframes fl-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* entrance */
.cine-line { display: block; overflow: hidden; }
.cine-line > span {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
.cine-in .cine-line > span { transform: translateY(0); opacity: 1; }
.cine-in .cine-line:nth-child(1) > span { transition-delay: 0.12s; }
.cine-in .cine-line:nth-child(2) > span { transition-delay: 0.24s; }
.cine-in .cine-line:nth-child(3) > span { transition-delay: 0.36s; }
.cine-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.6s, transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.6s;
}
.cine-in .cine-fade { opacity: 1; transform: none; }

#hero .btn-outline-dark { border-color: rgba(246,248,255,0.32); color: #f6f8ff; }
#hero .btn-outline-dark:hover { border-color: #ff9a3c; color: #ff9a3c; background: rgba(255,154,60,0.07); }

/* ── BEARING SCRUB (white stage) ── */
#bearing-scrub { height: 320vh; background: #ffffff; }
#bearing-scrub .scrub-stage { background: #fff; }
/* shift the bearing left so the points have clear space */
@media (min-width: 769px) {
  #bearing-scrub .scrub-canvas { transform: translateX(-11vw); }
}
.scrub-points {
  position: absolute;
  z-index: 5;
  right: 6vw;
  top: 55%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(380px, 34vw);
  pointer-events: none;
}
.scrub-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(13, 17, 23, 0.08);
  opacity: 0;
  transform: translateX(36px);
  will-change: opacity, transform;
}
.scrub-point-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 3px;
}
.scrub-point h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.scrub-point p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* bottom of hero fades into the statement band color as the sun rises */
.fl-bottomfade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34vh;
  background: linear-gradient(180deg, rgba(251,243,231,0) 0%, rgba(251,243,231,0.85) 70%, #fbf3e7 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  will-change: opacity;
}

/* ── STATEMENT BAND ── */
.statement-band {
  position: relative;
  background: linear-gradient(180deg, #fbf3e7 0%, #fdf8f1 40%, #ffffff 100%);
  padding: 140px 0 130px;
  overflow: hidden;
}
.statement-band .container { position: relative; z-index: 2; }
.statement-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: #0f172a;
  display: block;
  opacity: 0.08;
  transform: translateY(28px);
  filter: blur(5px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s ease;
  margin-bottom: 10px;
}
.statement-line.lit { opacity: 1; transform: translateY(0); filter: blur(0); }
.statement-line:nth-child(2).lit { transition-delay: 0.12s; }
.statement-line:nth-child(3).lit { transition-delay: 0.24s; }
.statement-line .accent { color: var(--accent); }
.statement-foot {
  margin-top: 48px;
  max-width: 520px;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.95;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.45s, transform 1s cubic-bezier(0.22,1,0.36,1) 0.45s;
}
.statement-band.foot-lit .statement-foot { opacity: 1; transform: none; }

/* ── PARALLAX + POLISH ── */
[data-parallax] { will-change: transform; }
.pcard, .customer-logo-card, .brand-row-card, .trust-card {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.3s ease;
}
.pcard:hover { transform: translateY(-6px); }
.customer-logo-card:hover { transform: translateY(-4px); }

@media (max-width: 768px) {
  #hero.scrub-section { height: 220vh; }
  #bearing-scrub { height: 170vh; }
  #hero .container { padding: 0 22px; }
  .fl-content { padding-top: 96px; max-width: none; }
  .fl-title { font-size: clamp(2.1rem, 9.5vw, 2.9rem); margin-bottom: 26px; }
  .fl-sub { font-size: 0.92rem; line-height: 1.85; margin-bottom: 32px; max-width: none; }
  .fl-hint { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; }
  .fl-scrim {
    background: linear-gradient(180deg, rgba(4,8,18,0.66) 0%, rgba(4,8,18,0.35) 55%, rgba(4,8,18,0.08) 100%);
  }
  .scrub-points { right: 22px; left: 22px; width: auto; top: auto; bottom: 28px; transform: none; gap: 10px; }
  .scrub-point { padding: 12px 16px; }
  .scrub-point p { display: none; }
  .statement-band { padding: 80px 0; }
  .statement-line { font-size: clamp(1.5rem, 7.2vw, 2rem); }
  .statement-foot { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-line > span, .cine-fade { transition: none; transform: none; opacity: 1; }
  .statement-line { color: #0f172a; }
  #hero.scrub-section, #bearing-scrub { height: auto; }
  .scrub-stage { position: relative; }
  .scrub-point { opacity: 1; transform: none; }
}

/* iOS-safe stage height */
@supports (height: 100svh) {
  .scrub-stage { height: 100svh; }
}