/* Layout: página escura contínua com campo de estrelas; títulos em negrito + itálico serifado em magenta; um único painel claro (análise). */
:root {
  /* Paleta oficial */
  --off: #F6F4F8;
  --magenta: #CF39DE;
  --violeta: #9A57D7;
  --roxo: #5B2D8B;
  --profundo: #2E1A47;
  --preto: #000000;
  /* Superfícies escuras derivadas */
  --bg: #0C0910;
  --bg-2: #120D18;
  --surface: #17111F;
  --surface-2: #211830;
  --line: rgba(246, 244, 248, .1);
  --line-2: rgba(246, 244, 248, .2);
  --muted: rgba(246, 244, 248, .62);
  --muted-2: rgba(246, 244, 248, .42);
  --accent-ink: #E27BEC;        /* magenta para textos pequenos sobre escuro */
  /* Painel claro */
  --paper: #F6F4F8;
  --ink: #1B1029;
  --ink-2: #4D4060;
  --paper-line: #DCD3E6;
  --erro: #B0124A;
  /* Tipografia */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-display: clamp(2.25rem, 1.3rem + 4.2vw, 5rem);
  --t-hero: clamp(2.6rem, 1.2rem + 4.6vw, 5.75rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1280px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--off);
  font-family: var(--f-display); font-size: 1rem; line-height: 1.6; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.analysis-panel :focus-visible { outline-color: var(--roxo); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--off); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

main, .site-footer { position: relative; z-index: 1; }
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.wrap { max-width: calc(var(--max) + 64px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 768px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* Tipografia */
.display, .hero-title, .contact-title, .sub-head {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .98;
}
.display { font-size: var(--t-display); }
.display em, .hero-title em, .contact-title em, .sub-head em, .svc-closing em, .blur-text em, .story-word em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--muted);
}
.display em { display: block; color: var(--accent-ink); }
.sub-head { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.sub-head em { color: var(--accent-ink); }
.kicker, .label-mono, .eyebrow {
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); margin-bottom: 18px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); max-width: 980px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-display); font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), translate .2s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--magenta); color: var(--preto); box-shadow: 0 10px 30px -10px rgba(207, 57, 222, .7); }
.btn-accent:hover { background: #DA5BE7; box-shadow: 0 16px 40px -12px rgba(207, 57, 222, .9); }
.btn-ghost { border-color: var(--line-2); color: var(--off); background: rgba(246, 244, 248, .03); }
.btn-ghost:hover { border-color: var(--off); background: rgba(246, 244, 248, .08); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 1.0625rem; }
.link-btn { background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); }

/* Barra de progresso */
.progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violeta), var(--magenta)); transform-origin: left; transform: scaleX(0); }

/* Cabeçalho */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  padding: 10px var(--gutter-r) 0 var(--gutter);
  margin-bottom: calc(-1 * var(--header-h) - 10px); pointer-events: none;
}
.header-bar {
  pointer-events: auto; position: relative;
  max-width: calc(var(--max) + 32px); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 10px;
  background: rgba(18, 13, 24, .72); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.brand { display: flex; align-items: baseline; gap: .3em; flex: none; padding: 0 12px; text-decoration: none; color: var(--off); font-weight: 800; letter-spacing: -.03em; font-size: 1.25rem; line-height: 1; white-space: nowrap; }
.brand em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-ink); font-size: 1.12em; }
.brand:hover em { color: var(--magenta); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; }
.nav ul a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: .9375rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav ul a:hover { color: var(--off); background: rgba(246, 244, 248, .06); }
.nav ul a[aria-current="true"] { color: var(--off); background: rgba(246, 244, 248, .1); }
.nav .nav-cta-mobile { display: none; }
.header-cta { min-height: 48px; padding: 10px 20px; font-size: .9375rem; box-shadow: none; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .brand { font-size: 1.0625rem; padding: 0 8px; }
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 46px; padding: 8px 16px;
    border-radius: 999px; background: var(--off); color: var(--ink); border: 0; cursor: pointer; font-weight: 650;
  }
  .menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
  .menu-toggle-icon { position: relative; }
  .menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-icon::before { top: -5px; }
  .menu-toggle-icon::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 10px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 12px; display: none;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
  .nav.is-open { display: block; animation: drop .3s var(--ease); }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 14px 16px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--off); }
  .nav .nav-cta-mobile { display: flex; margin-top: 10px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(44px, 5vw, 64px)); overflow: hidden; }
.hero-inner { text-align: center; display: grid; justify-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(207, 57, 222, .25); } 50% { box-shadow: 0 0 0 10px rgba(207, 57, 222, 0); } }
.hero-title { font-size: var(--t-hero); max-width: 14ch; }
.ht-1, .ht-2 { display: block; }
.ht-2 { margin-top: .12em; font-size: .62em; line-height: 1.05; }
.ht-2 em { color: var(--off); }
.ht-2 strong { font-weight: 800; color: var(--magenta); }
.hero-lede { margin-top: 26px; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-title > span, .eyebrow, .hero-lede, .hero-actions { animation: rise 1s var(--ease) both; }
.ht-2 { animation-delay: .1s !important; }
.hero-lede { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Leque de mídia */
.fan { position: relative; height: clamp(280px, 34vw, 440px); margin-top: clamp(32px, 4vw, 48px); perspective: 1400px; }
.fan-card {
  position: absolute; left: 50%; top: 10px; width: clamp(120px, 15vw, 210px); aspect-ratio: 3 / 4.2;
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  transform-origin: 50% 100%;
  transform: translateX(calc(-50% + var(--o) * min(12vw, 170px))) translateY(var(--y)) rotate(var(--r));
  animation: fanIn 1.2s var(--ease) both; animation-delay: calc(.35s + var(--i) * .08s);
  transition: transform .5s var(--ease);
}
.fan-card img, .fan-card video { width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover { transform: translateX(calc(-50% + var(--o) * min(12vw, 170px))) translateY(calc(var(--y) - 22px)) rotate(var(--r)); z-index: 10 !important; }
.fan-play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--magenta); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(207, 57, 222, .25);
}
.fan-tag { position: absolute; left: 10px; top: 10px; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .55); padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
@keyframes fanIn { from { transform: translateX(-50%) translateY(50%) rotate(0deg); opacity: 0; } to { opacity: 1; } }
.ic-play { display: block; width: 0; height: 0; border-left: 11px solid var(--preto); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* Colagem com rolagem */
.story { position: relative; height: 260vh; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-word { position: absolute; font-weight: 800; letter-spacing: -.045em; line-height: .9; font-size: clamp(3.5rem, 2rem + 9vw, 11rem); z-index: 3; pointer-events: none; }
.story-a { left: var(--gutter); top: 18%; }
.story-b { right: var(--gutter-r); bottom: 12%; }
.story-b em { color: var(--accent-ink); }
.story-stage { position: absolute; inset: 0; }
.st-item {
  position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: var(--ar);
  border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9); will-change: transform;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--rot)) scale(var(--s));
}
.st-item img, .st-item video { width: 100%; height: 100%; object-fit: cover; }
.st-item .st-label { position: absolute; left: 8px; bottom: 8px; font-family: var(--f-mono); font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--off); background: rgba(0, 0, 0, .55); padding: 3px 7px; border-radius: 999px; }

/* Esfera */
.sphere-sec { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding-block: 80px; }
.sphere { position: absolute; left: 50%; top: 50%; width: min(120vw, 900px); height: min(120vw, 900px); transform: translate(-50%, -50%); pointer-events: none; }
.sphere-copy { position: relative; text-align: center; display: grid; justify-items: center; gap: 20px; }
.sphere-num { font-weight: 900; font-size: clamp(6rem, 4rem + 10vw, 13rem); line-height: .8; color: var(--magenta); letter-spacing: -.06em; text-shadow: 0 0 60px rgba(207, 57, 222, .45); font-variant-numeric: tabular-nums; }
.blur-text { font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.5rem); max-width: 22ch; }
.blur-text em { color: var(--accent-ink); }
.blur-text .bw { display: inline-block; transition: filter .9s var(--ease), opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.blur-text.is-pending .bw { filter: blur(10px); opacity: .25; transform: translateY(8px); }

/* Serviços */
.services { padding-block: clamp(90px, 12vw, 160px); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; max-width: 900px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line-2); font-weight: 600; font-size: clamp(1rem, .9rem + .5vw, 1.375rem); letter-spacing: -.01em;
  transition: transform .6s var(--ease), opacity .6s var(--ease), background-color .3s, border-color .3s;
  transition-delay: calc(var(--i) * 60ms);
}
.pill .pn { font-family: var(--f-mono); font-size: .6875rem; color: var(--muted-2); letter-spacing: .08em; }
.pill:nth-child(odd) { transform: rotate(-2deg); }
.pill:nth-child(even) { transform: rotate(1.5deg); }
.pill.hot { background: var(--magenta); border-color: var(--magenta); color: var(--preto); font-size: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: 800; transform: rotate(-4deg); }
.pill.hot .pn { color: rgba(0, 0, 0, .55); }
.pills.is-pending .pill { transform: translateY(30px) scale(.8); opacity: .2; }
.pills-note { margin-top: 24px; color: var(--muted); max-width: 60ch; }

.svc-layout { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1024px) { .svc-layout { grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; } }
.svc-list { border-top: 1px solid var(--line-2); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-btn {
  width: 100%; display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 12px;
  padding: 18px 4px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--muted);
  transition: color .25s;
}
.svc-n { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; color: var(--muted-2); }
.svc-name { font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); transition: transform .45s var(--ease), color .25s; }
.svc-plus { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; flex: none; transition: background-color .25s, border-color .25s; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc-item.is-active .svc-btn, .svc-btn:hover { color: var(--off); }
.svc-item.is-active .svc-name, .svc-btn:hover .svc-name { transform: translateX(10px); }
.svc-item.is-active .svc-n { color: var(--magenta); }
.svc-item.is-active .svc-plus { background: var(--magenta); border-color: var(--magenta); color: var(--preto); }
.svc-item.is-active .svc-plus::after, .svc-item.is-open .svc-plus::after { transform: rotate(0); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.svc-item.is-open .svc-body { grid-template-rows: 1fr; }
.svc-body-inner { overflow: hidden; min-height: 0; }
.svc-body-inner > div { padding: 0 4px 24px calc(3.2rem + 12px); display: grid; gap: 14px; }
.svc-desc { color: var(--off); max-width: 60ch; }
.svc-benefit { color: var(--muted); padding-left: 14px; border-left: 2px solid var(--magenta); max-width: 60ch; }
@media (max-width: 599px) { .svc-btn { grid-template-columns: 2.4rem 1fr auto; } .svc-body-inner > div { padding-left: 4px; } }
.svc-panel { display: none; }
@media (min-width: 1024px) {
  .svc-body { display: none; }
  .svc-panel { display: block; position: sticky; top: calc(var(--header-h) + 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
}
.panel-media { position: relative; aspect-ratio: 4 / 3.6; background: var(--preto); overflow: hidden; }
.panel-media img, .panel-media video { width: 100%; height: 100%; object-fit: cover; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: scale(1.08); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.panel-num { position: absolute; right: 16px; bottom: -.16em; font-weight: 900; letter-spacing: -.06em; font-size: 8.5rem; line-height: 1; color: rgba(246, 244, 248, .92); pointer-events: none; z-index: 1; }
.panel-graphic { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 80% at 70% 20%, rgba(207, 57, 222, .45), transparent 60%), var(--profundo); overflow: hidden; }
.panel-graphic::before, .panel-graphic::after { content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%; transform: rotate(-18deg) scaleY(.38); animation: orbit 16s linear infinite; }
.panel-graphic::before { width: 150%; border: 1.5px solid rgba(246, 244, 248, .2); }
.panel-graphic::after { width: 105%; border: 2px solid rgba(207, 57, 222, .7); animation-duration: 11s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(342deg) scaleY(.38); } }
.panel-graphic span { position: relative; font-family: var(--f-serif); font-style: italic; font-size: 4.5rem; z-index: 1; }
.panel-body { padding: 26px 28px 30px; display: grid; gap: 12px; }
.panel-body h3 { font-weight: 800; letter-spacing: -.035em; font-size: 2.25rem; line-height: 1; }
.panel-body p { color: var(--muted); }
.panel-body .panel-benefit { color: var(--off); border-left: 2px solid var(--magenta); padding-left: 14px; }
.svc-closing { margin-top: clamp(56px, 8vw, 96px); max-width: 26ch; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem); }
.svc-closing em { color: var(--accent-ink); }

/* Faixa de serviços */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; position: relative; z-index: 1; }
.marquee-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap; font-size: clamp(2rem, 1.4rem + 3vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.marquee-track span:nth-child(odd) { font-weight: 800; }
.marquee-track span:nth-child(even) { font-family: var(--f-serif); font-style: italic; color: var(--muted); letter-spacing: -.01em; }
.marquee-track span::after { content: "✱"; color: var(--magenta); font-family: var(--f-display); font-style: normal; font-size: .6em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Portfólio: cards de categoria */
.portfolio { padding-top: clamp(90px, 12vw, 160px); }
.cat-cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-card {
  position: relative; display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 4.4; background: var(--surface); cursor: pointer; padding: 0; color: var(--off); isolation: isolate;
}
.cat-card > img, .cat-card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 9, 16, .96) 8%, rgba(12, 9, 16, .45) 50%, rgba(12, 9, 16, .1)); }
.cat-card:hover > img, .cat-card:hover > video, .cat-card:focus-visible > img { transform: scale(1.06); }
.cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 8px; }
.cat-name { font-family: var(--f-serif); font-style: italic; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -.01em; }
.cat-desc { color: var(--muted); font-size: .9375rem; max-width: 40ch; }
.cat-tags { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.cat-arrow { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--off); color: var(--preto); display: grid; place-items: center; font-size: 1.1rem; transition: transform .35s var(--ease), background-color .25s; }
.cat-card:hover .cat-arrow { transform: rotate(-45deg); background: var(--magenta); }
.cat-count { position: absolute; left: 16px; top: 16px; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .55); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Projetos empilhados */
.stack-wrap { margin-top: clamp(90px, 12vw, 150px); }
.stack-wrap .sub-head { margin-bottom: 28px; }
.stack { display: grid; gap: 0; }
.stack-card { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 28px; }
.stack-card:nth-child(2) { top: calc(var(--header-h) + 44px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 64px); }
.feat {
  max-width: calc(var(--max)); margin-inline: auto; margin-left: var(--gutter); margin-right: var(--gutter-r);
  display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; min-width: 0;
  transform-origin: 50% 0; transition: transform .2s linear, filter .2s linear; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .9);
}
@media (min-width: 1344px) { .feat { margin-left: auto; margin-right: auto; } }
.stack-card:nth-child(3) .feat { background: var(--magenta); color: var(--preto); border-color: transparent; }
@media (min-width: 900px) { .feat { grid-template-columns: 1.05fr 1fr; min-height: min(560px, 70vh); } }
.feat-media { position: relative; background: var(--preto); min-height: 320px; overflow: hidden; }
.feat-media > img, .feat-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease), translate .4s var(--ease); }
.feat-apoio { position: absolute; right: 16px; bottom: 16px; width: 34%; max-width: 190px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; border: 3px solid var(--off); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); transform: rotate(3deg); }
.feat-play { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--off); color: var(--preto); font-weight: 650; font-size: .9375rem; }
.feat-body { padding: clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feat-num { font-weight: 900; font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: .8; letter-spacing: -.06em; color: var(--magenta); }
.stack-card:nth-child(3) .feat-num { color: var(--preto); }
.feat-cat { color: var(--accent-ink); }
.stack-card:nth-child(3) .feat-cat { color: var(--preto); }
.feat-title { font-weight: 800; letter-spacing: -.035em; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); line-height: 1; }
.feat-dl { display: grid; margin: auto 0 0; border-top: 1px solid currentColor; border-top-color: var(--line-2); }
.stack-card:nth-child(3) .feat-dl, .stack-card:nth-child(3) .feat-dl div { border-color: rgba(0, 0, 0, .2); }
.feat-dl div { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feat-dl dt { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; padding-top: 3px; }
.feat-dl dd { margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8125rem; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
@media (max-width: 520px) { .feat-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Galeria */
.gallery-block { padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(90px, 12vw, 150px); }
.gallery-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line-2); background: transparent; color: var(--off); font-weight: 550; font-size: .9375rem; transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--off); }
.filter[aria-pressed="true"] { background: var(--magenta); color: var(--preto); border-color: var(--magenta); }
.filter .cnt { font-family: var(--f-mono); font-size: .75rem; margin-left: 6px; opacity: .7; }
.filter.is-empty { border-style: dashed; color: var(--muted); }
.filter.is-empty .cnt { font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; }
.g-empty { column-span: all; display: grid; justify-items: center; gap: 8px; text-align: center; padding: clamp(48px, 8vw, 96px) 16px; border: 1px dashed var(--line-2); border-radius: 22px; animation: tileIn .6s var(--ease) both; }
.g-empty-mark { color: var(--magenta); font-size: 2rem; line-height: 1; animation: orbitSpin 8s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.g-empty strong { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.05; }
.g-empty span:last-child { color: var(--muted); max-width: 44ch; }
.g-q img { aspect-ratio: 1 / 1; }
.gallery-status { color: var(--muted-2); margin-bottom: 20px; min-height: 1.2em; }
.gallery { columns: 2 150px; column-gap: 12px; }
@media (min-width: 768px) { .gallery { columns: 3 220px; column-gap: 16px; } }
@media (min-width: 1200px) { .gallery { columns: 4 240px; } }
.g-item { break-inside: avoid; margin-bottom: 12px; animation: tileIn .6s var(--ease) both; }
@media (min-width: 768px) { .g-item { margin-bottom: 16px; } }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; border-radius: 16px; overflow: hidden; position: relative; text-align: left; color: var(--off); }
.g-btn img, .g-btn video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--ease); }
.g-h img, .g-h video { aspect-ratio: 4 / 3; }
.g-btn:hover img, .g-btn:hover video, .g-btn:focus-visible img { transform: scale(1.05); }
.g-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 0 var(--magenta); transition: box-shadow .3s var(--ease); }
.g-btn:hover::after, .g-btn:focus-visible::after { box-shadow: inset 0 0 0 3px var(--magenta); }
.g-cap { position: absolute; inset: auto 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); display: grid; gap: 2px; }
.g-cap strong { font-weight: 650; font-size: .9375rem; line-height: 1.25; }
.g-cap span { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.g-badge { position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; }
.g-badge .ic-play { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }

/* Feeds */
.feeds { padding-block: clamp(90px, 12vw, 150px); overflow: hidden; background: linear-gradient(180deg, transparent, rgba(46, 26, 71, .35) 30%, rgba(46, 26, 71, .35) 70%, transparent); }
.feeds-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .feeds-grid { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 64px; } }
.feeds-head .lede { margin-top: 20px; }
.feeds-note { margin-top: 24px; color: var(--accent-ink); }
.feeds-collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 28px; gap: 10px; }
.feed-card { margin: 0; padding: 0; border: 1px solid var(--line-2); background: var(--preto); cursor: zoom-in; position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transition: transform .5s var(--ease); }
.feed-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feed-card:hover, .feed-card:focus-visible { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.feed-tag { position: absolute; left: 10px; bottom: 10px; background: var(--off); color: var(--ink); font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.feed-1 { grid-column: 1 / 6; grid-row: 1 / 16; transform: rotate(-2deg); z-index: 2; }
.feed-2 { grid-column: 6 / 13; grid-row: 2 / 11; transform: rotate(1.5deg); }
.feed-3 { grid-column: 6 / 13; grid-row: 11 / 20; transform: rotate(-1deg); z-index: 3; }
.feed-4 { grid-column: 2 / 7; grid-row: 15 / 23; transform: rotate(2deg); z-index: 4; }
@media (max-width: 599px) { .feeds-collage { grid-auto-rows: 20px; gap: 8px; } }

/* Cases */
.cases { padding-block: clamp(90px, 12vw, 150px); }
.cases-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; min-width: 0; background: var(--surface); }
.case:first-child { background: radial-gradient(120% 120% at 100% 0%, rgba(207, 57, 222, .35), transparent 55%), var(--profundo); border-color: rgba(207, 57, 222, .3); }
.case-label { color: var(--accent-ink); }
.case-hero { display: grid; gap: 2px; }
.case-hero .num { font-weight: 900; letter-spacing: -.05em; font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); line-height: .85; font-variant-numeric: tabular-nums; color: var(--magenta); }
.case:not(:first-child) .case-hero .num { font-size: clamp(2.75rem, 1.4rem + 3vw, 4.25rem); color: var(--off); }
.case-hero .what { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--muted); }
.case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); border-top: 1px solid var(--line); }
.case-metrics div { padding: 14px 14px 4px 0; display: grid; gap: 2px; }
.case-metrics strong { font-weight: 800; letter-spacing: -.03em; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.case-metrics span { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); line-height: 1.4; }
.case-ctx { font-size: .875rem; color: var(--muted); max-width: 70ch; }
.case-src { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--off); cursor: zoom-in; font-size: .875rem; font-weight: 600; }
.case-src:hover { border-color: var(--off); }
.painel-strip { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 768px) { .painel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.painel { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left; padding: 14px 18px; border-radius: 18px; border: 1px dashed var(--line-2); background: transparent; color: var(--off); cursor: zoom-in; }
.painel img { width: 120px; border-radius: 8px; }
.painel span { font-weight: 600; }
.painel small { display: block; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.cases-foot { margin-top: 28px; font-size: .875rem; color: var(--muted-2); max-width: 80ch; }

/* Análise: painel claro */
.analysis { padding-block: clamp(40px, 6vw, 80px); }
.analysis-panel {
  background: var(--paper); color: var(--ink); border-radius: 32px; padding: clamp(24px, 5vw, 72px);
  display: grid; gap: 40px;
}
@media (min-width: 1024px) { .analysis-panel { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.analysis-panel .kicker { color: var(--roxo); }
.analysis-panel .display em { color: var(--roxo); }
.analysis-panel .lede { color: var(--ink-2); margin-top: 18px; }
.steps { margin-top: 32px; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--paper-line); color: rgba(27, 16, 41, .38); transition: color .5s var(--ease); }
.steps li.on { color: var(--ink); }
.steps li.on .step-n { color: var(--magenta); }
.step-n { font-family: var(--f-mono); font-size: .875rem; letter-spacing: .08em; transition: color .5s; }
.steps strong { font-size: 1.25rem; letter-spacing: -.02em; display: block; }
.fine { margin-top: 20px; font-size: .875rem; color: var(--ink-2); }
.analysis-card { background: #FFFFFF; border-radius: 24px; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--paper-line); min-width: 0; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 650; font-size: .9375rem; }
.req { color: var(--magenta); }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea, #f-msg {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--paper-line);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; color-scheme: light; transition: border-color .2s, box-shadow .2s;
}
.field textarea, #f-msg { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--roxo) 50%), linear-gradient(135deg, var(--roxo) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--violeta); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 4px rgba(154, 87, 215, .25); }
.field [aria-invalid="true"] { border-color: var(--erro); background: #FFF6F8; }
.hint { font-size: .8125rem; color: var(--ink-2); }
.err { font-size: .875rem; color: var(--erro); font-weight: 600; }
.err::before { content: "! "; }
.form-legal { font-size: .8125rem; color: var(--ink-2); }
.form-done { display: grid; gap: 14px; }
.form-done:focus { outline: none; }
.form-done .kicker { margin-bottom: 0; }
.done-title { font-weight: 800; letter-spacing: -.03em; font-size: 2rem; line-height: 1; }
.form-done > p { color: var(--ink-2); }
#f-msg { font-family: var(--f-mono); font-size: .8125rem; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { font-size: .875rem; color: var(--roxo); min-height: 1.4em; font-weight: 600; }

/* Quem somos */
.about { padding-block: clamp(90px, 12vw, 150px); overflow: hidden; }
.about-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; } }
.about-photo { margin: 0; position: relative; isolation: isolate; }
.about-photo img { width: 100%; border-radius: 26px; aspect-ratio: 3 / 4; object-fit: cover; }
.about-photo::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, rgba(207, 57, 222, .35), transparent); filter: blur(20px); }
.about-photo figcaption { margin-top: 16px; color: var(--muted-2); }
.about-copy { display: grid; gap: 20px; }
.about-copy .kicker { margin-bottom: 0; }
.about-copy > p { color: var(--muted); max-width: 60ch; }
.about-copy .about-lede { color: var(--off); font-size: 1.1875rem; }
.about-points { display: grid; border-top: 1px solid var(--line); }
.about-points li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.about-points .label-mono { color: var(--accent-ink); padding-top: 4px; }
.about-points strong { color: var(--off); display: block; font-weight: 650; }

/* Contato */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding-block: 100px; text-align: center; }
.contact-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.contact-inner .kicker { margin-bottom: 0; }
.contact-title { font-size: clamp(2.75rem, 1.2rem + 6.6vw, 7.5rem); max-width: 12ch; }
.contact-title em { display: block; color: var(--magenta); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-block; background: var(--off); border-radius: 20px; padding: 10px 18px; }
.footer-logo img { height: 92px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted); max-width: 34ch; }
.site-footer h2 { color: var(--accent-ink); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--muted); }
.site-footer ul a:hover { color: var(--off); text-decoration: underline; text-underline-offset: 3px; }
.footer-svc li { color: var(--muted); }
.footer-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: var(--muted-2); }
.footer-base a { color: var(--muted); }

/* Lightbox */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(8, 5, 12, .97); color: var(--off); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 12px; position: relative; padding: calc(env(safe-area-inset-top, 0px) + 64px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 20px) max(16px, env(safe-area-inset-left, 0px)); }
.lb-media { min-height: 0; display: grid; place-items: center; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; animation: panelIn .45s var(--ease); }
.lb-info { text-align: center; display: grid; gap: 4px; justify-items: center; padding-inline: 56px; }
.lb-info .label-mono { color: var(--accent-ink); }
.lb-title { font-weight: 800; letter-spacing: -.03em; font-size: 1.5rem; line-height: 1.05; }
.lb-meta { color: var(--muted); font-size: .9375rem; }
.lb-pos { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .55); color: var(--off); font-size: 1.25rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--off); color: var(--preto); }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(12px, env(safe-area-inset-right, 0px)); font-size: 1.75rem; line-height: 1; }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
@media (min-width: 900px) { .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); } .lb-inner { padding-inline: 88px; } }

/* Títulos palavra por palavra */
.split .w { display: inline-block; }
.split .wi { display: inline-block; transform: translateY(.42em) rotate(3deg); transform-origin: left bottom; }
.split.words-in .wi { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 50ms); }

}

.gallery-more { display: flex; justify-content: center; margin-top: 28px; }
.gallery-more:has(> [hidden]) { display: none; }
