:root {
  color-scheme: light;
  --ink: #191f1d;
  --muted: #505d55;
  --soft: #f2f6f2;
  --line: #d7e2d9;
  --green: #237137;
  --lime: #a1ef73;
  --dark: #15211c;
  --paper: #fff;
  --control: #f3f8f2;
  --control-ink: #205f32;
  --control-line: #bdd4c0;
  --focus: #267b3f;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3ed;
  --muted: #bdcbbf;
  --paper: #151d19;
  --soft: #1b2821;
  --line: #405548;
  --green: #a1ef73;
  --dark: #1a2b21;
  --control: #24372b;
  --control-ink: #c2f5b4;
  --control-line: #577561;
  --focus: #a1ef73;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.25rem; }
body { margin: 0; background: var(--paper); line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.dark a:focus-visible, .hero a:focus-visible { outline-color: var(--lime); }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 4; transform: translateY(-160%); background: var(--paper); padding: .65rem 1rem; }
.skip:focus { transform: none; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
body:not(.systems-page) .header { position: sticky; top: 0; z-index: 3; }
.header-inner { min-height: 5.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; width: 7rem; height: auto; }
.brand .logo-dark, .theme-toggle .theme-moon { display: none; }
:root[data-theme="dark"] .brand .logo-light,
:root[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .brand .logo-dark,
:root[data-theme="dark"] .theme-toggle .theme-moon { display: block; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.header-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.header-inner > nav { margin-inline-start: auto; }
nav a, .access, .menu, .theme-toggle { font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.access, .menu { color: var(--control-ink); background: var(--control); border: 1px solid var(--control-line); border-radius: .45rem; padding: .54rem .92rem; }
.menu, .theme-toggle { font-family: inherit; line-height: inherit; cursor: pointer; }
.menu:hover { text-decoration: underline; }
.theme-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; color: var(--control-ink); background: transparent; border: 0; }
.access-lock { display: inline-flex; align-items: center; gap: .45rem; }
.theme-toggle svg, .access-lock svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero, .dark { background: var(--dark); color: #fff; }
.hero { background: radial-gradient(ellipse at 83% 24%, #243c2b, transparent 54%), #151d19; }
.hero-layout { display: grid; grid-template-columns: 1.72fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5.5rem); }
.eyebrow { margin: 0 0 .9rem; color: var(--green); font-weight: 750; font-size: .875rem; text-transform: uppercase; letter-spacing: .11em; }
.hero .eyebrow, .dark .eyebrow, .hero h1 span { color: var(--lime); }
h1, h2, h3 { line-height: 1.09; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.35vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.46rem; }
p { margin: .8rem 0 0; }
.intro { font-size: 1.125rem; color: #d8e5da; max-width: 36rem; margin-top: 1.4rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; text-align: center; margin-top: 1.5rem; padding: .65rem 1.15rem; border-radius: .4rem; background: var(--lime); color: #142216; font-weight: 750; text-decoration: none; }
.button:hover { background: #bbf49b; }
.network { aspect-ratio: 1.14; position: relative; border: 1px solid #45604a; border-radius: 1rem; overflow: hidden; background: linear-gradient(135deg, #1d3226a0, #22382b60), repeating-linear-gradient(0deg, transparent 0 31px, #526d55 32px), repeating-linear-gradient(90deg, transparent 0 31px, #526d55 32px); }
.network i { position: absolute; width: 9%; aspect-ratio: 1; border: 1px solid #a1ef73; border-radius: 18%; background: #a1ef73; box-shadow: 0 0 28px #a1ef7340; }
.network i:nth-child(1) { left: 14%; top: 66%; }
.network i:nth-child(2) { left: 36%; top: 48%; background: #446c4c; }
.network i:nth-child(3) { left: 55%; top: 29%; width: 15%; }
.network i:nth-child(4) { left: 78%; top: 14%; background: #42624a; }
.network i:nth-child(5) { left: 76%; top: 57%; background: #42624a; }
.network::before, .network::after { content: ""; position: absolute; width: 79%; height: 1px; left: 10%; top: 75%; transform: rotate(-31deg); transform-origin: left; background: linear-gradient(90deg,#5c8063,var(--lime),#5c8063); }
.network::after { width: 29%; top: 39%; left: 59%; transform: rotate(41deg); }
.disciplines { display: flex; flex-wrap: wrap; gap: .65rem 2.5rem; border-top: 1px solid #49614f; padding-block: 1.05rem; color: #d8e5da; font-size: .95rem; }
.disciplines span::before { content: ""; display: inline-block; width: .48rem; height: .48rem; margin-right: .55rem; vertical-align: .1em; background: var(--lime); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.split { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(1.45rem, 6vw, 5rem); align-items: start; }
.lead { font-size: 1.23rem; font-weight: 650; margin-top: 0; }
.soft { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; padding: clamp(1.15rem, 3vw, 1.9rem); }
.service-photo, .fleet-photo img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.service-photo { margin-bottom: 1rem; }
.fleet-photo { grid-column: 1 / -1; margin: 0; }
.operation-section { row-gap: clamp(1.35rem, 3vw, 2.1rem); }
.coverage-map { margin: 1rem 0 0; padding: .5rem 1rem .7rem; width: min(100%, 21rem); background: var(--soft); border: 1px solid var(--line); border-radius: .7rem; text-align: center; }
.coverage-map svg { display: block; width: 100%; height: auto; max-height: 12.5rem; }
.coverage-map figcaption { font-size: .875rem; color: var(--muted); }
.coverage-map path { stroke: var(--green); stroke-width: 1.3; stroke-linejoin: round; }
.coverage-map .coverage-para { fill: color-mix(in srgb, var(--green) 27%, var(--soft)); }
.coverage-map .coverage-amapa { fill: color-mix(in srgb, var(--green) 48%, var(--soft)); }
.coverage-map .map-leader { fill: none; }
.map-label { fill: var(--ink); font-weight: 750; font-size: 16px; text-anchor: middle; dominant-baseline: middle; }
.map-label-amapa { text-anchor: start; }
.operational-metrics { grid-column: 1 / -1; }
.operational-metrics ul { list-style: none; padding: 0; margin-block: 1rem 0; }
.operational-metrics .card { background: var(--soft); }
.operational-metrics strong { display: block; color: var(--green); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: .45rem; }
.operational-metrics span { color: var(--muted); }
.image-note { margin-top: .55rem; font-size: .875rem; color: var(--muted); }
.card p, .feature-list p, dd { color: var(--muted); }
.code { display: inline-block; color: var(--green); font-weight: 750; font-size: .9rem; margin-bottom: 1rem; border-bottom: 2px solid #a9d8aa; }
.operations { margin: 0; }
.operations div, .feature-list article { padding-block: 1.05rem; border-top: 1px solid var(--line); }
.operations dt { font-weight: 750; }
.operations dd { margin: .15rem 0 0; }
.dark .feature-list article { border-color: #49614f; }
.dark .feature-list p { color: #d8e5da; }
.portfolio-list { margin-top: 1.6rem; }
.project-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .75rem 2rem; }
.project-overview > p { margin-top: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.project-gallery figure { margin: 0; }
.project-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #101813; border-radius: .45rem; }
.project-gallery figcaption { color: #d8e5da; font-size: .875rem; margin-top: .5rem; }
.partner-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1rem .65rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.partner-list li { display: grid; justify-items: center; align-content: start; gap: .5rem; color: #edf3ed; text-align: center; font-weight: 650; font-size: .9rem; }
.client-mark-filters { position: absolute; }
.client-mark { display: grid; place-items: center; width: min(100%, 6.8125rem); }
.client-mark img { display: block; width: 100%; height: 2.5625rem; object-fit: contain; }
.client-mark-adapted img { filter: url("#marcas-fundo-transparente"); }
.client-mark-hydro img { filter: brightness(0) invert(1); }
@media (max-width: 800px) {
  .partner-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); }
}
.footer { background: #101813; color: #e4eee5; }
.footer-inner, .footer-inner div { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.footer-inner { justify-content: space-between; padding-block: 1.35rem; }
.footer p { margin: 0; }
.contact-details p { max-width: 36rem; }
#trabalhe-conosco { margin-top: 1.75rem; }
#trabalhe-conosco a { display: inline-block; margin-top: .65rem; color: var(--green); font-weight: 700; }
.contact-panel { padding: clamp(1rem, 3vw, 1.6rem); background: var(--soft); border: 1px solid var(--line); border-radius: .7rem; }
.contact-form { display: grid; gap: .8rem; margin-top: 1rem; }
.contact-form label { display: grid; gap: .25rem; min-width: 0; font-weight: 650; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.6rem;
  padding: .45rem .6rem;
  border: 1px solid var(--control-line);
  border-radius: .35rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; margin: 0; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.contact-note, .contact-status { margin: 0; color: var(--muted); font-size: .9rem; }
#retorno-contato .contact-status { margin-top: .75rem; }
.contact-status { border-left: .2rem solid var(--green); padding-inline-start: .6rem; }
.mascot-trigger {
  --mascot-travel: clamp(2.7rem, 6vw, 3.9rem);
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .15rem;
  padding: .2rem .2rem .2rem calc(var(--mascot-travel) + .25rem);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.mascot-visual { position: relative; display: block; width: calc(var(--mascot-scale, 1) * clamp(3.75rem, 9vw, 6rem)); filter: drop-shadow(0 2px 3px #0006); }
.mascot-retro-filter { position: absolute; pointer-events: none; }
.mascot-trigger > img { display: block; width: clamp(3.75rem, 9vw, 6rem); height: auto; filter: drop-shadow(0 2px 3px #0006); }
.mascot-visual img { display: block; width: 100%; height: auto; scale: .945; transform-origin: 50% 95%; }
.mascot-character, .mascot-body, .mascot-head, .mascot-gesture { position: absolute; inset: 0; }
.mascot-character { visibility: hidden; pointer-events: none; }
.mascot-trigger.has-poses .mascot-visual img { visibility: hidden; }
.mascot-trigger.has-poses .mascot-character { visibility: visible; }
.mascot-body, .mascot-head, .mascot-gesture { background: url("mascote-expressoes.png") no-repeat 0 0 / 400% 100%; }
.mascot-body { clip-path: polygon(0 35%, 32% 35%, 40% 38%, 50% 41%, 62% 38%, 72% 35%, 100% 35%, 100% 100%, 0 100%); }
.mascot-head {
  clip-path: polygon(0 0, 100% 0, 100% 36%, 72% 36%, 62% 39%, 50% 42%, 40% 39%, 32% 36%, 0 36%);
}
.mascot-trigger.has-gaze .mascot-head {
  clip-path: none;
  background: url("mascote-olhar.png") no-repeat var(--mascot-look, 50%) 0 / 900% 100%;
}
.mascot-trigger.has-gaze.is-blinking .mascot-head { background-image: url("mascote-piscada.png"); }
/* Keep the boots anchored to the same baseline as the standing pose. */
.mascot-gesture { opacity: 0; transform-origin: 50% 95%; }
.mascot-trigger.is-waving :is(.mascot-head, .mascot-body),
.mascot-trigger.is-patrolling :is(.mascot-head, .mascot-body),
.mascot-trigger.is-tapping :is(.mascot-head, .mascot-body),
.mascot-trigger:is(.is-blasting, .is-jumping, .is-rising) :is(.mascot-head, .mascot-body),
.mascot-trigger.is-greeting :is(.mascot-head, .mascot-body) { opacity: 0; }
.mascot-trigger:is(.is-waving, .is-patrolling, .is-tapping, .is-blasting, .is-jumping, .is-rising) .mascot-gesture {
  opacity: 1;
  background-size: 1600% 100%;
}
.mascot-trigger.is-waving .mascot-gesture {
  background-image: url("mascote-aceno.png");
  scale: 1.06;
  animation: mascot-frames 1.08s steps(16, end);
}
.mascot-trigger.is-patrolling .mascot-gesture {
  background-image: url("mascote-passos.png?v=3");
  scale: 1.04;
  animation: mascot-patrol-frames .8s steps(16, end) 2, mascot-patrol 1.6s linear, mascot-direction 1.6s steps(1, end);
}
.mascot-trigger.is-tapping .mascot-gesture {
  background-image: url("mascote-batendo-pe.png?v=2");
  scale: 1.03;
  animation: mascot-frames .68s steps(16, end) 4;
}
.mascot-trigger.is-blasting .mascot-gesture {
  background-image: url("mascote-energia.png?v=2");
  scale: 1.035;
  animation: mascot-frames 1.3s steps(16, end);
}
.mascot-trigger.is-jumping .mascot-gesture {
  background-image: url("mascote-salto.png?v=2");
  scale: 1.025;
  animation: mascot-frames 1.1s steps(16, end), mascot-jump-arc 1.1s ease-in-out;
}
.mascot-trigger.is-rising .mascot-gesture {
  background-image: url("mascote-salto-ascendente.png?v=2");
  scale: 1.02;
  animation: mascot-frames 1.25s steps(16, end), mascot-rising-arc 1.25s linear;
}
.mascot-trigger.is-blasting .mascot-character::before,
.mascot-trigger.is-blasting .mascot-character::after {
  content: "";
  position: absolute;
  top: 49%;
  left: 38%;
  pointer-events: none;
  opacity: 0;
}
.mascot-trigger.is-blasting .mascot-character::after {
  width: 1.37rem;
  height: 1.27rem;
  clip-path: polygon(0 35%, 9% 35%, 9% 21%, 24% 21%, 24% 9%, 45% 9%, 45% 0, 72% 0, 72% 12%, 88% 12%, 88% 30%, 100% 30%, 100% 68%, 88% 68%, 88% 86%, 66% 86%, 66% 100%, 39% 100%, 39% 89%, 20% 89%, 20% 75%, 8% 75%, 8% 61%, 0 61%);
  background: radial-gradient(ellipse at 37% 48%, #fff 0 29%, #e0ffd2 30% 46%, #9bfa80 47% 62%, #43d35c 63%);
  animation: mascot-fiber-flash 1.3s linear;
}
.mascot-trigger.is-blasting .mascot-character::before {
  width: 1.55rem;
  height: .95rem;
  margin: .18rem 0 0 .86rem;
  background: linear-gradient(90deg, #e6ffda, #91f681 34%, #2fb44c 80%, #77ed69);
  clip-path: polygon(0 11%, 42% 11%, 42% 21%, 78% 21%, 78% 32%, 55% 32%, 55% 43%, 100% 43%, 100% 54%, 67% 54%, 67% 66%, 83% 66%, 83% 79%, 43% 79%, 43% 100%, 0 100%);
  animation: mascot-fiber-trail 1.3s linear;
}
.mascot-trigger.is-greeting .mascot-gesture { opacity: 1; background-position-x: 100%; animation: none; }
.mascot-trigger.has-thumb.is-greeting .mascot-gesture {
  background-image: url("mascote-joinha.png");
  background-size: 1600% 100%;
  scale: 1.085;
  animation: mascot-frames .64s steps(16, end);
}
/* On a 16-frame strip, stepping to 16/15 of the range displays frames 0 to 15 before the animation ends. */
@keyframes mascot-frames {
  from { background-position-x: 0; }
  to { background-position-x: 106.666667%; }
}
@keyframes mascot-patrol-frames {
  from { background-position-x: 0; }
  to { background-position-x: 106.666667%; }
}
@keyframes mascot-patrol {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(calc(-1 * var(--mascot-travel))); }
}
@keyframes mascot-direction {
  0% { background-image: url("mascote-passos.png?v=3"); }
  50%, 100% { background-image: url("mascote-passos-direita.png?v=3"); }
}
@keyframes mascot-fiber-flash {
  0%, 30% { opacity: 0; transform: translate(0, .13rem) scale(.15); }
  38% { opacity: 1; transform: translate(-.1rem, .13rem) scale(.28); }
  50% { opacity: .85; transform: translate(-.45rem, 0) scale(.49); }
  59% { opacity: 1; transform: translate(-.85rem, -.13rem) scale(.68); }
  65% { opacity: 1; transform: translate(-1.7rem, -.23rem) scale(1); }
  88% { opacity: 1; transform: translate(-5rem, -.24rem) scale(.82); }
  100% { opacity: 0; transform: translate(-6.6rem, -.26rem) scale(.29); }
}
@keyframes mascot-fiber-trail {
  0%, 59% { opacity: 0; transform: translate(-.85rem, -.13rem) scaleX(.2); }
  65% { opacity: .92; transform: translate(-1.7rem, -.23rem) scaleX(.8); }
  88% { opacity: .78; transform: translate(-5rem, -.24rem) scaleX(1); }
  100% { opacity: 0; transform: translate(-6.6rem, -.26rem) scaleX(1.18); }
}
@keyframes mascot-jump-arc {
  0%, 28%, 86%, 100% { transform: translateY(0); }
  42% { transform: translateY(-2rem); }
  56% { transform: translateY(-3rem); }
  71% { transform: translateY(-1.9rem); }
}
@keyframes mascot-rising-arc {
  0%, 15%, 85%, 100% { transform: translateY(0); }
  35% { transform: translateY(-1.7rem); }
  51% { transform: translateY(-3.4rem); }
  67% { transform: translateY(-2.2rem); }
}
.mascot-bubble {
  border-radius: .4rem;
  color: #eaf7ea;
  background: #183325;
  font-size: .8rem;
  font-weight: 750;
  position: absolute;
  right: calc(100% - var(--mascot-travel) + .25rem);
  bottom: 56%;
  width: max-content;
  padding: .5rem .65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(.28rem);
  transition: opacity .16s, transform .16s, visibility .16s;
  pointer-events: none;
}
.mascot-bubble::after {
  position: absolute;
  top: 37%;
  left: 100%;
  border: .3rem solid transparent;
  border-left-color: #183325;
  content: "";
}
.mascot-trigger.is-greeting .mascot-bubble { opacity: 1; visibility: visible; transform: none; }
.mascot-dialog {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(28rem, calc(100% - 2rem));
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
}
.mascot-dialog-panel {
  position: relative;
  max-height: min(43rem, calc(100dvh - 7rem));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--soft);
  box-shadow: 0 1rem 3rem #0004;
}
.mascot-climber {
  position: absolute;
  z-index: 1;
  bottom: calc(100% - .17rem);
  left: 1.3rem;
  width: calc(var(--mascot-scale, 1) * clamp(4.6rem, 16vw, 6rem));
  padding-top: .55rem;
  overflow: hidden;
  pointer-events: none;
}
.mascot-climber img { display: block; width: 100%; height: auto; }
.mascot-climb-blink {
  position: absolute;
  inset: auto 0 0;
  clip-path: inset(37% 29% 48% 29%);
  opacity: 0;
}
.mascot-climb-body, .mascot-climb-paw { position: absolute; inset: auto 0 0; visibility: hidden; }
.mascot-climb-body {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 76% 85%, 76% 100%, 24% 100%, 24% 85%, 0 85%);
}
.mascot-climb-paw-left { clip-path: inset(82% 76% 0 0); transform-origin: 13% 100%; }
.mascot-climb-paw-right { clip-path: inset(82% 0 0 76%); transform-origin: 87% 100%; }
.mascot-dialog[open] .mascot-climb-finished { animation: mascot-climb-finish 1.5s step-end both; }
.mascot-dialog[open] .mascot-climb-blink { animation: mascot-climb-blink 5.2s step-end infinite; }
.mascot-dialog[open] .mascot-climb-body { animation: mascot-pull-up 1.5s ease-in-out both; }
.mascot-dialog[open] .mascot-climb-paw-left { animation: mascot-grip-left 1.5s ease-out both; }
.mascot-dialog[open] .mascot-climb-paw-right { animation: mascot-grip-right 1.5s ease-out both; }
@keyframes mascot-climb-finish {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes mascot-climb-blink {
  0%, 65%, 100% { opacity: 0; }
  62.5% { opacity: 1; }
}
@keyframes mascot-grip-left {
  0%, 4% { visibility: visible; transform: translate(-7%, 23%) rotate(-12deg); }
  17% { transform: translate(-2%, -6%) rotate(-7deg); }
  24%, 99.99% { transform: none; }
  100% { visibility: hidden; transform: none; }
}
@keyframes mascot-grip-right {
  0%, 17% { visibility: visible; transform: translate(7%, 23%) rotate(12deg); }
  30% { transform: translate(2%, -6%) rotate(7deg); }
  37%, 99.99% { transform: none; }
  100% { visibility: hidden; transform: none; }
}
@keyframes mascot-pull-up {
  0%, 35% { visibility: visible; transform: translateY(105%); }
  47% { transform: translateY(69%); }
  57% { transform: translateY(76%); animation-timing-function: cubic-bezier(.17,.7,.27,1); }
  77% { transform: translateY(-5%); }
  88% { transform: translateY(2%); }
  96%, 99.99% { transform: none; }
  100% { visibility: hidden; transform: none; }
}
.mascot-dialog::backdrop { background: #111b1560; }
.mascot-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mascot-dialog-header h2 { font-size: 1.5rem; }
.mascot-close { min-width: 2.5rem; min-height: 2.5rem; border: 0; background: transparent; color: var(--ink); font-size: 1.65rem; cursor: pointer; }
body:has(.mascot-trigger:not([hidden])) .footer { padding-bottom: 3.5rem; }
.systems-page { min-height: 100vh; display: flex; flex-direction: column; }
.systems-page main { flex: 1; background: var(--soft); }
.systems-hero { padding-block: clamp(3rem, 8vw, 5rem); }
.system-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 930px) {
  html { scroll-padding-top: 5.25rem; }
  html:has(.menu[hidden]) { scroll-padding-top: 10rem; }
  .header-inner { position: relative; flex-wrap: wrap; padding-block: .75rem; min-height: 4.5rem; }
  nav { width: 100%; flex-wrap: wrap; padding: .25rem 0 .4rem; }
  .header-controls { order: 1; }
  .header-inner > nav { order: 2; }
  .header-inner:has(.menu:not([hidden])) > nav {
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: -1rem;
    width: auto;
    max-height: 65vh;
    overflow: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0 0 .45rem .45rem;
    padding: .85rem 1rem;
  }
  .hero-layout { grid-template-columns: 1fr 0.58fr; }
}
@media (max-width: 620px) {
  .project-overview, .project-gallery { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 2rem); }
  .hero-layout, .split, .cards { grid-template-columns: 1fr; }
  .hero-layout { padding-top: 3.5rem; }
  .network { aspect-ratio: 2.1; }
}
@media (max-width: 400px) {
  .header-inner { gap: .5rem; }
  .brand img { width: 5.5rem; }
  .header-controls > .access, .header-controls > .menu { padding-inline: .52rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot-trigger.has-gaze .mascot-head { background-position-x: 50%; }
  .mascot-bubble { transition: none; }
  .mascot-trigger:is(.is-waving, .is-patrolling, .is-tapping, .is-blasting, .is-jumping, .is-rising) .mascot-gesture,
  .mascot-trigger.has-thumb.is-greeting .mascot-gesture,
  .mascot-trigger.is-blasting .mascot-character::before,
  .mascot-trigger.is-blasting .mascot-character::after,
  .mascot-dialog[open] .mascot-climber img { animation: none; }
}

.retro-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.retro-exit {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 3;
  padding: .55rem .75rem;
  color: #102016;
  background: #aafa76;
  border: 2px solid #f0ffd0;
  box-shadow: 3px 3px 0 #3b3969;
  font: 750 .8rem "Courier New", monospace;
  cursor: pointer;
}
:root[data-retro] {
  color-scheme: dark;
  --ink: #fff1ff;
  --muted: #e0c9ef;
  --paper: #171029;
  --soft: #29173c;
  --line: #9160a3;
  --green: #6ff5ff;
  --lime: #ffd18a;
  --dark: #231335;
  --control: #36204e;
  --control-ink: #bafaff;
  --control-line: #b176cb;
  --focus: #79f7ff;
  --retro-header: #180f2a;
  --retro-hero: linear-gradient(90deg, #10081fe8 0%, #10081fb3 42%, #10081f25 76%);
  --retro-horizon: #ff78c5;
  --retro-frame: #7bf4ff;
  --retro-shadow: #100b24;
  --retro-raised: #9f407c;
  --retro-heading-shadow: #773569;
  --retro-grid: #b170cb20;
  --retro-scene: url("retro-noite.png"), url("zoom-16-bits.png");
}
:root[data-retro][data-theme="light"] {
  color-scheme: light;
  --ink: #11293a;
  --muted: #304f5e;
  --paper: #f8fcf1;
  --soft: #e6f4d7;
  --line: #74964f;
  --green: #275e22;
  --lime: #e6ff95;
  --dark: #154368;
  --control: #edf9d1;
  --control-ink: #234126;
  --control-line: #91be58;
  --focus: #17599a;
  --retro-header: #12416e;
  --retro-hero: linear-gradient(90deg, #071e33e8 0%, #071e33ad 42%, #071e3325 76%);
  --retro-horizon: #caee75;
  --retro-frame: #c7ef72;
  --retro-shadow: #294e69;
  --retro-raised: #547c31;
  --retro-heading-shadow: #37658f;
  --retro-grid: #5579361b;
  --retro-scene: url("retro-dia.png"), url("zoom-16-bits.png");
}
[data-retro] body { isolation: isolate; }
[data-retro] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--retro-header);
  background-image: var(--retro-scene);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
@font-face { font-family: "Zoom Arcade"; src: url("ARCADE_N.TTF") format("truetype"); font-display: swap; }
@font-face { font-family: "Zoom Arcade Inline"; src: url("ARCADE_I.TTF") format("truetype"); font-display: swap; }
@font-face { font-family: "Zoom Arcade Rounded"; src: url("ARCADE_R.TTF") format("truetype"); font-display: swap; }
[data-retro] :is(h1, h2, h3, .code) { font-family: "Zoom Arcade", "Courier New", monospace; font-weight: 400; line-height: 1.35; letter-spacing: .025em; }
[data-retro] :is(.eyebrow, .retro-warp-message) { font-family: "Zoom Arcade Inline", "Courier New", monospace; }
[data-retro] :is(.button, .access, .menu, .retro-exit) { font-family: "Zoom Arcade Rounded", "Courier New", monospace; font-size: .8rem; line-height: 1.4; }
[data-retro] h3 { font-size: clamp(.95rem, 2vw, 1.25rem); }
[data-retro] .coverage-map path { shape-rendering: crispEdges; }
:root .retro-art, .retro-logo { display: none; }
:root[data-retro] .standard-art { display: none; }
:root[data-retro] img.retro-art { display: block; image-rendering: pixelated; }
:root[data-retro] span.retro-art { display: inline; }
[data-retro] .service-photo.retro-art { aspect-ratio: 16 / 9; object-fit: cover; }
[data-retro] .project-gallery img.retro-art { object-fit: contain; }
[data-retro] .has-retro-logo { display: none; }
[data-retro] .retro-logo { display: block; width: 100%; height: 2.5625rem; image-rendering: pixelated; }
[data-retro] .brand .logo-dark.has-retro-logo { display: none; }
[data-retro] .brand .retro-logo { width: 7rem; height: auto; }
[data-retro] .client-mark-adapted .retro-logo { filter: url("#marcas-fundo-transparente"); }
[data-retro] .client-mark-hydro .retro-logo { filter: brightness(0) invert(1); }
@media (max-width: 400px) {
  [data-retro] .brand .retro-logo { width: 5.5rem; }
}
[data-retro] h1 { font-size: clamp(1.35rem, 3vw, 2.7rem); line-height: 1.3; text-shadow: 3px 3px 0 var(--retro-heading-shadow); }
[data-retro] h2 { text-shadow: 2px 2px 0 var(--retro-grid); }
[data-retro] .dark h2 { text-shadow: 2px 2px 0 var(--retro-heading-shadow); }
[data-retro] .hero { background: var(--retro-hero); }
[data-retro] .hero-layout {
  display: flex;
  align-items: center;
  min-height: clamp(25rem, 69svh, 46rem);
  padding-block: clamp(2.5rem, 7vw, 6rem);
}
[data-retro] .hero-layout > :first-child { max-width: min(100%, 51rem); }
[data-retro] main > .section { background: transparent; }
[data-retro] main > .section.wrap,
[data-retro] main > .section > .wrap {
  padding: clamp(1.2rem, 4vw, 3.5rem);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--retro-shadow);
}
[data-retro] main > .section.wrap { margin-block: clamp(1.8rem, 5vw, 4rem); }
[data-retro] main > .section:not(.wrap) { padding-block: clamp(1.8rem, 5vw, 4rem); }
[data-retro] main > .section.dark > .wrap { background: color-mix(in srgb, var(--dark) 95%, transparent); }
[data-retro] .header { background: var(--retro-header); color: #fff; border-bottom: 4px double var(--retro-horizon); }
[data-retro] .header :is(a, button):focus-visible { outline-color: var(--retro-frame); }
[data-retro] .theme-toggle { color: var(--retro-frame); }
[data-retro] .brand .logo-light, [data-retro] .network { display: none; }
[data-retro] .brand .logo-dark { display: block; }
[data-retro] .header-inner > nav { margin-inline-start: auto; }
@media (max-width: 930px) {
  [data-retro] .header-inner:has(.menu:not([hidden])) > nav {
    background: var(--retro-header);
    border-color: var(--retro-horizon);
    border-radius: 0;
  }
}
@media (max-width: 620px) {
  [data-retro] .hero {
    background: linear-gradient(90deg, #100e24d9, #100e2477);
  }
  [data-retro] body::before { background-position: 56% center; }
}
[data-retro] :is(.card, .access, .menu, .button, .coverage-map, .contact-panel, .mascot-dialog-panel, .client-mark, .partner-list li, .project-gallery img, .service-photo, .fleet-photo img, .mascot-bubble) { border-radius: 0; }
[data-retro] :is(.card, .coverage-map, .contact-panel, .mascot-dialog-panel) { border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--retro-shadow); }
[data-retro] .button, [data-retro] .retro-exit { color: #172334; background: var(--retro-horizon); border: 2px solid #fff3e9; box-shadow: 4px 4px 0 var(--retro-raised); }
[data-retro] :is(.button, .retro-exit):hover { background: var(--retro-frame); }
[data-retro] :is(.disciplines, .dark .feature-list article) { border-color: color-mix(in srgb, var(--retro-frame) 55%, var(--retro-header)); }
[data-retro] .project-gallery img { background: var(--retro-header); }
[data-retro] .footer { background: color-mix(in srgb, var(--retro-header) 91%, transparent); border-top: 3px double var(--line); padding-bottom: 3.5rem; }
[data-retro] :is(.mascot-visual, .mascot-climber) {
  --mascot-scale: 1.4;
  image-rendering: pixelated;
  filter: url("#mascote-pixels") drop-shadow(2px 2px 0 #100b24a0);
}
[data-retro] .mascot-dialog-panel { max-height: min(43rem, calc(100dvh - 9.4rem)); }
.retro-warp {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #100f27;
  animation: retro-warp-cover 1.16s ease-in-out both;
}
.retro-warp-tunnel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: retro-warp-tunnel 1.16s cubic-bezier(.3,.32,.25,1) both;
}
.retro-warp-tunnel span {
  position: absolute;
  width: min(65vw, 55vh);
  aspect-ratio: 1;
  background: #9afa78;
  clip-path: polygon(26% 0, 74% 0, 100% 26%, 100% 74%, 74% 100%, 26% 100%, 0 74%, 0 26%, 26% 0, 31% 8%, 8% 31%, 8% 69%, 31% 92%, 69% 92%, 92% 69%, 92% 31%, 69% 8%, 31% 8%);
}
.retro-warp-tunnel span:nth-child(1) { scale: .35; background: #f4fff0; }
.retro-warp-tunnel span:nth-child(2) { scale: .62; background: #91ea6a; }
.retro-warp-tunnel span:nth-child(3) { scale: .95; background: #807ad2; }
.retro-warp-tunnel span:nth-child(4) { scale: 1.35; background: #46519d; }
.retro-warp-message {
  z-index: 1;
  align-self: end;
  padding: .5rem .8rem;
  margin-bottom: clamp(2rem, 16vh, 8rem);
  color: #f1ffdf;
  background: #100f27;
  border: 2px solid #91ea6a;
  font: 750 clamp(.85rem, 2vw, 1.15rem) "Courier New", monospace;
  text-align: center;
}
@keyframes retro-warp-cover {
  0%, 100% { opacity: 0; }
  18%, 78% { opacity: 1; }
}
@keyframes retro-warp-tunnel {
  0% { transform: scale(.35) rotate(-12deg); }
  54% { transform: scale(1.8) rotate(10deg); }
  100% { transform: scale(4) rotate(19deg); }
}
@media (prefers-reduced-motion: reduce) {
  .retro-warp, .retro-warp-tunnel { animation: none; }
}
