/*
  PORTFÓLIO V2
  Referências: Dennis Snellenberg (hero com foto, nome em faixa, CTA final escuro),
  Robin Noguier (cada projeto na cor dele), Wildy Riftian (grade aparente e rótulos mono),
  Gideon Low (cartão "ao vivo" e um toque pessoal), Rauno Freiberg (detalhe: cursor, progresso, micro-interação).
*/
:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --ink: #0e0e0e;
  --text-2: #4a4946;
  --text-3: #6f6c67;
  --muted: #85807a; /* 3.3:1 no fundo claro: o mínimo para texto grande */
  --line: rgba(14,14,14,.1);
  --line-2: rgba(14,14,14,.16);
  --accent: #1f5bff;
  --accent-soft: #7d9bff; /* o mesmo azul, mais claro, para fundo escuro */
  --dark: #0e0e0e;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.14);
  --ease: cubic-bezier(.22,1,.36,1);
  --font-display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: var(--font-text); /* rótulos pequenos usam a mesma Satoshi do texto */
  --nav-h: 76px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .stat strong, .case-next strong { font-family: var(--font-display); font-weight: 700; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 960px; }
.muted { color: var(--muted); }
/* destaque em serifa itálica: o "sotaque" editorial da V2 */
.accent { color: var(--accent); }
h1 .accent, h2 .accent, .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
}
.mono, .label {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
}
.label { color: var(--text-3); display: inline-flex; align-items: center; gap: 10px; }
.label b { color: var(--ink); font-weight: 500; }

.icon {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Barra de progresso da leitura (Rauno) */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-stuck {
  background: rgba(243,242,239,.78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 12px; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.04em; line-height: 1; margin-right: auto;
}
.logo span { color: var(--accent); display: inline-block; transition: transform .5s var(--ease); }
.logo:hover span { transform: translateY(-5px); }

.menu { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.menu a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500;
  transition: background .25s;
}
.menu a:hover { background: rgba(14,14,14,.06); }

.lang-btn {
  flex-shrink: 0; height: 40px; padding: 3px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
}
.lang-btn span { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; color: var(--text-3); transition: background .25s, color .25s; }
.lang-btn span.on { background: var(--ink); color: #fff; }
.lang-btn:hover span:not(.on) { color: var(--ink); }

.menu-btn {
  display: none; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink);
  place-content: center; justify-items: center; gap: 5px;
}
.menu-btn span { display: block; width: 16px; height: 1.8px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.4px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  flex-shrink: 0;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-size: 16.5px; font-weight: 600;
  isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), color .35s var(--ease), box-shadow .35s;
}
.btn .icon { font-size: 18px; transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
/* preenchimento que sobe por trás do texto no hover */
.btn::before {
  content: ""; position: absolute; left: 50%; top: 100%; z-index: -1;
  width: 140%; aspect-ratio: 1; border-radius: 50%;
  translate: -50% 0; transition: top .55s var(--ease);
  background: var(--fill, var(--accent));
}
.btn:hover::before { top: -20%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); --fill: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.24); --fill: #fff; }
.btn-ghost:hover { color: var(--ink); }
.btn-whats svg:not(.icon), .btn-linkedin svg { width: 20px; height: 20px; }
.btn-whats { --fill: #1a9e50; }
.btn-linkedin { --fill: #0a66c2; }
.wa-bubble { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.wa-phone { fill: currentColor; }
.btn-linkedin svg { fill: currentColor; }
.magnetic { will-change: transform; }

/* ---------- Cards e rótulos ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.chip {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  color: var(--ink);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  white-space: nowrap;
}
.chip-static {
  position: static; display: inline-flex; align-items: center; gap: 8px;
  padding: 0; background: none; color: var(--text-3);
}
.chip-static::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero: texto à esquerda, foto à direita, fatos numa linha só embaixo ---------- */
.hero { position: relative; padding-top: clamp(36px, 8vh, 96px); padding-bottom: clamp(28px, 5vh, 48px); }
.clock { font-variant-numeric: tabular-nums; }

.hero-main {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 23vw, 300px);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.hero-title {
  font-size: clamp(2.9rem, 6.1vw, 5.1rem); /* teto para "criando produtos digitais." caber numa linha */
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent { font-size: 1.08em; letter-spacing: -0.03em; }
.hero-lead {
  margin-top: clamp(22px, 3.5vh, 34px); max-width: 520px;
  font-size: clamp(18px, 1.5vw, 20px); font-weight: 500; line-height: 1.5; color: var(--text-2);
  text-wrap: pretty;
}

.me-card {
  position: relative; justify-self: end;
  width: 100%; margin: 0;
  rotate: 3deg;
  transition: rotate .6s var(--ease);
}
.me-card:hover { rotate: 0deg; }
.me-card .ph {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #111;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.5);
}
.me-card img { width: 100%; height: 100%; object-fit: cover; }
.loc-pill {
  position: absolute; left: -44px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13px; line-height: 1.25; font-weight: 500;
  rotate: -4deg;
  box-shadow: 0 16px 30px -16px rgba(0,0,0,.6);
}
.loc-pill i {
  width: 38px; height: 38px; border-radius: 50%; background: #2a2a2a;
  display: grid; place-items: center; font-style: normal;
}
.loc-pill svg { width: 20px; height: 20px; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(24px, 4vh, 36px); }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16.5px; font-weight: 600;
  padding-block: 6px; box-shadow: 0 1px 0 var(--line-2);
  transition: box-shadow .3s, color .3s;
}
.scroll-hint:hover { color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.scroll-hint .icon { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px clamp(28px, 5vw, 72px);
  margin: clamp(40px, 7vh, 80px) 0 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.hero-facts div { display: flex; gap: 10px; }
.hero-facts div:last-child { margin-left: auto; }
.hero-facts dt { color: var(--text-3); }
.hero-facts dd { margin: 0; font-weight: 500; }

/* Nome correndo em faixa (Dennis Snellenberg) */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding-block: clamp(8px, 2vw, 20px);
  border-block: 1px solid var(--line);
  user-select: none;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 13vw, 12rem); line-height: 1; letter-spacing: -0.05em;
  padding-right: .35em;
}
.marquee-track span em { font-family: var(--font-serif); font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }

/* ---------- Cabeçalho de seção ---------- */
.sec { padding-top: clamp(80px, 12vh, 140px); }
.section-head {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end;
  margin-bottom: 36px;
}
.section-head .label { grid-column: 1; align-self: start; padding-top: 12px; }
.section-head h2 {
  grid-column: 2 / span 3;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1; letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-head h2 .accent { font-size: 1.06em; }

/* ---------- Projetos (Robin Noguier: cada projeto na cor dele) ---------- */
.project-grid { display: grid; gap: 20px; }
.project {
  --c: var(--ink);
  position: sticky; top: calc(var(--nav-h) + 12px + var(--i, 0) * 12px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px;
  padding: 12px;
  background: var(--c); color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background .6s var(--ease);
  box-shadow: 0 -18px 40px -30px rgba(0,0,0,.45);
}
.project-text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 22px 16px 16px 20px; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.project-tag {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  font-family: var(--font-mono); font-size: 14px;
}
.project h3 {
  font-size: clamp(2.2rem, 3.9vw, 3.6rem); line-height: 1; letter-spacing: -0.045em;
  text-wrap: balance;
}
.project h3 .sub { display: block; margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: .56em; line-height: 1.1; letter-spacing: -0.01em; }
.project-bottom { display: flex; flex-direction: column; gap: 18px; }
.project-cat { font-size: 15.5px; }
.project-go {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  min-height: 48px; padding: 0 8px 0 20px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 600;
}
.project-go i { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; transition: transform .45s var(--ease); }
.project:hover .project-go i { transform: rotate(45deg); }
/* a capa tem fundo liso na cor do projeto: com "contain" ela se funde ao cartão, sem cortar nada */
.project .project-media { border-radius: calc(var(--radius-lg) - 10px); aspect-ratio: 16 / 9.4; background: transparent; }
.project .project-media > img { object-fit: contain; object-position: 50% 50%; }
.project-media:has(> img) .mock { display: none; }
.project:hover .project-media > img { transform: scale(1.035); }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tint);
  display: grid; place-items: center;
}
.project-media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.mock {
  position: relative; background: #fff;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.3);
  display: flex; flex-direction: column; gap: 8px; padding: 14px;
  transition: transform .8s var(--ease);
}
.mock-phone { width: 34%; aspect-ratio: 9 / 17; border-radius: 22px; margin-top: 18%; }
.mock-window { width: 70%; aspect-ratio: 16 / 10; border-radius: 14px; margin-top: 12%; }
.mock i { display: block; height: 8px; border-radius: 4px; background: #ececec; }
.mock i:nth-child(1) { width: 60%; background: var(--ink); opacity: .85; }
.mock i:nth-child(2) { width: 85%; }
.mock i:nth-child(3) { width: 45%; }
.mock b { flex: 1; border-radius: 10px; background: var(--ink); opacity: .9; }

/* Cursor "Ver case" (Dennis / Rauno) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.2;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(var(--s, 0));
  transition: transform .35s var(--ease);
}
.cursor.is-moving { transition: none; }

/* ---------- Ferramentas: a principal num cartão escuro grande, as outras duas ao lado ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; outline: none;
}

.tool:focus-visible { box-shadow: 0 0 0 2.5px var(--accent); }
.tool-main {
  grid-row: span 2; grid-template-columns: minmax(0, 1fr); align-content: space-between;
  min-height: 420px;
  background: var(--ink); color: #fff; border-color: transparent;
}
.tool-ic {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: #eceae6; color: #1d1d1f;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.tool-main .tool-ic { width: 84px; height: 84px; border-radius: 24px; background: #232323; }
.tool-ic svg { width: 28px; height: 28px; filter: grayscale(1) contrast(1.1); opacity: .85; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.tool-main .tool-ic svg { width: 38px; height: 38px; }
.tool:hover .tool-ic, .tool:focus-visible .tool-ic, .tool.is-on .tool-ic { background: var(--on-bg); transform: rotate(-6deg); }
.tool:hover .tool-ic svg, .tool:focus-visible .tool-ic svg, .tool.is-on .tool-ic svg { filter: none; opacity: 1; }
.tool h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.tool-main h3 { font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -0.045em; line-height: 1; }
.tool p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: 440px; }
.tool-main p { margin-top: 14px; font-size: 17.5px; color: #b6b2ac; }

/* Como trabalho: badges por etapa do processo */
.craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.craft-col { border-top: 1px solid var(--line-2); padding-top: 16px; }
.craft-k { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-3); }
.craft-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badges li {
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; line-height: 1.2;
  transition: border-color .3s, color .3s;
}

/* ---------- Contato (Dennis Snellenberg) ---------- */
.contact { margin-top: clamp(80px, 12vh, 140px); background: var(--dark); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.contact .container { padding-top: clamp(64px, 10vh, 120px); }
.contact-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.contact-head .label { color: #8b8781; align-self: start; padding-top: 10px; }
.contact-head .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.contact-head h2 {
  grid-column: 2 / span 3;
  font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -0.05em;
}
.contact-head h2 .muted { color: #6f6c67; }
.contact-head h2 .accent { color: var(--accent-soft); }
.contact-head h2 img {
  display: inline-block; width: .9em; height: .9em; border-radius: 50%; object-fit: cover;
  vertical-align: -0.1em; margin-right: .12em; background: #222;
}
.contact-line { position: relative; margin-top: clamp(48px, 8vh, 88px); height: 1px; background: rgba(255,255,255,.16); }
.big-cta {
  position: absolute; right: 8%; top: 50%; translate: 0 -50%;
  width: clamp(150px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; line-height: 1.25;
  isolation: isolate; overflow: hidden;
}
.big-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .55s var(--ease);
}
.big-cta:hover { color: var(--ink); }
.big-cta:hover::before { transform: scale(1); }
.big-cta svg { display: block; width: 26px; height: 26px; margin: 0 auto 8px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(40px, 7vh, 72px); }
.contact-actions .btn { min-height: 52px; font-size: 15.5px; }

.footer {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px;
  margin-top: clamp(64px, 10vh, 120px); padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 14.5px; color: #b6b2ac;
}
.footer .mono { display: block; color: #8b8781; margin-bottom: 6px; }
.footer a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Perguntas frequentes ---------- */
.faq-hero { padding-top: clamp(28px, 6vh, 64px); padding-bottom: 12px; }
.faq-hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 6.8vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.faq-hero p { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 620px; }
.faq-hero p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq-group { padding-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.faq-group h2 { grid-column: 1; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; padding-top: 18px; }
.faq-group .qa { grid-column: 2 / span 3; }
.faq-group h2 + .qa { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 2px; font-size: 19px; font-weight: 600; line-height: 1.35;
  transition: color .2s;
}
.qa summary:hover { color: var(--accent); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink);
  font-size: 22px; font-weight: 400; transition: transform .4s var(--ease), background .3s, color .3s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.qa .a { padding: 0 2px 26px; }
.qa .a p { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 680px; }
.qa .a b { color: var(--ink); font-weight: 600; }
.qa .a a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Página de projeto ---------- */
.case { --c: var(--ink); }
.case-hero { padding-top: clamp(20px, 4vh, 44px); padding-bottom: 36px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px 0 14px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 999px;
  transition: background .3s, color .3s;
}
.back .icon { font-size: 16px; transition: transform .35s var(--ease); }
.back:hover { background: var(--ink); color: #fff; }
.back:hover .icon { transform: translateX(-3px); }
.case-title {
  margin-top: 32px;
  font-size: clamp(2.8rem, 7.6vw, 7rem);
  line-height: .96; letter-spacing: -0.05em;
  text-wrap: balance; max-width: 1100px;
}
.case-title .sub { display: block; margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: .5em; line-height: 1.05; letter-spacing: -0.015em; color: var(--c); }
.case-sub { margin-top: 26px; font-size: clamp(18px, 2vw, 21px); font-weight: 500; color: var(--text-2); max-width: 680px; text-wrap: pretty; }

.case-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin: 0; padding: 18px 0 20px;
  background: none; border: 0; border-radius: 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.case-meta dt { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); }
.case-meta dd { margin: 4px 0 0; font-size: 17px; font-weight: 500; }

.case-cover { margin-top: 20px; padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--c); }
.case-cover .project-media { border-radius: 0; }
.case-cover .chip { display: none; }
.project-media.is-wide { aspect-ratio: 16 / 9; }
.is-wide .mock-phone { width: 20%; margin-top: 10%; }
.is-wide .mock-window { width: 55%; margin-top: 8%; }

.case-section {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; padding-top: clamp(72px, 10vh, 112px);
}
.case-label { padding-top: 10px; }
.case-body { grid-column: 2 / span 3; }
.case-body h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; }
.case-body > p { margin-top: 18px; font-size: 18.5px; color: var(--text-2); line-height: 1.7; max-width: 680px; text-wrap: pretty; }

.case-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); }
.case-steps li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.case-step-num { font-family: var(--font-mono); font-size: 14px; color: var(--c); font-weight: 500; }
.case-steps h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.025em; }
.case-steps p { font-size: 16.5px; color: var(--text-2); margin-top: 4px; line-height: 1.6; }

.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 40px; }
.case-shot {
  display: block; width: 100%; text-align: left; cursor: default;
  padding: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.case-shot .project-media { border-radius: 0; }
.case-shot .chip { display: none; }
.case-shot.is-full { grid-column: 1 / -1; }
.case-shot.has-img { cursor: zoom-in; }
.case-shot.has-img:hover .project-media > img { transform: scale(1.03); }

.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.stat { padding: 26px 22px 24px; background: var(--c); color: #fff; border: 0; }
.stat strong { display: block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 14px; font-size: 15.5px; }

.case-next-wrap { padding-top: clamp(80px, 12vh, 140px); }
.case-next {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch;
  padding: 12px; min-height: 340px;
  background: var(--n, var(--ink)); color: #fff; border: 0; border-radius: var(--radius-lg);
  transition: transform .5s var(--ease);
}
.case-next > div:first-child { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 14px 14px 20px; }
.case-next-label { font-family: var(--font-mono); font-size: 14px; }
.case-next strong { display: block; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.045em; margin-top: 18px; }
.case-next-cat { display: block; font-size: 16px; margin-top: 10px; }
.case-next .arrow {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 22px; margin-top: 24px;
  transition: transform .45s var(--ease);
}
.case-next:hover .arrow { transform: translateX(6px); }
.case-next .next-img { border-radius: calc(var(--radius-lg) - 10px); overflow: hidden; position: relative; min-height: 220px; }
.case-next .next-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.case-next:hover .next-img img { transform: scale(1.04); }

/* Blocos do estudo de caso */
.project-media.r-16x9 { aspect-ratio: 16 / 9; }
.project-media.r-4x3 { aspect-ratio: 4 / 3; }
.project-media.r-3x2 { aspect-ratio: 3 / 2; }
.project-media.r-4x5 { aspect-ratio: 4 / 5; }
.project-media.r-web { aspect-ratio: 1440 / 1024; }
.blk { padding-top: clamp(80px, 11vh, 120px); }
.blk-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.blk-head .case-body > p { margin-top: 18px; font-size: 18.5px; color: var(--text-2); line-height: 1.7; max-width: 680px; text-wrap: pretty; }
.blk-media { margin-top: 32px; }
.blk .case-shot.has-img:hover .project-media > img { transform: scale(1.02); }
.blk-n {
  flex-shrink: 0; min-width: 26px; padding-top: 2px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--c);
}
.blk-steps, .blk-anat { list-style: none; margin: 0; padding: 0; }
.blk-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.blk-steps li { border-top: 1px solid var(--line-2); padding-top: 16px; }
.blk-steps li, .blk-anat li, .blk-grid figcaption { display: flex; gap: 12px; align-items: flex-start; }
.blk-steps b, .blk-anat b, .blk-grid figcaption b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.blk-steps li > div span, .blk-anat li > div span, .blk-grid figcaption > div span { display: block; font-size: 15px; color: var(--text-2); line-height: 1.55; margin-top: 4px; }
.blk-anat-wrap.is-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.blk-anat-wrap.is-side .blk-anat { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line-2); }
.blk-anat-wrap.is-side .blk-anat li { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.blk-anat-wrap.is-below .blk-anat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin-top: 24px; }
.blk-anat-wrap.is-below .blk-anat li { border-top: 1px solid var(--line-2); padding-top: 16px; }
.blk-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.blk-cmp-item { margin: 0; }
.blk-tag { display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 14px; }
.blk-tag.antes { border: 1px solid var(--line-2); color: var(--text-2); }
.blk-tag.depois { background: var(--ink); color: #fff; }
.blk-cmp-item ul { margin-top: 16px; display: grid; gap: 10px; }
.blk-cmp-item li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.blk-cmp-item li i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: #f1d4d4; color: #b42318; }
.blk-cmp-item:last-child li i { background: #d9f3e2; color: #178a44; }
.blk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 32px; }
.blk-grid figure { margin: 0; }
.blk-grid figcaption { margin-top: 16px; padding: 0 4px; }
.blk-brand { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 32px; }
.brand-logo { border-radius: var(--radius); padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-lockup svg { width: 64px; height: 64px; }
.brand-lockup span { font-size: 60px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.brand-logo p { font-size: 15px; line-height: 1.5; max-width: 340px; }
.brand-type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.brand-k { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-3); }
.brand-aa { font-size: 96px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-top: 14px; }
.brand-type b { display: block; font-size: 19px; margin-top: 8px; }
.brand-w { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 15px; color: var(--text-2); }
.brand-colors { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.brand-colors li { height: 120px; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.brand-colors b { font-size: 15px; }
.brand-colors span { font-family: var(--font-mono); font-size: 14px; opacity: .8; }

.project-media.r-auto { aspect-ratio: auto; display: block; background: #e8ecf0; }
.project-media.r-auto > img { position: static; width: 100%; height: auto; }
.project-media.r-auto .mock { display: none; }
.blk-media.is-narrow { max-width: 560px; margin-inline: auto; }

.blk-table { margin-top: 32px; padding: 6px 24px; overflow-x: auto; }
.blk-table table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.blk-table th, .blk-table td { text-align: left; padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.blk-table tbody tr:last-child > * { border-bottom: 0; }
.blk-table thead th { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-3); padding-top: 18px; }
.blk-table tbody th { font-weight: 600; width: 24%; }
.blk-table .t-before { color: var(--text-3); width: 36%; }
.blk-table .t-after { color: var(--ink); font-weight: 500; }

.blk-tokens { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-top: 32px; }
.tk-colors, .tk-type { padding: 24px 26px; }
.tk-group { margin-top: 18px; }
.tk-group > b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.tk-group ul { display: grid; gap: 8px; }
.tk-group li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; font-size: 15px; }
.tk-sw { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tk-h { color: var(--text-3); font-family: var(--font-mono); font-size: 14px; }
.tk-type ul { margin-top: 12px; }
.tk-type li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tk-type li:last-child { border-bottom: 0; }
.tk-tn b { display: block; font-size: 14px; font-weight: 600; }
.tk-tn span { font-size: 13px; color: var(--text-3); }
.tk-ts { color: #333; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 72px 76px;
  background: rgba(12,12,12,.94);
  backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 16px; object-fit: contain; }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.85); font-family: var(--font-mono); font-size: 14px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Animações de entrada ---------- */
.js .hero .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .hero .reveal.is-in { opacity: 1; translate: none; }
/* título do hero sobe linha a linha, como uma máscara */
.js .hero-title .line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .hero-title .line > span { translate: 0 110%; transition: translate 1.1s var(--ease); }
.js .hero-title.is-in .line > span { translate: none; }
.js .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.js .hero-title .line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .menu-btn { display: grid; }
  .menu {
    position: absolute; right: var(--gutter); top: calc(var(--nav-h) - 4px);
    min-width: 220px; padding: 8px; margin: 0;
    background: var(--surface); border-radius: 20px; border: 1px solid var(--line);
    box-shadow: 0 24px 50px -18px rgba(0,0,0,.28);
    flex-direction: column; align-items: stretch;
    transform-origin: top right;
    opacity: 0; visibility: hidden; scale: .94; translate: 0 -6px;
    transition: opacity .25s, scale .3s var(--ease), translate .3s var(--ease), visibility .25s;
  }
  .menu.is-open { opacity: 1; visibility: visible; scale: 1; translate: none; }
  .menu a { padding: 13px 16px; font-size: 17px; border-radius: 12px; }
  .nav-in { position: relative; }

  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .me-card { order: -1; width: 150px; margin-right: 6px; }
  .me-card .ph { border-radius: 18px; }
  .loc-pill { left: -150px; bottom: 16px; font-size: 12px; padding: 6px 6px 6px 14px; }
  .loc-pill i { width: 32px; height: 32px; }
  .hero-facts div:last-child { margin-left: 0; }

  .section-head, .contact-head, .tool-grid, .case-section, .blk-head, .faq-group { grid-template-columns: minmax(0, 1fr); }
  .section-head h2, .contact-head h2, .case-body, .faq-group h2, .faq-group .qa { grid-column: auto; }
  .section-head .label, .contact-head .label { padding-top: 0; }
  .tool-main { grid-row: auto; min-height: 0; gap: 40px; }
  .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* no celular o cartão é mais alto que meia tela: empilhar esconderia o botão */
  .project { grid-template-columns: minmax(0, 1fr); position: relative; top: auto; }
  .project .project-media { order: -1; aspect-ratio: 16 / 9.4; }
  .project-text { padding: 12px 10px 10px; }

  .big-cta { right: 0; width: 140px; font-size: 14px; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .blk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blk-anat-wrap.is-side { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .blk-anat-wrap.is-below .blk-anat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-label { padding-top: 0; }
  .case-next { grid-template-columns: minmax(0, 1fr); }
  .case-next .next-img { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo { font-size: 22px; }
  .hero-title { font-size: clamp(2.5rem, 11.4vw, 3.4rem); line-height: 1; }
  .hero-lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { flex-direction: column; font-size: 14.5px; }
  .btn { min-height: 54px; }
  .marquee-track span { font-size: 5.2rem; }
  .project h3 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .tool { gap: 16px; }
  .tool-ic { width: 52px; height: 52px; border-radius: 15px; }
  .tool-main .tool-ic { width: 68px; height: 68px; border-radius: 20px; }
  .tool h3 { font-size: 24px; }
  .craft-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { border-radius: 24px 24px 0 0; }
  .contact-head h2 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .contact-line { margin-top: 110px; }
  .big-cta { width: 128px; padding: 14px; font-size: 13.5px; }
  .contact-actions { margin-top: 96px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .footer { grid-template-columns: minmax(0, 1fr); }

  .blk-steps, .blk-anat-wrap.is-below .blk-anat, .blk-cmp, .blk-grid, .blk-brand { grid-template-columns: minmax(0, 1fr); }
  .brand-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blk-tokens { grid-template-columns: minmax(0, 1fr); }
  .tk-type li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .blk-table { padding: 4px 18px; }
  .blk-table table { min-width: 0; }
  .blk-table thead { display: none; }
  .blk-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .blk-table tbody tr:last-child { border-bottom: 0; }
  .blk-table th, .blk-table td { border: 0; padding: 0; width: auto !important; font-size: 15px; }
  .blk-table tbody th { grid-column: 1 / -1; font-size: 16px; }
  .blk-table td::before { content: attr(data-l); display: block; font-family: var(--font-mono); font-size: 14px; color: var(--text-3); margin-bottom: 2px; }
  .brand-colors li { height: 96px; }
  .brand-lockup span { font-size: 46px; }
  .brand-lockup svg { width: 50px; height: 50px; }
  .brand-aa { font-size: 76px; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-gallery { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .case-shot.is-full { grid-column: auto; }
  .case-stats { grid-template-columns: minmax(0, 1fr); }
  .case-steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .case-body > p, .blk-head .case-body > p { font-size: 17px; }
  .qa summary { font-size: 17.5px; }

  .lightbox { padding: 72px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; }
  .lb-count { bottom: 28px; }
}

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; }
  .js .hero-title .line > span { translate: none; }
  .marquee-track { transform: none !important; }
}
