/* =========================================================
   HIGHLINE — Mecânica Automotiva
   Paleta: Speedster Red #F41414 · Road Black #282828
           Turbo Gray #EAE8E8 · Clear White #F7F7F7
   ========================================================= */
:root {
  --red: #F41414;
  --red-d: #c90e0e;
  --black: #282828;
  --ink: #161616;
  --gray: #EAE8E8;
  --white: #F7F7F7;
  --mute: #7a7878;
  --line: rgba(40, 40, 40, .14);
  --skew: -12deg;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .95;
}
h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 8px; background: var(--red);
  transform: skewX(-40deg);
}
.red { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 26px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn::after {
  content: ""; position: absolute; inset: 0 -20%; z-index: -1;
  transform: translateX(-110%) skewX(-30deg);
  transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateX(0) skewX(-30deg); }
.btn--red { background: var(--red); color: #fff; }
.btn--red::after { background: var(--black); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark::after { background: var(--red); }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { color: var(--black); }
.btn--line { border: 1px solid var(--black); color: var(--black); }
.btn--line::after { background: var(--black); }
.btn--line:hover { color: #fff; }
.play { font-size: 10px; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 29px; fill: var(--red); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__type strong {
  font-size: 22px; font-weight: 800; font-style: italic; font-stretch: 125%;
  letter-spacing: -.01em;
}
.brand__type small {
  font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; opacity: .75;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding-left: var(--gut);
  color: #fff;
  transition: background .4s, height .4s, color .4s, box-shadow .4s;
}
.nav.is-solid {
  height: 68px; background: rgba(247,247,247,.92); color: var(--black);
  backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
}
.nav__links { display: flex; gap: 38px; }
.nav__links a {
  position: relative; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  align-self: stretch; display: flex; align-items: center; gap: 14px;
  padding: 0 34px 0 48px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
  transition: background .3s;
}
.nav__cta svg { width: 18px; height: 18px; }
.nav__cta:hover { background: var(--black); }
.nav__burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero__slides, .hero__slide, .hero__veil { position: absolute; inset: 0; }
.hero__slide {
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__veil {
  background:
    linear-gradient(90deg, rgba(14,14,14,.92) 0%, rgba(14,14,14,.6) 38%, rgba(14,14,14,0) 70%),
    linear-gradient(0deg, rgba(14,14,14,.7) 0%, transparent 35%);
}
.hero__ghost {
  position: absolute; width: min(70vw, 980px); height: auto; aspect-ratio: 260/162;
  right: -12vw; bottom: -14vh; fill: none; stroke: rgba(244,20,20,.55); stroke-width: .6;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; padding-top: 80px; }
.hero__title {
  font-size: clamp(44px, 6.4vw, 100px);
  margin-bottom: 30px;
}
.hero__title .line { display: block; overflow: hidden; padding-right: .15em; }
.hero__title .line > span {
  display: inline-block; transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero__lead { max-width: 440px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.78); margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__pager {
  position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3;
  display: flex; gap: 26px;
}
.hero__pager button {
  background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.45);
  display: flex; flex-direction: column; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
}
.hero__pager i { position: relative; display: block; width: 52px; height: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__pager i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero__pager .is-active { color: #fff; }
.hero__pager .is-active i::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.hero__scroll {
  position: absolute; right: var(--gut); bottom: 44px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6);
  writing-mode: vertical-rl;
}
.hero__scroll i { width: 1px; height: 60px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; width: 1px; height: 20px; background: var(--red); animation: drip 1.8s infinite; }
@keyframes drip { from { top: -20px; } to { top: 60px; } }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 46px 10px; text-align: center; position: relative;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: var(--line);
  transform: skewX(var(--skew));
}
.stat b {
  display: block; font-size: clamp(36px, 4.2vw, 58px); font-weight: 300; font-stretch: 125%;
  letter-spacing: -.02em; line-height: 1; margin-bottom: 10px;
}
.stat b em { font-style: normal; font-size: .45em; font-weight: 600; color: var(--red); margin-left: 4px; }
.stat span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 120px 0; background: var(--white); }
.services__grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.services__intro { padding-right: 20px; align-self: center; }
.services__intro p:not(.eyebrow) { color: var(--mute); line-height: 1.6; margin-bottom: 32px; }
.card {
  position: relative; min-height: 440px; overflow: hidden; color: #fff; background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background-image: inherit; background-position: center; background-size: cover;
  transition: transform 1.1s var(--ease), filter .6s;
  filter: grayscale(.35) brightness(.8);
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.1) 60%);
}
.card:hover::before { transform: scale(1.08); filter: none; }
.card__num {
  position: absolute; top: 20px; left: 22px; z-index: 2; font-size: 12px; font-weight: 700; letter-spacing: .15em;
}
.card__num::after { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--red); margin-left: 10px; vertical-align: middle; }
.card__body { position: relative; z-index: 2; padding: 26px 22px; }
.card__body small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.card__body h3 { font-size: 28px; color: var(--red); margin: 4px 0 0; }
.card__body p {
  font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.75);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s;
}
.card:hover .card__body p { max-height: 60px; opacity: 1; margin-top: 12px; }
.card .card__body::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.card:hover .card__body::before { transform: scaleY(1); }

/* =========================================================
   PARTS (dark)
   ========================================================= */
.parts { position: relative; background: var(--ink); color: #fff; padding: 120px 0; overflow: hidden; }
.parts__stripes { position: absolute; inset: 0; pointer-events: none; }
.parts__stripes i {
  position: absolute; top: -10%; height: 120%; width: 1px; background: rgba(244,20,20,.22);
  transform: rotate(35deg); transform-origin: top;
}
.parts__stripes i:nth-child(1) { left: 30%; }
.parts__stripes i:nth-child(2) { left: 52%; }
.parts__stripes i:nth-child(3) { left: 78%; }
.parts__grid { position: relative; display: grid; grid-template-columns: .9fr 1.3fr; gap: 60px; align-items: center; }
.parts__text > p:not(.eyebrow) { color: rgba(255,255,255,.65); line-height: 1.65; max-width: 430px; margin-bottom: 38px; }
.feats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.feats li { display: flex; flex-direction: column; gap: 4px; }
.feats__ico { width: 26px; height: 26px; color: var(--red); margin-bottom: 8px; }
.feats b { font-size: 15px; font-weight: 800; font-style: italic; font-stretch: 125%; text-transform: uppercase; }
.feats small { font-size: 11px; line-height: 1.45; letter-spacing: .06em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.parts__img { position: relative; }
.parts__img img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.parts__img::before {
  content: ""; position: absolute; inset: 8% -3% -6% 6%; background: var(--red); z-index: -1;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  opacity: .9;
}
.parts__img { z-index: 0; isolation: isolate; }

/* =========================================================
   SPLIT (oficina)
   ========================================================= */
.split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 640px; background: var(--white); }
.split__img {
  background-image: inherit; background-position: center; background-size: cover; position: relative;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.split__text { padding: 100px var(--gut) 100px 40px; align-self: center; max-width: 620px; }
.split__text > p:not(.eyebrow) { color: var(--mute); line-height: 1.65; margin-bottom: 30px; }
.steps { list-style: none; margin-bottom: 40px; border-top: 1px solid var(--line); }
.steps li {
  display: flex; gap: 22px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; transition: padding .4s var(--ease), color .3s;
}
.steps li b { color: var(--red); font-size: 12px; letter-spacing: .1em; }
.steps li:hover { padding-left: 12px; color: var(--red); }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative; padding: 140px 0; color: #fff; overflow: hidden;
  background-position: center; background-size: cover; background-attachment: fixed;
}
.about::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.92) 10%, rgba(14,14,14,.35) 75%); }
.about__grid { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.about__text { max-width: 540px; }
.about__text > p:not(.eyebrow) { color: rgba(255,255,255,.72); line-height: 1.65; margin-bottom: 36px; }
.about .btn--line { border-color: rgba(255,255,255,.5); color: #fff; }
.about .btn--line::after { background: var(--red); }
.about__badge { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-left: 3px solid var(--red); background: rgba(14,14,14,.55); backdrop-filter: blur(8px); }
.about__badge svg { width: 54px; height: 34px; fill: #fff; }
.about__badge p { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }

/* =========================================================
   BRANDS
   ========================================================= */
.brands { padding: 56px 0; background: var(--gray); overflow: hidden; }
.brands__label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin-bottom: 28px; text-align: center; }
.brands__track { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands__row { display: flex; gap: 90px; width: max-content; animation: marquee 32s linear infinite; }
.brands__row span { font-size: 30px; color: #8d8a8a; white-space: nowrap; transition: color .3s; }
.brands__row span:hover { color: var(--black); }
.b1 { font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.b2 { font-weight: 700; font-stretch: 125%; letter-spacing: .12em; }
.b3 { font-weight: 900; font-stretch: 62%; letter-spacing: .05em; font-size: 36px !important; }
.b4 { font-weight: 600; font-style: italic; letter-spacing: -.03em; }
.b5 { font-weight: 800; font-stretch: 112%; letter-spacing: .2em; }
.b6 { font-weight: 800; font-style: italic; font-stretch: 125%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 120px 0; background: var(--white); position: relative; overflow: hidden; }
.contact::after {
  content: ""; position: absolute; right: -120px; top: 0; bottom: 0; width: 280px; background: var(--red);
  transform: skewX(var(--skew)); opacity: .06;
}
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.contact__intro > p:not(.eyebrow) { color: var(--mute); line-height: 1.6; margin-bottom: 30px; }
.contact__info { display: flex; flex-direction: column; gap: 6px; }
.contact__info a { font-size: 18px; font-weight: 700; font-style: italic; font-stretch: 112%; }
.contact__info a:hover { color: var(--red); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.form label { position: relative; display: block; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(40,40,40,.3);
  padding: 22px 0 10px; font-size: 16px; outline: none; resize: none; border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.form label span {
  position: absolute; left: 0; top: 22px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); pointer-events: none; transition: top .3s var(--ease), font-size .3s, color .3s;
}
.form label::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.form label:focus-within::after { transform: scaleX(1); }
.form input:focus + span, .form input:not(:placeholder-shown) + span,
.form textarea:focus + span, .form textarea:not(:placeholder-shown) + span,
.form select:focus + span, .form select:valid + span { top: 0; font-size: 10px; color: var(--red); }
.form .select::before {
  content: ""; position: absolute; right: 4px; top: 26px; width: 7px; height: 7px;
  border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: rotate(45deg);
}
.form .btn { justify-self: start; }
.form.is-sent .btn { background: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 80px 0 0; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) .8fr; gap: 30px; padding-bottom: 60px; }
.footer .brand { color: #fff; align-self: start; }
.brand--stack { flex-direction: column; align-items: flex-start; }
.footer h4 { color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid > div > a { display: block; margin-bottom: 10px; transition: color .3s; }
.footer__grid a:hover { color: var(--red); }
.footer__grid p { line-height: 1.6; margin-bottom: 12px; }
.footer__social div { display: flex; gap: 14px; }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 24px; font-size: 11px; letter-spacing: .08em;
}
.footer__bottom a { margin-left: 22px; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.services__grid .reveal:nth-child(3), .stats .reveal:nth-child(2) { transition-delay: .1s; }
.services__grid .reveal:nth-child(4), .stats .reveal:nth-child(3) { transition-delay: .2s; }
.stats .reveal:nth-child(4) { transition-delay: .3s; }
.hero .reveal { transition-delay: .5s; }
.hero .hero__actions { transition-delay: .65s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .services__intro { grid-column: 1 / -1; padding: 0 0 30px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { padding: 0 20px 0 36px; font-size: 11px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .parts__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .split { grid-template-columns: 1fr; }
  .split__img { min-height: 360px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .split__text { padding: 60px var(--gut); }
  .about { background-attachment: scroll; }
  .about__grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav { height: 68px; }
  .nav__cta { font-size: 0; gap: 0; padding: 0 22px 0 34px; }
  .nav__cta svg { width: 20px; height: 20px; }
  .brand__type small { display: none; }
  .hero__scroll { display: none; }
  .hero__pager { gap: 14px; bottom: 30px; }
  .hero__pager i { width: 34px; }
  .hero__veil { background: linear-gradient(0deg, rgba(14,14,14,.95) 10%, rgba(14,14,14,.45) 70%); }
  .services, .parts, .contact { padding: 80px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
  .card__body p { max-height: 60px; opacity: 1; margin-top: 12px; }
  .feats { grid-template-columns: 1fr; gap: 18px; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer .brand { grid-column: 1 / -1; }
  .footer__bottom a { margin: 0 16px 0 0; }
}

/* ---------- ajustes finos ---------- */
.card__body h3 { font-size: clamp(19px, 1.75vw, 26px); font-stretch: 112%; }
.parts h2, .about h2, .split h2 { font-size: clamp(32px, 3.7vw, 54px); }
.parts__grid { grid-template-columns: 1fr 1.2fr; }
h2 { font-size: clamp(30px, 3.4vw, 50px); }
.services__grid { grid-template-columns: .9fr 1fr 1fr 1fr; }
.contact h2 { font-size: clamp(34px, 4vw, 58px); }
.about__text { max-width: 640px; }
.about h2, .parts h2, .split h2 { font-size: clamp(30px, 3.2vw, 46px); }
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__slide { background-position: 72% center; }
  .hero__content { padding-top: 40px; }
  .about h2, .parts h2, .split h2, h2 { font-size: 30px; }
  .contact h2 { font-size: 34px; }
  .card__body h3 { font-size: 26px; }
}
