/* Poder Legislativo de Buerarema: identidade visual e ambientação institucional, com a paleta do próprio projeto (verde, ouro, terra, azul e cana).
   O desenho vem do arquivo de referência enviado pela equipe; aqui ele vive dentro da moldura do site (barra da Claven, próximo projeto,
   rodapé e botão de reduzir movimento ficam em case-base.css). Os tipos são DM Sans e Space Grotesk, hospedados no próprio site (a CSP não aceita fontes de fora).
   A camada "ao vivo" no fim do arquivo usa o motor de rolagem (case.js): --c (posição na tela, -1…1) e --p (progresso). Com movimento
   reduzido (html sem .fx), tudo fica parado no lugar e as peças só reagem a cursor, toque e teclado. */
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
body.leg{--bg:#f3f1e9;--ink:#143b30;--forest:#153f32;--green:#008c4d;--yellow:#e7a300;--blue:#00a1d7;--lime:#99cb34;--red:#b43e25;--muted:#76847b}
:where(body.leg) *{box-sizing:border-box}
body.leg{margin:0;background:var(--bg);font-family:'DM Sans',sans-serif;color:var(--ink);overflow-x:hidden}
:where(body.leg) button,:where(body.leg) a{font:inherit}
:where(body.leg) a{text-decoration:none;color:inherit}
:where(body.leg) button{cursor:pointer}
:where(body.leg) img{display:block;max-width:100%}
:where(body.leg) ::selection{background:var(--lime);color:var(--ink)}
:where(body.leg) .hero{height:100svh;min-height:620px;position:relative;display:flex;align-items:end;color:white;background:#0b322b;overflow:hidden}
:where(body.leg) .hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.85) contrast(1.1)}
:where(body.leg) .hero:before{content:'';position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(6,26,20,.76),rgba(10,30,23,.38) 54%,rgba(7,27,22,.18)),linear-gradient(0deg,rgba(6,26,20,.55),transparent 50%)}
:where(body.leg) .hero-inner{position:relative;z-index:2;padding:0 6vw 9vh;width:100%}
:where(body.leg) .hero .label{font-size:11px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;display:flex;align-items:center;gap:14px}
:where(body.leg) .hero .label:before{content:'';width:31px;height:2px;background:var(--yellow)}
:where(body.leg) h1,:where(body.leg) h2,:where(body.leg) h3,:where(body.leg) p{margin-top:0}
:where(body.leg) .hero h1{font:600 clamp(58px,9vw,154px)/.91 'Space Grotesk',sans-serif;letter-spacing:-.085em;margin:35px 0 36px;max-width:1180px}
:where(body.leg) .hero h1 .acc{color:#a7d75a}
:where(body.leg) .hero-bottom{display:flex;justify-content:space-between;gap:30px;align-items:end}
:where(body.leg) .hero-bottom p{max-width:600px;font-size:clamp(16px,1.55vw,23px);line-height:1.5}
:where(body.leg) .scrollcue{font-size:10px;letter-spacing:.15em;text-transform:uppercase;white-space:nowrap}
:where(body.leg) .scrollcue i{display:block;height:48px;width:1px;background:white;margin:12px auto 0;animation:lg-rise 2s infinite}
@keyframes lg-rise{50%{transform:translateY(9px);opacity:.45}}
:where(body.leg) .ribbon{background:var(--lime);padding:17px 0;overflow:hidden;white-space:nowrap;font:700 12px 'Space Grotesk',sans-serif;letter-spacing:.15em}
:where(body.leg) .ribbon div{display:inline-block;animation:lg-marquee 25s linear infinite}
:where(body.leg) .ribbon span{margin-right:65px}
@keyframes lg-marquee{to{transform:translateX(-50%)}}
:where(body.leg) .section{padding:110px 6vw}
:where(body.leg) .section-head{display:flex;justify-content:space-between;gap:22px;align-items:center;border-top:1px solid #afbeb3;padding-top:20px;margin-bottom:55px;font-size:11px;letter-spacing:.16em;font-weight:700;text-transform:uppercase}
:where(body.leg) .number{color:var(--muted)}
:where(body.leg) h2{font:600 clamp(44px,6.2vw,96px)/1.04 'Space Grotesk',sans-serif;letter-spacing:-.075em;margin-bottom:33px}
:where(body.leg) h3{font:600 clamp(25px,3vw,45px)/1.08 'Space Grotesk',sans-serif;letter-spacing:-.05em}
:where(body.leg) .desc{font-size:clamp(16px,1.45vw,21px);line-height:1.62;color:#456057;max-width:670px}
:where(body.leg) .intro{display:grid;grid-template-columns:1.15fr .85fr;gap:10vw}
:where(body.leg) .intro aside{padding-top:25px}
:where(body.leg) .outline{border-top:1px solid #bdcabe;padding:20px 0;display:flex;gap:25px;align-items:baseline;font-size:13px}
:where(body.leg) .outline b{font:600 25px 'Space Grotesk',sans-serif;color:var(--green)}
:where(body.leg) .statement{padding:80px 6vw;background:var(--yellow);color:#173e2d}
:where(body.leg) .statement p{font:600 clamp(32px,5.2vw,77px)/1.07 'Space Grotesk',sans-serif;letter-spacing:-.06em;max-width:1210px;margin:0}
:where(body.leg) .statement em{font-style:normal;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:10px}
:where(body.leg) .symbol{background:#153c30;color:#f4f0e8}
:where(body.leg) .symbol .section-head{border-color:#517366}
:where(body.leg) .symbol .number{color:#88a69b}
:where(body.leg) .symbol-intro{display:grid;grid-template-columns:.95fr 1.05fr;gap:7vw;align-items:start}
:where(body.leg) .symbol-intro .desc{color:#c6d8cf}
:where(body.leg) .logo-stage{background:#f5f4ee;min-height:280px;display:grid;place-items:center;padding:40px;position:relative;overflow:hidden}
:where(body.leg) .logo-stage:before{content:'MARCA INSTITUCIONAL / 01';position:absolute;top:18px;left:20px;font-size:9px;color:#46665b;letter-spacing:.13em}
:where(body.leg) .logo-stage img{width:100%;object-fit:contain;filter:none;transition:.7s}
:where(body.leg) .logo-stage:hover img{transform:scale(1.06)}
:where(body.leg) .symbol-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:65px}
:where(body.leg) .symbol-cell{border:1px solid #537365;padding:25px 17px 20px;min-height:215px;transition:.35s}
:where(body.leg) .symbol-cell:hover{background:#204e3e;transform:translateY(-6px)}
:where(body.leg) .symbol-icon{height:70px;display:flex;align-items:center;justify-content:center;margin-bottom:20px}
:where(body.leg) .symbol-icon svg{width:85px;height:68px}
:where(body.leg) .symbol-cell h4{font-size:15px;margin:0 0 9px}
:where(body.leg) .symbol-cell p{font-size:12px;line-height:1.55;color:#b5ccc1;margin:0}
:where(body.leg) .symbol-extras{border-top:1px solid #537365;margin-top:35px;padding-top:26px;display:grid;grid-template-columns:repeat(2,1fr);gap:30px;font-size:14px;line-height:1.7}
:where(body.leg) .symbol-extras strong{color:#b6e771}
:where(body.leg) .system-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:5vw;align-items:end}
:where(body.leg) .swatches{display:flex;width:100%;height:130px;gap:3px;margin-top:26px}
:where(body.leg) .swatches>div{flex:1;position:relative}
:where(body.leg) .swatches span{position:absolute;left:9px;bottom:9px;color:#fff;font-size:10px;font-weight:700}
:where(body.leg) .swatches>div:nth-child(2) span,:where(body.leg) .swatches>div:nth-child(4) span,:where(body.leg) .swatches>div:last-child span{color:#0b1f18}
:where(body.leg) .swatches>div:first-child span{left:7px;bottom:7px;padding:2px 6px;border-radius:3px;background:rgba(0,0,0,.3)}
:where(body.leg) .pattern{height:380px;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(4,1fr);overflow:hidden;background:#e8ede0}
:where(body.leg) .tile{position:relative;overflow:hidden}
:where(body.leg) .tile::before{content:'';position:absolute;width:74%;height:74%;left:14%;top:13%;background:var(--shape,#fff);border-radius:var(--rad,50% 50% 0 0);transform:rotate(var(--rot,0deg));transition:.5s}
:where(body.leg) .pattern:hover .tile:before{transform:rotate(calc(var(--rot,0deg) + 45deg)) scale(.88)}
:where(body.leg) .applications{background:#e7e9e0}
:where(body.leg) .lead{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:36px}
:where(body.leg) .lead .desc{margin:0}
:where(body.leg) .interaction-hint{font-size:10px;text-transform:uppercase;letter-spacing:.11em;white-space:nowrap}
:where(body.leg) .cases{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
:where(body.leg) .case{grid-column:span 6;position:relative;overflow:hidden;min-height:430px;background:#d5d9d2;isolation:isolate}
:where(body.leg) .case.wide{grid-column:span 12;min-height:550px}
:where(body.leg) .case img.photo{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
:where(body.leg) .case:hover img.photo{transform:scale(1.055)}
:where(body.leg) .case .scrim{position:absolute;inset:50% 0 0;background:linear-gradient(transparent,rgba(3,31,22,.63));pointer-events:none}
:where(body.leg) .case-label{position:absolute;z-index:10;left:26px;bottom:25px;color:white}
:where(body.leg) .case-label span{font-size:10px;letter-spacing:.17em;text-transform:uppercase}
:where(body.leg) .case-label h3{margin:7px 0 0;font-size:28px;letter-spacing:-.04em}
:where(body.leg) .demo{position:absolute;z-index:5;inset:0;pointer-events:none}
:where(body.leg) .sheet{position:absolute;width:37%;height:56%;top:12%;left:30%;background:#fbfaf4;border:1px solid #d6d8d0;box-shadow:0 18px 30px #0002;transform:translate(var(--x,0),var(--y,0)) rotate(var(--angle,0deg));transition:transform .7s cubic-bezier(.22,.8,.2,1)}
:where(body.leg) .sheet:after{content:'';position:absolute;left:9%;top:10%;right:9%;height:5px;background:var(--green);box-shadow:0 15px 0 #e0e6de,0 32px 0 #e0e6de,0 49px 0 #e0e6de,0 66px 0 #e0e6de,0 83px 0 #e0e6de}
:where(body.leg) .sheet:nth-child(1){--x:-14%;--angle:-8deg}
:where(body.leg) .sheet:nth-child(2){--x:5%;--angle:2deg}
:where(body.leg) .sheet:nth-child(3){--x:23%;--angle:8deg}
:where(body.leg) .case.documents:hover .sheet:nth-child(1),:where(body.leg) .case.documents.is-active .sheet:nth-child(1){transform:translate(-75%,-16%) rotate(-15deg)}
:where(body.leg) .case.documents:hover .sheet:nth-child(2),:where(body.leg) .case.documents.is-active .sheet:nth-child(2){transform:translate(9%,-9%) rotate(1deg)}
:where(body.leg) .case.documents:hover .sheet:nth-child(3),:where(body.leg) .case.documents.is-active .sheet:nth-child(3){transform:translate(82%,-11%) rotate(17deg)}
:where(body.leg) .paper-demo{position:absolute;z-index:3;inset:0;pointer-events:none}
:where(body.leg) .paper-demo:before{content:'';position:absolute;left:28%;top:23%;width:44%;height:46%;border-radius:4px;background:linear-gradient(15deg,#e5e7de 50%,#fff 51%);box-shadow:0 15px 40px #0003;transform-origin:bottom;transition:transform .9s}
:where(body.leg) .paper-demo:after{content:'PODER LEGISLATIVO DE BUERAREMA';position:absolute;left:36%;top:26%;width:28%;height:30%;background:#fff;border-top:13px solid var(--green);color:var(--ink);font-size:8px;font-weight:700;letter-spacing:.06em;padding:15px 8px;transform:translateY(35%) scale(.95);transition:transform .9s;box-shadow:0 10px 25px #0002}
:where(body.leg) .case.envelope:hover .paper-demo:after,:where(body.leg) .case.envelope.is-active .paper-demo:after{transform:translateY(-38%) scale(.96)}
:where(body.leg) .case.envelope:hover .paper-demo:before,:where(body.leg) .case.envelope.is-active .paper-demo:before{transform:scaleY(.9)}
:where(body.leg) .folder-demo{position:absolute;z-index:3;top:19%;left:29%;width:44%;height:57%;perspective:650px;pointer-events:none}
:where(body.leg) .folder-back{position:absolute;inset:0;background:#f6f6ee;border:8px solid var(--green);box-shadow:0 15px 40px #0003}
:where(body.leg) .folder-inside{position:absolute;inset:10% 15%;background:repeating-linear-gradient(0deg,#fff 0px,#fff 11px,#c5d4c7 12px);transform:translateX(4%)}
:where(body.leg) .folder-front{position:absolute;inset:0;background:linear-gradient(135deg,#f5f5ed 70%,#a5d641 70%);border-left:18px solid var(--yellow);transform-origin:left;transition:transform 1s;box-shadow:5px 5px 16px #0002;backface-visibility:hidden}
:where(body.leg) .folder-front img{width:56%;margin:28% auto 0}
:where(body.leg) .case.folder:hover .folder-front,:where(body.leg) .case.folder.is-active .folder-front{transform:rotateY(-140deg)}
:where(body.leg) .micro{font-size:11px;line-height:1.6;color:#5f7267;margin-top:18px}
:where(body.leg) .photo-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:where(body.leg) .photo-gallery .case:nth-child(1){grid-column:1 / -1;min-height:600px}
:where(body.leg) .photo-gallery .case{grid-column:auto;min-height:450px}
:where(body.leg) .photo-gallery img{object-position:center}
:where(body.leg) .photo-gallery .case:nth-child(2) img{object-position:center}
:where(body.leg) .photo-gallery .case:nth-child(3) img{object-position:center}
:where(body.leg) .transport{background:var(--ink);color:white}
:where(body.leg) .transport .section-head{border-color:#45695a}
:where(body.leg) .transport .desc{color:#c5d5cd}
:where(body.leg) .fleet{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:30px}
:where(body.leg) .fleet>div{background:#edf0ee;overflow:hidden}
:where(body.leg) .fleet img{width:100%;height:420px;object-fit:contain;transition:.8s}
:where(body.leg) .fleet>div:hover img{transform:translateX(3%) scale(1.06)}
:where(body.leg) .future{background:#dce5d7;position:relative;overflow:hidden}
:where(body.leg) .future:after{content:'+';position:absolute;right:-2vw;bottom:-11vw;font:700 50vw 'Space Grotesk';color:#c4d5c8;pointer-events:none}
:where(body.leg) .future>*{position:relative;z-index:1}
:where(body.leg) .future h2{max-width:1000px}
:where(body.leg) .future p{max-width:650px}
:where(body.leg) .future .status{border:1px solid #789589;display:inline-flex;padding:14px 18px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;margin-top:20px}
:where(body.leg) .end{padding:95px 6vw;background:#092c23;color:white;display:flex;justify-content:space-between;gap:45px;align-items:end}
:where(body.leg) .end h2{margin:0;font-size:clamp(44px,7.5vw,110px)}
:where(body.leg) .end p{font-size:13px;line-height:1.65;max-width:340px;color:#c1d0c8;margin:0}
:where(body.leg) .zoom{position:absolute;top:17px;right:17px;z-index:10;border:1px solid #fffc;color:white;background:#153b2e99;padding:10px 14px;font-size:12px}
:where(body.leg) .tap{position:absolute;right:18px;bottom:18px;z-index:20;border:1px solid #fff9;color:white;background:#153c30c9;padding:10px;font-size:10px;letter-spacing:.05em;display:none}
@media(max-width:850px){:where(body.leg) .hero h1{font-size:clamp(54px,12vw,94px)}
:where(body.leg) .hero-inner{padding:0 6vw 10vh}
:where(body.leg) .hero-bottom{display:block}
:where(body.leg) .scrollcue{display:none}
:where(body.leg) .section{padding:75px 5vw}
:where(body.leg) .intro,:where(body.leg) .symbol-intro,:where(body.leg) .system-grid{grid-template-columns:1fr;gap:35px}
:where(body.leg) .symbol-grid{grid-template-columns:repeat(2,1fr)}
:where(body.leg) .symbol-cell:last-child{grid-column:span 2}
:where(body.leg) .cases{grid-template-columns:1fr}
:where(body.leg) .case,:where(body.leg) .case.wide{grid-column:auto;min-height:390px}
:where(body.leg) .case.wide{min-height:440px}
:where(body.leg) .photo-gallery{grid-template-columns:1fr}
:where(body.leg) .photo-gallery .case:nth-child(1){grid-column:auto;min-height:430px}
:where(body.leg) .photo-gallery .case{min-height:350px}
:where(body.leg) .fleet{grid-template-columns:1fr}
:where(body.leg) .fleet img{height:300px}
:where(body.leg) .lead{display:block}
:where(body.leg) .interaction-hint{margin-top:20px}
:where(body.leg) .tap{display:block}
:where(body.leg) .end{display:block}
:where(body.leg) .end p{margin-top:25px}
:where(body.leg) .hero{min-height:570px}
:where(body.leg) .symbol-extras{grid-template-columns:1fr}
:where(body.leg) .pattern{height:280px}
:where(body.leg) .swatches{height:95px}}
@media(max-width:500px){:where(body.leg) .hero h1{font-size:clamp(53px,13vw,75px)}
:where(body.leg) .symbol-grid{grid-template-columns:1fr}
:where(body.leg) .symbol-cell:last-child{grid-column:auto}
:where(body.leg) .symbol-cell{min-height:130px}
:where(body.leg) .symbol-icon{justify-content:flex-start}
:where(body.leg) .sheet{height:48%;width:40%}
:where(body.leg) .logo-stage{min-height:170px}}
@media(prefers-reduced-motion:reduce){:where(body.leg) *,:where(body.leg) *:before,:where(body.leg) *:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
/* ---- integração com a moldura do site ---- */
body.leg { --cx-accent: #99cb34; --cx-focus: #99cb34; overflow-x: clip; }
html:has(body.leg) { scroll-padding-top: 72px; }
body.leg .error { margin: 0; padding: 16px 6vw; background: #fff3d6; color: #4a3500; font-size: 14px; }

/* faixa final (próximo projeto, orçamento, rodapé): é do site, o desenho do projeto não entra nela */
body.leg .cx-next h2 { font-family: "Archivo Black", sans-serif; font-weight: 400; letter-spacing: normal; font-size: clamp(2rem, 5.2vw, 4.4rem); line-height: .98; margin: 0 0 16px; color: inherit; }
body.leg .cx-cta h2 { font-family: "Archivo Black", sans-serif; font-weight: 400; letter-spacing: normal; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1; margin: 0; color: inherit; }

/* abertura: sem cabeçalho próprio, o vídeo ocupa a tela inteira; as linhas do título são blocos para entrarem uma a uma */
body.leg .hero { min-height: 100svh; }
body.leg .hero .ln { display: block; }
body.leg .hero-inner { padding-top: 120px; }
body.leg .hero-toggle { position: absolute; z-index: 3; top: 84px; right: clamp(14px, 4vw, 40px); border: 1px solid rgba(255, 255, 255, .55); background: rgba(8, 28, 23, .55); color: #fff; font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 10px 15px; border-radius: 30px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s; }
body.leg .hero-toggle:hover { background: rgba(8, 28, 23, .85); }
body.leg .hero-toggle:focus-visible, body.leg .leg-index a:focus-visible, body.leg .tap:focus-visible, body.leg .zoom:focus-visible, body.leg .viewer-top button:focus-visible { outline: 2px solid #99cb34; outline-offset: 3px; }
body.leg .case:focus-visible { outline: 3px solid #99cb34; outline-offset: -3px; }
body.leg .photo-gallery .case:nth-child(1) img.photo { object-position: 50% 30%; }

/* toque: sem cursor para passar por cima, o botão "Interagir" aparece em qualquer largura */
@media (hover: none) { body.leg .tap { display: block; } }

/* índice lateral: pontos finos na borda da tela, que não cobrem o conteúdo; o rótulo aparece ao passar o cursor ou focar.
   O motor marca o link da seção atual com .on e põe .idle quando nenhuma está na tela */
body.leg .leg-index { position: fixed; right: 12px; top: 50%; translate: 0 -50%; z-index: 18; display: flex; flex-direction: column; gap: 14px; padding: 14px 8px; border-radius: 20px; background: rgba(18, 55, 45, .72); border: 1px solid rgba(153, 203, 52, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .35s ease, transform .35s ease; }
body.leg .leg-index a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(232, 240, 227, .6); transition: height .3s var(--ease), border-radius .3s, background .2s; }
body.leg .leg-index a::before { content: ""; position: absolute; inset: -9px -10px; }
body.leg .leg-index a.on { height: 26px; border-radius: 6px; background: #99cb34; }
body.leg .leg-index a:hover { background: #99cb34; }
body.leg .leg-index a span { position: absolute; right: calc(100% + 14px); top: 50%; translate: 6px -50%; white-space: nowrap; background: #12372d; color: #e8f0e3; font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .04em; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(153, 203, 52, .35); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
body.leg .leg-index a:hover span, body.leg .leg-index a:focus-visible span { opacity: 1; translate: 0 -50%; }
body.leg .leg-index.idle { opacity: 0; pointer-events: none; transform: translateX(14px); }
@media (max-width: 800px) { body.leg .leg-index { display: none; } }
@media (prefers-reduced-motion: reduce) { body.leg .leg-index, body.leg .leg-index a, body.leg .leg-index a span { transition: none; } }

/* janela de ampliação (a original era uma camada própria; aqui é o <dialog> do site, com foco preso e Esc para fechar) */
body.leg dialog { border: 0; padding: 0; width: min(1180px, 94vw); max-height: 94svh; background: #0f2c24; color: #eef3ea; border-radius: 4px; box-shadow: 0 10px 80px #0007; }
body.leg dialog::backdrop { background: rgba(6, 26, 21, .93); backdrop-filter: blur(7px); }
body.leg .viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; gap: 20px; border-bottom: 1px solid #ffffff26; }
body.leg .viewer-top h2 { font: 700 18px/1.4 "DM Sans", sans-serif; letter-spacing: 0; margin: 0; }
body.leg .viewer-top button { background: none; color: #fff; border: 1px solid #fff7; padding: 9px 15px; font-size: 12px; }
body.leg .viewer-content { padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 120px; }
body.leg .viewer-content img { display: block; max-width: 100%; max-height: 74svh; object-fit: contain; }
body.leg .viewer-foot { padding: 0 22px 18px; font-size: 12px; line-height: 1.7; color: #b9ccc2; }
@media (max-width: 700px) { body.leg .viewer-top { padding: 12px 15px; } body.leg .viewer-top h2 { font-size: 16px; } body.leg .viewer-content { padding: 8px; } body.leg .viewer-foot { padding: 0 15px 15px; } }

/* contraste: legendas pequenas do original (11px sobre fundos claros) em tons mais escuros, sem mudar o clima */
body.leg .number, body.leg .micro { color: #566a60; }
body.leg .symbol .number { color: #a4c0b4; }

/* sem movimento (botão do rodapé ou preferência do sistema): nada gira, nem a faixa nem a seta; as peças só reagem a cursor, toque e teclado */
html:not(.fx) body.leg .ribbon div, html:not(.fx) body.leg .scrollcue i { animation: none; }

/* entrada: usa a propriedade translate (e não transform), para não brigar com os movimentos próprios das peças */
html.fx body.leg [data-reveal] { transition: opacity .9s var(--ease) var(--d, 0ms), translate 1.05s var(--ease) var(--d, 0ms), transform .45s var(--ease), background-color .35s, box-shadow .35s !important; }
html.fx body.leg [data-reveal]:not(.in) { transform: none !important; translate: 0 34px; }
html.fx body.leg [data-reveal="fade"]:not(.in) { translate: 0 0; }
html.fx body.leg [data-reveal].in { translate: 0 0; }

/* ---- camada ao vivo (só com movimento ligado) ---- */
/* abertura: a primeira cena entra em sequência e o vídeo se afasta quando a rolagem começa */
html.fx body.leg .hero .label, html.fx body.leg .hero .ln, html.fx body.leg .hero-bottom { animation: lg-in 1.05s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + 160ms); }
@keyframes lg-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
html.fx body.leg .hero { --q: clamp(0, calc(var(--c, 0) * -1), 1); }
html.fx body.leg .hero-video { scale: calc(1.05 + var(--q) * .12); translate: 0 calc(var(--q) * 9vh); }
html.fx body.leg .hero-inner { translate: 0 calc(var(--q) * 70px); opacity: calc(1 - var(--q) * 1.15); }
html.fx body.leg .hero-toggle { opacity: calc(1 - var(--q) * 3); }

/* faixa verde-limão: anda para o lado junto com a rolagem, além do movimento contínuo (só para a esquerda, para nunca deixar vão) */
html.fx body.leg .ribbon div { translate: calc((var(--c, 0) - 1) * 70px) 0; }

/* frase em destaque: cada palavra se acende conforme a faixa amarela atravessa a tela (o JS separa as palavras) */
html.fx body.leg .statement p[data-words] .w { --lit: calc(clamp(0, (var(--p, 0) - .2) / .3, 1) * (var(--n, 1) + 1)); opacity: clamp(.22, calc(var(--lit) - var(--i, 0)), 1); transition: opacity .25s linear; }

/* raízes: os ícones flutuam com a rolagem e cada um reage ao cursor do seu jeito */
body.leg .symbol-cell:nth-child(even) { --k: -1; }
html.fx body.leg .symbol-icon svg { translate: 0 calc(var(--c, 0) * var(--k, 1) * -12px); transform-origin: 50% 60%; transition: transform .8s var(--ease), translate .3s ease-out; }
html.fx body.leg .symbol-cell:nth-child(1):hover .symbol-icon svg { transform: translateY(-6px) scale(1.1); }
html.fx body.leg .symbol-cell:nth-child(2):hover .symbol-icon svg { transform: translate(8px, -5px) rotate(-6deg) scale(1.08); }
html.fx body.leg .symbol-cell:nth-child(3):hover .symbol-icon svg { transform: rotate(5deg) scale(1.1); transform-origin: 50% 92%; }
html.fx body.leg .symbol-cell:nth-child(4):hover .symbol-icon svg { transform: rotate(180deg); }
html.fx body.leg .symbol-cell:nth-child(5):hover .symbol-icon svg { transform: rotate(8deg) scale(1.14); }

/* mosaico: os módulos giram devagar com a rolagem e se afastam do cursor (o JS informa a proximidade em --near) */
html.fx body.leg .pattern:hover .tile::before { transform: rotate(var(--rot, 0deg)); }
html.fx body.leg .tile::before { rotate: calc(var(--c, 0) * var(--s, 1) * 55deg + var(--near, 0) * 90deg); scale: calc(1 - var(--near, 0) * .26); }

/* peças: o leque do papel timbrado, a carta do envelope e a capa da pasta se abrem sozinhos quando o cartão chega ao centro da tela
   (--o vai de 0 a 1); com o cursor, o toque ou o teclado, --o vai direto a 1 */
html.fx body.leg .case { --o: clamp(0, calc(1.15 - var(--c, 0) * var(--c, 0) * 5), 1); }
html.fx body.leg .case:hover, html.fx body.leg .case.is-active, html.fx body.leg .case:focus-visible { --o: 1; }
html.fx body.leg .case.documents .sheet { transition: transform .5s var(--ease); }
html.fx body.leg .case.documents .sheet:nth-child(1) { transform: translate(calc(-14% - 61% * var(--o)), calc(-16% * var(--o))) rotate(calc(-8deg - 7deg * var(--o))); }
html.fx body.leg .case.documents .sheet:nth-child(2) { transform: translate(calc(5% + 4% * var(--o)), calc(-9% * var(--o))) rotate(calc(2deg - 1deg * var(--o))); }
html.fx body.leg .case.documents .sheet:nth-child(3) { transform: translate(calc(23% + 59% * var(--o)), calc(-11% * var(--o))) rotate(calc(8deg + 9deg * var(--o))); }
html.fx body.leg .case.envelope .paper-demo:after { transform: translateY(calc(35% - 73% * var(--o))) scale(calc(.95 + .01 * var(--o))); transition: transform .6s var(--ease); }
html.fx body.leg .case.envelope .paper-demo:before { transform: scaleY(calc(1 - .1 * var(--o))); transition: transform .6s var(--ease); }
html.fx body.leg .case.folder .folder-front { transform: rotateY(calc(-140deg * var(--o))); transition: transform .8s var(--ease); }

/* fotos dos cartões: andam dentro da moldura com a rolagem e seguem o cursor (o JS informa --px e --py, de -0,5 a 0,5) */
body.leg .cases .case:nth-child(even), body.leg .photo-gallery .case:nth-child(2) { --k: -1; }
html.fx body.leg .case img.photo { scale: 1.1; translate: calc(var(--px, 0) * -16px) calc(var(--c, 0) * var(--k, 1) * -3.2% + var(--py, 0) * -12px); transition: transform .8s cubic-bezier(.2, .8, .2, 1), translate .3s ease-out; }
html.fx body.leg .case:hover img.photo { transform: scale(1.03); }

/* frota: os dois veículos "circulam" para o lado com a rolagem */
html.fx body.leg .fleet img { scale: 1.08; translate: calc(var(--c, 0) * 5%) 0; transition: transform .8s var(--ease), translate .3s ease-out; }
html.fx body.leg .fleet > div:hover img { transform: scale(1.02); }

/* o "+" grande do fim gira com a rolagem */
html.fx body.leg .future:after { rotate: calc(var(--p, 0) * 140deg - 40deg); }
