/* tecnologia-v2.css — página /tecnologia em atos conduzidos pela rolagem.
   Paleta oficial: grafite, dourado e cinzas. Sombras por gradiente/filter,
   porque marca.css zera box-shadow no site todo. */
/* vivo.css põe overflow em html e body, o que transforma o body em área de rolagem
   própria e anula o position:sticky. Nesta página, clip no eixo x e nada no y. */
html:has(body.tv-pagina), body.tv-pagina { overflow-x:clip !important; overflow-y:visible !important; }
.tv { --g:#1E2022; --g2:#34373A; --d:#CF9D68; --d2:#B58451; --c1:#EDEDED; --c2:#F5F5F5; --tx:#5C6266;
      --topo:88px; color:var(--g); background:var(--g); text-align:left; overflow-x:clip; }
.tv * { text-align:inherit; box-sizing:border-box; }
.tv h1, .tv h2, .tv h3, .tv h4, .tv p, .tv ul, .tv ol { margin:0; }
.tv ul, .tv ol { padding:0; list-style:none; }
.tv-largura { max-width:1200px; margin:0 auto; padding:0 28px; }
.tv-palco { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; }
.tv-cabeca h2 { font-size:clamp(1.7rem,3.2vw,2.6rem); font-weight:800; line-height:1.12; letter-spacing:-.015em; max-width:22ch; }
.tv-cabeca > p { margin-top:.8rem; font-size:1.05rem; line-height:1.6; color:var(--tx); max-width:60ch; }

.tv-acoes { display:flex; flex-wrap:wrap; gap:.75rem; }
.tv-btn { display:inline-flex; align-items:center; min-height:50px; padding:.8rem 1.6rem; border-radius:999px; font-weight:700;
          font-size:.95rem; text-decoration:none; transition:background-color .15s ease-out, color .15s ease-out; }
.tv-btn-ouro { background:var(--d); color:var(--g); }
.tv-btn-ouro:hover { background:var(--d2); color:var(--g); }
.tv-btn-claro { border:1.5px solid rgba(255,255,255,.7); color:#fff; }
.tv-btn-claro:hover { background:var(--g2); color:#fff; }
.tv a:focus-visible, .tv button:focus-visible { outline:2px solid var(--d); outline-offset:3px; }

/* ---------- Ato 1: a folha ---------- */
.tv-abre { background:var(--g); color:#fff; }
.tv-pauta { position:absolute; inset:-120px 0; pointer-events:none;
  background:
    linear-gradient(90deg, transparent calc(8% - 1px), rgba(207,157,104,.16) 8%, transparent calc(8% + 1px)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(255,255,255,.045) 35px 36px);
  transform:translateY(calc(var(--p,0) * -110px)); }
.tv-abre-grade { position:relative; height:100%; max-width:1200px; margin:0 auto; padding:var(--topo) 28px 40px;
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:3rem; align-items:center; }
.tv-abre-texto { opacity:calc(1 - var(--p,0) * 1.4); transform:translateY(calc(var(--p,0) * -60px)); }
.tv-trilha { font-size:.9rem; color:#9DA1A5; margin-bottom:1.4rem !important; }
.tv-trilha a { color:var(--d); font-weight:600; text-decoration:none; }
.tv h1 { color:#fff; font-size:clamp(2.4rem,5.2vw,4.4rem); font-weight:800; line-height:1.04; letter-spacing:-.025em; max-width:12ch; }
.tv-lide { margin-top:1.4rem !important; font-size:1.1rem; line-height:1.7; color:#C8CACC; max-width:52ch; }
.tv-abre .tv-acoes { margin-top:2rem; }

.tv-mesa { position:relative; height:100%; display:grid; place-items:center; perspective:1400px; }
.tv-folha { position:relative; width:min(400px,34vw); aspect-ratio:.74; background:#fff; border-radius:10px; padding:9% 9% 0;
  transform-style:preserve-3d;
  transform: translateY(calc(var(--p,0) * 40px)) rotateX(calc(22deg - var(--p,0) * 16deg + var(--my,0) * 1deg)) rotateY(calc(var(--mx,0) * 1deg)) rotateZ(calc(-7deg + var(--p,0) * 5deg));
  transition:transform .25s ease-out; }
.tv-folha::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(calc(120deg + var(--mx,0) * 3deg), rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 64%); mix-blend-mode:soft-light; }
.tv-sombra { position:absolute; left:50%; top:50%; width:min(400px,34vw); height:min(540px,46vw); transform:translate(-44%,-40%) rotateX(70deg);
  background:radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter:blur(18px); z-index:-1; }
.tv-folha-topo { display:flex; align-items:center; gap:10px; margin-bottom:12%; }
.tv-folha-s { width:22px; height:34px; fill:var(--d2); }
.tv-folha-topo span { height:7px; border-radius:3px; background:#D9DBDD; width:30%; }
.tv-folha-topo span + span { width:16%; margin-left:auto; }
.tv-linhas i { position:relative; display:block; height:8px; width:var(--w); border-radius:3px; background:#E2E3E4; margin-bottom:5.2%; }
.tv-linhas i.tv-par { margin-top:9%; }
.tv-linhas i::after { content:""; position:absolute; inset:-3px -3px; border-radius:3px; background:var(--g);
  transform:scaleX(var(--t,0)); transform-origin:left center; }
.tv-lacre { position:absolute; right:9%; bottom:7%; width:27%; aspect-ratio:1; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 35% 30%, #E2B987, var(--d) 45%, var(--d2) 100%);
  filter:drop-shadow(0 calc(4px + (1 - var(--l,0)) * 30px) calc(6px + (1 - var(--l,0)) * 20px) rgba(0,0,0,.35));
  opacity:min(1, calc(var(--l,0) * 3));
  transform:translateZ(calc((1 - var(--l,0)) * 260px)) scale(calc(1 + (1 - var(--l,0)) * .5)); }
.tv-lacre::before { content:""; position:absolute; inset:8%; border-radius:50%; border:1.5px solid rgba(30,32,34,.35); }
.tv-lacre svg { width:34%; height:52%; fill:var(--g); }
.tv-legenda { position:absolute; left:0; right:0; bottom:9vh; text-align:center !important; color:var(--d); font-weight:600; font-size:1.15rem;
  opacity:var(--leg,0); transform:translateY(calc((1 - var(--leg,0)) * 14px)); padding:0 24px; }
.tv-rolar { position:absolute; left:50%; bottom:3vh; width:1.5px; height:44px; background:linear-gradient(var(--d), transparent);
  opacity:calc(1 - var(--p,0) * 4); }

/* ---------- Ato 2: trilho dos compromissos ---------- */
.tv-comp { background:#fff; }
.tv-comp .tv-palco { display:flex; flex-direction:column; justify-content:center; gap:3.2rem; padding-top:var(--topo); }
.tv-comp .tv-cabeca { max-width:1200px; width:100%; margin:0 auto; padding:0 28px; }
.tv-trilho { display:flex; gap:clamp(1.5rem,4vw,4rem); padding:0 28px 0 max(28px, calc((100vw - 1200px) / 2 + 28px)); width:max-content;
  transform:translateX(var(--x,0px)); will-change:transform; }
.tv-trilho article { flex:none; width:min(400px,78vw); border-top:2px solid var(--g); padding-top:1.2rem; }
.tv-trilho b { display:block; font-size:clamp(6rem,12vw,10.5rem); font-weight:300; line-height:.95; color:transparent;
  -webkit-text-stroke:1.5px var(--d2); margin-bottom:1rem; transition:color .35s ease-out; }
.tv-trilho article.on b { color:var(--d); }
.tv-trilho h3 { font-size:1.35rem; font-weight:800; margin-bottom:.5rem; }
.tv-trilho p { font-size:1rem; line-height:1.6; color:var(--g2); max-width:36ch; }
.tv-regua { max-width:1200px; width:calc(100% - 56px); margin:0 auto; height:2px; background:var(--c1); border-radius:2px; overflow:hidden; }
.tv-regua span { display:block; height:100%; background:var(--d); transform:scaleX(var(--p,0)); transform-origin:left; }

/* ---------- Ato 3: o caminho ---------- */
.tv-cam { background:var(--g); color:#fff; }
.tv-cam .tv-palco { display:grid; grid-template-rows:auto auto 1fr; align-content:start; gap:clamp(1.6rem,4.5vh,3.4rem);
  max-width:1200px; margin:0 auto; padding:calc(var(--topo) + 3vh) 28px 4vh; }
.tv-cam .tv-cabeca h2 { color:#fff; }
.tv-cam .tv-cabeca > p { color:#9DA1A5; }
.tv-percurso { position:relative; padding-top:64px; }
.tv-linha { position:absolute; left:8.333%; width:83.333%; top:64px; height:40px; transform:translateY(-11px); overflow:visible; }
.tv-linha line { stroke-width:2; vector-effect:non-scaling-stroke; }
.tv-linha-base { stroke:#45494C; }
.tv-linha-ouro { stroke:var(--d); stroke-dasharray:1; stroke-dashoffset:calc(1 - var(--a,0)); }
.tv-doc { position:absolute; top:0; left:calc(8.333% + 83.333% * var(--a,0)); width:34px; height:44px; margin-left:-17px; background:#fff; border-radius:4px;
  padding:8px 6px; transform:rotate(calc(var(--balanco,0) * 1deg)); filter:drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.tv-doc i { display:block; height:3px; border-radius:2px; background:#C8CACC; margin-bottom:5px; }
.tv-doc i:nth-child(2) { width:70%; }
.tv-estacoes { display:grid; grid-template-columns:repeat(6,1fr); }
.tv-estacoes button { appearance:none; background:none; border:0; color:#8A8F93; cursor:pointer; font:inherit; width:100%;
  display:flex; flex-direction:column; align-items:center; gap:.9rem; padding:0 .3rem; }
.tv-ponto { width:18px; height:18px; border-radius:50%; border:2px solid #6A6F73; background:var(--g); transition:all .25s ease-out; position:relative; z-index:1; }
.tv-ponto-humano { width:22px; height:22px; border-color:var(--d); }
.tv-nome { font-size:.88rem; font-weight:600; line-height:1.3; text-align:center !important; transition:color .2s ease-out; }
.tv-estacoes button.feito .tv-ponto { border-color:var(--d); background:var(--d); }
.tv-estacoes button.atual .tv-nome, .tv-estacoes button:hover .tv-nome { color:#fff; }
.tv-estacoes button.atual .tv-ponto { transform:scale(1.25); }
.tv-painel { border-top:1px solid #3C4043; padding-top:clamp(1.2rem,3vh,2rem); transition:opacity .2s ease-out, transform .2s ease-out; }
.tv-painel.troca { opacity:0; transform:translateY(8px); }
.tv-painel-n { color:var(--d); font-weight:700; font-size:.92rem; }
.tv-painel h3 { font-size:clamp(1.5rem,2.6vw,2.1rem); font-weight:800; margin:.3rem 0 1.2rem; color:#fff; }
.tv-painel-col { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; }
.tv-painel h4 { font-size:.95rem; font-weight:700; color:var(--d); margin-bottom:.45rem; }
.tv-painel-col p { color:#C8CACC; font-size:1.05rem; line-height:1.65; max-width:48ch; }

.tv-assina { position:absolute; inset:0; z-index:5; background:var(--g); opacity:var(--sg,0); pointer-events:none;
  display:grid; grid-template-columns:auto minmax(0,30rem); justify-content:center; align-items:center; gap:clamp(2rem,6vw,6rem); padding:var(--topo) 28px 0; }
.tv-assina-s { height:min(64vh,560px); width:calc(min(64vh,560px) * .639); overflow:visible;
  fill:var(--d); fill-opacity:var(--sf,0); stroke:var(--d); stroke-width:3; stroke-dasharray:1; stroke-dashoffset:calc(1 - var(--sd,0)); }
.tv-assina-texto { opacity:var(--st,0); transform:translateX(calc((1 - var(--st,0)) * 24px)); }
.tv-assina-a { color:var(--d); font-weight:700; }
.tv-assina-b { color:#fff; font-size:clamp(1.8rem,3.4vw,2.8rem); font-weight:800; line-height:1.12; margin:.6rem 0 1rem !important; letter-spacing:-.015em; }
.tv-assina-c { color:#C8CACC; font-size:1.1rem; line-height:1.6; }

/* ---------- Ato 4: fichas ---------- */
.tv-fer { background:var(--c2); padding:7rem 0 8rem; }
.tv-fichas { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; margin-top:3rem; align-items:stretch; }
.tv-ficha { position:relative; display:grid; perspective:1400px;
  transform:translate(calc((1 - var(--dl,1)) * (2 - var(--i)) * 104%), calc((1 - var(--dl,1)) * 50px)) rotate(calc((1 - var(--dl,1)) * (var(--i) - 2) * -5deg));
  z-index:calc(10 - var(--i)); }
.tv-ficha-frente, .tv-ficha-verso { grid-area:1/1; border-radius:16px; padding:1.6rem 1.4rem 1.4rem; display:flex; flex-direction:column;
  backface-visibility:hidden; -webkit-backface-visibility:hidden; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.tv-ficha-frente { background:#fff; border:1px solid var(--c1); }
.tv-ficha-verso { background:var(--g); color:#fff; transform:rotateY(180deg); }
.tv-ficha.virada .tv-ficha-frente { transform:rotateY(-180deg); }
.tv-ficha.virada .tv-ficha-verso { transform:rotateY(0); }
.tv-ficha-tipo { color:var(--d2); font-weight:700; font-size:.85rem; }
.tv-ficha h3 { font-size:1.45rem; font-weight:800; margin:.5rem 0 .3rem; }
.tv-ficha-sub { color:var(--tx); font-size:.88rem; line-height:1.45; margin-bottom:1rem !important; }
.tv-ficha-frente > p:not([class]) { font-size:.95rem; line-height:1.6; color:var(--g2); }
.tv-ficha-verso h4 { color:var(--d); font-size:.85rem; font-weight:700; margin-top:.9rem; }
.tv-ficha-verso h4:first-child { margin-top:0; }
.tv-ficha-verso p { font-size:.9rem; line-height:1.55; color:#D8DADC; margin-top:.25rem !important; }
.tv-virar { margin-top:auto; padding-top:1.2rem; align-self:flex-start; appearance:none; background:none; border:0; cursor:pointer; font:inherit;
  font-weight:700; font-size:.88rem; color:var(--g); text-decoration:underline; text-decoration-color:var(--d); text-underline-offset:5px; text-align:left !important; }
.tv-ficha-verso .tv-virar { color:#fff; }

/* ---------- Ato 5: o cofre ---------- */
.tv-cofre { background:var(--g2); color:#fff; }
.tv-cofre-grade { height:100%; max-width:1200px; margin:0 auto; padding:var(--topo) 28px 30px; display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(2rem,5vw,5rem); align-items:center; }
.tv-disco { display:grid; place-items:center; }
.tv-disco svg { width:min(470px,38vw); height:auto; overflow:visible; filter:drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.tv-disco-borda { fill:var(--g); stroke:#4A4E52; stroke-width:2; }
.tv-disco-gira { transform-origin:200px 200px; transform:rotate(var(--ang,0deg)); }
.tv-marcas line { stroke:#6A6F73; stroke-width:1.5; }
.tv-marcas line.longa { stroke:var(--d); stroke-width:2.5; }
.tv-disco-num text { fill:#9DA1A5; font-size:17px; font-weight:700; text-anchor:middle; dominant-baseline:middle; }
.tv-disco-miolo { fill:var(--g2); stroke:var(--d2); stroke-width:1.5; }
.tv-disco-dentro { transform-origin:200px 200px; transform:rotate(calc(var(--ang,0deg) * -.35)); }
.tv-disco-anel { fill:none; stroke:rgba(207,157,104,.45); stroke-width:1.5; stroke-dasharray:2 7; }
.tv-disco-s { fill:var(--d); }
.tv-disco-ponteiro { fill:var(--d); }
.tv-cofre h2 { color:#fff; font-size:clamp(1.6rem,2.8vw,2.3rem); font-weight:800; line-height:1.15; max-width:20ch; }
.tv-frentes-nav { display:flex; flex-wrap:wrap; gap:.45rem; margin:1.4rem 0 1.8rem; }
.tv-frentes-nav button { appearance:none; font:inherit; cursor:pointer; border:1px solid #55595D; background:transparent; color:#C8CACC;
  border-radius:999px; padding:.45rem .9rem; font-size:.84rem; font-weight:600; transition:background-color .2s, color .2s, border-color .2s; }
.tv-frentes-nav button[aria-selected="true"] { background:var(--d); border-color:var(--d); color:var(--g); }
.tv-frentes { display:grid; }
.tv-frente { grid-area:1/1; opacity:0; transform:translateY(12px); transition:opacity .3s ease-out, transform .3s ease-out; pointer-events:none; }
.tv-frente.on { opacity:1; transform:none; pointer-events:auto; }
.tv-frente-n { color:var(--d); font-weight:700; font-size:.9rem; }
.tv-frente h3 { font-size:clamp(1.4rem,2.2vw,1.8rem); font-weight:800; margin:.3rem 0 .8rem; color:#fff; }
.tv-frente > p:not([class]) { color:#C8CACC; line-height:1.68; font-size:1.02rem; max-width:54ch; }
.tv-frente ul { margin-top:1.1rem; display:grid; grid-template-columns:1fr 1fr; gap:0 1.5rem; }
.tv-frente li { position:relative; padding:.7rem 0 .7rem 1.2rem; border-top:1px solid #4A4E52; font-size:.94rem; line-height:1.45; }
.tv-frente li::before { content:""; position:absolute; left:0; top:1.15rem; width:7px; height:7px; border-radius:2px; background:var(--d); }

/* ---------- Ato 6: limites ---------- */
.tv-lim { background:#fff; padding:7rem 0 8rem; }
.tv-nunca { margin-top:3rem; }
.tv-nunca li { display:grid; grid-template-columns:9rem minmax(0,1fr); gap:1.5rem; align-items:baseline; padding:1.5rem 0; border-top:1px solid var(--c1); }
.tv-nunca li:last-child { border-bottom:1px solid var(--c1); }
.tv-nunca b { color:var(--d2); font-weight:800; font-size:1.05rem; }
.tv-revela { position:relative; justify-self:start; font-size:clamp(1.2rem,2.3vw,1.75rem); font-weight:600; line-height:1.35; color:var(--g); }
.tv-revela::after { content:""; position:absolute; inset:-.08em -.25em; border-radius:4px; background:var(--g);
  transform:scaleX(var(--r,1)); transform-origin:right center; }

/* ---------- Fecho ---------- */
.tv-fim { background:var(--g); padding:5.5rem 0; color:#fff; }
.tv-fim-grade { display:flex; justify-content:space-between; align-items:center; gap:2rem; flex-wrap:wrap; }
.tv-fim-pre { color:var(--d); font-weight:700; }
.tv-fim h2 { color:#fff; font-size:clamp(1.6rem,3vw,2.3rem); font-weight:800; margin:.5rem 0 .7rem; max-width:22ch; }
.tv-fim-grade > div > p:last-child { color:#C8CACC; max-width:54ch; line-height:1.6; }

/* ---------- Estático (sem animação ou sem JS) ---------- */
.tv-estatico [data-pin] { height:auto !important; }
.tv-estatico .tv-palco { position:relative; height:auto; overflow:visible; }
.tv-estatico .tv-abre .tv-palco { min-height:100vh; }
.tv-estatico .tv-comp .tv-palco { padding:6rem 0; }
.tv-estatico .tv-trilho { width:auto; flex-wrap:wrap; transform:none; max-width:1200px; margin:0 auto; padding:0 28px; }
.tv-estatico .tv-trilho article { width:min(340px,100%); }
.tv-estatico .tv-trilho b { color:var(--d); }
.tv-estatico .tv-regua, .tv-estatico .tv-assina, .tv-estatico .tv-rolar { display:none; }
.tv-estatico .tv-cam .tv-palco { padding-bottom:6rem; }
.tv-estatico .tv-cofre-grade { padding:6rem 28px; }

/* ---------- Telas menores ---------- */
@media (max-width:980px) {
  .tv-fichas { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tv-ficha { transform:none; }
  .tv-frente ul { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .tv { --topo:108px; }
  .tv-largura { padding:0 18px; }
  .tv-abre-grade { grid-template-columns:1fr; grid-template-rows:1fr; gap:0; padding:var(--topo) 18px 20px; align-items:start; }
  .tv-abre-texto, .tv-mesa { grid-area:1/1; min-width:0; }
  .tv-abre-texto { position:relative; z-index:2; }
  .tv-mesa { transform:translateY(calc((1 - var(--p,0) * 1.25) * 34vh)); }
  .tv-cofre-texto { min-width:0; }
  .tv h1 { font-size:2.25rem; }
  .tv-trilha { margin-bottom:.8rem !important; font-size:.82rem; }
  .tv-lide { font-size:.98rem; line-height:1.6; margin-top:1rem !important; }
  .tv-abre .tv-acoes { margin-top:1.3rem; }
  .tv-btn { min-height:46px; padding:.7rem 1.2rem; font-size:.9rem; }
  .tv-folha { width:46vw; }
  .tv-sombra { width:46vw; height:62vw; }
  .tv-legenda { bottom:15vh; font-size:1rem; }
  .tv-comp .tv-palco { gap:2rem; }
  .tv-comp .tv-cabeca, .tv-trilho { padding-left:18px; padding-right:18px; }
  .tv-trilho article { width:80vw; }
  .tv-cam .tv-palco { padding:calc(var(--topo) + 10px) 18px 3vh; gap:1.4rem; }
  .tv-cam .tv-cabeca > p { display:none; }
  .tv-percurso { padding-top:56px; }
  .tv-linha { top:56px; }
  .tv-nome { display:none; }
  .tv-estacoes button.atual .tv-nome { display:none; }
  .tv-painel-col { grid-template-columns:1fr; gap:1rem; }
  .tv-painel-col p { font-size:.96rem; }
  .tv-assina { grid-template-columns:1fr; justify-items:center; align-content:center; gap:1.5rem; text-align:center; }
  .tv-assina-s { height:34vh; width:calc(34vh * .639); }
  .tv-assina-texto { text-align:center !important; transform:none; }
  .tv-assina-b { font-size:1.7rem; }
  .tv-fer, .tv-lim { padding:4.5rem 0 5rem; }
  .tv-fichas { grid-template-columns:1fr; }
  .tv-cofre-grade { grid-template-columns:1fr; align-content:start; gap:1rem; padding:calc(var(--topo) + 6px) 18px 16px; }
  .tv-disco svg { width:min(52vw,250px); }
  .tv-cofre h2 { font-size:1.35rem; }
  .tv-frentes-nav { flex-wrap:nowrap; overflow-x:auto; margin:.9rem -18px 1rem; padding:0 18px; scrollbar-width:none; }
  .tv-frentes-nav button { flex:none; }
  .tv-frente > p:not([class]) { font-size:.94rem; line-height:1.55; }
  .tv-frente ul { display:none; }
  .tv-nunca li { grid-template-columns:1fr; gap:.4rem; }
  .tv-estatico .tv-frente ul { display:grid; }
}
