:root {
  --prisma-navy: #062a5d;
  --prisma-navy-dark: #031d42;
  --prisma-blue: #075fbe;
  --prisma-blue-light: #1484e6;
  --prisma-ice: #f4f8fc;
  --prisma-line: #dce5ef;
  --prisma-text: #17314f;
  --prisma-muted: #66758a;
  --prisma-white: #fff;
  --prisma-shadow: 0 24px 60px rgba(4, 39, 82, .12);
  --prisma-radius: 24px;
}

html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { color: var(--prisma-text); background: #fff; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--prisma-blue); color: #fff; }
.text-prisma { color: var(--prisma-navy) !important; }
.tracking-wide { letter-spacing: .1em; }
.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

.topbar { background: var(--prisma-navy-dark); color: #dcecff; font-size: .82rem; }
.topbar a { color: #fff; transition: opacity .2s ease; }
.topbar a:hover { opacity: .78; }

.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(6,42,93,.08); transition: box-shadow .25s ease, background .25s ease; z-index: 1025; }
.site-header.scrolled { box-shadow: 0 10px 32px rgba(4,39,82,.09); }
.navbar-brand img, .offcanvas-brand img { object-fit: contain; }
.navbar .nav-link { color: var(--prisma-navy); font-size: .92rem; font-weight: 750; padding: .75rem .9rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .48rem; height: 2px; background: var(--prisma-blue); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--prisma-blue); }
.menu-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--prisma-ice); color: var(--prisma-navy); font-size: 1.65rem; }

.btn-prisma { --bs-btn-color:#fff; --bs-btn-bg:var(--prisma-navy); --bs-btn-border-color:var(--prisma-navy); --bs-btn-hover-color:#fff; --bs-btn-hover-bg:var(--prisma-blue); --bs-btn-hover-border-color:var(--prisma-blue); --bs-btn-active-bg:var(--prisma-blue); --bs-btn-active-border-color:var(--prisma-blue); font-weight: 800; border-radius: 12px; box-shadow: 0 12px 28px rgba(6,42,93,.14); }
.btn-outline-prisma { --bs-btn-color:var(--prisma-navy); --bs-btn-bg:rgba(255,255,255,.92); --bs-btn-border-color:#cbd8e8; --bs-btn-hover-color:#fff; --bs-btn-hover-bg:var(--prisma-navy); --bs-btn-hover-border-color:var(--prisma-navy); font-weight: 800; border-radius: 12px; }

.mobile-offcanvas { --bs-offcanvas-width: min(88vw, 360px); }
.mobile-nav { display: grid; }
.mobile-nav a { color: var(--prisma-navy); padding: 15px 8px; border-bottom: 1px solid var(--prisma-line); font-weight: 750; font-size: 1rem; }
.mobile-nav a i { color: var(--prisma-blue); }
.mobile-contact-card { padding: 20px; background: var(--prisma-ice); border-radius: 18px; color: var(--prisma-navy); font-weight: 800; }

.hero-section { position: relative; overflow: hidden; background: #fff; }
.min-vh-hero { min-height: 720px; }
.hero-bg { position: absolute; inset: 0 0 0 48%; background: linear-gradient(90deg, rgba(6,42,93,.07), rgba(6,42,93,.28)), url('../assets/porto-hero.jpg') center/cover no-repeat; clip-path: polygon(20% 0,100% 0,100% 100%,0 100%,22% 48%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,31,69,.04), rgba(0,31,69,.22)); }
.hero-geometry { position: absolute; pointer-events: none; }
.hero-geometry-one { width: 220px; height: 220px; left: -140px; bottom: -90px; transform: rotate(45deg); background: linear-gradient(145deg, var(--prisma-navy), var(--prisma-blue)); }
.hero-geometry-two { width: 180px; height: 180px; right: -95px; top: 90px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.55); }
.hero-copy { position: relative; z-index: 2; padding: 84px 0; }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--prisma-blue); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 850; }
.section-kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: 0 0 auto; }
.section-kicker.light { color: #85c8ff; }
.hero-copy h1 { color: var(--prisma-navy); font-size: clamp(3rem, 5.2vw, 5.15rem); line-height: 1.01; letter-spacing: -.045em; text-transform: uppercase; font-weight: 500; max-width: 720px; }
.hero-copy h1 span { display: block; color: var(--prisma-blue); font-weight: 850; }
.hero-lead { color: var(--prisma-muted); font-size: 1.13rem; line-height: 1.75; max-width: 630px; }
.hero-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; color: var(--prisma-navy); font-weight: 850; }
.hero-signature i { width: 4px; height: 4px; border-radius: 50%; background: var(--prisma-blue); }
.scroll-indicator { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 22px; color: var(--prisma-navy); align-items: center; gap: 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.scroll-indicator i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--prisma-line); border-radius: 50%; animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(5px)} }

.quick-trust { background: var(--prisma-navy); color: #fff; position: relative; z-index: 4; }
.trust-item { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.trust-item i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #7fc3ff; font-size: 1.15rem; }
.trust-item span { font-size: .83rem; color: #c7dbef; line-height: 1.35; }
.trust-item strong { color: #fff; font-size: .96rem; }

.section-space { padding: 96px 0; position: relative; overflow: hidden; }
.section-heading { max-width: 800px; margin-bottom: 42px; }
.section-title { color: var(--prisma-navy); font-size: clamp(2.25rem, 3.7vw, 3.25rem); line-height: 1.05; letter-spacing: -.038em; font-weight: 650; margin: .8rem 0 1.1rem; }
.section-title span { color: var(--prisma-blue); font-weight: 850; }
.section-heading p, .section-space p { color: var(--prisma-muted); line-height: 1.75; }

.photo-frame { position: relative; padding: 0 0 44px 38px; }
.photo-frame::before { content: ""; position: absolute; inset: 18px 30px 20px 0; border: 1px solid #c7d6e7; clip-path: polygon(14% 0,100% 0,100% 88%,82% 100%,0 100%,0 14%); }
.photo-frame img { position: relative; z-index: 2; width: 100%; aspect-ratio: 1/1.02; object-fit: cover; clip-path: polygon(12% 0,100% 0,100% 88%,82% 100%,0 100%,0 13%); box-shadow: var(--prisma-shadow); }
.photo-badge { position: absolute; z-index: 3; left: 0; bottom: 0; padding: 16px 22px; background: var(--prisma-navy); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; box-shadow: 0 14px 34px rgba(4,39,82,.2); }
.photo-badge small { display: block; color: #b7d4ef; }
.photo-badge strong { color: #79bdff; }
.photo-line { position: absolute; z-index: 1; right: 2px; top: 8%; width: 86px; height: 86px; border-top: 2px solid var(--prisma-blue); border-right: 2px solid var(--prisma-blue); }
.highlight-quote { position: relative; border-left: 4px solid var(--prisma-blue); padding: 18px 20px 18px 28px; background: var(--prisma-ice); border-radius: 0 16px 16px 0; }
.highlight-quote i { position: absolute; right: 18px; top: 8px; font-size: 2.2rem; color: rgba(7,95,190,.14); }
.highlight-quote p { color: var(--prisma-text); font-weight: 700; }

.essence-section { background: linear-gradient(rgba(247,250,254,.95),rgba(247,250,254,.95)), url('../assets/fundo-industrial.jpg') center bottom/cover no-repeat; }
.essence-card { position: relative; overflow: hidden; padding: 34px; background: rgba(255,255,255,.93); border: 1px solid rgba(7,95,190,.12); border-radius: 26px; box-shadow: 0 20px 45px rgba(7,50,100,.07); transition: transform .25s ease, box-shadow .25s ease; }
.essence-card:hover { transform: translateY(-6px); box-shadow: var(--prisma-shadow); }
.essence-card.featured { background: linear-gradient(155deg,var(--prisma-navy),#084788); color: #fff; }
.essence-card.featured p, .essence-card.featured h3, .essence-card.featured .essence-number { color: #fff; }
.essence-card.featured .essence-icon { background: #fff; color: var(--prisma-navy); }
.essence-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--prisma-navy); color: #fff; font-size: 1.55rem; }
.essence-number { position: absolute; right: 26px; top: 22px; color: rgba(6,42,93,.14); font-size: 2.3rem; font-weight: 900; }
.essence-card h3 { color: var(--prisma-navy); margin-top: 24px; font-size: 1.28rem; text-transform: uppercase; font-weight: 850; }
.essence-card p { margin-bottom: 0; }
.value-chip { padding: 7px 10px; border: 1px solid var(--prisma-line); background: var(--prisma-ice); color: var(--prisma-navy); border-radius: 999px; font-size: .76rem; font-weight: 750; }

.services-section { background: #fff; }
.service-nav { gap: 8px; }
.service-arrow { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--prisma-line); background: #fff; color: var(--prisma-navy); transition: .2s ease; }
.service-arrow:hover { background: var(--prisma-navy); color: #fff; border-color: var(--prisma-navy); }
.service-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(275px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 24px; scrollbar-width: thin; scrollbar-color: #a8bad0 transparent; }
.service-card { scroll-snap-align: start; position: relative; min-height: 330px; padding: 28px; border: 1px solid var(--prisma-line); border-radius: 22px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.service-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -56px; top: -56px; transform: rotate(45deg); background: var(--prisma-blue); opacity: .08; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--prisma-shadow); border-color: rgba(7,95,190,.28); }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg,var(--prisma-navy),var(--prisma-blue)); color: #fff; font-size: 1.3rem; margin-bottom: 26px; }
.service-index { position: absolute; top: 26px; right: 26px; color: #b9c7d6; font-size: .78rem; font-weight: 850; letter-spacing: .1em; }
.service-card h3 { min-height: 52px; color: var(--prisma-navy); font-size: 1.18rem; font-weight: 850; }
.service-card p { font-size: .92rem; }
.service-link { position: absolute; left: 28px; bottom: 25px; border: 0; padding: 0; background: transparent; color: var(--prisma-blue); font-weight: 850; }
.service-link:hover { color: var(--prisma-navy); }
.mobile-swipe-tip { color: var(--prisma-muted); font-size: .8rem; text-align: center; }
.service-modal-content { border: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--prisma-shadow); }
.modal-service-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--prisma-navy); color: #fff; font-size: 1.55rem; }

.sector-section { background: linear-gradient(135deg,#f6f9fd,#edf4fb); }
.sector-pills { gap: 8px; }
.sector-pills .nav-link { color: var(--prisma-navy); background: #fff; border: 1px solid var(--prisma-line); border-radius: 999px; font-weight: 800; padding: .8rem 1.25rem; }
.sector-pills .nav-link.active { background: var(--prisma-navy); color: #fff; border-color: var(--prisma-navy); }
.sector-content { border-radius: 28px; overflow: hidden; box-shadow: var(--prisma-shadow); border: 1px solid rgba(6,42,93,.08); }
.sector-visual { min-height: 500px; padding: 44px; display: flex; align-items: end; color: #fff; position: relative; overflow: hidden; }
.sector-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(2,24,54,.12),rgba(2,24,54,.78)); }
.private-visual { background: url('../assets/equipe.jpg') center/cover no-repeat; }
.public-visual { background: linear-gradient(rgba(6,42,93,.15),rgba(6,42,93,.35)), url('../assets/fundo-industrial.jpg') center/cover no-repeat; }
.sector-visual > div { position: relative; z-index: 2; }
.sector-visual span { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: #8fd0ff; }
.sector-visual h3 { font-size: clamp(2rem,4vw,3.6rem); text-transform: uppercase; font-weight: 850; line-height: 1; margin: 8px 0 14px; }
.sector-visual p { color: #e0edf8; margin: 0; }
.check-card { height: 100%; padding: 15px 16px; display: flex; gap: 12px; align-items: flex-start; background: var(--prisma-ice); border: 1px solid var(--prisma-line); border-radius: 14px; color: var(--prisma-navy); font-weight: 700; }
.check-card i { color: var(--prisma-blue); font-size: 1.1rem; }
.public-accordion .accordion-item { border-color: var(--prisma-line); }
.public-accordion .accordion-button { color: var(--prisma-navy); font-weight: 800; box-shadow: none; padding-left: 0; padding-right: 0; }
.public-accordion .accordion-button:not(.collapsed) { background: transparent; color: var(--prisma-blue); }
.public-accordion .accordion-body { padding-left: 0; color: var(--prisma-muted); }

.experience-section { background: linear-gradient(125deg,rgba(3,29,66,.95),rgba(7,95,190,.88)), url('../assets/fundo-industrial.jpg') center/cover fixed no-repeat; color: #fff; }
.experience-section p { color: #dbe9f6; }
.experience-block { min-height: 380px; padding: 40px; display: flex; flex-direction: column; justify-content: end; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); backdrop-filter: blur(5px); border-radius: 0 90px 0 90px; position: relative; overflow: hidden; }
.experience-block::before { content: ""; position: absolute; width: 160px; height: 160px; right: -65px; top: -65px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.25); }
.experience-block span { text-transform: uppercase; letter-spacing: .15em; color: #82c6ff; font-size: .78rem; font-weight: 850; }
.experience-block strong { font-size: clamp(2.4rem,4vw,4.5rem); line-height: .95; text-transform: uppercase; margin-top: 10px; }
.experience-block i { position: absolute; right: 34px; bottom: 34px; font-size: 2rem; color: #82c6ff; }

.network-section { background: #fff; }
.specialty-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; padding: 34px; min-height: 340px; background: var(--prisma-ice); border: 1px solid var(--prisma-line); border-radius: 28px; position: relative; overflow: hidden; }
.specialty-cloud::after { content: ""; position: absolute; width: 160px; height: 160px; right: -90px; bottom: -90px; transform: rotate(45deg); background: var(--prisma-blue); opacity: .08; }
.specialty-cloud span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 12px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--prisma-line); color: var(--prisma-navy); font-weight: 800; box-shadow: 0 7px 20px rgba(6,42,93,.06); }
.specialty-cloud .size-lg { padding: 15px 20px; font-size: 1.04rem; background: var(--prisma-navy); color: #fff; border-color: var(--prisma-navy); }

.differentials-section { background: linear-gradient(135deg,#f4f8fc,#eef4fa); }
.diff-wrapper { border-radius: 30px; box-shadow: var(--prisma-shadow); }
.diff-intro { background: linear-gradient(155deg,var(--prisma-navy-dark),var(--prisma-blue)); color: #fff; }
.diff-intro h2 { font-size: clamp(2.2rem,3.4vw,3.8rem); line-height: 1.03; letter-spacing: -.035em; margin: 12px 0 18px; }
.diff-intro h2 span { display: block; color: #82c7ff; font-weight: 850; }
.diff-intro p { color: #dbe9f6; }
.diff-count { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.diff-count strong { font-size: 3.8rem; line-height: .85; }
.diff-count span { text-transform: uppercase; letter-spacing: .12em; color: #8ccaff; font-size: .78rem; font-weight: 850; }
.diff-count small { display: block; color: #cfdfef; text-transform: none; letter-spacing: normal; font-weight: 500; margin-top: 3px; }
.diff-card { height: 100%; min-height: 128px; position: relative; padding: 22px 18px 20px; border: 1px solid var(--prisma-line); border-radius: 18px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.diff-card:hover { transform: translateY(-4px); border-color: rgba(7,95,190,.3); box-shadow: 0 16px 32px rgba(6,42,93,.08); }
.diff-card b { position: absolute; right: 16px; top: 13px; color: #c3cedb; font-size: .75rem; letter-spacing: .08em; }
.diff-card i { display: block; color: var(--prisma-blue); font-size: 1.35rem; margin-bottom: 16px; }
.diff-card span { color: var(--prisma-navy); font-weight: 850; line-height: 1.35; }

.coverage-section { background: linear-gradient(rgba(248,250,253,.95),rgba(248,250,253,.95)), url('../assets/fundo-industrial.jpg') center bottom/cover no-repeat; }
.coverage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.coverage-card { min-height: 78px; display: flex; align-items: center; gap: 15px; padding: 16px; border: 1px solid var(--prisma-line); background: rgba(255,255,255,.93); border-radius: 16px; color: var(--prisma-navy); font-weight: 800; }
.coverage-card i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--prisma-navy); color: #fff; flex: 0 0 42px; }

.commitment-section { background: #fff; }
.commitment-panel { border: 1px solid var(--prisma-line); border-radius: 28px; box-shadow: 0 20px 50px rgba(6,42,93,.08); overflow: hidden; position: relative; }
.commitment-panel::after { content: ""; position: absolute; width: 150px; height: 150px; right: -85px; top: -85px; transform: rotate(45deg); background: var(--prisma-blue); opacity: .07; }
.commitment-mark { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 28px; background: var(--prisma-navy); color: #fff; font-size: 2.2rem; }
.commitment-panel h2 { color: var(--prisma-navy); font-size: clamp(1.8rem,2.6vw,2.8rem); font-weight: 800; letter-spacing: -.025em; }

.contact-section { background: linear-gradient(135deg,var(--prisma-navy-dark),var(--prisma-blue)); color: #fff; position: relative; overflow: hidden; }
.contact-section::after { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; top: -180px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.16); }
.contact-section h2 { font-size: clamp(2.4rem,3.7vw,3.8rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.contact-section p { color: #dce9f5; }
.contact-lines { display: grid; gap: 10px; }
.contact-lines a { display: flex; gap: 14px; align-items: center; color: #fff; padding: 12px 0; }
.contact-lines a > i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; border: 1px solid rgba(255,255,255,.18); color: #8fd0ff; font-size: 1.2rem; }
.contact-lines small { display: block; color: #a9c7e5; }
.contact-form-card { position: relative; z-index: 2; padding: 34px; background: #fff; color: var(--prisma-text); border-radius: 26px; box-shadow: 0 28px 70px rgba(0,0,0,.16); }
.form-icon { width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--prisma-ice); color: var(--prisma-blue); font-size: 1.35rem; }
.form-control, .form-select { min-height: 50px; border-radius: 11px; border-color: #d6e0eb; }
textarea.form-control { min-height: 120px; }
.form-control:focus, .form-select:focus { border-color: rgba(7,95,190,.55); box-shadow: 0 0 0 .2rem rgba(7,95,190,.1); }

.footer-section { background: #fff; border-top: 1px solid var(--prisma-line); }
.footer-logo { width: 100px; height: 56px; object-fit: contain; }
.footer-signature { text-transform: uppercase; letter-spacing: .12em; color: var(--prisma-navy); font-size: .78rem; font-weight: 850; }
.footer-signature i { display: inline-block; width: 4px; height: 4px; margin: 0 8px; border-radius: 50%; background: var(--prisma-blue); vertical-align: middle; }
.desktop-whatsapp { position: fixed; z-index: 1030; right: 22px; bottom: 22px; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #1daa61; color: #fff; font-size: 1.55rem; box-shadow: 0 12px 30px rgba(0,0,0,.19); transition: transform .2s ease; }
.desktop-whatsapp:hover { color: #fff; transform: translateY(-3px); }
.back-to-top { position: fixed; z-index: 1020; right: 30px; bottom: 92px; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--prisma-navy); color: #fff; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.mobile-action-bar { position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3,1fr); background: #fff; border-top: 1px solid var(--prisma-line); box-shadow: 0 -10px 30px rgba(4,39,82,.10); padding-bottom: env(safe-area-inset-bottom); }
.mobile-action-bar a { min-height: 61px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--prisma-navy); font-size: .68rem; font-weight: 800; }
.mobile-action-bar a i { font-size: 1.22rem; }
.mobile-action-bar .whatsapp { background: #1daa61; color: #fff; }

/* reveal animation is defined in the Scroll Motion System below */

@media (min-width: 1200px) {
  .service-scroller { grid-auto-columns: calc((100% - 54px) / 4); }
}

@media (max-width: 991.98px) {
  html { scroll-padding-top: 82px; }
  .min-vh-hero { min-height: 690px; }
  .hero-section { background: linear-gradient(180deg,#fff 0 58%,#eef4fb 58% 100%); }
  .hero-bg { inset: auto 0 0; height: 45%; clip-path: polygon(0 20%,100% 0,100% 100%,0 100%); opacity: .34; background-position: center 58%; }
  .hero-copy { padding: 70px 0 285px; }
  .section-space { padding: 78px 0; }
  .sector-visual { min-height: 320px; }
  .experience-section { background-attachment: scroll; }
  .service-scroller { grid-auto-columns: minmax(260px, 42%); }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 62px; }
  .hero-copy h1 { font-size: clamp(2.65rem,11.5vw,4rem); }
  .hero-copy { padding-top: 50px; }
  .hero-lead { font-size: 1rem; }
  .quick-trust .col-6:nth-child(odd) .trust-item { border-right: 1px solid rgba(255,255,255,.12); }
  .trust-item { gap: 10px; }
  .trust-item i { width: 38px; height: 38px; flex-basis: 38px; }
  .section-title { font-size: clamp(2rem,9vw,3.2rem); }
  .section-heading { margin-bottom: 30px; }
  .service-scroller { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; grid-auto-columns: 82%; }
  .service-card { min-height: 320px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; }
  .commitment-mark { width: 74px; height: 74px; border-radius: 22px; font-size: 1.8rem; }
  .back-to-top { right: 14px; bottom: 76px; }
}

@media (max-width: 575.98px) {
  .container { --bs-gutter-x: 1.6rem; }
  .hero-copy { padding-bottom: 265px; }
  .hero-signature { font-size: .68rem; gap: 8px; }
  .section-space { padding: 68px 0; }
  .photo-frame { padding-left: 20px; }
  .photo-badge { padding: 13px 16px; font-size: .68rem; }
  .essence-card { padding: 28px 24px; }
  .sector-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .sector-pills .nav-link { width: 100%; padding: .72rem .75rem; font-size: .84rem; }
  .sector-visual { min-height: 260px; padding: 28px; }
  .specialty-cloud { padding: 24px 18px; }
  .diff-wrapper { border-radius: 24px; }
  .diff-card { min-height: 112px; }
  .contact-section h2 { font-size: clamp(2.2rem,10vw,3.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-item { opacity: 1; transform: none; }
}


/* ==========================================================
   SCROLL MOTION SYSTEM
   Motion is intentionally subtle, hardware-friendly and honors
   prefers-reduced-motion for accessibility and mobile comfort.
   ========================================================== */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--prisma-blue), #54b8ff);
  will-change: transform;
}

/* Base reveal. JS assigns a variation automatically. */
.reveal-item,
[data-scroll-reveal] {
  --reveal-x: 0px;
  --reveal-y: 42px;
  --reveal-scale: .985;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  filter: blur(3px);
  transition:
    opacity .78s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-item[data-reveal="left"], [data-scroll-reveal="left"] { --reveal-x: -54px; --reveal-y: 0px; }
.reveal-item[data-reveal="right"], [data-scroll-reveal="right"] { --reveal-x: 54px; --reveal-y: 0px; }
.reveal-item[data-reveal="zoom"], [data-scroll-reveal="zoom"] { --reveal-y: 18px; --reveal-scale: .93; }
.reveal-item[data-reveal="soft"], [data-scroll-reveal="soft"] { --reveal-y: 20px; --reveal-scale: 1; filter: blur(1px); }
.reveal-item.is-visible,
[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
}

/* Animated heading accent inspired by premium infrastructure sites. */
.section-title {
  position: relative;
}
.section-heading.is-visible .section-kicker::before,
.reveal-item.is-visible > .section-kicker::before {
  animation: prismaLineIn .75s .12s cubic-bezier(.16,1,.3,1) both;
}
@keyframes prismaLineIn {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* Progressive card entrance — stagger is set through --reveal-delay in JS. */
.service-card,
.trust-item,
.diff-card,
.coverage-card,
.check-card,
.value-chip,
.essence-card {
  backface-visibility: hidden;
}
.scroll-card {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(.965);
  transition:
    opacity .62s cubic-bezier(.2,.7,.2,1),
    transform .75s cubic-bezier(.16,1,.3,1),
    box-shadow .3s ease,
    border-color .3s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.scroll-card.is-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

/* Photo reveal: the image remains visible even if the observer fails.
   A decorative overlay performs the scroll wipe instead of clipping the image itself. */
.photo-frame.scroll-photo {
  transform: translate3d(0, 18px, 0) scale(.99);
  transition: transform 1.05s cubic-bezier(.16,1,.3,1);
}
.photo-frame.scroll-photo::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0 0 44px 38px;
  background: linear-gradient(135deg, var(--prisma-navy), var(--prisma-blue));
  clip-path: polygon(12% 0,100% 0,100% 88%,82% 100%,0 100%,0 13%);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform .9s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
}
.photo-frame.scroll-photo.is-visible {
  transform: translate3d(0,0,0) scale(1);
}
.photo-frame.scroll-photo.is-visible::after {
  transform: scaleX(0);
}
.photo-frame.scroll-photo img {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

/* A slim vertical trace becomes visible as content enters. */
.section-space::after {
  content: "";
  position: absolute;
  top: 0;
  right: max(22px, calc((100vw - 1320px) / 2));
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(12,112,204,.24), transparent);
  transition: height 1.25s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.section-space.section-in-view::after { height: 100%; }

/* Parallax values are fed by requestAnimationFrame in main.js. */
.scroll-parallax {
  --parallax-y: 0px;
  translate: 0 var(--parallax-y);
  will-change: translate;
}

/* Give the hero an elegant load-in before scrolling starts. */
.hero-copy.reveal-item {
  --reveal-y: 24px;
  transition-duration: .95s;
}

/* Keep transforms light on touch devices. */
@media (max-width: 767.98px) {
  .reveal-item,
  [data-scroll-reveal] {
    --reveal-x: 0px !important;
    --reveal-y: 26px !important;
    --reveal-scale: .99;
    filter: none;
    transition-duration: .62s;
  }
  .scroll-card { transform: translate3d(0,22px,0) scale(.985); transition-duration: .58s; }
  .section-space::after { display: none; }
  .scroll-progress { height: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal-item,
  [data-scroll-reveal],
  .scroll-card,
  .photo-frame.scroll-photo {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
  .scroll-parallax { translate: none !important; }
  .scroll-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) { .photo-frame.scroll-photo::after { display:none !important; } }


/* WordPress inner pages */
.prisma-inner-page { min-height: 60vh; background: #f7fafe; }
.prisma-inner-page .entry-content { font-size: 1.05rem; line-height: 1.8; color: var(--prisma-text, #334155); }
.prisma-inner-page .entry-content img { max-width: 100%; height: auto; border-radius: 18px; }
.prisma-inner-page .entry-content a { color: var(--prisma-blue, #075fbe); }

/* =========================================================
   HEADER DINÂMICO — LOGO 200px -> 125px NO SCROLL
   ========================================================= */
.site-header {
  transition: box-shadow .35s ease, background .35s ease, border-color .35s ease;
}

.site-header .main-navbar {
  padding-top: 30px;
  padding-bottom: 30px;
  transition: padding .35s ease, background-color .35s ease;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.site-header .prisma-header-logo {
  width: 200px;
  max-width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: width .35s ease, max-width .35s ease, transform .35s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 32px rgba(4,39,82,.12);
}

.site-header.scrolled .main-navbar {
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header.scrolled .prisma-header-logo {
  width: 60px;
  max-width: 60px;
}

.site-header .navbar .nav-link {
  transition: color .2s ease, padding .35s ease;
}

.site-header.scrolled .navbar .nav-link {
  padding-top: .55rem !important;
  padding-bottom: .55rem !important;
}

/* Mantém o header visível abaixo da barra administrativa do WordPress. */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 991.98px) {
  .site-header .main-navbar {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-header .prisma-header-logo {
    width: 160px;
    max-width: 160px;
  }

  .site-header.scrolled .prisma-header-logo {
    width: 120px;
    max-width: 120px;
  }

  .site-header.scrolled .main-navbar {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 767.98px) {
  .site-header .main-navbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header .prisma-header-logo {
    width: 145px;
    max-width: 145px;
  }

  .site-header.scrolled .prisma-header-logo {
    width: 105px;
    max-width: 105px;
  }

  .site-header.scrolled .main-navbar {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .main-navbar,
  .site-header .prisma-header-logo,
  .site-header .navbar .nav-link {
    transition: none !important;
  }
}
