/* MB Engenharia — abertura e hero com slides de fotos */
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes encher { to { transform: scaleX(1); } }

/* Abertura: a engrenagem do logo se desenha e a cortina sobe */
.abertura { display: none; }
.js .abertura { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--navy-escuro); transition: transform .9s cubic-bezier(.77, 0, .18, 1), visibility 0s .9s; }
.abertura svg { width: min(230px, 56vw); overflow: visible; }
.abertura .engr { fill: none; stroke: var(--branco); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1300; stroke-dashoffset: 1300; animation: desenhar 1.5s .1s ease forwards; }
.abertura .miolo-engr { fill: none; stroke: var(--branco); stroke-width: 3; stroke-dasharray: 360; stroke-dashoffset: 360; animation: desenhar 1s .5s ease forwards; }
.abertura .capacete { fill: none; stroke: var(--ambar); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: desenhar .9s .9s ease forwards; }
.abertura .letras { fill: var(--branco); font: 700 56px var(--titulo); opacity: 0; animation: aparecer .5s 1.1s forwards; }
.abertura p { color: #cfd9e6; font: 600 .78rem var(--corpo); letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: aparecer .6s 1.3s forwards; }
.js body.pronto .abertura { transform: translateY(-100%); visibility: hidden; pointer-events: none; }

/* Hero: slides de fotos em tela larga */
.hero { position: relative; margin: 12px clamp(10px, 2vw, 28px) 0; border-radius: var(--r-bloco); overflow: clip; min-height: clamp(580px, 88vh, 800px); display: grid; align-items: center; color: #fff; background: var(--navy-escuro); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.ativo { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.slide.ativo img { transform: scale(1); }
.hero-veu { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 26, 54, .9) 0%, rgba(2, 26, 54, .62) 42%, rgba(2, 26, 54, .12) 100%), linear-gradient(0deg, rgba(2, 26, 54, .75) 0%, transparent 38%); }
.hero-conteudo { position: relative; z-index: 2; padding: 96px 0 170px; }
.hero-texto { max-width: 36rem; }
.hero .etiqueta { color: var(--ambar-claro); background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.5rem); color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.hero h1 .linha { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .ambar { background: var(--ambar); color: var(--navy-escuro); padding: 0 .2em .02em; border-radius: .26em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.js .hero h1 .linha > span { display: block; transform: translateY(112%); transition: transform 1.1s var(--curva); }
.js body.pronto .hero h1 .linha > span { transform: none; }
.hero h1 .linha:nth-child(2) > span { transition-delay: .12s; }
.hero h1 .linha:nth-child(3) > span { transition-delay: .24s; }
.hero .sub { margin-top: 22px; font-size: clamp(1rem, 1.3vw, 1.12rem); color: #dbe5f1; max-width: 31em; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .botao-linha { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(8px); }
.hero .botao-linha:hover { background: #fff; color: var(--navy); }

/* Indicadores dos slides (também são botões) */
.hero-indicador { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-inline: auto; }
.ind { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 14px 0 0; background: none; border: 0; color: rgba(255, 255, 255, .62); text-align: left; cursor: pointer; font: 600 .86rem/1.3 var(--corpo); transition: color .3s; }
.ind b { font: 700 .8rem var(--titulo); color: var(--ambar-claro); }
.ind::before, .ind i { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; border-radius: 3px; }
.ind::before { background: rgba(255, 255, 255, .25); }
.ind i { background: var(--ambar); transform: scaleX(0); transform-origin: left; }
.ind.ativo { color: #fff; }
.ind.ativo i { animation: encher 6.5s linear forwards; }
.hero.pausado .ind.ativo i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ind.ativo i { animation: none; transform: scaleX(1); } .slide img { transition: none; transform: none; } }
