/* =========================================================
   Rupture Branding · frame "Principal" (Figma 2024:2)

   DESKTOP (>= 900px): canvas de 1440. Toda medida é N * var(--u) e,
   em 1440, bate 1:1 com o Figma. Posições ficam no HTML (--x, --y),
   relativas ao topo de cada seção.

   MOBILE (< 900px): layout em fluxo, base 390. --u passa a valer
   1px de um canvas de 390 (com teto em 560px de largura).
   ========================================================= */

:root {
  /* Tokens do arquivo (get_variable_defs 2024:2) */
  --color-bg: #eeeeee;
  --color-fg: #2b2b2b;
  --color-line: #d2d2d2;
  --color-accent: #ff0055;
  --color-on-accent: #ffffff;
  --color-muted: #7a7a7a;

  /* Literais usados no arquivo, promovidos a token */
  --color-surface-method: #e5e5e5;
  --color-ink: #1c1c1c;
  --color-pill: #2f2f2f;
  --color-square: #acacac;
  --color-gold: #ddb55b;
  --color-word-active: #666666;
  --color-word-near: rgba(170, 170, 170, 0.4);
  --color-word-far: rgba(170, 170, 170, 0.1);
  --color-divider: #c4c4c4;
  --color-surface: #e3e3e3;
  --color-flag: #c3c3c3;
  --color-flag-ink: #505050;
  --color-error: #c4002f;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-32: rgba(255, 255, 255, 0.32);
  --color-white-14: rgba(255, 255, 255, 0.14);
  --scrim: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5) 100%);
  --shade: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.87) 100%);

  /* Filtro dos SVGs que usam a cor de texto (#2b2b2b) embutida */
  --ink-filter: none;
  --svc-arrow-hover: invert(1) brightness(2);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  /* Owners Light licenciada; a Inter Tight reduzida só age se ela não carregar */
  --font-display: "Owners", "Owners Fallback", "Inter", sans-serif;
  --font-display-text: "Owners Text", "Owners", "Owners Fallback", "Inter", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 1 px do Figma. O main.js recalcula com a largura sem scrollbar. */
  --u: calc(100vw / 1440);
  /* Escalas internas: no desktop todas valem --u */
  --hs: var(--u);
  --cs: var(--u);
  --ps: var(--u);
  --as: var(--u);
  color-scheme: light;
}

/* Tema escuro: mesmo sistema, tons invertidos. Faixa e contato ficam um degrau acima do fundo. */
:root[data-theme="dark"] {
  --color-bg: #121212;
  --color-fg: #ededed;
  --color-line: #2c2c2c;
  --color-muted: #8c8c8c;
  --color-surface-method: #181818;
  --color-ink: #1f1f1f;
  --color-pill: #2a2a2a;
  --color-word-active: #bdbdbd;
  --color-word-near: rgba(170, 170, 170, 0.35);
  --color-word-far: rgba(170, 170, 170, 0.12);
  --color-divider: #2e2e2e;
  --color-surface: #1c1c1c;
  --color-flag: #2c2c2c;
  --color-flag-ink: #bdbdbd;
  --color-error: #ff5c85;
  --ink-filter: invert(1) brightness(1.12);
  --svc-arrow-hover: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--color-bg); }
body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
/* Sem palavra sozinha na última linha. Títulos só se equilibram no celular:
   no desktop as quebras seguem o Figma. */
p, li { text-wrap: pretty; }
@media (max-width: 899px) { h1, h2, h3 { text-wrap: balance; } }
em { font-style: normal; }

::selection { background: var(--color-accent); color: var(--color-on-accent); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* Troca de tema pela View Transitions API: o novo tema abre em círculo (main.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.page { position: relative; width: 100%; overflow: hidden; }

/* Grão: pontos de ruído com alfa próprio (escuros no claro, claros no escuro).
   Fraco o bastante para não competir com o texto. Nunca recebe clique. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 70;
  pointer-events: none;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain, 0.09);
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="dark"] body::after { filter: invert(1); --grain: 0.07; }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Primitivas de posição ---------- */
.sec { position: relative; width: 100%; }
.a {
  position: absolute;
  left: calc(var(--x, 0) * var(--u));
  top: calc(var(--y, 0) * var(--u));
  white-space: nowrap;
}
.a--r { left: auto; right: calc(var(--r) * var(--u)); }
.rot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}
.rot > span { display: block; transform: rotate(-90deg); white-space: nowrap; line-height: 1.2; }
.sec__bg { position: absolute; inset: 0; background: var(--color-ink); }

/* SVGs exportados com #2b2b2b viram claros no tema escuro */
.ink-svg, .hdr-logo img, .rail, .theme-btn img, .svc__arrow img { filter: var(--ink-filter); }

/* Sublinhado do arquivo: espessura e posição da própria fonte */
.link-u, .t-val--u, .card__link {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

/* ---------- Loader ---------- */
/* Loader "A ruptura". O traço da rachadura é o mesmo polígono que corta as duas metades. */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  pointer-events: none;
  will-change: transform;
}
/* 397 de largura, como no site atual. É o GIF original do rupture.com.br (2500 px) composto sobre
   preto, recortado na faixa central e salvo como vídeo em 1600x448: sem o pontilhado do GIF. */
.loader__anim { display: block; width: max(240px, calc(397 * var(--u))); height: auto; }
/* Safari em modo de pouca energia bloqueia o autoplay e mostra um play no meio: fica só o pôster */
.loader__anim::-webkit-media-controls, .loader__anim::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Imagens não são arrastáveis nem selecionáveis (arrastar quebrava o cursor e as cenas) */
img, svg, canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* Cursor próprio saiu em 23/10 (o Júnior sentia atraso no mouse): fica o nativo. */
.cursor, .scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* ---------- Barra de rolagem ----------
     A nativa some; no lugar, um fio de 2px à direita que aparece ao rolar
     e engrossa sob o mouse. Dá para arrastar. */
  html.has-scrollbar { scrollbar-width: none; }
  html.has-scrollbar::-webkit-scrollbar { display: none; }
  .has-scrollbar .scrollbar {
    position: fixed;
    top: 8px;
    right: 4px;
    bottom: 8px;
    z-index: 75;
    display: block;
    width: 10px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
  }
  .has-scrollbar .scrollbar.is-on, .has-scrollbar .scrollbar:hover, .has-scrollbar .scrollbar.is-drag { opacity: 1; }
  .scrollbar__thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    border-radius: 999px;
    background: var(--color-fg);
    opacity: 0.4;
    transition: width 0.3s var(--ease-out), opacity 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
  }
  .scrollbar:hover .scrollbar__thumb, .scrollbar.is-drag .scrollbar__thumb { width: 4px; opacity: 0.7; }
  .scrollbar.is-drag .scrollbar__thumb { background: var(--color-accent); opacity: 1; }
}

/* ---------- Barra fixa + menu ---------- */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(32 * var(--u)) calc(66 * var(--u)) 0 calc(69 * var(--u));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-40%);
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out);
}
.bar-on .bar, .menu-open .bar,
.bar-on .bar__logo, .menu-open .bar__logo { transform: none; opacity: 1; }
.bar-hide:not(.menu-open) .bar, .bar-hide:not(.menu-open) .bar__logo { transform: translateY(-160%); }
.bar > * { pointer-events: auto; }
.bar { justify-content: flex-end; }
.bar__logo {
  position: fixed;
  left: calc(69 * var(--u));
  top: calc(36 * var(--u));
  z-index: 46;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-40%);
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out);
}
.bar__logo img { width: calc(40 * var(--u)); height: calc(41.49 * var(--u)); filter: invert(1); }
.bar__menu {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(24 * var(--u));
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  font-size: max(12px, calc(16 * var(--u)));
  line-height: 1.21;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.bar__menu:hover { background: var(--color-fg); color: var(--color-bg); }
.menu-open .bar__menu { background: var(--color-white); color: var(--color-ink); }
.bar__menu-icon {
  position: relative;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border-radius: 50%;
  background: var(--color-black);
}
.bar__menu-icon i {
  position: absolute;
  left: 30%;
  width: 40%;
  height: 1.4px;
  background: var(--color-white);
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.bar__menu-icon i:first-child { top: 42%; }
.bar__menu-icon i:last-child { top: 56%; }
.menu-open .bar__menu-icon i:first-child { top: 49%; transform: rotate(45deg); }
.menu-open .bar__menu-icon i:last-child { top: 49%; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 44;
  visibility: hidden;
  color: var(--color-white);
}
.menu.is-open { visibility: visible; }
.menu__bg { position: absolute; inset: 0; background: var(--color-ink); clip-path: circle(0% at 100% 0%); }
.menu.is-open .menu__bg { clip-path: circle(150% at 100% 0%); }
.menu__in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(120 * var(--u)) calc(66 * var(--u)) calc(48 * var(--u)) 0;
}
/* Roda de opções (porte do OptionWheel do React Bits para JS puro).
   Cada link fica centrado na vertical e o main.js o desloca pela curva. */
.menu__nav {
  --inset: calc(144 * var(--u));
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
}
.menu__nav.is-dragging { cursor: grabbing; }
/* As pontas da roda somem num degradê em vez de cortar seco junto ao rodapé do menu */
.menu__nav {
  margin-bottom: calc(24 * var(--u));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 78%, transparent 100%);
}
.menu__nav a {
  --p: 0;
  position: absolute;
  top: 50%;
  left: var(--inset);
  display: flex;
  align-items: baseline;
  gap: calc(24 * var(--u));
  overflow: hidden;
  padding-bottom: 0.12em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(88 * var(--u));
  line-height: 1;
  transform-origin: left center;
  will-change: transform, opacity, filter;
  /* --p vai de 0 a 1 conforme a opção chega ao centro da roda */
  color: color-mix(in srgb, var(--color-white) calc(var(--p) * 100%), var(--color-white-50));
}
.menu__nav a.is-sel .menu__n { color: var(--color-accent); }
.menu__foot { padding-left: calc(144 * var(--u)); }
.menu__n { font-family: var(--font-sans); font-size: max(12px, calc(14 * var(--u))); color: var(--color-white-50); font-variant-numeric: tabular-nums; }
.menu__t { display: inline-block; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u)); }
.menu__mail {
  font-weight: 500;
  font-size: calc(24 * var(--u));
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}
.menu__ctrl { display: flex; align-items: center; gap: calc(24 * var(--u)); font-size: max(12px, calc(14 * var(--u))); color: var(--color-white-50); }
.menu__ctrl .theme-btn img { filter: none; }
.menu__ctrl .lang-switch button[aria-pressed="true"] { color: var(--color-white); }

/* Controles compartilhados */
.theme-btn img { width: calc(24 * var(--u)); height: calc(24 * var(--u)); transition: transform 0.6s var(--ease-out); }
.theme-btn:hover img { transform: rotate(90deg); }
.lang-switch button { font-weight: 400; transition: color 0.3s var(--ease-out); }
.lang-switch button[aria-pressed="true"] { font-weight: 700; }

/* =========================================================
   HERO (0 a 944)
   ========================================================= */
.sec--hero { height: calc(944 * var(--u)); }

.hdr-logo img { width: calc(40 * var(--u)); height: calc(41.49 * var(--u)); }
.t-nav {
  font-weight: 500;
  font-size: calc(20 * var(--u));
  line-height: 1.21;
  transition: color 0.3s var(--ease-out);
}
.t-talk {
  font-weight: 700;
  font-size: calc(20 * var(--u));
  line-height: 1.21;
  transition: color 0.3s var(--ease-out);
}
.t-works-more:hover, .t-all:hover { color: var(--color-muted); }
/* Roll: cada letra sobe e uma cópia entra por baixo, em cascata (montado pelo main.js) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll__a, .roll__b { display: block; white-space: pre; }
.roll__b { position: absolute; left: 0; top: 100%; }
.roll .ch {
  display: inline-block;
  transition: transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i) * 22ms);
}
@media (hover: hover) {
  a:hover > .roll .ch, a:focus-visible > .roll .ch { transform: translateY(-100%); }
}
/* "Let's Talk": sublinhado próprio (o nativo não atravessa as letras do roll).
   No hover ele sai pela direita e volta pela esquerda. */
.hdr-talk, .t-talk--inv { text-decoration: none; padding-bottom: 0.18em; }
.hdr-talk::after, .t-talk--inv::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(1px, 0.08em);
  background: currentColor;
  transform-origin: 100% 50%;
}
@media (hover: hover) {
  .hdr-talk:hover::after, .t-talk--inv:hover::after { animation: talk-line 0.8s var(--ease-out); }
}
@keyframes talk-line {
  0% { transform: scaleX(1); transform-origin: 100% 50%; }
  45% { transform: scaleX(0); transform-origin: 100% 50%; }
  46% { transform: scaleX(0); transform-origin: 0 50%; }
  100% { transform: scaleX(1); transform-origin: 0 50%; }
}

.t-lang {
  font-size: max(12px, calc(12 * var(--u)));
  letter-spacing: calc(0.48 * var(--u));
  color: var(--color-muted);
}
.t-lang button[aria-pressed="true"], .t-lang button:hover { color: var(--color-fg); }
.t-rail {
  font-weight: 700;
  font-size: max(12px, calc(12 * var(--u)));
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s var(--ease-out);
}
.rot--social:hover .t-rail { color: var(--color-fg); }
.t-follow { font-size: max(12px, calc(12 * var(--u))); text-transform: uppercase; color: var(--color-muted); }
.rail-line-h { width: calc(1 * var(--u)); height: calc(16 * var(--u)); transform: rotate(90deg); }
.rail-line-v { width: calc(1 * var(--u)); height: calc(40 * var(--u)); }

/* Tema e idioma acompanham a rolagem no desktop. O difference (como no .bar__logo)
   mantém o contraste sobre a faixa escura e o contato. */
@media (min-width: 900px) {
  .rail-theme, .rot--lang { position: fixed; z-index: 43; mix-blend-mode: difference; }
  .rail-theme img { width: calc(32 * var(--u)); height: calc(32 * var(--u)); filter: invert(1); }
  .rot--lang .t-lang { font-size: max(14px, calc(14 * var(--u))); letter-spacing: calc(0.56 * var(--u)); color: var(--color-white-50); }
  .rot--lang .t-lang button[aria-pressed="true"], .rot--lang .t-lang button:hover { color: var(--color-white); }
}

.hero {
  width: calc(1304 * var(--u));
  height: calc(423 * var(--u));
  -webkit-mask: url("../img/hero-mask.svg") no-repeat 0 0 / 100% 100%;
  mask: url("../img/hero-mask.svg") no-repeat 0 0 / 100% 100%;
  background: var(--color-ink);
}
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.slide.is-active { visibility: visible; }
.slide--soft { background: var(--color-bg); }
.slide__photo {
  position: absolute;
  left: calc(var(--ix) * var(--u));
  top: calc(var(--iy) * var(--u));
  width: calc(var(--iw) * var(--u));
  height: calc(var(--ih) * var(--u));
  object-fit: cover;
  opacity: var(--op, 1);
  will-change: transform;
}
.slide__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(1304 * var(--hs));
  height: calc(423 * var(--hs));
}
.slide__brand {
  position: absolute;
  left: calc(var(--ix) * var(--hs));
  top: calc(var(--iy) * var(--hs));
  width: calc(var(--iw) * var(--hs));
  height: calc(var(--ih) * var(--hs));
}
.hero__scrim { position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }
.hero__count {
  position: absolute;
  left: calc(1215 * var(--u));
  top: calc(35 * var(--u));
  display: flex;
  gap: 0.3em;
  font-size: max(12px, calc(14 * var(--u)));
  line-height: 1.21;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}
.hero__cur { display: block; overflow: hidden; }
.hero__cur span { display: block; }
.hero__progress {
  position: absolute;
  left: calc(59 * var(--u));
  top: calc(36 * var(--u));
  display: flex;
  gap: calc(6 * var(--u));
}
/* Área de toque maior que o traço de 2px */
.hero__progress button { position: relative; display: block; width: calc(28 * var(--u)); height: calc(16 * var(--u)); }
.hero__progress button::before,
.hero__progress b {
  content: "";
  position: absolute;
  left: 0;
  top: calc(7 * var(--u));
  width: 100%;
  height: calc(2 * var(--u));
  border-radius: calc(1 * var(--u));
}
.hero__progress button::before { background: var(--color-white-32); }
.hero__progress b { background: var(--color-white); transform: scaleX(0); transform-origin: 0 50%; }
/* Acima dos slides: na troca o slide ativo ganha z-index 1 ou 2 e cobria o contador */
.hero__count, .hero__progress, .hero__nav { z-index: 3; }
/* Arrastar para os lados troca a imagem; a rolagem vertical segue livre */
.hero { touch-action: pan-y; user-select: none; }
/* Setas do hero: mesmas do Method (só a seta, sem círculo), em branco sobre a foto */
.hero__nav { position: absolute; left: calc(1131 * var(--u)); top: calc(28 * var(--u)); display: flex; gap: calc(8 * var(--u)); }
.hero__nav button {
  display: grid;
  place-items: center;
  width: max(28px, calc(32 * var(--u)));
  height: max(28px, calc(32 * var(--u)));
  color: var(--color-white-60);
  transition: color 0.3s var(--ease-out);
}
.hero__nav svg { width: max(12px, calc(12 * var(--u))); height: max(12px, calc(12 * var(--u))); fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero__nav button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
@media (hover: hover) { .hero__nav button:hover { color: var(--color-white); } }
.hero.is-soft .hero__nav button { color: color-mix(in srgb, var(--color-ink) 50%, transparent); }
@media (hover: hover) { .hero.is-soft .hero__nav button:hover { color: var(--color-ink); } }
/* Nos slides de foto clara (soft) o contador e as barras ficam em ink, nos dois temas: o contraste depende da foto */
.hero__count, .hero__progress button::before, .hero__progress b { transition: color 0.4s var(--ease-out), background-color 0.4s var(--ease-out); }
.hero.is-soft .hero__count { color: var(--color-ink); }
.hero.is-soft .hero__progress button::before { background: color-mix(in srgb, var(--color-ink) 32%, transparent); }
.hero.is-soft .hero__progress b { background: var(--color-ink); }

.btn-start {
  display: flex;
  align-items: center;
  gap: calc(34 * var(--u));
  padding: calc(12 * var(--u)) calc(8 * var(--u)) calc(12 * var(--u)) calc(54 * var(--u));
  border-radius: calc(100 * var(--u));
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  font-size: max(12px, calc(16 * var(--u)));
  line-height: 1.21;
  overflow: hidden;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn-start img { width: calc(36 * var(--u)); height: calc(36 * var(--u)); transition: transform 0.5s var(--ease-out); }
.btn-start:hover { background: var(--color-fg); color: var(--color-bg); }
.btn-start:hover img { transform: rotate(45deg); }

.wordmark { width: calc(1302.74 * var(--u)); height: calc(196.75 * var(--u)); overflow: hidden; }
.wordmark img { width: 100%; height: 100%; }
/* Glitch em WebGL (glitch.js): o canvas só aparece durante a rajada */
.wordmark { --gink: var(--color-fg); --gacc: var(--color-accent); }
.wordmark--foot { --gink: var(--color-white); }
.glitch-gl { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; pointer-events: none; }
.t-copy { font-size: calc(22 * var(--u)); line-height: 1.21; }

.t-slogan { font-weight: 500; font-size: calc(26 * var(--u)); line-height: 1.18; }
.t-service {
  width: calc(383 * var(--u));
  white-space: normal;
  text-align: right;
  font-weight: 300;
  font-size: max(12px, calc(16 * var(--u)));
  line-height: 1.4;
  color: var(--color-muted);
}

/* =========================================================
   FAIXA (944). Ocupa no mínimo a tela inteira para o zoom;
   o conteúdo do Figma fica centralizado na vertical.
   ========================================================= */
.sec--band {
  --bh: max(calc(742 * var(--u)), 100svh);
  --bp: calc((var(--bh) - 742 * var(--u)) / 2);
  height: var(--bh);
  color: var(--color-white);
}
.sec--band > .a { top: calc(var(--y) * var(--u) + var(--bp)); z-index: 2; }
.band-zoom { display: none; }
.js .band-zoom { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; clip-path: inset(50% 50% 50% 50%); }
.band-zoom__gl, .band-zoom__img { position: absolute; }
.band-zoom__gl { inset: 0; width: 100%; height: 100%; display: none; }
.band-zoom__img { object-fit: cover; }
.band-zoom.has-gl .band-zoom__gl { display: block; }
.band-zoom.has-gl .band-zoom__img { display: none; }
.band-mark { display: none; }
/* Aviso do bloqueio de inspecionar */
.guard {
  position: fixed; left: 50%; bottom: 32px; z-index: 90; translate: -50% 16px;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--color-ink); color: var(--color-white); font-size: 14px; line-height: 1.4; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-out), translate 0.4s var(--ease-out);
}
.guard.is-on { opacity: 1; translate: -50% 0; }
/* Seta no centro do zoom: mostra que a rolagem continua e a saída em pixels não parece defeito da tela */
.js .band-mark {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: block;
  width: calc(96 * var(--u)); min-width: 48px; aspect-ratio: 1; translate: -50% -50%; rotate: -45deg;
  background: var(--color-white); -webkit-mask: url(../img/band-arrow.svg) center / contain no-repeat; mask: url(../img/band-arrow.svg) center / contain no-repeat;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.band-exit { position: absolute; inset: 0; z-index: 3; background: var(--color-bg); opacity: 0; pointer-events: none; }

.band-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(120 * var(--u));
  line-height: 1;
  letter-spacing: 0.02em;
}
.band-line { position: relative; display: block; }
.band-word { display: inline-block; }
/* Slot da foto. Com JS, a foto real é a camada .band-zoom recortada aqui. */
.band-photo {
  position: absolute;
  left: 2.9083em;
  top: 0;
  width: 3.925em;
  height: 0.9em;
  border-radius: 0.1167em;
  overflow: hidden;
}
.band-photo img {
  position: absolute;
  left: -0.2528em;
  top: -0.7595em;
  width: 4.4359em;
  height: 2.4952em;
  object-fit: cover;
}
.zoom-ready .band-photo { visibility: hidden; }
.band-arrow { width: calc(67.41 * var(--u)); height: calc(67.41 * var(--u)); }

/* =========================================================
   WORKS (1686 a 3607)
   ========================================================= */
.sec--works { height: calc(1921 * var(--u)); }
/* Works passa por cima da faixa presa (ver bandScene) */
.sec--band { z-index: 1; }
.sec--works { position: relative; z-index: 2; background: var(--color-bg); }
.t-works-h { font-size: calc(26 * var(--u)); line-height: 1.18; }
.t-works-more { opacity: 0.22; transition: color 0.3s var(--ease-out); }

.card { width: calc(640 * var(--cs)); height: calc(480 * var(--cs)); }
.card__in {
  position: absolute;
  inset: 0;
  border-radius: calc(40 * var(--cs));
  overflow: hidden;
  isolation: isolate;
  background: var(--color-ink);
}
.card--black .card__in { background: var(--color-black); }
.card__img, .card__logo, .card__gold {
  position: absolute;
  left: calc(var(--ix) * var(--cs));
  top: calc(var(--iy) * var(--cs));
}
.card__img, .card__logo {
  width: calc(var(--iw) * var(--cs));
  height: calc(var(--ih) * var(--cs));
}
.card__img { object-fit: cover; transition: filter 0.6s var(--ease-out); }
.card__img--dim { opacity: 0.54; }
/* Cards dos cases novos: a capa vem da galeria e preenche o card */
.card__img--cover { left: 0; top: 0; width: 100%; height: 100%; }
.card__gold { font-size: calc(15 * var(--cs)); line-height: 1.21; color: var(--color-gold); }
.card__shade {
  position: absolute;
  left: 0;
  top: calc(347 * var(--cs));
  width: 100%;
  height: calc(133 * var(--cs));
  background: var(--shade);
}
.card__name, .card__link {
  position: absolute;
  top: calc(416 * var(--cs));
  font-size: calc(20 * var(--cs));
  line-height: 1.8;
  color: var(--color-white);
}
/* Nome à esquerda e link à direita, nas bordas: com nomes longos ("Camisa Listrada Filmes") os dois não se encostam */
.card__name { left: calc(48 * var(--cs)); font-weight: 700; }
.card__link { right: calc(48 * var(--cs)); transition: color 0.3s var(--ease-out); }
.card__link:hover { color: var(--color-white-60); }
/* Legenda (sombra, nome e link) só aparece no hover; no toque fica sempre visível */
.card__cap { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out); }
.card__cap .card__link { pointer-events: auto; }
@media (hover: hover) {
  .card__cap { opacity: 0; }
  .card:hover .card__cap, .card:focus-within .card__cap { opacity: 1; }
}
/* Hover só por tom: a imagem perde luz, nada sobe */
.card:hover .card__img { filter: brightness(0.82); }

.t-criamos { font-weight: 700; font-size: calc(20 * var(--u)); line-height: 1.8; }
.criamos-line { width: calc(81.5 * var(--u)); height: calc(2 * var(--u)); transform-origin: 0 50%; }
.words { height: calc(180 * var(--u)); overflow: hidden; }
.words__list li {
  font-size: calc(20 * var(--u));
  line-height: 1.8;
  height: 1.8em;
  color: var(--color-word-far);
}
.words__list li:nth-child(2), .words__list li:nth-child(4) { color: var(--color-word-near); }
.words__list li:nth-child(3) { color: var(--color-word-active); }
/* Com JS, a cor segue a posição visível (data-slot), não a ordem no DOM */
.words__list li[data-slot] { color: var(--color-word-far); }
.words__list li[data-slot="1"], .words__list li[data-slot="3"] { color: var(--color-word-near); }
.words__list li[data-slot="2"] { color: var(--color-word-active); }
.icon-55 { width: calc(55 * var(--u)); height: calc(55 * var(--u)); }
.t-veja {
  width: calc(409 * var(--u));
  white-space: normal;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(48 * var(--u));
  line-height: 0.97;
  letter-spacing: 0.02em;
}
.t-veja span {
  color: var(--color-accent);
  text-decoration: underline;
  /* Espessura fixa: a Inter Tight variável traz um traço grosso demais */
  text-decoration-thickness: 0.035em;
  text-underline-position: from-font;
}
.arrow-more { width: calc(22.46 * var(--u)); height: calc(22.46 * var(--u)); transition: transform 0.5s var(--ease-out); }
.t-veja:hover + .arrow-more { transform: rotate(45deg); }

/* =========================================================
   METHOD (3607 a 4180)
   ========================================================= */
.sec--method { height: calc(573 * var(--u)); background: var(--color-surface-method); }
.t-point {
  font-weight: 600;
  font-size: calc(24 * var(--u));
  line-height: 1.21;
  letter-spacing: calc(-0.72 * var(--u));
}
.t-label { font-weight: 500; font-size: calc(20 * var(--u)); line-height: calc(33 * var(--u)); }
.t-label--inv { color: var(--color-white); line-height: 1.21; }
.t-step { font-weight: 500; font-size: max(12px, calc(13 * var(--u))); line-height: calc(33 * var(--u)); font-variant-numeric: tabular-nums; }
.steps button {
  display: block;
  overflow: hidden;
  width: calc(29 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 999px;
  background: var(--color-line);
  isolation: isolate;
}
/* O preenchimento fica no fluxo do botão (não absoluto): assim não escapa da trilha
   quando o botão deixa de ser .a no mobile, e as pontas seguem o arredondado dela */
/* A trilha (i) recorta o preenchimento (b), que fica reto e escala por dentro: a ponta segue
   o arredondado da trilha em qualquer ponto da animação, sem achatar no começo */
.steps i { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.steps b { display: block; width: 100%; height: 100%; background: var(--color-fg); transform-origin: 0 50%; }
.steps button:not(.is-on) b { transform: scaleX(0); }
.steps b { transition: background-color 0.5s var(--ease-out); }
.steps button.is-done b { background: var(--color-muted); }
/* Setas das etapas: só a seta fina, sem círculo (23/10, mais enxuto); hover só escurece */
.step-nav { display: flex; gap: calc(8 * var(--u)); }
.step-nav__b {
  display: grid;
  place-items: center;
  width: max(28px, calc(32 * var(--u)));
  height: max(28px, calc(32 * var(--u)));
  color: var(--color-muted);
  transition: color 0.3s var(--ease-out);
}
.step-nav__b svg { width: max(12px, calc(12 * var(--u))); height: max(12px, calc(12 * var(--u))); fill: none; stroke: currentColor; stroke-width: 1.6; }
.step-nav__b:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }
@media (hover: hover) { .step-nav__b:hover { color: var(--color-fg); } }
.t-strategy {
  display: flex;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(128 * var(--u));
  line-height: 1.2;
}
.paren, .t-strategy__w { display: inline-block; white-space: pre; }
.t-step__mask { display: inline-block; overflow: hidden; vertical-align: top; }
/* Palavras e respostas das 5 etapas empilhadas no mesmo lugar; o JS anima uma por vez */
.t-strategy__mask { display: inline-grid; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.t-strategy__mask > .t-strategy__w { grid-area: 1 / 1; justify-self: start; }
.t-method-p { display: grid; }
.t-method-step { grid-area: 1 / 1; }
.t-step__n { display: inline-block; }
.t-method-p {
  width: calc(463 * var(--u));
  white-space: normal;
  font-size: calc(20 * var(--u));
  line-height: 1.2;
}
.t-method-p p + p { margin-top: calc(24 * var(--u)); }

/* =========================================================
   SERVICES (4180). A lista fica em fluxo para a sanfona crescer.
   ========================================================= */
.sec--services { padding-bottom: calc(40 * var(--u)); }
.t-big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(80 * var(--u));
  line-height: 1.02;
}
.t-big em { color: var(--color-accent); }
.pill {
  width: calc(118 * var(--ps));
  height: calc(118 * var(--ps));
  border-radius: calc(16 * var(--ps));
}
.pill--accent { background: var(--color-accent); }
.pill--dark { background: var(--color-pill); }
.pill__ring {
  position: absolute;
  left: calc(29 * var(--ps));
  top: calc(29 * var(--ps));
  width: calc(60 * var(--ps));
  height: calc(60 * var(--ps));
}
.pill--dark i {
  position: absolute;
  left: calc(var(--sx) * var(--ps));
  top: calc(var(--sy) * var(--ps));
  width: calc(10.672 * var(--ps));
  height: calc(var(--sh) * var(--ps));
  background: var(--color-square);
}
/* Pontos extras do dado: só aparecem quando a face pede mais de 3 */
.pill--dark i[data-extra] { transform: scale(0); }
.t-all {
  width: calc(183 * var(--u));
  white-space: normal;
  text-align: right;
  font-weight: 500;
  font-size: calc(20 * var(--u));
  line-height: calc(24 * var(--u));
  opacity: 0.22;
  transition: color 0.3s var(--ease-out);
}

.svc-list { position: relative; padding-top: calc(525 * var(--u)); }
.svc-list::after {
  content: "";
  position: absolute;
  left: calc(2.5 * var(--u));
  bottom: 0;
  width: calc(1445.5 * var(--u));
  height: 1px;
  background: var(--color-divider);
}
.svc { position: relative; }
/* Faixa de tom que sobe no hover (cor, sem elevação) */
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-fg);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out);
}
.svc__head {
  position: relative;
  display: block;
  width: 100%;
  height: calc(103 * var(--u));
  overflow: hidden;
  text-align: left;
}
.svc__line {
  position: absolute;
  left: calc(2.5 * var(--u));
  top: 0;
  width: calc(1445.5 * var(--u));
  height: 1px;
  background: var(--color-divider);
  transform-origin: 0 50%;
}
.svc__num {
  position: absolute;
  left: calc(var(--nx) * var(--u));
  top: calc(-23 * var(--u));
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(150 * var(--u));
  line-height: 1.2;
  transition: color 0.5s var(--ease-out), top 0.9s var(--ease-out);
}
/* Aberta: o número desce e aparece inteiro */
.svc.is-open .svc__head { overflow: visible; }
.svc.is-open .svc__num { top: calc(6 * var(--u)); z-index: 1; }
/* Tempo da abertura automática */
.svc__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.svc__num--c { translate: -50% 0; }
/* O GSAP anima o span interno; o externo só posiciona (evita conflito com o translate) */
.svc__num > span { display: inline-block; }
.svc__title {
  position: absolute;
  left: calc(494 * var(--u));
  top: calc(17 * var(--u));
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(50 * var(--u));
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.5s var(--ease-out);
}
.svc__arrow {
  position: absolute;
  left: calc(1083.3 * var(--u));
  top: calc(41.25 * var(--u));
  width: calc(20.75 * var(--u));
  height: calc(20.75 * var(--u));
  transform: rotate(180deg);
  transition: transform 0.6s var(--ease-out);
}
.svc__arrow img {
  position: absolute;
  inset: -4.82% -4.82% -3.41% -3.41%;
  width: 108.23%;
  height: 108.23%;
  transition: filter 0.5s var(--ease-out);
}
.svc__body { position: relative; height: 0; overflow: hidden; }
.svc.is-open .svc__body { height: auto; }
.svc__text {
  min-height: calc(92 * var(--u));
  margin-left: calc(494 * var(--u));
  width: calc(560 * var(--u));
  padding-bottom: calc(40 * var(--u));
  font-size: calc(18 * var(--u));
  line-height: 1.5;
  color: var(--color-muted);
  transition: color 0.5s var(--ease-out);
}
/* Aberto é estado ativo: aí o accent entra */
.svc.is-open .svc__num { color: var(--color-accent); }
.svc.is-open .svc__arrow { transform: rotate(90deg); }
@media (hover: hover) {
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc__num, .svc:hover .svc__title { color: var(--color-bg); }
  .svc.is-open:hover .svc__num { color: var(--color-accent); }
  .svc:hover .svc__text { color: var(--color-line); }
  .svc:not(.is-open):hover .svc__arrow { transform: rotate(360deg); }
  .svc:hover .svc__arrow img { filter: var(--svc-arrow-hover); }
}

/* Rastro de imagens: miniaturas fixas, nunca recebem clique (texto continua selecionável) */
.svc-trail { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.svc-trail img {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(112 * var(--u));
  height: calc(84 * var(--u));
  margin: calc(-42 * var(--u)) 0 0 calc(-56 * var(--u));
  border-radius: calc(8 * var(--u));
  object-fit: cover;
  visibility: hidden;
}

/* =========================================================
   ABOUT (topo da seção = 5260 no desktop)
   ========================================================= */
.sec--about { height: calc(660 * var(--u)); }
.t-about-h {
  width: calc(400 * var(--u));
  white-space: normal;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: calc(71 * var(--u));
  line-height: 0.9;
}

.metrics { width: calc(492 * var(--u)); }
.metrics::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--color-line); }
.metric { position: relative; height: calc(82 * var(--u)); }
.metric__line { position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--color-line); transform-origin: 0 50%; }
/* Alinhados pela direita numa coluna só (borda em 271, a 32 do rótulo): não dependem da largura da fonte */
.metric__num {
  position: absolute;
  right: calc((492 - 271) * var(--u));
  top: calc(11 * var(--u));
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: calc(60 * var(--u));
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric__num em { color: var(--color-accent); }
.metric__label {
  position: absolute;
  left: calc(303 * var(--u));
  top: calc(31.5 * var(--u));
  font-size: max(12px, calc(16 * var(--u)));
  line-height: 1.21;
  color: var(--color-muted);
  white-space: nowrap;
}

.about-photo { width: calc(320 * var(--as)); height: calc(480 * var(--as)); }
.junior-frame {
  position: absolute;
  left: 0;
  top: calc(76 * var(--as));
  width: calc(320 * var(--as));
  height: calc(404 * var(--as));
  border-radius: calc(38 * var(--as));
  overflow: hidden;
  background: var(--color-line);
}
.junior-frame img {
  position: absolute;
  left: calc(-338 * var(--as));
  top: calc(-283 * var(--as));
  width: calc(1027 * var(--as));
  height: calc(1284 * var(--as));
  object-fit: cover;
}
.junior-cut {
  position: absolute;
  left: calc(17 * var(--as));
  top: 0;
  width: calc(275 * var(--as));
  height: calc(376 * var(--as));
  overflow: hidden;
  pointer-events: none;
}
.junior-cut img { width: 100%; height: 100%; }

.about-copy { width: calc(342 * var(--u)); white-space: normal; }
.t-role {
  font-weight: 500;
  font-size: max(12px, calc(13 * var(--u)));
  line-height: 1.21;
  letter-spacing: calc(0.26 * var(--u));
  text-transform: uppercase;
  color: var(--color-muted);
}
.t-name {
  margin: calc(8.3 * var(--u)) 0 0 calc(-2 * var(--u));
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: calc(44 * var(--u));
  line-height: 1.2;
}
.t-bio { width: calc(340 * var(--u)); margin-top: calc(36.2 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.5; }
.t-bio--note { width: calc(330 * var(--u)); margin-top: calc(43 * var(--u)); color: var(--color-muted); }

/* =========================================================
   CONTATO (5920 a 6904)
   ========================================================= */
.sec--contact { height: calc(984 * var(--u)); color: var(--color-white); }
.t-where { font-size: max(12px, calc(16 * var(--u))); line-height: 1.21; color: var(--color-white-50); white-space: pre; }
.t-shall {
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: calc(128 * var(--u));
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.t-shall__l { display: block; }
/* O título do contato leva ao formulário. Hover só muda o tom. */
.t-shall__a { color: inherit; text-decoration: none; transition: color 0.4s var(--ease-out); }
.t-shall__a:hover, .t-shall__a:focus-visible { color: var(--color-muted); }
.t-talk--inv { color: var(--color-white); }
.t-talk--inv:hover, .t-val:hover { color: var(--color-white-50); }
.contact-line { width: calc(1140 * var(--u)); height: 1px; background: var(--color-white-14); transform-origin: 0 50%; }
.t-cap {
  font-size: max(12px, calc(13 * var(--u)));
  line-height: 1.21;
  letter-spacing: calc(0.26 * var(--u));
  text-transform: uppercase;
  color: var(--color-white-50);
}
.contact-mail .t-cap, .contact-social .t-cap { margin-bottom: calc(14.3 * var(--u)); }
.contact-social__links { display: flex; gap: calc(23 * var(--u)); }
.t-val { display: inline-flex; align-items: flex-start; font-weight: 500; font-size: calc(24 * var(--u)); line-height: 1.21; transition: color 0.3s var(--ease-out); }
.arrow-10 { width: calc(11.37 * var(--u)); height: calc(11.37 * var(--u)); margin: calc(9.2 * var(--u)) 0 0 calc(9 * var(--u)); }
.t-legal { font-size: max(12px, calc(16 * var(--u))); line-height: 1.21; color: var(--color-white-60); }
.t-copy--inv { color: var(--color-white); }

/* =========================================================
   PÁGINAS INTERNAS (contato.html, trabalhos.html)
   ========================================================= */
/* Cortina da troca de página (main.js): cobre na saída, abre na chegada */
.curtain { position: fixed; inset: 0; z-index: 66; display: none; background: var(--color-ink); pointer-events: none; transform: translateY(100%); }
.js .curtain { display: block; }
.js [data-page]:not([data-page="home"]) .curtain { transform: none; }
.t-nav.is-current { color: var(--color-muted); }

/* ---------- Contato (frame 2056:4217) ---------- */
.sec--cpage { height: calc(2450 * var(--u)); }
.t-build {
  width: calc(495 * var(--u));
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: calc(80 * var(--u));
  line-height: 0.98;
  letter-spacing: -0.01em;
  white-space: normal;
}
.t-intro { width: calc(553 * var(--u)); font-size: calc(25 * var(--u)); line-height: 1.35; color: var(--color-muted); white-space: normal; }
.proof { width: calc(419 * var(--u)); height: calc(36 * var(--u)); }
.proof__flags { position: relative; height: 100%; }
.flag {
  position: absolute;
  left: calc(var(--i) * 31 * var(--u));
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border: 2px solid var(--color-bg);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-flag);
  color: var(--color-flag-ink);
  font-size: calc(23 * var(--u));
  line-height: 1.2;
}
.flag { transition: background-color 0.5s var(--ease-out); }
.flag__e, .flag__map { transition: opacity 0.45s var(--ease-out), transform 0.7s var(--ease-out); }
.flag__map { position: absolute; inset: 14%; width: 72%; height: 72%; opacity: 0; transform: scale(0.6) rotate(-8deg); }
/* Hover: a bandeira sai, o mapa do país entra nas cores dela. Só troca de conteúdo e tom, nada sobe. */
.flag.is-map { background: var(--color-surface); z-index: 1; }
.flag.is-map .flag__e { opacity: 0; transform: scale(0.5); }
.flag.is-map .flag__map { opacity: 1; transform: none; }
.proof__t, .proof__d { position: absolute; left: calc(271 * var(--u)); white-space: nowrap; color: var(--color-muted); }
.proof__d { overflow: hidden; }
.proof__dd, .proof__country { display: block; transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out); }
.proof__country { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0; }
.proof.is-country .proof__dd { transform: translateY(-100%); opacity: 0; }
.proof.is-country .proof__country { transform: none; opacity: 1; }
.count { font-variant-numeric: tabular-nums; }
.proof__t { top: 0; font-weight: 500; font-size: max(12px, calc(15 * var(--u))); line-height: calc(18 * var(--u)); }
.proof__d { top: calc(19 * var(--u)); font-size: max(12px, calc(13 * var(--u))); line-height: calc(16 * var(--u)); opacity: 0.6; }
.cpage-line { width: calc(1304 * var(--u)); height: 1px; background: var(--color-line); transform-origin: 0 50%; }
.t-note { width: calc(530 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.5; white-space: normal; }
.t-note--muted { color: var(--color-muted); }

/* Canais diretos: linhas de 98 com rótulo em caixa alta, valor e seta */
.channels { width: calc(530 * var(--u)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); white-space: normal; }
.channel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(16 * var(--u));
  padding: calc(22 * var(--u)) 0;
  border-bottom: 1px solid var(--color-line);
}
.channel__t { display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.channel__l { font-size: max(12px, calc(13 * var(--u))); line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.channel__v { font-weight: 500; font-size: calc(24 * var(--u)); line-height: 1.2; transition: color 0.3s var(--ease-out); }
.channel__v--u { text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font; }
.channel__arrow { flex: none; width: calc(14 * var(--u)); height: calc(14 * var(--u)); margin-bottom: calc(6 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) { .channel:hover .channel__v { color: var(--color-muted); } }
.t-note a {
  text-decoration: underline;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  transition: color 0.3s var(--ease-out);
}
.t-note a:hover { color: var(--color-muted); }
.wm-sm { width: calc(176.745 * var(--u)); height: calc(27.066 * var(--u)); }

.qform { display: flex; flex-direction: column; gap: calc(37 * var(--u)); width: calc(602 * var(--u)); white-space: normal; }
.field { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.field__l { font-weight: 500; font-size: calc(20 * var(--u)); line-height: 1.21; }
.field__i {
  width: 100%;
  height: calc(62 * var(--u));
  padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)) calc(40 * var(--u));
  border: 1px solid transparent;
  border-radius: calc(21 * var(--u));
  background: var(--color-surface);
  color: var(--color-fg);
  font: inherit;
  font-size: calc(18 * var(--u));
  line-height: 1.2;
  outline: none;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field__i::placeholder { color: var(--color-muted); opacity: 1; }
.field__i:hover { border-color: var(--color-line); }
.field__i:focus-visible { border-color: var(--color-fg); }
.field__i--area { height: calc(150 * var(--u)); resize: none; }
.field__sel { position: relative; display: block; }
.field__sel select { padding-right: calc(54 * var(--u)); cursor: pointer; }
.field__sel select:invalid, .field__sel select.is-empty { color: var(--color-muted); }
.field__sel img { position: absolute; right: calc(20 * var(--u)); top: 50%; width: calc(14 * var(--u)); height: calc(8 * var(--u)); translate: 0 -50%; pointer-events: none; }
/* Erro: borda e mensagem curta embaixo do campo */
.field__h { font-size: max(12px, calc(16 * var(--u))); line-height: 1.2; color: var(--color-muted); }

/* Chips (Figma "Chip"): 56 de altura, raio 21; marcado inverte para fg */
.chips { display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: block;
  padding: calc(17 * var(--u)) calc(26 * var(--u));
  border-radius: calc(21 * var(--u));
  background: var(--color-surface);
  color: var(--color-fg);
  font-size: calc(18 * var(--u));
  line-height: 1.22;
  white-space: nowrap;
  pointer-events: none;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.chip input:checked + span { background: var(--color-fg); color: var(--color-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--color-fg); outline-offset: 2px; }
@media (hover: hover) { .chip:hover input:not(:checked) + span { background: var(--color-line); } }

/* Dropdown próprio (Figma "Dropdown / aberto"): lista de 602, linhas de 46, hover em line */
.dd { position: relative; }
/* A entrada do GSAP dá uma camada a cada campo: o campo aberto vai para a frente do botão e do rodapé */
.field:has(.dd.is-open) { position: relative; z-index: 20; }
.dd__btn { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--u)); text-align: left; cursor: pointer; }
.dd__v.is-empty { color: var(--color-muted); }
.dd__btn img { flex: none; width: calc(14 * var(--u)); height: calc(8 * var(--u)); transition: transform 0.3s var(--ease-out); }
.dd.is-open .dd__btn img { transform: rotate(180deg); }
.dd__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  margin: 0;
  padding: calc(8 * var(--u)) 0;
  list-style: none;
  border: 1px solid var(--color-line);
  border-radius: calc(21 * var(--u));
  background: var(--color-surface);
  outline: none;
  overflow: hidden;
}
.dd__opt { padding: calc(12 * var(--u)) calc(20 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.22; color: var(--color-fg); cursor: pointer; transition: background-color 0.2s var(--ease-out); }
.dd__opt.is-active { background: var(--color-line); }
.dd__opt[aria-selected="true"] { font-weight: 500; }

.field__e { display: none; font-size: max(12px, calc(14 * var(--u))); line-height: 1.3; color: var(--color-error); }
.field.is-error .field__i { border-color: var(--color-error); }
.field.is-error .field__e { display: block; }
.btn-send {
  height: calc(90 * var(--u));
  border-radius: calc(21 * var(--u));
  background: var(--color-fg);
  color: var(--color-bg);
  font-weight: 700;
  font-size: calc(20 * var(--u));
  transition: background-color 0.35s var(--ease-out);
}
.btn-send:hover { background: var(--color-ink); }
.btn-send:disabled { opacity: 0.6; cursor: progress; }
.qform__status { min-height: 1.4em; margin-top: calc(-21 * var(--u)); font-size: max(12px, calc(16 * var(--u))); line-height: 1.4; color: var(--color-muted); }
.qform__status.is-error { color: var(--color-error); }

/* Rodapé curto das páginas internas */
.sec--foot { height: calc(504 * var(--u)); color: var(--color-white); }

/* ---------- Trabalhos (frame 2056:4469) ---------- */
.sec--wpage { height: calc(3216 * var(--u)); }
.t-selected {
  width: calc(480 * var(--u));
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: calc(128 * var(--u));
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: normal;
}
.works-arrow { width: calc(36.738 * var(--u)); height: calc(36.738 * var(--u)); rotate: -45deg; }
.t-wslogan { width: calc(521 * var(--u)); font-weight: 500; font-size: calc(25 * var(--u)); line-height: 1.35; color: var(--color-muted); white-space: normal; }

/* ---------- Modal de projeto (embed do Behance) ----------
   Mesma linguagem do menu: fundo ink que abre em círculo a partir do clique,
   botão Fechar em pílula clara e tipografia display no título. */
.pmodal { position: fixed; inset: 0; z-index: 69; visibility: hidden; color: var(--color-white); }
.pmodal.is-open { visibility: visible; }
.pmodal__bg { position: absolute; inset: 0; background: var(--color-ink); clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); }
.pmodal.is-open .pmodal__bg { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.pmodal__in {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  height: 100%;
  padding: 28px 66px 40px calc(69px + 0px);
}
.pmodal__head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta ctrl" "title ctrl"; align-items: end; column-gap: 32px; }
.pmodal__meta { grid-area: meta; display: flex; gap: 20px; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--color-white-50); }
.pmodal__n { color: var(--color-accent); font-variant-numeric: tabular-nums; }
.pmodal__total { font-variant-numeric: tabular-nums; }
.pmodal__title {
  grid-area: title;
  margin-top: 6px;
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.pmodal__ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 12px; align-self: start; }
.pmodal__ext { margin-right: 20px; font-weight: 500; font-size: 16px; transition: color 0.3s var(--ease-out); }
.pmodal__ext:hover { color: var(--color-white-60); }
.pmodal__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--color-white-32);
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.pmodal__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pmodal__nav:hover { background: var(--color-white-14); box-shadow: inset 0 0 0 1px var(--color-white-14); }
.pmodal__close {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 12px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.3s var(--ease-out);
}
.pmodal__close:hover { background: var(--color-white-60); }
.pmodal__x { position: relative; width: 36px; height: 36px; border-radius: 999px; background: var(--color-ink); }
.pmodal__x i { position: absolute; left: 11px; top: 17.25px; width: 14px; height: 1.5px; background: var(--color-white); }
.pmodal__x i:first-child { transform: rotate(45deg); }
.pmodal__x i:last-child { transform: rotate(-45deg); }
.pmodal__body { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--color-black); }
.pmodal__state { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 15px; color: var(--color-white-50); }
.pmodal__state a { color: var(--color-white); text-decoration: underline; }
.pmodal__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.pmodal.is-loaded .pmodal__frame { opacity: 1; }
.card[data-behance], .card[data-href] { cursor: pointer; }
@media (max-width: 899px) {
  .pmodal__in { gap: 16px; padding: 20px 16px 16px; }
  .pmodal__head { grid-template-columns: 1fr auto; grid-template-areas: "meta ctrl" "title title"; row-gap: 12px; align-items: center; }
  .pmodal__title { font-size: 36px; }
  .pmodal__ext, .pmodal__nav { display: none; }
  .pmodal__close { margin-left: 0; font-size: 14px; gap: 12px; padding-left: 18px; }
  .pmodal__x { width: 32px; height: 32px; }
  .pmodal__x i { left: 9px; top: 15.25px; }
}

/* Tema escuro: a faixa e o contato invertem e ficam claros, como contraponto ao fundo.
   Os tokens são redefinidos só dentro dessas seções; os SVGs brancos viram escuros. */
:root[data-theme="dark"] :is(.sec--band, .sec--contact, .sec--foot) {
  --color-ink: #e6e6e6;
  --color-white: #141414;
  --color-white-60: rgba(20, 20, 20, 0.62);
  --color-white-50: rgba(20, 20, 20, 0.52);
  --color-white-32: rgba(20, 20, 20, 0.32);
  --color-white-14: rgba(20, 20, 20, 0.14);
}
:root[data-theme="dark"] :is(.sec--contact, .sec--foot) :is(.arrow-10, .wordmark--foot img) { filter: invert(1); }

/* Nav do topo: no Figma os links têm o mesmo espaço (71) e o conjunto fica centrado.
   Em flex, o inglês cai igual ao Figma e o português (palavras maiores) não encosta. */
@media (min-width: 900px) {
  .hdr-nav {
    position: absolute;
    left: 50%;
    top: calc(54 * var(--u));
    display: flex;
    gap: calc(71 * var(--u));
    translate: -50% 0;
  }
  .hdr-nav .a { position: relative; left: auto; top: auto; }
}

/* Textos pequenos do desktop têm piso de 12px: entre 900 e 1280 o canvas encolhe,
   e sem piso rail, legendas e rótulos chegariam a 8px. Em 1440 nada muda. */

/* ---------- Utilitários de animação ---------- */
.split-line { padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* =========================================================
   MOBILE (< 900px): fluxo vertical, base 390
   ========================================================= */
@media (max-width: 899px) {
  :root {
    --u: calc(min(100vw, 560px) / 390);
    --hs: calc(var(--u) * 0.62);
    --cs: calc(var(--u) * 358 / 640);
    --ps: calc(var(--u) * 0.55);
    --as: var(--u);
    --g: max(calc(16 * var(--u)), calc((100vw - 358 * var(--u)) / 2));
  }

  /* Tudo que era absoluto entra no fluxo */
  .a { position: relative; left: auto; top: auto; right: auto; white-space: normal; }
  .sec { height: auto; padding-inline: var(--g); display: flex; flex-direction: column; }

  .hdr-logo, .hdr-nav, .hdr-talk, .rail-theme, .rot, .rail, .wordmark-copy { display: none; }
  .bar, .bar__logo { transform: none; opacity: 1; }
  /* Depois do hero o logo sai: na largura do celular ele cairia sobre o texto */
  .bar-on:not(.menu-open) .bar__logo { opacity: 0; transform: translateY(-40%); }
  .bar-hide:not(.menu-open) .bar, .bar-hide:not(.menu-open) .bar__logo { transform: translateY(-200%); }
  .bar { padding: calc(20 * var(--u)) var(--g) 0; }
  .bar__logo { left: var(--g); top: calc(23 * var(--u)); }
  .bar__logo img { width: calc(32 * var(--u)); height: calc(33.2 * var(--u)); }
  .bar__menu { font-size: max(12px, calc(14 * var(--u))); padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) calc(18 * var(--u)); gap: calc(12 * var(--u)); }
  .bar__menu-icon { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }

  .menu__in { padding: calc(92 * var(--u)) 0 calc(32 * var(--u)); }
  .menu__nav { --inset: var(--g); }
  .menu__nav a { font-size: calc(48 * var(--u)); gap: calc(14 * var(--u)); }
  .menu__foot { padding-inline: var(--g); }
  .menu__n { font-size: max(12px, calc(12 * var(--u))); }
  .menu__foot { flex-direction: column; align-items: flex-start; }
  .menu__mail { font-size: calc(18 * var(--u)); }
  .theme-btn img { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }


  /* Hero */
  .sec--hero { padding-top: calc(84 * var(--u)); }
  .hero {
    width: 100%;
    height: calc(460 * var(--u));
    -webkit-mask: none;
    mask: none;
    border-radius: calc(24 * var(--u));
    overflow: hidden;
  }
  .slide__photo { left: 0; top: 0; width: 100%; height: 100%; object-position: var(--fp, 50% 50%); }
  .slide__stage { left: 50%; top: 50%; translate: -50% -50%; }
  .hero__count { left: auto; right: calc(20 * var(--u)); top: calc(20 * var(--u)); font-size: max(12px, calc(13 * var(--u))); }
  .hero__nav { display: none; }
  .hero__progress { left: calc(14 * var(--u)); top: calc(16 * var(--u)); }
  .btn-start {
    align-self: flex-end;
    margin: calc(-72 * var(--u)) calc(12 * var(--u)) 0 0;
    gap: calc(24 * var(--u));
    padding-left: calc(28 * var(--u));
    font-size: calc(15 * var(--u));
  }
  .wordmark { width: 100%; height: auto; margin-top: calc(28 * var(--u)); }
  .wordmark img { height: auto; }
  .t-slogan { margin-top: calc(24 * var(--u)); font-size: calc(22 * var(--u)); }
  .t-service { width: 100%; text-align: left; margin-top: calc(16 * var(--u)); font-size: calc(15 * var(--u)); padding-bottom: calc(56 * var(--u)); }

  /* Faixa: tela cheia, conteúdo centralizado */
  .sec--band { min-height: 100svh; justify-content: center; padding-block: calc(96 * var(--u)); }
  .sec--band > .a { top: auto; }
  .band-title { font-size: calc(46 * var(--u)); }
  .band-arrow { align-self: flex-end; width: calc(44 * var(--u)); height: calc(44 * var(--u)); margin-top: calc(32 * var(--u)); }

  /* Works */
  .sec--works { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: calc(12 * var(--u)); padding-block: calc(64 * var(--u)) calc(80 * var(--u)); }
  .t-works-h { font-size: max(12px, calc(14 * var(--u))); white-space: nowrap; }
  .cards, .criamos, .veja { grid-column: 1 / -1; }
  .cards { display: flex; flex-direction: column; gap: calc(16 * var(--u)); margin-top: calc(24 * var(--u)); }
  .criamos { display: flex; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(56 * var(--u)); }
  .t-criamos { font-size: calc(16 * var(--u)); white-space: nowrap; }
  .criamos-line { width: calc(36 * var(--u)); }
  .words { height: calc(5 * 16 * 1.8 * var(--u)); }
  .words__list li { font-size: calc(16 * var(--u)); }
  .veja { display: flex; align-items: center; gap: calc(16 * var(--u)); margin-top: calc(32 * var(--u)); }
  .icon-55 { width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex: none; }
  .t-veja { width: auto; flex: 1; font-size: calc(34 * var(--u)); }
  .arrow-more { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; }

  /* Method */
  .sec--method { padding-block: calc(72 * var(--u)) calc(80 * var(--u)); }
  .method-top { display: flex; flex-wrap: wrap; align-items: center; gap: calc(12 * var(--u)) calc(12 * var(--u)); }
  .t-point { font-size: calc(20 * var(--u)); }
  .t-label { font-size: calc(16 * var(--u)); line-height: 1.6; }
  .steps { display: flex; gap: calc(8 * var(--u)); }
  .t-step { margin-left: auto; font-size: max(12px, calc(13 * var(--u))); line-height: 1.6; }
  .step-nav { position: static; }
  .t-strategy { margin-top: calc(32 * var(--u)); font-size: calc(56 * var(--u)); }
  .t-method-p { width: 100%; margin-top: calc(20 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.35; }
  .t-method-p p + p { margin-top: calc(16 * var(--u)); }

  /* Services: a lista vai de borda a borda */
  .sec--services { padding: calc(64 * var(--u)) 0 calc(48 * var(--u)); }
  .sec--services > .t-label, .svc-head, .pills, .t-all { margin-inline: var(--g); }
  .svc-head { font-family: var(--font-display); font-weight: 300; font-size: calc(36 * var(--u)); line-height: 1.08; }
  .t-big { display: inline; font-size: inherit; line-height: inherit; }
  .pills { display: flex; gap: calc(12 * var(--u)); margin-top: calc(24 * var(--u)); }
  .t-all { width: auto; text-align: left; margin-top: calc(20 * var(--u)); font-size: calc(16 * var(--u)); }
  .svc-list { padding-top: calc(40 * var(--u)); }
  .svc-list::after, .svc__line { left: 0; width: 100%; }
  .svc__head { height: calc(76 * var(--u)); }
  .svc__num { left: var(--g); top: calc(-6 * var(--u)); font-size: calc(72 * var(--u)); }
  .svc__num--c { translate: none; }
  .svc.is-open .svc__num { top: calc(4 * var(--u)); }
  .svc__title { left: calc(var(--g) + 92 * var(--u)); top: calc(24 * var(--u)); font-size: calc(22 * var(--u)); }
  .svc__arrow { left: auto; right: var(--g); top: calc(28 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
  .svc__text { margin: 0 var(--g); width: auto; padding: calc(4 * var(--u)) 0 calc(28 * var(--u)) calc(92 * var(--u)); font-size: calc(15 * var(--u)); }

  /* About */
  .sec--about { padding-block: calc(64 * var(--u)) calc(72 * var(--u)); }
  .t-about-h { width: 100%; margin-top: calc(8 * var(--u)); font-size: calc(48 * var(--u)); }
  .about-photo { align-self: center; margin-top: calc(32 * var(--u)); }
  .metrics { width: 100%; margin-top: calc(40 * var(--u)); }
  .metric { height: calc(72 * var(--u)); }
  .metric__num { right: auto; left: 0; top: calc(12 * var(--u)); font-size: calc(48 * var(--u)); }
  .metric__label { left: calc(132 * var(--u)); top: calc(28 * var(--u)); font-size: calc(15 * var(--u)); }
  .about-copy { width: 100%; margin-top: calc(40 * var(--u)); }
  .t-name { font-size: calc(36 * var(--u)); margin-left: 0; }
  .t-bio, .t-bio--note { width: 100%; font-size: calc(16 * var(--u)); margin-top: calc(20 * var(--u)); }

  /* Contato */
  .sec--contact { padding-block: calc(64 * var(--u)) calc(24 * var(--u)); }
  .contact-top { display: flex; justify-content: space-between; align-items: baseline; }
  .t-label--inv { font-size: calc(16 * var(--u)); }
  .t-where { font-size: max(12px, calc(14 * var(--u))); }
  .t-shall { margin-top: calc(40 * var(--u)); font-size: calc(50 * var(--u)); }
  .t-talk--inv { align-self: flex-start; margin-top: calc(24 * var(--u)); font-size: calc(18 * var(--u)); }
  .contact-line { width: 100%; margin-top: calc(48 * var(--u)); }
  .contact-mail, .contact-social { margin-top: calc(28 * var(--u)); }
  .t-val { font-size: calc(20 * var(--u)); }
  .arrow-10 { margin-top: calc(7 * var(--u)); }
  .wordmark--foot { order: 9; margin-top: calc(48 * var(--u)); }
  .t-legal { order: 10; margin-top: calc(24 * var(--u)); font-size: max(12px, calc(14 * var(--u))); }
}

@media (max-width: 899px) {
  /* Páginas internas */
  .sec--cpage, .sec--wpage { padding-top: calc(104 * var(--u)); padding-bottom: calc(72 * var(--u)); }
  .t-build { width: 100%; font-size: calc(48 * var(--u)); }
  .t-intro { width: 100%; margin-top: calc(24 * var(--u)); font-size: calc(18 * var(--u)); }
  .t-intro br { display: none; }
  .proof { width: 100%; margin-top: calc(24 * var(--u)); height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: calc(8 * var(--u)) calc(16 * var(--u)); }
  .proof__flags { width: calc((7 * 31 + 36) * var(--u)); height: calc(36 * var(--u)); flex: none; }
  .proof__t, .proof__d { position: static; }
  .proof__t + .proof__d { flex-basis: 100%; margin-top: calc(-8 * var(--u)); }
  .proof > p { flex: none; }
  .cpage-line { width: 100%; margin-top: calc(40 * var(--u)); }
  .t-note { width: 100%; margin-top: calc(40 * var(--u)); font-size: calc(17 * var(--u)); }
  .wm-sm { order: 9; align-self: flex-start; margin-top: calc(48 * var(--u)); width: calc(140 * var(--u)); height: auto; }
  .t-note--muted { margin-top: calc(12 * var(--u)); }
  .channels { width: 100%; margin-top: calc(32 * var(--u)); }
  .channel { padding: calc(18 * var(--u)) 0; }
  .channel__v { font-size: calc(20 * var(--u)); }
  .chips { gap: calc(8 * var(--u)); }
  .chip span { padding: calc(12 * var(--u)) calc(18 * var(--u)); border-radius: calc(16 * var(--u)); font-size: max(15px, calc(15 * var(--u))); }
  .field__h { font-size: max(13px, calc(14 * var(--u))); }
  .dd__list { border-radius: calc(16 * var(--u)); }
  .dd__opt { padding: calc(12 * var(--u)) calc(20 * var(--u)); font-size: max(16px, calc(16 * var(--u))); }
  .qform { width: 100%; margin-top: calc(40 * var(--u)); gap: calc(24 * var(--u)); }
  .field__l { font-size: calc(16 * var(--u)); }
  /* 16px no mínimo: abaixo disso o iOS dá zoom ao focar */
  .field__i { height: calc(56 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u)); border-radius: calc(16 * var(--u)); font-size: max(16px, calc(16 * var(--u))); }
  .field__i--area { height: calc(140 * var(--u)); }
  .field__sel img { right: calc(18 * var(--u)); }
  .btn-send { height: calc(64 * var(--u)); border-radius: calc(16 * var(--u)); font-size: calc(17 * var(--u)); }
  .qform__status { margin-top: 0; font-size: max(12px, calc(14 * var(--u))); }
  .sec--foot { padding-block: calc(56 * var(--u)) calc(24 * var(--u)); }
  .sec--foot .contact-mail { margin-top: 0; }

  .sec--wpage { display: grid; grid-template-columns: 1fr; }
  .t-selected { width: 100%; font-size: calc(64 * var(--u)); }
  .works-arrow { display: none; }
  .t-wslogan { width: 100%; margin-top: calc(20 * var(--u)); font-size: calc(18 * var(--u)); }
  .sec--wpage .btn-start { justify-self: start; margin: calc(28 * var(--u)) 0 0; }
  .sec--wpage .cards { margin-top: calc(40 * var(--u)); }
}

/* Celular: áreas de toque de pelo menos ~40px nos links pequenos (sem mudar o desenho) */
@media (max-width: 899px) {
  .t-works-more, .card__link, .t-val, .t-note a, .menu__mail { padding-block: 10px; margin-block: -10px; }
  /* Área de toque num ::after (a borda transparente de antes deformava o arredondado em elipse).
     Sem overflow: hidden, senão o clique fora da trilha não conta; o preenchimento tem raio próprio. */
  .steps button { position: relative; overflow: visible; background: none; }
  .steps i { border-radius: 999px; background: var(--color-line); }
  .steps button::after { content: ""; position: absolute; inset: -12px -4px; }
}

/* Tablet (600 a 899): coluna mais larga com margem fixa e cards em duas colunas, como no desktop */
@media (min-width: 600px) and (max-width: 899px) {
  :root {
    --g: 40px;
    --cs: calc((100vw - 96px) / 2 / 640);
  }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .card { width: 100%; height: calc(480 * var(--cs)); }
  .hero { height: calc(520 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  .js .loader { display: none; }
  body::after { animation: none; }
  .bar, .bar__logo { transform: none; opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ============ Página de projeto (Figma 4003-1876 · Quoni) ============ */
.sec--ppage { padding-bottom: calc(160 * var(--u)); }
.ppage-top { position: relative; height: calc(875 * var(--u)); }
.t-ptitle {
  font-family: var(--font-display-text);
  font-weight: 300;
  font-size: calc(100 * var(--u));
  line-height: 1;
  letter-spacing: -0.01em;
}
.t-ptitle--long { font-size: calc(92 * var(--u)); }
/* Nome muito longo (Jonathan Graton): em 92 encostava na "Descrição do projeto" */
.t-ptitle--xlong { font-size: calc(76 * var(--u)); }
.t-plabel { font-size: calc(22 * var(--u)); font-weight: 600; line-height: 1.8; }
.pinfo { width: calc(463 * var(--u)); margin: 0; border-top: 1px solid var(--color-line); white-space: normal; }
.pinfo__r { display: grid; grid-template-columns: calc(152 * var(--u)) 1fr; padding: calc(18 * var(--u)) 0; border-bottom: 1px solid var(--color-line); font-size: max(13px, calc(15 * var(--u))); line-height: 1.8; }
.pinfo dt { font-weight: 700; }
.pinfo dd { margin: 0; color: var(--color-muted); }
.ptext { width: calc(560 * var(--u)); white-space: normal; font-size: max(13px, calc(15 * var(--u))); line-height: 1.35; color: var(--color-muted); }
.ptext p + p { margin-top: calc(22 * var(--u)); }
.ptext__em { font-weight: 500; color: var(--color-fg); }
.pgal { display: flex; flex-direction: column; gap: calc(24 * var(--u)); width: calc(1304 * var(--u)); margin-left: calc(68 * var(--u)); }
.pgal__i { position: relative; margin: 0; aspect-ratio: var(--ar); overflow: hidden; border-radius: calc(40 * var(--u)); background: var(--color-surface); isolation: isolate; }
.pgal__i img, .pgal__i video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* As exportações da galeria trazem cantos claros e um fio claro de 1 a 2 px na direita e embaixo:
   a imagem cresce 1,2% dentro da moldura, que corta tudo isso. */
.pgal__i img { transform: scale(1.012); }
.pgal__i--contain { background: var(--color-black); }
.pgal__i--flat { border-radius: 0; background: none; }
.pgal__i--contain video { object-fit: contain; }
/* Carrossel que só desliza: faixa de imagem animada pelo navegador, na taxa da tela.
   --pw = largura de um ciclo da faixa em relação à moldura; a trilha leva dois ciclos e anda um. */
.pgal__marq { position: absolute; inset: 0 auto 0 0; width: calc(200% * var(--pw)); background-size: 50% 100%; background-repeat: repeat-x; animation: pgal-marq var(--dur) linear infinite; will-change: transform; }
@keyframes pgal-marq { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .pgal__marq { animation-play-state: paused; } }
/* Blocos "Grid" do Figma: imagens lado a lado, com as larguras do frame */
.pgal__row { display: grid; grid-template-columns: var(--cols); gap: calc(24 * var(--u)); }
.pgal__row--part { justify-content: center; }

@media (max-width: 899px) {
  .sec--ppage { padding-top: calc(104 * var(--u)); padding-bottom: calc(72 * var(--u)); }
  .ppage-top { height: auto; display: grid; grid-template-columns: 1fr; }
  .t-ptitle { font-size: calc(64 * var(--u)); }
  .t-plabel { order: 3; margin-top: calc(40 * var(--u)); font-size: calc(18 * var(--u)); }
  .pinfo { order: 2; width: 100%; margin-top: calc(32 * var(--u)); }
  .pinfo__r { grid-template-columns: calc(120 * var(--u)) 1fr; padding: calc(14 * var(--u)) 0; }
  .ptext { order: 4; width: 100%; margin-top: calc(12 * var(--u)); font-size: max(15px, calc(15 * var(--u))); }
  .pgal { width: 100%; margin: calc(40 * var(--u)) 0 0; gap: calc(12 * var(--u)); }
  .pgal__i { border-radius: calc(16 * var(--u)); }
  .pgal__row { grid-template-columns: 1fr; gap: calc(12 * var(--u)); }
}

/* =========================================================
   Feedback do Júnior, rodada 3 (27/10/2026)
   ========================================================= */
/* Título do contato: linhas equilibradas, sem palavra sozinha na última */
.t-build { text-wrap: balance; }

/* Idioma na barra do celular, fora do menu: pílula ao lado do Menu */
.bar__lang { display: none; }

@media (max-width: 899px) {
  .bar { gap: calc(8 * var(--u)); }
  .bar__lang {
    display: flex;
    align-items: center;
    height: calc(44 * var(--u));
    padding-inline: calc(8 * var(--u));
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-muted);
    font-size: max(12px, calc(14 * var(--u)));
    line-height: 1.21;
  }
  .bar__lang button { height: 100%; padding-inline: calc(8 * var(--u)); color: inherit; }
  .bar__lang button[aria-pressed="true"] { color: var(--color-fg); }
  .menu-open .bar__lang { background: var(--color-white); color: color-mix(in srgb, var(--color-ink) 50%, transparent); }
  .menu-open .bar__lang button[aria-pressed="true"] { color: var(--color-ink); }
  .menu__ctrl .lang-switch { display: none; }

  /* Hero: escala dos logos pelo banner mobile do Figma (IyYaeNJnBAKSw7B8s6QHiW, nó 0:5): o Quoni
     ocupa 57,8% da largura (0,53). A Camisa Listrada, mais comprida, fica em 0,44 (--hm no HTML) */
  .slide__stage { --hs: calc(var(--u) * var(--hm, 0.53)); }

  /* Cards: sem o nome do projeto no celular, fica só o "Ver projeto" */
  .card__name { display: none; }

  /* Números do About numa coluna alinhada pela direita, como no desktop (rótulo a 132) */
  .metric__num { left: auto; right: calc(100% - 112 * var(--u)); }
}

/* Banner mobile do hero, igual aos frames do Figma (IyYaeNJnBAKSw7B8s6QHiW, 749 × 1002):
   abaixo de 600 a foto já vem recortada (assets/img/hero-m) e cada slide tem o logo do frame,
   posicionado em % do banner (--bl, --bt, --bw). O logo do desktop (stage) sai. */
.slide__brand--m { display: none; }
@media (max-width: 599px) {
  .hero { height: auto; aspect-ratio: 749 / 1002; }
  .slide__stage { display: none; }
  .slide__brand--m { display: block; position: absolute; left: var(--bl); top: var(--bt); width: var(--bw); height: auto; }
  .slide__photo { object-position: 50% 50%; }
  /* Camisa: é slide claro no desktop, mas no banner mobile a foto é escura */
  .hero.is-soft.is-dark-m .hero__count { color: var(--color-white); }
  .hero.is-soft.is-dark-m .hero__progress button::before { background: var(--color-white-32); }
  .hero.is-soft.is-dark-m .hero__progress b { background: var(--color-white); }
}

/* WordPress: altura de Trabalhos pelo número de cards */
@media (min-width: 900px) { .sec--wpage[style*="--wh"] { height: calc(var(--wh) * var(--u)); } }
/* Vídeo bloqueado pelo aparelho (economia de energia): fica a capa, sem o botão de play do sistema */
.pgal__i.is-parado { background-size: cover; background-position: center; }
.pgal__i--contain.is-parado { background-size: contain; background-repeat: no-repeat; }
.pgal__i.is-parado video { visibility: hidden; }
/* Botão do hero acima dos slides: na troca o slide ativo ganha z-index 1 ou 2 e, no celular, cobria o botão */
.btn-start { z-index: 3; }
@media (max-width: 899px) { .btn-start { position: relative; } }
/* Capas do hero no computador e no tablet (Figma IyYaeNJnBAKSw7B8s6QHiW, nó 5:87, 28/10): foto com opacidade
   sobre preto e o mesmo --scrim nos 4 slides. Camisa e Vyra deixam de ser claras: contador e barras em branco.
   Abaixo de 600 segue o banner mobile. */
@media (min-width: 600px) {
  .slide, .slide--soft { background: var(--color-black); }
  .slide__photo { opacity: var(--opd, 0.8); }
  .slide[aria-label="Vyra"] { --opd: 0.79; }
  .slide[aria-label="Tick Tac"] { --opd: 0.9; }
  .hero.is-soft .hero__count { color: var(--color-white); }
  .hero.is-soft .hero__progress button::before { background: var(--color-white-32); }
  .hero.is-soft .hero__progress b { background: var(--color-white); }
  .hero.is-soft .hero__nav button { color: var(--color-white-60); }
}
@media (min-width: 600px) and (hover: hover) { .hero.is-soft .hero__nav button:hover { color: var(--color-white); } }
/* Sombreado acima dos slides (que ganham z-index 1 ou 2 na troca e o cobriam) e abaixo do contador (3) */
@media (min-width: 600px) { .hero__scrim { z-index: 2; } }
