/* ─── Scroll-scrub (segunda dobra) ──────────────────────────────
   Frame sequence estilo Apple. Sticky canvas + overlays narrativos.
   Isolado das outras seções — não afeta estilo global. */

.scrub-section {
  height: 600vh;               /* 6 telas de scroll pro vídeo inteiro */
  position: relative;
  background: #0a0a0a;
}

.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.scrub-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scrub-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* narrativas */
.scrub-narrative {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 44vh;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}

.scrub-narrative h2 {
  max-width: min(80vw, 26rem);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #4a4a47;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.scrub-narrative.scrub-wide h2 {
  max-width: min(92vw, 44rem);
  white-space: nowrap;
}

/* checklist (X escrito à mão) */
.scrub-narrative.scrub-checklist {
  padding-top: 40vh;
}

.scrub-narrative.scrub-checklist .scrub-checklist-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
}

.scrub-narrative.scrub-checklist .scrub-check-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 500;
  color: #4a4a47;
  white-space: nowrap;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.scrub-narrative.scrub-checklist .scrub-check-x {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.7em;
  line-height: 0.8;
  color: #2b2b2b;
  transform: rotate(-8deg) translateY(-1px);
  display: inline-block;
}

/* hero (copy final, destaque grande) */
.scrub-narrative.scrub-hero {
  align-items: center;
  justify-content: flex-end;
  padding-top: 0;
  padding-right: 6vw;
  padding-bottom: 18vh;
}

.scrub-narrative.scrub-hero .scrub-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.scrub-narrative.scrub-hero h2 {
  width: auto;
  max-width: none;
  text-align: right;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #f5f3ef;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.scrub-narrative.scrub-hero .scrub-script {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: #f5f3ef;
  opacity: 0.92;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-top: 0.2rem;
  transform: rotate(-3deg);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

/* liquid glass (desktop only) */
@media (min-width: 769px) {
  .scrub-narrative h2,
  .scrub-narrative.scrub-checklist .scrub-checklist-ul {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }

  .scrub-narrative.scrub-checklist .scrub-checklist-ul {
    display: inline-flex;
    flex-direction: column;
    padding: 0.8rem 1.1rem;
  }

  .scrub-narrative.scrub-hero h2 {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .scrub-narrative.scrub-hero .scrub-script {
    margin-top: 0.5rem;
    margin-right: -0.3rem;
  }
}

/* progress bar */
.scrub-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(245, 243, 239, 0.1);
}

.scrub-progress-bar {
  height: 100%;
  width: 0%;
  background: #f5f3ef;
  transform-origin: left center;
}

/* loading indicator */
.scrub-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: rgba(245, 243, 239, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.scrub-loading.scrub-loading-done {
  opacity: 0;
  pointer-events: none;
}

/* mobile */
@media (max-width: 768px) {
  .scrub-section { height: 500vh; background: #ffffff; }

  .scrub-stage {
    align-items: flex-start;
    padding-top: 8vh;
    background: #ffffff;
  }

  .scrub-canvas {
    width: 100%;
    height: 45vh;
    background: #ffffff;
  }

  .scrub-narrative {
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 32vh;
  }

  .scrub-narrative h2 {
    width: min(88vw, 24rem);
    font-size: clamp(1.15rem, 4.8vw, 1.5rem);
    font-weight: 600;
    color: #2b2b2b;
    text-shadow: none;
  }

  .scrub-narrative.scrub-wide h2 {
    max-width: min(88vw, 26rem);
    white-space: normal;
  }

  .scrub-narrative.scrub-checklist { align-items: flex-end; padding-bottom: 32vh; }

  .scrub-narrative.scrub-checklist .scrub-check-item {
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
    font-weight: 600;
    color: #2b2b2b;
    text-shadow: none;
  }

  .scrub-narrative.scrub-checklist .scrub-check-x {
    color: #0F766E;
  }

  .scrub-narrative.scrub-hero {
    align-items: flex-end;
    justify-content: center;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 32vh;
  }

  .scrub-narrative.scrub-hero .scrub-hero-stack {
    align-items: center;
  }

  .scrub-narrative.scrub-hero h2 {
    text-align: center;
    font-size: clamp(1.8rem, 8.5vw, 2.6rem);
    max-width: 88vw;
    color: #0a0a0a;
    text-shadow: none;
  }

  .scrub-narrative.scrub-hero .scrub-script {
    text-align: center;
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
    color: #0F766E;
    text-shadow: none;
  }

  .scrub-loading {
    bottom: auto;
    top: 8vh;
    height: 45vh;
    background: #ffffff;
    color: rgba(10, 10, 10, 0.75);
  }

  .scrub-progress { background: rgba(10,10,10,0.1); }
  .scrub-progress-bar { background: #0a0a0a; }
}
