/* Vertex Engenharia, opção 2
   Marca: Saira (títulos), Barlow (texto), JetBrains Mono (dado técnico).
   Noite como base, laranja só para ação e destaque.
   Raio: botões e campos 8px, painéis 16px. */

@font-face { font-family: "Saira"; font-weight: 600; font-display: swap; src: url(assets/fonts/saira-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-weight: 700; font-display: swap; src: url(assets/fonts/saira-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --noite: #020B16;
  --marinho: #0B1626;
  --marinho-2: #102036;
  --cinza-azulado: #4A5262;
  --laranja: #F96A03;
  --laranja-prof: #D05201;
  --ambar: #F48D27;
  --prata-claro: #E8E7E8;
  --prata: #B2B1B1;
  --branco: #FFFFFF;

  --text: #E8E7E8;
  --muted: #A3AAB7;
  --line: rgba(232, 231, 232, .12);

  --f-title: "Saira", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r-lg: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-title); margin: 0; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; }
h3 { font-weight: 600; }
p { margin: 0; }
em { font-style: normal; color: var(--laranja); }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--laranja); color: var(--noite); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 52px; padding: 0 22px; border-radius: var(--r-sm);
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { height: 42px; padding: 0 16px; font-size: .95rem; }
.btn-primary { background: var(--laranja); color: var(--noite); }
.btn-primary:hover { background: var(--ambar); }
.btn-primary .icon { transition: transform .3s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost { color: var(--text); border-color: rgba(232, 231, 232, .35); background: rgba(2, 11, 22, .4); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--noite); color: var(--branco); }
.btn-dark:hover { background: var(--marinho-2); }

.link { display: inline-flex; align-items: center; gap: .45em; color: var(--laranja); font-weight: 600; text-decoration: none; }
.link .icon { transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(2, 11, 22, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-v { width: 40px; height: auto; }
.brand-word { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100dvh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  background: var(--noite);
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.field line { pointer-events: none; }
.field polygon { transition: fill 1.8s ease-out, stroke 1.8s ease-out; }
.field polygon.hot { fill: var(--laranja) !important; stroke: var(--laranja) !important; transition: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 11, 22, .92) 0%, rgba(2, 11, 22, .7) 42%, rgba(2, 11, 22, .05) 75%),
    linear-gradient(0deg, var(--noite) 0%, transparent 22%);
}
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 700; line-height: 1.04; max-width: 13ch; }
.hero-sub { margin-top: 24px; font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-v { position: relative; display: grid; justify-items: center; gap: 20px; }
.vmark { width: min(100%, 520px); height: auto; overflow: visible; }
.vf { translate: 0 0; transition: translate .7s var(--ease); }
.hero-v:hover .vf { translate: calc(var(--ex) * 22px) calc(var(--ey) * 22px); }
/* Depois de montado, o V vetorial dá lugar ao V metálico original; no hover volta às facetas e abre */
.vmetal { opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.vmark.is-ready .vmetal { opacity: 1; }
.hero-v:hover .vmark.is-ready .vmetal { opacity: 0; }
.vmark { transform: perspective(900px) rotateY(calc(var(--px, 0) * 8deg)) rotateX(calc(var(--py, 0) * -6deg)); transition: transform .5s var(--ease); }

.readout {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--f-mono); font-size: .9rem; color: var(--prata);
}
.readout-k { font-family: var(--f-body); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--laranja); }
.readout-v { font-variant-numeric: tabular-nums; }

/* Entrada do hero */
@media (prefers-reduced-motion: no-preference) {
  .ld { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 150ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .vf polygon { opacity: 0; animation: facet 1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 250ms); transform-box: fill-box; transform-origin: center; }
  .vf:nth-child(odd) polygon { --fx: -60px; --fr: -24deg; }
  .vf:nth-child(even) polygon { --fx: 60px; --fr: 24deg; }
  .vf-top polygon { animation-name: drop; animation-delay: 1.05s; animation-duration: 1.1s; }
  @keyframes facet { from { opacity: 0; transform: translate(var(--fx), 40px) rotate(var(--fr)) scale(.6); } to { opacity: 1; transform: none; } }
  @keyframes drop { 0% { opacity: 0; transform: translateY(-160px); } 60% { opacity: 1; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
}

/* Faixa de áreas */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--noite); }
.ticker-track { display: flex; align-items: center; gap: 36px; width: max-content; }
.ticker span { font: 600 clamp(1.4rem, 1rem + 1.4vw, 2.1rem)/1 var(--f-title); color: transparent; -webkit-text-stroke: 1px rgba(232, 231, 232, .55); white-space: nowrap; }
.ticker i { width: 14px; height: 12px; background: var(--laranja); clip-path: polygon(0 0, 100% 0, 50% 100%); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: slide 38s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* Seções */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.lead { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

/* Serviços */
.svc { margin-top: 56px; display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.svc-group {
  font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza-azulado);
  padding: 28px 0 10px; border-bottom: 1px solid var(--line);
}
.svc-group:first-child { padding-top: 0; }
.svc-item button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 12px 14px 0; background: none; border: 0; color: var(--muted); text-align: left; cursor: pointer;
  font: inherit; position: relative;
}
.svc-n { font-family: var(--f-mono); font-size: .85rem; color: var(--cinza-azulado); transition: color .3s; }
.svc-name { font: 600 clamp(1.3rem, 1rem + .9vw, 1.75rem)/1.15 var(--f-title); transition: color .3s, transform .45s var(--ease); }
.svc-item .icon { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .45s var(--ease); color: var(--laranja); }
.svc-item button:hover .svc-name { color: var(--text); }
.svc-item.is-active .svc-name { color: var(--branco); transform: translateX(8px); }
.svc-item.is-active .svc-n { color: var(--laranja); }
.svc-item.is-active .icon { opacity: 1; transform: none; }
.svc-desc { display: none; }

.svc-panel { position: sticky; top: calc(var(--header-h) + 24px); background: var(--marinho); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.svc-photo { aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%); background: var(--marinho-2); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform 1.2s var(--ease); }
.svc-photo img.swap { opacity: 0; transform: scale(1.04); }
.svc-panel-body { padding: 24px 28px 28px; display: grid; gap: 10px; }
.svc-panel-n { font-family: var(--f-mono); color: var(--laranja); font-size: .9rem; }
.svc-panel h3 { font-size: 1.6rem; }
.svc-panel p { color: var(--muted); min-height: 3.2em; }
.svc-panel .link { margin-top: 6px; }

/* Como trabalhamos */
.process { background: linear-gradient(180deg, var(--noite), var(--marinho) 60%, var(--noite)); }
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.process-head { position: sticky; top: calc(var(--header-h) + 40px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; display: grid; gap: 72px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--laranja); transform-origin: top; transform: scaleY(var(--progress, 1)); transition: transform .9s var(--ease); }
.tl-step { position: relative; }
.tl-node {
  position: absolute; left: -44px; top: 4px; width: 20px; height: 18px;
  background: var(--marinho-2); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: background-color .4s;
}
.tl-step.is-on .tl-node { background: var(--laranja); }
.tl-step h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.tl-step p { margin-top: 12px; color: var(--muted); max-width: 46ch; font-size: 1.1rem; }

/* Sobre */
.about-title { font-size: 1rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--laranja); }
.about-lead { margin-top: 20px; font: 600 clamp(1.8rem, 1.1rem + 2.6vw, 3.4rem)/1.15 var(--f-title); max-width: 24ch; letter-spacing: -.01em; text-wrap: balance; }
.about-grid { margin-top: 64px; display: grid; grid-template-columns: 4fr 6fr; gap: 64px; align-items: center; }
.about-seal { justify-self: center; width: min(100%, 380px); }
.about-seal img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.about-text { display: grid; gap: 20px; color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.about-text p:first-child { color: var(--text); }

/* Contato */
.contact {
  position: relative; isolation: isolate; padding: clamp(72px, 9vw, 120px) 0;
  background: var(--laranja); color: var(--noite);
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    linear-gradient(45deg, rgba(208, 82, 1, .55) 25%, transparent 25%) 0 0 / 120px 120px,
    linear-gradient(-45deg, rgba(255, 139, 46, .45) 25%, transparent 25%) 60px 0 / 120px 120px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact h2 { max-width: 14ch; }
.contact-copy > p { margin-top: 16px; font-size: 1.15rem; max-width: 40ch; }
.contact-lines { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { background: var(--branco); color: var(--noite); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 20px; box-shadow: 0 24px 60px rgba(120, 40, 0, .28); }
.field-row { display: grid; gap: 8px; }
.form label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: #4A5262; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--noite);
  background: #F4F5F7; border: 1px solid #8C93A1; border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 92px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--noite); box-shadow: 0 0 0 3px rgba(249, 106, 3, .45); }
.form [aria-invalid="true"] { border-color: #B42318; }
.help { font-size: .9rem; color: #4A5262; }
.err { font-size: .9rem; color: #B42318; font-weight: 500; }
.form .btn { width: 100%; }

/* Rodapé */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: .95rem; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--text); }

/* Revelação ao rolar */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-v { order: -1; }
  .vmark { width: min(62vw, 300px); }
  .readout { display: none; }
  .hero-scrim { background: linear-gradient(0deg, rgba(2, 11, 22, .95) 10%, rgba(2, 11, 22, .6) 60%, rgba(2, 11, 22, .3)); }
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc-panel { display: none; }
  .svc-item.is-active .svc-desc { display: block; padding: 0 0 18px 56px; color: var(--muted); }
  .svc-item.is-active .svc-name { transform: none; }
  .process-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-head { position: static; }
  .about-seal { width: min(70%, 300px); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header-in { justify-content: space-between; }
  .brand-word { height: 24px; }
  .brand-v { width: 32px; height: auto; }
  .hero { padding-bottom: 48px; }
  .hero-sub { font-size: 1.08rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .form { padding: 24px 20px; }
  .timeline { gap: 48px; }
}
@media (max-width: 350px) {
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vf, .vmark, .vmetal, .field polygon { transition: none !important; }
  .hero-v:hover .vf { translate: 0 0; }
}
