/* Ana Stein — transplante estrutural de tomcardermedia.com
   Medidas da captura em px @1920 → calc(N * var(--u)). */

:root {
  --u: calc(100vw / 1920);
  --gutter: max(16px, calc(36 * var(--u)));

  /* paleta medida (design-system.md da referência) */
  --bg: #efeeec;        /* Fog White */
  --ink: #281e1e;       /* Deep Ember — 13,99:1 sobre --bg */
  --accent: #ff3615;    /* Electric Ember — 3,13:1 sobre --bg (só UI/grande) */
  --white: #ffffff;
  --hero: #1e1717;      /* fundo do hero */
  --hero-ink: #f4f4f4;  /* texto do hero — 16,0:1 sobre --hero */
  --teal: #1b372e;      /* Deep Teal — superfície do menu */
  --muted: #6f6866;     /* nomes de clientes — 4,7:1 sobre --bg */

  --ff-display: "Archivo", "Arial Narrow", Arial, sans-serif; /* substitui GT Standard M Narrow Heavy */
  --ff-body: "Inter", Arial, sans-serif;
  --ff-mono: "DM Mono", ui-monospace, monospace;

  --fs-display: calc(177.333 * var(--u));
  --fs-h1: calc(154.667 * var(--u));
  --fs-h2: calc(140.667 * var(--u));
  --fs-h4: max(22px, calc(34.667 * var(--u)));
  --fs-h5: max(20px, calc(27 * var(--u)));
  --fs-body: clamp(16px, calc(19.333 * var(--u)), 20px);
  --fs-small: clamp(14px, calc(15.467 * var(--u)), 16px);

  --ease: cubic-bezier(.65, .05, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { margin: 0 var(--gutter); position: relative; }

/* ---------- tipografia ---------- */
.t-display, .t-h1, .t-h2, .t-h4, .t-h5, .nav__brand, .footer__wordmark, .menu__list a {
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.065em;
  word-spacing: 0.06em;
}
.t-display { font-size: var(--fs-display); line-height: 0.8; }
.t-h1 { font-size: var(--fs-h1); line-height: 0.825; }
.t-h2 { font-size: var(--fs-h2); line-height: 0.825; }
.t-h4 { font-size: var(--fs-h4); line-height: 1; }
.t-h5 { font-size: var(--fs-h5); line-height: 1; }
.t-small { font-size: var(--fs-small); line-height: 1.3; }
.t-eyebrow {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.section-text { max-width: clamp(320px, 33.4vw, 680px); }

/* linhas e palavras com máscara (reveal) */
.mask { display: inline-block; overflow: clip; padding: 0.14em; margin: -0.14em; vertical-align: top; }
.mask > .line { display: inline-block; }
[data-reveal-lines] .l { display: block; }
.split-mask { overflow: clip; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 9.67px; color: var(--ink); --copy: var(--white); }
.btn__box {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 4px; background: var(--white); border-radius: 4px; overflow: hidden;
}
.btn__mask {
  position: relative; z-index: 1; display: flex; align-items: center;
  height: 32px; padding: 0 12px; border: 1px solid currentColor; border-radius: 2px; overflow: hidden;
}
.btn__label {
  display: block;
  font-family: var(--ff-mono); font-weight: 500; font-size: 12px; line-height: 32px;
  letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 32px 0 var(--copy);
  transition: transform .55s var(--ease);
}
.btn__bg {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: -10%; right: -10%;
  background: var(--ink);
  transform: translateY(70px) rotate(15deg);
  transition: transform .55s var(--ease);
}
.btn__icon { position: relative; z-index: 1; width: 32px; height: 32px; color: var(--white); flex: none; }
.btn__icon-bg { position: absolute; inset: 0; background: var(--accent); border-radius: 2px; transition: transform .55s var(--ease); }
.btn__arrows { position: absolute; inset: 0; overflow: hidden; }
.btn__arrows svg { position: absolute; inset: 0; width: 32px; height: 32px; padding: 9.6px; transition: transform .55s var(--ease); }
.btn__arrows svg:first-child { transform: translateX(-200%); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__label { transform: translateY(-32px); }
  .btn:hover .btn__bg { transform: translateY(0) rotate(0deg); }
  .btn:hover .btn__icon-bg,
  .case:hover .btn__icon-bg { transform: rotate(90deg); }
  .btn:hover .btn__arrows svg,
  .case:hover .btn__arrows svg { transform: translateX(200%); }
  .btn:hover .btn__arrows svg:first-child,
  .case:hover .btn__arrows svg:first-child { transform: translateX(0); }
}

/* variante texto + seta (sobre, rodapé) */
.btn--text { --copy: var(--ink); }
.btn--text .btn__box { background: none; padding: 0; overflow: visible; }
.btn--text .btn__mask { border: 0; padding: 0 12px 0 0; }

/* variante quadrada (cards) */
.btn--square { gap: 0; }

/* variante clara (sobre fundo escuro) */
.btn--light { color: var(--white); --copy: var(--ink); }
.btn--light .btn__box { background: none; }
.btn--light .btn__bg { background: var(--white); }

/* variante com seta separada (rodapé dos cases) */
.btn--split .btn__side {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 2px;
  background: var(--white); outline: 4px solid var(--white);
}
.btn--split .btn__side svg { width: 13px; height: 13px; transition: transform .55s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn--split:hover .btn__side svg { transform: translateX(3px); } }

/* sociais */
.social {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 2px; overflow: hidden;
}
.social svg { position: relative; z-index: 1; width: 15px; height: 15px; transition: color .55s var(--ease); }
.social__bg { position: absolute; inset: 0 -4px; background: var(--ink); transform: translateY(70px) rotate(15deg); transition: transform .55s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .social:hover .social__bg { transform: none; }
  .social:hover svg { color: var(--white); }
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; z-index: 100; top: 0; left: 0;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--accent);
  pointer-events: none; opacity: 0; transition: opacity .3s, width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 01 menu ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  margin: calc(23.333 * var(--u)) var(--gutter) 0;
  height: 40px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-size: var(--fs-h4); line-height: 1; text-transform: uppercase;
  color: var(--ink); transition: color .45s var(--ease);
}
.nav.on-dark .nav__brand { color: var(--white); }
.nav__brand-short { display: none; }
.nav.is-compact .nav__brand-full { display: none; }
.nav.is-compact .nav__brand-short { display: inline; }
.nav__links { display: flex; align-items: center; gap: 16px; }
.nav__menu-btn { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--teal); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.menu[hidden] { display: none; }
.menu__close {
  position: absolute; top: 20px; right: var(--gutter);
  font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  border: 1px solid currentColor; border-radius: 2px; padding: 8px 12px;
}
.menu__list { display: flex; flex-direction: column; align-items: center; }
.menu__list a { display: block; font-size: 17vw; line-height: 0.82; text-transform: uppercase; }
.menu__social { position: absolute; bottom: 40px; display: flex; gap: 15px; }

/* ---------- 02 hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--hero); color: var(--hero-ink);
  border-radius: 8px; overflow: hidden;
  display: flex; justify-content: center;
  transform-origin: 50% 0;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide.is-current { opacity: 1; }
.hero__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__dark {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 55%), rgba(0,0,0,.1);
}
.loader { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; pointer-events: none; background: var(--hero); }
.loader__track { display: flex; align-items: center; flex: none; }
.loader__item { flex: none; width: 100vw; height: 100svh; padding: 0 1vw; }
.loader__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 9.6px; }

.hero__content {
  position: relative; z-index: 3; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: calc(58.667 * var(--u));
}
.hero__bottom { display: flex; flex-direction: column; align-items: center; gap: calc(58.667 * var(--u)); }
.hero__text { display: flex; flex-direction: column; gap: calc(44.667 * var(--u)); max-width: calc(1120 * var(--u)); text-align: center; align-items: center; }
.hero__title .word { display: inline-block; overflow: clip; padding: 0.14em; margin: -0.14em; vertical-align: top; }
.hero__title .word > span { display: inline-block; }
.hero__sub { max-width: 34em; text-wrap: balance; }
.hero__nav { display: flex; gap: calc(15.333 * var(--u)); }
.hero__thumb {
  position: relative; width: max(44px, calc(67.656 * var(--u))); aspect-ratio: 1;
  border: 1px solid rgba(244,244,244,.45); border-radius: 4.8px; overflow: hidden;
  transition: border-color .45s var(--ease);
}
.hero__thumb.is-current { border-color: var(--hero-ink); }
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; transition: transform .55s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .hero__nav:has(.hero__thumb:hover) img { transform: scale(.825); }
  .hero__nav:has(.hero__thumb:hover) .hero__thumb:hover img { transform: scale(1); }
}

/* ---------- 03 manifesto ---------- */
.intro { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.intro__wrap {
  margin: calc(144 * var(--u)) 0;
  display: flex; flex-direction: column; align-items: center; gap: calc(58.667 * var(--u));
  text-align: center;
}
.intro__title { display: flex; flex-direction: column; gap: calc(15.333 * var(--u)); }
.intro__line { display: flex; align-items: center; justify-content: center; gap: calc(11.667 * var(--u)); }
.intro__media {
  flex: none; display: flex; overflow: hidden; border-radius: 4px;
  width: calc(281.328 * var(--u)); height: calc(112.531 * var(--u));
}
.intro__media img { flex: none; width: calc(281.328 * var(--u)); height: 100%; object-fit: cover; border-radius: 4px; }

/* selos (as seções cortam o que o selo girado passa da borda) */
.intro, .cases, .journey, .stories { overflow-x: clip; }
.stamp { position: absolute; z-index: 1; width: max(64px, calc(96 * var(--u))); height: auto; color: var(--accent); pointer-events: none; }
.stamp--intro { left: 15%; top: 55%; transform: rotate(2deg) scale(1.1); }
.stamp--cases { left: 90%; top: 48.5%; transform: rotate(-21deg) scale(1.1); }
.stamp--journey { left: 43.5%; top: 35%; transform: rotate(11deg) scale(1.1); }
.stamp--stories { left: 85%; top: 10%; transform: rotate(-5deg) scale(1.1); }
.stamp--footer { left: 89%; top: 22%; transform: rotate(8deg); }

/* ---------- 04 cases ---------- */
.cases { position: relative; }
.cases__wrap { display: flex; flex-direction: column; gap: calc(88 * var(--u)); margin: calc(201.333 * var(--u)) 0; }
.cases__header { display: flex; flex-direction: column; gap: calc(58.667 * var(--u)); text-align: center; }
.cases__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.case { position: relative; }
.case--1 { width: calc(581.328 * var(--u)); }
.case--2 { width: calc(1029.33 * var(--u)); margin: calc(533.328 * var(--u)) 0 0 calc(165.328 * var(--u)); }
.case--3 { width: calc(730.656 * var(--u)); margin: calc(133.328 * var(--u)) 0 0 calc(165.328 * var(--u)); }
.case--4 { width: calc(581.328 * var(--u)); margin: calc(400 * var(--u)) 0 0 calc(314.656 * var(--u)); }
.case--5 { width: calc(1029.33 * var(--u)); margin: calc(-266.656 * var(--u)) calc(613.328 * var(--u)) 0 0; }

.crop { position: relative; padding: max(8px, calc(12.8 * var(--u))); }
.crop--2x3 { aspect-ratio: 2 / 3; }
.crop--16x9 { aspect-ratio: 16 / 9; }
.crop--3x2 { aspect-ratio: 3 / 2; }
.crop__mark { position: absolute; width: max(8px, calc(12.8 * var(--u))); height: max(8px, calc(12.8 * var(--u))); border: 0 solid var(--ink); }
.crop__mark.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop__mark.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop__mark.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop__mark.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.crop__media {
  position: absolute; inset: max(8px, calc(12.8 * var(--u)));
  border-radius: 4px; overflow: hidden; background: var(--ink);
}
.crop__media img, .crop__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__overlay {
  position: absolute; inset: 0; z-index: 5; background: var(--ink); mix-blend-mode: color;
  opacity: 0; transition: opacity .55s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cases__list:has(.case:hover) .case:not(:hover) .case__overlay { opacity: 1; }
}
.case__content {
  display: flex; align-items: flex-start; justify-content: space-between; gap: calc(11.667 * var(--u));
  padding: max(8px, calc(12.8 * var(--u)));
}
.case__text { display: flex; flex-direction: column; gap: max(10px, calc(15.333 * var(--u))); }
.case__link { position: absolute; inset: 0; z-index: 6; }
.cases__footer { display: flex; justify-content: flex-end; }

/* ---------- 05 clientes ---------- */
.clients__wrap { display: flex; flex-direction: column; gap: calc(88 * var(--u)); margin-bottom: calc(88 * var(--u)); }
.clients__content { display: flex; flex-direction: column; align-items: flex-start; gap: calc(44.667 * var(--u)); max-width: max(320px, calc(640 * var(--u))); }
.clients__rows { display: flex; flex-direction: column; }
.marquee { height: max(96px, calc(144 * var(--u))); display: flex; align-items: center; overflow: hidden; }
.marquee__list { display: flex; flex: none; align-items: center; }
.marquee__list li {
  flex: none; width: max(170px, calc(240 * var(--u))); text-align: center; white-space: nowrap;
  font-family: var(--ff-display); font-weight: 800; font-stretch: 80%; letter-spacing: -0.05em;
  font-size: max(20px, calc(28 * var(--u))); color: var(--muted);
}

/* ---------- 06 sobre ---------- */
.journey { position: relative; }
.journey__wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(16 * var(--u));
  margin-top: calc(88 * var(--u)); min-height: calc(1080 * var(--u));
}
.journey__media { position: relative; min-height: calc(1080 * var(--u)); }
.journey__media-item { width: calc(641.188 * var(--u)); transform: translate(calc(-64 * var(--u)), calc(128 * var(--u))) rotate(-7deg); }
.frame {
  position: relative; aspect-ratio: 1; border: 8px solid var(--white); border-radius: 8px;
  background: var(--white);
}
.frame__block { position: absolute; inset: 0; border-radius: 4px; background: var(--ink); }
.frame__block--teal { background: var(--teal); }
.journey__content {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: calc(44.667 * var(--u)); max-width: calc(800 * var(--u));
}
.journey__content-media { width: calc(320 * var(--u)); margin: calc(-128 * var(--u)) 0 0 calc(480 * var(--u)); transform: rotate(4deg); }
.journey__content p { max-width: calc(776 * var(--u)); }

/* ---------- 07 serviços ---------- */
.services { margin: calc(144 * var(--u)) 0; }
.services__pin { height: 100vh; height: 100svh; padding: var(--gutter); }
.services__list { position: relative; height: 100%; border-radius: 8px; overflow: hidden; background: var(--ink); }
.service {
  position: absolute; inset: 0; overflow: clip; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: max(24px, calc(88 * var(--u)));
  background: var(--ink); color: var(--white);
}
.service__media { position: absolute; inset: 0; opacity: .8; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__media--trio { display: flex; justify-content: center; gap: calc(16 * var(--u)); }
.service__media--trio video { height: 100%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.service__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(44.667 * var(--u));
  max-width: max(320px, calc(768 * var(--u)));
}

/* ---------- 08 depoimentos ---------- */
.stories { position: relative; }
.stories__title-wrap {
  position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.stories__title {
  display: flex; flex-direction: column; align-items: center; gap: calc(44.667 * var(--u));
  max-width: max(320px, calc(800 * var(--u))); padding: 0 var(--gutter); text-align: center;
}
.stories__wrap { position: relative; z-index: 2; margin-bottom: calc(160 * var(--u)); padding-bottom: calc(144 * var(--u)); }
.stories__list { display: flex; flex-direction: column; }
.story { width: max(240px, calc(416 * var(--u))); display: flex; flex-direction: column; gap: calc(23.333 * var(--u)); margin-bottom: calc(-80 * var(--u)); }
.story--1 { margin-top: calc(-80 * var(--u)); margin-left: calc(1278.41 * var(--u)); }
.story--2 { margin-top: calc(-32 * var(--u)); margin-left: calc(76.8 * var(--u)); }
.story--3 { margin-top: calc(-112 * var(--u)); margin-left: calc(1393.61 * var(--u)); }
.story--4 { margin-top: calc(-64 * var(--u)); margin-left: calc(192 * var(--u)); }
.story--5 { margin-top: calc(-80 * var(--u)); margin-left: calc(1278.41 * var(--u)); }
.story__card { transform: rotate(-4deg); perspective: 1600px; }
.card { position: relative; aspect-ratio: 2 / 3; transform-style: preserve-3d; }
.card__front, .card__back { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card__front { border: 8px solid var(--white); background: var(--white); }
.card__block {
  position: absolute; inset: 0; border-radius: 4px; background: var(--teal); color: var(--bg);
  display: flex; align-items: flex-end; padding: 16px;
}
.card__back {
  background: var(--ink); color: var(--white);
  padding: max(24px, calc(44.667 * var(--u)));
  transform: rotateY(180deg);
}
.card__back .t-h4 { max-width: 12em; }
.story__content { display: flex; flex-direction: column; gap: max(10px, calc(15.333 * var(--u))); }

/* ---------- 09 rodapé ---------- */
.footer { position: relative; z-index: 1; }
.footer__wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(113.333 * var(--u)) calc(16 * var(--u));
  margin: calc(88 * var(--u)) 0 var(--gutter);
}
.footer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: calc(23.333 * var(--u)); max-width: calc(800 * var(--u)); }
.footer__content { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(16 * var(--u)); }
.footer__group { display: flex; flex-direction: column; gap: calc(44.667 * var(--u)); }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: calc(15.333 * var(--u)); }
.u-link {
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 0.08em no-repeat;
  padding-bottom: 0.04em;
  transition: background-size .55s var(--ease);
}
.footer__list { display: flex; flex-direction: column; gap: calc(15.333 * var(--u)); }
.text-link { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.footer__social { display: flex; gap: 15.333px; }
.footer__bottom { grid-column: span 2; }
.footer__bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
@media (hover: hover) and (pointer: fine) {
  .u-link:hover { background-size: 0% 0.08em; background-position: 100% 100%; }
  .footer__bottom-link:hover, .text-link:hover { text-decoration: none; }
}
.footer__bottom-link { text-decoration: underline; text-underline-offset: 3px; }
.footer { overflow: hidden; }
.footer__wordmark {
  font-size: 23.4vw; line-height: 0.8; text-transform: uppercase; white-space: nowrap;
  text-align: center; padding-top: calc(24 * var(--u)); margin-bottom: -0.12em;
}
.footer__wordmark span { display: inline-block; }

/* sem pin (sem JS ou movimento reduzido): os serviços empilham */
html:not(.has-pin) .services__pin { height: auto; }
html:not(.has-pin) .services__list { height: auto; display: flex; flex-direction: column; gap: var(--gutter); background: none; }
html:not(.has-pin) .service { position: relative; min-height: 80vh; border-radius: 8px; }
/* sem JS o card mostra o depoimento */
html:not(.js) .card { transform: rotateY(180deg); }

/* ---------- estados iniciais (só com JS ativo) ---------- */
html.motion .hero__title .word > span,
html.motion .hero__sub,
html.motion .hero__nav { visibility: hidden; }
html.motion .loader { display: flex; }

/* ---------- tablet ---------- */
@media (max-width: 991px) {
  :root { --fs-display: 15vw; --fs-h1: 13vw; --fs-h2: 11vw; }
  .journey__wrap { grid-template-columns: 1fr; }
  .journey__media { min-height: 0; padding-bottom: 12vw; }
  .journey__media-item { width: 62vw; transform: translate(4vw, 6vw) rotate(-7deg); }
  .journey__content { max-width: none; }
  .journey__content-media { width: 34vw; margin: -10vw 0 0 auto; }
  .journey__content p { max-width: 40em; }
}

/* ---------- celular ---------- */
@media (max-width: 767px) {
  :root { --fs-display: 17vw; --fs-h1: 15vw; --fs-h2: 13vw; }
  .nav__inner { margin-top: 14px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }

  .hero { border-radius: 0 0 8px 8px; }
  .hero__content { padding: 24px 16px 32px; }
  .hero__bottom { gap: 28px; }
  .hero__text { gap: 20px; max-width: none; }
  .hero__nav { gap: 8px; }

  .intro__title { font-size: 11.4vw; gap: 6px; }
  .intro__line { gap: 6px; }
  .intro__media { width: 20vw; height: 9vw; }
  .intro__media img { width: 20vw; }
  .intro__wrap { margin: 96px 0; gap: 32px; }
  .stamp--intro { top: auto; bottom: 24px; }

  .cases__wrap { margin: 96px 0; gap: 40px; }
  .cases__header { gap: 20px; }
  .cases__list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 40px; }
  .case { margin: 0 !important; }
  .case--1, .case--4 { width: 78%; }
  .case--4 { align-self: flex-end; }
  .case--2, .case--3, .case--5 { width: 100%; }
  .stamp--cases { left: auto; right: 8px; top: 22%; }

  .clients__wrap { gap: 32px; margin-bottom: 64px; }
  .clients__content { gap: 20px; }

  .journey__wrap { margin-top: 48px; gap: 32px; }
  .journey__content { gap: 24px; }
  .stamp--journey { left: auto; right: 12px; top: 20%; }

  .services { margin: 64px 0; }
  .service__content { gap: 20px; }
  .service__media--trio { gap: 6px; }

  .stories__title { gap: 20px; }
  .story { width: 66vw; margin: 0 0 0 0 !important; }
  .stories__list { gap: 56px; }
  .story:nth-child(odd) { align-self: flex-end; }
  .stories__wrap { padding-bottom: 64px; margin-bottom: 32px; }
  .stamp--stories { left: auto; right: 16px; top: 12%; }

  .footer__wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 48px; }
  .footer__cta { max-width: none; }
  .footer__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .text-link { overflow-wrap: anywhere; }
  .footer__group { gap: 20px; }
  .footer__bottom { grid-column: auto; }
  .footer__bottom-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stamp--footer { left: auto; right: 24px; top: auto; bottom: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
