/* op · Opiniões — a sala apagada; as frases acendem */
.op { --op-rot: #e2bd84; --op-apagado: rgb(243 234 217 / .17); --op-linha: rgb(243 234 217 / .15); }
.op .wf-dentro { padding-top: clamp(1.5rem, 3vw, 3rem); }
.op-num { font-family: var(--f-titulo); font-weight: 400; line-height: .86; color: var(--fio); }

/* abertura: o título e os dois números das plataformas, grandes */
.op-cab { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem); align-items: end; }
.op-cab .wf-h2 { max-width: 19ch; font-size: clamp(2.3rem, 5.4vw, 5rem); }
.op-cab-nota { padding-bottom: .5em; }
.op-notas { grid-column: 1 / -1; }
.op-notas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--op-linha); }
.op-notas li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1rem, 2vw, 2rem); align-items: end; padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.op-notas li + li { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 1px solid var(--op-linha); }
.op-notas .op-num { grid-row: span 2; font-size: clamp(5.5rem, 12.5vw, 11.5rem); text-shadow: 0 0 26px rgb(255 205 130 / .5), 0 0 80px rgb(255 190 110 / .28); }
.op-nota-txt { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--texto-noite); align-self: end; line-height: 1.3; }
.op-nota-txt small { display: block; font-size: .95rem; color: var(--texto-noite-2); }
.op-notas .wf-elo { color: var(--op-rot); font-size: .95rem; align-self: start; justify-self: start; }

/* palco: índice preso à esquerda, frases à direita */
.op-palco { margin-top: clamp(4rem, 9vw, 8rem); display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 0 clamp(2.5rem, 7vw, 7rem); align-items: start; }
.op-indice { position: sticky; top: clamp(1.5rem, 9vh, 6rem); }
.op-mostra { margin: 0; display: grid; gap: .7rem; }
.op-mostra .op-num { font-size: clamp(6rem, 11vw, 10rem); text-shadow: 0 0 26px rgb(255 205 130 / .5), 0 0 80px rgb(255 190 110 / .28); transition: opacity .45s ease; font-variant-numeric: lining-nums; }
.op-mostra .op-num.op-troca { opacity: 0; }
.op-mostra .wf-rotulo { color: var(--op-rot); }
.op-lista { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.op-item { position: relative; display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; min-height: 56px; padding: .85rem 0 1rem; text-decoration: none; color: var(--texto-noite-2); border-top: 1px solid var(--op-linha); transition: color .6s ease; }
.op-item b { font-family: var(--f-titulo); font-weight: 400; font-size: 1.35rem; white-space: nowrap; }
.op-item > span:not(.op-regua) { font-size: 1rem; }
.op-item:hover, .op-item:focus-visible, .op-item[aria-current] { color: var(--fio); }
.op-item:focus-visible { outline: 2px solid var(--luz); outline-offset: 3px; }
/* a régua: o fio de luz mede quantas das 250 opiniões falam daquilo */
.op-regua { position: relative; display: block; height: 3px; background: var(--op-linha); border-radius: 2px; }
.op-item .op-regua { grid-column: 1 / -1; margin-top: .6rem; height: 2px; }
.op-fio { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--op-p) * 100%); background: var(--texto-noite-2); border-radius: 2px; transition: background-color .8s ease, box-shadow .9s ease; }
.op-fio + .op-fio { background: var(--op-rot); }
.op-item[aria-current] .op-fio, .op-tema.op-foco .op-fio { background: var(--fio); box-shadow: 0 0 6px #fff3dc, 0 0 18px rgb(255 214 150 / .9), 0 0 44px rgb(255 200 120 / .55); }
.op-item[aria-current] .op-fio + .op-fio, .op-tema.op-foco .op-fio + .op-fio { background: var(--op-rot); box-shadow: 0 0 14px rgb(255 200 120 / .6); }

.op-temas { list-style: none; margin: 0; padding: 0; }
.op-tema { position: relative; padding: 0 0 clamp(4.5rem, 9vw, 8rem); scroll-margin-top: 5rem; }
.op-tema::before { content: ""; position: absolute; z-index: -1; left: -30%; top: -35%; width: 135%; height: 150%; background: radial-gradient(closest-side in oklab, rgb(112 82 46 / .3), rgb(96 72 42 / .12) 55%, rgb(74 58 40 / 0)); opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.op-tema.op-foco::before { opacity: 1; }
.op-conta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin-bottom: 1.6rem; }
.op-conta .op-num { display: none; }
.op-conta .wf-rotulo { display: none; }
.op-conta .wf-h3 { order: 1; font-family: var(--f-texto); font-size: var(--t-rotulo); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--op-rot); }
.op-conta .op-regua { display: none; }
.op-frases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3.5rem); align-items: start; }
.op-frase blockquote { font-size: clamp(1.3rem, 1.85vw, 1.7rem); line-height: 1.3; }
.op-frase:not(.op-frase--g) { padding-top: 1.4rem; border-top: 1px solid var(--op-linha); }
/* o L de luz marca a frase que está acesa */
.op-frase--g { position: relative; }
.op-frase--g::before, .op-frase--g::after { content: ""; position: absolute; background: var(--fio); border-radius: 2px; box-shadow: 0 0 6px #fff3dc, 0 0 20px rgb(255 214 150 / .9), 0 0 54px rgb(255 200 120 / .55); opacity: 0; transition: opacity 1.2s ease, transform 1.4s var(--curva); }
.op-frase--g::before { left: -1.75rem; top: .3rem; bottom: -.9rem; width: 2px; transform: scaleY(0); transform-origin: top; }
.op-frase--g::after { left: -1.75rem; bottom: -.9rem; height: 2px; width: 3.5rem; transform: scaleX(0); transform-origin: left; transition-delay: .5s; }
.op-foco .op-frase--g::before, .op-foco .op-frase--g::after { opacity: 1; transform: none; }
.op-frase--g figcaption { padding-left: 2.6rem; }
.op-frase--g { grid-column: 1 / -1; }
.op-frase--g blockquote { font-size: clamp(2rem, 3.9vw, 3.6rem); line-height: 1.1; letter-spacing: -.008em; text-wrap: balance; }
.op-frase--g ~ .op-frase:nth-child(2):last-child { grid-column: 2; }
.op-tema blockquote { color: var(--texto-noite-2); }

/* o gesto: apagado → aceso quando chega à faixa de leitura; quem está no centro ganha o halo */
.js .op-tema blockquote, .js .op-tema .wf-h3 { transition: color 1.3s ease, text-shadow 1.6s ease; }
.js .op-tema .wf-rotulo, .js .op-tema figcaption, .js .op-tema blockquote::before { transition: opacity 1.3s ease; }
.js .op-tema:not(.op-aceso) blockquote, .js .op-tema:not(.op-aceso) .wf-h3 { color: var(--op-apagado); }
.js .op-tema:not(.op-aceso) .wf-rotulo, .js .op-tema:not(.op-aceso) figcaption, .js .op-tema:not(.op-aceso) blockquote::before { opacity: .22; }
.op-tema.op-foco blockquote { color: var(--fio); text-shadow: 0 0 20px rgb(255 205 130 / .5), 0 0 64px rgb(255 190 110 / .3); }

.op-fecho { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--op-linha); display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.op-frase-fim blockquote { font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.14; max-width: 24ch; max-width: 52rem; color: var(--fio); text-wrap: balance; }
.op-eco { margin: 0; max-width: 34rem; font-size: 1rem; line-height: 1.6; color: var(--texto-noite-2); }
.op-fecho .wf-botao { margin-top: .8rem; }

@media (max-width: 999.98px) {
  .op-palco { grid-template-columns: minmax(0, 1fr); }
  .op-indice { position: static; }
  .op-mostra, .op-lista { display: none; }
  .op-indice { display: none; }
  .op-conta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1rem; align-items: end; margin-bottom: 1.8rem; }
  .op-conta .op-num { display: block; grid-row: 1 / span 2; font-size: clamp(4.2rem, 19vw, 6rem); }
  .js .op-tema .op-num { transition: color 1.3s ease, text-shadow 1.6s ease; }
  .js .op-tema:not(.op-aceso) .op-num { color: var(--op-apagado); }
  .op-tema.op-foco .op-num { text-shadow: 0 0 22px rgb(255 205 130 / .5), 0 0 60px rgb(255 190 110 / .28); }
  .op-conta .wf-h3 { order: 0; grid-column: 2; font-family: var(--f-titulo); font-size: 1.5rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--texto-noite); align-self: end; }
  .op-conta .wf-h3::after { content: none; }
  .op-conta .wf-rotulo { display: block; grid-column: 2; grid-row: 1; align-self: end; color: var(--op-rot); letter-spacing: .1em; }
  .op-conta .wf-h3 { grid-row: 2; }
  .op-conta .op-regua { display: block; grid-column: 1 / -1; margin-top: .9rem; }
  .op-tema::before { left: -30%; width: 160%; }
}
@media (max-width: 699.98px) {
  .op-cab { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .op-notas { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 1rem; }
  .op-frase--g { padding-left: 1.1rem; }
  .op-frase--g::before, .op-frase--g::after { left: 0; }
  .op-frase--g::after { width: 2.4rem; }
  .op-frase--g figcaption { padding-left: 1.9rem; }
  .op-frase:not(.op-frase--g) { margin-left: 1.1rem; padding-top: 0; border-top: 0; }
  .op-notas li { border-top: 1px solid var(--op-linha); padding: 1.4rem 0 1.2rem; }
  .op-notas li + li { padding-left: 0; border-left: 0; }
  .op-notas .op-num { font-size: clamp(5.2rem, 27vw, 7rem); }
  .op-frases { grid-template-columns: minmax(0, 1fr); }
  .op-frase--g ~ .op-frase:nth-child(2):last-child { grid-column: auto; }
  .op-frase--g blockquote { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .op-frase:not(.op-frase--g) { padding-left: 1.1rem; border-left: 1px solid var(--op-linha); }
  .op-fecho { justify-items: start; text-align: left; }
  .op-fecho .wf-botao { width: 100%; }
}
/* foco visível na seção escura (o contorno do hero é nogueira, some no escuro) */
.op a:focus-visible { outline: 2px solid var(--luz); outline-offset: 4px; }
