:root {
  color-scheme: dark;
  --bg: #080d0b;
  --surface: #101713;
  --ink: #f2f6ee;
  --muted: #b2c0b6;
  --lime: #c4fb45;
  --line: #293830;
  --header: 76px;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; }
h2 { font-size: clamp(2.35rem, 5.3vw, 4.6rem); font-weight: 650; }
h3 { font-size: 1.65rem; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 10px; background: var(--lime); color: var(--bg); }
.skip-link:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.eyebrow { color: var(--lime); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 9px 18px; border: 1px solid transparent; border-radius: 6px; font-size: .92rem; font-weight: 650; text-align: center; transition: background-color 160ms, border-color 160ms, color 160ms, translate 180ms ease, scale 140ms ease; }
.button-primary { color: #111907; background: var(--lime); }
.button-primary:hover { background: #dcff91; }
.button-outline { background: #101713; border-color: #57695a; color: var(--ink); }
.button-outline:hover, .button-outline[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.text-link { color: var(--lime); text-decoration: underline; text-underline-offset: .28em; }
.text-link:hover { color: #e1ff9c; }
.actions, .project-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.site-header { background: #080d0bf5; border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand strong { font-size: 1.9rem; font-weight: 850; line-height: 1; letter-spacing: -.09em; }
.brand span { font-size: .8rem; letter-spacing: .10em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.5vw, 32px); font-size: .92rem; }
.nav a:hover { color: var(--lime); }
.nav a:not(.button) { position: relative; transition: color 160ms ease; }
.nav a:not(.button)::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav a:not(.button):focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="location"] { color: var(--lime); }
.nav a:not(.button)[aria-current="location"]::after { transform: scaleX(1); }
.nav .button[aria-current="location"] { border-color: var(--lime); }

main { position: relative; isolation: isolate; }
main > .section > .wrap { position: relative; z-index: 2; }
.neon-circuit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: hidden; pointer-events: none; user-select: none; }
.circuit-track, .circuit-pulse { fill: none; stroke: var(--lime); stroke-linejoin: round; }
.circuit-track { stroke-opacity: .31; }
.circuit-pulse { stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 21 171; opacity: 0; }
.circuit-node { fill: #111e0c; stroke: var(--lime); stroke-opacity: .66; }
.circuit-ambient { fill: url(#circuit-glow); opacity: .32; }
.circuit-geometry { fill: none; stroke: var(--lime); stroke-opacity: .34; opacity: .56; }
.circuit-segment.is-active .circuit-track { stroke-opacity: .61; }
.circuit-segment.is-active .circuit-node { fill: var(--lime); }
.circuit-segment.is-active .circuit-ambient { opacity: .68; }

.hero { isolation: isolate; position: relative; overflow: hidden; min-height: clamp(590px, 56vw, 760px); display: grid; align-items: center; }
.hero-inner { position: relative; padding-block: 92px; }
.hero-copy { max-width: 600px; }
.hero-label { display: flex; align-items: center; gap: 12px; }
.hero-label::before { content: ""; width: 32px; height: 1px; flex: none; background: var(--lime); }
.hero h1 { margin-top: 24px; font-size: clamp(2.7rem, 5.8vw, 5.25rem); font-weight: 680; }
.hero h1 span { color: var(--lime); }
.lead { color: #d6e0d6; max-width: 38ch; margin-block: 22px 30px; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 32%; display: grid; align-items: center; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), #080d0bb5 19%, transparent 54%), linear-gradient(0deg, var(--bg), transparent 20%, transparent 88%, #080d0b70); }
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 783 / 675;
  overflow: hidden;
  transform-origin: 60% 68%;
}
.hero-art img { position: absolute; max-width: none; width: 213.54%; height: auto; left: -101.53%; top: -17.19%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: corridor-drift 7s infinite; }
  .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 89% 62%, #95ff4e4f, transparent 39%),
                radial-gradient(ellipse at 57% 72%, #7ffa5b3b, transparent 32%);
    mix-blend-mode: screen;
    animation: neon-breathe 7s ease-in-out infinite alternate;
  }
  .hero-visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto -9% 7% 13%;
    height: 24%;
    background: radial-gradient(ellipse at 31% 67%, #8ebca344, transparent 52%),
                radial-gradient(ellipse at 63% 55%, #b8ebc84a, transparent 51%);
    animation: floor-mist 15s ease-in-out infinite alternate;
  }
  .hero-visual::after { z-index: 2; }
  .hero-visual.is-offscreen .hero-art,
  .hero-visual.is-offscreen .hero-art::after,
  .hero-visual.is-offscreen::before { animation-play-state: paused; }

  .hero-copy > * { animation: content-enter 720ms cubic-bezier(.22, 1, .36, 1) both; }
  .hero-copy h1 { animation-delay: 80ms; }
  .hero-copy .lead { animation-delay: 155ms; }
  .hero-copy .actions { animation-delay: 225ms; }
  .scroll-reveal { animation: section-enter 740ms cubic-bezier(.22, 1, .36, 1); }
  .hero-copy > :focus-within, .scroll-reveal:focus-within { opacity: 1 !important; transform: none !important; }
  .button:active { scale: .97; }

  .circuit-segment.is-visible .circuit-pulse { opacity: .85; animation: circuit-current 2.8s linear var(--pulse-delay, 0ms) infinite; }
  .circuit-geometry { transform-box: fill-box; transform-origin: center; animation: circuit-float 9s ease-in-out infinite alternate paused; }
  .circuit-ambient { animation: circuit-ambient 8s ease-in-out infinite alternate paused; transition: opacity 450ms ease; }
  .circuit-segment.is-visible :is(.circuit-geometry, .circuit-ambient) { animation-play-state: running; }
}
@keyframes corridor-drift {
  0%, 100% { transform: scale(1); animation-timing-function: cubic-bezier(.35, 0, .25, 1); }
  43% { transform: scale(1.105); animation-timing-function: ease-in-out; }
}
@keyframes circuit-current { from { stroke-dashoffset: var(--pulse-phase); } to { stroke-dashoffset: calc(var(--pulse-phase) - 192px); } }
@keyframes circuit-float { from { transform: translateY(-4px) rotate(-5deg); } to { transform: translateY(11px) rotate(9deg); } }
@keyframes circuit-ambient { from { fill-opacity: .48; } to { fill-opacity: 1; } }
@keyframes neon-breathe { from { opacity: .12; } to { opacity: .62; } }
@keyframes floor-mist {
  from { opacity: .36; transform: translateX(-8%) scaleX(.94); }
  to { opacity: .76; transform: translateX(12%) scaleX(1.09); }
}
@keyframes content-enter {
  from { opacity: .48; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes section-enter {
  from { opacity: .52; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { padding-block: clamp(62px, 8vw, 116px); border-top: 1px solid var(--line); }
.section-intro { margin-bottom: clamp(28px, 4vw, 54px); }
.section .eyebrow + h2 { margin-top: 12px; }
.section-intro > p:last-child:not(.eyebrow) { margin-top: 16px; max-width: 61ch; color: var(--muted); }
.project-copy > p:not(.eyebrow), .partner-list span, .partner-panel p:not(.eyebrow), .process-list p { color: var(--muted); }

/* Services module console */
#servicos { position: relative; background: radial-gradient(ellipse at 72% 48%, #14261b 0%, #0a130e 48%, var(--bg) 80%); }
#servicos::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(125deg, transparent 0 126px, #a3ed7710 127px, transparent 129px 190px);
  mask-image: radial-gradient(ellipse at 77% 42%, #000, transparent 76%);
}
#servicos .section-intro { margin-bottom: clamp(26px, 4vw, 52px); }
.service-console { position: relative; }
.service-console.is-enhanced { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(76px, 11vw, 156px); }
.service-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.service-modules { display: grid; align-content: center; gap: 12px; }
.service-module {
  --indent: 0%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(94% - var(--indent));
  min-height: 62px;
  margin-inline-start: var(--indent);
  padding: 12px 24px 12px 14px;
  border: 1px solid #425843;
  border-radius: 6px;
  background: linear-gradient(110deg, #1a2a20, #0d1711 76%);
  color: var(--ink);
  text-align: left;
  font-weight: 640;
  line-height: 1.3;
  box-shadow: 0 8px 16px #0004, inset 0 1px #b9ffc411;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 260ms ease, translate 240ms ease;
}
.service-module:nth-child(2) { --indent: 10%; }
.service-module:nth-child(3) { --indent: 5%; }
.service-module:nth-child(4) { --indent: 13%; }
.service-module svg, .service-display-icon { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.service-module svg { width: 25px; height: 25px; flex: none; color: #b6dba6; }
.service-module::after { content: ""; position: absolute; right: 7px; top: calc(50% - 2px); width: 4px; height: 4px; background: #8aa580; transform: rotate(45deg); }
.service-module[aria-selected="true"] { border-color: #a6d55c; background: linear-gradient(110deg, #304523, #142319 76%); box-shadow: 0 12px 24px #0006, 0 0 20px #aaf44b2e, inset 0 1px #d2ffa337; }
.service-module[aria-selected="true"] svg, .service-module[aria-selected="true"]::after { color: var(--lime); }
.service-module[aria-selected="true"]::after { background: currentColor; box-shadow: 0 0 9px currentColor; }
.service-display {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #587549;
  border-radius: 12px;
  background: linear-gradient(145deg, #23372b, #111c16 56%, #0c1610);
  box-shadow: 0 22px 42px #0006, 0 0 30px #81dc3d12, inset 0 1px #d5ffad24;
}
.service-console.is-enhanced .service-display { display: grid; }
.service-console.is-enhanced .service-architecture { grid-area: 1 / 1; }
.service-architecture { position: relative; height: clamp(160px, 19vw, 224px); overflow: hidden; background: radial-gradient(ellipse at 50% 57%, #60973750, #0f1a13 76%); }
.service-architecture > svg:first-child { width: 100%; height: 100%; }
.service-frames { fill: none; stroke: #88d673; stroke-opacity: .35; }
.service-frame-lights { fill: none; stroke: #bdff65; stroke-width: 2; opacity: .78; }
.service-frame-marks { fill: none; stroke: #b1e987; opacity: .64; }
.service-display-icon { position: absolute; width: 48px; height: 48px; left: calc(50% - 24px); top: calc(50% - 24px); color: #e1ffa5; filter: drop-shadow(0 0 11px #a8fc46a6); }
.service-panel { position: relative; padding: clamp(19px, 3vw, 36px); border-top: 1px solid #688c4f65; }
.service-console.is-enhanced .service-panel { grid-area: 2 / 1; min-height: 174px; }
.service-panel[aria-hidden="true"] { visibility: hidden; }
.service-panel h3 { font-size: clamp(1.5rem, 3.3vw, 2.6rem); overflow-wrap: anywhere; }
.service-panel p { margin-top: 12px; max-width: 48ch; color: var(--muted); }
.service-route .circuit-track { stroke-opacity: .45; }
.service-route.is-selected .circuit-track { stroke-opacity: .83; }
.service-route.is-selected .circuit-node { fill: var(--lime); }
.circuit-segment.is-active .service-route:not(.is-selected) .circuit-node { fill: #111e0c; }

@media (prefers-reduced-motion: no-preference) {
  .service-module[aria-selected="true"] { translate: 0 -3px; }
  .service-console.is-enhanced .service-panel:not([aria-hidden="true"]) { animation: service-panel-enter 420ms cubic-bezier(.22, 1, .36, 1) both; }
  .service-console.is-visible .service-frame-lights { animation: neon-breathe 5s ease-in-out infinite alternate; }
  .service-console.is-visible .service-frame-marks { animation: circuit-float 8s ease-in-out infinite alternate; transform-origin: center; }
  .circuit-segment.is-visible .service-route:not(.is-selected) .circuit-pulse { opacity: .45; }
  .circuit-segment.is-visible .service-route.is-selected .circuit-pulse { opacity: 1; stroke-width: 2.2; }
}
@keyframes service-panel-enter {
  from { opacity: .55; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .service-console.is-enhanced { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .service-modules { padding-inline-end: 28px; }
  .service-module { min-height: 53px; }
  .service-console.is-enhanced .service-panel { min-height: 180px; }
}

.portfolio { background: #0c120e; }
.gallery { --direction: 1; --tilt-x: 0deg; --tilt-y: 0deg; --light-x: 0px; --light-y: 0px; }
.gallery-slides { display: grid; gap: 22px; }
.gallery.is-enhanced .gallery-slides { gap: 0; overflow: clip; overflow-clip-margin: 3px; }
.gallery.is-enhanced .project { grid-area: 1 / 1; z-index: 1; }
.gallery.is-enhanced .project[aria-hidden="true"] { visibility: hidden; opacity: 0; pointer-events: none; z-index: 0; }
.gallery.has-interaction .project[aria-hidden="false"] { animation: gallery-enter 450ms cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: no-preference) {
  .gallery.is-enhanced .project.is-exiting { visibility: visible; animation: gallery-exit 380ms ease both; }
}
@keyframes gallery-enter {
  from { opacity: 0; transform: translateX(calc(28px * var(--direction))) scale(.975); }
  to { opacity: 1; transform: none; }
}
@keyframes gallery-exit {
  from { opacity: var(--exit-opacity, 1); transform: var(--exit-transform, none); }
  to { opacity: 0; transform: translateX(calc(-18px * var(--direction))) scale(.984); }
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr);
  min-width: 0;
  isolation: isolate;
  align-items: stretch;
  border: 1px solid #334438;
  border-radius: 12px;
  background: #0d1610;
}
.project-devices {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 11px 0 0 11px;
  background: repeating-linear-gradient(122deg, transparent 0 106px, #b5f98013 107px, transparent 109px 184px),
              radial-gradient(ellipse at 54% 53%, #2b4f26, #121e16 54%, #0b110d 82%);
}
.project-devices::before, .project-devices::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.project-devices::before {
  inset: 25% 8% 12%;
  background: radial-gradient(ellipse, #99f84c55 0%, #6dbd3d26 36%, transparent 71%);
  transform: translate(var(--light-x), var(--light-y));
  transition: transform 350ms ease-out;
}
.project-devices::after {
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, #050b07b8), repeating-linear-gradient(0deg, transparent 0 24px, #93e46322 25px, transparent 26px 32px);
  mask-image: radial-gradient(ellipse at 52% 20%, #000 2%, transparent 75%);
}
.gallery.has-interaction .project[aria-hidden="false"] .project-devices::before { animation: gallery-light 900ms ease-out; }
@keyframes gallery-light { 35% { opacity: .55; scale: 1.15; } }
.device-scene { position: relative; width: min(100%, 860px); aspect-ratio: 1.48; perspective: 1000px; }
.device-scene-cover { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .13; mask-image: radial-gradient(ellipse, #000, transparent 78%); }
.device {
  position: absolute;
  margin: 0;
  transition: transform 420ms cubic-bezier(.2,.75,.35,1);
}
.device-laptop {
  left: 7%; top: 19%; width: 76%;
  transform: rotateX(calc(4deg + var(--tilt-x))) rotateY(calc(-10deg + var(--tilt-y))) rotateZ(-3deg);
  transform-origin: 52% 64%;
  filter: drop-shadow(0 22px 16px #000b);
}
.device-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #56645a;
  background: #18221c;
}
.device-laptop .device-screen { aspect-ratio: 16 / 10; padding: 1.7% 1.6% 1.8%; border-radius: 4% 4% 2% 2% / 6% 6% 3% 3%; background: linear-gradient(155deg, #35453c, #080e0a 26%, #060a07); }
.device-laptop::after {
  content: "";
  display: block;
  width: 114%; height: 0; padding-top: 4.5%; margin-left: -7%;
  background: linear-gradient(179deg,#9ba49f,#4a5a51 30%,#29372e 72%,#0a100d);
  clip-path: polygon(6% 0, 94% 0, 100% 68%, 98% 100%, 2% 100%, 0 68%);
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(127deg, #e7ffed2b 0, #e7ffed07 26%, transparent 48%);
}
.device-phone {
  z-index: 1;
  width: 24%; aspect-ratio: 390 / 760; top: 16%; left: 68%;
  transform: translateZ(24px) rotateX(calc(-3deg + var(--tilt-x) * .8)) rotateY(calc(13deg + var(--tilt-y) * 1.12)) rotateZ(9deg);
  filter: drop-shadow(0 13px 10px #000c);
}
.device-phone .device-screen { width: 100%; height: 100%; padding: 4%; border-radius: 12% / 6%; border-color: #708779; background: linear-gradient(125deg, #414d47, #080d0a 34%, #080d0a 75%, #495c50); }
.device-phone img { border-radius: 9% / 5%; }
.device-phone .device-screen::before { content: ""; position: absolute; z-index: 1; top: 5%; left: 41%; width: 18%; height: 1.5%; border-radius: 8px; background: #101512; }
.device-phone.is-back {
  z-index: 0; left: 23%; top: 8%; width: 29%;
  transform: translateZ(-8px) rotateX(calc(5deg + var(--tilt-x))) rotateY(calc(-14deg + var(--tilt-y))) rotateZ(-10deg);
}
.device-scene.is-mobile-first .device-phone:not(.is-back) { left: 49%; top: 13%; width: 29%; }
.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 13px;
  min-width: 0;
  padding: clamp(20px, 3vw, 44px);
  border-left: 1px solid #405840;
  background: linear-gradient(145deg, #17271c, #101813 57%, #101813);
  border-radius: 0 11px 11px 0;
}
.project-copy h3 { font-size: clamp(1.65rem, 3.1vw, 3rem); overflow-wrap: anywhere; }
.project-actions { gap: 11px 19px; padding-top: 8px; }
.gallery-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block: 18px 12px; }
.gallery-direction, .gallery-indicators { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gallery-direction .button { width: 46px; padding: 0; font-size: 1.12rem; }
.gallery-indicators .button { min-width: 38px; min-height: 42px; padding: 0 7px; border-color: var(--line); background: #0e1711; font-variant-numeric: tabular-nums; }
.gallery-indicators .button[aria-current="true"], .gallery-indicators .button:hover { border-color: var(--lime); color: var(--lime); }
.gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gallery-feed .circuit-track { stroke-opacity: .7; }
@media (max-width: 940px) {
  .project { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .project-devices { border-radius: 11px 11px 0 0; }
  .device-scene { width: min(100%, 670px); }
  .project-copy { border-left: 0; border-top: 1px solid #405840; border-radius: 0 0 11px 11px; }
}
@media (max-width: 440px) {
  .gallery-controls { gap: 8px; margin-top: 13px; }
  .gallery-indicators .button { min-width: 34px; min-height: 39px; }
  .project-copy { gap: 9px; padding: 16px; }
  .device-scene { perspective: 640px; }
}

/* The closing sections share the site's circuit layer. */
#parcerias, .process, .contact { position: relative; }
#parcerias {
  background: radial-gradient(ellipse at 76% 50%, #1d321f, transparent 56%), #0c140f;
}
#parcerias::before, .process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(124deg, transparent 0 103px, #aef68117 104px, transparent 106px 168px);
  mask-image: radial-gradient(ellipse at 72% 52%, #000, transparent 73%);
}
.partner-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(30px, 5vw, 80px); }
.partner-panel h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.partner-panel p:not(.eyebrow) { margin-block: 20px 26px; max-width: 48ch; }
.partner-network { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(22px, 5vw, 84px); align-items: center; }
.partner-core {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  min-width: 0;
  text-align: center;
  color: var(--lime);
}
.partner-core::before, .partner-core::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(26% 0, 74% 0, 100% 26%, 100% 74%, 74% 100%, 26% 100%, 0 74%, 0 26%);
  background: linear-gradient(140deg, #c1fb72, #334c29 43%, #91c65c);
}
.partner-core::after { inset: 2px; background: radial-gradient(ellipse at 50% 40%, #33542b, #122618 63%, #0d170f); }
.partner-core strong { line-height: 1; font-size: clamp(1.8rem, 4vw, 3.9rem); letter-spacing: -.09em; text-shadow: 0 0 18px #b4ff6080; }
.partner-core span { font-size: .65rem; text-transform: uppercase; letter-spacing: .09em; }
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.partner-list li { padding: 14px 16px; border: 1px solid #47624a; border-radius: 5px; background: linear-gradient(110deg, #223629, #101a14); transition: border-color 220ms ease, box-shadow 220ms ease; }
.partner-list li:is(:hover, :focus-visible) { border-color: #a6d562; box-shadow: 0 0 22px #acf75328; }
.partner-list span { display: block; margin-top: 3px; }
.connection-route .circuit-track, .production-route .circuit-track, .portal-feed .circuit-track { stroke-opacity: .49; }
.connection-route.is-lit .circuit-track, .production-route.is-lit .circuit-track, .portal-feed .circuit-track { stroke-opacity: .86; }
.connection-route.is-lit .circuit-node, .production-route.is-lit .circuit-node, .portal-feed .circuit-node { fill: var(--lime); }
.circuit-segment.is-active .connection-route:not(.is-lit) .circuit-node { fill: #111e0c; }

.process { background: radial-gradient(ellipse at 48% 45%, #1a2b1e, #0b120e 67%); }
.process::before { mask-image: radial-gradient(ellipse at center, #000, transparent 76%); }
.process .section-intro { text-align: center; }
.process-list { padding: 0; margin: 0; list-style: none; counter-reset: step; display: grid; }
.process-list li { counter-increment: step; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); min-height: 112px; align-items: center; }
.process-list li > div { grid-column: 3; width: min(100%, 440px); padding: 14px 0 14px 22px; background: linear-gradient(90deg, #92dd4d0f, transparent 87%); }
.process-list li:nth-child(odd) > div { grid-column: 1; justify-self: end; text-align: right; padding: 14px 22px 14px 0; background: linear-gradient(270deg, #92dd4d0f, transparent 87%); }
.process-pin { position: absolute; left: calc(50% - 19px); top: calc(50% - 19px); width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #759750; background: #172318; color: var(--lime); border-radius: 7px; font-size: .78rem; font-variant-numeric: tabular-nums; transition: background-color 220ms, box-shadow 220ms; }
.process-pin::before { content: counter(step, decimal-leading-zero); }
.process-list li:is(.is-current, :focus-visible) .process-pin { color: #10200a; background: var(--lime); box-shadow: 0 0 21px #b3f84b64; }
.process-list li:is(.is-current, :focus-visible) h3 { color: var(--lime); }
.process-list h3 { margin-bottom: 8px; font-size: clamp(1.25rem, 2.6vw, 1.85rem); }
.technical-note { width: min(100%, 64ch); margin: 28px auto 0; text-align: center; color: var(--muted); }

.contact { min-height: 575px; display: grid; align-items: center; overflow: clip; text-align: center; background: radial-gradient(ellipse at 50% 61%, #253a20, #111e14 49%, #080d0b 78%); }
.contact-portal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-portal path { fill: none; vector-effect: non-scaling-stroke; }
.portal-structure { stroke: #7abf63; stroke-width: 1.1; opacity: .55; }
.portal-depth { stroke: #67a34e; opacity: .33; }
.portal-light { stroke: #bdf962; stroke-width: 1.6; opacity: .75; filter: drop-shadow(0 0 8px #adff5490); }
.contact > .wrap { padding: clamp(22px, 5vw, 58px) 8px; isolation: isolate; }
.contact > .wrap::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, #080d0bf9 20%, #080d0bd9 48%, transparent 78%); }
.contact h2 { max-width: 18ch; margin-inline: auto; }
.contact .actions { justify-content: center; margin-block: 26px 20px; }
.contact .button-primary { box-shadow: 0 0 24px #b8fb454b; }
@media (prefers-reduced-motion: no-preference) {
  .circuit-segment.is-visible :is(.connection-route, .production-route):not(.is-lit) .circuit-pulse { opacity: .48; }
  .circuit-segment.is-visible :is(.connection-route, .production-route).is-lit .circuit-pulse { opacity: 1; stroke-width: 2.1; }
  .closing-in-view .portal-light { animation: portal-light 6s ease-in-out infinite alternate; }
  #parcerias.closing-in-view::before, .process.closing-in-view::before { animation: portal-light 11s ease-in-out infinite alternate; }
}
@keyframes portal-light { from { opacity: .44; } to { opacity: .95; } }
@media (max-width: 880px) {
  .partner-panel { grid-template-columns: 1fr; }
  .partner-network { grid-template-columns: minmax(0, .54fr) minmax(0, 1.46fr); width: min(100%, 590px); margin-inline: auto; }
}
@media (max-width: 540px) {
  .partner-panel h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .partner-network { grid-template-columns: minmax(62px, .46fr) minmax(0, 1.54fr); gap: 20px; }
  .partner-list li { padding: 10px; }
  .partner-list span { font-size: .93rem; }
  .process .section-intro { text-align: left; }
  .process-list li { grid-template-columns: 50px minmax(0, 1fr); min-height: 108px; }
  .process-list li:nth-child(n) > div { grid-column: 2; justify-self: stretch; text-align: left; padding: 12px 0 12px 12px; background: linear-gradient(90deg, #92dd4d0f, transparent 87%); }
  .process-pin { left: 2px; }
  .technical-note { text-align: left; }
  .contact { min-height: 510px; }
  .contact > .wrap::before { background: radial-gradient(ellipse at center, #080d0bf9 30%, #080d0bd9 64%, transparent 96%); }
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); }

.preview { width: min(1100px, calc(100% - 24px)); max-width: none; height: min(900px, calc(100dvh - 24px)); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.preview[open] { display: flex; flex-direction: column; }
.preview::backdrop { background: #000c; }
.preview-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 12px; }
.preview-toolbar h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.preview-toolbar form { justify-self: end; }
.device-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.device-controls .button { padding-inline: 9px; }
.preview-link { justify-self: end; font-size: .9rem; }
#preview-hint { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.preview-stage { flex: 1; min-height: 0; overflow: auto; background: var(--bg); }
.preview-stage iframe { display: block; margin-inline: auto; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-stage iframe[data-device="tablet"] { width: 768px; height: 720px; }
.preview-stage iframe[data-device="mobile"] { width: 390px; height: 680px; }

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.button):hover::after { transform: scaleX(1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover { translate: 0 -2px; }
}

@media (max-width: 880px) {
  .wrap { width: calc(100% - 48px); }
  .hero-visual { left: 23%; }
  .hero-visual::after { background: linear-gradient(90deg, var(--bg), #080d0bc0 30%, transparent 80%), linear-gradient(0deg, var(--bg), transparent 25%, transparent 85%, var(--bg)); }
}
@media (max-width: 720px) {
  :root { --header: 64px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(var(--header), auto); gap: 0 12px; }
  .nav { grid-column: 1 / -1; width: 100%; padding-block: 8px 14px; }
  .header-inner:has(.menu-toggle:not([hidden])) .nav { display: grid; gap: 0; padding: 8px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; }
  .header-inner:has(.menu-toggle:not([hidden])) .nav a { padding: 10px 12px; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-visual { position: relative; inset: auto; width: 100%; order: 1; }
  .hero-visual::after { background: linear-gradient(90deg, #080d0ba0, transparent 12%), linear-gradient(180deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
  .hero-art { margin-block: -5% -10%; }
  .hero-inner { padding-block: 46px 0; }
  .hero h1 { margin-top: 18px; }
}
@media (max-width: 440px) {
  h2 { font-size: clamp(1.8rem, 8.5vw, 2.35rem); overflow-wrap: anywhere; }
  .preview-link { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 720px) and (scripting: enabled) {
  .menu-toggle[hidden] + .nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
