/* Faixa "Toda aula pode terminar com uma gravação" (home, abaixo do hero, 04/12/2026).
   Três cenas se revezam em fade lento; a tela de cada cena é o print real do HAB gravando. Sem JavaScript. */
.gv { position: relative; isolation: isolate; overflow: hidden; background: #14151B; color: #F4F3F8; }
.gv-palco { position: relative; min-height: clamp(560px, 46vw, 720px); display: grid; align-items: center; }

/* a foto começa depois da coluna do texto: em tela larga ela não passa por baixo do título */
.gv-cenas { position: absolute; top: 0; bottom: 0; right: 0; left: max(36%, calc((100% - 1180px) / 2 + 500px)); z-index: -2; overflow: hidden; }
.gv-cenas figure { position: absolute; inset: 0; margin: 0; opacity: 0; animation: gv-cena 21s infinite; }
.gv-cenas figure:nth-child(1) { animation-delay: 0s; opacity: 1; }
.gv-cenas figure:nth-child(2) { animation-delay: 7s; }
.gv-cenas figure:nth-child(3) { animation-delay: 14s; }
.gv-cenas img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; transform-origin: 85% 40%; animation: gv-zoom 21s infinite linear; animation-delay: inherit; }
@keyframes gv-troca { 0% { opacity: 0 } 5% { opacity: 1 } 33% { opacity: 1 } 40% { opacity: 0 } 100% { opacity: 0 } }
/* troca de cena sem vão escuro (05/12/2026): a cena que chega entra por cima enquanto a anterior segue inteira,
   e a anterior só some depois. A legenda continua com gv-troca (texto sobre texto não pode somar). */
@keyframes gv-cena { 0% { opacity: 0; z-index: 3 } 6% { opacity: 1; z-index: 3 } 7% { z-index: 2 } 40% { opacity: 1; z-index: 2 } 41% { opacity: 0; z-index: 1 } 100% { opacity: 0; z-index: 1 } }
@keyframes gv-zoom { 0% { transform: scale(1.05) } 40% { transform: scale(1) } 100% { transform: scale(1) } }
.gv-cenas::after { content: ""; position: absolute; inset: 0; z-index: 4; background:
  linear-gradient(90deg, #14151B 0%, rgba(20,21,27,.55) 9%, rgba(20,21,27,0) 24%),
  linear-gradient(0deg, rgba(20,21,27,.75) 0%, rgba(20,21,27,0) 30%); }

.gv-texto { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 88px 0; }
.gv-texto > div { max-width: 520px; }
.gv-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E8B352; }
.gv-tag i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; }
.gv-tag i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(229,72,77,.55); animation: gv-rec 1.6s ease-out infinite; }
@keyframes gv-rec { 0% { transform: scale(1); opacity: 1 } 80%, 100% { transform: scale(2.8); opacity: 0 } }
.gv h2 { margin: 0; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; color: #fff; text-wrap: balance; }
.gv h2 em { font-style: normal; color: #E8B352; }
.gv-apoio { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: #C9CAD6; max-width: 500px; }
.gv-apoio a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(232,179,82,.8); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gv-apoio a:hover { color: #E8B352; }
/* enquadramento por cena: o rosto do professor nunca sai da foto */
.gv-c1 img { object-position: 50% 30%; }
.gv-c2 img { object-position: 22% 20%; }
.gv-c3 img { object-position: 62% 40%; }
.gv-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gv-acoes .button { min-height: 52px; }
.gv-nota { margin: 22px 0 0; font-size: 13px; line-height: 1.5; color: #8D90A2; }

/* cartão da faixa gravada, que acompanha a cena */
/* cartão no meio da foto, embaixo: fica entre o aluno e o professor, sem cobrir ninguém */
.gv-faixa { position: absolute; right: calc((100% - max(36%, calc((100% - 1180px) / 2 + 500px))) / 2 - 170px); bottom: clamp(20px, 3vw, 40px); z-index: 1; width: 340px; padding: 16px 18px; border-radius: 16px;
  background: rgba(24,25,33,.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(232,179,82,.35); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
.gv-faixa-topo { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #E8B352; }
.gv-faixa-topo span:last-child { color: #8D90A2; letter-spacing: .04em; text-transform: none; font-weight: 500; }
.gv-onda { display: flex; align-items: center; gap: 3px; height: 40px; margin: 12px 0 10px; }
.gv-onda b { flex: 1; min-width: 2px; border-radius: 2px; background: #E8B352; height: var(--h); transform-origin: center; animation: gv-bar 1.4s ease-in-out infinite; animation-delay: var(--d); }
/* alturas das barras aqui, não no HTML: a política de segurança do site bloqueia style inline */
.gv-onda b:nth-child(1){--h:28%;--d:-0.00s}.gv-onda b:nth-child(2){--h:50%;--d:-0.09s}.gv-onda b:nth-child(3){--h:76%;--d:-0.18s}.gv-onda b:nth-child(4){--h:55%;--d:-0.27s}.gv-onda b:nth-child(5){--h:43%;--d:-0.36s}.gv-onda b:nth-child(6){--h:42%;--d:-0.45s}.gv-onda b:nth-child(7){--h:55%;--d:-0.54s}.gv-onda b:nth-child(8){--h:72%;--d:-0.63s}.gv-onda b:nth-child(9){--h:47%;--d:-0.72s}.gv-onda b:nth-child(10){--h:28%;--d:-0.81s}.gv-onda b:nth-child(11){--h:49%;--d:-0.90s}.gv-onda b:nth-child(12){--h:60%;--d:-0.99s}.gv-onda b:nth-child(13){--h:64%;--d:-1.08s}.gv-onda b:nth-child(14){--h:45%;--d:-1.17s}.gv-onda b:nth-child(15){--h:40%;--d:-1.26s}.gv-onda b:nth-child(16){--h:60%;--d:-1.35s}.gv-onda b:nth-child(17){--h:75%;--d:-1.44s}.gv-onda b:nth-child(18){--h:64%;--d:-1.53s}.gv-onda b:nth-child(19){--h:29%;--d:-1.62s}.gv-onda b:nth-child(20){--h:56%;--d:-1.71s}.gv-onda b:nth-child(21){--h:86%;--d:-1.80s}.gv-onda b:nth-child(22){--h:54%;--d:-1.89s}.gv-onda b:nth-child(23){--h:44%;--d:-1.98s}.gv-onda b:nth-child(24){--h:42%;--d:-2.07s}.gv-onda b:nth-child(25){--h:58%;--d:-2.16s}.gv-onda b:nth-child(26){--h:60%;--d:-2.25s}.gv-onda b:nth-child(27){--h:51%;--d:-2.34s}.gv-onda b:nth-child(28){--h:30%;--d:-2.43s}.gv-onda b:nth-child(29){--h:52%;--d:-2.52s}.gv-onda b:nth-child(30){--h:75%;--d:-2.61s}.gv-onda b:nth-child(31){--h:69%;--d:-2.70s}.gv-onda b:nth-child(32){--h:39%;--d:-2.79s}.gv-onda b:nth-child(33){--h:46%;--d:-2.88s}.gv-onda b:nth-child(34){--h:56%;--d:-2.97s}
@keyframes gv-bar { 0%, 100% { transform: scaleY(.55) } 50% { transform: scaleY(1) } }
.gv-legenda { margin: 0; font-size: 14px; color: #C9CAD6; min-height: 1.4em; position: relative; }
.gv-legenda span { position: absolute; inset: 0 auto auto 0; opacity: 0; animation: gv-troca 21s infinite; }
.gv-legenda span:nth-child(1) { animation-delay: 0s; opacity: 1; }
.gv-legenda span:nth-child(2) { animation-delay: 7s; }
.gv-legenda span:nth-child(3) { animation-delay: 14s; }

@media (max-width: 900px) {
  .gv-palco { display: block; min-height: 0; }
  .gv-cenas { position: relative; inset: auto; width: 100%; aspect-ratio: 3 / 2; }
  .gv-cenas::after { background: linear-gradient(0deg, #14151B 0%, rgba(20,21,27,0) 38%); }
  .gv-texto { width: calc(100% - 40px); padding: 8px 0 56px; }
  .gv-faixa { position: relative; right: auto; bottom: auto; width: auto; margin: 28px 0 0; }
  .gv-texto > div { max-width: none; }
}
@media (max-width: 600px) {
  .gv-texto { width: calc(100% - 32px); }
  .gv h2 { font-size: clamp(34px, 10vw, 44px); }
  .gv-apoio { font-size: 17px; }
  .gv-acoes .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gv-cenas figure, .gv-cenas img, .gv-legenda span, .gv-onda b, .gv-tag i, .gv-tag i::after { animation: none; }
  .gv-cenas figure:not(:first-child), .gv-legenda span:not(:first-child) { opacity: 0; }
}

/* "Na sala, é assim" (05/12/2026): embaixo das cenas ilustradas, dois vídeos de celular de uma aula de
   bateria com o HAB no telão, em moldura de celular. Tocam sem som ao entrar na tela (sala.js). */
.gv-sala { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 88px;
  display: grid; grid-template-columns: minmax(0, 460px) auto; justify-content: space-between; gap: 48px; align-items: center;
  border-top: 1px solid rgba(255,255,255,.09); }
.gv-sala-tag { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E8B352; }
.gv-sala h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; color: #fff; }
.gv-sala-txt > p:not([class]) { margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: #C9CAD6; }
.gv-sala-nota { margin: 16px 0 0; font-size: 13.5px; color: #8D90A2; }
.gv-sala-fones { display: flex; gap: 26px; align-items: flex-start; }
.gv-sala-fones .sala-fone:nth-child(2) { margin-top: 44px; }
.sala-fone { margin: 0; width: clamp(170px, 17vw, 250px); }
.sala-tela { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 0 6px #0C0D12, 0 0 0 7px rgba(255,255,255,.08), 0 50px 80px -34px #000; }
.sala-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sala-som { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(12,13,18,.72); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.sala-som:hover { background: rgba(232,179,82,.9); color: #2E2306; border-color: transparent; }
.sala-som:focus-visible { outline: 2px solid #E8B352; outline-offset: 2px; }
.sala-som svg { width: 20px; height: 20px; }
.sala-som[aria-pressed="false"] .som-on { display: none; }
.sala-som[aria-pressed="true"] .som-off { display: none; }
.sala-fone figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.4; color: #8D90A2; text-align: center; }
@media (max-width: 900px) {
  .gv-sala { grid-template-columns: minmax(0, 1fr); width: calc(100% - 40px); padding: 40px 0 56px; gap: 28px; }
  .gv-sala-fones { justify-content: center; gap: 18px; }
  .sala-fone { width: min(46%, 250px); }
  .gv-sala-fones .sala-fone:nth-child(2) { margin-top: 32px; }
}
@media (max-width: 600px) { .gv-sala { width: calc(100% - 32px); } .sala-tela { border-radius: 20px; } }
