* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background: #101010;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; }

.site-header {
    position: relative;
    z-index: 50;
    height: 82px;
    background: #101010;
    border-bottom: 1px solid #292929;
}

.header-inner {
    width: 86%;
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { width: 145px; height: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #aaa;
    font-size: 12px;
    letter-spacing: .7px;
    transition: .25s;
}

.main-nav a:hover { color: #fff; }

.header-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .25s;
}

.header-button {
    padding: 11px 20px;
    border: 1px solid #fff;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.header-button:hover { background: #fff; color: #101010; }

.button {
    min-height: 50px;
    padding: 0 25px;
    font-size: 11px;
    letter-spacing: 1.3px;
}

.button-primary { background: #fff; color: #111; border: 1px solid #fff; }
.button-primary:hover { background: transparent; color: #fff; }
.button-outline { border: 1px solid #555; color: #fff; }
.button-outline:hover { border-color: #fff; }

.eyebrow {
    display: block;
    margin-bottom: 22px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-intro { max-width: 760px; margin-bottom: 60px; }

.section-intro h2 {
    margin-bottom: 25px;
    font-size: clamp(45px, 6vw, 78px);
    line-height: .92;
    letter-spacing: -3px;
}

.section-intro p { max-width: 620px; color: #999; font-size: 18px; }

.hero {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 7%;
    background: #101010;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 92%;
    object-fit: contain;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #101010 0%,
        #101010 25%,
        rgba(16,16,16,.96) 40%,
        rgba(16,16,16,.65) 54%,
        rgba(16,16,16,.15) 75%,
        rgba(16,16,16,0) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 50%;
    max-width: 700px;
}

.hero h1 {
    margin-bottom: 30px;
    font-size: clamp(50px, 7vw, 90px);
    line-height: .91;
    letter-spacing: -4px;
}

.hero p { max-width: 580px; margin-bottom: 38px; color: #c4c4c4; font-size: 19px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.manifesto {
    min-height: 540px;
    width: 86%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.manifesto-text { max-width: 800px; }
.manifesto h2 { margin-bottom: 30px; font-size: clamp(44px, 6vw, 76px); line-height: .93; letter-spacing: -3px; }
.manifesto p { max-width: 650px; color: #999; font-size: 19px; }

.manifesto-highlight { min-width: 210px; text-align: center; }
.manifesto-highlight strong { display: block; font-size: 80px; line-height: .9; letter-spacing: -6px; }
.manifesto-highlight span { display: block; margin-top: 15px; color: #666; font-size: 10px; letter-spacing: 4px; }

.precision { padding: 120px 7%; background: #151515; }
.precision-main { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 75px; align-items: center; }

.precision-photo { position: relative; height: 650px; overflow: hidden; background: #222; text-decoration: none; }
.precision-photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.precision-photo:hover > img { transform: scale(1.025); }

.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.photo-caption span { display: block; margin-bottom: 7px; color: #aaa; font-size: 9px; letter-spacing: 2px; }
.photo-caption strong { font-size: 22px; }

.precision-list { border-top: 1px solid #3b3b3b; }
.precision-item { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid #333; }
.item-number { padding-top: 3px; color: #666; font-size: 11px; }
.precision-item h3 { margin-bottom: 8px; font-size: 16px; letter-spacing: 1px; }
.precision-item p { max-width: 480px; color: #929292; font-size: 14px; }
.mini-link { display: inline-block; margin-top: 12px; color: #fff; text-decoration: none; font-size: 10px; letter-spacing: 1.4px; border-bottom: 1px solid #555; padding-bottom: 4px; }


.services { padding: 120px 7%; }
.services-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #444; border-bottom: 1px solid #444; }
.service-card { min-height: 310px; padding: 35px 30px; border-right: 1px solid #333; }
.service-card:last-child { border-right: none; }
.service-card > span { display: block; margin-bottom: 70px; color: #666; font-size: 11px; }
.service-card h3 { margin-bottom: 18px; font-size: 21px; line-height: 1.15; }
.service-card p { color: #929292; font-size: 14px; }

.catalog { padding: 120px 7%; background: #151515; }
.catalog-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.product-card { background: #1c1c1c; overflow: hidden; }
.product-image { height: 360px; overflow: hidden; background: #222; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-info { padding: 24px; }
.product-info > span { display: block; margin-bottom: 10px; color: #666; font-size: 10px; }
.product-info h3 { margin-bottom: 10px; font-size: 19px; }
.product-info p { color: #888; font-size: 13px; }

.projects { padding: 120px 7%; }
.projects-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.project-card { overflow: hidden; background: #181818; }
.project-card-image { height: 430px; overflow: hidden; background: #222; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.03); }
.project-card-info { padding: 24px; }
.project-card-info span { display: block; margin-bottom: 9px; color: #666; font-size: 9px; letter-spacing: 2px; }
.project-card-info h3 { font-size: 19px; }
.project-card-info p { margin-top: 10px; color: #888; font-size: 13px; }

.process { padding: 120px 7%; background: #151515; }
.process-video-area { max-width: 1500px; margin: 0 auto 60px; }
.video-placeholder { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg,#202020,#111); border: 1px solid #333; text-align: center; }
.play-symbol { width: 75px; height: 75px; display:flex; align-items:center; justify-content:center; margin-bottom:25px; border:1px solid #666; border-radius:50%; font-size:22px; }
.process-steps { max-width: 1500px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid #444; }
.process-steps > div { min-height:210px; padding:30px 25px; border-right:1px solid #333; }
.process-steps > div:last-child { border-right:none; }
.process-steps span { display:block; margin-bottom:55px; color:#666; font-size:10px; }
.process-steps strong { display:block; margin-bottom:10px; font-size:18px; }
.process-steps p { color:#888; font-size:13px; }

.quote { min-height:650px; display:flex; align-items:center; padding:100px 7%; background:#090909; }
.quote-inner { max-width:1100px; }
.quote h2 { margin-bottom:30px; font-size:clamp(50px,7vw,92px); line-height:.9; letter-spacing:-4px; }
.quote p { max-width:600px; margin-bottom:35px; color:#999; font-size:18px; }

footer { padding:60px 7% 25px; background:#070707; border-top:1px solid #292929; }
.footer-top { max-width:1500px; margin:0 auto 55px; }
.footer-logo { width:145px; height:auto; margin-bottom:15px; }
.footer-top p { color:#666; font-size:12px; }
.footer-bottom { max-width:1500px; margin:0 auto; padding-top:20px; display:flex; justify-content:space-between; border-top:1px solid #222; color:#555; font-size:10px; letter-spacing:1px; }

.catalog-loading,.catalog-empty,.catalog-error,.gallery-loading,.gallery-empty,.gallery-error {
    grid-column: 1 / -1;
    padding: 65px 25px;
    border: 1px solid #333;
    color: #777;
    text-align: center;
    font-size: 13px;
}
.catalog-error,.gallery-error { color:#bbb; border-color:#583b3b; background:rgba(45,16,16,.35); }

.category-card-badges { display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }
.category-card-badges span { padding:5px 8px; border:1px solid #3a3a3a; color:#777; font-size:9px; letter-spacing:1px; }

@media (max-width:1050px) {
    .main-nav { gap:16px; }
    .main-nav a { font-size:10px; }
    .hero-image-container { width:55%; }
    .hero-content { width:55%; }
    .precision-main { grid-template-columns:1fr; gap:50px; }
    .services-grid,.catalog-grid { grid-template-columns:repeat(2,1fr); }
    .service-card:nth-child(2) { border-right:none; }
    .service-card:nth-child(-n+2) { border-bottom:1px solid #333; }
    .projects-grid { grid-template-columns:repeat(2,1fr); }
    .case-section { grid-template-columns:1fr 1fr; }
    .case-content { padding:50px; }
}

@media (max-width:700px) {
    .site-header { height:auto; padding:20px 0; }
    .header-inner { width:88%; flex-wrap:wrap; gap:18px; }
    .logo img,.footer-logo { width:125px; }
    .main-nav { order:3; width:100%; justify-content:center; flex-wrap:wrap; gap:13px; }
    .main-nav a { font-size:10px; }
    .hero { min-height:760px; align-items:flex-end; padding:50px 7%; }
    .hero-image-container { width:100%; height:65%; top:0; opacity:.75; }
    .hero-overlay { background:linear-gradient(0deg,#101010 10%,rgba(16,16,16,.92) 42%,rgba(16,16,16,.25) 100%); }
    .hero-content { width:100%; }
    .hero h1 { font-size:51px; letter-spacing:-2px; }
    .hero p { font-size:16px; }
    .button { width:100%; }
    .manifesto { width:86%; min-height:600px; flex-direction:column; align-items:flex-start; justify-content:center; gap:50px; }
    .manifesto-highlight { text-align:left; }
    .precision,.services,.catalog,.projects,.process { padding:85px 7%; }
    .section-intro { margin-bottom:45px; }
    .section-intro h2 { font-size:48px; }
    .precision-photo { height:420px; }
    .case-section { grid-template-columns:1fr; }
    .case-image { min-height:480px; }
    .case-content { padding:70px 7%; }
    .services-grid,.catalog-grid,.projects-grid { grid-template-columns:1fr; }
    .service-card { min-height:250px; border-right:none; border-bottom:1px solid #333; }
    .service-card:last-child { border-bottom:none; }
    .product-image { height:430px; }
    .project-card-image { height:430px; }
    .process-steps { grid-template-columns:1fr; }
    .process-steps > div { min-height:180px; border-right:none; border-bottom:1px solid #333; }
    .quote { min-height:550px; padding:80px 7%; }
    .quote h2 { font-size:51px; letter-spacing:-2px; }
    .footer-bottom { flex-direction:column; gap:12px; }
}

.cutelaria-viewer-stage{position:relative;min-height:650px;overflow:hidden;border:1px solid #333;background:#101010}
#cutelaria-stl-canvas{width:100%;height:650px;display:block}

.home-cases-wrap{width:100%;margin-top:40px}
.home-cases-grid{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.home-case-card{position:relative;overflow:hidden;min-height:340px;background:#181818;border:1px solid #303030;text-decoration:none}
.home-case-card img{width:100%;height:340px;object-fit:cover;transition:transform .45s ease}
.home-case-card:hover img{transform:scale(1.04)}
.home-case-card-info{position:absolute;left:0;right:0;bottom:0;padding:25px 23px;background:linear-gradient(transparent,rgba(0,0,0,.92))}
.home-case-card-info span{display:block;margin-bottom:6px;color:#aaa;font-size:9px;letter-spacing:2px}
.home-case-card-info strong{display:block;font-size:20px}
.home-case-card-info small{display:block;margin-top:5px;color:#888;font-size:12px}
.home-cases-status{grid-column:1/-1;padding:60px 25px;border:1px solid #333;color:#777;text-align:center;font-size:13px}
@media(max-width:900px){.home-cases-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.home-cases-grid{grid-template-columns:1fr}.home-case-card,.home-case-card img{min-height:380px;height:380px}}

/* HOME — a seção Precisão não duplica mais um case visual */
.precision-main {
    display: block;
}

.precision-main .precision-list {
    max-width: 1100px;
}

/* PROCESSO — player de vídeos da Home */
.home-video-player {
    max-width: 1100px;
    margin: 0 auto;
}

.home-video-toolbar {
    display: grid;
    grid-template-columns: 190px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.home-video-toolbar label {
    color: #777;
    font-size: 10px;
    letter-spacing: 2px;
}

.home-video-toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    padding: 0 13px;
    font-size: 13px;
}

.home-video-stage {
    position: relative;
    min-height: 520px;
    background: #070707;
    border: 1px solid #333;
}

.home-video-stage video {
    width: 100%;
    height: 520px;
    display: block;
    object-fit: contain;
    background: #000;
}

.home-video-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    color: #777;
    text-align: center;
    font-size: 13px;
    pointer-events: none;
}

.home-video-caption {
    min-height: 60px;
    padding: 16px 2px 0;
    color: #aaa;
    font-size: 13px;
}

.home-video-caption span {
    color: #666;
    margin-right: 10px;
    font-size: 10px;
    letter-spacing: 2px;
}

.home-video-caption strong {
    color: #fff;
    font-size: 15px;
}

@media (max-width: 700px) {
    .home-video-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-video-stage,
    .home-video-stage video {
        min-height: 360px;
        height: 360px;
    }
}

.precision-loading{padding:45px 0;color:#777;font-size:13px}

/* PRECISÃO — categorias agrupadas e ordenadas */
.precision-category {
    border-top: 1px solid #333;
}

.precision-category:last-child {
    border-bottom: 1px solid #333;
}

.precision-category-header {
    display: grid;
    grid-template-columns: 70px minmax(0,1fr);
    gap: 18px;
    padding: 28px 0;
    align-items: start;
}

.precision-category-header h3 {
    margin: 0 0 7px;
    font-size: 18px;
    letter-spacing: 1px;
}

.precision-category-header p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.precision-category-projects {
    margin-left: 88px;
    border-top: 1px solid #262626;
}

.precision-product {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #242424;
}

.precision-product:last-child {
    border-bottom: none;
}

.precision-product h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.precision-product p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.precision-product .mini-link {
    margin-top: 0;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .precision-product {
        grid-template-columns: 1fr 1fr;
    }

    .precision-product p:nth-child(3) {
        grid-column: 1 / -1;
    }

    .precision-product .mini-link {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .precision-category-header {
        grid-template-columns: 45px 1fr;
        gap: 12px;
    }

    .precision-category-projects {
        margin-left: 57px;
    }

    .precision-product {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

/* V33 r7 — Vitrine cinematográfica da Home */
.cinematic-hero {
    position: relative;
    min-height: calc(100vh - 82px);
    height: calc(100vh - 82px);
    max-height: 980px;
    overflow: hidden;
    background: #080808;
}

.cinematic-background,
.cinematic-vignette,
.cinematic-gradient {
    position: absolute;
    inset: 0;
}

.cinematic-background {
    z-index: 0;
}

.cinematic-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    filter: saturate(.78) contrast(1.03);
    transition: opacity .55s ease, transform 8s ease;
}

.cinematic-background img.hero-image-in {
    opacity: 1;
    transform: scale(1.08);
}

.cinematic-vignette {
    z-index: 1;
    background:
        radial-gradient(circle at 68% 42%,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,.14) 42%,
            rgba(0,0,0,.72) 100%);
}

.cinematic-gradient {
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,.93) 0%,
            rgba(0,0,0,.78) 28%,
            rgba(0,0,0,.35) 55%,
            rgba(0,0,0,.08) 100%),
        linear-gradient(0deg,
            rgba(0,0,0,.94) 0%,
            rgba(0,0,0,.08) 27%,
            rgba(0,0,0,0) 55%);
}

.cinematic-content {
    position: relative;
    z-index: 4;
    height: 100%;
    width: min(92%, 1500px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 0 28px;
}

.cinematic-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cinematic-topline #hero-counter {
    color: #aaa;
    font-size: 10px;
    letter-spacing: 3px;
}

.cinematic-main {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 45px 0 25px;
}

.cinematic-copy {
    max-width: 690px;
}

.cinematic-category {
    display: inline-block;
    margin-bottom: 17px;
    color: #bbb;
    font-size: 11px;
    letter-spacing: 4px;
}

.cinematic-copy h1 {
    margin: 0 0 16px;
    max-width: 760px;
    font-size: clamp(48px, 7vw, 96px);
    line-height: .9;
    letter-spacing: -5px;
}

.cinematic-copy p {
    min-height: 24px;
    margin: 0 0 30px;
    color: #aaa;
    font-size: 18px;
}

.cinematic-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.55);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    transition: .3s ease;
}

.cinematic-cta:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.cinematic-arrow {
    font-size: 18px;
    line-height: 1;
}

.cinematic-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.cinematic-thumbnails {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: calc(100% - 150px);
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
}

.hero-thumb {
    position: relative;
    flex: 0 0 108px;
    width: 108px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.24);
    background: #111;
    cursor: pointer;
    opacity: .56;
    transition: .28s ease;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-thumb:hover,
.hero-thumb.active {
    opacity: 1;
    border-color: rgba(255,255,255,.85);
    transform: translateY(-3px);
}

.hero-thumb-label {
    position: absolute;
    left: 8px;
    bottom: 6px;
    right: 8px;
    overflow: hidden;
    color: #fff;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 7px #000;
}

.cinematic-controls {
    display: flex;
    gap: 7px;
}

.cinematic-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(0,0,0,.28);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: .25s ease;
}

.cinematic-controls button:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

@media (max-width: 900px) {
    .cinematic-hero {
        min-height: calc(100vh - 72px);
        height: calc(100vh - 72px);
    }

    .cinematic-content {
        width: 88%;
        padding: 28px 0 22px;
    }

    .cinematic-main {
        align-items: flex-end;
        padding-bottom: 45px;
    }

    .cinematic-copy h1 {
        letter-spacing: -3px;
    }

    .cinematic-thumbnails {
        max-width: 100%;
        order: 2;
    }

    .cinematic-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .cinematic-controls {
        order: 1;
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .cinematic-background img {
        object-position: 58% center;
    }

    .cinematic-gradient {
        background:
            linear-gradient(180deg,
                rgba(0,0,0,.4) 0%,
                rgba(0,0,0,.17) 38%,
                rgba(0,0,0,.84) 72%,
                rgba(0,0,0,.98) 100%);
    }

    .cinematic-main {
        align-items: flex-end;
        padding-bottom: 15px;
    }

    .cinematic-copy h1 {
        font-size: clamp(42px, 13vw, 68px);
        line-height: .9;
    }

    .cinematic-copy p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-thumb {
        flex-basis: 84px;
        width: 84px;
        height: 58px;
    }

    .cinematic-controls button {
        width: 38px;
        height: 38px;
    }
}

/* V33 r8 — hierarquia visual da vitrine:
   categoria = protagonista; produto/cliente = contexto */
.cinematic-copy {
    max-width: 820px;
}

.cinematic-category {
    display: block;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .86;
    letter-spacing: -5px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 3px 24px rgba(0,0,0,.35);
}

.cinematic-copy h1 {
    margin: 0 0 10px;
    color: rgba(255,255,255,.88);
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1.05;
    letter-spacing: -1px;
    font-weight: 500;
}

.cinematic-copy p {
    margin: 0 0 28px;
    min-height: 20px;
    color: #9f9f9f;
    font-size: 13px;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .cinematic-category {
        font-size: clamp(32px, 11vw, 52px);
        letter-spacing: -3px;
    }

    .cinematic-copy h1 {
        font-size: 21px;
    }

    .cinematic-copy p {
        font-size: 11px;
    }
}

/* V33 r10 — ticker de categorias estilo bolsa */
.category-ticker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    height: 34px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(8,8,8,.62);
    backdrop-filter: blur(8px);
}

.category-ticker-label {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,.1);
    color: #777;
    font-size: 8px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.category-ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.category-ticker-track {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    animation: categoryTickerMove 28s linear infinite;
}

.category-ticker-group {
    display: inline-flex;
    align-items: center;
}

.category-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    color: #d6d6d6;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}

.category-ticker-item:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
}

.category-ticker-item::after {
    content: "•";
    color: #666;
    margin-left: 12px;
}

.category-ticker-item strong {
    font-weight: 600;
}

.category-ticker-count {
    color: #666;
    font-size: 8px;
    letter-spacing: 1px;
}

.category-ticker-loading {
    padding-left: 22px;
    color: #555;
    font-size: 9px;
    letter-spacing: 1.5px;
}

@keyframes categoryTickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.cinematic-hero {
    padding-top: 34px;
}

@media (prefers-reduced-motion: reduce) {
    .category-ticker-track {
        animation: none;
        transform: none;
    }
}

@media (max-width: 600px) {
    .category-ticker {
        height: 31px;
    }

    .category-ticker-label {
        padding: 0 10px;
        font-size: 7px;
        letter-spacing: 1.4px;
    }

    .category-ticker-item {
        padding: 0 14px;
        font-size: 9px;
    }

    .cinematic-hero {
        padding-top: 31px;
    }
}

/* V33 r11 — linguagem de possibilidades CNC */
.category-ticker-label {
    color: #8a8a8a;
}

.category-ticker-item {
    color: #d0d0d0;
}

.category-ticker-count {
    color: #555;
}

.category-ticker-item::after {
    color: #555;
}

/* V33 r13 — cabeçalho fixo + frase de impacto */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.impact-statement {
    position: relative;
    z-index: 20;
    margin-top: 82px;
    background: #101010;
    border-bottom: 1px solid #292929;
}

.impact-inner {
    width: min(92%, 1500px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 28px 0 26px;
}

.impact-label {
    flex: 0 0 auto;
    color: #666;
    font-size: 9px;
    letter-spacing: 3px;
}

.impact-inner h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 42px);
    line-height: .95;
    letter-spacing: -1.5px;
    font-weight: 600;
}

.cinematic-hero {
    min-height: calc(100vh - 82px);
    height: calc(100vh - 82px);
}

@media (max-width: 700px) {
    .impact-statement {
        margin-top: 72px;
    }

    .impact-inner {
        display: block;
        padding: 20px 0 18px;
    }

    .impact-label {
        display: block;
        margin-bottom: 8px;
    }

    .impact-inner h2 {
        font-size: clamp(22px, 7vw, 32px);
        line-height: .98;
    }

    .cinematic-hero {
        min-height: calc(100vh - 72px);
        height: calc(100vh - 72px);
    }
}

html {
    scroll-padding-top: 82px;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 72px;
    }
}

/* V33 r14 — composição compacta da primeira tela */
.impact-inner {
    display: block;
    padding: 20px 0 19px;
}

.impact-inner h2 {
    margin: 0;
    white-space: nowrap;
    font-size: clamp(20px, 2.5vw, 34px);
    line-height: 1;
    letter-spacing: -.8px;
}

.impact-label {
    display: none;
}

.cinematic-hero {
    min-height: calc(100vh - 82px);
    height: calc(100vh - 82px);
    max-height: none;
}

.cinematic-content {
    padding: 30px 0 18px;
}

.cinematic-main {
    min-height: 0;
    padding: 24px 0 12px;
    align-items: center;
}

.cinematic-copy {
    max-width: 700px;
}

.cinematic-category {
    margin-bottom: 10px;
    font-size: clamp(31px, 4.3vw, 54px);
    letter-spacing: -2.5px;
}

.cinematic-copy h1 {
    margin-bottom: 7px;
    font-size: clamp(17px, 1.9vw, 28px);
}

.cinematic-copy p {
    margin-bottom: 15px;
    font-size: 11px;
}

.cinematic-cta {
    padding: 10px 14px;
    font-size: 9px;
    gap: 14px;
}

.cinematic-bottom {
    gap: 15px;
}

.hero-thumb {
    flex-basis: 88px;
    width: 88px;
    height: 52px;
}

.cinematic-controls button {
    width: 36px;
    height: 36px;
}

.category-ticker {
    height: 30px;
}

.category-ticker-label {
    flex: 0 0 98px;
    justify-content: center;
    padding: 0 8px;
    font-size: 8px;
    letter-spacing: 1.6px;
}

.category-ticker-item {
    padding: 0 16px;
    font-size: 9px;
}

.cinematic-hero {
    padding-top: 30px;
}

@media (max-width: 900px) {
    .impact-inner h2 {
        font-size: clamp(19px, 3.6vw, 30px);
    }

    .cinematic-content {
        padding: 22px 0 14px;
    }

    .cinematic-main {
        padding: 16px 0 9px;
    }

    .cinematic-bottom {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .impact-inner {
        padding: 16px 0 15px;
    }

    .impact-inner h2 {
        white-space: normal;
        font-size: clamp(18px, 6vw, 28px);
        line-height: 1.02;
    }

    .category-ticker {
        height: 28px;
    }

    .category-ticker-label {
        flex-basis: 86px;
        font-size: 7px;
    }

    .cinematic-hero {
        padding-top: 28px;
        min-height: calc(100vh - 72px);
        height: calc(100vh - 72px);
    }

    .cinematic-content {
        padding: 18px 0 12px;
    }

    .cinematic-main {
        padding: 10px 0 7px;
    }

    .cinematic-category {
        font-size: clamp(30px, 10vw, 50px);
    }

    .cinematic-copy h1 {
        font-size: 19px;
    }

    .cinematic-copy p {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .hero-thumb {
        flex-basis: 76px;
        width: 76px;
        height: 48px;
    }
}

/* V33 r15 — impacto completo sem sobreposição do logo */
.site-header .logo img {
    width: auto;
    height: 76px;
    max-height: 76px;
    object-fit: contain;
}

.impact-statement {
    margin-top: 82px;
    min-height: 92px;
    display: flex;
    align-items: center;
    background: #101010;
    border-bottom: 1px solid #292929;
}

.impact-inner {
    width: min(92%, 1500px);
    margin: 0 auto;
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.impact-copy {
    min-width: 0;
}

.impact-copy > span {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 8px;
    letter-spacing: 3px;
}

.impact-copy h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(22px, 2.8vw, 36px);
    line-height: .95;
    letter-spacing: -1.1px;
    font-weight: 600;
    white-space: nowrap;
}

.impact-copy p {
    margin: 0;
    color: #999;
    font-size: 11px;
    line-height: 1.3;
}

.impact-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 9px;
    letter-spacing: 1.4px;
    transition: .25s ease;
}

.impact-button:hover {
    background: #fff;
    color: #111;
}

.cinematic-hero {
    min-height: calc(100vh - 82px - 92px);
    height: calc(100vh - 82px - 92px);
}

@media (max-width: 800px) {
    .site-header .logo img {
        height: 68px;
        max-height: 68px;
    }

    .impact-statement {
        margin-top: 72px;
        min-height: 108px;
    }

    .impact-inner {
        padding: 14px 0;
        gap: 14px;
    }

    .impact-copy h2 {
        white-space: normal;
        font-size: clamp(20px, 5vw, 30px);
        line-height: 1;
    }

    .impact-copy p {
        font-size: 10px;
    }

    .impact-button {
        padding: 0 12px;
        min-height: 32px;
        font-size: 8px;
    }

    .cinematic-hero {
        min-height: calc(100vh - 72px - 108px);
        height: calc(100vh - 72px - 108px);
    }
}

@media (max-width: 560px) {
    .impact-inner {
        display: block;
    }

    .impact-button {
        margin-top: 9px;
    }
}

/* V33 r16 — somente ajustes solicitados */
html {
    scroll-padding-top: 0;
}

.cinematic-thumbnails {
    gap: 13px;
}

.hero-thumb {
    flex-basis: 132px;
    width: 132px;
    height: 80px;
}

@media (max-width: 900px) {
    .hero-thumb {
        flex-basis: 112px;
        width: 112px;
        height: 70px;
    }
}

@media (max-width: 600px) {
    .hero-thumb {
        flex-basis: 96px;
        width: 96px;
        height: 62px;
    }
}

/* V33 r18 — cabeçalho fixo; frase rola normalmente abaixo dele */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.impact-statement {
    position: relative;
    margin-top: 82px;
    z-index: 20;
}

.impact-inner {
    display: block;
}

.impact-copy h2 {
    white-space: nowrap;
}

.cinematic-hero {
    min-height: calc(100vh - 82px);
    height: calc(100vh - 82px);
}

/* A área continua grande, mas a imagem passa a caber inteira */
.cinematic-background img {
    object-fit: contain;
    object-position: center center;
    transform: scale(.96);
}

.cinematic-background img.hero-image-in {
    transform: scale(1.01);
}

@media (max-width: 900px) {
    .impact-statement {
        margin-top: 72px;
    }

    .cinematic-hero {
        min-height: calc(100vh - 72px);
        height: calc(100vh - 72px);
    }
}

@media (max-width: 600px) {
    .impact-copy h2 {
        white-space: normal;
    }

    .cinematic-background img {
        object-fit: contain;
        transform: scale(.98);
    }

    .cinematic-background img.hero-image-in {
        transform: scale(1.0);
    }
}

html { scroll-padding-top: 82px; }

/* V33 r19 — toda a vitrine, inclusive miniaturas, dentro da primeira tela */
.cinematic-hero {
    min-height: calc(100vh - 82px - 92px);
    height: calc(100vh - 82px - 92px);
}

.cinematic-content {
    padding-top: 28px;
    padding-bottom: 16px;
}

.cinematic-main {
    padding-top: 16px;
    padding-bottom: 8px;
}

@media (max-width: 900px) {
    .cinematic-hero {
        min-height: calc(100vh - 72px - 96px);
        height: calc(100vh - 72px - 96px);
    }
}

@media (max-width: 600px) {
    .cinematic-hero {
        min-height: calc(100vh - 72px - 96px);
        height: calc(100vh - 72px - 96px);
    }
}

/* V33 r30 — topo real + ordem inicial: ticker → frase → hero */
#topo {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
}

.category-ticker {
    position: relative;
    z-index: 30;
}

.impact-statement {
    position: relative;
    z-index: 20;
}

@media (min-width: 701px) {
    .category-ticker {
        margin-top: 82px;
    }
    .impact-statement {
        margin-top: 0 !important;
    }
}

@media (max-width: 700px) {
    .category-ticker {
        margin-top: 72px;
    }
    .impact-statement {
        margin-top: 0 !important;
    }
}

/* V34 r1 — frase de impacto integrada ao cinema + metadados sobre thumbnails */
.impact-statement { display: none !important; }

.cinematic-hero {
    padding-top: 34px;
    position: relative;
}

.cinematic-image-link {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.cinematic-image-link #hero-case-image {
    cursor: pointer;
}

.cinematic-impact {
    width: min(900px, 88%);
    margin: 0 auto;
    padding: 19px 28px 18px;
    text-align: center;
    background: rgba(12,12,12,.48);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(2px);
    box-shadow: 0 18px 55px rgba(0,0,0,.18);
}

.cinematic-impact > span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.62);
    font-size: 9px;
    letter-spacing: 4px;
}

.cinematic-impact h1 {
    margin: 0 0 6px;
    color: rgba(255,255,255,.93);
    font-size: clamp(31px, 4.3vw, 58px);
    line-height: .98;
    letter-spacing: -2.2px;
    font-weight: 650;
    text-shadow: 0 3px 22px rgba(0,0,0,.42);
}

.cinematic-impact p {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: clamp(11px, 1.15vw, 14px);
    letter-spacing: .2px;
}

.cinematic-project-strip {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cinematic-project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 6px 10px;
    background: rgba(0,0,0,.45);
    border-left: 2px solid rgba(255,255,255,.22);
    backdrop-filter: blur(4px);
}

.cinematic-project-meta .cinematic-category {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 17px;
    line-height: 1;
    letter-spacing: 1.7px;
    font-weight: 700;
}

.cinematic-project-meta h2 {
    margin: 0;
    color: rgba(255,255,255,.94);
    font-size: 14px;
    line-height: 1;
    letter-spacing: .25px;
    font-weight: 500;
}

.cinematic-project-meta p {
    margin: 0;
    color: rgba(255,255,255,.57);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .8px;
}

.cinematic-cta-discreet {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 7px 10px;
    gap: 8px;
    border-color: rgba(255,255,255,.25);
    background: rgba(0,0,0,.22);
    color: rgba(255,255,255,.74);
    font-size: 8px;
    letter-spacing: 1.6px;
}

.cinematic-cta-discreet:hover {
    background: rgba(255,255,255,.9);
    color: #111;
    border-color: rgba(255,255,255,.9);
}

.cinematic-cta-discreet .cinematic-arrow {
    font-size: 12px;
}

.cinematic-thumbnails {
    max-width: min(980px, calc(100vw - 250px));
    padding-bottom: 2px;
}

.hero-thumb {
    cursor: pointer;
}

@media (max-width: 900px) {
    .cinematic-impact {
        width: min(94%, 760px);
        padding: 16px 18px;
    }

    .cinematic-project-meta {
        flex-wrap: wrap;
        gap: 7px 10px;
    }

    .cinematic-cta-discreet {
        margin-left: 0;
    }

    .cinematic-thumbnails {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .cinematic-impact {
        padding: 14px 13px;
    }

    .cinematic-impact h1 {
        font-size: clamp(28px, 9.7vw, 43px);
        letter-spacing: -1.4px;
    }

    .cinematic-impact p {
        font-size: 10px;
        line-height: 1.3;
    }

    .cinematic-project-meta .cinematic-category {
        font-size: 14px;
    }

    .cinematic-project-meta h2 {
        font-size: 12px;
    }

    .cinematic-project-meta p {
        font-size: 10px;
    }
}

/* V34 r1 — áreas sobrepostas não bloqueiam o clique na imagem */
.cinematic-vignette,
.cinematic-gradient,
.cinematic-topline,
.cinematic-main,
.cinematic-impact,
.cinematic-bottom {
    pointer-events: none;
}

.cinematic-cta-discreet,
.cinematic-thumbnails,
.cinematic-controls,
.hero-thumb,
.cinematic-controls button {
    pointer-events: auto;
}


/* V34 r3 — frase de apoio também é o botão de orçamento */
.cinematic-budget-prompt {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 95%;
    margin: 0 auto;
    padding: 7px 13px;
    color: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(0,0,0,.26);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.35;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
    box-sizing: border-box;
}
.cinematic-budget-prompt:hover {
    color: #fff;
    background: rgba(0,0,0,.52);
    border-color: rgba(255,255,255,.82);
}
.cinematic-budget-arrow {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    flex: 0 0 auto;
}
@media (max-width: 600px) {
    .cinematic-budget-prompt {
        max-width: 100%;
        padding: 6px 9px;
        font-size: 10px;
    }
}

/* V34 r4 — ajustes Home + thumbnails do Processo */
.main-nav a {
    font-size: 14px;
    letter-spacing: .8px;
}

.cinematic-topline {
    min-height: 18px;
}

.cinematic-topline #hero-counter {
    margin-left: auto;
}

/* Cinema maior na Home */
.cinematic-hero {
    min-height: calc(100vh - 82px);
    height: calc(100vh - 82px);
}

/* Frase sempre em uma única linha no cinema */
.cinematic-impact {
    width: min(1120px, 94%);
    padding: 18px 28px 17px;
}

.cinematic-impact h1 {
    white-space: nowrap;
    font-size: clamp(20px, 3.8vw, 56px);
    letter-spacing: -2.8px;
}

.cinematic-budget-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(0,0,0,.12);
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: clamp(10px, 1.05vw, 14px);
    line-height: 1.25;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    cursor: pointer;
}

.cinematic-budget-prompt:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.cinematic-budget-arrow {
    font-size: 14px;
    line-height: 1;
}

/* Metadados continuam sobre a faixa das miniaturas */
.cinematic-project-meta {
    position: relative;
    z-index: 6;
}

/* Thumbnails 7 x 7 cm para “Veja a máquina trabalhando” */
.home-video-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 24px;
    padding: 2px 0 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.process-video-thumb {
    position: relative;
    flex: 0 0 70mm;
    width: 70mm;
    height: 70mm;
    min-width: 70mm;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.20);
    background: #090909;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform .22s ease, border-color .22s ease, opacity .22s ease;
}

.process-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #050505;
}

.process-video-thumb-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.88) 100%);
}

.process-video-thumb-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-shadow: 0 2px 10px #000;
}

.process-video-thumb-label strong {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.process-video-thumb-label small {
    overflow: hidden;
    color: #aaa;
    font-size: 9px;
    letter-spacing: 1px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.process-video-thumb-play {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(0,0,0,.38);
    font-size: 12px;
}

.process-video-thumb:hover,
.process-video-thumb.active {
    border-color: #fff;
    transform: translateY(-3px);
}

.home-video-stage {
    min-height: 610px;
}

.home-video-stage video {
    height: 610px;
}

.home-video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-video-play-overlay span {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border: 1px solid rgba(255,255,255,.70);
    background: rgba(0,0,0,.42);
    border-radius: 50%;
    font-size: 22px;
    transition: .25s ease;
}

.home-video-play-overlay:hover span {
    background: #fff;
    color: #111;
}

.home-video-play-overlay.hidden {
    display: none;
}

@media (max-width: 900px) {
    .main-nav a { font-size: 12px; }

    .cinematic-hero {
        min-height: calc(100vh - 72px);
        height: calc(100vh - 72px);
    }

    .home-video-stage,
    .home-video-stage video {
        min-height: 500px;
        height: 500px;
    }
}

@media (max-width: 700px) {
    .cinematic-impact h1 {
        font-size: clamp(20px, 6vw, 30px);
        letter-spacing: -1.5px;
    }

    .cinematic-impact {
        width: 96%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-video-thumbnails {
        flex-wrap: nowrap;
    }

    .process-video-thumb {
        flex-basis: 70mm;
        width: 70mm;
        min-width: 70mm;
        height: 70mm;
    }

    .home-video-stage,
    .home-video-stage video {
        min-height: 360px;
        height: 360px;
    }
}

/* V34 r5 — thumbnails de 6x6 cm e player somente sob clique */
.home-video-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-height: none;
    overflow-x: auto;
    margin-bottom: 24px;
}
.process-video-thumb {
    flex: 0 0 60mm !important;
    width: 60mm !important;
    min-width: 60mm !important;
    height: 60mm !important;
}
.deferred-video-stage {
    display: none !important;
}
.home-video-caption {
    display: none;
}

.home-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
}
.home-video-modal.open { display: flex; }
.home-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.86);
    backdrop-filter: blur(4px);
}
.home-video-modal-panel {
    position: relative;
    z-index: 1;
    width: min(1180px, 94vw);
    max-height: 92vh;
    padding: 18px;
    border: 1px solid #444;
    background: #090909;
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.home-video-modal-title {
    padding: 0 52px 14px 4px;
    color: #aaa;
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.home-video-modal-player {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #000;
    object-fit: contain;
}
.home-video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid #555;
    background: #111;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.home-video-modal-close:hover { background: #fff; color: #111; }
body.video-modal-open { overflow: hidden; }

/* O ticker é controlado exclusivamente por TICKER_POSSIBILIDADES.txt. */
.category-ticker-item { cursor: default; }
.category-ticker-item[href] { cursor: pointer; }
.category-ticker-item[href]:hover strong { text-decoration: underline; }

@media (max-width: 700px) {
    .process-video-thumb {
        flex-basis: 60mm !important;
        width: 60mm !important;
        min-width: 60mm !important;
        height: 60mm !important;
    }
    .home-video-modal { padding: 12px; }
    .home-video-modal-panel { padding: 10px; }
}


/* V34 r7 — ajustes finos do cinema e ticker fluido */
.category-ticker-track {
    animation-duration: 36s !important;
    animation-timing-function: linear;
    transform: translate3d(0,0,0);
    will-change: transform;
    backface-visibility: hidden;
    contain: layout paint;
}

.cinematic-impact {
    transform: translateY(-38px);
}

.cinematic-project-strip {
    transform: translateY(-18px);
}

.hero-thumb:hover,
.hero-thumb.active {
    border-color: #e6b800;
}

@media (max-width: 700px) {
    .cinematic-impact {
        transform: translateY(-24px);
    }
    .cinematic-project-strip {
        transform: translateY(-10px);
    }
}


/* V34 r8 — navegação: pausa do ticker sob o mouse + âncoras mais próximas do cabeçalho */
.category-ticker:hover .category-ticker-track,
.category-ticker:focus-within .category-ticker-track {
    animation-play-state: paused !important;
}

/* V34 r10 — navegação sem a faixa escura herdada da antiga frase de impacto.
   O cabeçalho é fixo (82px), então cada seção começa logo abaixo dele. */
@media (min-width: 701px) {
    #precisao,
    #servicos,
    #catalogo,
    #projetos,
    #processo {
        padding-top: 10px;
        scroll-margin-top: 82px;
    }
}

@media (max-width: 700px) {
    #precisao,
    #servicos,
    #catalogo,
    #projetos,
    #processo {
        padding-top: 10px;
        scroll-margin-top: 72px;
    }
}

/* V34 r11 — Home mais leve: categorias em vez de thumbnails de projetos */
.project-category-buttons {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid #333;
}

.project-category-button {
    position: relative;
    min-height: 122px;
    display: grid;
    grid-template-columns: 55px minmax(0,1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    padding: 22px 20px;
    border: 0;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .22s ease, color .22s ease;
}

.project-category-button:nth-child(even) {
    border-right: 0;
}

.project-category-button:hover {
    background: #fff;
    color: #111;
}

.project-category-button-index {
    grid-row: 1 / 3;
    color: #666;
    font-size: 11px;
    letter-spacing: 2px;
}

.project-category-button strong {
    font-size: 22px;
    letter-spacing: .5px;
}

.project-category-button small {
    color: #777;
    font-size: 11px;
    margin-top: 3px;
}

.project-category-button:hover small,
.project-category-button:hover .project-category-button-index {
    color: #555;
}

.project-category-button-arrow {
    grid-row: 1 / 3;
    font-size: 24px;
    line-height: 1;
}

.home-video-filter-empty {
    flex: 1 1 100%;
    padding: 32px 0;
    color: #777;
    font-size: 13px;
    border-bottom: 1px solid #2b2b2b;
}

@media (max-width: 800px) {
    .project-category-buttons {
        grid-template-columns: 1fr;
    }

    .project-category-button {
        border-right: 0;
    }
}


/* V34 r13 — controles do cinema alinhados à direita, como na referência visual. */
.cinematic-bottom {
    position: relative;
    display: block;
    min-height: 82px;
}

.cinematic-project-strip {
    width: 100%;
    padding-right: 150px;
    box-sizing: border-box;
}

.cinematic-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.cinematic-controls button {
    flex: 0 0 42px;
}

@media (max-width: 900px) {
    .cinematic-bottom { min-height: 78px; }
    .cinematic-project-strip { padding-right: 132px; }
    .cinematic-controls button { width: 38px; height: 38px; flex-basis: 38px; }
}

@media (max-width: 600px) {
    .cinematic-bottom { min-height: 74px; }
    .cinematic-project-strip { padding-right: 0; padding-bottom: 52px; }
    .cinematic-controls { right: 0; bottom: 0; }
}


/* V34 r14 — Home sem degradê e sem contador visual. */
.cinematic-gradient,
.cinematic-vignette {
    display: none !important;
}
.cinematic-topline {
    display: none !important;
}


/* V34 r15 — Projetos passa a concentrar os thumbnails que antes ficavam na Home. */
.projects-home-gallery {
    max-width: 1500px;
    margin: 0 auto;
    min-height: 180px;
}

.projects-home-thumbnails {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    max-width: none;
    overflow: visible;
    padding: 0;
}

.projects-home-thumbnails .hero-thumb {
    flex: 0 0 150px;
    width: 150px;
    height: 92px;
}

.projects-gallery-status {
    margin-top: 18px;
}

@media (max-width: 700px) {
    .projects-home-thumbnails {
        gap: 8px;
    }
    .projects-home-thumbnails .hero-thumb {
        flex-basis: 112px;
        width: 112px;
        height: 70px;
    }
}

/* Os thumbnails não fazem mais parte da primeira tela cinematográfica. */
.cinematic-hero .cinematic-thumbnails {
    display: none !important;
}

/* V34 r15 — Projetos concentra os thumbnails que antes ficavam na Home. */
.projects-home-gallery {
    max-width: 1500px;
    margin: 0 auto;
    min-height: 180px;
}
.projects-home-thumbnails {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    max-width: none;
    overflow: visible;
    padding: 0;
}
.projects-home-thumbnails .hero-thumb {
    flex: 0 0 150px;
    width: 150px;
    height: 92px;
}
.projects-gallery-status {
    margin-top: 18px;
}
@media (max-width: 700px) {
    .projects-home-thumbnails { gap: 8px; }
    .projects-home-thumbnails .hero-thumb {
        flex-basis: 112px;
        width: 112px;
        height: 70px;
    }
}
.cinematic-hero .cinematic-thumbnails { display: none !important; }

/* V34 r16 — Cinema simplificado: dois triângulos laterais e legenda compacta à esquerda. */
.cinematic-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    min-height: 0;
    display: block;
    pointer-events: none;
}

.cinematic-project-strip {
    width: auto;
    padding: 0;
    pointer-events: none;
}

.cinematic-project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    max-width: 260px;
    pointer-events: auto;
}

.cinematic-project-meta .cinematic-cta {
    margin: 0 0 5px 0;
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 1.6px;
}

.cinematic-project-meta .cinematic-category,
.cinematic-project-meta h2,
.cinematic-project-meta p {
    margin: 0;
    line-height: 1.15;
}

.cinematic-project-meta .cinematic-category {
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.cinematic-project-meta h2 {
    font-size: 16px;
    font-weight: 600;
}

.cinematic-project-meta p {
    font-size: 13px;
    opacity: .9;
}

.cinematic-controls {
    position: absolute;
    inset: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.cinematic-controls button {
    pointer-events: auto;
    width: 54px;
    height: 80px;
    flex: 0 0 54px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

.cinematic-controls button:hover {
    background: transparent;
    color: #fff;
    border: 0;
    transform: scale(1.12);
}

@media (max-width: 700px) {
    .cinematic-bottom {
        bottom: 22px;
    }
    .cinematic-project-meta {
        max-width: 205px;
    }
    .cinematic-project-meta .cinematic-category {
        font-size: 11px;
    }
    .cinematic-project-meta h2 {
        font-size: 14px;
    }
    .cinematic-project-meta p {
        font-size: 11px;
    }
    .cinematic-controls button {
        width: 44px;
        height: 68px;
        flex-basis: 44px;
        font-size: 24px;
    }
}

/* Home: os thumbnails ficam exclusivamente na seção Projetos. */
.cinematic-hero .cinematic-thumbnails {
    display: none !important;
}

/* V34 r18 — controles do cinema centralizados na imagem e legenda lateral mais estreita. */
.cinematic-bottom {
    position: static;
    min-height: 0;
}

.cinematic-project-strip {
    position: absolute;
    left: 0;
    bottom: 34px;
    width: auto;
    padding: 0;
}

.cinematic-project-meta {
    max-width: 220px;
}

.cinematic-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.cinematic-controls button {
    pointer-events: auto;
}

@media (max-width: 700px) {
    .cinematic-project-strip {
        left: 0;
        bottom: 22px;
    }

    .cinematic-project-meta {
        max-width: 185px;
    }
}

/* V34 r18 — correção do cinema em celular vertical.
   Em telas estreitas a imagem não deve ficar centralizada dentro de uma área
   de altura de viewport, pois isso cria uma grande faixa preta acima dela. */
@media (max-width: 600px) {
    .cinematic-hero {
        height: 56.25vw;
        min-height: 190px;
        max-height: none;
        padding-top: 0;
    }

    .cinematic-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: none;
    }

    .cinematic-background img.hero-image-in {
        transform: none;
    }

    .cinematic-content {
        width: 100%;
        padding: 0 0 10px;
    }

    .cinematic-main {
        padding: 0;
        align-items: center;
    }

    .cinematic-impact {
        width: calc(100% - 18px);
        padding: 10px 8px 9px;
        transform: translateY(-8px);
    }

    .cinematic-impact > span {
        margin-bottom: 3px;
        font-size: 8px;
        letter-spacing: 3px;
    }

    .cinematic-impact h1 {
        font-size: clamp(21px, 7.2vw, 31px);
        letter-spacing: -1.3px;
        white-space: nowrap;
    }

    .cinematic-budget-prompt {
        max-width: calc(100% - 6px);
        padding: 5px 7px;
        font-size: 9px;
        line-height: 1.15;
    }

    .cinematic-project-strip {
        left: 10px;
        bottom: 10px;
        max-width: 155px;
        transform: none;
    }

    .cinematic-project-meta {
        max-width: 155px;
        padding: 5px 7px;
        gap: 4px;
        background: rgba(0,0,0,.46);
    }

    .cinematic-project-meta .cinematic-cta {
        padding: 7px 9px;
        margin-bottom: 2px;
    }
}

/* V35 r1 — ajustes solicitados */
.logo { position: relative; }
.logo-home-tooltip {
    position: absolute;
    left: 50%;
    bottom: -19px;
    transform: translateX(-50%);
    padding: 2px 7px;
    background: #111;
    color: #ddd;
    border: 1px solid #3a3a3a;
    font-size: 8px;
    letter-spacing: 1.2px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.logo:hover .logo-home-tooltip,
.logo:focus-visible .logo-home-tooltip { opacity: 1; }

/* Ticker sempre visível no celular vertical */
.category-ticker {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
}
.category-ticker-viewport {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

/* Mensagens alternadas dentro do cinema */
.cinematic-impact {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cinematic-impact-copy {
    margin: 0 0 9px;
    color: rgba(255,255,255,.65);
    font-size: clamp(11px, 1.15vw, 14px);
    line-height: 1.32;
}
.cinematic-impact-copy:empty { display: none; }
.cinematic-impact.is-switching {
    animation: tkImpactFade .24s ease;
}
@keyframes tkImpactFade {
    from { opacity: .72; }
    to { opacity: 1; }
}

/* Seletor de projetos acima dos thumbnails */
.projects-video-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}
.projects-video-toolbar label {
    color: #888;
    font-size: 9px;
    letter-spacing: 1.8px;
}
.projects-video-toolbar select {
    min-width: 270px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    font-size: 10px;
    letter-spacing: .6px;
    cursor: pointer;
}
.projects-video-toolbar select:hover,
.projects-video-toolbar select:focus {
    border-color: #fff;
    outline: none;
}

@media (max-width: 700px) {
    .logo-home-tooltip { bottom: -17px; }
    .projects-video-toolbar {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }
    .projects-video-toolbar select { width: 100%; min-width: 0; }
    .cinematic-impact {
        min-height: 165px;
    }
    .cinematic-impact-copy {
        font-size: 10px;
    }
    .category-ticker {
        display: flex !important;
        width: 100%;
        min-height: 28px;
    }
}

/* V35 r1 — texto de impacto alternado, seletor de projetos e controles laterais */
.cinematic-impact-copy {
    max-width: 820px;
    margin: 0 auto 9px;
}
.cinematic-impact.is-switching {
    animation: tkImpactFade .22s ease;
}
@keyframes tkImpactFade {
    from { opacity: .68; }
    to { opacity: 1; }
}

.projects-video-toolbar {
    margin-bottom: 16px;
}

/* Controles agora ficam no centro vertical real do cinema: um de cada lado. */
.cinematic-bottom {
    position: static;
    min-height: 0;
}
.cinematic-controls {
    position: absolute !important;
    inset: 0;
    display: block;
    pointer-events: none;
    z-index: 8;
}
.cinematic-controls button {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.92);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: auto;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.cinematic-controls button:first-child {
    left: 14px;
}
.cinematic-controls button:last-child {
    right: 14px;
}
.cinematic-controls button:hover {
    background: transparent;
    color: #fff;
    border-color: transparent;
    transform: translateY(-50%) scale(1.12);
}

@media (max-width: 700px) {
    .cinematic-controls button {
        width: 34px;
        height: 50px;
        font-size: 28px;
    }
    .cinematic-controls button:first-child { left: 7px; }
    .cinematic-controls button:last-child { right: 7px; }
    .cinematic-impact-copy {
        font-size: 10px;
        line-height: 1.28;
    }
}


/* V35 r1 — ajustes finais solicitados */
.cinematic-impact-copy {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    align-self: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.projects-video-toolbar {
    width: 100%;
    justify-content: flex-start !important;
    align-items: center;
    margin: 0 0 12px;
}

.logo-home-tooltip {
    display: block;
    z-index: 20;
}

@media (max-width: 700px) {
    .projects-video-toolbar {
        justify-content: flex-start !important;
        align-items: stretch;
    }
}


/* V35 r3 — simplificação da Home e ajuste responsivo do cinema */
/* A seção Precisão foi removida da Home; regras abaixo neutralizam qualquer
   espaçamento residual caso versões antigas do CSS sejam carregadas. */
#precisao,
.precision,
.precision-main,
#precision-list {
    display: none !important;
}

/* Subir o bloco de frases dentro do cinema e manter o botão numa linha própria. */
.cinematic-impact {
    transform: translateY(-14px);
}

.cinematic-budget-prompt {
    margin-top: 10px !important;
    align-self: center;
    text-align: center;
}

/* Triângulos mais próximos do centro vertical. */
.cinematic-controls button {
    top: 47%;
}

/* Botão Ver Projeto responsivo: nunca deve dominar a tela no celular. */
.cinematic-project-meta .cinematic-cta-discreet {
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .cinematic-impact {
        transform: translateY(-18px);
        width: calc(100% - 24px);
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .cinematic-impact h1 {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        font-size: clamp(19px, 7vw, 31px);
        line-height: 1.03;
    }

    .cinematic-impact-copy {
        max-width: 100%;
        text-align: center !important;
        overflow-wrap: anywhere;
    }

    .cinematic-budget-prompt {
        display: flex;
        width: min(100%, 320px);
        max-width: 100%;
        margin-top: 12px !important;
        white-space: normal;
        text-align: center;
        justify-content: center;
        padding: 6px 8px;
        font-size: clamp(8px, 2.7vw, 10px);
        line-height: 1.2;
    }

    .cinematic-project-strip {
        max-width: calc(100vw - 28px);
        left: 10px;
        bottom: 10px;
    }

    .cinematic-project-meta {
        max-width: calc(100vw - 28px);
        width: fit-content;
    }

    .cinematic-project-meta .cinematic-cta-discreet {
        max-width: calc(100vw - 48px);
        font-size: clamp(7px, 2.2vw, 9px);
        padding: 6px 8px;
        letter-spacing: 1px;
    }

    .cinematic-controls button {
        top: 44%;
    }
}

/* V35 r4 — correção definitiva do layout da Home no celular vertical */
@media (max-width: 600px) {
    /* O cinema passa a ter altura controlada pela proporção da tela,
       mantendo o conteúdo centralizado e sem corte. */
    .cinematic-hero {
        height: 92vw !important;
        min-height: 280px !important;
        max-height: 390px !important;
        padding-top: 0 !important;
    }

    .cinematic-content {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        position: absolute !important;
        inset: 0;
    }

    /* A caixa das frases fica realmente no centro do cinema. */
    .cinematic-main {
        position: absolute !important;
        inset: 0 !important;
        z-index: 5;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .cinematic-impact {
        width: calc(100% - 42px) !important;
        max-width: 620px !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 12px 12px 10px !important;
        transform: translateY(-8px) !important;
        box-sizing: border-box;
    }

    .cinematic-impact > span {
        margin-bottom: 5px !important;
        font-size: clamp(7px, 2.1vw, 9px) !important;
        letter-spacing: 2.5px !important;
    }

    .cinematic-impact h1 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 7px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        font-size: clamp(19px, 6.3vw, 29px) !important;
        line-height: 1.02 !important;
        letter-spacing: -1px !important;
        text-align: center !important;
    }

    .cinematic-impact-copy {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 8px !important;
        font-size: clamp(9px, 2.8vw, 11px) !important;
        line-height: 1.25 !important;
        text-align: center !important;
        overflow-wrap: break-word !important;
    }

    .cinematic-budget-prompt {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin: 5px auto 0 !important;
        padding: 6px 9px !important;
        font-size: clamp(7px, 2.35vw, 10px) !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* Controles usam o cinema inteiro como referência vertical. */
    .cinematic-bottom {
        position: static !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cinematic-controls {
        position: absolute !important;
        inset: 0 !important;
        z-index: 8 !important;
        pointer-events: none;
    }

    .cinematic-controls button {
        top: 46% !important;
        transform: translateY(-50%) !important;
        width: 30px !important;
        height: 46px !important;
        font-size: 25px !important;
        padding: 0 !important;
        pointer-events: auto;
    }

    .cinematic-controls button:first-child {
        left: 4px !important;
    }

    .cinematic-controls button:last-child {
        right: 4px !important;
    }

    /* No celular, somente o botão interessa; os metadados ocupavam espaço demais. */
    .cinematic-project-strip {
        left: 10px !important;
        bottom: 9px !important;
        width: auto !important;
        max-width: calc(100% - 20px) !important;
        transform: none !important;
        z-index: 7;
    }

    .cinematic-project-meta {
        width: auto !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        background: transparent !important;
        border-left: 0 !important;
        backdrop-filter: none !important;
    }

    .cinematic-project-meta .cinematic-category,
    .cinematic-project-meta h2,
    .cinematic-project-meta p {
        display: none !important;
    }

    .cinematic-project-meta .cinematic-cta-discreet {
        display: inline-flex !important;
        width: auto !important;
        max-width: 150px !important;
        padding: 6px 9px !important;
        margin: 0 !important;
        font-size: 8px !important;
        line-height: 1 !important;
        letter-spacing: 1.2px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
}

/* V35 r5 — projeto com cinema de imagens + STL mais responsivo */
.param-project-cinema {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #080808;
}
.param-project-slides {
    position: absolute;
    inset: 0;
}
.param-project-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .7s ease;
}
.param-project-slide.active { opacity: 1; }
.param-project-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.16);
    pointer-events: none;
}
.param-project-overlay {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 86%);
    padding: 24px 30px 26px;
    text-align: center;
    background: rgba(10,10,10,.46);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(2px);
    box-sizing: border-box;
}
.param-project-overlay .eyebrow {
    display: block;
    margin-bottom: 8px;
}
.param-project-overlay h1 {
    margin: 0 0 10px;
    font-size: clamp(38px, 5vw, 76px);
    line-height: .95;
    letter-spacing: -2.5px;
}
.param-project-overlay p {
    margin: 0;
    color: rgba(255,255,255,.70);
    font-size: clamp(12px, 1.4vw, 17px);
}
.param-project-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #777;
    font-size: 12px;
    letter-spacing: 2px;
}
@media (max-width: 700px) {
    .param-project-cinema { min-height: 48vh; }
    .param-project-overlay { width: 92%; padding: 18px 16px 20px; }
    .param-project-overlay h1 { font-size: clamp(28px, 8vw, 44px); letter-spacing: -1.2px; }
    .param-project-overlay p { font-size: 11px; line-height: 1.35; }
}

/* V35 r5 — rotação STL mais rápida */
#param-stl-canvas { touch-action: none; }


/* V35 r6 — refinamentos de catálogo, projetos, frases, STL e glossário */
/* Catálogo: imagens pela metade do tamanho visual anterior. */
.product-image { height: 180px; }

/* Thumbnails/Registros do projeto: 50% maiores. */
.param-image img { height: 585px; }

/* Frases de abertura: reforço na 1ª e 3ª linha, mantendo a principal. */
.cinematic-impact > span {
    font-size: clamp(10px, 1vw, 12px);
}
.cinematic-impact-copy {
    font-size: clamp(13px, 1.3vw, 16px);
}

/* Catálogo em tela cheia ao clicar. */
.product-image { cursor: zoom-in; }
.catalog-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.94);
}
.catalog-image-modal.open { display: flex; }
.catalog-image-modal-image {
    display: block;
    max-width: 96vw;
    max-height: 94vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.catalog-image-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.catalog-image-modal-close:hover { background: #fff; color: #111; }
body.catalog-modal-open { overflow: hidden; }

/* Glossário distinto no rodapé. */
.footer-glossary {
    max-width: 1500px;
    margin: 0 auto 50px;
    padding: 30px 0 36px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}
.footer-glossary-head { margin-bottom: 28px; }
.footer-glossary-head .eyebrow { margin-bottom: 9px; }
.footer-glossary-head h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -1px;
}
.footer-glossary-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.footer-glossary-grid article {
    padding: 20px;
    border: 1px solid #292929;
    background: #0d0d0d;
}
.footer-glossary-grid h3 {
    margin-bottom: 8px;
    font-size: 20px;
    letter-spacing: 1px;
}
.footer-glossary-grid strong {
    display: block;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 11px;
    line-height: 1.45;
}
.footer-glossary-grid p {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

/* STL: triplica velocidade manual e automática em relação à V35 r5. */
@media (max-width: 700px) {
    .product-image { height: 160px; }
    .param-image img { height: 360px; }
    .cinematic-impact > span { font-size: clamp(9px, 2.7vw, 11px); }
    .cinematic-impact-copy { font-size: clamp(11px, 3.1vw, 13px); }
    .footer-glossary-grid { grid-template-columns: 1fr; }
    .catalog-image-modal { padding: 10px; }
    .catalog-image-modal-image { max-width: 98vw; max-height: 92vh; }
}


/* V35 r7 — refinamentos de orçamento e catálogo */
.catalog { padding-top: 60px; padding-bottom: 60px; }
.product-image { height: 144px; }
@media (max-width: 700px) {
    .product-image { height: 128px; }
}


/* V35 r8 — correção específica para celular em modo horizontal (landscape). */
@media (max-width: 900px) and (orientation: landscape) {
    .cinematic-hero {
        height: 72vh !important;
        min-height: 300px !important;
        max-height: 560px !important;
    }

    .cinematic-content {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
    }

    .cinematic-main {
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 7vw !important;
    }

    .cinematic-impact {
        max-width: min(760px, 78vw) !important;
        margin: 0 auto !important;
        transform: translateY(-8px) !important;
    }

    .cinematic-controls {
        position: absolute !important;
        inset: 0 !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    .cinematic-controls button {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        pointer-events: auto !important;
    }

    .cinematic-controls button:first-child { left: 10px !important; }
    .cinematic-controls button:last-child { right: 10px !important; }

    .cinematic-project-strip {
        position: absolute !important;
        left: 14px !important;
        bottom: 12px !important;
        z-index: 9 !important;
    }

    .cinematic-project-meta {
        max-width: 200px !important;
    }
}


/* V35 r9 — Galeria: imagens reduzidas e zoom por rolagem no modo tela cheia. */
.catalog-image-modal-image {
    transition: transform .12s ease-out;
    will-change: transform;
}

/* V35 r11 — controles do cinema alinhados ao centro vertical das frases e galeria ainda mais compacta */
.cinematic-hero { position: relative; }
.cinematic-bottom { position: static; }
.cinematic-controls {
    position: absolute;
    top: var(--cinematic-impact-center, 50%);
    right: 18px;
    left: 18px;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    pointer-events: none;
}
.cinematic-controls button {
    pointer-events: auto;
    flex: 0 0 auto;
}

/* Galeria menor no desktop */
.catalog-grid {
    grid-template-columns: repeat(auto-fill, 80px);
    justify-content: start;
    gap: 8px;
}
.product-card { width: 80px; }
.product-image { width: 80px; height: 80px; }

@media (max-width: 600px) {
    .cinematic-controls {
        right: 6px;
        left: 6px;
    }
    .cinematic-controls button {
        width: 30px;
        height: 40px;
        border: 0;
        background: rgba(0,0,0,.24);
        font-size: 17px;
    }

    /* Galeria em mosaicos compactos no celular */
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, 40px);
        justify-content: start;
        gap: 6px;
    }
    .product-card { width: 40px; }
    .product-image { width: 40px; height: 40px; }
    .product-info {
        display: none;
    }
}

/* V35 r11 - alinhamento robusto dos triangulos pela caixa das frases */
.cinematic-hero { position: relative !important; }
.cinematic-bottom { position: static !important; }
.cinematic-controls {
    position: absolute !important;
    top: var(--cinematic-impact-center, 50%) !important;
    right: 18px !important;
    left: 18px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    pointer-events: none !important;
}
.cinematic-controls button {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Galeria menor em todas as telas */
.catalog-grid { grid-template-columns: repeat(auto-fill, 80px) !important; gap: 8px !important; }
.product-card { width: 80px !important; }
.product-image { width: 80px !important; height: 80px !important; }

@media (max-width: 600px) {
  .cinematic-controls { right: 5px !important; left: 5px !important; }
  .cinematic-controls button { width: 30px !important; height: 38px !important; font-size: 16px !important; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, 40px) !important; gap: 5px !important; }
  .product-card { width: 40px !important; }
  .product-image { width: 40px !important; height: 40px !important; }
}


/* V35 r12 — Galeria somente com mosaicos de imagens, sem legendas. */
.catalog-grid {
    grid-template-columns: repeat(auto-fill, 58px) !important;
    justify-content: start !important;
    gap: 6px !important;
}
.product-card {
    width: 58px !important;
    background: transparent !important;
}
.product-image {
    width: 58px !important;
    height: 58px !important;
    overflow: hidden !important;
    background: transparent !important;
}
.product-image img {
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    object-fit: cover !important;
    cursor: pointer !important;
}
.product-info { display: none !important; }
@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, 58px) !important;
        gap: 5px !important;
    }
    .product-card, .product-image, .product-image img {
        width: 58px !important;
        height: 58px !important;
    }
}

/* V35 r13 — thumbnails de Projetos +40% e Galeria com a mesma dimensão. */
.projects-home-thumbnails .hero-thumb {
    flex-basis: 210px !important;
    width: 210px !important;
    height: 129px !important;
}
.catalog-grid {
    grid-template-columns: repeat(auto-fill, 210px) !important;
    gap: 10px !important;
}
.product-card,
.product-image,
.product-image img {
    width: 210px !important;
    height: 129px !important;
}

@media (max-width: 700px) {
    .projects-home-thumbnails .hero-thumb {
        flex-basis: 157px !important;
        width: 157px !important;
        height: 98px !important;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, 157px) !important;
        gap: 6px !important;
    }
    .product-card,
    .product-image,
    .product-image img {
        width: 157px !important;
        height: 98px !important;
    }
}


/* V35 r14 — frases da Home + transparência total + CTA central */
.cinematic-impact {
    background: transparent !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.cinematic-impact h1 {
    white-space: normal;
}

.cinematic-budget-prompt {
    margin-top: 10px !important;
    padding: 9px 18px !important;
    font-size: clamp(12px, 1.25vw, 16px) !important;
    line-height: 1.3 !important;
    max-width: min(92%, 760px) !important;
}

.cinematic-project-center {
    position: absolute !important;
    left: 50% !important;
    top: calc(var(--cinematic-impact-center, 50%) + 86px) !important;
    transform: translateX(-50%) !important;
    z-index: 50 !important;
    margin: 0 !important;
    padding: 8px 15px !important;
}

@media (max-width: 700px) {
    .cinematic-impact {
        background: transparent !important;
        border: 0 !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    .cinematic-impact h1 {
        font-size: clamp(20px, 7.2vw, 32px) !important;
        line-height: 1.04 !important;
    }
    .cinematic-budget-prompt {
        padding: 8px 12px !important;
        font-size: clamp(10px, 3vw, 13px) !important;
        max-width: calc(100% - 10px) !important;
    }
    .cinematic-project-center {
        top: calc(var(--cinematic-impact-center, 50%) + 76px) !important;
        padding: 7px 12px !important;
        font-size: 8px !important;
    }
}

/* V35 r15 — CTA da Home visível sobre a imagem e textos com contraste */
.cinematic-impact {
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    z-index: 20 !important;
}

.cinematic-impact > span,
.cinematic-impact h1,
.cinematic-impact-copy {
    text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.9) !important;
}

.cinematic-impact > span {
    color: #fff !important;
}

.cinematic-impact h1 {
    color: #fff !important;
}

.cinematic-impact-copy {
    color: #fff !important;
}

.cinematic-budget-prompt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #fff !important;
    text-shadow: none !important;
}

.cinematic-budget-prompt:hover,
.cinematic-budget-prompt:focus-visible {
    background: #e2ad2f !important;
    color: #111 !important;
    border-color: #e2ad2f !important;
}

.cinematic-project-center {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 16px auto 0 !important;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #fff !important;
    padding: 10px 18px !important;
    text-shadow: none !important;
}

.cinematic-project-center:hover,
.cinematic-project-center:focus-visible {
    background: #e2ad2f !important;
    color: #111 !important;
    border-color: #e2ad2f !important;
}

.cinematic-impact .cinematic-budget-prompt,
.cinematic-impact .cinematic-project-center {
    position: relative !important;
    z-index: 30 !important;
}

@media (max-width: 700px) {
    .cinematic-impact > span { font-size: clamp(9px, 2.7vw, 11px) !important; }
    .cinematic-impact h1 { font-size: clamp(20px, 7vw, 32px) !important; }
    .cinematic-impact-copy { font-size: clamp(11px, 3vw, 14px) !important; }
    .cinematic-budget-prompt { max-width: calc(100% - 16px) !important; padding: 9px 12px !important; }
    .cinematic-project-center { margin-top: 12px !important; padding: 8px 13px !important; font-size: 9px !important; }
}


/* V35 r16 — destaque e pausa do projeto ao passar o mouse */
.cinematic-impact > span {
    font-size: clamp(13px, 1.6vw, 18px) !important;
    font-weight: 600 !important;
}

.cinematic-impact-copy {
    font-size: clamp(13px, 1.4vw, 17px) !important;
}

.cinematic-budget-prompt,
.cinematic-project-center {
    font-weight: 700 !important;
}

@media (max-width: 700px) {
    .cinematic-impact > span {
        font-size: clamp(14px, 4.4vw, 19px) !important;
    }
    .cinematic-impact-copy {
        font-size: clamp(12px, 3.7vw, 15px) !important;
    }
    .cinematic-budget-prompt,
    .cinematic-project-center {
        font-weight: 700 !important;
    }
}


/* V35 r17 — refinamentos de tipografia e ordenação dos registros */
.cinematic-impact-copy {
    font-size: clamp(15px, 1.55vw, 20px) !important;
    line-height: 1.28 !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.95) !important;
}

#hero-link.cinematic-project-center,
.cinematic-project-center {
    font-weight: 800 !important;
}

@media (max-width: 700px) {
    .cinematic-impact-copy {
        font-size: clamp(13px, 4.2vw, 18px) !important;
        line-height: 1.25 !important;
    }

    #hero-link.cinematic-project-center,
    .cinematic-project-center {
        font-weight: 800 !important;
    }
}

/* V35 r18 — mobile: mostrar a imagem cinematográfica inteira */
@media (max-width: 900px) {
    .cinematic-hero {
        min-height: 56.25vw;
        height: 56.25vw;
        max-height: 520px;
    }
    .cinematic-background img,
    .cinematic-background img.hero-image-in {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        object-position: center center !important;
        transform: none !important;
    }
}
@media (max-width: 600px) {
    .cinematic-hero {
        min-height: 56.25vw;
        height: 56.25vw;
        max-height: 360px;
    }
}
