/* ============================================================
   DOUTOR RESTAURANTE — story.css
   O filme da Home: hero em loop + cenas com scroll-scrub (padrão
   testado no Focus Sales Experts, ver ARQUITETURA.md §5).
   Só carrega em index.html. Camada 2 (corpo/SEO) não usa nada
   disto — critério de aceite: desligar isto, tudo continua legível.
   ============================================================ */

html.story-boot .beat { opacity: 0; }

/* ================= HERO (loop, não scrub) ================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 640px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.28) 32%, rgba(10,10,11,.6) 78%, rgba(10,10,11,.92) 100%),
    linear-gradient(90deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,.3) 50%, rgba(10,10,11,.1) 100%);
}
.hero-body {
  position: relative; z-index: 2; flex: 1; min-width: 0;
  display: flex; align-items: center; padding-top: 100px;
}
.hero-content { max-width: 760px; }
.hero-content .eyebrow { display: block; margin-bottom: 18px; }
.hero-content h1 { margin-bottom: 26px; }
.hero-content .lead { color: var(--cream-dim); max-width: 54ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-dim);
  transition: opacity .5s var(--ease-out);
}
.scroll-hint::after {
  content: ""; width: 1px; height: 26px;
  background: linear-gradient(var(--gold), transparent);
  animation: hint-drop 1.6s ease-in-out infinite;
}
.scroll-hint.is-hidden { opacity: 0; }
@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ================= CENAS DE VÍDEO (scroll-scrub) ================= */
.scene { position: relative; }
.scene[data-vh="260"] { height: 260vh; }
.scene[data-vh="220"] { height: 220vh; }

.scene-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%;
  overflow: hidden; background: var(--ink);
}
.scene-media { position: absolute; inset: 0; overflow: hidden; }
.scene-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
.scene-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.45) 0%, rgba(10,10,11,.15) 35%, rgba(10,10,11,.78) 100%);
  pointer-events: none;
}
.scene-beats {
  position: absolute; inset: 0; display: grid; place-items: center start;
  padding: 0 var(--gutter); pointer-events: none;
}
.beat {
  grid-area: 1 / 1;
  max-width: 640px; text-align: left;
  margin-left: clamp(0px, 4vw, 60px); margin-right: auto;
  color: var(--cream);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.22;
  will-change: transform, opacity, filter;
}
.beat--lead {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--cream-dim); max-width: 46ch;
}
.beat--mono {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(.82rem, 1.2vw, .98rem);
  color: var(--gold); letter-spacing: .05em; text-transform: uppercase;
}
.beat--center { justify-self: center; text-align: center; margin: 0 auto; }
.beat--punch { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 720px; }

/* ================= MÉTODO (interlúdio claro, §03) ================= */
/* Cor vem de section[data-surface="paper"] em base.css — aqui só o layout. */
.interlude {
  text-align: center;
  padding: clamp(80px, 14vw, 180px) 0; position: relative; overflow: hidden;
}
.interlude .wrap { max-width: 980px; }
.interlude h2 { max-width: 20ch; margin: 0 auto; }
.interlude .lead { color: var(--on-surface-dim); max-width: 56ch; margin: 22px auto 48px; }
/* .interlude-axes/.interlude-axis/.interlude-mark, .stats-row/.stat,
   .reviews-row e .services-grid mudaram pra components.css — são
   reaproveitados em páginas internas (Método, Sobre, Resultados) que
   não carregam este arquivo (story.css é só da Home). Ver nota lá. */

/* ================= PROVA + FICHA GOOGLE (só Home) ================= */
.prova-section {
  position: relative;
  background-size: cover;
  background-position: center;
}
.prova-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.88) 0%, rgba(10,10,11,.94) 100%);
}

/* ================= FECHO ================= */
.closer {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(90px, 16vw, 200px) 0;
}
.closer .wrap { max-width: 720px; position: relative; z-index: 2; }
.closer h2 { margin-bottom: 20px; }
.closer .lead { margin: 0 auto 36px; }

/* ---------- "Por que isso acontece" — quebra branca entre Problema e Virada ----------
   Respiro de propósito entre duas cenas escuras coladas. Tipografia grande,
   sem vídeo, sem card: o contraste com o filme é o efeito. */
.porque { padding-block: clamp(96px, 14vw, 180px); }
.porque h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08;
  max-width: 20ch; margin-top: .5em; letter-spacing: -.01em;
}
.porque .eyebrow { color: var(--gold-deep); }
.porque h2 em { font-style: italic; color: var(--gold-deep); }
.porque .lead { max-width: 60ch; margin-top: 1.4em; color: var(--on-surface-dim); }
.porque-fatores {
  display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 96px);
  counter-reset: fator;
}
@media (min-width: 820px) { .porque-fatores { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.porque-fator { position: relative; padding-top: 28px; }
.porque-fator::before {            /* fio dourado que "desenha" ao entrar */
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: var(--gold-deep); transform-origin: left center;
}
.porque-fator .num {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  color: var(--gold-deep); display: block;
}
.porque-fator h3 { margin: .5em 0 .45em; font-size: 1.5rem; }
.porque-fator p { color: var(--on-surface-dim); }
.porque-fecho {
  margin-top: clamp(56px, 8vw, 88px); font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 40ch;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.no-js) .porque-fator[data-reveal]::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .15s; }
  html:not(.no-js) .porque-fator[data-reveal].is-in::before { transform: scaleX(1); }
}

/* Mobile: o prato e as mãos do chef ficam em ~75% da largura do quadro —
   com 55% o recorte vertical mostrava só fundo desfocado. E a dica "Role"
   não cabe embaixo dos dois botões, sobrepunha o CTA. */
@media (max-width: 780px) {
  .hero-media video, .hero-media img { object-position: 82% 50%; }
  .scroll-hint { display: none; }
}
