:root {
  --grafite: #151b24;
  --chassi: #1e2631;
  --chassi-2: #27313f;
  --trilho: #34404f;
  --aco: #9dabbd;
  --nevoa: #e4eaf2;
  --branco: #f6f9fd;
  --sinal: #2e6bff;
  --sinal-escuro: #1c4fd1;
  --link: #8ab8ff;
  --led: #3ddc97;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --header-h: 76px;
  --pad: clamp(20px, 4.5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--grafite);
  color: var(--nevoa);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
section[id] { scroll-margin-top: var(--header-h); }
::selection { background: var(--sinal); color: #fff; }

.wrap {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--branco); color: var(--grafite);
  padding: 10px 16px; border-radius: var(--r-s);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
#topo { position: absolute; top: 0; height: 1px; width: 1px; }

/* ---------- Tipografia ---------- */
.hero-title, .section-head h2, .about h2, .contact h2, .marquee, .step-n {
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34ch);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2, .about h2 {
  font-size: clamp(2.9rem, 6.6vw, 5.75rem);
  line-height: 0.94;
  text-wrap: balance;
}
.section-head p { color: var(--aco); padding-bottom: 6px; }
.section { padding-block: clamp(80px, 11vw, 148px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 620; font-size: 0.98rem; line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}
.btn-primary { background: var(--sinal); color: #fff; }
.btn-light { background: var(--nevoa); color: var(--grafite); }
.btn-ghost { border-color: var(--trilho); }
.btn-dark { background: var(--grafite); color: var(--branco); }
.btn-big { min-height: 62px; padding-inline: 30px; font-size: 1.08rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--sinal-escuro); }
  .btn-light:hover { background: #fff; }
  .btn-ghost:hover { border-color: var(--aco); background: var(--chassi); }
  .btn-dark:hover { background: var(--chassi-2); }
  .btn:hover use[href="#i-arrow"] { transform: translate(1px, -1px); }
}

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(21 27 36 / 0.86);
  border-bottom: 1px solid var(--trilho);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 200ms ease;
}
.header.is-solid::before, .header.is-open::before { opacity: 1; }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-text { display: grid; gap: 4px; line-height: 1; white-space: nowrap; }
.brand-text b { font-stretch: 112%; font-weight: 800; font-size: 1.28rem; letter-spacing: 0.03em; color: var(--nevoa); }
.brand-text i { font-style: normal; color: var(--link); }
.brand-text small { font-size: 0.72rem; font-weight: 550; letter-spacing: 0.02em; color: var(--aco); }
.logo-bg { fill: var(--sinal); }
.logo-vb { fill: #fff; }
.selo-ink { fill: var(--nevoa); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav > a:not(.btn) {
  position: relative; font-size: 0.95rem; color: var(--aco); padding-block: 8px;
  transition: color 160ms ease;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--sinal); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav > a[aria-current="true"] { color: var(--branco); }
.nav > a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav > a:not(.btn):hover { color: var(--branco); } }
.nav-cta { min-height: 44px; padding-block: 9px; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(12px, 3vh, 40px));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 58% at 76% 38%, rgb(46 107 255 / 0.20), rgb(46 107 255 / 0.07) 45%, transparent 75%),
    linear-gradient(180deg, #1b2330, var(--grafite) 85%);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: center; gap: 24px;
  min-height: min(720px, calc(100svh - var(--header-h) - 170px));
}
/* "em ordem" mede 3,93x o tamanho da fonte: 25cqi preenche a coluna sem cortar. */
.hero-copy, .contact-main { container-type: inline-size; }
.hero-title { font-size: min(25cqi, 25svh, 13.2rem); line-height: 0.86; }
.hero-title .line { display: block; overflow: hidden; padding-block: 0.025em; white-space: nowrap; }
.hero-title .line > span {
  display: block;
  background: linear-gradient(178deg, #fff 18%, #c3cfde 55%, #8696ab 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 26px; max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--aco); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stage-col { justify-self: center; width: min(100%, 560px, 66svh); }
.stage { position: relative; aspect-ratio: 1; }
.stage-layer { position: absolute; inset: 0; }
.stage-rings i { position: absolute; border-radius: 50%; border: 1px solid rgb(157 171 189 / 0.26); inset: 3%; }
.stage-rings i + i { inset: 25%; border-style: dashed; border-color: rgb(157 171 189 / 0.2); }
.cables { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cables path {
  fill: none; stroke: var(--trilho); stroke-width: 2; vector-effect: non-scaling-stroke;
  transition: stroke 220ms ease;
}
.cables path.is-on { stroke: var(--sinal); stroke-width: 3; }
.packets circle { fill: var(--link); }
.hub {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%; background: var(--grafite);
  box-shadow: 0 0 0 10px rgb(46 107 255 / 0.09), 0 24px 60px rgb(0 0 0 / 0.45);
}
.hub svg { width: 94%; height: 94%; }
.hub img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: 19%; aspect-ratio: 1; min-width: 62px;
  translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0; border-radius: 24%; cursor: pointer;
  background: var(--chassi); border: 1px solid var(--trilho); color: var(--aco);
  transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
.node svg { width: 36%; height: 36%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.node span { font-size: clamp(0.62rem, 0.85vw, 0.74rem); line-height: 1; }
.node:active { transform: scale(0.96); }
.node[aria-pressed="true"] { background: var(--sinal); border-color: var(--link); color: #fff; }
@media (hover: hover) and (pointer: fine) { .node:hover { border-color: var(--link); color: #fff; } }
.stage-caption { min-height: 3.4em; margin: 12px auto 0; max-width: 42ch; text-align: center; font-size: 0.95rem; line-height: 1.5; color: var(--aco); transition: opacity 160ms ease, filter 160ms ease; }
.stage-caption strong { color: var(--branco); font-weight: 650; }
.stage-caption.is-swapping { opacity: 0.35; filter: blur(2px); }

.facts {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(20px, 3vw, 40px);
  background: rgb(39 49 63 / 0.7); border: 1px solid var(--trilho); border-radius: var(--r-m);
}
.facts li { display: grid; justify-items: center; align-content: center; text-align: center; gap: 4px; padding: 26px 18px; }
.facts li + li { border-left: 1px solid var(--trilho); }
.facts svg { width: 26px; height: 26px; margin-bottom: 8px; fill: none; stroke: var(--link); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts strong { font-stretch: 75%; font-weight: 750; font-size: 1.5rem; line-height: 1.15; }
.facts strong b { display: block; font-stretch: 62%; font-weight: 850; font-size: clamp(3rem, 5vw, 4.6rem); line-height: 0.94; text-transform: uppercase; }
.facts li > span { font-size: 0.9rem; line-height: 1.45; color: var(--aco); max-width: 24ch; }

/* Entrada do hero: o único momento orquestrado de carga */
.js .hero-title .line > span { animation: rise 760ms var(--ease-out) both; }
.js .hero-title .line + .line > span { animation-delay: 90ms; }
.js .hero-sub { animation: appear 600ms var(--ease-out) 220ms both; }
.js .hero-actions { animation: appear 560ms var(--ease-out) 290ms both; }
.js .stage-col { animation: settle 900ms var(--ease-out) 120ms both; }
.js .facts { animation: fade 600ms ease 380ms both; }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } }
@keyframes settle { from { opacity: 0; transform: scale(0.95); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Serviços ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 2.6vw, 34px); overflow: hidden;
  background: var(--chassi); border: 1px solid var(--trilho); border-radius: var(--r-m);
}
.card-redes { grid-column: span 7; grid-row: span 2; border-radius: var(--r-l); background: linear-gradient(160deg, #25334a, var(--chassi) 62%); }
.card-format, .card-config { grid-column: span 5; }
.card-servicos { grid-column: span 5; }
.card-consult { grid-column: span 7; }
.card h3 { font-stretch: 75%; font-weight: 780; font-size: clamp(1.7rem, 2.4vw, 2.15rem); line-height: 1.1; margin-bottom: 8px; }
.card-redes h3 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; }
.card p { color: var(--aco); max-width: 48ch; }
.card-edge {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--link), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 220ms ease;
}
@media (hover: hover) and (pointer: fine) { .bento:hover .card-edge { opacity: 1; } }

/* Painel de rede */
.viz-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 250px; }
.ports { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(4px, 0.8vw, 10px); padding: clamp(8px, 1.2vw, 14px); background: var(--grafite); border: 1px solid var(--trilho); border-radius: var(--r-s); }
.ports b { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: 4px; background: var(--chassi-2); box-shadow: inset 0 0 0 1px var(--trilho); }
.ports b::before { content: ""; position: absolute; inset: 38% 22% 18%; background: #0c1118; border-radius: 2px; }
.ports b::after { content: ""; position: absolute; top: 14%; left: 22%; width: 5px; height: 5px; border-radius: 50%; background: var(--trilho); }
.ports b.on::after { background: var(--led); box-shadow: 0 0 8px var(--led); }
.is-live .ports b.on::after { animation: blink var(--t, 2s) steps(1) var(--d, 0s) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 46% { opacity: 0.25; } 54% { opacity: 1; } 78% { opacity: 0.25; } 84% { opacity: 1; } }
.patch { width: 100%; height: clamp(90px, 14vw, 150px); }
.patch path { fill: none; stroke: var(--sinal); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.patch path:nth-child(2) { stroke: var(--aco); }
.patch path:nth-child(3) { stroke: var(--link); }

/* Instalação */
.viz-install .bar { height: 8px; border-radius: 8px; background: var(--grafite); overflow: hidden; }
.viz-install .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sinal), var(--link)); transform: scaleX(0); transform-origin: left; }
.viz-install ol { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 16px; font-size: 0.88rem; }
.viz-install li { display: flex; align-items: center; gap: 8px; color: var(--aco); }
.viz-install li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--trilho); transition: background-color 200ms ease; }
.is-seen .viz-install .bar i { transform: scaleX(1); transition: transform 1800ms var(--ease-in-out) 150ms; }
.is-seen .viz-install li::before { background: var(--led); }
.is-seen .viz-install li:nth-child(1)::before { transition-delay: 450ms; }
.is-seen .viz-install li:nth-child(2)::before { transition-delay: 900ms; }
.is-seen .viz-install li:nth-child(3)::before { transition-delay: 1300ms; }
.is-seen .viz-install li:nth-child(4)::before { transition-delay: 1850ms; }

/* Chaves */
.viz-toggles { display: grid; gap: 8px; }
.viz-toggles div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--r-s); background: var(--grafite); font-size: 0.92rem; }
.viz-toggles i { position: relative; width: 38px; height: 22px; border-radius: 22px; background: var(--trilho); overflow: hidden; }
.viz-toggles i::before { content: ""; position: absolute; inset: 0; background: var(--sinal); opacity: 0; }
.viz-toggles i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.is-seen .viz-toggles i::before { opacity: 1; transition: opacity 220ms ease var(--d); }
.is-seen .viz-toggles i::after { transform: translateX(16px); transition: transform 260ms var(--ease-in-out) var(--d); }
.viz-toggles div:nth-child(1) { --d: 350ms; }
.viz-toggles div:nth-child(2) { --d: 600ms; }
.viz-toggles div:nth-child(3) { --d: 800ms; }

/* Chips e consultoria */
.viz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--trilho); background: var(--grafite); font-size: 0.9rem; }
.viz-advice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.viz-advice div { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r-s); background: var(--grafite); font-size: 0.95rem; line-height: 1.4; }
.viz-advice svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--sinal); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Faixa ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--trilho); background: var(--chassi); padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee p { display: flex; align-items: center; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; white-space: nowrap; }
.marquee span { padding-inline: 0.4em; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--aco); }
.marquee i { width: 0.18em; height: 0.18em; border-radius: 3px; background: var(--sinal); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- Diagnóstico (seção clara) ---------- */
.diag { background: var(--nevoa); color: var(--grafite); }
.diag .section-head p { color: #465366; }
.diag :focus-visible { outline-color: var(--sinal-escuro); }
.diag-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.tabs { position: relative; }
.tablist { display: grid; gap: 6px; }
.tablist > * {
  display: flex; align-items: center; min-height: 64px; padding: 14px 22px;
  border: 0; border-radius: var(--r-s); text-align: left;
  font-stretch: 75%; font-weight: 720; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.2;
}
.tablist button { background: transparent; box-shadow: inset 0 0 0 1px #c3cddb; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.tablist button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .tablist button:hover { background: #d6deea; } }
.tablist-active { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 0 100% 0); transition: clip-path 260ms var(--ease-in-out); }
.tablist-active span { background: var(--sinal); color: #fff; }
.panels { display: grid; background: var(--branco); border-radius: var(--r-l); box-shadow: 0 1px 0 #fff inset, 0 30px 70px -40px rgb(21 27 36 / 0.45); }
.panel {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 4vw, 52px);
  opacity: 0; visibility: hidden; filter: blur(2px); transform: translateY(6px);
  transition: opacity 130ms var(--ease-out), filter 130ms var(--ease-out), transform 130ms var(--ease-out), visibility 0s 130ms;
}
.panel.is-active {
  opacity: 1; visibility: visible; filter: none; transform: none;
  transition: opacity 230ms var(--ease-out) 50ms, filter 230ms var(--ease-out) 50ms, transform 230ms var(--ease-out) 50ms, visibility 0s;
}
.diag-in.is-instant .panel, .diag-in.is-instant .tablist-active { transition: none; }
.panel h3 { font-stretch: 75%; font-weight: 780; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; text-wrap: balance; max-width: 22ch; }
.panel h4 { margin-top: 28px; font-size: 0.95rem; font-weight: 700; color: var(--sinal-escuro); }
.panel ul { margin-top: 8px; display: grid; gap: 6px; }
.panel li { position: relative; padding-left: 22px; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 9px; height: 9px; border-radius: 2px; background: var(--sinal); }
.panel p { margin-top: 8px; max-width: 52ch; }
.panel .btn { margin-top: auto; }
.panel p + .btn { margin-top: 32px; }

/* ---------- Processo ---------- */
.process { padding-block: clamp(80px, 11vw, 148px); }
.track { position: relative; }
.cable { position: absolute; left: 19px; top: 20px; bottom: 20px; width: 6px; border-radius: 6px; background: var(--chassi-2); }
.cable-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--sinal), var(--link)); transform: scaleY(1); transform-origin: top; }
.cable-head { display: none; }
.steps { position: relative; display: grid; gap: 40px; }
.steps li { position: relative; padding-left: 72px; }
.port { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--chassi); border: 1px solid var(--trilho); transition: border-color 240ms ease; }
.port::before { content: ""; position: absolute; inset: 15px 10px 9px; border-radius: 3px; background: #0b1017; }
.port i { position: absolute; top: 7px; left: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--trilho); transition: background-color 240ms ease, box-shadow 240ms ease; }
.is-linked .port { border-color: var(--link); }
.is-linked .port i { background: var(--led); box-shadow: 0 0 10px var(--led); }
.step-n { display: block; font-size: 3.4rem; line-height: 1; color: var(--trilho); transition: color 240ms ease; }
.is-linked .step-n { color: var(--link); }
.steps h3 { font-stretch: 75%; font-weight: 780; font-size: 1.75rem; line-height: 1.2; margin: 6px 0; }
.steps p { color: var(--aco); max-width: 34ch; }

/* ---------- Sobre ---------- */
.about { background: var(--chassi); }
.about-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; width: min(100%, 360px); margin-bottom: 40px; overflow: hidden; border-radius: 999px 999px var(--r-l) var(--r-l); border: 1px solid var(--trilho); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(0.75) contrast(1.04); }
.timeline li { position: relative; padding: 0 0 36px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 14px; border-radius: 4px; background: var(--sinal); }
.timeline li:last-child::before { background: var(--led); box-shadow: 0 0 12px var(--led); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 34px; bottom: -8px; width: 4px; border-radius: 4px; background: var(--trilho); }
.timeline strong { display: block; font-stretch: 62%; font-weight: 850; font-size: clamp(3rem, 5.6vw, 4.8rem); line-height: 0.92; text-transform: uppercase; }
.timeline span { display: block; margin-top: 6px; max-width: 28ch; color: var(--aco); }
.scrub { margin-top: 32px; font-size: clamp(1.45rem, 2.9vw, 2.5rem); line-height: 1.32; font-weight: 520; font-stretch: 87%; max-width: 30ch; }
.scrub span { opacity: 0.2; transition: opacity 120ms linear; }

/* ---------- Contato ---------- */
.contact { padding-block: clamp(64px, 9vw, 128px); }
.contact-box {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: end;
  padding: clamp(28px, 6vw, 84px); border-radius: var(--r-l); color: #fff;
  background:
    radial-gradient(70% 90% at 12% 0%, #5a8cff, transparent 65%),
    linear-gradient(150deg, var(--sinal), #1740a8 80%);
}
.contact h2 { font-size: min(23.6cqi, 10rem); line-height: 0.88; }
.contact-main p { margin-block: 24px 32px; max-width: 40ch; font-size: 1.15rem; }
.contact :focus-visible { outline-color: #fff; }
.contact-list { display: grid; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding-block: 16px; border-top: 1px solid rgb(255 255 255 / 0.28); }
.contact-list svg { grid-row: span 2; align-self: center; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-list span { font-size: 0.85rem; color: #d3e1ff; line-height: 1.3; }
.contact-list b { font-weight: 650; overflow-wrap: anywhere; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / 0.4); }

.footer { border-top: 1px solid var(--trilho); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.92rem; color: var(--aco); }
.footer-top { padding-block: 10px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Cena fixa do processo (telas largas) ---------- */
@media (min-width: 961px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .js .process { height: 270vh; padding-block: 0; }
  .js .process-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
}
@media (min-width: 961px) {
  .cable { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 6px; }
  .cable-fill { background: linear-gradient(90deg, var(--sinal), var(--link)); transform: scaleX(1); transform-origin: left; }
  .cable-head { display: block; position: absolute; left: 0; top: 50%; width: 48px; height: 32px; margin: -16px 0 0 -44px; }
  .cable-head svg { width: 100%; height: 100%; }
  .plug-body { fill: var(--nevoa); }
  .plug-boot { fill: var(--sinal); }
  .plug-pins { stroke: #b98a2e; stroke-width: 2; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding: 82px 0 0; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 960px) {
  .menu-btn {
    display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer;
    background: var(--chassi); border: 1px solid var(--trilho); border-radius: var(--r-s);
    transition: transform 160ms var(--ease-out);
  }
  .menu-btn:active { transform: scale(0.96); }
  .menu-lines, .menu-lines::before { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .menu-lines { transform: translateY(-3px); transition: transform 180ms var(--ease-out); }
  .menu-lines::before { content: ""; transform: translateY(7px); transition: transform 180ms var(--ease-out); }
  .menu-btn[aria-expanded="true"] .menu-lines { transform: translateY(0) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(2px) rotate(-90deg) translateX(2px); }
  .nav {
    position: absolute; top: calc(100% + 8px); right: var(--pad); width: min(320px, calc(100% - 2 * var(--pad)));
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background: var(--chassi); border: 1px solid var(--trilho); border-radius: var(--r-m);
    box-shadow: 0 30px 60px rgb(0 0 0 / 0.45);
    transform-origin: top right;
  }
  .js .nav {
    opacity: 0; visibility: hidden; transform: scale(0.95);
    transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out), visibility 0s 140ms;
  }
  .js .header.is-open .nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  .js .header.is-instant .nav, .js .header.is-instant .menu-lines, .js .header.is-instant .menu-lines::before { transition: none; }
  html:not(.js) .nav { display: none; }
  .nav > a:not(.btn) { padding: 12px 12px; font-size: 1.05rem; color: var(--nevoa); }
  .nav > a:not(.btn)::after { left: 12px; right: auto; width: 28px; bottom: 6px; }
  .nav-cta { margin-top: 8px; }

  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 12px; }
  .hero-title { font-size: min(25cqi, 12rem); }
  .stage-col { width: min(100%, 480px); margin-top: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--trilho); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .bento > .card { grid-column: 1 / -1; grid-row: auto; }
  .diag-in, .about-in, .contact-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .viz-advice { grid-template-columns: 1fr; }
  .viz-advice div { grid-template-columns: 28px 1fr; align-items: center; padding: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts li { padding: 20px 12px; }
  .facts strong { font-size: 1.25rem; }
  .viz-panel { min-height: 200px; }
  .btn-big { width: 100%; }
}
/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .line > span, .js .hero-sub, .js .hero-actions, .js .stage-col { animation: fade 300ms ease both; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .packets, .cable-head { display: none; }
  .is-live .ports b.on::after { animation: none; }
  .btn:active, .node:active, .tablist button:active, .menu-btn:active { transform: none; }
  .tablist-active { transition: none; }
  .panel, .panel.is-active { transform: none; filter: none; }
  .js .nav, .js .header.is-open .nav { transform: none; }
  .is-seen .viz-install .bar i, .is-seen .viz-toggles i::after { transition: none; }
  .scrub span { opacity: 1; }
}
