/* Abertura com datas + história */
.hero { height: auto; min-height: max(100svh, 620px); display: grid; align-items: center; }
.hero-texto { padding: 70px 28px 40px; }
.hero h1 { width: min(46vw, 640px, 60svh); }
.hero h1 .dez { clip-path: inset(5% 0 0); }
.hero-pine { width: 84px; margin-bottom: 10px; }
.lema { margin-bottom: 28px; }
.datas { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); width: min(820px, calc(100vw - 2 * var(--lado) - 40px)); margin: 0 0 30px; padding: 0; border: solid var(--rosa); border-width: 2px 0; scroll-margin-top: 60svh; }
.datas li { padding: 14px 8px 12px; border-left: 1px solid var(--linha); background: rgba(11, 10, 8, .55); }
.datas li:first-child { border-left: 0; }
.datas b { display: block; font: 400 clamp(16px, 1.55vw, 24px)/1.25 var(--serif); text-transform: uppercase; color: var(--rosa); white-space: nowrap; }
.datas span { display: block; font: 700 13px/1.35 var(--sans); }
.datas small { display: block; font-size: 12px; line-height: 1.3; color: var(--cinza); }
.datas .passou b { color: var(--cinza); }

/* história: a roda */
.historia { position: relative; } /* seção normal: a rolagem passa direto; a roda só anda no clique */
.roda-palco { position: relative; height: max(100svh, 640px); overflow: hidden; display: grid; grid-template-columns: minmax(300px, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 60px 28px 20px calc(var(--lado) + 30px); background: #070604; }
.roda-texto { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; max-width: 440px; }
.roda-texto > div { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .3s; }
[data-fase=abre] .f-abre, [data-fase=edicao] .f-edicao, [data-fase=fim] .f-fim { opacity: 1; visibility: visible; transform: none; }
.roda-texto h2 { margin: 14px 0; font: 400 clamp(30px, 3.5vw, 54px)/1.14 var(--serif); text-transform: uppercase; text-wrap: balance; }
.roda-texto .f-abre > p:last-child { margin: 0; font-size: 16px; color: #e6dcc8; max-width: 34ch; }
.roda-num { margin: 0; font: 400 clamp(64px, 7.4vw, 116px)/1.12 var(--serif); color: var(--rosa); }
[data-fase=abre] .roda-conta { visibility: hidden; }
.roda-texto h3 { margin: 4px 0 14px; font: 400 clamp(22px, 2.1vw, 32px)/1.18 var(--serif); text-transform: uppercase; text-wrap: balance; }
.roda-texto h3:empty { display: none; }
.roda-quem { margin: 0 0 12px; font-size: 16px; line-height: 1.55; max-width: 38ch; }
.roda-meta { margin: 0 0 22px; font-size: 14px; color: var(--cinza); }
#roda-ouvir { border: 0; font-size: 12px; cursor: pointer; }
.f-fim img { width: min(100%, 360px); margin-bottom: 14px; }

.roda { position: relative; width: min(100svh - 50px, 60vw); margin: -34px -20px -34px -40px; aspect-ratio: 1; }
.roda svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roda-fundo { position: absolute; inset: 24.6%; border-radius: 50%; overflow: hidden; background: #14100a; box-shadow: 0 0 90px rgba(253, 178, 2, .16); }
.fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; filter: contrast(1.12); }
.fundo.claro { filter: brightness(1.5); }
.fundo.on { opacity: 1; }
.roda-fundo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 50px 8px rgba(7, 6, 4, .7); }
.roda text { font: 400 13px var(--sans); fill: #b5ab96; opacity: 0; transition: opacity .25s, fill .2s; }
.roda text.dentro { opacity: 1; }
.roda text.agora { fill: var(--rosa); font-weight: 700; font-size: 15px; }
.roda circle { fill: #5c4714; transition: fill .25s; }
.roda circle.dentro { fill: #b98310; }
.roda circle.agora { fill: var(--rosa); stroke: var(--rosa); stroke-width: 3.5; }
.lacos path { fill: rgba(253, 178, 2, .05); stroke: #ffd36b; stroke-width: 1; opacity: .85; stroke-dasharray: 1; animation: ligar .6s ease-out both; }
@keyframes ligar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.roda-lista { display: none; }

.roda-nav { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 22px; }
.roda-conta { flex: none; display: flex; align-items: center; gap: 10px; margin: 0; width: 148px; font: 400 13px/1.2 var(--sans); }
.roda-conta b { font: 400 40px/1 var(--serif); color: var(--rosa); min-width: 62px; }
.roda-anos { --feito: 0; position: relative; flex: 1; display: flex; padding-top: 10px; }
.roda-anos::before, .roda-anos::after { content: ''; position: absolute; left: 0; top: 6px; width: 100%; height: 2px; background: #3a2e12; }
.roda-anos::after { background: var(--rosa); transform: scaleX(var(--feito)); transform-origin: left; transition: transform .25s; }
.roda-anos button { flex: 1 1 0; text-align: left; }
.roda-nav button, .roda-link { border: 0; background: none; min-height: 40px; padding: 0; color: var(--cinza); font: 400 13px/40px var(--sans); cursor: pointer; white-space: nowrap; }
.roda-nav button:hover, .roda-link:hover { color: var(--perola); }
.roda-nav .on { color: var(--rosa); font-weight: 700; }
.roda-nav .roda-link { color: var(--perola); }
.roda-palco :focus-visible { outline: 2px solid var(--perola); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }

.todas { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 2px solid var(--rosa); background: var(--fundo); color: var(--perola); }
.todas::backdrop { background: rgba(0, 0, 0, .85); }
.todas-corpo { position: relative; padding: 24px; }
.todas h2 { margin: 0 50px 18px 0; font: 400 36px/1.15 var(--serif); text-transform: uppercase; }
.todas-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 28px; cursor: pointer; }
.todas-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px 14px; }
.todas-grade button { width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.todas-grade .capa { display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.todas-grade img { width: 100%; height: 100%; object-fit: cover; }
.todas-grade button:hover b { color: var(--rosa); }
.todas-grade b { display: block; margin: 8px 0 3px; font: 700 14px/1.3 var(--sans); }
.todas-grade small { display: block; font-size: 12px; line-height: 1.4; color: var(--cinza); }

/* Tela estreita: o disco em cima e os nomes numa lista que cresce embaixo */
@media (max-width: 860px) {
  .roda-palco { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr auto; gap: 10px; padding: 78px 18px 12px; justify-items: center; }
  .roda { grid-row: 2; width: 24svh; margin: 0; }
  .roda svg { display: none; }
  .roda-fundo { inset: 0; }
  .roda-texto { position: relative; z-index: 2; grid-row: 3; max-width: 100%; width: 100%; text-align: center; align-self: start; }
  .roda-texto > div { display: flex; flex-direction: column; align-items: center; }
  .roda-num { font-size: clamp(60px, 11svh, 96px); margin-top: -6svh; text-shadow: 0 2px 24px #000; }
  .roda-texto h2 { font-size: 36px; }
  .roda-texto h3 { font-size: 24px; margin: 0 0 4px; }
  .roda-quem { display: none; }
  .roda-meta { margin-bottom: 10px; }
  .f-fim img { width: 190px; margin: 6px 0; }
  .f-fim .pilula { margin-top: 6px; }
  .roda-lista { grid-row: 4; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 2px 12px; max-width: 340px; margin: 0; padding: 0; list-style: none; font: 600 13px/1.5 var(--sans); }
  .roda-lista li { display: none; color: #a99f8b; }
  .roda-lista .agora { display: block; }
  [data-fase=fim] .roda-lista li:not(.agora) { display: none; }
  .roda-lista .agora { color: var(--rosa); font-weight: 700; }
  .roda-nav { grid-row: 6; width: 100%; flex-wrap: wrap; gap: 0 16px; align-items: center; }
  .roda-conta { flex: 1; }
  .roda-conta b { font-size: 30px; min-width: 40px; }
  .roda-anos { order: 3; flex-basis: 100%; }
  .roda-anos button { flex-basis: 27px; font-size: 11px; text-align: center; min-width: 0; }
}
@media (max-width: 760px) {
  .hero h1 { width: min(78vw, 46svh); }
  .sobre, .lema { letter-spacing: .14em; line-height: 1.5; }
  .datas { grid-template-columns: 1fr; width: 100%; max-width: 420px; }
  .datas li { display: grid; grid-template-columns: 1fr auto auto; column-gap: 12px; align-items: center; text-align: left; border-left: 0; border-top: 1px solid var(--linha); padding: 8px 4px; }
  .datas li:first-child { border-top: 0; }
  .datas b { font-size: 20px; }
}

/* Textura da roda: grão de filme e sulcos de disco em volta do círculo */
.roda-palco::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .8 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.roda-palco::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 70% 45%, rgba(253, 178, 2, .07), transparent 55%), radial-gradient(ellipse at 15% 100%, rgba(253, 178, 2, .05), transparent 50%); }
.roda::before { content: ''; position: absolute; inset: -22%; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, rgba(253, 178, 2, .05) 0 1px, transparent 1px 7px); -webkit-mask: radial-gradient(circle, transparent 30%, #000 42%, #000 58%, transparent 72%); mask: radial-gradient(circle, transparent 30%, #000 42%, #000 58%, transparent 72%); }
.roda-texto, .roda, .roda-nav, .roda-lista { position: relative; z-index: 1; }

/* Fundo da roda: fotos do Zepelim em preto e branco, trocando devagar (galeria.js) */
.roda-fotos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.roda-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.15); transform: scaleX(var(--fx, 1)) scale(1.02); transition: opacity 2.4s ease; }
.roda-fotos img.on { opacity: .16; animation: respira 9s ease-out both; }
.roda-fotos::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 48%, transparent 30%, #070604 92%); }
@keyframes respira { from { transform: scaleX(var(--fx, 1)) scale(1.02) translate3d(0, 0, 0); } to { transform: scaleX(var(--fx, 1)) scale(var(--z, 1.12)) translate3d(var(--dx, -1.5%), var(--dy, -1%), 0); } }
.roda-palco::before { z-index: 1; }
.roda-texto, .roda, .roda-nav, .roda-lista { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .roda-fotos img.on { animation: none; } }

/* Navegação da roda por clique */
#roda-comecar { margin-top: 22px; border: 0; cursor: pointer; }
.roda-setas { display: flex; gap: 8px; flex: none; }
.roda-nav .roda-setas button { min-height: 40px; padding: 0 16px; border-radius: 6px; background: #1e1910; color: var(--perola); font-weight: 700; line-height: 40px; }
.roda-nav .roda-setas button:hover { background: var(--rosa); color: #000; }
.roda-nav .roda-setas button:disabled { opacity: .35; cursor: default; background: #1e1910; color: var(--perola); }
@media (max-width: 1100px) { .roda-setas { order: -1; width: 100%; justify-content: space-between; } .roda-setas button { flex: 1; } }
