/* ==========================================================================
   Transravini — "Manifesto de Carga"
   Structural DNA: Ledger / Registry — a página lida como um conhecimento de
   transporte: códigos mono, linhas de registro, rota desenhada no scroll.
   Mood: Noturno · Preciso · Confiável. Cantos retos. Vermelho = único acento.
   ========================================================================== */

:root {
  /* palette (aprovada no gate H2) */
  --red: #b5121b;
  --red-d: #9c0f17;
  --navy: #071628;
  --navy-2: #0c1b2c;
  --graphite: #202124;
  --black: #111214;
  --paper: #f7f7f5;
  --sand: #eeece7;
  --gray: #65717a;
  --line: rgba(17, 36, 58, .14);
  --line-strong: rgba(17, 36, 58, .28);
  --line-light: rgba(255, 255, 255, .14);
  --on-dark: #f7f7f5;
  --on-dark-2: rgba(247, 247, 245, .74); /* ≥ 7:1 sobre navy */

  /* type */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-h1: clamp(2.65rem, 1.2rem + 6.2vw, 5.5rem);
  --t-h2: clamp(2.1rem, 1.2rem + 3.6vw, 4.25rem);
  --t-h3: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  --t-lede: clamp(1.075rem, 1rem + .35vw, 1.3rem);
  --t-mono: .8125rem; /* 13px piso */

  /* rhythm */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --wrap: 1360px;
  --section: clamp(5rem, 4rem + 6vw, 9.5rem);
  --nav-h: 76px;

  /* motion */
  --e-out: cubic-bezier(.2, .7, .2, 1);
  --e-expo: cubic-bezier(.16, 1, .3, 1);
  --e-snap: cubic-bezier(.77, 0, .175, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* scrollbar */
html { scrollbar-color: var(--gray) var(--navy); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: #3a4a5a; border: 2px solid var(--navy); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* grain — warmth, 4% */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* focus */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.section--dark :focus-visible, .section--ink :focus-visible, .hero :focus-visible,
.quote :focus-visible, .footer :focus-visible, .nav :focus-visible, .menu :focus-visible {
  outline-color: #fff;
}

.sr-only {
  position: absolute !important; 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: 1rem; top: -4rem; z-index: 200;
  background: var(--red); color: #fff; padding: .75rem 1rem; font-weight: 600; text-decoration: none;
  transition: top .2s var(--e-out);
}
.skip:focus { top: 1rem; }

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--graphite);
  margin-bottom: 1.5rem;
}
.eyebrow .mono {
  color: var(--red);
  padding-right: .75rem;
  border-right: 1px solid var(--line-strong);
}
.eyebrow--light { color: var(--on-dark-2); }
.eyebrow--light .mono { color: #fff; border-color: var(--line-light); }
.tick { width: 10px; height: 10px; background: var(--red); flex: none; }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 16ch;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.lede { font-size: var(--t-lede); line-height: 1.6; max-width: 56ch; color: var(--graphite); }

/* buttons — retos, sinal vermelho */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; border-radius: 0;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--e-out), border-color .3s var(--e-out), background-color .3s var(--e-out);
}
.btn > span[aria-hidden] { transition: transform .45s var(--e-expo); }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sweep, var(--red-d));
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--e-expo);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn--red { --bg: var(--red); --fg: #fff; --bd: var(--red); box-shadow: 0 10px 26px -10px rgba(181, 18, 27, .55); }
.btn--red:hover { --bd: var(--red-d); }
.btn--ghost { --fg: #fff; --bd: rgba(255, 255, 255, .5); --sweep: #fff; }
.btn--ghost:hover { --fg: var(--navy); --bd: #fff; }
.btn--dark { --bg: var(--navy); --fg: #fff; --bd: var(--navy); --sweep: var(--red); }
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .9375rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.ico { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; text-decoration: none; color: var(--graphite);
  padding-bottom: .35rem;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 2px no-repeat;
  transition: background-size .5s var(--e-expo), color .3s;
}
.link-arrow span { color: var(--red); transition: transform .45s var(--e-expo); }
.link-arrow:hover { background-size: 30% 2px; }
.link-arrow:hover span { transform: translateX(6px); }

/* media slot — navy fallback while owned images are being generated */
.media {
  position: relative; overflow: hidden; margin: 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(120% 80% at 80% 20%, #13263d 0%, var(--navy) 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.js .media img { opacity: 0; transition: opacity 1.2s var(--e-out); }
.js .media img.is-loaded { opacity: 1; }

/* ==========================================================================
   NAV — status bar com pip de rota (GRU → CGR) que avança com o scroll
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: #fff;
  transition: background-color .4s var(--e-out), box-shadow .4s var(--e-out), transform .5s var(--e-expo);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 22, 40, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .4s var(--e-out);
  border-bottom: 1px solid var(--line-light);
}
.nav.is-solid::before, .nav.is-open::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__bar {
  height: var(--nav-h);
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
}
.brand { display: inline-flex; flex: none; text-decoration: none; }
.brand__plate {
  display: block; background: #fff;
  padding: 7px 10px;
  box-shadow: 0 0 0 1px rgba(17, 36, 58, .08);
}
.brand__plate img { width: 128px; height: auto; }
.brand--lg .brand__plate { padding: 14px 18px; }
.brand--lg .brand__plate img { width: 220px; }

.route-pip {
  display: none; align-items: center; gap: .65rem;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--on-dark-2);
}
.route-pip__track { position: relative; width: 120px; height: 1px; background: var(--line-light); }
.route-pip__fill { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.route-pip__dot {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%);
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff;
  box-shadow: 0 0 0 4px rgba(181, 18, 27, .35);
}

.nav__links { display: none; margin-left: auto; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  position: relative; text-decoration: none; font-size: .9375rem; font-weight: 500;
  color: var(--on-dark); padding: .5rem 0; opacity: .82; transition: opacity .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--e-expo);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { margin-left: auto; }
.nav__cta span { display: none; }
.nav__toggle {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-light); cursor: pointer; flex: none;
}
.nav__burger { width: 20px; height: 10px; position: relative; }
.nav__burger i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: #fff;
  transition: transform .45s var(--e-expo), top .45s var(--e-expo);
}
.nav__burger i:first-child { top: 0; }
.nav__burger i:last-child { top: 8.5px; }
.nav.is-open .nav__burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav.is-open .nav__burger i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--navy);
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list li { border-bottom: 1px solid var(--line-light); }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.75rem, 8vw, 2.5rem);
  letter-spacing: -.02em; line-height: 1.1; text-decoration: none; color: #fff;
}
.menu__list .mono { color: var(--on-dark-2); font-size: .75rem; min-width: 2rem; }
.menu.is-in .menu__list li { animation: menuIn .6s var(--e-expo) both; animation-delay: calc(var(--i, 0) * 50ms + 60ms); }
@keyframes menuIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu__foot { display: grid; gap: 1.25rem; }
.menu__meta { color: var(--on-dark-2); line-height: 2; }
.menu__meta a { color: #fff; text-decoration: none; margin-left: .5rem; }

@media (min-width: 560px) {
  .nav__cta span { display: inline; }
  .brand__plate img { width: 148px; }
}
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
  .nav__toggle, .menu { display: none !important; }
}
@media (min-width: 1280px) {
  .route-pip { display: inline-flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--navy);
  overflow: hidden;
}
.hero__media { position: absolute; inset: -6% 0 -6% 0; z-index: -3; }
.hero__media img { object-position: 68% 50%; transform: scale(1.08); }
.js .hero__media img { transition: opacity 1.4s var(--e-out), transform 2.4s var(--e-expo); }
.hero__media img.is-loaded, html:not(.js) .hero__media img { transform: scale(1); }
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 22, 40, .96) 0%, rgba(7, 22, 40, .84) 34%, rgba(7, 22, 40, .3) 70%, rgba(7, 22, 40, .18) 100%),
    linear-gradient(0deg, rgba(7, 22, 40, .9) 0%, rgba(7, 22, 40, .2) 38%, transparent 60%),
    linear-gradient(180deg, rgba(7, 22, 40, .6) 0%, transparent 22%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: calc(100% / 12) 120px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 60%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 60%, transparent 100%);
}
@media (max-width: 759px) {
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(7, 22, 40, .94) 0%, rgba(7, 22, 40, .8) 60%, rgba(7, 22, 40, .55) 100%),
      linear-gradient(0deg, rgba(7, 22, 40, .92) 0%, rgba(7, 22, 40, .3) 45%, rgba(7, 22, 40, .55) 100%);
  }
}
.hero__inner { padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 6rem)); padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.hero .eyebrow { margin-bottom: clamp(1.25rem, 3vh, 2rem); flex-wrap: wrap; row-gap: .25rem; }
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--t-h1); line-height: .95; letter-spacing: -.03em;
  max-width: 12ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.stop {
  display: inline-block; width: .16em; height: .16em; margin-left: .06em;
  background: var(--red); vertical-align: baseline;
}
.hero__sub {
  margin-top: clamp(1.5rem, 3vh, 2rem);
  max-width: 46ch; font-size: var(--t-lede); line-height: 1.55; color: var(--on-dark-2);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.75rem, 4vh, 2.5rem); }

.hero__coord {
  position: absolute; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  color: var(--on-dark-2); font-size: .75rem; display: none;
}
@media (min-width: 900px) { .hero__coord { display: block; } }

.manifest { border-top: 1px solid var(--line-light); background: rgba(7, 22, 40, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.manifest__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 479px) {
  .manifest__row li { font-size: .95rem; gap: .5rem; }
  .manifest__row li .mono { display: none; }
}
.manifest__row li {
  display: flex; align-items: baseline; gap: .75rem;
  padding: 1.1rem 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem); letter-spacing: -.01em;
  border-bottom: 1px solid var(--line-light);
}
.manifest__row li:nth-child(odd) { padding-right: 1rem; }
.manifest__row li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-light); }
.manifest__row li:nth-last-child(-n+2) { border-bottom: 0; }
.manifest__row .mono { color: var(--on-dark-2); font-size: .75rem; }
.manifest__row li::before { content: ""; width: 6px; height: 6px; background: var(--red); align-self: center; flex: none; order: -1; }
@media (min-width: 900px) {
  .manifest__row { grid-template-columns: repeat(4, 1fr); }
  .manifest__row li { padding: 1.5rem 1.25rem; border-bottom: 0; }
  .manifest__row li:nth-child(n) { padding-left: 1.25rem; padding-right: 1.25rem; border-left: 1px solid var(--line-light); }
  .manifest__row li:first-child { padding-left: 0; border-left: 0; }
}

/* hero entry choreography */
.js .hero [data-hero-step] { opacity: 0; transform: translateY(18px); }
.js .hero .line > [data-hero-step] { opacity: 1; transform: translateY(105%); }
.js .hero.is-in [data-hero-step] {
  opacity: 1; transform: none;
  transition: opacity .8s var(--e-out), transform 1.1s var(--e-expo);
  transition-delay: calc(var(--s, 0) * 90ms + 150ms);
}

/* ==========================================================================
   TESE — palavras acendem com o scroll
   ========================================================================== */
.thesis { background: var(--paper); padding-block: clamp(5rem, 4rem + 7vw, 10rem) clamp(1rem, 3vw, 2rem); }
.thesis__text {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 1rem + 4.4vw, 4.75rem);
  line-height: 1.02; letter-spacing: -.028em; max-width: 19ch; text-wrap: balance;
}
.thesis__text strong { font-weight: 600; }
.thesis__text .w { transition: color .35s linear; }
.js .thesis__text .w { color: rgba(32, 33, 36, .16); }
.js .thesis__text .w.is-lit { color: var(--graphite); }
.thesis__text strong .w:last-child::after {
  content: ""; display: inline-block; width: .14em; height: .14em; margin-left: .04em; background: var(--red);
}

/* ==========================================================================
   PROBLEMA
   ========================================================================== */
.problem__grid { display: grid; gap: 2.5rem; }
.problem__body { display: grid; gap: 2.5rem; }
.chain { border-top: 1px solid var(--line); counter-reset: c; }
.chain li {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -.015em; line-height: 1.2;
  transition: padding-left .5s var(--e-expo), color .3s;
}
.chain li .mono { color: var(--gray); min-width: 4.5rem; }
.chain li:hover { padding-left: .75rem; }
.chain li:hover .mono { color: var(--red); }
.problem__close {
  font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3);
  line-height: 1.15; letter-spacing: -.015em; max-width: 24ch;
  padding-left: 1.25rem; border-left: 3px solid var(--red);
}
.problem__close span { color: var(--gray); }
@media (min-width: 960px) {
  .problem__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); }
  .problem__head { position: sticky; top: calc(var(--nav-h) + 3rem); align-self: start; }
}

/* ==========================================================================
   SERVIÇOS — linhas assimétricas, não cards
   ========================================================================== */
.services { background: var(--sand); }
.head-row { display: grid; gap: 0; margin-bottom: clamp(3rem, 6vw, 6rem); }
.head-row .h2 { max-width: 18ch; }
.svc {
  display: grid; gap: 1.75rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}
.svc:last-child { padding-bottom: 0; }
.svc__media { aspect-ratio: 4 / 3; }
.svc__media img { position: absolute; inset: -8% 0; height: 116%; }
.svc__body { display: grid; align-content: start; gap: 1rem; max-width: 34rem; }
.svc__body p:not(.svc__code) { color: var(--graphite); font-size: 1.0625rem; max-width: 40ch; }
.svc__code { color: var(--red); }
.svc .link-arrow { justify-self: start; margin-top: .5rem; }
@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 2rem; }
  .svc__media { grid-column: 1 / span 7; }
  .svc__body { grid-column: 9 / span 4; }
  .svc--flip .svc__media { grid-column: 6 / span 7; grid-row: 1; }
  .svc--flip .svc__body { grid-column: 1 / span 4; grid-row: 1; }
  .svc:nth-of-type(2) .svc__media { margin-top: -3rem; }
  .svc:nth-of-type(3) .svc__media { grid-column: 2 / span 6; }
}

/* ==========================================================================
   CONTROLE — ledger escuro
   ========================================================================== */
.section--dark { background: var(--navy); color: var(--on-dark); overflow: hidden; }
.section--ink { background: var(--black); color: var(--on-dark); }
.grid-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(90% 70% at 85% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(90% 70% at 85% 0%, #000 0%, transparent 70%);
}
.control .wrap { position: relative; }
.control__head { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.control .h2 { max-width: 14ch; }
.ledger { border-top: 1px solid var(--line-light); }
.ledger__row {
  position: relative;
  display: grid; grid-template-columns: 3rem 1fr; gap: .35rem 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line-light);
  transition: background-color .4s var(--e-out), padding .5s var(--e-expo);
}
.ledger__row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--e-expo);
}
.ledger__n { color: var(--on-dark-2); padding-top: .55rem; }
.ledger__term {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.25rem); line-height: 1; letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.ledger__desc { grid-column: 2; color: var(--on-dark-2); max-width: 40ch; }
@media (hover: hover) {
  .ledger__row:hover { background: rgba(255, 255, 255, .035); padding-left: 1.25rem; }
  .ledger__row:hover::before { transform: scaleY(1); transform-origin: top; }
  .ledger__row:hover .ledger__n { color: #fff; }
}
@media (min-width: 900px) {
  .ledger__row { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 1.85rem 0; }
  .ledger__n { padding-top: 0; }
  .ledger__desc { grid-column: 3; font-size: 1.0625rem; }
}

/* ==========================================================================
   PARA QUEM
   ========================================================================== */
.audience__grid { display: grid; gap: 3rem; }
.sectors { display: grid; border-top: 1px solid var(--line-strong); }
.sector { padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .4rem; align-content: start; }
.sector dt {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  letter-spacing: -.015em; line-height: 1.15;
}
.sector dt .mono {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border: 1px solid var(--line-strong); color: var(--red); font-size: .75rem; letter-spacing: 0; flex: none;
  transform: translateY(-.15em);
}
.sector dd { color: var(--gray); padding-left: 2.8rem; }
@media (min-width: 760px) {
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector { padding: 2rem 2rem 2rem 0; }
  .sector:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
}
@media (min-width: 1060px) {
  .audience__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
}

/* ==========================================================================
   COMO FUNCIONA — trilho preenchido pelo scroll
   ========================================================================== */
.head-row--light .h2 { color: #fff; }
.steps { position: relative; --prog: 0; }
.steps__rail {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: var(--line-light);
}
.steps__fill {
  position: absolute; inset: 0; background: var(--red);
  transform-origin: top; transform: scaleY(var(--prog));
}
.steps__list { display: grid; gap: 2.75rem; }
.step { position: relative; padding-left: 3rem; display: grid; gap: .6rem; }
.step__dot {
  position: absolute; left: 0; top: .35rem; width: 15px; height: 15px;
  background: var(--black); border: 1px solid rgba(255, 255, 255, .4);
  transition: background-color .4s var(--e-out), border-color .4s, box-shadow .6s var(--e-expo);
}
.step.is-on .step__dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(181, 18, 27, .22); }
.step__n { color: var(--on-dark-2); }
.step__t {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.05; letter-spacing: -.02em; color: #fff;
  transition: opacity .5s var(--e-out);
}
.step p { color: var(--on-dark-2); max-width: 30ch; }
.js .step:not(.is-on) .step__t, .js .step:not(.is-on) p { opacity: .45; }
.step p { transition: opacity .5s var(--e-out); }
@media (min-width: 960px) {
  .steps__rail { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .steps__fill { transform-origin: left; transform: scaleX(var(--prog)); }
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .step { padding-left: 0; padding-top: 3rem; padding-right: 1rem; }
  .step__dot { top: 0; }
}

/* ==========================================================================
   ROTAS — traçado desenhado no scroll
   ========================================================================== */
.routes__top { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.routes__lede { color: var(--gray); }
@media (min-width: 960px) {
  .routes__top { grid-template-columns: 7fr 5fr; align-items: end; gap: 4rem; }
}
.route-card { margin: 0; border: 1px solid var(--line-strong); background: #fff; }
.route-card__cap {
  display: grid; gap: .5rem; padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.route-card__cap .mono { color: var(--red); }
.route-card__cap strong {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  letter-spacing: -.025em; line-height: 1.05;
}
.route-card__cap strong span { color: var(--red); }
.route-card__cap > span:last-child { color: var(--gray); }
.route-map { position: relative; background: var(--paper); padding: 4.75rem 0; }
.route-map svg { width: 100%; height: auto; overflow: visible; }
.route-map__base, .route-map__line { vector-effect: non-scaling-stroke; }
.route-map__base { fill: none; stroke: rgba(17, 36, 58, .2); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.route-map__line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: square; }
.route-map__pin circle { fill: var(--navy); }
.route-map__pin .halo { fill: none; stroke: var(--navy); stroke-width: 1; opacity: .35; }
.route-map__pin--b circle:not(.halo) { fill: var(--red); }
.route-map__pin--b .halo { stroke: var(--red); animation: halo 2.4s var(--e-out) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.route-map__truck { fill: #fff; stroke: var(--navy); stroke-width: 3; transition: opacity .3s; }
.route-map__truck.is-arrived { opacity: 0; }
.route-map__label { position: absolute; display: grid; gap: .15rem; }
.route-map__label strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); letter-spacing: -.015em; line-height: 1.1; }
.route-map__label .mono { color: var(--gray); font-size: .75rem; }
.route-map__label--b { left: clamp(1rem, 3vw, 2rem); top: clamp(.75rem, 2vw, 1.5rem); }
.route-map__label--a { right: clamp(1rem, 3vw, 2rem); bottom: clamp(.75rem, 2vw, 1.5rem); text-align: right; }
.route-card__foot {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem); border-top: 1px solid var(--line);
}
.route-card__foot p { font-size: 1.125rem; }
@media (max-width: 599px) {
  .route-map__label .mono:last-child { display: none; }
}

/* ==========================================================================
   UNIDADES
   ========================================================================== */
.units { background: var(--sand); }
.units__grid { display: grid; gap: 3rem; }
.units__media { aspect-ratio: 4 / 5; max-width: 560px; width: 100%; }
.units__media img { position: absolute; inset: -6% 0; height: 112%; }
.units__media figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--navy); color: #fff; padding: .7rem 1rem; font-size: .75rem;
}
.units__body .h2 { margin-bottom: 1.5rem; }
.units__body .lede { margin-bottom: clamp(2rem, 4vw, 3rem); }
.unit { border-top: 1px solid var(--line-strong); padding: 1.75rem 0; display: grid; gap: 1rem; }
.unit:last-child { border-bottom: 1px solid var(--line-strong); }
.unit__head { display: grid; gap: .35rem; align-content: start; }
.unit__head .mono { color: var(--red); }
.unit__head h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; line-height: 1.05; }
.unit address > p { color: var(--graphite); margin-bottom: 1rem; }
.unit__links { display: grid; }
.unit__links a {
  display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0;
  border-top: 1px dashed var(--line-strong); text-decoration: none; font-weight: 500;
  overflow-wrap: anywhere; transition: color .25s, padding-left .45s var(--e-expo);
}
.unit__links .mono { color: var(--gray); min-width: 4.25rem; font-size: .75rem; flex: none; }
.unit__links a:hover { color: var(--red); padding-left: .5rem; }
.unit__legal { color: var(--gray); font-size: .75rem; }
@media (min-width: 960px) {
  .units__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .units__media { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .unit { grid-template-columns: 14rem 1fr; gap: 2rem; }
  .unit__legal { grid-column: 2; }
}

/* ==========================================================================
   COTAÇÃO
   ========================================================================== */
.quote { background: var(--navy); color: var(--on-dark); }
.quote__band { position: relative; isolation: isolate; overflow: hidden; }
.quote__media { position: absolute; inset: -10% 0; z-index: -2; }
.quote__media img { object-position: 50% 60%; }
.quote__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 22, 40, .94) 0%, rgba(7, 22, 40, .7) 50%, rgba(7, 22, 40, .35) 100%),
    linear-gradient(0deg, var(--navy) 0%, transparent 40%);
}
.quote__band-inner { padding-block: clamp(6rem, 5rem + 8vw, 11rem) clamp(4rem, 6vw, 6rem); }
.quote__title { color: #fff; max-width: 17ch; }
.quote__sub { margin-top: 1.5rem; max-width: 48ch; font-size: var(--t-lede); color: var(--on-dark-2); }
.quote__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.quote__person { display: grid; gap: .2rem; color: #fff; font-weight: 500; }
.quote__person .mono { color: var(--on-dark-2); font-size: .75rem; }
.quote__person a { color: #fff; text-underline-offset: 4px; text-decoration-color: var(--red); }

.quote__form-wrap { padding-block: clamp(3rem, 6vw, 6rem) var(--section); border-top: 1px solid var(--line-light); }
.quote__grid { display: grid; gap: 3rem; }
.quote__intro { display: grid; gap: 1rem; align-content: start; }
.quote__intro .h3 { color: #fff; }
.quote__intro > p:not(.mono) { color: var(--on-dark-2); max-width: 40ch; }
.quote__doc { color: var(--on-dark-2); padding-bottom: 1rem; border-bottom: 1px solid var(--line-light); }
.quote__contacts { margin-top: 1rem; border-top: 1px solid var(--line-light); }
.quote__contacts li { display: flex; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line-light); }
.quote__contacts .mono { color: var(--on-dark-2); min-width: 7.5rem; font-size: .75rem; flex: none; }
.quote__contacts a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.quote__contacts a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
@media (min-width: 1060px) {
  .quote__grid { grid-template-columns: 4fr 8fr; gap: clamp(3rem, 6vw, 6rem); }
  .quote__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

/* form — documento, não SaaS: rótulo mono acima, só borda inferior */
.form { display: grid; gap: 2.5rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.5rem 2rem; }
.form legend {
  color: #fff; padding: 0 0 .9rem; margin-bottom: .5rem; width: 100%;
  border-bottom: 1px solid var(--line-light);
}
.field { display: grid; gap: .45rem; min-width: 0; }
.field label {
  font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-dark-2);
}
.req { color: #ff8b8f; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .32); border-radius: 0;
  color: #fff; font-size: 1.0625rem;
  transition: border-color .3s var(--e-out), box-shadow .3s var(--e-out);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; cursor: pointer;
}
.field select option { background: var(--navy); color: #fff; }
.field input[type="date"] { color-scheme: dark; }
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 247, 245, .45); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(255, 255, 255, .6); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: #fff; box-shadow: 0 2px 0 0 var(--red);
}
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #ff8b8f; }
.field.is-valid input { border-bottom-color: rgba(255, 255, 255, .6); }
.field__err { font-size: .875rem; color: #ffb3b6; min-height: 0; }
.field__err:empty { display: none; }
@media (min-width: 640px) {
  .form fieldset { grid-template-columns: 1fr 1fr; }
  .form legend { grid-column: 1 / -1; }
  .field--full { grid-column: 1 / -1; }
}
.form__foot { display: grid; gap: 1rem; justify-items: start; padding-top: .5rem; }
.form__micro { color: var(--on-dark-2); font-size: .9375rem; max-width: 52ch; }
.form__status { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .04em; color: #fff; }
.form__status:empty { display: none; }
.form.is-pending [data-submit] { pointer-events: none; opacity: .8; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; gap: 2.5rem; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  letter-spacing: -.012em; line-height: 1.25;
  transition: color .25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--red); }
.qa__ico { position: relative; width: 22px; height: 22px; flex: none; border: 1px solid var(--line-strong); }
.qa__ico::before, .qa__ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px;
  background: currentColor; transition: transform .45s var(--e-expo);
}
.qa__ico::after { transform: rotate(90deg); }
.qa[open] .qa__ico { background: var(--red); border-color: var(--red); color: #fff; }
.qa[open] .qa__ico::after { transform: rotate(0); }
.qa p { padding: 0 3rem 1.75rem 0; color: var(--graphite); max-width: 62ch; }
.qa[open] p { animation: qaIn .5s var(--e-expo); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--black); color: var(--on-dark-2); padding: clamp(4rem, 7vw, 7rem) 0 calc(2rem + env(safe-area-inset-bottom)); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer__top { display: grid; gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-light); }
.footer__tag {
  font-family: var(--f-display); font-weight: 600; color: #fff;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5rem); line-height: .98; letter-spacing: -.03em;
}
.footer__tag span { color: var(--on-dark-2); }
.footer__cols { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__cols ul { display: grid; gap: .5rem; }
.footer__cols address, .footer__cols p:not(.footer__label) { line-height: 1.85; }
.footer__label { color: #fff; margin-bottom: 1rem; font-size: .75rem; }
.footer__legal {
  display: grid; gap: .5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-light);
  font-size: .75rem; letter-spacing: .06em; color: rgba(247, 247, 245, .62);
}
@media (min-width: 720px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1060px) {
  .footer__top { grid-template-columns: auto 1fr; align-items: end; }
  .footer__tag { justify-self: end; text-align: right; }
  .footer__cols { grid-template-columns: 1fr 1.2fr 1.2fr 1fr; }
  .footer__legal { grid-template-columns: auto 1fr auto; gap: 2rem; }
  .footer__legal p:nth-child(2) { justify-self: center; }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */
.wa-float {
  position: fixed; z-index: 95;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .65rem;
  height: 56px; padding: 0 16px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(181, 18, 27, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .5s var(--e-expo), opacity .4s var(--e-out), background-color .25s;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .55s var(--e-expo);
}
.wa-float:hover { background: var(--red-d); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 12rem; }
.wa-float.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.wa-float:focus-visible { outline-color: var(--navy); outline-offset: 4px; }
.wa-float::after {
  content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px;
  background: #fff; box-shadow: 0 0 0 2px var(--red);
}
@media (min-width: 1100px) { .wa-float__label { max-width: 12rem; } }

/* ==========================================================================
   REVEAL — sutil, variado por tipo
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--e-out), transform .8s var(--e-expo);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.js [data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0); translate: 0 .35em;
  transition: clip-path 1s var(--e-expo), translate 1s var(--e-expo);
}
.js [data-reveal="mask"] {
  opacity: 1; transform: none;
  clip-path: inset(12% 0 12% 0);
  transition: clip-path 1.3s var(--e-expo);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 -0.2em 0); translate: 0 0; }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

[data-parallax], [data-parallax-inner] { will-change: transform; }

/* ==========================================================================
   REDUCED MOTION — tudo estático, nada escondido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="mask"],
  .js .hero [data-hero-step], .js .hero .line > [data-hero-step] {
    opacity: 1 !important; transform: none !important; clip-path: none !important; translate: none !important;
  }
  .js .thesis__text .w { color: var(--graphite); }
  .js .step:not(.is-on) .step__t, .js .step:not(.is-on) p { opacity: 1; }
  .hero__media img { transform: none !important; }
  [data-parallax], [data-parallax-inner] { transform: none !important; will-change: auto; }
  .route-map__pin--b .halo { animation: none; opacity: .35; }
}
