/* v4b (CEO mic 23/11 'tira o rosto' + his pasted mockup joice_site_teste.png 17:24): no floating face; the Hotmart
   cut-out exactly as the designer made it (chair, mesa, round bottom), native 600x839, right of the headline with the
   pendulum hanging between them. Everything else = v4 (css/v2.css). */
.hero-foto { margin: 0; position: relative; isolation: isolate; }
/* v4c (CEO 23/11 19:47 'está cru … esfumaçado ao redor dela'): same photo, nothing removed; the cut-out edges melt
   into violet smoke like the 'Quem vai te ensinar' portrait. Smoke images = 600x839 photo + 150 px pad each side
   (ferramentas/fotos/hero_esfumado.py) -> inset -17.88% (150/839) top/bottom, -25% (150/600) left/right. */
.hero-foto::before, .hero-foto::after { content: ""; position: absolute; inset: -17.88% -25%; pointer-events: none;
  background: center / 100% 100% no-repeat; }
/* v4d (CEO 23/11 21:04 'tire essa foto e coloca essa foto aqui de baixo'): hero = the 'Quem vai te ensinar' portrait
   with its own soft fade + glow (img/joice-hero-retrato.webp, RGBA 760x734, native scale, ferramentas/fotos/hero_b2.py).
   No smoke layers, no cut-out outline. */
.hero-foto::before, .hero-foto::after { content: none; }
/* PC: same photo box as v4c (headline keeps its 4 lines); the figure (600 of 760 px) fills the box and only the
   transparent glow margin (80 px each side) spills outside it */
@media (min-width: 900px) { .hero-foto img { width: calc(100% * 760 / 600); max-width: none; margin-inline: calc(-100% * 80 / 600); } }
.hero-foto img { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  .hero, .cine .hero, html:not(.cine) .hero { display: flex; flex-direction: column; align-items: stretch;
    min-height: 0; padding-top: 4.2rem; padding-bottom: 2rem; gap: 0; }
  .hero-foto { order: -1; width: min(76vw, 20rem); margin: 0 auto 0.6rem; }
  .hero-texto { position: relative; z-index: 1; }
}
@media (min-width: 900px) {
  /* column gap = the pendulum lane (cena_v4.js hangs the chain in its middle, measured from .hero-foto) */
  .hero, .cine .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(6rem, 10vw, 11rem);
    align-items: end; min-height: 100vh; padding-bottom: 0; }
  .hero-texto { padding-bottom: 7vh; align-self: center; }
  /* the pendulum lane + photo leave the text column narrower than v4: scale the headline with the width so it keeps
     4 lines like the CEO mockup (1920 = same 4.6rem as v4) instead of 5 with 'mesa' alone */
  .hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.6rem); max-width: 16ch; text-wrap: balance; }
  /* native size at most; on short screens the whole figure still fits under the brand line */
  .hero-foto { justify-self: end; width: min(600px, 38vw, calc((100vh - 5.5rem) * 600 / 839));
    margin-right: calc(-1 * max(0px, (100vw - var(--caixa)) / 2 - 1.5rem)); }
}
/* v4b2: at the CEO's own screen (mockup 1905 px) the headline breaks exactly like his picture (v4 greedy wrap):
   'Aprenda a usar o / pêndulo e a mesa / radiônica, do zero / à prática.' — narrower PCs keep balance (4 lines). */
@media (min-width: 1700px) { .hero h1 { text-wrap: wrap; max-width: 15ch; } }

/* v4c: the smoke layers bleed past the right edge at wide PCs; clip (not hidden) keeps sticky working, no sideways scroll */
html { overflow-x: clip; }

/* v4c (CEO 23/11 19:55 'O que você vai aprender' — title/text too small, left half empty): the chapter copy fills the left
   half and works with the dial (cena_v4c.js pulls the camera back so the whole dial sits in the right half). */
@media (min-width: 900px) {
  .cine .intro .cartao, .cine .modulo .cartao {
    max-width: none; width: min(100%, calc(50vw - max(0px, (100vw - var(--caixa)) / 2) - var(--borda) - 1.5rem)); }
  .cine .intro h2 { font-size: clamp(3.2rem, 5.2vw, 6.2rem); line-height: 0.98; text-wrap: balance; margin-bottom: 0.4em; }
  .cine .intro p { font-size: clamp(1.15rem, 0.55rem + 0.95vw, 1.55rem); line-height: 1.5; max-width: 32ch; }
  .cine .modulo .cartao { max-width: 38rem; padding: clamp(1.6rem, 2.4vw, 2.4rem); }
  .cine .modulo h3 { font-size: clamp(1.6rem, 1rem + 1.1vw, 2.15rem); }
  .cine .modulo p:not(.num) { font-size: clamp(1.02rem, 0.8rem + 0.35vw, 1.15rem); line-height: 1.6; }
  .cine .modulo .num { font-size: 3.3rem; }
}

/* v4c (CEO 23/11): soft blinking "role para baixo" hint at the bottom of the first screen (PC: in the pendulum lane, set by the inline script; hidden when it would touch hero copy or photo); goes away after the first
   scroll (html.rolou, inline script at the end of body); still under reduced motion; decorative (aria-hidden). */
.rolar { position: fixed; left: 50%; bottom: clamp(0.8rem, 2.5vh, 1.6rem); z-index: 6; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; pointer-events: none;
  color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; letter-spacing: 0.02em; text-shadow: 0 1px 6px rgba(15, 7, 24, 0.9);
  transition: opacity 500ms ease-out; }
.rolar svg { width: 22px; height: 22px; animation: rolar-pisca 1.8s ease-in-out infinite; }
@keyframes rolar-pisca { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.3; transform: translateY(5px); } }
html.rolou .rolar { opacity: 0; visibility: hidden; transition: opacity 500ms ease-out, visibility 0s 500ms; }   /* gone, not just transparent */
html.rolou .rolar svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .rolar svg { animation: none; } .rolar { transition: none; } }
/* phone: one low row (text beside the arrow) so it stays under the 'Quero começar agora' button at 360x800 */
@media (max-width: 899px) { .rolar { flex-direction: row; gap: 0.3rem; bottom: 0.35rem; font-size: 0.78rem; } .rolar svg { width: 18px; height: 18px; } }
/* when the hero copy itself runs past the fold (most phones) the cut copy already says 'scroll'; the hint would sit on the button */
html.rolar-off .rolar { display: none; }

/* v4e (CEO 23/11 21:18-21:22 'tem que ser do tamanho da imagem que eu dei para ti antes'): Joice at HIS mockup size =
   the photo at native scale (1 image px = 1 CSS px at 1905x945), hair ~y190, mesa down to the fold. v4d showed her at
   0.79: its 760/600 width rule lost to the later 'width: 100%' (same specificity). PC uses img/joice-hero-grande.webp
   (760x794, crop to y 800, ferramentas/fotos/hero_grande.py); phones keep the v4d image and layout. */
@media (min-width: 900px) {
  .hero-foto { width: min(600px, 38vw, calc(84vh * 600 / 794)); }
  .hero .hero-foto img { width: calc(100% * 760 / 600); max-width: none;
    /* 24 px left so even the transparent glow pad stays inside the window (the figure itself never reached the edge) */
    margin-left: calc(-100% * 80 / 600 - 24px); margin-right: calc(-100% * 80 / 600 + 24px); }
}
.hero-foto picture { display: block; }
