/* =========================================================
   AutoVIA Engenharia — estilos
   Cores da marca: azul #0E446C · laranja #F49323
   ========================================================= */

:root {
  --navy-950: #050E18;
  --navy-900: #081A2B;
  --navy-800: #0B2238;
  --navy-700: #0E2E4B;
  --navy: #0E446C;
  --orange: #F49323;
  --orange-400: #F7A84A;
  --paper: #F3F5F8;
  --ink: #0A1A2A;

  /* Tema atual (o JS faz a transição suave entre escuro e claro) */
  --bg: #081A2B;
  --fg: #FFFFFF;
  --fg-2: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --accent: #F49323;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 76px;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: #081A2B; --fg: #FFFFFF; --fg-2: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.12); --card: rgba(255, 255, 255, 0.04); --accent: #F49323;
  background: var(--bg); color: var(--fg);
}
[data-theme="light"] {
  --bg: #F3F5F8; --fg: #0A1A2A; --fg-2: rgba(10, 26, 42, 0.64);
  --line: rgba(10, 26, 42, 0.12); --card: rgba(10, 26, 42, 0.04); --accent: #A85500;
  background: var(--bg); color: var(--fg);
}
/* Com animação ativa, a cor vem do <body>, que muda suavemente entre as seções */
html.theme-anim [data-theme] {
  --bg: inherit; --fg: inherit; --fg-2: inherit; --line: inherit; --card: inherit; --accent: inherit;
  background: transparent; color: inherit;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.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: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--orange); color: var(--ink); font-weight: 600;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12.5px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.h2 {
  font: 800 clamp(2.5rem, 6.2vw, 5.75rem)/.98 var(--font-display);
  letter-spacing: -.045em;
  margin-top: 22px;
  text-wrap: balance;
}
.mask { overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
.mask > span { display: block; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: #1B1206;
  font: 600 15.5px/1 var(--font-body); letter-spacing: .005em; white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(244, 147, 35, .75);
  transition: transform .5s var(--ease), background-color .3s, box-shadow .5s var(--ease), color .3s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--orange-400); box-shadow: 0 20px 40px -14px rgba(244, 147, 35, .85); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn--full { width: 100%; }

/* ---------- Abertura ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--navy-950);
  clip-path: inset(0% 0% 0% 0%);
  animation: loader-failsafe .6s ease 4.5s forwards;
}
.loader__inner { display: grid; justify-items: center; gap: 30px; }
.loader__mark { width: 68px; height: auto; }
.loader__bar { width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.loader__bar span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Barra de progresso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #FFC37A); transform: scaleX(0); transform-origin: left; }

/* ---------- Menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: transform .6s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 26, 43, .66);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transition: opacity .5s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
@media (max-width: 899.98px), (hover: none) {
  /* no celular o vidro desfocado sobre o fundo animado pesa a cada quadro: fundo quase sólido no lugar */
  .nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 26, 43, .93); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { margin-right: auto; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: none; gap: 2px; }
.nav__links a {
  padding: 10px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .74);
  transition: color .3s, background-color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .09); }
.nav__cta { display: none; margin-left: 14px; }
.nav__toggle {
  position: relative; width: 46px; height: 46px; margin-right: -8px;
  border: 0; background: none; cursor: pointer; z-index: 2;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: #fff;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 40px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy-900); color: #fff;
  clip-path: inset(0% 0% 100% 0%);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu.is-open { clip-path: inset(0% 0% 0% 0%); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu nav { display: grid; gap: 4px; }
.menu a {
  opacity: 0; transform: translateY(32px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu nav a { font: 800 clamp(2.4rem, 11vw, 4rem)/1.15 var(--font-display); letter-spacing: -.035em; }
.menu nav a { font-size: clamp(1.8rem, min(11vw, 9vh), 4rem); font-size: clamp(1.8rem, min(11vw, 9svh), 4rem); }
.menu > nav { margin-top: auto; }
.menu__mail { margin-bottom: auto; }
.menu__mail { color: var(--orange); font-weight: 600; }
.menu.is-open a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .06s); }

/* ---------- Início ---------- */
/* A animação fica numa camada fixa atrás do topo e da Apresentação (o conteúdo passa por cima) */
.bg-scene {
  /* altura da tela com a barra do navegador recolhida: no celular a barra entra e sai sem redimensionar o desenho */
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 72% 58%, #123A5E 0%, rgba(10, 31, 51, 0) 60%),
    linear-gradient(180deg, #050E18 0%, #081A2B 55%, #0A2036 100%);
}
.hero__road { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-scene__dim { position: absolute; inset: 0; background: #081A2B; opacity: 0; }
main, .footer { position: relative; z-index: 1; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 14, 24, .82) 0%, rgba(5, 14, 24, .45) 38%, rgba(5, 14, 24, 0) 66%),
    linear-gradient(0deg, rgba(5, 14, 24, .5) 0%, rgba(5, 14, 24, 0) 30%);
}
.hero__inner {
  position: relative; z-index: 2;
  height: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 12vh;
  transform-origin: 20% 50%;
}
.hero__title {
  margin: 26px 0 28px;
  font: 800 clamp(3.1rem, 8.4vw, 8.6rem)/.93 var(--font-display);
  font-size: clamp(min(3.1rem, 6.5svh), min(8.4vw, 13svh), 8.6rem);
  letter-spacing: -.05em;
}
html.has-scenes .hero__inner { padding-bottom: max(12vh, 104px); justify-content: safe center; }
/* folga embaixo para as perninhas de g, q e p não serem cortadas pela máscara da animação */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.24em; }
.hero__title .line > span { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #FFC37A 0%, var(--orange) 45%, #E07B0A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Frase que troca junto com a cena (estrada ⇄ porto) */
.hero__title .line--swap { display: grid; }
.hero__title .line--swap > .swap { grid-area: 1 / 1; display: block; }
.swap:not(.is-active) { visibility: hidden; }

/* Seletor de cenas do topo */
.hero__pager { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; pointer-events: none; }
.hero__pager-inner { display: flex; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.pager__item, .pager__pause { pointer-events: auto; border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, .5); }
.pager__item {
  display: grid; gap: 10px; padding: 10px 10px 10px 0; margin-right: 16px; text-align: left;
  font: 600 11.5px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s;
}
.pager__item.is-active { color: #fff; }
@media (hover: hover) { .pager__item:hover { color: #fff; } }
.pager__item i { display: block; width: 76px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.pager__item b { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.pager__pause {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: color .3s, box-shadow .3s;
}
.pager__pause:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.pager__pause svg { width: 14px; height: 14px; stroke-width: 2; }
.pager__pause .i-play { display: none; fill: currentColor; }
.pager__pause[aria-pressed="true"] .i-pause { display: none; }
.pager__pause[aria-pressed="true"] .i-play { display: block; }
html:not(.has-scenes) .hero__pager { display: none; }
@media (max-width: 719px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 14, 24, .35) 0%, rgba(5, 14, 24, .66) 28%, rgba(5, 14, 24, .66) 72%, rgba(5, 14, 24, .25) 100%);
  }
  .about__vidctl { top: calc(var(--nav-h) + 12px); bottom: auto; }
  .hero__scroll { display: none; }
  .hero__pager { bottom: 20px; }
}

.hero__lead { max-width: 36ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, .74); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); }
.hero__scroll-inner {
  display: grid; justify-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.hero__scroll i { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgba(255, 255, 255, .15); }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--orange); animation: scroll-cue 2s var(--ease) infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

/* ---------- 01 · Apresentação ---------- */
.about { padding-top: clamp(110px, 18vh, 220px); }
html.hero-pinned .about { position: relative; z-index: 3; margin-top: -45vh; margin-top: -45svh; }
.about__statement {
  margin-top: 34px; max-width: 24ch;
  font: 700 clamp(1.9rem, 4.1vw, 3.9rem)/1.1 var(--font-display);
  letter-spacing: -.03em;
  text-wrap: pretty;
}
.about__statement .w { transition: none; }

.about__media { position: relative; height: 100vh; height: 100svh; margin-top: clamp(90px, 16vh, 180px); }
.about__frame { position: absolute; inset: 0; overflow: hidden; background: var(--navy-800); }
.media-fill { position: absolute; inset: 0; }
.media-fill > img, .media-fill > video { width: 100%; height: 100%; object-fit: cover; }
.about__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 14, 24, .78) 0%, rgba(5, 14, 24, 0) 48%);
}
.about__vidctl {
  position: absolute; z-index: 3;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  bottom: clamp(40px, 9vh, 96px);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(8, 26, 43, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, box-shadow .3s;
}
.about__vidctl:hover { background: rgba(8, 26, 43, .75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.about__vidctl svg { width: 16px; height: 16px; stroke-width: 2; }
.about__vidctl .i-play { display: none; fill: currentColor; }
.about__vidctl[aria-pressed="true"] .i-pause { display: none; }
.about__vidctl[aria-pressed="true"] .i-play { display: block; }
html:not(.js) .about__vidctl { display: none; }
.about__caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); color: #fff; }
.about__caption .eyebrow { color: var(--orange); }
.about__caption h2 { margin-top: 18px; font: 800 clamp(2.6rem, 7vw, 6.5rem)/.95 var(--font-display); letter-spacing: -.045em; }
.about__caption h2 { text-wrap: balance; }
@media (max-width: 719px) { .about__caption h2 br { display: none; } }   /* no celular as linhas se equilibram sozinhas */

.about__grid { display: grid; gap: 56px; padding-block: clamp(90px, 14vh, 170px) clamp(40px, 6vh, 72px); }
.about__text h3 { font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 18px; }
.about__text p { color: var(--fg-2); max-width: 52ch; font-size: clamp(1rem, 1.15vw, 1.12rem); }
.about__text p + p { margin-top: 1em; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.stats li:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.stats li:nth-child(even) { padding-left: 24px; }
.stats strong { display: block; font: 800 clamp(2.6rem, 5vw, 4.4rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--orange); }
.stats span { display: block; margin-top: 10px; color: var(--fg-2); font-size: 15px; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
}

/* ---------- Espaços reservados para fotos ---------- */
.placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  color: rgba(255, 255, 255, .6); text-align: center;
  font: 600 12px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  background:
    radial-gradient(70% 60% at var(--px, 72%) 28%, rgba(244, 147, 35, .22), rgba(244, 147, 35, 0) 62%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .045) 0 1px, rgba(255, 255, 255, 0) 1px 26px),
    linear-gradient(160deg, #164A75 0%, #0B2238 62%, #081A2B 100%);
}
.placeholder svg { width: 38px; height: 38px; stroke-width: 1.3; opacity: .8; }
.placeholder--wide { font-size: 13px; }

/* ---------- 03 · Obras ---------- */
.works { position: relative; overflow: hidden; }
.works__pin {
  display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5.5vh, 64px);
  padding: max(calc(var(--nav-h) + 16px), clamp(56px, 8vh, 96px)) 0 56px;   /* sem fixar a altura da tela; nunca menos que o menu, para o link "Obras" não esconder o título */
}
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.works__intro { max-width: 34ch; color: var(--fg-2); font-size: clamp(1rem, 1.15vw, 1.1rem); }
.works__hint { display: block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 14px; }
.works__hint::after { content: "Deslize para o lado →"; }
.works.is-horizontal .works__hint::after { content: "Role para explorar →"; }

.works__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 4px var(--gutter) 8px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.works__track::-webkit-scrollbar { display: none; }
.works.is-horizontal .works__track { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }

.work { flex: 0 0 min(82vw, 380px); scroll-snap-align: start; }
.work__media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 22px; background: var(--navy-800);
  box-shadow: 0 30px 60px -36px rgba(8, 26, 43, .55);
}
.work__media > * { position: absolute; top: 0; left: -6%; width: 112%; height: 100%; }
.work__media > img, .work__media > video { object-fit: cover; max-width: none; }   /* 112% de largura: sobra para o movimento lateral sem mostrar o fundo */
.work:nth-child(2) .placeholder { --px: 30%; }
.work:nth-child(3) .placeholder { --px: 55%; }
.work:nth-child(4) .placeholder { --px: 20%; }
.work:nth-child(5) .placeholder { --px: 80%; }
.work__body { display: grid; gap: 8px; padding: 22px 4px 0; }
.work__body h3 { font: 700 clamp(1.3rem, 1.8vw, 1.65rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.work__meta { color: var(--fg-2); font-size: 14.5px; }
.work__desc { color: var(--fg-2); font-size: 15px; max-width: 40ch; }
.tag {
  justify-self: start; padding: 7px 11px; border-radius: 999px;
  font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(244, 147, 35, .13);
}
.work--cta {
  position: relative; overflow: hidden; isolation: isolate;
  align-self: flex-start; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 2.6vw, 38px); border-radius: 22px;
  background: linear-gradient(150deg, #13456F 0%, #0B2238 100%); color: #fff;
}
.work--cta::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; bottom: -30%;
  border-radius: 50%; background: radial-gradient(circle, rgba(244, 147, 35, .45), rgba(244, 147, 35, 0) 70%);
  transition: transform .8s var(--ease);
}
.work--cta:hover::before { transform: scale(1.3); }
.work--cta__label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.work--cta strong { font: 800 clamp(1.7rem, 2.6vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -.035em; max-width: 12ch; }
.work--cta__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.work--cta__go svg { width: 20px; height: 20px; stroke-width: 2; transition: transform .5s var(--ease); }
.work--cta:hover .work--cta__go svg { transform: translateX(6px); }

.works__progress { display: none; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.works__progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.works.is-horizontal .works__progress { display: block; }

@media (min-width: 900px) {
  /* título e texto lado a lado, para a galeria fixa caber na altura da tela */
  .works__head .h2 { font-size: clamp(2.6rem, min(5.4vw, 8.5vh), 5.75rem); }
  .works.is-horizontal .works__head { flex-wrap: nowrap; }
  .work { flex-basis: clamp(340px, min(32vw, 54vh), 520px); }
  .works.is-horizontal .works__pin { height: 100vh; height: 100svh; gap: clamp(24px, 4vh, 48px); padding: calc(var(--nav-h) + 20px) 0 36px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .works.is-horizontal .work__desc { display: none; }   /* só quando a galeria fica fixa na altura da tela */
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  /* sem animação a galeria não corre de lado: no computador os cartões quebram em linhas */
  .works__track { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .works__hint { display: none; }
}

/* ---------- 04 · Clientes ---------- */
.clients { overflow: hidden; padding: clamp(70px, 11vh, 140px) 0 clamp(30px, 5vh, 70px); }
@media (min-width: 900px) { .clients { padding-bottom: clamp(70px, 12vh, 140px); } }   /* no computador, mais respiro antes da faixa de palavras */
.clients__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: clamp(40px, 7vh, 72px); }
.clients__intro { max-width: 34ch; color: var(--fg-2); font-size: clamp(1rem, 1.15vw, 1.1rem); }
.clients__marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.clients__track { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 0 var(--gutter); }
.clients__track.is-looping {
  flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; padding: 0;
  animation: clients-loop var(--dur, 40s) linear infinite;
}
.clients__track.is-looping .client { margin-right: 16px; }
.clients__marquee:hover .clients__track, .clients__track.is-paused { animation-play-state: paused; }
.clients__pause {
  display: flex; align-items: center; gap: 8px; margin: 18px var(--gutter) 0 auto; padding: 8px 4px;
  border: 0; background: none; cursor: pointer; color: var(--fg-2);
  font: 600 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  transition: color .3s;
}
.clients__pause:hover { color: var(--fg); }
.clients__pause svg { width: 14px; height: 14px; stroke-width: 2; }
.clients__pause .i-play { display: none; fill: currentColor; }
.clients__pause.is-paused .i-pause { display: none; }
.clients__pause.is-paused .i-play { display: block; }
@keyframes clients-loop { to { transform: translateX(-50%); } }
.client {
  flex: none; display: grid; place-items: center;
  width: clamp(150px, 16vw, 210px); height: clamp(84px, 9vw, 108px); padding: 18px 26px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line);
}
.client img { width: auto; height: auto; max-width: 100%; max-height: var(--h, 52px); object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .4s, opacity .4s; }
.client--wide { padding-inline: 16px; }   /* marcas largas e finas ganham um pouco mais de espaço */
@media (max-width: 600px) {
  .client { width: 170px; height: 92px; padding: 14px 16px; }
  .client img { max-height: min(var(--h, 52px), 46px); }
}
.client:hover img { filter: none; opacity: 1; }
.client__ph { font: 600 11px/1.35 var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--fg-2); }

/* ---------- 02 · Especialidades (grade compacta, rolagem livre) ---------- */
.specs { padding: max(calc(var(--nav-h) + 16px), clamp(70px, 10vh, 120px)) 0 clamp(60px, 8vh, 100px); }
.specs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: clamp(32px, 5vh, 56px); }
.specs__intro { max-width: 36ch; color: var(--fg-2); font-size: clamp(1rem, 1.15vw, 1.1rem); }
.specs__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.spec {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.2vw, 30px); border-radius: 22px;
  background: linear-gradient(150deg, #11406A 0%, #0B2742 55%, #081A2B 100%); color: #fff;
  box-shadow: 0 30px 60px -36px rgba(8, 26, 43, .6);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.spec::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; top: -45%; right: -25%;
  border-radius: 50%; background: radial-gradient(circle, rgba(244, 147, 35, .24), rgba(244, 147, 35, 0) 68%);
  transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .spec:hover { translate: 0 -4px; box-shadow: 0 40px 70px -34px rgba(8, 26, 43, .75); }
  .spec:hover::before { transform: scale(1.25); }
}
.spec__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.spec__num { font: 800 2.6rem/.8 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .32); }
.spec__icon { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: 15px; background: rgba(244, 147, 35, .13); color: var(--orange); }
.spec__icon svg { width: 48%; height: 48%; stroke-width: 1.6; }
.spec h3 { font: 800 clamp(1.3rem, 1.6vw, 1.55rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.spec p { color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.55; }
.spec__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.spec__tags li {
  padding: 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
@media (max-width: 639px) {
  /* no celular os cartões ficam empilhados: mais baixos para a lista não ficar longa */
  .spec { padding: 20px 20px 22px; gap: 8px; }
  .spec__top { margin-bottom: 4px; }
  .spec__num { font-size: 2rem; }
  .spec__icon { width: 40px; border-radius: 12px; }
}
@media (min-width: 640px) {
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
  .spec:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  /* 3 cartões em cima e 2 embaixo */
  .specs__grid { grid-template-columns: repeat(6, 1fr); }
  .spec { grid-column: span 2; min-height: 280px; }
  .spec:nth-child(4), .spec:nth-child(5) { grid-column: span 3; min-height: 240px; }
  .spec__top { margin-bottom: auto; padding-bottom: 24px; }
}

/* ---------- Faixa animada ---------- */
.band { overflow: hidden; padding: clamp(60px, 11vh, 130px) 0; }
.band__row {
  display: flex; width: max-content;
  font: 800 clamp(3rem, 9vw, 9rem)/1.02 var(--font-display); letter-spacing: -.045em; white-space: nowrap;
}
.band__row i { font-style: normal; color: var(--orange); padding: 0 .12em; }
.band__row--rev { color: transparent; -webkit-text-stroke: 1.4px var(--fg-2); }
.band__row--rev i { -webkit-text-stroke: 0; }

/* ---------- 05 · Contato ---------- */
.contact { padding: clamp(90px, 13vh, 170px) 0 clamp(100px, 15vh, 190px); }
.contact__grid { display: grid; gap: 56px; }
.contact__lead { margin-top: 24px; max-width: 38ch; color: var(--fg-2); font-size: clamp(1.02rem, 1.25vw, 1.15rem); }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
}

/* Cartões de contato: WhatsApp e e-mail */
.contact__cards { display: grid; gap: 18px; }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -18%; top: -70%;
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: .55; transition: transform .8s var(--ease), opacity .5s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--glow-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.contact-card:hover::before { transform: scale(1.3); opacity: 1; }
.contact-card--wa { --tone: #25D366; --glow: rgba(37, 211, 102, .3); --glow-line: rgba(37, 211, 102, .55); }
.contact-card--mail { --tone: var(--orange); --glow: rgba(244, 147, 35, .3); --glow-line: rgba(244, 147, 35, .55); }
.contact-card__icon {
  display: grid; place-items: center; flex: none;
  width: clamp(58px, 6vw, 76px); aspect-ratio: 1; border-radius: 22px;
  background: var(--tone); color: #fff;
  box-shadow: 0 14px 30px -14px var(--tone);
}
.contact-card--mail .contact-card__icon { color: #1B1206; }
.contact-card__icon svg { width: 48%; height: 48%; stroke-width: 1.9; }
.contact-card__text { display: grid; gap: 6px; min-width: 0; }
.contact-card__label { font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.contact-card__value { font: 800 clamp(1.45rem, 2.4vw, 2.1rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--fg); overflow-wrap: anywhere; }
.contact-card--mail .contact-card__value { font-size: clamp(1.05rem, 1.5vw, 1.4rem); }
.contact-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--tone); }
.contact-card__cta svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .5s var(--ease); }
.contact-card:hover .contact-card__cta svg { transform: translateX(5px); }
svg.i-wa { fill: currentColor; stroke: none; }

/* ---------- Rodapé ---------- */
.footer { overflow: hidden; padding-top: 72px; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.footer__logo img { height: 46px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__nav a, .footer__up { color: var(--fg-2); font-size: 15px; transition: color .3s; }
.footer__nav a:hover, .footer__up:hover { color: var(--fg); }
.footer__up { display: inline-flex; align-items: center; gap: 8px; }
.footer__up svg { width: 16px; height: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 48px; padding-block: 28px; border-top: 1px solid var(--line);
  color: var(--fg-2); font-size: 13.5px;
}
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: var(--orange); }
.footer__giant {
  margin-bottom: -.13em; text-align: center; user-select: none;
  font: 800 clamp(5rem, 24vw, 24rem)/.8 var(--font-display); letter-spacing: -.065em;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text;
}
.footer__giant b {
  font-weight: inherit;
  background: linear-gradient(180deg, rgba(244, 147, 35, .5) 0%, rgba(244, 147, 35, 0) 85%);
  -webkit-background-clip: text; background-clip: text;
}

@media (max-width: 420px) { .hide-sm { display: none; } }

/* ---------- WhatsApp flutuante ---------- */
.wa {
  position: fixed; z-index: 40;
  right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 64px);   /* acima do selo do Netlify no canto */
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .45);
  transform: scale(0); transition: transform .6s var(--ease);
}
.wa svg { width: 30px; height: 30px; }
.wa.is-visible { transform: scale(1); }
.wa.is-visible.is-away { transform: scale(0); }
@media (hover: hover) { .wa.is-visible:not(.is-away):hover { transform: scale(1.08); } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  /* transições em 0s (e não 0,01ms): com duração mínima todo elemento passaria a ter transição em tudo, o que atrapalha as animações por transparência */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  /* a faixa de clientes continua correndo devagar (tem botão de pausa) */
  .clients__track.is-looping { animation-duration: var(--dur, 40s) !important; animation-iteration-count: infinite !important; }
  html:not(.lenis) { scroll-behavior: auto; }
}
