/* CARMAC Engenharia e Locações — tokens em design-system/MASTER.md */
:root {
  /* Paleta tirada da imagem da home (amarelo das faixas, preto azulado, céu) */
  --c-yellow: #F6DD10;
  --c-yellow-hover: #FFE93A;
  --c-ink: #0F1117;
  --c-night: #0A0C10;
  --c-navy: #16202F;
  --c-sky: #98B2DD;
  --c-light: #F2F4F7;
  --c-white: #FFFFFF;
  --c-muted: #555C68;
  --c-line: rgba(15, 17, 23, .18);
  --c-line-strong: #0F1117;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --cut-xl: 72px;
  --cut: 20px;
  --cut-sm: 10px;

  --container: 1200px;
  --gutter: 20px;
  --nav-top: 12px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 36px; } }
@media (max-width: 767px) { :root { --cut-xl: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--nav-top) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--c-ink);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(234, 220, 42, .25); }
h1, h2 { font-weight: 300; font-stretch: 106%; line-height: 1; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6.2vw, 84px); overflow-wrap: break-word; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: 24px; font-weight: 400; line-height: 1.2; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--c-yellow); color: var(--c-ink);
  padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--c-yellow); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section--white { background: var(--c-white); }

.chamfer { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.chamfer-xl { clip-path: polygon(var(--cut-xl) 0, 100% 0, 100% calc(100% - var(--cut-xl)), calc(100% - var(--cut-xl)) 100%, 0 100%, 0 var(--cut-xl)); }

/* Rótulo de seção com o quadrado amarelo */
.label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 24px; font-size: 12px; font-weight: 500; line-height: 1.3;
  letter-spacing: .12em; text-transform: uppercase;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--c-yellow); box-shadow: 0 0 0 1px var(--c-ink); flex: none; }
.on-dark .label::before { box-shadow: none; }

.section-head { display: grid; gap: 24px; margin-bottom: 60px; }
.section-head p { max-width: 52ch; color: var(--c-muted); font-size: 19px; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 60px; }
}

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Botões — o chanfro fica no ::before para o outline de foco não ser cortado */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 16px 24px;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; color: var(--c-ink);
  border: 0; background: none; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg, var(--c-yellow));
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
  transition: background-color .15s;
}
.btn:hover::before { background: var(--btn-bg-hover, var(--c-yellow-hover)); }
.btn--carbon { color: var(--c-white); --btn-bg: var(--c-ink); --btn-bg-hover: #2A3140; }
.btn--light { --btn-bg: var(--c-white); --btn-bg-hover: #E4E8EE; }
.btn--glass { color: var(--c-white); --btn-bg: rgba(242, 244, 247, .16); --btn-bg-hover: rgba(242, 244, 247, .28); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Nav flutuante */
.site-nav { position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  background: var(--c-ink); color: var(--c-white);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); padding: 0 12px 0 24px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 132px; height: auto; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; text-decoration: none; color: var(--c-light);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-cta .long { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; background: transparent; color: var(--c-white); cursor: pointer;
}
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; padding: 0 24px 16px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; text-decoration: none; border-top: 1px solid rgba(242, 244, 247, .16); }
@media (min-width: 560px) { .nav-cta .long { display: inline; } .nav-cta .short { display: none; } .brand img { width: 150px; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* Hero full-bleed com vídeo real */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  background: var(--c-night); color: var(--c-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-xl)), calc(100% - var(--cut-xl)) 100%, 0 100%);
}
.hero-video, .hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video video { object-fit: cover; object-position: 50% 55%; }
.hero::after {
  /* scrim: garante 4.5:1 do texto branco sobre o céu e a terra clara */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(10, 12, 16, .6) 0%, rgba(10, 12, 16, .25) 45%, rgba(10, 12, 16, 0) 70%),
    linear-gradient(to top, rgba(10, 12, 16, .88) 0%, rgba(10, 12, 16, .55) 38%, rgba(10, 12, 16, .1) 70%, rgba(10, 12, 16, .35) 100%);
}
.hero-inner { width: 100%; padding-top: calc(var(--nav-h) + var(--nav-top) + 48px); padding-bottom: calc(var(--cut-xl) + 24px); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 44ch; margin: 24px 0 36px; font-size: 19px; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.video-toggle {
  position: absolute; right: calc(var(--cut-xl) + 16px); bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; background: rgba(10, 12, 16, .68); color: var(--c-white); cursor: pointer;
  font: inherit; font-size: 14px;
}
.video-toggle:hover { background: rgba(10, 12, 16, .88); }
.video-toggle .icon { width: 16px; height: 16px; }
.video-toggle .i-play, .video-toggle .t-play { display: none; }
.video-toggle[data-paused="true"] .i-play, .video-toggle[data-paused="true"] .t-play { display: inline; }
.video-toggle[data-paused="true"] .i-pause, .video-toggle[data-paused="true"] .t-pause { display: none; }
@media (max-width: 767px) {
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .video-toggle { top: calc(var(--nav-h) + var(--nav-top) + 12px); bottom: auto; right: var(--gutter); width: 44px; padding: 0; justify-content: center; }
  .video-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}



/* Hero com a imagem da home (desktop: imagem cobre tudo; mobile: imagem em cima, texto embaixo) */
.hero--image { background: var(--c-ink); }
.hero--image .hero-media { display: block; position: absolute; inset: 0; z-index: -2; }
.hero--image .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero--image::after {
  background:
    linear-gradient(to right, rgba(15, 17, 23, .9) 0%, rgba(15, 17, 23, .6) 34%, rgba(15, 17, 23, 0) 56%),
    linear-gradient(to top, rgba(15, 17, 23, .55) 0%, rgba(15, 17, 23, 0) 30%);
}
.hero--image h1 { max-width: none; }
@media (min-width: 768px) {
  .hero--image .hero-copy { max-width: min(44vw, 640px); }
  .hero--image h1 { font-size: clamp(36px, 4vw, 72px); }
  .hero--image .lead { font-size: 18px; }
}
@media (max-width: 767px) {
  .hero--image { display: block; min-height: 0; padding-top: calc(var(--nav-h) + var(--nav-top) + 8px); }
  .hero--image .hero-media { position: relative; z-index: 0; aspect-ratio: 1031 / 941; }
  .hero--image .hero-media img { position: absolute; inset: 0; object-position: 50% 50%; }
  .hero--image .hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, var(--c-ink), rgba(15, 17, 23, 0)); }
  .hero--image::after { display: none; }
  .hero--image .hero-inner { padding-top: 0; margin-top: -24px; position: relative; }
}

/* Nomes dos produtos logo abaixo do título do hero */
.hero-products { display: grid; gap: 12px; margin: 32px 0 36px; }
.hero-products a {
  display: block; height: 100%; padding: 16px 20px 18px;
  text-decoration: none; color: var(--c-white);
  background: rgba(15, 17, 23, .55); border-left: 4px solid var(--c-yellow);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .15s;
}
.hero-products a:hover { background: rgba(15, 17, 23, .8); }
.hero-products strong { display: block; font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; font-stretch: 106%; line-height: 1.1; }
.hero-products span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.hero-products a:hover strong { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (min-width: 560px) { .hero-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Seção amarela (mais vida, como as faixas da imagem) */
.section--yellow { background: var(--c-yellow); color: var(--c-ink); }
.section--yellow .label::before { background: var(--c-ink); box-shadow: none; }
.section--yellow .section-head p, .section--yellow .step p { color: var(--c-ink); }

/* Em campo: vídeo real da retroescavadeira */
.field { background: var(--c-navy); color: var(--c-white); position: relative; overflow: hidden; }
.field-grid { display: grid; gap: 48px; align-items: center; }
.field-grid p:not(.label) { color: rgba(255, 255, 255, .82); font-size: 19px; max-width: 40ch; margin: 24px 0 36px; }
.field-video { position: relative; aspect-ratio: 1080 / 760; background: var(--c-night); overflow: hidden; }
.field-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.field .video-toggle { top: 12px; right: 12px; bottom: auto; }
@media (min-width: 900px) { .field-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } }
@media (max-width: 767px) { .field-video { aspect-ratio: 4 / 5; } .field .video-toggle { top: 12px; right: 12px; } }

/* Faixas diagonais amarelas (eco das faixas da imagem da home) */
.slash { position: absolute; z-index: 0; background: var(--c-yellow); pointer-events: none;
  clip-path: polygon(var(--slash, 64px) 0, 100% 0, calc(100% - var(--slash, 64px)) 100%, 0 100%); }
.cta { position: relative; overflow: hidden; background: var(--c-navy); }
.cta .container { position: relative; z-index: 1; }
.cta .slash--a { top: 0; right: -64px; width: min(46vw, 560px); height: 56px; }
.cta .slash--b { bottom: 0; right: 18%; width: min(30vw, 320px); height: 32px; --slash: 32px; }

/* Entrada do hero: o único momento orquestrado */
/* (a classe .motion só existe com JS, IntersectionObserver e sem reduced-motion) */
.motion .hero-copy > * { animation: rise .8s var(--ease) both; }
.motion .hero-copy > :nth-child(2) { animation-delay: .1s; }
.motion .hero-copy > :nth-child(3) { animation-delay: .22s; }
.motion .hero-copy > :nth-child(4) { animation-delay: .34s; }
.motion .hero-products li { animation: rise .7s var(--ease) both; }
.motion .hero-products li:nth-child(1) { animation-delay: .3s; }
.motion .hero-products li:nth-child(2) { animation-delay: .42s; }
.motion .hero--image .hero-media img { animation: settle 2.2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Declaração (intro) */
.statement { font-size: clamp(26px, 3.2vw, 42px); font-weight: 300; font-stretch: 104%; line-height: 1.18; max-width: 28ch; margin: 0 0 36px; }
.spec-row { display: grid; gap: 0; margin: 60px 0 0; border-top: 1px solid var(--c-line-strong); }
.spec-row > div { padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.spec-row dt { font-size: 14px; color: var(--c-muted); margin-bottom: 4px; }
.spec-row dd { margin: 0; font-size: 19px; }
@media (min-width: 768px) {
  .spec-row { grid-template-columns: repeat(3, 1fr); }
  .spec-row > div { padding: 24px 24px 0 0; border-bottom: 0; }
  .spec-row > div + div { padding-left: 24px; border-left: 1px solid var(--c-line); }
}

/* Par de equipamentos */
.equip-pair { display: grid; gap: 60px; }
@media (min-width: 900px) { .equip-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; } }
.equip-card .media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-white); margin-bottom: 36px; }
.equip-card .media img { width: 100%; height: 100%; object-fit: cover; }
.equip-card h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; font-stretch: 106%; line-height: 1; margin-bottom: 16px; }
.equip-card > p { color: var(--c-muted); max-width: 46ch; }
.ticks { margin: 24px 0 36px; border-top: 1px solid var(--c-line-strong); }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.ticks li::before { content: ""; width: 6px; height: 6px; background: var(--c-ink); flex: none; transform: translateY(-3px); }

/* Passos (sequência real do pedido): blocos numerados ligados por uma linha */
.steps { display: grid; gap: 0; counter-reset: none; }
.step { position: relative; padding: 0 0 48px 100px; min-height: 120px; }
.step:last-child { padding-bottom: 0; min-height: 0; }
.step-node {
  position: absolute; left: 0; top: 0; width: 72px; height: 72px;
  display: grid; place-items: center;
  background: var(--c-ink); color: var(--c-yellow);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.step-num { font-size: 34px; font-weight: 400; font-stretch: 106%; line-height: 1; }
.step h3 { padding-top: 6px; margin-bottom: 8px; }
.step p { color: var(--c-muted); margin: 0; max-width: 36ch; }
.step:not(:last-child)::after {
  /* conector até o próximo passo */
  content: ""; position: absolute; left: 35px; top: 72px; bottom: 0; width: 2px;
  background: var(--c-ink); transform-origin: 50% 0;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
  .step { padding: 104px 0 0; min-height: 0; }
  .step:not(:last-child)::after { left: 72px; top: 35px; bottom: auto; width: calc(100% - 72px + 36px); height: 2px; transform-origin: 0 50%; }
}

/* Split imagem + conteúdo (engenharia, aplicações) */
.split { display: grid; gap: 48px; align-items: start; }
.split-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-white); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
  .split-media { position: sticky; top: calc(var(--nav-h) + var(--nav-top) + 24px); }
}

/* Lista spec-sheet (aplicações) */
.rows { border-top: 1px solid var(--c-line-strong); margin-top: 36px; }
.rows li { padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.rows h3 { font-size: 22px; margin-bottom: 6px; }
.rows p { color: var(--c-muted); margin: 0; }

/* Acordeão (details/summary) */
.accordion { border-top: 1px solid var(--c-line-strong); }
.accordion details { border-bottom: 1px solid var(--c-line-strong); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 76px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 21px; line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.acc-btn { flex: none; width: 40px; height: 40px; }
.acc-btn .box { fill: var(--c-white); stroke: var(--c-ink); }
.acc-btn .pm { stroke: var(--c-ink); }
.acc-btn .v { transition: opacity .2s; }
.accordion details[open] .acc-btn .v { opacity: 0; }
.accordion summary:hover .acc-btn .box { fill: var(--c-yellow); }
.accordion details p { color: var(--c-muted); margin: 0 0 24px; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .acc-btn .v { transition: none; } }

/* Galeria de fotos reais (pares grandes) */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-white); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .gallery { gap: 36px; } }

/* Detalhes da locação */
.facts { border-top: 1px solid var(--c-line-strong); margin: 0; }
.facts > div { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.facts dt { font-size: 21px; }
.facts dd { margin: 0; color: var(--c-muted); max-width: 62ch; }
@media (min-width: 768px) { .facts > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; } }

/* CTA escuro */
.cta { color: var(--c-white); }
.cta-inner { display: grid; gap: 48px; }
.cta h2 { max-width: 14ch; }
.cta p:not(.label) { color: rgba(255, 255, 255, .82); font-size: 19px; max-width: 46ch; margin: 24px 0 36px; }
.contact-list { display: grid; gap: 16px; border-top: 1px solid rgba(242, 244, 247, .2); padding-top: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .88); }
.contact-list .icon { margin-top: 3px; color: var(--c-yellow); }
.contact-list a { word-break: break-word; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 96px; } }

/* Outro equipamento */
.other-equip { display: grid; gap: 24px; align-items: center; padding: 36px; background: var(--c-white); }
.other-equip h2 { font-size: clamp(26px, 3vw, 38px); }
.other-equip p { color: var(--c-muted); margin: 12px 0 0; }
@media (min-width: 768px) { .other-equip { grid-template-columns: 1fr auto; padding: 48px; } }

/* Rodapé */
.site-footer { background: var(--c-night); color: var(--c-light); padding: 96px 0 30px; font-size: 15px; }
.footer-grid { display: grid; gap: 48px; }
.footer-grid img { width: 200px; }
.footer-grid h2 { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; color: #AEB5C2; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-underline-offset: 6px; }
.footer-grid p { margin: 0 0 8px; color: #C3C9D4; }
.footer-legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(242, 244, 247, .14); color: #AEB5C2; font-size: 13px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }


.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }



/* ---------------------------------------------------------------------------
   Animações de rolagem. A lista de seletores é a mesma de REVEAL_* em main.js.
   Tudo começa visível; o estado escondido só vale sob .motion e some com .is-in.
   --------------------------------------------------------------------------- */
.motion :is(.section-head > *, .statement, .section > .container > .label, .section > .container > .btn--light,
  .spec-row > div, .equip-card > :not(.media, .card-link, .card-frame), .field-grid > div:first-child > *, .split > div:not(.split-media) > *,
  .rows li, .facts > div, .mvv-item, .cta-inner > div > *, .contact-list li, .other-equip, .footer-grid > div) {
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.motion :is(.section-head > *, .statement, .section > .container > .label, .section > .container > .btn--light,
  .spec-row > div, .equip-card > :not(.media, .card-link, .card-frame), .field-grid > div:first-child > *, .split > div:not(.split-media) > *,
  .rows li, .facts > div, .mvv-item, .cta-inner > div > *, .contact-list li, .other-equip, .footer-grid > div):not(.is-in) {
  opacity: 0; transform: translateY(28px);
}

/* Fotos e vídeo: varredura da esquerda até o chanfro + leve zoom de saída */
.motion :is(.equip-card .media, .split-media, .field-video, .gallery figure) {
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) var(--d, 0s);
}
.motion :is(.equip-card .media, .split-media, .field-video, .gallery figure):not(.is-in) {
  clip-path: polygon(0 0, 0 0, 0 calc(100% - var(--cut-xl)), 0 100%, 0 100%, 0 var(--cut-xl));
}
.motion :is(.equip-card .media, .split-media, .field-video, .gallery figure) > :is(img, svg, video) {
  transition: transform 1.5s var(--ease) var(--d, 0s);
}
.motion :is(.equip-card .media, .split-media, .field-video, .gallery figure):not(.is-in) > :is(img, svg, video) {
  transform: scale(1.12);
}

/* Faixas amarelas do contato entram pela direita */
.motion .cta .slash { transition: transform 1s var(--ease) var(--d, 0s), opacity 1s var(--ease) var(--d, 0s); }
.motion .cta .slash:not(.is-in) { transform: translateX(40%); opacity: 0; }

/* Passos em sequência: 1 aparece, a linha corre até o 2, o 2 aparece, e assim por diante */
.motion .step-node { transition: opacity .4s var(--ease) calc(var(--i) * .9s), transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * .9s); }
.motion .step :is(h3, p) { transition: opacity .6s var(--ease) calc(var(--i) * .9s + .2s), transform .6s var(--ease) calc(var(--i) * .9s + .2s); }
.motion .step::after { transition: transform .6s cubic-bezier(.6, 0, .3, 1) calc(var(--i) * .9s + .35s); }
.motion .steps:not(.is-in) .step-node { opacity: 0; transform: scale(.4); }
.motion .steps:not(.is-in) .step :is(h3, p) { opacity: 0; transform: translateY(16px); }
.motion .steps:not(.is-in) .step::after { transform: scaleY(0); }
@media (min-width: 768px) { .motion .steps:not(.is-in) .step::after { transform: scaleX(0); } }


/* Cartões de equipamento clicáveis: link único cobre o cartão; borda amarela se desenha no hover/foco */
.equip-card { position: relative; padding: 16px 16px 24px; transition: transform .35s var(--ease); }
@media (min-width: 900px) { .equip-card { padding: 20px 20px 28px; } }
.card-link { position: absolute; inset: 0; z-index: 2; }
.card-link:focus-visible { outline: none; }
.card-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.card-frame rect { fill: none; stroke: var(--c-yellow); stroke-width: 4; opacity: 0; transition: opacity .2s; }
.equip-card:is(:hover, :focus-within) .card-frame rect { opacity: 1; }
/* com JS: main.js mede o perímetro real (--len) e a borda se desenha */
.card-frame.is-ready rect {
  opacity: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .2, 1);
}
.equip-card:is(:hover, :focus-within) .card-frame.is-ready rect { stroke-dashoffset: 0; }
.equip-card:is(:hover, :focus-within) { transform: translateY(-6px); }
.equip-card:has(.card-link:focus-visible) .card-frame rect { stroke: var(--c-ink); }
.equip-pair .equip-card .media > :is(img, svg) { transition: transform .6s var(--ease); }
.equip-pair .equip-card:is(:hover, :focus-within) .media > :is(img, svg) { transform: scale(1.05); }
.equip-card:is(:hover, :focus-within) .card-cta { color: var(--c-ink); }
.equip-card:is(:hover, :focus-within) .card-cta::before { background: var(--c-yellow); }
@media (prefers-reduced-motion: reduce) {
  .equip-card, .card-frame rect, .equip-pair .equip-card .media > :is(img, svg) { transition: none; }
  .equip-card:is(:hover, :focus-within) { transform: none; }
}

/* Selo na foto do cartão: indica que a foto é clicável (visível também no mobile) */
.equip-card .media { position: relative; }
.media-tag {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 0; height: 48px; padding: 0 14px;
  background: var(--c-yellow); color: var(--c-ink); font-size: 15px; font-weight: 500; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.media-tag .icon { width: 20px; height: 20px; stroke-width: 2; }
.media-tag span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .4s var(--ease), opacity .3s var(--ease), margin .4s var(--ease); }
.equip-card:is(:hover, :focus-within) .media-tag span { max-width: 140px; opacity: 1; margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .media-tag span { transition: none; } }

/* Botão "Ver no Google Maps" na seção de contato */
.contact-side { display: grid; gap: 24px; justify-items: start; }
.maps-btn .icon { color: var(--c-yellow); }

/* Sobre nós: missão, visão e valores */
.mvv { display: grid; gap: 0; border-top: 1px solid var(--c-line-strong); }
.mvv-item { padding: 36px 0; border-bottom: 1px solid var(--c-line); }
.mvv-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px;
  background: var(--c-yellow); color: var(--c-ink);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.mvv-icon .icon { width: 28px; height: 28px; stroke-width: 1.75; }
.mvv-item h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 300; font-stretch: 106%; line-height: 1; margin-bottom: 16px; }
.mvv-item p { color: var(--c-muted); margin: 0; max-width: 40ch; font-size: 18px; }
@media (min-width: 900px) {
  .mvv { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .mvv-item { padding: 48px 0 0; border-bottom: 0; }
  .mvv-item + .mvv-item { padding-left: 48px; border-left: 1px solid var(--c-line); }
}

/* Segundo bloco "Em campo" (caminhão Pipa): continua o fundo navy do primeiro e espelha o lado do vídeo */
.field--next { padding-top: 0; }
@media (min-width: 900px) {
  .field--rev .field-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .field--rev .field-grid > div:first-child { order: 2; }
}

/* Cabeçalho de seção: frase de apoio presa ao título, com barra amarela (antes ficava solta à direita) */
.section-head { grid-template-columns: 1fr; gap: 28px; }
.section-head p:not(.label) {
  max-width: 58ch; font-size: 20px; line-height: 1.5; color: var(--c-ink);
  padding-left: 22px; border-left: 4px solid var(--c-yellow);
}
.section--yellow .section-head p { border-left-color: var(--c-ink); }
.on-dark .section-head p { color: rgba(255, 255, 255, .86); }

/* Títulos de hero longos (ex.: Infraestrutura): menores e mais largos para caber em 2-3 linhas */
.hero h1.h1--long { font-size: clamp(36px, 4.6vw, 66px); max-width: 19ch; }

