.pg-hero--luz.faixa-preta { padding-bottom: calc(var(--faixa-pe) + clamp(32px, 4vw, 64px)); }
.pg-hero--luz .pg-hero__grid { grid-template-rows: auto 1fr; }
.pg-hero--luz .pg-hero__title { grid-column: 1; grid-row: 1; max-width: 11em; }
.pg-hero--luz .pg-hero__texto { grid-row: 2; }
.pg-hero--luz .pg-hero__prova {
  grid-row: 1 / span 2; align-self: start; justify-self: center; width: clamp(220px, 23vw, 330px); max-width: none;
  margin-top: calc(-1 * clamp(44px, 7vw, 104px)); animation: none;
}

.lampada { position: relative; width: 100%; aspect-ratio: 9 / 16; pointer-events: none; }
.lampada__quadros { display: none; position: absolute; top: 0; left: -38.889%; width: 177.778%; max-width: none; height: 100%; mix-blend-mode: screen; }
.lampada.tem-quadros .lampada__quadros { display: block; }

.fluxo { --no: 64px; --volta: 4.4s; --fecho: 0 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); }
.fluxo__passo { --i: 0; position: relative; display: grid; justify-items: center; align-content: start; padding: 0 clamp(10px, 1.4vw, 20px); text-align: center; }
.fluxo__passo:nth-child(2) { --i: 1; }
.fluxo__passo:nth-child(3) { --i: 2; }
.fluxo__passo:nth-child(4) { --i: 3; }
.fluxo__passo:nth-child(2) .fluxo__seg { --gota: 8px; }
.fluxo__passo:nth-child(3) .fluxo__seg { --gota: 10px; }
.fluxo__no {
  position: relative; z-index: 1; display: grid; place-items: center; width: var(--no); aspect-ratio: 1;
  border-radius: 50%; background: rgba(12, 17, 14, .94); border: 1px solid var(--fio-2); color: var(--verde);
}
.fluxo__no::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--verde); opacity: 0; pointer-events: none; }
.fluxo__icone { width: 44%; height: 44%; }
.fluxo__passo--fim .fluxo__no { background: var(--verde); border-color: var(--verde); color: var(--preto); }
.fluxo__passo h3 { margin-top: 22px; font-size: clamp(22px, 2vw, 28px); }
.fluxo__passo--fim h3 { color: var(--verde); }
.fluxo__passo p { margin-top: 10px; max-width: 18em; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.fluxo__seg { position: absolute; top: calc(var(--no) / 2); left: calc(50% + var(--no) / 2 + 10px); width: calc(100% - var(--no) - 20px); height: 1px; background: var(--fio-2); }
.fluxo__seg::before { content: ""; position: absolute; inset: 0; background: var(--verde); opacity: .65; transform-origin: 0 0; }
.fluxo__passo:nth-child(3) .fluxo__seg::after {
  content: ""; position: absolute; right: 1px; top: 50%; width: 8px; height: 8px;
  border-top: 1.5px solid var(--verde); border-right: 1.5px solid var(--verde); transform: translateY(-50%) rotate(45deg);
}
.fluxo__seg i { position: absolute; inset: 0; opacity: 0; transform: translateX(-100%); }
.fluxo__seg i::after {
  content: ""; position: absolute; right: 0; top: 50%; width: var(--gota, 6px); aspect-ratio: 1; border-radius: 50%;
  background: var(--verde); box-shadow: 0 0 14px 3px rgba(143, 223, 176, .5); transform: translate(50%, -50%);
}
@keyframes fluxo-corre { 0% { opacity: 0; transform: translateX(-100%); animation-timing-function: cubic-bezier(.5, 0, .5, 1); } 4%, 21% { opacity: 1; } 25%, 100% { opacity: 0; transform: translateX(0); } }
@keyframes fluxo-desce { 0% { opacity: 0; transform: translateY(-100%); animation-timing-function: cubic-bezier(.5, 0, .5, 1); } 4%, 21% { opacity: 1; } 25%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes fluxo-pulso { 0% { opacity: .9; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.55); } }
@keyframes fluxo-chega { 0% { scale: 1; } 5% { scale: 1.1; } 16%, 100% { scale: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .fluxo__no, .js .fluxo__passo h3, .js .fluxo__passo p {
    opacity: 0; transform: translateY(14px);
    transition: opacity .6s ease calc(var(--i) * .22s), transform .8s var(--ease) calc(var(--i) * .22s);
  }
  .js .fluxo.is-visto .fluxo__no, .js .fluxo.is-visto .fluxo__passo h3, .js .fluxo.is-visto .fluxo__passo p { opacity: 1; transform: none; }
  .js .fluxo__seg::before { scale: var(--fecho); transition: scale .7s var(--ease) calc(var(--i) * .22s + .25s); }
  .js .fluxo.is-visto .fluxo__seg::before { scale: 1; }
  .fluxo.is-ativo .fluxo__seg i { animation: fluxo-corre var(--volta) calc(1.1s + var(--i) * var(--volta) / 4) infinite; }
  .fluxo.is-ativo .fluxo__no::after { animation: fluxo-pulso var(--volta) var(--ease) calc(1.1s + var(--i) * var(--volta) / 4) infinite; }
  .fluxo.is-ativo .fluxo__passo--fim .fluxo__no { animation: fluxo-chega var(--volta) var(--ease) calc(1.1s + var(--i) * var(--volta) / 4) infinite; }
}

.historias .sec-head { margin-inline: auto; text-align: center; }
.historias .sec-head__sub { margin-inline: auto; }
.historia .cartao__grande { font-family: var(--f-texto); font-weight: 600; letter-spacing: -.02em; }
.historia .cartao__linha b { font-family: var(--f-texto); font-weight: 600; font-size: 15px; }

.historias__trilho { margin-top: clamp(36px, 4.4vw, 56px); }
.historias__bandeja { display: flex; justify-content: center; gap: clamp(14px, 3.2vw, 44px); }
.bolha { display: grid; justify-items: center; gap: 9px; color: var(--tinta-2); font-size: 14px; line-height: 1.2; text-decoration: none; }
.bolha__circulo {
  position: relative; display: grid; place-items: center; width: clamp(62px, 6.2vw, 84px); aspect-ratio: 1;
  transition: transform .5s var(--ease);
}
.bolha__circulo::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: rgba(12, 17, 14, .94); border: 1px solid var(--fio); }
.bolha__anel { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.bolha__anel circle { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.bolha__trilha { stroke: var(--verde); transition: stroke .4s; }
.bolha__cheio { stroke: var(--verde); stroke-dasharray: 0 100; }
.bolha__icone { position: relative; width: 40%; height: 40%; color: var(--verde); }
.bolha__nome { transition: color .3s; }
.bolha:hover .bolha__nome, .bolha.is-ativa .bolha__nome { color: var(--tinta); }
.bolha:focus-visible { outline: none; }
.bolha:focus-visible .bolha__circulo { outline: 2px solid var(--verde); outline-offset: 4px; border-radius: 50%; }
.bolha.is-vista .bolha__trilha, .bolha.is-ativa .bolha__trilha { stroke: var(--fio-2); }
.bolha.is-ativa .bolha__circulo { transform: scale(1.08); }

.historias__abertas { margin-top: clamp(40px, 5vw, 64px); }
.historia {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--fio);
}
.historia h3 { font-size: clamp(28px, 2.8vw, 40px); max-width: 15em; }
.historia__lead { margin-top: 16px; font-size: clamp(16px, 1.3vw, 17.5px); max-width: 32em; }
.historia__cartao { justify-self: center; }
.historia__barras { display: none; gap: 4px; margin: -2px 0 14px; }
.historia__barras i { position: relative; flex: 1; height: 3px; border-radius: 2px; background: var(--fio-2); overflow: hidden; }
.historia__barras i::after { content: ""; position: absolute; inset: 0; background: var(--tinta); transform-origin: 0 50%; transform: scaleX(var(--b, 0)); }

.historias--rolo .historias__trilho { height: calc(var(--n, 4) * 78vh + 100vh); margin-top: 0; }
.historias--rolo .historias__palco {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  display: grid; align-content: center; overflow: hidden;
}
.historias--rolo .historias__abertas { display: grid; margin-top: clamp(22px, 4vh, 44px); }
.historias--rolo .historia { grid-area: 1 / 1; padding: 0; border-top: 0; visibility: hidden; }
.historias--rolo .historia.is-aberta { visibility: visible; }
.historias--rolo .historia__barras { display: flex; }
.historias--rolo .historia [data-parte] { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.historias--rolo .historia [data-parte].is-oculta { opacity: 0; transform: translateY(10px); }
.historias--rolo .historia__cartao { background: rgb(12, 17, 14); }

@media (max-width: 960px) {
  .pg-hero--luz .pg-hero__prova { grid-row: 1; grid-column: 1; width: clamp(120px, 30vw, 190px); margin-bottom: 6px; }
  .pg-hero--luz .pg-hero__title { grid-row: 2; }
  .pg-hero--luz .pg-hero__texto { grid-row: 3; }
  .historia { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .historia__cartao { justify-self: start; }
}
@media (max-width: 720px) {
  .fluxo { --no: 52px; --fecho: 1 0; grid-template-columns: minmax(0, 1fr); }
  .fluxo__passo { grid-template-columns: var(--no) minmax(0, 1fr); column-gap: 18px; justify-items: start; padding: 0 0 34px; text-align: left; }
  .fluxo__passo:last-child { padding-bottom: 0; }
  .fluxo__no { grid-row: 1 / span 2; align-self: start; }
  .fluxo__passo h3 { grid-column: 2; margin-top: 12px; font-size: 24px; }
  .fluxo__passo p { grid-column: 2; margin-top: 8px; max-width: 30em; }
  .fluxo__seg { top: calc(var(--no) + 10px); bottom: 10px; left: calc(var(--no) / 2 - .5px); width: 1px; height: auto; }
  .fluxo__passo:nth-child(3) .fluxo__seg::after { right: auto; top: auto; left: 50%; bottom: 1px; transform: translateX(-50%) rotate(135deg); }
  .fluxo__seg i { transform: translateY(-100%); }
  .fluxo__seg i::after { right: auto; top: auto; left: 50%; bottom: 0; transform: translate(-50%, 50%); }
  .fluxo.is-ativo .fluxo__seg i { animation-name: fluxo-desce; }
  .historias--rolo .historia { gap: 16px; }
  .historias--rolo .historia h3 { font-size: 24px; }
  .historias--rolo .historia__lead { margin-top: 8px; font-size: 15px; line-height: 1.5; }
  .historias--rolo .historias__abertas { margin-top: 20px; }
  .bolha { font-size: 13px; }
}
@media (max-width: 720px) and (max-height: 820px) {
  .historias--rolo .historia__lead { display: none; }
}
@media (max-width: 720px) and (max-height: 760px) {
  .historias--rolo .historias__palco { align-content: start; padding-top: 12px; }
  .historias--rolo .bolha { gap: 5px; font-size: 12px; }
  .historias--rolo .bolha__circulo { width: 52px; }
  .historias--rolo .historias__abertas { margin-top: 12px; }
  .historias--rolo .historia { gap: 10px; }
  .historias--rolo .historia h3 { font-size: 20px; }
  .historias--rolo .historia__cartao { padding: 14px 14px 12px; }
  .historias--rolo .historia__barras { margin-bottom: 10px; }
  .historias--rolo .cartao__grande { margin-top: 10px; }
  .historias--rolo .cartao__linhas { margin-top: 10px; }
  .historias--rolo .cartao__linha { padding: 6px 0; font-size: 13.5px; }
  .historias--rolo .cartao__rec { margin-top: 10px; font-size: 13px; line-height: 1.45; }
}
