/* ==========================================================================
   NSP TRANSPORTES — css/style.css
   --------------------------------------------------------------------------
   Pure CSS, no frameworks. Visual language taken from the hero reference:
   light grey canvas, big white stencil shapes, Montserrat (bold + light),
   a typewriter mono for captions, tiny side notes, dot sliders, vertical
   counters, frosted-glass cards and black accent blocks.

   01. Tokens            09. Frota
   02. Reset & base      10. Serviços
   03. Shared pieces     11. Raio-X
   04. Loader            12. Chamada (shapes)
   05. Header + menu     13. Contato
   06. HERO              14. Footer
   07. Video dialog      15. Entrance animations
   08. Manifesto, NSP    16. Responsive · 17. Reduced motion
   ========================================================================== */


/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  /* Colours (from the reference) */
  --bg:         #F1F1F1;   /* light grey canvas */
  --shape:      #FFFFFF;   /* white stencil shapes / boxes */
  --ink:        #111111;   /* text */
  --ink-2:      #2B2B2B;
  --muted:      #6B6B6B;   /* grey text on --bg — 5.0:1 */
  --soft:       #C9C9C9;   /* inactive dots, unread words */
  --black:      #0B0B0B;   /* black accent blocks */
  --accent:     #E3171B;   /* NSP red (the reference used a green dot) */
  --glass:      rgba(255, 255, 255, .55);
  --line:       rgba(0, 0, 0, .14);
  --line-dark:  rgba(255, 255, 255, .16);

  /* Fonts */
  --font:      "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  /* Type scale */
  --fs-hero:   clamp(1.9rem, 2.75vw, 3.6rem);
  --fs-h2:     clamp(2rem, 4.2vw, 4rem);
  --fs-h3:     clamp(1.2rem, 1.6vw, 1.6rem);
  --fs-note:   clamp(.75rem, .78vw, .95rem);
  --fs-label:  .72rem;

  /* Layout */
  --container: 1320px;
  --edge:      5.8vw;                 /* left/right margin of the hero */
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9rem);
  --radius:    0px;                   /* the reference is square-cornered */
  --radius-btn: 999px;
  --card-gap:  16px;

  /* Motion */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.65, 0, .35, 1);
  --dur-in:    1.1s;

  /* Scroll lengths of the pinned scenes */
  --manifesto-track: 240svh;
  --letters-track:   200svh;
  --xray-track:      200svh;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
main { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .75rem 1rem; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 1rem; }


/* ==========================================================================
   03. SHARED PIECES
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.2rem;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 54rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-title {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.mono { font-family: var(--font-mono); font-size: .95rem; line-height: 1.45; }

/* Logo: "NSP" + two bars (echo of the reference's logotype) */
.logo {
  display: inline-flex; align-items: flex-end; gap: 4px;
  font: 800 1.45rem/1 var(--font);
  letter-spacing: .02em;
}
.logo__bars { display: inline-flex; gap: 2px; padding-bottom: 1px; }
.logo__bars i { width: 4px; height: 9px; background: currentColor; }
.logo__bars i:last-child { height: 12px; background: var(--accent); }

/* Buttons: pill, fill wipes up on hover */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-hover-bg: var(--ink); --btn-hover-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: 0 1.6rem;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-hover-bg); transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg); }
.btn--dark  { --btn-bg: var(--ink); --btn-fg: #fff; --btn-hover-bg: var(--accent); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-hover-bg: var(--accent); --btn-hover-fg: #fff; }
.btn--sm    { min-height: 40px; padding: 0 1.1rem; font-size: .68rem; }
.btn--block { width: 100%; }

/* Underline-on-hover links (nav style of the reference) */
.hero__nav a, .site-header__nav a, .hero__lang a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.hero__nav a:hover, .site-header__nav a:hover, .hero__lang a:hover { background-size: 100% 1.5px; }


/* ==========================================================================
   04. LOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; align-content: center; gap: 1.5rem;
  background: var(--bg);
  transition: transform 1s var(--ease-io), visibility 0s linear 1s;
}
.loader__logo { display: flex; align-items: flex-end; gap: 4px; overflow: hidden; }
.loader__mark { display: inline-block; font: 800 clamp(2.6rem, 6vw, 4.2rem)/1 var(--font); transform: translateY(110%); animation: loader-rise .9s var(--ease-out) forwards; }
.loader__mark:nth-child(2) { animation-delay: .08s; }
.loader__mark:nth-child(3) { animation-delay: .16s; }
.loader__bars { display: inline-flex; gap: 3px; padding-bottom: 4px; opacity: 0; animation: loader-fade .6s var(--ease-out) .35s forwards; }
.loader__bars i { width: 7px; height: 16px; background: var(--ink); }
.loader__bars i:last-child { height: 22px; background: var(--accent); }
.loader__bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.loader__fill { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--load, 0)); transition: transform .3s linear; }
@keyframes loader-rise { to { transform: none; } }
@keyframes loader-fade { to { opacity: 1; } }
html:not(.js) .loader, .is-loaded .loader { transform: translateY(-100%); visibility: hidden; }


/* ==========================================================================
   05. FIXED HEADER + MENU
   ========================================================================== */
.site-header {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  display: flex; align-items: center; gap: 2rem;
  width: min(calc(100% - 2 * var(--gutter)), 980px);
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
  transform: translate(-50%, -140%);
  transition: transform .7s var(--ease-out);
}
.site-header.is-visible { transform: translate(-50%, 0); }
.site-header .logo { font-size: 1.15rem; }
.site-header__nav { display: flex; gap: 1.8rem; margin-left: auto; }
.site-header__nav a { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-header__menu, .hero__menu {
  display: none; min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; cursor: pointer;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.menu {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__close {
  position: absolute; top: 1.5rem; right: var(--gutter);
  min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; cursor: pointer;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.menu__nav { display: grid; gap: .1rem; max-width: var(--container); width: 100%; margin-inline: auto; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1.2rem;
  font: 300 clamp(2.4rem, 7vw, 5.5rem)/1.05 var(--font); text-transform: uppercase;
  transform: translateY(40px); opacity: 0;
  transition: transform .9s var(--ease-out), opacity .9s var(--ease-out), color .3s;
}
.menu__nav a span { font-size: .8rem; font-weight: 700; color: var(--accent); }
.menu__nav a:hover { color: var(--accent); }
.menu.is-open .menu__nav a { transform: none; opacity: 1; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; max-width: var(--container); width: 100%; margin: 3rem auto 0; font-family: var(--font-mono); color: var(--muted); }
.menu__foot a:hover { color: var(--ink); }


/* ==========================================================================
   06. HERO — positions measured on the reference (2046 × 1272)
   --hp: scroll progress of the hero (0–1) · --mx/--my: pointer (−1…1)
   ========================================================================== */
.hero {
  --hp: 0; --mx: 0; --my: 0;
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}

/* White stencil shapes */
.hero__shapes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  translate: calc(var(--mx) * -10px) calc(var(--hp) * -14svh + var(--my) * -8px);
}
.hero__shapes polyline { fill: none; stroke: var(--shape); stroke-width: 30; stroke-linejoin: miter; stroke-linecap: butt; }
.hero__shapes polygon, .hero__shapes rect { fill: var(--shape); }

/* Top bar */
.hero__bar {
  position: absolute; z-index: 3;
  left: var(--edge); right: var(--edge); top: 5.4%;
  display: flex; align-items: center;
}
.hero__bar::after {           /* the line under logo + nav */
  content: ""; position: absolute; left: 0; top: calc(100% + 2.2svh);
  width: 29.8vw; height: 1.5px; background: var(--ink);
  transform-origin: left; transform: scaleX(var(--line-in, 1));
  transition: transform 1.4s var(--ease-out) .2s;
}
.hero__bar .logo { font-size: clamp(1.3rem, 1.7vw, 2rem); }
.hero__nav { display: flex; gap: 3.3vw; margin-left: 11.2vw; }
.hero__nav a, .hero__lang a { font-size: clamp(.72rem, .72vw, .9rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding-block: .3rem; }
.hero__lang { display: flex; gap: 3.2vw; margin-left: auto; }
.hero__lang a { color: #A7A7A7; }
.hero__lang a.is-strong { color: var(--ink); }

/* Title block */
.hero__intro { position: absolute; z-index: 3; left: var(--edge); top: 24.4%; width: max-content; }
.hero__title { font-size: var(--fs-hero); line-height: 1.38; text-transform: uppercase; }
.hero__title > span { display: block; white-space: nowrap; }
.hero__title-strong { font-weight: 700; letter-spacing: .005em; }
.hero__title-light { font-weight: 400; font-size: .86em; }
.hero__date { margin-top: .9rem; font-size: clamp(.95rem, 1.15vw, 1.45rem); font-weight: 500; color: #8E8E8E; text-transform: uppercase; }

/* Dots */
.hero__dots { position: absolute; z-index: 3; left: calc(var(--edge) - 6px); top: calc(47.7% - 12px); display: flex; gap: calc(3.4vw - 24px); }
.hero__dots button {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__dots button::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: #D2D2D2; transition: background-color .4s, transform .4s var(--ease-out);
}
.hero__dots button:hover::after { transform: scale(1.25); }
.hero__dots button[aria-pressed="true"]::after { background: var(--ink); }

/* Video card + mono caption */
.hero__media { position: absolute; z-index: 3; left: var(--edge); top: 70%; width: 21vw; }
.video-card {
  display: flex; width: 17.5vw; aspect-ratio: 357 / 130;
  padding: 0; border: 0; background: var(--black); cursor: pointer; overflow: hidden;
}
.video-card__play {
  flex: 0 0 29%; display: grid; place-items: center; background: var(--black);
}
.video-card__play svg {
  width: 62%; aspect-ratio: 1; padding: 18%; border-radius: 50%;
  background: #fff; fill: var(--ink);
  transition: transform .5s var(--ease-out);
}
.video-card:hover .video-card__play svg { transform: scale(1.1); }
.video-card__thumb {
  flex: 1; min-width: 0; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.video-card:hover .video-card__thumb { filter: grayscale(0); transform: scale(1.05); }
.hero__mono { margin-top: 3.3svh; font: 400 clamp(.78rem, .85vw, 1.05rem)/1.25 var(--font-mono); color: #444; }

/* Product */
.hero__product {
  position: absolute; z-index: 1;
  left: 52%; top: 51%;
  height: 55svh; aspect-ratio: 1297 / 1182;
  translate: calc(-50% + var(--mx) * 14px) calc(-50% + var(--hp) * 10svh + var(--my) * 10px);
}
.hero__truck {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .16)) drop-shadow(0 8px 10px rgba(0, 0, 0, .1));
  scale: calc(1 - var(--hp) * .08);
}

/* Frosted card over the truck */
.hero__card {
  position: absolute; z-index: 2;
  left: 52.2%; top: 54.1%;
  width: 21.9vw; min-height: 18.6%;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto;
  gap: 1.2svh 1.2vw;
  padding: 3.3svh 1.85vw 3.3svh;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  font-size: clamp(.68rem, .67vw, .85rem); line-height: 1.3; font-weight: 500;
  translate: calc(var(--mx) * 22px) calc(var(--hp) * 4svh + var(--my) * 14px);
}
.hero__card-top { max-width: 16em; }
.hero__card-num { font-size: clamp(1.6rem, 1.7vw, 2.2rem); font-weight: 600; line-height: 1; justify-self: end; }
.hero__card-tag { align-self: end; color: var(--ink-2); white-space: nowrap; }
.hero__card-text { align-self: end; max-width: 18em; }
.hero__card [data-slide-title],
.hero__card [data-slide-num],
.hero__card [data-slide-text] { transition: opacity .45s var(--ease-out), translate .6s var(--ease-out); }
.hero__card.is-switching [data-slide-title],
.hero__card.is-switching [data-slide-num],
.hero__card.is-switching [data-slide-text] { opacity: 0; translate: 0 8px; }

/* Side notes */
.hero__note { position: absolute; z-index: 3; width: 10.5vw; min-width: 150px; font-size: var(--fs-note); line-height: 1.25; }
.hero__note--top { left: 82.7%; top: 19.3%; }
.hero__note--dot { left: 70.4%; top: 39.9%; padding-left: 1rem; }
.hero__note--dot::before { content: ""; position: absolute; left: 0; top: .35em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__note--low { left: 82.9%; top: 67%; }

/* Vertical counter */
.hero__counter {
  position: absolute; z-index: 3; left: 86.9%; top: 78.2%;
  display: grid; justify-items: center; gap: .7rem;
  font-size: clamp(.8rem, .9vw, 1.1rem); font-weight: 700;
  translate: -50% 0;
}
.hero__counter span { writing-mode: vertical-rl; }
.hero__counter i { width: 1.5px; height: 7svh; background: var(--ink); }

/* Arrow box */
.hero__down {
  position: absolute; z-index: 3; right: 0; bottom: 0;
  width: 5.3vw; min-width: 64px; height: 12.1%; min-height: 76px;
  display: grid; place-items: center;
  background: var(--shape);
  transition: background-color .4s;
}
.hero__down svg { width: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: translate .5s var(--ease-out); }
.hero__down:hover { background: var(--ink); }
.hero__down:hover svg { stroke: #fff; translate: 0 4px; }

/* ---------- Hero entrance (after the loader) ---------- */
.js .hero__shapes polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-io); }
.js .hero__shapes polygon, .js .hero__shapes rect { opacity: 0; transition: opacity 1s var(--ease-out) .9s; }
.is-loaded .hero__shapes polyline { stroke-dashoffset: 0; }
.is-loaded .hero__shapes polygon, .is-loaded .hero__shapes rect { opacity: 1; }
.js .hero__bar { --line-in: 0; opacity: 0; transition: opacity .9s var(--ease-out); }
.is-loaded .hero__bar { --line-in: 1; opacity: 1; }
.js .hero__truck { opacity: 0; transform: translateY(6%) scale(.96); transition: opacity 1.3s var(--ease-out) .25s, transform 1.6s var(--ease-out) .25s; }
.is-loaded .hero__truck { opacity: 1; transform: none; }
.js .hero__card { opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transform: translateY(30px); transition: opacity 1s var(--ease-out) .7s, transform 1.2s var(--ease-out) .7s, backdrop-filter 1.2s .7s, -webkit-backdrop-filter 1.2s .7s; }
.is-loaded .hero__card { opacity: 1; transform: none; -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.js .hero__counter, .js .hero__down { opacity: 0; transition: opacity 1s var(--ease-out) 1s; }
.is-loaded .hero__counter, .is-loaded .hero__down { opacity: 1; }
/* hero texts use [data-split] / [data-reveal]; they wait for the loader */
.js:not(.is-loaded) .hero [data-reveal], .js:not(.is-loaded) .hero [data-split] .word__inner { transition-duration: 0s; }


/* ==========================================================================
   07. VIDEO DIALOG
   ========================================================================== */
.video-modal {
  width: min(92vw, 1200px); max-width: none; padding: 0; border: 0;
  background: var(--black); color: #fff;
  opacity: 0; transform: translateY(20px) scale(.98);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), overlay .5s allow-discrete, display .5s allow-discrete;
}
.video-modal[open] { opacity: 1; transform: none; }
@starting-style { .video-modal[open] { opacity: 0; transform: translateY(20px) scale(.98); } }
.video-modal::backdrop { background: rgba(241, 241, 241, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-modal__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  min-height: 40px; padding: 0 1rem; border: 0; border-radius: var(--radius-btn);
  background: #fff; color: var(--ink); cursor: pointer;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}


/* ==========================================================================
   08. MANIFESTO + N S P
   ========================================================================== */
.manifesto { --p: 0; position: relative; height: var(--manifesto-track); }
.manifesto__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.manifesto__text {
  font-size: clamp(1.7rem, 3.1vw, 3.2rem);
  font-weight: 300; line-height: 1.12; text-transform: uppercase;
}
.manifesto__text .w { color: color-mix(in srgb, var(--ink) calc(var(--o, 0) * 100%), var(--soft)); transition: color .2s linear; }
.manifesto__frame { position: relative; aspect-ratio: 4 / 5; max-height: 76svh; background: var(--black); overflow: hidden; }
.manifesto__video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - var(--p) * .1)); }
.manifesto__count {
  position: absolute; right: 0; bottom: 0;
  padding: 1rem 1.3rem; background: var(--bg);
  font-size: 1.6rem; font-weight: 600; line-height: 1;
}

.letters { --p: 0; position: relative; height: var(--letters-track); }
.letters__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center;
}
.letters__shapes { position: absolute; inset: 0; width: 100%; height: 100%; translate: 0 calc((.5 - var(--p)) * 16svh); }
.letters__shapes polyline { fill: none; stroke: var(--shape); stroke-width: 30; }
.letters__kicker, .letters__caption {
  position: relative;
  opacity: clamp(0, calc((var(--p) - .55) * 4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .55) * 4), 1)) * 20px));
}
.letters__kicker { font-size: var(--fs-label); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.letters__caption { max-width: 34ch; padding-inline: var(--gutter); font-family: var(--font-mono); color: #444; }
.letters__word { position: relative; display: flex; font: 800 clamp(6rem, 20vw, 17rem)/.9 var(--font); }
.letters__word span { display: inline-block; transform: translateX(calc((1 - var(--p)) * var(--dx))); }
.letters__word span:nth-child(1) { --dx: -34vw; }
.letters__word span:nth-child(2) { --dx: 0vw; color: var(--accent); }
.letters__word span:nth-child(3) { --dx: 34vw; }


/* ==========================================================================
   09. FROTA
   ========================================================================== */
.fleet { padding: var(--section-y) 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.stat { display: grid; gap: 1.4rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); background: var(--shape); }
.stat dd { font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 600; line-height: 1; }
.stat dt { font-family: var(--font-mono); font-size: .9rem; color: #444; }


/* ==========================================================================
   10. SERVIÇOS
   ========================================================================== */
.services { padding: 0 0 var(--section-y); }
.panel-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--card-gap); margin-bottom: var(--card-gap); }
.panel-row--flip { grid-template-columns: 1.25fr 1fr; }
.panel-row--flip .panel--text { order: 2; }
.panel { position: relative; min-height: clamp(320px, 32vw, 440px); overflow: hidden; }
.panel--text { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.75rem, 3vw, 2.75rem); background: var(--shape); }
.panel--dark { background: var(--black); color: #fff; }
.panel--dark p { color: rgba(255, 255, 255, .78); }
.panel__num { font-size: clamp(1.6rem, 1.7vw, 2.2rem); font-weight: 600; line-height: 1; }
.panel__title { margin-top: auto; font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.panel--text p { max-width: 38ch; font-size: .95rem; color: #444; }
.panel--media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1); transform: scale(1.08);
  transition: transform 1.6s var(--ease-out), filter 1s var(--ease-out);
}
.panel--media:hover img { filter: grayscale(0); }


/* ==========================================================================
   11. RAIO-X — scroll wipes the solid render into its wireframe
   ========================================================================== */
.xray { --p: 0; position: relative; height: var(--xray-track); }
.xray__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-content: center; }
.xray__media { --wipe: calc((1 - var(--p)) * 100%); position: relative; width: min(1180px, 94vw); aspect-ratio: 16 / 9; margin: 0 auto; }
.xray__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.xray__wire  { clip-path: inset(0 0 0 var(--wipe)); }
.xray__solid { clip-path: inset(0 calc(100% - var(--wipe)) 0 0); filter: drop-shadow(0 30px 30px rgba(0,0,0,.12)); }
.xray__scan { position: absolute; top: 6%; bottom: 6%; left: var(--wipe); width: 1.5px; background: var(--accent); opacity: calc(1 - max(0, (var(--p) - .92) * 12)); }
.xray__card {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 8svh, 5rem);
  display: grid; gap: .9rem;
  width: min(420px, calc(100% - 2 * var(--gutter)));
  padding: clamp(1.4rem, 2vw, 2rem);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.xray__title { font-size: var(--fs-h3); font-weight: 700; text-transform: uppercase; }
.xray__card p:last-child { font-size: .92rem; color: #333; }


/* ==========================================================================
   12. CHAMADA — split text over moving white shapes
   ========================================================================== */
.tunnel { --p: 0; position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--black); color: #fff; }
/* background photo: slow vertical drift + gentle zoom-out while the section crosses the screen */
.tunnel__bg {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  object-fit: cover; object-position: 30% 55%;
  transform: translateY(calc((var(--p) - .5) * -8%)) scale(calc(1.12 - var(--p) * .08));
}
.tunnel__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,11,.72) 0%, rgba(11,11,11,.35) 50%, rgba(11,11,11,.72) 100%),
    linear-gradient(0deg, rgba(11,11,11,.75) 0%, rgba(11,11,11,0) 55%);
}
.tunnel__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.tunnel__shapes polyline { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 34; }
.tunnel__a { translate: calc((var(--p) - .5) * -120px) 0; }
.tunnel__b { translate: calc((var(--p) - .5) * 120px) 0; }
.tunnel__inner { position: relative; z-index: 1; }
.tunnel__title { display: flex; justify-content: space-between; gap: 2rem; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 300; text-transform: uppercase; }
.tunnel__left { font-weight: 700; }
.tunnel__right { text-align: right; }
.tunnel__foot { display: grid; justify-items: center; gap: 1.5rem; margin-top: clamp(6rem, 18vh, 12rem); text-align: center; color: rgba(255, 255, 255, .88); }


/* ==========================================================================
   13. CONTATO
   ========================================================================== */
.contact { padding: var(--section-y) 0; }
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact__lead { max-width: 32rem; margin-top: 1.5rem; font-family: var(--font-mono); color: #444; }
.contact__list { margin-top: 2.5rem; border-top: 1.5px solid var(--ink); }
.contact__list li { display: grid; gap: .2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact__label { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; }
a.contact__value { transition: color .3s; }
a.contact__value:hover { color: var(--accent); }

.quote-form { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--shape); }
.quote-form__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .3rem; }
.quote-form__title { font-size: var(--fs-h3); font-weight: 700; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .8rem .9rem;
  border: 0; border-bottom: 1.5px solid #CFCFCF; border-radius: 0;
  background: var(--bg); color: var(--ink);
  font: 500 1rem/1.4 var(--font);
  transition: border-color .3s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7A7A7A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.quote-form__status { min-height: 1.4em; font-family: var(--font-mono); font-size: .85rem; color: #444; }


/* ==========================================================================
   14. FOOTER — black accent block
   ========================================================================== */
.site-footer { background: var(--black); color: #fff; padding: var(--section-y) 0 2rem; }
.site-footer__cta { display: grid; justify-items: center; gap: 2rem; text-align: center; }
.site-footer__title { max-width: 18ch; font-size: var(--fs-h2); font-weight: 300; line-height: 1.05; text-transform: uppercase; }
.site-footer__cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  margin-top: clamp(5rem, 12vw, 9rem); padding-top: 2.5rem;
  border-top: 1px solid var(--line-dark); font-size: .92rem;
}
.site-footer__cols > * { display: grid; align-content: start; gap: .5rem; }
.logo--light { align-self: start; justify-self: start; display: inline-flex !important; }
.site-footer__cols a, .site-footer__cols p { color: rgba(255, 255, 255, .82); }
.site-footer__cols a:hover { color: #fff; }
.site-footer__label { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A3A3A3 !important; margin-bottom: .3rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; font-family: var(--font-mono); font-size: .8rem; color: #A3A3A3; }


/* ==========================================================================
   15. ENTRANCE ANIMATIONS (unchanged behaviour)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--dur-in) var(--ease-out) var(--delay, 0s), transform var(--dur-in) var(--ease-out) var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em; margin-block: -.08em; }
.word__inner { display: inline-block; }
.js [data-split] .word__inner { transform: translate3d(0, 110%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--delay, 0s) + var(--line-i, 0) * .1s + var(--word-i, 0) * .02s); }
.js [data-split].is-in .word__inner { transform: none; }
.js [data-reveal-row] .panel { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal-row] .panel--text  { transform: translateX(-40px); }
.js [data-reveal-row] .panel--media { transform: translateX(40px); transition-delay: .1s; }
.js [data-reveal-row].panel-row--flip .panel--text  { transform: translateX(40px); }
.js [data-reveal-row].panel-row--flip .panel--media { transform: translateX(-40px); }
.js [data-reveal-row].is-in .panel { opacity: 1; transform: none; }
.js [data-reveal-row].is-in .panel--media img { transform: scale(1); }


/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__note--top { display: none; }
  .hero__product { left: 57%; height: 48svh; }
  .hero__card { left: 58%; width: 26vw; }
  .hero__title { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
  .contact__grid { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* Phones & small tablets: the hero becomes a vertical flow */
@media (max-width: 768px) {
  :root { --edge: 6vw; --manifesto-track: 200svh; --letters-track: 170svh; --xray-track: 170svh; }

  .site-header { gap: 1rem; padding-left: 14px; }
  .site-header__nav, .site-header__cta { display: none; }
  .site-header__menu { display: inline-flex; align-items: center; margin-left: auto; }

  .hero {
    height: auto; min-height: 100svh;
    display: flex; flex-direction: column;
    padding: 1.4rem var(--edge) 6.5rem;
  }
  .hero > * { position: relative; left: auto; right: auto; top: auto; translate: none; }
  .hero__shapes { position: absolute; inset: 0; }
  .hero__bar { order: 0; }
  .hero__bar::after { width: 100%; top: calc(100% + 12px); }
  .hero__nav, .hero__lang { display: none; }
  .hero__menu { display: inline-flex; align-items: center; margin-left: auto; }
  .hero__intro { order: 1; margin-top: 2.6rem; width: auto; }
  .hero__title > span { white-space: normal; }
  .hero__title { font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
  .hero__product { order: 2; width: 100%; height: auto; margin-top: 1rem; }
  .hero__card { order: 3; width: 100%; min-height: 0; margin-top: -9%; padding: 1.3rem 1.2rem; font-size: .82rem; grid-template-rows: auto; }
  .hero__card-top { font-weight: 700; }
  .hero__card-text { grid-column: 1 / -1; max-width: none; }
  .hero__card-tag { grid-row: 3; color: var(--muted); }
  .hero__dots { order: 4; margin-top: 1.4rem; gap: 10px; }
  .hero__note--dot { order: 5; width: auto; margin-top: 1.2rem; }
  .hero__note--low, .hero__counter { display: none; }
  .hero__media { order: 6; width: 100%; margin-top: 1.6rem; }
  .video-card { width: 100%; }
  .hero__mono { margin-top: 1rem; font-size: .82rem; }
  .hero__down { position: absolute; width: 64px; height: 76px; }

  .manifesto__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .manifesto__frame { aspect-ratio: 16 / 10; order: -1; }
  .manifesto__text { font-size: clamp(1.35rem, 6vw, 1.9rem); }

  .panel-row, .panel-row--flip { grid-template-columns: 1fr; }
  .panel-row--flip .panel--text { order: 0; }
  .panel { min-height: 260px; }
  .panel--text { min-height: 0; }
  .stats { grid-template-columns: 1fr; }
  .xray__card { position: relative; right: auto; bottom: auto; margin: 1.5rem auto 0; }
  .tunnel__title { flex-direction: column; }
  .tunnel__right { text-align: left; }
  .tunnel__bg { object-position: 28% 55%; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; }
}


/* ==========================================================================
   17. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-split] .word__inner, .js [data-reveal-row] .panel,
  .js .hero__truck, .js .hero__card, .js .hero__bar, .js .hero__counter, .js .hero__down,
  .js .hero__shapes polygon, .js .hero__shapes rect {
    opacity: 1; transform: none; transition: none;
  }
  .js .hero__shapes polyline { stroke-dashoffset: 0; transition: none; }
  .hero__shapes, .hero__product, .hero__card { translate: none; }
  .tunnel__bg { transform: none; }
  .hero__truck { scale: none; }
  .loader__mark, .loader__bars { animation: none; transform: none; opacity: 1; }
  .loader, .menu, .menu__nav a { transition: none; }
  :root { --letters-track: 100svh; --xray-track: 100svh; }
  .letters, .xray { --p: 1 !important; }
}
