/* =============================================================
   MRTrans — site institucional
   Tipografia: Manrope (única)
   Tema: light default + toggle dark, persistência em localStorage
   ============================================================= */

:root {
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --bg-soft: #ecebe5;
  --ink: #0e1014;
  --ink-soft: #4a4f57;
  --line: rgba(14, 16, 20, 0.10);
  --line-strong: rgba(14, 16, 20, 0.18);
  --accent: #c8102e;            /* vermelho marítimo, sóbrio */
  --accent-ink: #ffffff;
  --accent-soft: rgba(200, 16, 46, 0.08);
  --shadow: 0 30px 60px -30px rgba(14, 16, 20, 0.18);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gap: clamp(16px, 2vw, 28px);

  --t-fast: 220ms cubic-bezier(.2,.7,.2,1);
  --t-med: 460ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 900ms cubic-bezier(.2,.7,.2,1);
}

html[data-theme="dark"] {
  --bg: #0b0d10;
  --bg-elev: #14171c;
  --bg-soft: #1a1e25;
  --ink: #f4f3ee;
  --ink-soft: #a7afba;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --accent: #ff3a4a;
  --accent-ink: #0b0d10;
  --accent-soft: rgba(255, 58, 74, 0.12);
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.70);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--t-med), color var(--t-med);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast), opacity var(--t-fast); }
a:hover { opacity: .82; }
button { font: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); opacity: 1; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); transform: translateY(-2px); opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.nav__logo img { height: 40px; width: auto; }
.nav__menu {
  display: flex; gap: 26px; margin-left: auto; margin-right: auto;
  font-weight: 500; font-size: 15px;
}
.nav__menu a { position: relative; padding: 6px 0; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__menu a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { display: inline-flex; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { background: var(--bg-soft); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(620px, 92vh, 880px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video,
.hero__media-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media-fallback {
  background-image: url("../img/hero-1.jpg");
  background-size: cover;
  background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.14) translateY(-2%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.78) 100%);
}
html[data-theme="dark"] .hero__overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.70) 60%, rgba(0,0,0,.86) 100%);
}

.hero__content { color: #fff; padding-top: 60px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin: 0 0 22px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,.55); }
  100% { box-shadow: 0 0 0 14px rgba(200,16,46,0); }
}

.hero__title {
  font-weight: 700;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.hero__title-accent {
  font-weight: 300; font-style: normal;
  background: linear-gradient(90deg, #fff 0%, #c8d1de 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  max-width: 56ch; font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,.86); margin: 0 0 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.hero__cta .btn--primary { background: #fff; color: #0e1014; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero__cta .btn--ghost:hover { background: rgba(255,255,255,.1); }

.hero__stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 28px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label { font-size: 13px; color: rgba(255,255,255,.72); }

.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 3px; height: 8px; background: #fff; border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 18px; opacity: .3; }
}

/* ---------- Bigtype reveal (sticky scrollytelling) ---------- */
.bigtype {
  position: relative;
  height: 280vh;          /* room para scrollar e iluminar palavras */
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bigtype__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.bigtype__eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}
.bigtype__phrase {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 104px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  display: flex; flex-wrap: wrap; gap: .22em .25em;
  max-width: 18ch;
}
.bigtype__phrase span {
  color: color-mix(in srgb, var(--ink) 14%, transparent);
  transition: color 280ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
  display: inline-block;
}
.bigtype__phrase span.is-lit {
  color: var(--ink);
}
.bigtype__phrase span.bigtype__accent.is-lit {
  color: var(--accent);
}
.bigtype__progress {
  margin-top: 48px;
  height: 2px; width: min(420px, 80%);
  background: var(--line);
  position: relative; overflow: hidden;
  border-radius: 2px;
}
.bigtype__progress span {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  transition: width 120ms linear;
}

/* ---------- Showcase horizontal pinned ---------- */
.showcase {
  position: relative;
  height: 600vh;          /* 6 painéis × 100vh */
  background: var(--ink);
  color: var(--bg);
}
.showcase__sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.showcase__head {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 3; padding: 28px clamp(24px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; pointer-events: none;
}
.showcase__head .section__eyebrow { color: var(--accent); margin: 0 0 4px; }
.showcase__head .section__title {
  margin: 0; font-size: clamp(22px, 2.4vw, 32px); color: var(--bg);
  font-weight: 600; letter-spacing: -0.01em;
}
.showcase__indicator {
  flex-shrink: 0;
  width: 220px; height: 2px;
  background: rgba(255,255,255,.18);
  position: relative; border-radius: 2px;
}
.showcase__indicator span {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 16.66%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 80ms linear;
  will-change: transform;
}
.showcase__track {
  display: flex;
  height: 100%;
  width: 600%;            /* 6 panels */
  will-change: transform;
}
.panel {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  position: relative;
}
.panel__media {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.panel__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 60%, rgba(11,13,16,.7) 100%);
  pointer-events: none;
}
.panel__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.panel.is-active .panel__media img { transform: scale(1); }
.panel__body {
  padding: 0 clamp(40px, 7vw, 110px);
  max-width: 720px;
}
.panel__num {
  display: inline-block;
  font-size: 13px; letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 24px;
}
.panel h3 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.panel p {
  margin: 0;
  font-size: 19px;
  color: rgba(244,243,238,.75);
  max-width: 44ch;
  opacity: 0; transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1) 120ms, transform 800ms cubic-bezier(.2,.7,.2,1) 120ms;
}
.panel.is-active h3,
.panel.is-active p { opacity: 1; transform: none; }

/* ---------- Section heads ---------- */
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section__title {
  font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08;
  margin: 0 0 18px;
}
.section__lede { color: var(--ink-soft); font-size: 18px; max-width: 60ch; }

/* ---------- Services ---------- */
.services { padding: 110px 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service__media { aspect-ratio: 16 / 10; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { padding: 26px 26px 30px; }
.service__icon {
  width: 36px; height: 36px;
  filter: invert(0);
  margin-bottom: 14px;
}
html[data-theme="dark"] .service__icon { filter: invert(1) brightness(1.2); }
.service__body h3 {
  margin: 0 0 8px;
  font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
}
.service__body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Terminal ---------- */
.terminal { padding: 110px 0; background: var(--bg-soft); }
.terminal__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.terminal__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.terminal__media img { width: 100%; height: 100%; object-fit: cover; }
.terminal__badge {
  position: absolute; left: 22px; bottom: 22px;
  background: var(--bg-elev); color: var(--ink);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow);
}
.terminal__badge strong { font-size: 26px; letter-spacing: -0.02em; }
.terminal__badge span { font-size: 13px; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 10px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Fleet ---------- */
.fleet { padding: 110px 0; }
.fleet__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px;
  height: 540px;
}
.fleet__item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.fleet__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.fleet__item:hover img { transform: scale(1.06); }
.fleet__item:nth-child(1) { grid-row: span 2; }

/* ---------- Method (stack sticky) ---------- */
.method {
  padding: 110px 0 0;
  background: var(--ink);
  color: var(--bg);
}
.method .section__eyebrow { color: var(--accent); }
.method .section__title { color: var(--bg); }
.method .section__lede { color: rgba(244,243,238,.7); }

.stack {
  position: relative;
  padding: 0 0 30vh;
}
.stack__card {
  position: sticky;
  top: calc(120px + var(--i, 0) * 22px);
  width: min(100% - 40px, 980px);
  margin: 0 auto 28px;
  background: linear-gradient(180deg, #1a1e25 0%, #14171c 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  min-height: 56vh;
  display: flex; align-items: center;
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.6);
  transform-origin: top center;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 700ms cubic-bezier(.2,.7,.2,1);
}
.stack__card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent 30%, var(--accent-soft) 100%);
  opacity: 0; transition: opacity 700ms ease;
  pointer-events: none;
  z-index: -1;
}
.stack__card.is-pinned::before { opacity: 1; }
.stack__inner {
  width: 100%; max-width: 660px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px 36px;
  align-items: start;
}
.stack__icon {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,58,74,.18) 0%, rgba(255,58,74,.04) 100%);
  border: 1px solid rgba(255,58,74,.28);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  grid-row: span 3;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), border-color 500ms ease, box-shadow 500ms ease;
}
.stack__icon svg {
  width: 48px; height: 48px;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.stack__icon-badge {
  position: absolute;
  bottom: -6px; right: -6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #14171c;
}
.stack__card.is-pinned .stack__icon {
  transform: scale(1.05) rotate(-3deg);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,58,74,.10), 0 20px 40px -20px rgba(255,58,74,.4);
}
.stack__card.is-pinned .stack__icon svg {
  transform: scale(1.08);
  animation: iconPulse 2.4s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255,58,74,0)); }
  50%      { filter: drop-shadow(0 0 12px rgba(255,58,74,.6)); }
}
.stack__num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--accent);
  font-size: 13px; letter-spacing: .16em;
  padding: 6px 12px;
  border: 1px solid rgba(255,58,74,.3);
  border-radius: 999px;
  margin: 0;
  align-self: start;
  justify-self: start;
}
.stack__card h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--bg);
}
.stack__card p {
  margin: 0;
  font-size: 18px;
  color: rgba(244,243,238,.78);
  max-width: 56ch;
  line-height: 1.55;
}

/* ---------- Contact ---------- */
.contact { padding: 110px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact__list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); padding-top: 4px;
}

.contact__form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; gap: 14px;
}
.contact__form label { display: grid; gap: 6px; }
.contact__form label > span {
  font-size: 13px; color: var(--ink-soft); letter-spacing: .04em;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit; color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.contact__form textarea { resize: vertical; min-height: 100px; }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-elev);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form .btn { justify-self: start; margin-top: 6px; background: var(--accent); color: var(--accent-ink); }
.contact__form .btn:hover { transform: translateY(-2px); }
.form__note { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- Footer ---------- */
.foot { background: var(--bg-soft); padding: 70px 0 30px; }
.foot__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.foot__logo { height: 38px; width: auto; margin-bottom: 16px; }
.foot__grid h4 { margin: 0 0 14px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.foot__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-soft); }
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; color: var(--ink-soft);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE — mobile-first refinements
   Breakpoints:
   - 1024px: tablets em paisagem
   - 820px:  tablets em retrato / phablets
   - 640px:  mobile
   ============================================================ */

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .container { width: min(100% - 36px, var(--container)); }

  .services { padding: 90px 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .terminal { padding: 90px 0; }
  .terminal__grid { grid-template-columns: 1fr; gap: 40px; }
  .terminal__media { aspect-ratio: 16/10; }

  .fleet { padding: 90px 0; }
  .fleet__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 480px; }
  .fleet__item:nth-child(1) { grid-row: span 1; }

  .method { padding: 90px 0 0; }
  .stack__card { min-height: 50vh; }

  .contact { padding: 90px 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Phablet (≤ 820px) ---------- */
@media (max-width: 820px) {
  /* Tipografia base ajustada */
  body { font-size: 16px; line-height: 1.55; }

  /* Container respira mais */
  .container { width: min(100% - 32px, var(--container)); }

  /* Section heads mais compactas */
  .section__head { margin-bottom: 40px; }
  .section__title { font-size: clamp(28px, 5.5vw, 40px); line-height: 1.1; }
  .section__lede { font-size: 16.5px; }

  /* ---- Nav: esconder menu desktop, mostrar burger ---- */
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__menu {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 24px;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    gap: 18px; font-size: 17px;
  }
  .nav__inner { padding: 12px 0; }
  .nav__logo img { height: 36px; }

  /* ---- Hero: equilibrar, melhorar leitura ---- */
  .hero {
    min-height: auto;
    padding: 100px 0 64px;
    display: block;
  }
  .hero__content { padding-top: 8px; }
  .hero__eyebrow { font-size: 11.5px; padding: 7px 12px; margin-bottom: 18px; }
  .hero__title {
    font-size: clamp(32px, 8.5vw, 52px);
    line-height: 1.05;
    max-width: 100%;
    margin-bottom: 18px;
  }
  .hero__lede { font-size: 16px; max-width: 100%; margin-bottom: 28px; }
  .hero__cta { gap: 10px; margin-bottom: 40px; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; width: 100%; }
  .btn--lg { padding: 15px 24px; font-size: 15.5px; min-height: 50px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; padding-top: 24px; }
  .stat__num { font-size: 28px; }
  .stat__label { font-size: 12.5px; }
  .hero__scroll { display: none; }

  /* ---- Bigtype: mais compacta e legível ---- */
  .bigtype { height: 220vh; border-top: 0; }
  .bigtype__sticky { padding: 80px 0; }
  .bigtype__eyebrow { font-size: 11.5px; margin-bottom: 18px; }
  .bigtype__phrase {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.08;
    max-width: 100%;
    gap: .15em .25em;
  }
  .bigtype__progress { margin-top: 32px; width: 70%; }

  /* ---- Serviços: 1 coluna, melhor leitura ---- */
  .services { padding: 70px 0; }
  .services__grid { grid-template-columns: 1fr; gap: 18px; }
  .service { border-radius: 18px; }
  .service__media { aspect-ratio: 16/10; }
  .service__body { padding: 24px 22px 26px; }
  .service__icon { width: 32px; height: 32px; margin-bottom: 12px; }
  .service__body h3 { font-size: 21px; margin-bottom: 6px; }
  .service__body p { font-size: 15px; line-height: 1.55; }

  /* ---- Terminal ---- */
  .terminal { padding: 70px 0; }
  .terminal__media { aspect-ratio: 4/3; border-radius: 18px; }
  .terminal__badge { left: 16px; bottom: 16px; padding: 14px 16px; }
  .terminal__badge strong { font-size: 22px; }
  .terminal__badge span { font-size: 12px; }
  .terminal__body p { font-size: 15.5px; }
  .checklist { margin-top: 18px; }
  .checklist li { padding-left: 28px; font-size: 15px; }

  /* ---- Frota ---- */
  .fleet { padding: 70px 0; }
  .fleet__grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 220px); height: auto; gap: 12px; }
  .fleet__item { border-radius: 16px; }

  /* ---- Método (stack): empilhar ícone em cima ---- */
  .method { padding: 70px 0 0; }
  .method .section__head { padding: 0 16px; }
  .stack { padding: 0 0 20vh; }
  .stack__card {
    width: min(100% - 32px, 600px);
    min-height: auto;
    padding: 32px 26px;
    top: calc(80px + var(--i, 0) * 14px);
    margin-bottom: 18px;
    border-radius: 20px;
  }
  .stack__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stack__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    grid-row: auto;
  }
  .stack__icon svg { width: 32px; height: 32px; }
  .stack__icon-badge { font-size: 10px; padding: 3px 7px; bottom: -5px; right: -5px; }
  .stack__num { font-size: 12px; padding: 5px 10px; }
  .stack__card h3 { font-size: 24px; margin-bottom: 10px; line-height: 1.15; }
  .stack__card p { font-size: 15.5px; line-height: 1.6; }

  /* ---- Contactos ---- */
  .contact { padding: 70px 0; }
  .contact__form { padding: 24px 22px; border-radius: 18px; }
  .contact__form input,
  .contact__form select,
  .contact__form textarea { padding: 13px 14px; font-size: 16px; min-height: 48px; }
  .contact__form textarea { min-height: 110px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact__form .btn { width: 100%; justify-self: stretch; min-height: 52px; }
  .contact__list { margin-top: 22px; }
  .contact__list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .contact__label { font-size: 11px; padding-top: 0; }

  /* ---- Footer ---- */
  .foot { padding: 50px 0 24px; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .foot__logo { height: 34px; }
  .foot__bottom { font-size: 12px; padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
  /* Container ainda mais à beira */
  .container { width: min(100% - 28px, var(--container)); }

  /* Hero: ajustes finos */
  .hero { padding: 80px 0 56px; }
  .hero__title { font-size: clamp(30px, 9vw, 44px); letter-spacing: -0.015em; }
  .hero__lede { font-size: 15.5px; }

  /* Section padding mais apertado */
  .services,
  .terminal,
  .fleet,
  .contact { padding: 56px 0; }
  .method { padding: 56px 0 0; }

  /* Bigtype: garantir respiro */
  .bigtype { height: 200vh; }
  .bigtype__phrase {
    font-size: clamp(30px, 10vw, 44px);
    max-width: 14ch;
  }

  /* Stats no hero: 2x2 mas com altura confortável */
  .hero__stats { gap: 18px; padding-top: 22px; }

  /* Cards ainda mais compactos */
  .service__body { padding: 22px 20px 24px; }
  .stack__card { padding: 28px 22px; top: calc(72px + var(--i, 0) * 12px); }
  .stack__icon { width: 56px; height: 56px; border-radius: 14px; }
  .stack__icon svg { width: 28px; height: 28px; }
  .stack__card h3 { font-size: 22px; }
  .stack__card p { font-size: 15px; }

  .foot { padding: 40px 0 20px; }
}

/* ---------- Anti-overflow safety net ---------- */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }
  .hero__video, .hero__media-fallback { height: 100%; }
  .terminal__media img,
  .fleet__item img,
  .service__media img { height: 100%; }
}
