/* =========================================================================
   Layla Nunes — Portfólio
   Desktop (≥900px): composição fiel ao Figma (frame 1920), escalada por --k.
   Componentes de proporção fixa escalam pelo próprio contêiner (cqw).
   Tablet/celular: mesma linguagem visual em fluxo, sem rolagem horizontal.
   ========================================================================= */

:root {
  --ink: #1B1B19;
  --lime: #CDF948;
  --lime-2: #E0F878;
  --lime-3: #B8E03D;
  --cream: #FFF8E9;
  --grey: #D9D9D9;
  --error: #FF8A65;
  --k: 1;
  --u: calc(var(--k) * 1px);
  --fx0: 0px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --font: 'articulat-cf', 'Articulat CF', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heavy: 'articulat-heavy-cf', 'articulat-cf', system-ui, sans-serif;
  --font-display: 'badeen-display', 'Badeen Display', 'articulat-heavy-cf', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
strong, b { font-weight: 600; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 30px; font-weight: 600; transition: top var(--t-fast) var(--ease); }
.skip-link:focus { top: 16px; }
.noscript { padding: 40px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }

/* ---------------- Motion base ---------------- */
/* Duas camadas que se combinam no mesmo elemento:
   --fx-*  → ligado à posição da rolagem (fade ao sair pelo topo / surgir por baixo)
   --rv-*  → entrada (e reentrada) animada quando o texto chega à tela          */
@property --rv-o { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --rv-x { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --rv-y { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --rv-clip { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
[data-fx], [data-reveal] {
  opacity: calc(var(--fx-o, 1) * var(--rv-o));
  transform: translate3d(var(--rv-x), calc(var(--fx-y, 0px) + var(--rv-y)), 0);
}
[data-fx] { will-change: opacity, transform; }
.is-ready [data-reveal] {
  transition: --rv-o 560ms var(--ease) var(--d, 0ms), --rv-x 680ms var(--ease) var(--d, 0ms), --rv-y 680ms var(--ease) var(--d, 0ms), --rv-clip 760ms var(--ease) var(--d, 0ms);
}
.is-ready [data-reveal]:not(.is-in) { --rv-o: 0; --rv-y: 18px; }
.is-ready [data-reveal="left"]:not(.is-in) { --rv-y: 0px; --rv-x: -28px; }
.is-ready [data-reveal="right"]:not(.is-in) { --rv-y: 0px; --rv-x: 28px; }
/* títulos grandes: sobem por trás de uma máscara */
/* a base da máscara vai de 100% (oculto) a -25% (folga para descendentes: g, j, p, q, y) */
[data-reveal="mask"] { clip-path: inset(-12% -4% calc(var(--rv-clip) * 1.25 - 25%) -4%); }
.is-ready [data-reveal="mask"]:not(.is-in) { --rv-o: .2; --rv-y: 34px; --rv-clip: 100%; }

/* Transições entre páginas (View Transitions API) */
.sidebar { view-transition-name: sidebar; }
::view-transition-group(sidebar) { animation: none; }
::view-transition-old(sidebar) { display: none; }
::view-transition-new(sidebar) { animation: none; }
::view-transition-old(root) { animation: vt-out 300ms var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 520ms 140ms var(--ease) both; }
.vt-morph::view-transition-old(root) { animation-duration: 260ms; }
.vt-morph::view-transition-new(root) { animation: vt-in 520ms 280ms var(--ease) both; }
::view-transition-group(morph) { animation-duration: 640ms; animation-timing-function: cubic-bezier(.3, .75, .15, 1); z-index: 3; }
::view-transition-old(morph) { animation: vt-fade-out 340ms var(--ease) both; }
::view-transition-new(morph) { animation: vt-fade-in 420ms 120ms var(--ease) both; }
::view-transition-old(morph), ::view-transition-new(morph) { height: 100%; width: 100%; object-fit: cover; }
::view-transition-group(morph-title) { animation-duration: 640ms; animation-timing-function: cubic-bezier(.3, .75, .15, 1); z-index: 4; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* =========================================================================
   BARRA LATERAL — fixa, fora do conteúdo animado
   ========================================================================= */
.sidebar {
  position: fixed;
  z-index: 40;
  left: calc(var(--fx0) + 60 * var(--u));
  top: 50%;
  translate: 0 -50%;
  width: calc(104 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(50 * var(--u));
}
.monogram {
  width: calc(104 * var(--u));
  height: calc(104 * var(--u));
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(72.7 * var(--u));
  line-height: 1;
  padding-top: calc(4 * var(--u));
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.monogram:hover { transform: rotate(-6deg) scale(1.04); }
.monogram:focus-visible { outline-offset: 6px; border-radius: 50%; }

.nav-pill {
  position: relative;
  height: calc(703 * var(--u));
  background: var(--cream);
  border-radius: calc(75 * var(--u));
  color: var(--ink);
}
.nav-list { position: relative; padding-top: calc(40.5 * var(--u)); }
.nav-item { position: relative; height: calc(57 * var(--u)); display: flex; justify-content: center; align-items: center; }
.nav-item > a {
  position: relative;
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}
.nav-item .ico { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: currentColor; position: relative; z-index: 1; transition: transform 200ms var(--ease); }
.nav-item > a:hover .ico { transform: translateY(-2px) scale(1.08); }
.nav-item > a:focus-visible { outline-offset: 2px; border-radius: 50%; }
.nav-dot { display: none; }
.nav-indicator {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  margin: calc(-21 * var(--u)) 0 0 calc(-21 * var(--u));
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transition: transform 480ms var(--ease), opacity 260ms var(--ease);
  pointer-events: none;
}
.nav-item > a::before { /* hover halo */
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transform: scale(.6);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-item > a:hover::before { opacity: .45; transform: scale(1); }
.nav-item > a.is-active::before { opacity: 0; }

/* Ícone contextual de Projetos: surge após o primeiro projeto aberto */
.nav-item--projects {
  height: 0;
  opacity: 0;
  translate: 0 -8px;
  overflow: visible;
  pointer-events: none;
  transition: height 520ms var(--ease), opacity 380ms 120ms var(--ease), translate 520ms 80ms var(--ease);
}
.nav-item--projects > a { visibility: hidden; }
.has-projects .nav-item--projects { height: calc(57 * var(--u)); opacity: 1; translate: 0 0; pointer-events: auto; }
.has-projects .nav-item--projects > a { visibility: visible; }

/* Tooltips (itens só com ícone) */
.tip {
  position: absolute;
  left: calc(100% + 26 * var(--u));
  top: 50%;
  translate: -6px -50%;
  white-space: nowrap;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), translate 220ms var(--ease);
  z-index: 5;
}
a:hover > .tip, a:focus-visible > .tip { opacity: 1; translate: 0 -50%; }

.nav-social {
  position: absolute;
  left: calc(23 * var(--u));
  bottom: calc(75 * var(--u));
  display: grid;
  grid-template-columns: repeat(2, calc(24 * var(--u)));
  column-gap: calc(9 * var(--u));
  row-gap: calc(11 * var(--u));
}
.social { position: relative; display: block; width: calc(24 * var(--u)); height: calc(24 * var(--u)); color: var(--ink); transition: transform 200ms var(--ease), color 200ms var(--ease); }
.social svg { width: 100%; height: 100%; }
.social:hover { transform: translateY(-3px) scale(1.1); }
.social:focus-visible { outline-offset: 3px; }

/* =========================================================================
   ESTRUTURA DAS PÁGINAS
   ========================================================================= */
.app { display: block; min-height: 100vh; outline: none; }
.page { position: relative; }

/* Tipografia base */
.display { font-weight: 400; color: var(--lime); line-height: 1; letter-spacing: -0.005em; }
.lead-in, .blog-intro, .contact-intro { color: var(--cream); }
.caps-lime { color: var(--lime); font-weight: 600; text-transform: uppercase; }

/* Botões em pílula (hero, CTAs) */
.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
}
.pill-btn--lime { background: var(--lime); color: var(--ink); }
.pill-btn--cream { background: var(--cream); color: var(--ink); }
.pill-btn--ink { background: var(--ink); color: var(--lime); }
.pill-btn .ico, .pill-btn .arrow { fill: currentColor; flex: none; transition: transform 260ms var(--ease); position: relative; z-index: 2; }
.pill-btn > span:not(.pill-btn__fan) { position: relative; z-index: 2; }
.pill-btn:hover { transform: translateY(-3px); }
.pill-btn:hover .ico { transform: translateY(4px); }
.pill-btn:active { transform: translateY(0) scale(.99); }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; color: var(--lime); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.link-arrow .arrow { width: 1.1em; height: 1.1em; transition: transform 220ms var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow--ink { color: var(--ink); }
.arrow { width: 1em; height: 1em; overflow: visible; }

/* =========================================================================
   COMPONENTES COM ESCALA PRÓPRIA (contêiner)
   ========================================================================= */

/* ---- Hero (1003 × 964) ---- */
.hero { container-type: inline-size; --c: calc(100cqw / 1003); aspect-ratio: 1003 / 964; position: relative; }
.hero > * { position: absolute; }
.hero__card { left: 0; top: calc(84 * var(--c)); width: calc(997 * var(--c)); height: calc(880 * var(--c)); background: var(--lime); clip-path: url(#clip-hero); }
/* Foto: mesmo enquadramento do Figma (imagem 1483×2226 espelhada, recortada na caixa 981×555) */
.hero__photo { overflow: hidden; pointer-events: none; }
.hero__photo img { position: absolute; width: calc(1483 * var(--c)); height: calc(2226 * var(--c)); max-width: none; transform: scaleX(-1); }
/* dentro do cartão: a foto inteira, recortada pela forma verde */
.hero__photo--in { left: 0; top: calc(84 * var(--c)); width: calc(997 * var(--c)); height: calc(880 * var(--c)); clip-path: url(#clip-hero); }
.hero__photo--in img { left: calc(-229 * var(--c)); top: calc(-464 * var(--c)); }
/* acima do cartão: a cabeça "escapa" pelo topo */
.hero__photo--top { left: calc(22 * var(--c)); top: 0; width: calc(981 * var(--c)); height: calc(555 * var(--c)); }
.hero__photo--top img { left: calc(-251 * var(--c)); top: calc(-380 * var(--c)); }
.hero--mirror .hero__photo img { transform: none; }
.hero--mirror .hero__photo--in { left: calc(6 * var(--c)); clip-path: url(#clip-heroMirror); }
.hero--mirror .hero__photo--in img { left: calc(-257 * var(--c)); }
.hero--mirror .hero__photo--top { left: 0; }
.hero--mirror .hero__photo--top img { left: calc(-251 * var(--c)); }
.hero__name { left: calc(29 * var(--c)); top: calc(101 * var(--c)); width: calc(320 * var(--c)); font-family: var(--font-display); font-weight: 400; font-size: calc(86 * var(--c)); line-height: .9; color: var(--ink); }
.hero__role, .hero__tag { font-weight: 600; font-size: max(10px, calc(24 * var(--c))); line-height: 1; color: var(--ink); }
.hero__role { left: calc(29 * var(--c)); top: calc(307 * var(--c)); }
.hero__tag { left: calc(700 * var(--c)); width: calc(273 * var(--c)); top: calc(115 * var(--c)); text-align: right; }
.hero__cta, .hero__blog {
  left: calc(499 * var(--c));
  width: calc(504 * var(--c));
  height: max(40px, calc(100 * var(--c)));
  padding: 0 calc(51 * var(--c)) 0 calc(54 * var(--c));
  font-size: max(12px, calc(24 * var(--c)));
}
.hero__cta { top: calc(739 * var(--c)); }
.hero__blog { top: calc(864 * var(--c)); }
.hero .pill-btn__ico { width: max(14px, calc(24 * var(--c))); height: max(14px, calc(24 * var(--c))); }
.pill-btn__fan { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pill-btn__fan i { position: absolute; width: calc(140.4 * var(--c)); height: calc(192 * var(--c)); border-radius: calc(11.6 * var(--c)); transform-origin: 0 0; transition: transform 420ms var(--ease); }
.pill-btn__fan i:nth-child(1) { left: calc(197.1 * var(--c)); top: calc(87.3 * var(--c)); background: var(--lime-2); transform: rotate(-18deg); }
.pill-btn__fan i:nth-child(2) { left: calc(270.6 * var(--c)); top: calc(38 * var(--c)); background: var(--lime); transform: rotate(-13.6deg); }
.pill-btn__fan i:nth-child(3) { left: calc(357.7 * var(--c)); top: calc(2.9 * var(--c)); background: var(--lime-3); transform: rotate(-5.3deg); }
.hero__blog:hover .pill-btn__fan i:nth-child(1) { transform: rotate(-24deg) translateY(-6%); }
.hero__blog:hover .pill-btn__fan i:nth-child(2) { transform: rotate(-15deg) translateY(-10%); }
.hero__blog:hover .pill-btn__fan i:nth-child(3) { transform: rotate(-2deg) translateY(-14%); }

/* Variante espelhada (Contato) */
.hero--mirror .hero__card { left: calc(6 * var(--c)); clip-path: url(#clip-heroMirror); }
.hero--mirror .hero__name, .hero--mirror .hero__role { left: calc(35 * var(--c)); }
.hero--mirror .hero__tag { left: calc(700 * var(--c)); }

/* Cartão "Entre em contato" (507 × 251, dentro do hero espelhado) */
.contact-card { left: calc(6 * var(--c)); top: calc(713 * var(--c)); width: calc(507 * var(--c)); height: calc(251 * var(--c)); background: var(--cream); border-radius: calc(35 * var(--c)); color: var(--ink); }
.contact-card__title { position: absolute; left: calc(23 * var(--c)); top: calc(20 * var(--c)); width: calc(461 * var(--c)); height: calc(56 * var(--c)); border-radius: calc(50 * var(--c)); background: var(--ink); color: var(--lime); font-weight: 600; font-size: calc(24 * var(--c)); text-transform: uppercase; display: flex; align-items: center; padding-left: calc(22 * var(--c)); }
.contact-card .tag { position: absolute; left: calc(var(--x) * var(--c)); top: calc(var(--y) * var(--c)); width: calc(var(--w) * var(--c)); height: calc(36 * var(--c)); }
.tag {
  display: flex; align-items: center; gap: calc(6 * var(--c));
  padding-left: calc(15 * var(--c));
  border: max(1px, calc(1.1 * var(--c))) solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: calc(15.6 * var(--c));
  white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.tag svg { width: calc(17.1 * var(--c)); height: calc(17.1 * var(--c)); fill: currentColor; flex: none; }
.tag:hover { background: var(--ink); color: var(--lime); transform: translateY(-2px); }

/* ---- Cards de projeto (517 × 280) ---- */
.feat { display: flex; flex-direction: column; gap: calc(20 * var(--u)); }
.pcard {
  container-type: inline-size;
  --c: calc(100cqw / 517);
  position: relative;
  display: block;
  aspect-ratio: 517 / 280;
  clip-path: url(#clip-cardA);
  background: #2a2340;
  transition: transform 420ms var(--ease);
}
.pcard--b { clip-path: url(#clip-cardB); }
.pcard { background: #2b2b2b; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 700ms var(--ease), filter 520ms var(--ease); }
/* recorte do Figma (posição da capa dentro do card de 517×280) */
.pcard__img--crop { inset: auto; left: calc(var(--ix) * var(--c)); top: calc(var(--iy) * var(--c)); width: calc(var(--iw) * var(--c)); height: calc(var(--ih) * var(--c)); max-width: none; scale: var(--flip, 1) 1; }
.pcard__logo { position: absolute; left: 50%; top: 50%; width: calc(var(--lw) * var(--c)); translate: -50% -50%; transition: transform 500ms var(--ease); filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .25)); }
.pcard:hover, .pcard:focus-visible { transform: translateY(-4px); }
.pcard:hover .pcard__img, .pcard:focus-visible .pcard__img { transform: scale(1.05); filter: grayscale(0) contrast(1); }
.pcard:hover .pcard__logo, .pcard:focus-visible .pcard__logo { transform: translateY(-4%) scale(1.04); }
.pcard:focus-visible { outline: none; }
.feat li:has(.pcard:focus-visible) { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: 20px; }

/* ---- Sobre: composição (821 × 850) ---- */
.sobre-art { container-type: inline-size; --c: calc(100cqw / 821); aspect-ratio: 821 / 850; position: relative; pointer-events: none; }
.sobre-art > * { position: absolute; }
.sobre-art__shape { left: calc(36 * var(--c)); top: 0; width: calc(521 * var(--c)); height: calc(684 * var(--c)); background: var(--lime); clip-path: url(#clip-sobre); }
.sobre-art__base { left: calc(49 * var(--c)); top: calc(720 * var(--c)); width: calc(521 * var(--c)); height: calc(118 * var(--c)); background: var(--lime); border-radius: calc(47.6 * var(--c)); }
/* Cada retrato é uma "janela" com o recorte exato do Figma (imagem 2731×4096 escalada e deslocada) */
.sobre-art__p { overflow: hidden; }
.sobre-art__p img { position: absolute; max-width: none; }
.sobre-art__p--back { left: calc(147 * var(--c)); top: calc(11 * var(--c)); width: calc(289 * var(--c)); height: calc(424 * var(--c)); filter: blur(calc(3.8 * var(--c))); }
.sobre-art__p--back img { left: calc(-363.4 * var(--c)); top: calc(-234.9 * var(--c)); width: calc(1002.4 * var(--c)); height: calc(1504.6 * var(--c)); }
.sobre-art__p--front { left: 0; top: 0; width: calc(269 * var(--c)); height: calc(850 * var(--c)); }
.sobre-art__p--front img { left: calc(-238.8 * var(--c)); top: calc(-227.5 * var(--c)); width: calc(798 * var(--c)); height: calc(1198.4 * var(--c)); }
.sobre-art__p--sit { left: calc(207 * var(--c)); top: calc(413 * var(--c)); width: calc(342.9 * var(--c)); height: calc(437 * var(--c)); }
.sobre-art__p--sit img { left: calc(-25.9 * var(--c)); top: calc(-163.4 * var(--c)); width: calc(439.2 * var(--c)); height: calc(658.8 * var(--c)); }
.sobre-art__shadow { border-radius: calc(16.2 * var(--c)); }
/* Sombra do retrato principal (em pé): logo abaixo dos dois tênis */
.sobre-art__shadow--1 { left: calc(62 * var(--c)); top: calc(806 * var(--c)); width: calc(166 * var(--c)); height: calc(46 * var(--c)); background: rgba(27, 27, 25, .78); filter: blur(calc(18.8 * var(--c))); }
/* Sombra suave do retrato sentado: sob a perna e a cadeira, sobre a base verde */
.sobre-art__shadow--2 { left: calc(300 * var(--c)); top: calc(742 * var(--c)); width: calc(262 * var(--c)); height: calc(88 * var(--c)); background: rgba(27, 27, 25, .47); filter: blur(calc(39.8 * var(--c))); }

.sobre-title { color: var(--lime); font-weight: 800; text-align: center; letter-spacing: .03em; }
.sobre-stats { color: var(--lime); font-weight: 600; text-transform: uppercase; }
/* Três linhas fixas; "(no Brasil e no exterior)" menor, na mesma linha */
.sobre-stats span { display: block; white-space: nowrap; }
.sobre-stats small { font-size: .62em; letter-spacing: .01em; }

/* Blocos recolhíveis (Formação / Trajetória): fechados até clicar na seta */
.fold__head { margin: 0; }
.fold__btn { display: flex; align-items: center; justify-content: space-between; gap: calc(14 * var(--c)); width: 100%; text-align: left; text-transform: inherit; letter-spacing: inherit; }
/* Seta simples (mesma do campo "Tipo de projeto"), sem fundo */
.fold__ico { flex: none; width: max(8px, calc(11 * var(--c))); height: max(8px, calc(11 * var(--c))); margin-right: calc(6 * var(--c)); border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); translate: 0 -30%; rotate: 45deg; transition: rotate 260ms var(--ease), translate 260ms var(--ease); }
.fold__btn:hover .fold__ico { translate: 0 -5%; }
.fold.is-open .fold__ico { rotate: 225deg; translate: 0 20%; }
.fold__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 440ms var(--ease); }
.fold.is-open .fold__body { grid-template-rows: 1fr; }
.fold__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 440ms; }
.fold.is-open .fold__inner { visibility: visible; transition-delay: 0s; }

/* Painel com contorno (975 × 735) */
.sobre-panel { container-type: inline-size; --c: calc(100cqw / 975); position: relative; }
.sobre-panel__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sobre-col { position: absolute; top: calc(93 * var(--c)); }
.sobre-col--a { left: calc(84 * var(--c)); width: calc(404 * var(--c)); }
.sobre-col--b { left: calc(542 * var(--c)); width: calc(346 * var(--c)); }
.sobre-panel .caps-lime { font-size: calc(22 * var(--c)); line-height: calc(26 * var(--c)); }
.sobre-panel .caps-lime--sm { line-height: 1.3; }
.sobre-text { margin-top: calc(42 * var(--c)); width: calc(392 * var(--c)); font-size: calc(22.9 * var(--c)); line-height: 1.02; color: var(--cream); }
.sobre-text p + p { margin-top: 1em; }
.sobre-col--a .caps-lime--sm { margin-top: calc(40 * var(--c)); }
.cv { font-size: calc(16 * var(--c)); color: var(--cream); }
.cv li { display: grid; grid-template-columns: 1fr auto; column-gap: calc(12 * var(--c)); }
.cv strong { font-weight: 800; line-height: calc(31 * var(--c)); }
.cv time { font-weight: 600; opacity: .5; line-height: calc(31 * var(--c)); white-space: nowrap; }
.cv span { grid-column: 1 / -1; opacity: .5; line-height: calc(22 * var(--c)); font-weight: 500; }
.cv--edu { margin-top: calc(10 * var(--c)); }
.cv--edu li + li { margin-top: calc(14 * var(--c)); }
.cv--job { margin-top: calc(12 * var(--c)); }
.cv--job li { margin-bottom: calc(4 * var(--c)); }
.cv--job time { font-weight: 400; font-style: italic; }
.cv--job strong { text-transform: none; }
.sobre-skills { margin-top: calc(32 * var(--c)); display: grid; grid-template-columns: calc(195 * var(--c)) 1fr; }
.tools { margin-top: calc(22 * var(--c)); display: grid; grid-template-columns: repeat(2, calc(49.3 * var(--c))); gap: calc(10.4 * var(--c)) calc(16.2 * var(--c)); }
.tool { width: calc(49.3 * var(--c)); height: calc(50.6 * var(--c)); border-radius: calc(12 * var(--c)); display: grid; place-items: center; font-weight: 700; font-size: calc(20 * var(--c)); transition: transform 200ms var(--ease); }
.tool:hover { transform: translateY(-3px) rotate(-4deg); }
.tool svg { width: 52%; height: 52%; }
.tool--ps { background: #001E36; color: #31A8FF; }
.tool--ai { background: #330000; color: #FF9A00; }
.tool--gpt { background: #74AA9C; }
.tool--fig { background: #000; }
.tool--fig svg { width: 40%; height: 60%; }
.langs { margin-top: calc(14 * var(--c)); display: grid; gap: calc(14 * var(--c)); }
.langs li { display: grid; grid-template-columns: calc(37 * var(--c)) 1fr; align-items: center; font-size: calc(13.8 * var(--c)); font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.langs .flag { width: calc(28 * var(--c)); height: auto; border-radius: 3px; }
.langs b { display: block; }

/* ---- Serviços (cartão 606 × 219) ---- */
.svc-list { display: flex; flex-direction: column; gap: calc(23 * var(--u)); }
.svc { container-type: inline-size; --c: calc(100cqw / 606); position: relative; aspect-ratio: 606 / 219; color: var(--ink); }
.svc > * { position: absolute; }
.svc__card { inset: 0; background: var(--cream); clip-path: url(#clip-svc); transition: background-color 260ms var(--ease); }
.svc__title { position: absolute; left: calc(16.5 * var(--c)); top: calc(16.5 * var(--c)); font-weight: 400; font-size: calc(74 * var(--c)); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.svc__desc { position: absolute; left: calc(200 * var(--c)); top: calc(115 * var(--c)); width: calc(382 * var(--c)); font-size: calc(18.3 * var(--c)); line-height: calc(23.8 * var(--c)); }
.svc__select {
  left: 0; top: calc(161.3 * var(--c)); width: calc(170.1 * var(--c)); height: calc(57.3 * var(--c));
  border-radius: calc(19.1 * var(--c)); background: var(--cream); color: var(--ink);
  font-size: calc(22 * var(--c)); text-transform: uppercase; letter-spacing: .01em;
  display: grid; place-items: center;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.svc__select > span { grid-area: 1 / 1; transition: opacity 200ms var(--ease), translate 240ms var(--ease); }
.svc__select-done { opacity: 0; translate: 0 6px; font-weight: 600; }
.svc__select:hover { background: var(--lime); transform: translateY(-2px); }
.svc__select[aria-pressed="true"] { background: var(--ink); color: var(--lime); box-shadow: inset 0 0 0 max(1.5px, calc(2 * var(--c))) var(--lime); }
.svc__select[aria-pressed="true"] .svc__select-label { opacity: 0; translate: 0 -6px; }
.svc__select[aria-pressed="true"] .svc__select-done { opacity: 1; translate: 0 0; }
.svc.is-selected .svc__card { background: var(--lime); }
.svc__go {
  left: calc(548.6 * var(--c)); top: 0; width: calc(57.3 * var(--c)); height: calc(57.3 * var(--c));
  border-radius: calc(19.1 * var(--c)); background: var(--cream); color: #000;
  display: grid; place-items: center;
  transition: background-color 220ms var(--ease), transform 220ms var(--ease);
}
.svc__go .arrow { width: 60%; height: 60%; transition: transform 260ms var(--ease); }
.svc__go:hover { background: var(--lime); }
.svc__go:hover .arrow { transform: translate(2px, -2px); }
.svc.is-selected .svc__go { background: var(--lime); }

/* ---- Formulários ---- */
.lead { container-type: inline-size; position: relative; }
.lead--svc { --c: calc(100cqw / 847); height: calc(428 * var(--c)); }
.lead--contact { --c: calc(100cqw / 496); height: calc(355 * var(--c)); }
.lead__row { position: absolute; left: 0; right: 0; display: flex; }
.lead__row--1 { top: 0; }
.lead--svc .lead__row--2 { top: calc(78 * var(--c)); }
.lead--contact .lead__row--2 { top: calc(49 * var(--c)); }
.lead--svc .lead__row { gap: calc(12 * var(--c)); }
.lead--svc .lead__row--2 { gap: calc(18 * var(--c)); }
.lead--contact .lead__row { gap: calc(7 * var(--c)); }
.lead--contact .lead__row--2 { gap: calc(11 * var(--c)); }
.lead--svc .field--nome { flex: 0 0 calc(373 * var(--c)); }
.lead--svc .field--contato { flex: 1; }
.lead--svc .field--projeto { flex: 0 0 calc(508 * var(--c)); }
.lead--svc .field--tipo { flex: 1; }
.lead--contact .field--nome { flex: 0 0 calc(218 * var(--c)); }
.lead--contact .field--contato { flex: 1; }
.lead--contact .field--projeto { flex: 0 0 calc(297 * var(--c)); }
.lead--contact .field--tipo { flex: 1; }

.field { position: relative; display: block; }
.field input, .field select {
  width: 100%;
  border: calc(2 * var(--c)) solid var(--lime);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  text-align-last: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.lead--svc .field input, .lead--svc .field select { height: calc(64 * var(--c)); font-size: calc(24 * var(--c)); padding: 0 calc(24 * var(--c)); }
.lead--contact .field input, .lead--contact .field select { height: calc(40 * var(--c)); font-size: calc(14.1 * var(--c)); padding: 0 calc(14 * var(--c)); border-width: max(1px, calc(1.2 * var(--c))); }
.field input::placeholder, .field textarea::placeholder { color: var(--cream); opacity: 1; text-transform: uppercase; transition: opacity 200ms var(--ease); }
.field input:focus::placeholder, .field textarea:focus::placeholder { opacity: .35; }
.field input:hover, .field select:hover { background: #22221f; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 calc(4 * var(--c)) rgba(205, 249, 72, .22); }
.field select { cursor: pointer; }
.field select:invalid, .field select option[value=""] { color: var(--cream); }
.field select option { background: var(--ink); color: var(--cream); text-transform: none; text-align: left; }
/* espaço para a seta: o texto centralizado não passa por baixo dela */
.lead--svc .field select { padding: 0 calc(58 * var(--c)); }
.lead--contact .field select { padding: 0 calc(38 * var(--c)); }
.lead--contact .field--select::after { right: calc(20 * var(--c)); }
.field--select::after { content: ''; position: absolute; right: calc(28 * var(--c)); top: 50%; width: calc(9 * var(--c)); height: calc(9 * var(--c)); border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); translate: 0 -70%; rotate: 45deg; pointer-events: none; transition: rotate 220ms var(--ease); }
.field--select:focus-within::after { rotate: 225deg; translate: 0 -20%; }
.field.is-filled input, .field.is-filled select { background: #232320; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid { animation: shake 360ms var(--ease); }
@keyframes shake { 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.field__err { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.lead__area { position: absolute; left: 0; right: 0; }
.lead--svc .lead__area { top: calc(162 * var(--c)); height: calc(266 * var(--c)); }
.lead--contact .lead__area { top: calc(97 * var(--c)); height: calc(258 * var(--c)); }
.lead__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: filter 220ms var(--ease); }
.lead__shape path { transition: stroke 220ms var(--ease); }
.lead__area:focus-within .lead__shape { filter: drop-shadow(0 0 calc(6 * var(--c)) rgba(205, 249, 72, .35)); }
.lead__area:has(.is-invalid) .lead__shape path { stroke: var(--error); }
.field--msg { position: absolute; }
.lead--svc .field--msg { left: calc(30 * var(--c)); top: calc(22 * var(--c)); width: calc(787 * var(--c)); height: calc(172 * var(--c)); }
.lead--contact .field--msg { left: calc(18 * var(--c)); top: calc(14 * var(--c)); width: calc(460 * var(--c)); height: calc(170 * var(--c)); }
.field textarea {
  width: 100%; height: 100%;
  resize: none; border: 0; background: transparent; outline: none;
  color: var(--cream);
  text-align: center;
  line-height: 1.25;
  overscroll-behavior: contain;
}
.field textarea:placeholder-shown { padding-top: calc(62 * var(--c)); }
.lead--svc textarea { font-size: calc(24 * var(--c)); }
.lead--contact textarea { font-size: calc(14.1 * var(--c)); }
.lead--contact textarea:placeholder-shown { padding-top: calc(66 * var(--c)); }
.field textarea:not(:placeholder-shown) { text-align: left; text-transform: none; padding-top: 0; }
.field input:not(:placeholder-shown) { text-transform: none; }

.lead__send {
  position: absolute;
  background: var(--lime); color: var(--ink);
  font-weight: 700; text-transform: uppercase;
  display: grid; place-items: center;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease);
}
.lead--svc .lead__send { left: calc(661 * var(--c)); top: calc(213 * var(--c)); width: calc(186 * var(--c)); height: calc(53 * var(--c)); border-radius: calc(20.9 * var(--c)); font-size: calc(24 * var(--c)); }
.lead--contact .lead__send { left: calc(390 * var(--c)); top: calc(206 * var(--c)); width: calc(109 * var(--c)); height: calc(52 * var(--c)); border-radius: calc(12.2 * var(--c)); font-size: max(11px, calc(14.1 * var(--c))); }
.lead__send > * { grid-area: 1 / 1; }
.lead__send:hover { transform: translateY(-2px); background: var(--lime-2); }
.lead__send:active { transform: scale(.97); }
.lead__send:disabled { cursor: progress; }
.spinner { width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0; animation: spin 700ms linear infinite; }
.lead[data-state="sending"] .lead__send-label { opacity: 0; }
.lead[data-state="sending"] .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Status (dentro da área de mensagem, região inferior esquerda / sobreposição) */
.lead__status { position: absolute; left: 0; right: 0; pointer-events: none; opacity: 0; translate: 0 6px; transition: opacity 240ms var(--ease), translate 300ms var(--ease); color: var(--cream); }
.lead__status.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.lead--svc .lead__status { top: calc(374 * var(--c)); left: calc(30 * var(--c)); width: calc(610 * var(--c)); font-size: max(12px, calc(17 * var(--c))); }
.lead--contact .lead__status { top: calc(306 * var(--c)); left: calc(18 * var(--c)); width: calc(362 * var(--c)); font-size: max(11px, calc(12.5 * var(--c))); }
.lead[data-state="success"] .lead__status,
.lead[data-state="error"] .lead__status {
  /* cobre a área de mensagem com a resposta */
  display: flex; flex-direction: column; justify-content: center; gap: .7em;
  background: var(--ink);
  border-radius: calc(22 * var(--c));
  padding: 0 calc(30 * var(--c));
  z-index: 3;
}
.lead--svc[data-state="success"] .lead__status, .lead--svc[data-state="error"] .lead__status { top: calc(166 * var(--c)); left: calc(6 * var(--c)); width: calc(835 * var(--c)); height: calc(196 * var(--c)); font-size: max(13px, calc(20 * var(--c))); }
.lead--contact[data-state="success"] .lead__status, .lead--contact[data-state="error"] .lead__status { top: calc(100 * var(--c)); left: calc(4 * var(--c)); width: calc(488 * var(--c)); height: calc(192 * var(--c)); font-size: max(12px, calc(13.5 * var(--c))); padding: 0 calc(18 * var(--c)); }
.lead[data-state="success"] .lead__status strong { color: var(--lime); }
.lead[data-state="error"] .lead__status strong { color: var(--error); }
.lead[data-state="error-validation"] .lead__status { color: var(--error); }
.lead__status-actions { display: flex; flex-wrap: wrap; gap: .6em; }
.lead__hint { opacity: .6; font-size: .85em; }
.mini-btn { display: inline-flex; align-items: center; min-height: 36px; padding: .45em 1.1em; border-radius: 999px; border: 1.5px solid var(--lime); color: var(--lime); font-weight: 600; text-transform: uppercase; font-size: .85em; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.mini-btn:hover { background: var(--lime); color: var(--ink); }
.mini-btn--wpp { border-color: #25D366; color: #25D366; }
.mini-btn--wpp:hover { background: #25D366; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- Blog: grade 2×2 (945 × 712) ---- */
.blog-grid { container-type: inline-size; --g: calc(100cqw / 945); position: relative; aspect-ratio: 945 / 712; }
.bcard {
  container-type: inline-size;
  --c: calc(100cqw / 443);
  position: absolute;
  width: calc(443 * var(--g));
  aspect-ratio: 443 / 334;
  color: var(--ink);
  display: block;
  transition: transform 360ms var(--ease);
}
.bcard--tl { left: calc(30 * var(--g)); top: 0; }
.bcard--tr { left: calc(502 * var(--g)); top: 0; }
.bcard--bl { left: calc(30 * var(--g)); top: calc(378 * var(--g)); }
.bcard--br { left: calc(502 * var(--g)); top: calc(378 * var(--g)); }
.bcard__bg { position: absolute; inset: 0; background: var(--cream); transition: background-color 260ms var(--ease); }
.bcard--tl .bcard__bg { clip-path: url(#clip-blogTL); }
.bcard--tr .bcard__bg { clip-path: url(#clip-blogTR); }
.bcard--bl .bcard__bg { clip-path: url(#clip-blogBL); }
.bcard--br .bcard__bg { clip-path: url(#clip-blogBR); }
.bcard > span { position: absolute; }
.bcard__time { top: calc(61 * var(--c)); width: calc(104 * var(--c)); font-weight: 300; font-size: calc(20 * var(--c)); line-height: calc(20 * var(--c)); text-transform: uppercase; }
.bcard__title { top: calc(99 * var(--c)); width: calc(272 * var(--c)); font-size: calc(40 * var(--c)); line-height: 1; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__desc { top: calc(232 * var(--c)); width: calc(318 * var(--c)); font-size: calc(20 * var(--c)); line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard--long .bcard__title { font-size: calc(34 * var(--c)); width: calc(290 * var(--c)); }
.bcard--tr.bcard--long .bcard__title, .bcard--br.bcard--long .bcard__title { left: calc(112 * var(--c)); }
.bcard--tl .bcard__time, .bcard--bl .bcard__time { left: calc(317 * var(--c)); text-align: right; }
.bcard--tr .bcard__time, .bcard--br .bcard__time { left: calc(12 * var(--c)); }
.bcard--tl .bcard__title, .bcard--bl .bcard__title, .bcard--tl .bcard__desc, .bcard--bl .bcard__desc { left: calc(45 * var(--c)); }
.bcard--tr .bcard__title, .bcard--br .bcard__title { left: calc(130 * var(--c)); text-align: right; }
.bcard--tr .bcard__desc, .bcard--br .bcard__desc { left: calc(84 * var(--c)); text-align: right; }
.bcard--bl .bcard__time, .bcard--br .bcard__time { top: calc(100 * var(--c)); }
.bcard--bl .bcard__title, .bcard--br .bcard__title { top: calc(102 * var(--c)); }
.bcard--bl .bcard__desc, .bcard--br .bcard__desc { top: calc(236 * var(--c)); }
.bcard__corner {
  width: calc(62.6 * var(--c)); height: calc(62.6 * var(--c)); border-radius: calc(20.9 * var(--c));
  background: var(--ink); color: var(--lime); display: grid; place-items: center;
  transition: transform 280ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
}
.bcard__corner .arrow { width: 62%; height: 62%; }
.bcard--tl .bcard__corner { left: calc(371 * var(--c)); top: calc(262 * var(--c)); }
.bcard--tr .bcard__corner { left: calc(12 * var(--c)); top: calc(262 * var(--c)); }
.bcard--bl .bcard__corner { left: calc(371 * var(--c)); top: calc(11 * var(--c)); }
.bcard--br .bcard__corner { left: calc(12 * var(--c)); top: calc(11 * var(--c)); }
.bcard__cat { width: calc(35.5 * var(--c)); height: calc(170 * var(--c)); color: var(--lime); }
.bcard__cat .shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bcard__cat b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -90deg; white-space: nowrap; font-family: var(--font-heavy); font-weight: 900; font-size: calc(16 * var(--c)); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.bcard--tr .bcard__cat b, .bcard--br .bcard__cat b { rotate: 90deg; }
.bcard--tl .bcard__cat { left: calc(-30 * var(--c)); top: calc(67 * var(--c)); }
.bcard--bl .bcard__cat { left: calc(-30 * var(--c)); top: calc(94 * var(--c)); }
.bcard--tr .bcard__cat { left: calc(433 * var(--c)); top: calc(67 * var(--c)); }
.bcard--br .bcard__cat { left: calc(433 * var(--c)); top: calc(94 * var(--c)); }
.bcard__hit { position: absolute; inset: 0; z-index: 2; }
.bcard__hit:focus-visible { outline: none; }
.bcard__cat { position: absolute; z-index: 3; cursor: pointer; transition: transform 220ms var(--ease); }
.bcard__cat .shape path { transition: fill 200ms var(--ease); }
.bcard__cat b { transition: color 200ms var(--ease); }
.bcard__cat:hover .shape path, .bcard__cat[aria-pressed="true"] .shape path { fill: var(--lime); }
.bcard__cat:hover b, .bcard__cat[aria-pressed="true"] b { color: var(--ink); }
.bcard--tl .bcard__cat:hover, .bcard--bl .bcard__cat:hover { transform: translateX(-3px); }
.bcard--tr .bcard__cat:hover, .bcard--br .bcard__cat:hover { transform: translateX(3px); }
.bcard__cat:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.bcard:hover { transform: translateY(-4px); }
.bcard:hover .bcard__corner, .bcard:has(.bcard__hit:focus-visible) .bcard__corner { background: var(--lime); color: var(--ink); transform: scale(1.06); }
.bcard--tl:hover .bcard__corner .arrow { translate: 2px 2px; }
.bcard:has(.bcard__hit:focus-visible) .bcard__bg { background: var(--lime-2); }

.blog-filter { color: var(--cream); opacity: .75; font-size: max(13px, calc(16 * var(--u))); line-height: 1.3; }
.blog-filter b { color: var(--lime); font-weight: 700; text-transform: uppercase; }
.blog-filter .legal-link { margin-left: .6em; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.blog-swipe { display: none; }
.bcard .arrow { transition: translate 260ms var(--ease); }

.blog-tab { position: absolute; left: calc(461 * var(--g)); width: calc(53 * var(--g)); height: calc(39 * var(--g)); color: var(--ink); display: grid; place-items: center; transition: transform 220ms var(--ease), opacity 220ms var(--ease); }
.blog-tab .shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-tab .arrow { position: relative; width: 52%; height: 52%; }
.blog-tab--up { top: 0; }
.blog-tab--up .arrow { margin-bottom: 18%; }
.blog-tab--down { top: calc(673 * var(--g)); }
.blog-tab--down .arrow { margin-top: 18%; }
.blog-tab:disabled { opacity: .35; cursor: default; }
.blog-tab:not(:disabled):hover { transform: translateY(-3px); }
.blog-tab--down:not(:disabled):hover { transform: translateY(3px); }

/* =========================================================================
   PÁGINAS INTERNAS — folha (cartão grande) / estudo de caso / artigo
   ========================================================================= */
.page-head .display { font-size: calc(84 * var(--u)); }
.h-84 { font-weight: 400; font-size: calc(84 * var(--u)); line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.h-36 { font-weight: 400; font-size: calc(36 * var(--u)); line-height: 1.05; color: var(--ink); }
.h-36__sub { opacity: .55; }
.body-24 { font-size: max(15px, calc(24 * var(--u))); line-height: 1.32; color: var(--ink); }
.body-20 { font-size: max(14px, calc(20 * var(--u))); line-height: 1.35; color: var(--ink); }

.case-hero { position: relative; aspect-ratio: 1500 / 703; z-index: 2; container-type: inline-size; --c: calc(100cqw / 1500); }
.case-hero__media { position: absolute; inset: 0; clip-path: url(#clip-big); background: #2a2340; }
.case-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero__logo { position: absolute; left: 50%; top: 50%; width: calc(var(--lw) * 2.2 * var(--c)); max-width: 40%; translate: -50% -50%; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .3)); }

.sheet { position: relative; color: var(--ink); }
.sheet__bg { position: absolute; left: 0; top: 0; z-index: 0; fill: var(--cream); pointer-events: none; overflow: visible; }
.sheet > :not(.sheet__bg) { position: relative; z-index: 1; }
.sheet-sec { position: relative; }

/* Abas laterais: aba pequena (voltar) + aba longa com o nome */
.sheet-tabs { position: absolute; z-index: 3; }
.sheet-tab { position: absolute; display: block; }
.sheet-tab .shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sheet-tab--back { left: 2%; width: calc(53 * var(--u)); height: calc(39 * var(--u)); color: var(--ink); display: grid; place-items: center; transition: transform 220ms var(--ease); }
.sheet-tab--back .arrow { position: relative; width: calc(22 * var(--u)); height: calc(22 * var(--u)); margin-top: calc(6 * var(--u)); transition: translate 220ms var(--ease); }
.sheet-tab--back:hover { transform: translateY(-2px); }
.sheet-tab--back:hover .arrow { translate: -3px 0; }
.sheet-tab--label { top: calc(51 * var(--u)); width: calc(57 * var(--u)); height: calc(304 * var(--u)); color: var(--lime); }
.sheet-tab--label b { position: absolute; left: 50%; top: 45%; translate: -50% -50%; rotate: -90deg; font-family: var(--font-heavy); font-weight: 900; font-size: calc(25.5 * var(--u)); letter-spacing: .02em; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(18 * var(--u)) calc(30 * var(--u)); margin-top: calc(40 * var(--u)); }
.facts dt { font-weight: 600; text-transform: uppercase; font-size: max(11px, calc(14 * var(--u))); letter-spacing: .05em; opacity: .55; }
.facts dd { font-weight: 600; font-size: max(14px, calc(18 * var(--u))); margin-top: 4px; }
.note { margin-top: calc(28 * var(--u)); display: inline-block; background: var(--ink); color: var(--lime); padding: .5em 1em; border-radius: 999px; font-weight: 600; font-size: max(12px, calc(15 * var(--u))); }

.decisions { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(48 * var(--u)) calc(96 * var(--u)); margin-top: calc(56 * var(--u)); }
.decision { position: relative; padding-top: calc(22 * var(--u)); border-top: 2px solid var(--ink); }
.decision__n { display: inline-block; background: var(--ink); color: var(--lime); font-weight: 600; font-size: max(11px, calc(14 * var(--u))); padding: .3em .8em; border-radius: 999px; margin-bottom: calc(14 * var(--u)); }
.decision .h-36 { margin-bottom: calc(14 * var(--u)); }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(40 * var(--u)) calc(40 * var(--u)); margin-top: calc(64 * var(--u)); align-items: start; }
.gal:empty { display: none; }
.gal--duo { gap: calc(96 * var(--u)); }
.gal-title { margin-top: calc(96 * var(--u)); }
.cfig--full { grid-column: 1 / -1; }
.cfig__frame { border-radius: calc(25 * var(--u)); overflow: hidden; background: var(--grey); }
.cfig__frame img { width: 100%; height: auto; transition: transform 900ms var(--ease); }
.cfig:hover .cfig__frame img { transform: scale(1.025); }
.cfig figcaption { margin-top: calc(12 * var(--u)); font-weight: 500; font-size: max(13px, calc(17 * var(--u))); opacity: .65; }

.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: calc(28 * var(--u)); margin-top: calc(40 * var(--u)); }
.case-actions .pill-btn { height: max(48px, calc(72 * var(--u))); padding: 0 calc(36 * var(--u)); gap: calc(24 * var(--u)); font-size: max(14px, calc(20 * var(--u))); }
.case-actions .pill-btn .arrow { width: 1.2em; height: 1.2em; }
.case-actions .link-arrow { font-size: max(13px, calc(18 * var(--u))); }
.case-final { margin-top: calc(96 * var(--u)); aspect-ratio: 1500 / 703; clip-path: url(#clip-big); background: #2a2340; }
.case-final img { width: 100%; height: 100%; object-fit: cover; }

.case-next { display: flex; flex-direction: column; gap: 10px; margin-top: calc(90 * var(--u)); padding-bottom: calc(120 * var(--u)); }
.case-next > span { text-transform: uppercase; font-weight: 600; opacity: .6; font-size: max(12px, calc(16 * var(--u))); letter-spacing: .05em; }
.case-next__link { color: var(--lime); font-size: calc(60 * var(--u)); display: inline-flex; align-items: center; gap: .3em; width: fit-content; }
.case-next__link .arrow { width: .7em; height: .7em; transition: transform 260ms var(--ease); }
.case-next__link:hover .arrow { transform: translateX(8px); }

/* Grade de projetos (mesma lógica do blog: colunas espelhadas, de frente para o centro) */
.pcard--am { clip-path: url(#clip-cardAm); }
.pcard--bm { clip-path: url(#clip-cardBm); }
.page-intro { max-width: calc(620 * var(--u)); }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(44 * var(--u)) calc(60 * var(--u)); margin-top: calc(60 * var(--u)); padding-bottom: calc(140 * var(--u)); }
.pgrid__meta { margin-top: calc(18 * var(--u)); display: flex; align-items: baseline; gap: calc(16 * var(--u)); }
.pgrid__item--r .pgrid__meta { justify-content: flex-end; }
.pgrid__meta h2 { font-weight: 400; color: var(--lime); font-size: max(20px, calc(40 * var(--u))); line-height: 1; }
.pgrid__meta p { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: max(11px, calc(15 * var(--u))); opacity: .6; }
.pcard--empty { background: #222220; display: grid; place-items: center; background-image: repeating-linear-gradient(135deg, rgba(205, 249, 72, .05) 0 2px, transparent 2px 14px); }
.pcard__soon { display: grid; justify-items: center; gap: 6px; color: var(--lime); opacity: .55; font-size: max(11px, calc(15 * var(--c))); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pcard__soon b { font-weight: 400; font-size: calc(44 * var(--c)); text-transform: none; letter-spacing: 0; }
@media (max-width: 899.98px) { .pgrid { grid-template-columns: 1fr; gap: 36px; } .pgrid__item--r .pgrid__meta { justify-content: flex-start; } }

/* Lista de projetos (legado) */
.plist { display: grid; gap: calc(110 * var(--u)); padding-bottom: calc(140 * var(--u)); }
.bigcard { position: relative; display: block; aspect-ratio: 1500 / 703; clip-path: url(#clip-big); background: #2a2340; container-type: inline-size; --c: calc(100cqw / 1500); transition: transform 420ms var(--ease); }
.bigcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), filter 400ms var(--ease); }
.bigcard__logo { position: absolute; left: 50%; top: 50%; width: calc(var(--lw) * 2.2 * var(--c)); max-width: 40%; translate: -50% -50%; transition: transform 500ms var(--ease); }
.bigcard:hover .bigcard__img { transform: scale(1.04); filter: brightness(.85); }
.bigcard:hover .bigcard__logo { transform: scale(1.04); }
.bigcard:focus-visible { outline: none; }
.plist__item:has(.bigcard:focus-visible) .bigcard { filter: drop-shadow(0 0 0 var(--lime)) drop-shadow(0 0 3px var(--lime)); }
.plist__meta { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: calc(40 * var(--u)); align-items: end; margin-top: calc(32 * var(--u)); padding-left: calc(60 * var(--u)); }
.plist__meta h2 { font-weight: 400; font-size: calc(40 * var(--u)); color: var(--lime); line-height: 1.05; }
.plist__meta p { font-size: max(14px, calc(20 * var(--u))); line-height: 1.3; }
.plist__meta .link-arrow { font-size: max(13px, calc(16 * var(--u))); white-space: nowrap; }

/* Artigo */
.post-meta { position: absolute; right: 0; top: calc(-27 * var(--u)); display: flex; align-items: center; gap: calc(18 * var(--u)); font-family: var(--font-heavy); font-weight: 900; font-size: max(13px, calc(20 * var(--u))); }
.draft { font-family: var(--font); font-weight: 600; font-size: max(11px, calc(14 * var(--u))); text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--lime); padding: .4em .9em; border-radius: 999px; }
.post-title { width: fit-content; max-width: 100%; }
.post-sub { margin-top: calc(14 * var(--u)); font-weight: 500; font-size: max(15px, calc(24 * var(--u))); }
.post-by { margin-top: calc(10 * var(--u)); font-size: max(12px, calc(15 * var(--u))); opacity: .6; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.post-body { margin-top: calc(48 * var(--u)); max-width: calc(1100 * var(--u)); font-size: max(16px, calc(24 * var(--u))); line-height: 1.4; }
.post-body p + p, .post-body h2 + p { margin-top: .9em; }
.post-body h2 { margin-top: 1.6em; font-weight: 600; font-size: 1.25em; line-height: 1.15; }
.post-body blockquote { margin: 1.4em 0; padding: .9em 1.1em; background: var(--ink); color: var(--lime); border-radius: calc(25 * var(--u)); font-size: 1.15em; line-height: 1.25; }
.post-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(50 * var(--u)); margin-top: calc(56 * var(--u)); max-width: calc(1363 * var(--u)); }
.ph { aspect-ratio: 421 / 237; background: var(--grey); display: grid; place-items: center; overflow: hidden; }
.ph span { color: rgba(27, 27, 25, .2); font-weight: 500; font-size: max(13px, calc(24 * var(--u))); }
.ph--img img { width: 100%; height: 100%; object-fit: cover; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: calc(70 * var(--u)); font-size: max(13px, calc(18 * var(--u))); }

/* =========================================================================
   DESKTOP (≥ 900px) — composição fiel ao Figma
   ========================================================================= */
@media (min-width: 900px) {
  .page { width: calc(1920 * var(--u)); margin: 0 auto; padding-left: calc(275 * var(--u)); padding-right: calc(78 * var(--u)); }
  .sec { position: relative; height: calc(967 * var(--u)); }
  .sec--contact { height: calc(1010 * var(--u)); }
  .abs { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }

  .sobre-title { font-size: calc(81.9 * var(--u)); line-height: calc(100 * var(--u)); }
  .sobre-stats { font-size: calc(22 * var(--u)); line-height: calc(26 * var(--u)); }
  .display { font-size: calc(84 * var(--u)); }
  .display--60 { font-size: calc(60 * var(--u)); }
  .lead-in { margin-top: calc(15 * var(--u)); width: calc(622 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.05; }
  .blog-intro { font-size: calc(18 * var(--u)); line-height: 1.05; }
  .contact-intro { font-size: calc(20 * var(--u)); line-height: 1.05; }
  .copyright { font-weight: 600; font-size: calc(16 * var(--u)); color: var(--cream); }

  /* Páginas internas: conteúdo a partir de x = 321 */
  .page--projects, .page--case, .page--post, .page--404 { padding-left: calc(345 * var(--u)); padding-right: calc(75 * var(--u)); }
  .page-head { padding-top: calc(84 * var(--u)); min-height: calc(168 * var(--u)); }
  .page-head .display { white-space: nowrap; }
  .page--case .case-hero, .page--projects .plist { margin-top: calc(60 * var(--u)); }
  .case-hero .sheet-tabs { left: calc(-28 * var(--u)); top: calc(144 * var(--u)); }
  .sheet { margin-top: calc(-155 * var(--u)); padding: calc(195 * var(--u)) calc(113 * var(--u)) 0 calc(125 * var(--u)); }
  .sheet-sec + .sheet-sec { margin-top: calc(150 * var(--u)); }
  .sheet-sec > .sheet-tabs { left: calc(-153 * var(--u)); top: calc(-51 * var(--u)); }
  .cols { display: grid; grid-template-columns: calc(583 * var(--u)) calc(583 * var(--u)); column-gap: calc(96 * var(--u)); align-items: start; }
  .cols .h-84 { grid-column: 1; }
  .col .body-24 { margin-top: calc(32 * var(--u)); }
  .col--r .h-36 + .body-24 { margin-top: calc(20 * var(--u)); }
  .col--r .body-24 + .h-36 { margin-top: calc(48 * var(--u)); }
  .col--r { padding-top: calc(-12 * var(--u)); }
  .sheet-sec--end .case-final { margin-left: calc(-125 * var(--u)); margin-right: calc(-113 * var(--u)); }
  .sheet-sec--end { padding-bottom: 0; }

  .page--post .sheet--post { margin-top: calc(100 * var(--u)); padding: calc(43 * var(--u)) calc(90 * var(--u)) calc(90 * var(--u)) calc(78 * var(--u)); }
  .sheet--post .sheet-sec > .sheet-tabs { left: calc(-106 * var(--u)); top: calc(101 * var(--u)); }
  .page--post { padding-bottom: calc(120 * var(--u)); }
  .page--404 .lead-in { margin-top: 30px; }
  .page--404 .pill-btn { margin-top: 40px; height: 72px; padding: 0 36px; gap: 20px; font-size: 18px; }
}

/* =========================================================================
   TABLET E CELULAR (< 900px) — fluxo, mesma linguagem visual
   ========================================================================= */
@media (max-width: 899.98px) {
  :root { --u: 1px; }
  /* Barra lateral compacta (tablet) */
  .sidebar { left: 14px; width: 60px; gap: 14px; }
  .monogram { width: 60px; height: 60px; font-size: 40px; padding-top: 3px; }
  .nav-pill { height: auto; border-radius: 40px; padding: 10px 0 18px; }
  .nav-list { padding-top: 0; }
  .nav-item { height: 50px; }
  .nav-item > a { width: 44px; height: 44px; }
  .nav-item .ico { width: 21px; height: 21px; }
  .nav-indicator { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .nav-item--projects { height: 0; }
  .has-projects .nav-item--projects { height: 50px; }
  .nav-social { position: static; margin: 12px auto 0; width: fit-content; grid-template-columns: 22px; gap: 12px; justify-items: center; }
  .social { width: 22px; height: 22px; }
  .tip { left: calc(100% + 18px); font-size: 12px; }

  .page { padding: 40px 28px 80px 104px; max-width: 1100px; }
  .sec { padding: 48px 0; display: flex; flex-direction: column; gap: 28px; }
  .sec--hero { padding-top: 12px; }
  .abs { position: relative; width: 100%; }

  .display { font-size: clamp(40px, 6.4vw, 68px); }
  .display--60 { font-size: clamp(36px, 5.6vw, 56px); }
  .lead-in, .blog-intro, .contact-intro { font-size: 17px; line-height: 1.3; max-width: 560px; }
  .lead-in { margin-top: 14px; }

  .hero { max-width: 760px; }
  .feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .sobre-title { font-size: clamp(44px, 7vw, 72px); font-weight: 800; text-align: left; order: -2; }
  .sobre-stats { font-size: 16px; line-height: 1.3; order: -1; max-width: 520px; }
  .sobre-art { max-width: 520px; }
  .sobre-panel { container-type: normal; --c: 1px; border: 2px solid var(--lime); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .sobre-panel__outline { display: none; }
  .sobre-col { position: static; width: auto !important; }
  .sobre-panel .caps-lime { font-size: 17px; line-height: 1.25; }
  .sobre-text { width: auto; font-size: 17px; line-height: 1.35; margin-top: 18px; }
  .sobre-col--a .caps-lime--sm { margin-top: 30px; }
  .cv { font-size: 14px; }
  .cv strong, .cv time { line-height: 1.6; }
  .cv span { line-height: 1.35; }
  .cv--job li { margin-bottom: 10px; }
  .sobre-skills { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
  .tools { grid-template-columns: repeat(2, 46px); gap: 10px; }
  .tool { width: 46px; height: 46px; font-size: 18px; border-radius: 12px; }
  .langs li { grid-template-columns: 34px 1fr; font-size: 13px; }
  .langs .flag { width: 26px; }

  /* Serviços em fluxo */
  .svc-list { gap: 18px; max-width: 640px; }
  .svc { container-type: normal; aspect-ratio: auto; --c: 1px; display: grid; }
  .svc > * { position: relative; }
  .svc__card { position: relative; clip-path: none; border-radius: 22px; padding: 20px 20px 84px; grid-area: 1 / 1; }
  .svc__title { position: static; font-size: clamp(34px, 6vw, 56px); white-space: normal; padding-right: 56px; }
  .svc__desc { position: static; width: auto; margin-top: 14px; font-size: 16px; line-height: 1.4; }
  .svc__select { grid-area: 1 / 1; align-self: end; justify-self: start; position: relative; left: 14px; bottom: 14px; top: auto; width: auto; height: 46px; padding: 0 22px; border-radius: 16px; font-size: 15px; background: var(--ink); color: var(--cream); }
  .svc__select:hover { background: #2b2b28; }
  .svc__go { grid-area: 1 / 1; justify-self: end; align-self: start; left: auto; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 16px; background: var(--ink); color: var(--lime); }
  .svc.is-selected .svc__go { background: var(--ink); }

  /* Formulários em fluxo */
  .lead, .lead--svc, .lead--contact { container-type: normal; --c: 1px; height: auto; display: grid; gap: 12px; }
  .lead__row { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px !important; }
  .lead .field input, .lead .field select { height: 52px !important; font-size: 14px !important; border-width: 2px !important; padding: 0 18px !important; }
  .lead__area { position: relative; top: 0 !important; height: auto !important; display: grid; gap: 12px; }
  .lead__shape { display: none; }
  .field--msg { position: static; width: auto !important; height: auto !important; }
  .field textarea { min-height: 170px; border: 2px solid var(--lime); border-radius: 22px; padding: 18px !important; font-size: 15px !important; background: var(--ink); }
  .field textarea:placeholder-shown { padding-top: 70px !important; }
  .lead__send { position: relative; left: auto !important; top: auto !important; justify-self: end; width: auto !important; height: 50px !important; padding: 0 34px; border-radius: 16px !important; font-size: 15px !important; }
  .lead__status { position: static !important; width: auto !important; height: auto !important; font-size: 15px !important; padding: 0 !important; }
  .lead[data-state="success"] .lead__status, .lead[data-state="error"] .lead__status { padding: 18px !important; border: 2px solid var(--lime); border-radius: 20px; }
  .lead__status:not(.is-visible) { display: none; }
  .field--select::after, .lead--contact .field--select::after { right: 22px; width: 8px; height: 8px; }
  .lead .field select { padding: 0 46px !important; }

  /* Blog em fluxo */
  .blog-grid { container-type: normal; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 56px; padding: 8px 38px; }
  .bcard { position: relative; left: auto !important; top: auto !important; width: 100%; }
  .bcard--tl { order: 1; } .bcard--tr { order: 2; } .bcard--bl { order: 3; } .bcard--br { order: 4; }
  .bcard__time { font-size: max(12px, calc(20 * var(--c))); line-height: 1.1; }
  .bcard__desc { font-size: max(13px, calc(20 * var(--c))); }
  .blog-tab { position: relative; left: auto; top: auto !important; width: 53px; height: 39px; }
  .blog-tab--up { order: 5; justify-self: end; }
  .blog-tab--down { order: 6; justify-self: start; }

  /* Contato */
  .hero--mirror { aspect-ratio: auto; container-type: normal; --c: 1px; }
  .hero--mirror > :not(.contact-card) { display: none; }
  .contact-card { position: relative; left: auto; top: auto; width: 100%; max-width: 560px; height: auto; border-radius: 26px; padding: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
  .contact-card__title { position: static; width: 100%; height: 50px; font-size: 18px; padding-left: 22px; margin-bottom: 6px; }
  .contact-card .tag { position: static; width: auto; height: 42px; padding: 0 16px 0 14px; font-size: 14px; gap: 8px; border-width: 1.5px; }
  .contact-card .tag svg { width: 17px; height: 17px; }
  .contact-card { order: 3; }
  .copyright { order: 9; font-weight: 600; font-size: 14px; }

  /* Páginas internas */
  .page-head { padding-top: 8px; }
  .page-head .display { font-size: clamp(34px, 5.6vw, 60px); }
  .case-hero, .plist, .sheet--post { margin-top: 28px; }
  .case-hero .sheet-tabs, .sheet-sec > .sheet-tabs { display: none; }
  .sheet { margin-top: -60px; padding: 92px 28px 0; }
  .sheet--post { margin-top: 28px; padding: 40px 28px 40px; }
  .sheet-sec + .sheet-sec { margin-top: 70px; }
  .cols { display: grid; gap: 24px; }
  .h-84 { font-size: clamp(34px, 5.4vw, 56px); }
  .h-36 { font-size: clamp(22px, 3.2vw, 30px); }
  .body-24 { font-size: 17px; }
  .col .body-24 { margin-top: 16px; }
  .col--r .body-24 + .h-36 { margin-top: 32px; }
  .col--r .h-36 + .body-24 { margin-top: 12px; }
  .decisions { gap: 30px 40px; margin-top: 30px; }
  .gal { gap: 24px; margin-top: 36px; }
  .gal-title { margin-top: 56px; }
  .case-actions .pill-btn { height: 52px; padding: 0 24px; }
  .sheet-sec--end .case-final { margin: 48px -28px 0; }
  .case-next__link { font-size: clamp(28px, 4.4vw, 44px); }
  .plist { gap: 64px; }
  .plist__meta { grid-template-columns: 1fr; gap: 12px; padding-left: 0; }
  .plist__meta h2 { font-size: clamp(24px, 3.6vw, 34px); }
  .post-meta { position: static; justify-content: flex-end; margin-bottom: 18px; }
  .post-body { font-size: 17px; line-height: 1.55; }
  .post-imgs { gap: 14px; }
  .ph span { font-size: 12px; text-align: center; padding: 6px; }
}

/* ---------------- Celular (< 700px): navegação fixa em dock inferior ---------------- */
@media (max-width: 699.98px) {
  .sidebar {
    left: 50%; top: auto; bottom: max(10px, env(safe-area-inset-bottom));
    translate: -50% 0;
    width: auto; flex-direction: row; align-items: center; gap: 6px;
    padding: 6px; background: var(--cream); border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
  .monogram { width: 46px; height: 46px; font-size: 30px; }
  .nav-pill { background: none; padding: 0; border-radius: 0; height: auto; }
  .nav-list { display: flex; }
  .nav-item { height: 46px; width: 46px; }
  .nav-item > a { width: 44px; height: 44px; }
  .nav-item--projects { width: 0; height: 46px !important; translate: -8px 0; transition: width 520ms var(--ease), opacity 380ms 120ms var(--ease), translate 520ms var(--ease); }
  .has-projects .nav-item--projects { width: 46px; translate: 0 0; }
  .nav-indicator { top: 50%; left: 0; margin: -22px 0 0 -22px; }
  .nav-social { display: none; }
  .tip { display: none; }
  .page { padding: 22px 18px 110px; }
  .sec { padding: 36px 0; gap: 22px; }
  .hero { width: 100%; }
  .feat { grid-template-columns: 1fr; gap: 16px; }
  .sobre-panel { grid-template-columns: 1fr; padding: 22px 18px; }
  .lead__row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 30px; gap: 22px; }
  .blog-tab--up, .blog-tab--down { justify-self: center; }
  .bcard__title { font-size: calc(36 * var(--c)); }
  .sheet { padding: 80px 18px 0; }
  .sheet--post { padding: 30px 18px; }
  .decisions, .gal { grid-template-columns: 1fr; }
  .post-imgs { grid-template-columns: 1fr; }
  .sheet-sec--end .case-final { margin: 40px -18px 0; }
  .post-nav { flex-direction: column; }
}

/* =========================================================================
   ESTUDO DE CASO — modo imersivo
   O projeto é o protagonista: sem barra lateral, sem verde, fundo liso,
   tipografia creme em pesos variados e imagens grandes.
   ========================================================================= */
.sidebar { transition: opacity 420ms var(--ease), transform 520ms var(--ease); }
.is-immersive .sidebar { opacity: 0; transform: translateX(-140%); pointer-events: none; }
.is-immersive :focus-visible { outline-color: var(--cream); }

.page.page--case { width: auto; max-width: none; margin: 0; padding: 0; --cs-pad: clamp(24px, 5vw, 96px); }

.cs-close {
  position: fixed; top: 22px; right: 22px; z-index: 60;
  display: flex; align-items: center; gap: 12px; flex-direction: row-reverse;
  color: var(--cream);
}
.cs-close__x {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(27, 27, 25, .55); border: 1px solid rgba(255, 248, 233, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 220ms var(--ease), transform 300ms var(--ease);
}
.cs-close__x::before, .cs-close__x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: currentColor; translate: -50% -50%; rotate: 45deg; }
.cs-close__x::after { rotate: -45deg; }
.cs-close__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: 0; translate: 8px 0; transition: opacity 200ms var(--ease), translate 260ms var(--ease); }
.cs-close:hover .cs-close__x, .cs-close:focus-visible .cs-close__x { background: var(--cream); color: var(--ink); transform: rotate(90deg); }
.cs-close:hover .cs-close__label, .cs-close:focus-visible .cs-close__label { opacity: 1; translate: 0 0; }
.cs-close:focus-visible { outline: none; }

/* Abertura: o plate recortado do card, quase em tela cheia */
.cs-hero { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.cs-hero .case-hero__media {
  position: relative; inset: auto;
  width: min(calc(100vw - 40px), calc((100vh - 40px) * 1500 / 703));
  aspect-ratio: 1500 / 703;
  container-type: inline-size; --c: calc(100cqw / 1500);
}
.cs-hero .case-hero__logo { width: calc(var(--lw) * 2 * var(--c)); transition: opacity 700ms var(--ease); }
/* capa principal: entra por cima da capa do card com um fade + leve zoom-out */
.case-hero__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; opacity: 0; transform: scale(1.04); transition: opacity 900ms var(--ease), transform 1400ms var(--ease); }
.is-cover .case-hero__cover { opacity: 1; transform: scale(1); }
.is-cover .case-hero__logo { opacity: 0; }

.cs { max-width: 1520px; margin: 0 auto; padding: 0 var(--cs-pad) clamp(80px, 12vh, 140px); color: var(--cream); }
.cs-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 80px); padding: clamp(72px, 14vh, 170px) 0 clamp(56px, 10vh, 120px); }
.cs-title { grid-column: 1 / -1; font-weight: 400; font-size: clamp(64px, 10vw, 184px); line-height: .92; letter-spacing: -.035em; }
.cs-lede { grid-column: 2; margin-top: clamp(24px, 4vh, 48px); font-weight: 300; font-size: clamp(20px, 1.9vw, 32px); line-height: 1.25; letter-spacing: -.01em; }
.cs-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 9vh, 104px); padding-top: 22px; border-top: 1px solid rgba(255, 248, 233, .16); }
.cs-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.cs-meta dd { margin-top: 10px; font-size: clamp(14px, 1.05vw, 17px); font-weight: 400; line-height: 1.45; }

/* Imagem sangrando a largura da tela */
.cs-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.cs-bleed .cs-fig__frame { border-radius: 0; aspect-ratio: 16 / 8; }
.cs-bleed .cs-fig__frame img { height: 100%; object-fit: cover; }

/* Capítulos: rótulo à esquerda, texto curto à direita */
.cs-chapter, .cs-end { display: grid; grid-template-columns: 1fr 2fr; column-gap: clamp(24px, 4vw, 80px); padding-top: clamp(96px, 16vh, 200px); }
.cs-chapter > :not(.cs-label), .cs-end > :not(.cs-label) { grid-column: 2; }
.cs-chapter { padding-bottom: clamp(36px, 6vh, 64px); }
.cs-label { grid-column: 1; grid-row: 1 / span 3; align-self: start; display: flex; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 248, 233, .55); padding-top: .55em; }
.cs-label span { color: var(--cream); }
.cs-text { max-width: 36ch; font-weight: 300; font-size: clamp(20px, 1.75vw, 30px); line-height: 1.32; letter-spacing: -.005em; }
.cs-text--muted { opacity: .55; }
.cs-statement { max-width: 18ch; font-weight: 400; font-size: clamp(40px, 5.2vw, 96px); line-height: .98; letter-spacing: -.03em; margin-bottom: clamp(20px, 3vh, 36px); }
.cs-statement--end { max-width: 24ch; font-size: clamp(30px, 3.4vw, 60px); line-height: 1.08; }

/* Decisões: frase curta antes das imagens que a mostram */
.cs-decision { display: grid; grid-template-columns: 1fr 2fr; column-gap: clamp(24px, 4vw, 80px); padding: clamp(72px, 12vh, 140px) 0 clamp(24px, 4vh, 40px); }
.cs-decision__text { grid-column: 2; max-width: 40ch; }
.cs-decision h3 { display: flex; align-items: baseline; gap: 16px; font-weight: 400; font-size: clamp(26px, 2.4vw, 42px); line-height: 1.05; letter-spacing: -.02em; }
.cs-decision h3 span { font-size: 12px; font-weight: 600; letter-spacing: .14em; opacity: .45; }
.cs-decision p { margin-top: 14px; font-weight: 300; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.45; opacity: .78; }

/* Sequência de imagens */
.cs-row { display: grid; gap: clamp(12px, 1.4vw, 24px); margin-top: clamp(12px, 1.4vw, 24px); }
.cs-row--pair, .cs-row--single { grid-template-columns: 1fr 1fr; }
.cs-fig { margin: 0; }
.cs-fig__frame { overflow: hidden; border-radius: 8px; background: #232320; }
.cs-fig__frame img { width: 100%; height: auto; transform: translate3d(0, var(--px, 0%), 0) scale(1.07); transition: transform 120ms linear; will-change: transform; }
.cs-fig figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .02em; color: rgba(255, 248, 233, .5); }
.is-ready [data-reveal="img"]:not(.is-in) { --rv-o: 0; --rv-y: 48px; }

.cs-actions { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(32px, 5vh, 56px); }
.cs-link { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); padding-bottom: 6px; }
.cs-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 360ms var(--ease); }
.cs-link:hover::after { transform: scaleX(0); }
.cs-link .arrow { width: 14px; height: 14px; transition: transform 260ms var(--ease); }
.cs-link:hover .arrow { transform: translate(3px, -3px); }

/* Próximo projeto: um convite grande, em tela quase cheia */
.cs-next__card { position: relative; display: block; height: 78vh; overflow: hidden; color: var(--cream); }
.cs-next__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); transform: scale(1.04); transition: filter 700ms var(--ease), transform 1000ms var(--ease); }
.cs-next__card:hover .cs-next__img, .cs-next__card:focus-visible .cs-next__img { filter: grayscale(0) brightness(.7); transform: scale(1); }
.cs-next__label { position: absolute; left: var(--cs-pad); top: clamp(28px, 6vh, 64px); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.cs-next__name { position: absolute; left: var(--cs-pad); bottom: clamp(28px, 6vh, 64px); display: inline-flex; align-items: center; gap: .3em; font-size: clamp(56px, 9vw, 160px); line-height: .9; letter-spacing: -.035em; }
.cs-next__name .arrow { width: .5em; height: .5em; transition: transform 320ms var(--ease); }
.cs-next__card:hover .cs-next__name .arrow { transform: translateX(10px); }

@media (max-width: 899.98px) {
  .cs-intro, .cs-chapter, .cs-end, .cs-decision { grid-template-columns: 1fr; }
  .cs-lede, .cs-chapter > :not(.cs-label), .cs-end > :not(.cs-label), .cs-decision__text { grid-column: 1; }
  .cs-label { grid-row: auto; margin-bottom: 18px; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-row--pair { grid-template-columns: 1fr; }
  .cs-hero { min-height: auto; padding: 72px 12px 40px; }
  .cs-hero .case-hero__media { width: calc(100vw - 24px); }
  .cs-close { top: 14px; right: 14px; }
  .cs-next__card { height: 52vh; }
}

/* ---------------- Movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-fx] { opacity: 1 !important; transform: none !important; }
  .is-ready [data-reveal] { opacity: 1; translate: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .cs-fig__frame img { transform: none !important; }
}

/* =========================================================================
   LANÇAMENTO — carregamento, progresso de rota, cookies, páginas simples
   ========================================================================= */

/* Aviso de carregamento inicial */
/* só aparece se o carregamento passar de ~350ms (conexões rápidas nunca veem o aviso) */
.boot-loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--ink); color: var(--lime); opacity: 0; pointer-events: none; animation: boot-show 300ms ease 350ms forwards; transition: opacity 450ms var(--ease); }
.is-ready .boot-loader { animation: none; opacity: 0; visibility: hidden; transition: opacity 450ms var(--ease), visibility 0s linear 450ms; }
@keyframes boot-show { to { opacity: 1; pointer-events: auto; } }
.boot-loader__mark { font-family: var(--font-display); font-size: 64px; line-height: 1; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); padding-top: 4px; animation: boot-pulse 1.4s var(--ease) infinite; }
.boot-loader__bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(205, 249, 72, .18); overflow: hidden; }
.boot-loader__bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--lime); animation: boot-bar 1.1s ease-in-out infinite; }
.boot-loader__slow { display: none; max-width: 300px; text-align: center; color: var(--cream); font-size: 15px; line-height: 1.4; }
.boot-loader__slow a { color: var(--lime); text-decoration: underline; }
.is-slow:not(.is-ready) .boot-loader__slow { display: block; }
@keyframes boot-pulse { 50% { transform: scale(.94); } }
@keyframes boot-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Barra fina de progresso nas trocas de página — só aparece se a troca demorar */
.route-progress { position: fixed; left: 0; top: 0; z-index: 150; height: 3px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none; }
.is-routing .route-progress { opacity: 1; transform: scaleX(.85); transition: transform 2.4s cubic-bezier(.1, .7, .2, 1) 160ms, opacity 0s linear 160ms; }
html:not(.is-routing) .route-progress { transition: opacity 300ms ease, transform 0s linear 300ms; }

/* Aviso de cookies */
.consent { position: fixed; z-index: 120; right: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px)); display: grid; gap: 16px; padding: 22px 22px 20px; border-radius: 28px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 60px rgba(0, 0, 0, .45); font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(16px); transition: opacity 360ms var(--ease), transform 420ms var(--ease); }
.consent.is-open { opacity: 1; transform: none; }
.consent__title { font-family: var(--font-heavy); font-weight: 900; font-size: 18px; text-transform: uppercase; margin-bottom: 4px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent__state { margin-top: 6px; opacity: .75; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent .mini-btn { min-height: 42px; padding: .5em 1.4em; border-color: var(--ink); color: var(--ink); font-size: 13px; }
.consent .mini-btn:hover { background: var(--ink); color: var(--cream); }
.consent .mini-btn--lime { background: var(--ink); color: var(--lime); }
.consent .mini-btn--lime:hover { background: #000; color: var(--lime); }
html:not(.has-analytics) [data-cookie-prefs] { display: none !important; }
.legal-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Aviso de privacidade nos formulários + links do rodapé */
.lead__legal { color: var(--cream); opacity: .62; font-size: max(11px, calc(12 * var(--c))); line-height: 1.3; }
.lead__legal a { text-decoration: underline; text-underline-offset: 2px; }
.lead__legal a:hover { color: var(--lime); opacity: 1; }
.lead[data-state="success"] .lead__legal, .lead[data-state="error"] .lead__legal { visibility: hidden; }
.legal-foot { display: flex; gap: 18px; color: var(--cream); opacity: .6; font-size: 13px; }
.legal-foot a:hover, .legal-foot .legal-link:hover { color: var(--lime); opacity: 1; }
.legal-foot .legal-link, .legal-foot a { text-decoration: none; }

/* Páginas simples: Obrigado, Privacidade, Termos, 404 */
.page--simple { color: var(--cream); padding-bottom: 120px; }
.page--simple .lead-in { max-width: 640px; width: auto; }
.page--simple .lead-in a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.lead-in--muted { opacity: .7; }
.simple-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.simple-actions .pill-btn { height: 64px; padding: 0 32px; gap: 18px; font-size: 16px; font-weight: 600; }
.page--thanks .page-head .display { white-space: normal; }
.legal-updated { margin-top: 10px; font-size: 14px; opacity: .6; }
.legal { max-width: 760px; margin-top: 48px; font-size: 17px; line-height: 1.6; }
.legal-intro { font-size: 20px; line-height: 1.5; margin-bottom: 40px; }
.legal-sec { padding: 28px 0; border-top: 1px solid rgba(255, 248, 233, .14); }
.legal-sec h2 { display: flex; gap: 14px; align-items: baseline; font-family: var(--font-heavy); font-weight: 900; font-size: 21px; line-height: 1.2; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.legal-sec h2 span { font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--cream); opacity: .5; }
.legal-sec p + p, .legal-sec ul + p, .legal-sec p + ul { margin-top: 12px; }
.legal-sec ul { display: grid; gap: 8px; padding-left: 1.1em; list-style: disc; }
.legal-sec li::marker { color: var(--lime); }
.legal-sec strong { color: #fff; }
.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; background: rgba(255, 248, 233, .1); padding: .1em .4em; border-radius: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 248, 233, .14); font-weight: 600; }
.legal-nav .legal-link { color: var(--lime); }

@media (min-width: 900px) {
  .page--simple { padding-left: calc(345 * var(--u)); padding-right: calc(75 * var(--u)); }
  .page--legal .page-head .display { white-space: normal; }
  .lead--svc .lead__legal { position: absolute; top: calc(442 * var(--c)); left: calc(8 * var(--c)); }
  .lead--contact .lead__legal { position: absolute; top: calc(368 * var(--c)); left: calc(6 * var(--c)); }
}
@media (max-width: 899.98px) {
  .lead__legal { margin-top: 10px; font-size: 12.5px; }
  .legal-foot { order: 10; flex-wrap: wrap; }
  .page--simple { padding: 0 20px 120px; }
  .legal { font-size: 16px; }
  .legal-intro { font-size: 18px; }
  .consent { right: 16px; bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-loader__mark, .boot-loader__bar i { animation: none !important; }
}

/* =========================================================================
   AJUSTES — Sobre (números ao lado do título) e Blog em faixa deslizante
   ========================================================================= */
@media (max-width: 899.98px) {
  /* SOBRE + os três números lado a lado */
  .sec--sobre { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(14px, 4vw, 32px); }
  .sec--sobre > * { grid-column: 1 / -1; }
  .sec--sobre .sobre-title { grid-column: 1; grid-row: 1; width: auto; }
  .sec--sobre .sobre-stats { grid-column: 2; grid-row: 1; width: auto; max-width: 340px; font-size: clamp(11px, 3.1vw, 16px); line-height: 1.2; }
  .sec--sobre .sobre-title { font-size: clamp(38px, 10.5vw, 72px); }
  .sobre-stats span { white-space: normal; }
  .sobre-stats small { white-space: nowrap; }
  .fold__btn { gap: 12px; }
  .sobre-col--b .sobre-skills { margin-top: 26px; }

  /* Blog: os artigos deslizam para o lado; as setas de página somem */
  .blog-grid { display: block; padding: 0; }
  .blog-track { display: flex; gap: 30px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 34px; padding: 6px 34px 10px; margin: 0 -18px; scrollbar-width: none; }
  .blog-track::-webkit-scrollbar { display: none; }
  .blog-track:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 12px; }
  .blog-track .bcard { flex: 0 0 min(80%, 400px); width: auto; scroll-snap-align: start; }
  .blog-track .bcard:hover { transform: none; }
  .blog-track .bcard__title { line-height: 1.1; padding-bottom: .04em; }
  .blog-swipe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--cream); opacity: .6; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
  .blog-swipe .arrow { width: 18px; height: 18px; }
  .blog-filter { font-size: 13.5px; }
}
@media (min-width: 700px) and (max-width: 899.98px) {
  .blog-track { margin: 0; }
  .blog-track .bcard { flex-basis: min(46%, 400px); }
}
