/* ThinkInfra — landing page. Mobile-first; breakpoints: 600, 900, 1100px. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-var.woff2?v=1") format("woff2"); font-weight: 700 800; font-stretch: 75% 85%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-sans-cond-400.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2?v=1") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0d0d0c;
  --panel: #151513;
  --rack: #1c1c19;
  --rack-edge: #232320;
  --line: #2e2d29;
  --line-strong: #3a3934;
  --text: #ece8df;
  --text-soft: #b8b3a8;
  --text-muted: #8c8880;
  --cable-grey: #6a6760;
  --paper: #ede9df;
  --paper-edge: #cfcabe;
  --paper-text: #3f3c36;
  --paper-muted: #5e5a52;
  --red: #e1251b;          /* superfícies e textos grandes */
  --red-text: #f0473d;     /* texto pequeno sobre fundo escuro (≥ 4.5:1) */
  --red-deep: #b8140c;     /* texto sobre papel */
  --led: #3ddc84;
  --amber: #f2a33a;

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 60px);
  --content: 1200px;
  --header-h: 64px;
  --section-y: clamp(56px, 8vw, 96px);
  --cable-drop: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #ff5a4e; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); color: var(--ink); font-family: var(--font-mono); }
.skip:focus { top: 8px; }

/* ---------- LEDs e animações ---------- */
.led { display: inline-block; width: 8px; height: 5px; background: #26261f; }
.led.on { background: var(--led); box-shadow: 0 0 6px var(--led); }
.led.act { background: var(--led); box-shadow: 0 0 6px var(--led); animation: blink 0.4s steps(2, jump-none) infinite; }
.led.amb { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 0.9s steps(2, jump-none) infinite; }
.led.sys { background: var(--led); animation: breathe 2.4s ease-in-out infinite; }
.led.up { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 0.25s steps(2, jump-none) infinite; }
.cursor { display: inline-block; width: 6px; height: 10px; margin-left: 4px; background: var(--led); animation: blink 1s steps(2, jump-none) infinite; }
.flow path { stroke-dasharray: 6 150; animation: flow 2s linear infinite; }
.stepled { fill: #26261f; animation: stepon 4s infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0.15; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes flow { from { stroke-dashoffset: 156; } to { stroke-dashoffset: 0; } }
@keyframes stepon { 0%, 24% { fill: var(--led); } 25%, 100% { fill: #26261f; } }
@keyframes pulse-down { from { transform: translateY(-24px); } to { transform: translateY(var(--cable-drop)); } }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(22px, 2vw, 26px); letter-spacing: 0.04em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.motion-btn { width: 48px; height: 48px; display: grid; place-content: center; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.motion-btn span { width: 12px; height: 14px; border-inline: 4px solid var(--text); }
.motion-btn[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-block: 7px solid transparent; border-left: 12px solid var(--text); }
.motion-btn:hover { border-color: var(--text-soft); }
.motion-paused *, .motion-paused *::before, .motion-paused *::after, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
.menu-btn { margin-left: auto; width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.menu-btn span { width: 20px; height: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.06em; }
.site-nav[hidden] { display: none; }
.site-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.site-nav a { display: block; padding: 16px var(--gutter); border-top: 1px solid #2a2925; }
.nav-num { color: var(--text-muted); }
.status { display: none; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-soft); }
.status::before { content: ""; width: 8px; height: 8px; background: var(--amber); }

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .menu-btn { display: none; }
  .site-header .wrap { gap: 24px; }
  .site-nav { margin-inline: auto; }
  .motion-btn { width: 40px; height: 40px; }
  .site-nav, .site-nav[hidden] { max-height: none; overflow: visible; position: static; display: flex; gap: clamp(16px, 2.2vw, 30px); background: none; border: 0; font-size: 13px; }
  .site-nav { align-items: center; }
  .site-nav a { padding: 8px 0; border: 0; white-space: nowrap; }
}
@media (min-width: 1200px) { .status { display: flex; } }

/* ---------- Tipografia de seção ---------- */
.eyebrow { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 400; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: 0.08em; color: var(--red-text); }
.section-title { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(44px, 5.4vw, 72px); line-height: 0.9; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.section-head p { max-width: 380px; font-size: clamp(15px, 1.2vw, 16px); color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 64px) var(--section-y); }
.hero-kicker { font-size: clamp(11px, 1vw, 13px); color: var(--text-muted); line-height: 1.6; }
.hero-grid { display: grid; gap: 40px; margin-top: clamp(24px, 3vw, 36px); }
.hero-copy { display: flex; flex-direction: column; gap: clamp(24px, 2.5vw, 32px); }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(56px, 8.2vw, 118px); line-height: 0.9; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-soft); }
.hero-actions { display: flex; flex-direction: column; gap: 14px; }
/* gap de 0.6em (≈ o espaço da Plex Mono): num flex o espaço em branco entre o
   texto e o <span> da seta é descartado, então a seta ficaria colada */
.btn { display: inline-flex; gap: 0.6em; justify-content: center; align-items: center; min-height: 48px; padding: 14px 22px; font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.04em; text-align: center; transition: transform var(--dur, 150ms) ease, background-color 150ms; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px dashed var(--cable-grey); }
.btn-ghost:hover { border-style: solid; border-color: var(--text-soft); color: var(--text); }
.hero .status { display: flex; }
/* o selo do hero só sai quando o do cabeçalho entra (mesma especificidade,
   por isso precisa vir depois desta regra) */
@media (min-width: 1200px) { .hero .status { display: none; } }

.spec { align-self: start; border: 1px solid var(--line-strong); background: #121210; font-family: var(--font-mono); font-size: 13px; }
.spec-title { padding: 12px 16px; background: var(--red); color: #fff; font-weight: 500; letter-spacing: 0.1em; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid #2a2925; }
.spec dt { color: var(--text-muted); }
.spec dd { text-align: right; }

@media (min-width: 600px) { .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; }
}
/* o selo do hero sai só quando o do cabeçalho entra (1200px), senão fica uma
   faixa de 1000–1199px sem "ABERTO A NOVOS PROJETOS" em lugar nenhum */

/* ---------- §01 Serviços: switch + painel de portas ---------- */
/* sem respiro embaixo: a faixa preta do painel já fecha a seção, e o vão
   extra virava uma faixa vazia entre duas linhas, só com os cabos passando */
.services { padding-bottom: 0; }
.services .section-head { padding-top: 28px; border-top: 1px solid var(--line); }
.patch { margin-top: clamp(36px, 5vw, 64px); }

.switch { position: relative; padding: 8px 18px 10px; background: var(--rack); border: 1px solid var(--line-strong); }
.switch::before, .switch::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; background: var(--rack-edge); border: 1px solid var(--line-strong); }
.switch::before { left: -1px; }
.switch::after { right: -1px; }
.switch-meta { display: none; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.switch-leds { display: flex; gap: 18px; }
.switch-leds span { display: flex; align-items: center; gap: 6px; }
.port-groups { display: flex; justify-content: space-between; overflow: hidden; }
.port-group:nth-child(n+4) { display: none; }  /* < 600px: 3 grupos */
.port-group { display: flex; gap: 10px; }
.port-group + .port-group { margin-left: 10px; }
.port { position: relative; width: 30px; }
.port-n { display: block; height: 12px; text-align: center; font-family: var(--font-mono); font-size: 9px; line-height: 12px; color: var(--text-muted); }
.port-leds { display: flex; justify-content: space-between; margin: 3px 0; }
.jack { position: relative; display: block; height: 26px; background: #050505; border: 1px solid #4a4944; border-top-width: 2px; }
.jack::before { content: ""; position: absolute; left: 50%; top: -2px; width: 10px; height: 4px; margin-left: -5px; background: #050505; }
.plug { position: absolute; left: 3px; top: 2px; width: calc(100% - 6px); height: calc(100% - 1px); background: #c9ccc7; border: 1px solid #e8eae6; border-bottom: 0; }
.plug::before { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 5px; background: repeating-linear-gradient(90deg, #c99a2e 0 1.5px, transparent 1.5px 2.6px); }
.plug::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 8px; background: #9ea29c; }
.boot { display: block; width: calc(100% - 8px); height: 16px; margin-left: 4px; background: repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 2px, transparent 2px 5px), var(--boot, var(--cable-grey)); border-radius: 0 0 6px 6px; clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); }
.is-red { --boot: var(--red); --cable: var(--red); }
.port-group .port:nth-child(n+3) { display: none; }  /* mobile: 2 portas por grupo */

/* feixe de cabos (mobile) */
.bundle { height: 56px; margin-inline: 24px; background: repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 28px, var(--cable-grey) 28px 33px, transparent 33px 56px); background-size: 117px 100%; background-repeat: no-repeat; background-position: center; }

.panel { position: relative; background: var(--paper); color: var(--ink); border: 1px solid var(--paper-edge); border-radius: 8px; padding: 0 22px; box-shadow: inset 0 -4px 0 #d9d4c7, 0 14px 30px rgba(0,0,0,.45); }
.panel::before, .panel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14px; background: radial-gradient(circle at 50% 22px, #2a2925 0 3px, #bdb7aa 3px 5px, transparent 5px), radial-gradient(circle at 50% calc(100% - 22px), #2a2925 0 3px, #bdb7aa 3px 5px, transparent 5px), #e2ddd1; border-right: 1px solid var(--paper-edge); border-radius: 8px 0 0 8px; }
.panel::before { left: 0; }
.panel::after { right: 0; border-right: 0; border-left: 1px solid var(--paper-edge); border-radius: 0 8px 8px 0; }
.panel-leds { position: absolute; right: 3px; top: 44px; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.port-cards { display: grid; }
.port-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 8px 22px; border-top: 1px solid var(--paper-edge); }
.port-card:first-child { border-top: 0; }
.port-card .jack-up, .cable { display: none; }
.port-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--paper-muted); }
.port-card h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: clamp(26px, 2.2vw, 30px); line-height: 1; }
.port-card p { font-size: clamp(15px, 1.2vw, 16px); color: var(--paper-text); }
.port-card .port-tags { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.port-tags span:first-child { display: flex; align-items: center; gap: 8px; }
.port-tags span:first-child::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; background: var(--red); }
.vent { flex-shrink: 0; width: 64px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, #bdb7aa 0 2px, transparent 2px 6px), #ddd8cb; border: 1px solid var(--paper-edge); }
.panel-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 18px; border-top: 1px solid var(--paper-edge); }
.panel-foot::before, .panel-foot::after { content: ""; height: 5px; background: repeating-linear-gradient(90deg, #bdb7aa 0 24px, transparent 24px 31px); }
.panel-foot::after { background-position: 14px 0; order: 1; }
.panel-tag { order: 2; align-self: flex-end; padding: 4px 8px; border: 1px solid #bdb7aa; border-radius: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--paper-muted); }

@media (min-width: 600px) {
  .switch-meta { display: flex; }
  .port-group:nth-child(n) { display: flex; }
}

/* desktop: 5 colunas, cada serviço ligado por cabo à primeira porta do grupo */
@media (min-width: 1000px) {
  .patch { margin-inline: calc(-1 * min(60px, var(--gutter))); }
  .switch { padding: 8px 40px 12px; }
  .switch::before, .switch::after { width: 40px; }
  .port-groups, .port-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .port-group { padding-left: 24px; gap: 10px; }
  .port-group + .port-group { margin-left: 0; }
  .port-group .port:nth-child(-n+4) { display: block; }
  .port { width: 32px; }
  .jack { height: 28px; }
  .bundle { display: none; }
  /* faixa preta de largura total: os cabos da bancada passam por trás dela */
  .panel-band { position: relative; z-index: 1; margin-top: calc(var(--cable-drop) - 16px); padding-block: 16px; }
  .panel-band::before { content: ""; position: absolute; inset: 0; z-index: -1; border-image: linear-gradient(var(--line) 0 1px, var(--ink) 1px calc(100% - 1px), var(--line) calc(100% - 1px)) fill 0 / 0 / 0 100vmax; }
  .panel { padding: 0 40px; border-radius: 10px; }
  .panel-leds { right: 16px; top: 50%; transform: translateY(-50%); gap: 12px; }
  .panel::before, .panel::after { width: 40px; background: radial-gradient(circle at 50% 30px, #2a2925 0 4px, #bdb7aa 4px 7px, transparent 7px), radial-gradient(circle at 50% calc(100% - 30px), #2a2925 0 4px, #bdb7aa 4px 7px, transparent 7px), #e2ddd1; }
  .port-card { padding: 0 22px 18px 23px; border-top: 0; border-left: 1px solid var(--paper-edge); }
  .port-card .jack-up { display: block; position: relative; width: 32px; height: 28px; margin: 18px 0 10px 0; background: #050505; border: 1px solid #4a4944; border-bottom-width: 2px; }
  .boot-up { position: absolute; left: 3px; top: -19px; width: 24px; height: 18px; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px 5px), var(--boot, var(--cable-grey)); border-radius: 6px 6px 0 0; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
  .jack-up .plug { top: auto; bottom: 1px; height: 25px; border-bottom: 1px solid #e8eae6; border-top: 0; }
  .cable { display: block; position: absolute; left: 35px; top: calc(-1 * var(--cable-drop) - 1px); width: 7px; height: var(--cable-drop); background: var(--cable, var(--cable-grey)); }
  .cable::after { content: ""; position: absolute; left: 2px; top: 0; width: 3px; height: 6px; background: #fff; animation: pulse-down var(--dur, 2s) linear infinite; }
  .cable b { position: absolute; left: 10px; top: 36px; padding: 1px 4px; background: var(--paper); color: var(--ink); font: 500 11px/1.3 var(--font-mono); }
  .port-tags { flex-direction: column; align-items: flex-start; }
  .vent { width: 96px; height: 12px; }
  .panel-foot { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .panel-foot::before, .panel-foot::after { flex: 1 1 60%; }
}

@media (min-width: 1280px) {
  .port-group { gap: 14px; }
  .port-group .port:nth-child(n) { display: block; }
}

/* cabos switch → bancada (desenhados por main.js a partir de 1000px) */
main { position: relative; }
.bench-run { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; fill: none; stroke-linecap: round; overflow: visible; }
.bench-run .flow path { stroke: var(--text); stroke-opacity: 0.7; stroke-width: 2.5; }
.switch { z-index: 2; }
.vendors .section-head { position: relative; z-index: 1; background: var(--ink); box-shadow: 0 0 0 16px var(--ink); }
.vendor-screen { position: relative; z-index: 1; }

/* ---------- §02 Fabricantes ---------- */
.vendors { padding-block: var(--section-y) calc(var(--section-y) - 20px); border-top: 1px solid var(--line); }
.bench { margin-top: 36px; }
.terminal { max-width: 420px; margin-inline: auto; padding: 10px 10px 18px; background: #1a1a18; border: 1px solid var(--line-strong); border-radius: 8px; }
.terminal-screen { padding: 14px 16px 12px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), #080908; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.prompt b { font-weight: 400; color: var(--led); }
.vendor-list { counter-reset: v; }
.vendor { counter-increment: v; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 0 12px; padding: 11px 0; border-top: 1px dashed #2a2925; }
.vendor::before { content: counter(v, decimal-leading-zero) / ""; grid-row: 1 / span 2; font-size: 10px; color: var(--text-muted); }
.vendor-prompt { display: none; }
.vendor-name { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 24px; line-height: 1; color: var(--text); }
.vendor-line { grid-column: 2; font-size: 9px; letter-spacing: 0.06em; color: var(--text-soft); }
.vendor-up { grid-row: 1 / span 2; grid-column: 3; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--led); }
.vendor-up .cursor { display: none; }
.terminal-end { padding-top: 10px; border-top: 1px dashed #2a2925; }
.stand { display: flex; flex-direction: column; align-items: center; }
.stand::before { content: ""; width: 20px; height: 30px; background: var(--rack-edge); border-inline: 1px solid var(--line-strong); }
.stand::after { content: ""; width: 130px; height: 8px; background: var(--rack-edge); border: 1px solid var(--line-strong); border-radius: 3px 3px 0 0; }
.shelf { height: 10px; margin-inline: calc(-1 * var(--gutter)); background: var(--rack); border-top: 1px solid var(--line-strong); border-bottom: 1px solid #2a2925; }

@media (min-width: 900px) {
  .terminal, .terminal-screen { max-width: none; padding: 0; background: none; border: 0; }
  .bench-stand, .terminal-screen > .prompt { display: none; }
  .vendor-list { display: flex; justify-content: space-between; gap: 16px; }
  .vendor { flex: 0 1 216px; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; }
  .vendor::before { display: none; }
  .vendor-screen { width: 100%; aspect-ratio: 3 / 2; padding: 8px 8px 14px; background: #1a1a18; border: 1px solid var(--line-strong); border-radius: 6px; }
  .vendor-screen > div { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 12px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), #080908; overflow: hidden; }
  .vendor-prompt { display: block; font-size: 10px; color: var(--text-muted); }
  .vendor-name { font-size: clamp(22px, 2.2vw, 30px); }
  .vendor-line { font-size: 10px; }
  .vendor-up::after { content: " link up"; }
  .vendor-up .cursor { display: inline-block; }
  .vendor .stand { display: flex; }
  .vendor .stand::before { width: 16px; height: 26px; }
  .vendor .stand::after { width: 96px; height: 7px; }
  .shelf { margin-inline: -40px; }
}
@media (max-width: 899px) {
  .vendor-screen, .vendor-screen > div { display: contents; }
  .vendor .stand { display: none; }
  .vendor-up::after { content: " UP"; }
}

/* ---------- §03 Processo ---------- */
.process { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.route { display: none; width: 100%; height: auto; margin-top: 48px; overflow: visible; }
.steps { position: relative; margin-top: 36px; padding-left: 156px; }
.steps::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 20px; width: 34px; background: repeating-linear-gradient(180deg, transparent 0 14px, #2a2925 14px 26px) right 1px top 0 / 2.5px 100% no-repeat, #141412; border: 1px solid var(--line-strong); }
.step { position: relative; min-height: 88px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 62px; }
.step::before { content: ""; position: absolute; left: -134px; top: 38px; width: 60px; height: 5px; border-radius: 3px; background: var(--cable, var(--cable-grey)); }
.step::after { content: ""; position: absolute; left: -84px; top: 0; width: 68px; height: 88px; border-radius: 7px; background: radial-gradient(circle at 50% 12px, #b8b3a8 0 2.5px, transparent 3px), radial-gradient(circle at 50% 76px, #b8b3a8 0 2.5px, transparent 3px), linear-gradient(#0d0d0c, #0d0d0c) center 30px / 28px 24px no-repeat, var(--paper); border: 1px solid var(--paper-edge); }
.step-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-muted); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; }
.step p { font-size: clamp(14px, 1.2vw, 16px); color: var(--text-soft); }

@media (min-width: 900px) {
  .route { display: block; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; padding-left: 0; }
  .steps::before, .step::before, .step::after, .step-n { display: none; }
  .step { align-items: center; margin: 0; padding: 0 28px; min-height: 0; text-align: center; }
}

/* ---------- §04 Regras ---------- */
.rules { padding-block: var(--section-y) calc(var(--section-y) - 24px); background: var(--paper); color: var(--ink); }
.rules-head { display: flex; flex-wrap: wrap-reverse; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.rules-head .mono { font-size: clamp(12px, 1vw, 14px); color: var(--paper-muted); }
.rules h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(48px, 4.5vw, 64px); line-height: 0.95; }
.rules-list { display: grid; margin-top: clamp(32px, 4vw, 56px); }
.rule { display: flex; flex-direction: column; gap: 14px; padding: 22px 0 32px; border-top: 3px solid var(--ink); }
.rule-n { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(44px, 3.9vw, 56px); line-height: 1; color: var(--red-deep); }
.rule h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(28px, 2.3vw, 32px); line-height: 1.02; }
.rule p { font-size: clamp(15px, 1.2vw, 16px); color: var(--paper-text); }
@media (min-width: 900px) {
  .rules-list { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
  .rule { padding: 28px 40px 0 0; border-top: 0; }
}

/* ---------- §05 Contato ---------- */
.contact { min-height: calc(100svh - var(--header-h) - 16px); display: flex; align-items: center; padding-block: var(--section-y); }
.contact .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.contact h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(60px, 6.2vw, 88px); line-height: 0.88; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.btn-wa { background: var(--paper); color: var(--ink); font-size: clamp(17px, 2vw, 28px); padding: clamp(16px, 1.4vw, 18px) clamp(18px, 2vw, 28px); }
.btn-wa:hover { background: #fff; color: var(--ink); }
.btn-mail { background: var(--red); color: #fff; font-size: clamp(15px, 1.6vw, 22px); }
.btn-mail:hover { background: var(--red-deep); color: #fff; }
.contact-note { margin-top: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
@media (min-width: 900px) { .contact-actions { align-items: flex-end; padding-top: 40px; } }

/* ---------- Rodapé ---------- */
.site-footer { padding-bottom: 48px; }
.plate { display: grid; border: 1px solid #4a4944; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-soft); }
.plate > * { padding: 14px 16px; }
.plate > * + * { border-top: 1px solid #4a4944; }
.plate-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 20px; letter-spacing: 0.04em; color: var(--text); }
.plate-info { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.barcode { height: 28px; width: 110px; background: repeating-linear-gradient(90deg, var(--text) 0 3px, transparent 3px 5px, var(--text) 5px 6px, transparent 6px 9px, var(--text) 9px 13px, transparent 13px 15px, var(--text) 15px 16px, transparent 16px 19px); }
@media (min-width: 900px) {
  .plate { grid-template-columns: auto 1fr auto; font-size: 12px; }
  .plate > * { padding: 16px 24px; }
  .plate > * + * { border-top: 0; border-left: 1px solid #4a4944; }
  .plate-brand { font-size: 24px; }
  .plate-brand .barcode { display: none; }
  .plate-serial { display: flex; align-items: center; gap: 24px; }
  .plate-serial .barcode { display: block; height: 60px; width: 150px; }
}
@media (max-width: 899px) { .plate-serial .barcode { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: 64px; }
.notfound h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(56px, 8vw, 110px); line-height: 0.9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stepled { fill: var(--led); }
  .led, .cursor, .stepled, .flow path, .cable::after { animation: none !important; }
  .cable::after { display: none; }
}
