/* ============ Camadas globais ============ */
.smoke { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
.smoke.is-on { opacity: 1; }
main, .footer { position: relative; z-index: 1; }
main > section { position: relative; }
/* vinheta de legibilidade sobre a fumaça */
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)); }

/* ============ Navbar em pill (3.2) ============ */
.nav { position: fixed; z-index: 50; top: 16px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 2 * 16px); }
.nav__pill {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color var(--d-base) var(--ease-state), border-color var(--d-base) var(--ease-state);
}
.nav.is-solid .nav__pill {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 10px 30px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4); /* o único desfoque real da página */
}
/* sobre o campo branco do pacote */
.nav.is-light .nav__pill { background: rgba(5, 5, 5, .05); border-color: rgba(5, 5, 5, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px rgba(0, 0, 0, .08); }
.nav.is-light .nav__links a { color: #52525b; }
.nav.is-light .nav__links a:hover, .nav.is-light .nav__links a.is-active { color: #050505; }
.nav.is-light .nav__indicator { background: rgba(5, 5, 5, .08); }
.nav.is-light .nav__logo img { filter: invert(1); }
.nav.is-light .btn { background: #050505; color: var(--paper); }
.nav.is-light .nav__menu i { background: #050505; }
.nav__logo { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 6px; }
.nav__logo img { width: 22px; height: 22px; }
.nav__links { position: relative; display: flex; gap: 2px; overflow: hidden; max-width: 520px; transition: max-width var(--d-base) var(--ease-out), opacity var(--d-fast) var(--ease-state); }
.nav__links a { position: relative; z-index: 1; display: block; padding: 9px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink-2); transition: color var(--d-fast) var(--ease-state); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__indicator { position: absolute; z-index: 0; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); pointer-events: none; opacity: 0; }
.nav.is-compact .nav__links { max-width: 0; opacity: 0; }
.nav__cta-short { display: none; }
.nav__menu { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; }
.nav__menu i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: translate var(--d-fast) var(--ease-out), rotate var(--d-fast) var(--ease-out); }
.nav__menu i + i { margin-top: 5px; }
.nav__menu[aria-expanded="true"] i:first-of-type { translate: 0 3.25px; rotate: 45deg; }
.nav__menu[aria-expanded="true"] i:last-of-type { translate: 0 -3.25px; rotate: -45deg; margin-top: 0; }
.nav__sheet {
  margin-top: 8px; padding: 18px 22px; border-radius: 28px;
  display: grid; gap: 4px;
  background: rgba(14, 14, 16, .86); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  transform-origin: top center;
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a { padding: 8px 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
[data-motion="full"] .nav__sheet:not([hidden]) { animation: sheet var(--d-base) var(--ease-out); }
@keyframes sheet { from { opacity: 0; clip-path: inset(0 0 100% 0 round 28px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 28px); } }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__pill { gap: 10px; padding-left: 12px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .nav__menu { display: flex; }
}

/* ============ 1. Topo ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 96px var(--gutter) 56px;
  text-align: center;
}
/* letreiro e cubo nas posições do SVG do topo (img/Topo/HeaderHorizontal_animado.svg):
   o cubo passa 32% acima e 46% abaixo das letras, mais a folga do flutuar; o espaço em volta reserva isso */
/* a largura também respeita a altura da tela: o letreiro com o cubo ocupa ~0,51 da largura em altura,
   e o resto do topo (título, texto, botões, respiros) pede ~470px; assim tudo cabe numa tela de notebook */
.wm { --wm-w: max(340px, min(78vw, var(--wm-max, 1220px), calc((100svh - 450px) * 2.15))); position: relative; width: var(--wm-w); aspect-ratio: 874.7 / 238.22; margin-block: calc(var(--wm-w) * .2723 * .38) calc(var(--wm-w) * .2723 * .5); }
.wm__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wm__fill { fill: #fff; }
.wm__stroke { fill: none; stroke: #fff; stroke-width: 2.6px; vector-effect: non-scaling-stroke; }
.wm__stroke path { vector-effect: non-scaling-stroke; }
.wm--v { display: none; }
.wm__cube { position: absolute; left: 24.82%; top: -32.04%; width: 50.69%; aspect-ratio: 754 / 720; }
.wm__float, .wm__float > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wm__float > img { object-fit: contain; }
/* o scale do SVG parte da origem do grupo do letreiro, não do centro do cubo */
.wm__float { transform-origin: -52.37% -1.23%; }
@media (max-width: 760px) {
  /* versão empilhada: posições do img/Topo/HeaderVertical.svg */
  .wm { width: min(72vw, 400px, 44svh); aspect-ratio: 435.78 / 456.94; margin-block: 4svh 6svh; }
  .wm--h { display: none; }
  .wm--v { display: block; }
  .wm__cube { left: 11.34%; top: 16.13%; width: 77.96%; }
}
.hero__copy { position: relative; display: grid; justify-items: center; gap: 20px; }
.hero__title { font-size: calc(var(--fs-h1) * .82); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.hero__lede { font-size: var(--fs-lead); font-weight: 300; color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 8px; }
.note--tl, .note--br { position: absolute; }
/* ao lado da pill só quando há espaço: abaixo disso ela bateria na pill centralizada */
@media (max-width: 1359px) { .note--tl { display: none; } }
.note--tl { left: var(--gutter); top: 34px; } /* mesma altura da pill (centro a 43px) */
.note--br { right: var(--gutter); bottom: 32px; }
@media (max-width: 760px) {
  .note--tl, .note--br { display: none; }
  .hero__actions { flex-direction: column; gap: 18px; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
/* celular de tela baixa: o botão principal precisa aparecer sem rolar */
@media (max-width: 760px) and (max-height: 720px) {
  .hero { padding-block: 80px 24px; gap: 16px; }
  .wm { width: min(70vw, 390px, 32svh); margin-block: 2svh 3svh; }
  .hero__copy { gap: 14px; }
  .hero__actions { gap: 12px; margin-top: 0; }
}
/* entrada (~1 s; antes esperava 0,9 s para o título e 1,2 s para o texto, e no celular parecia lento) */
/* camadas próprias na placa de vídeo: o blur das palavras e o movimento ficam por conta dela */
[data-motion="full"] .hero .wm__layer, [data-motion="full"] .hero .wm__cube { will-change: transform, opacity; }
[data-motion="full"] .hero__title .w { will-change: transform, opacity, filter; }
[data-motion="full"] .hero .wm__fill, [data-motion="full"] .hero .wm__stroke { animation: wm-rise 1.3s var(--ease-hero) .05s both; }
[data-motion="full"] .hero .wm__cube { animation: cube-in 1.5s var(--ease-hero) .15s both; }
[data-motion="full"] .wm__float { animation: cube-float 4.5294s linear infinite; }
[data-motion="full"] .hero__title .w { display: inline-block; animation: word-in 1.1s var(--ease-hero) both; animation-delay: calc(.35s + var(--i) * 70ms); }
[data-motion="full"] .hero__lede { animation: fade-up 1s var(--ease-hero) .65s both; }
[data-motion="full"] .hero__actions, [data-motion="full"] .hero .note { animation: fade-up 1s var(--ease-hero) .75s both; }
/* backwards (não both): uma animação de opacidade que fica ativa vira "raiz de backdrop" e anula o vidro */
[data-motion="full"] .nav { animation: nav-in .8s var(--ease-out) .4s backwards; }
/* até a fonte e o título em palavras ficarem prontos (is-loading, no máx. 1,5 s): topo escondido e entrada parada no início */
.is-loading .hero, .is-loading .nav { opacity: 0; }
.is-loading .hero *, .is-loading .nav { animation-play-state: paused !important; }
@keyframes wm-rise { from { clip-path: inset(0 0 100% 0); translate: 0 18%; } to { clip-path: inset(-20% 0 -20% 0); translate: 0 0; } }
/* só escala, sem opacidade: o cubo é o maior elemento (LCP) e precisa contar desde o primeiro frame */
@keyframes cube-in { from { scale: .7; translate: 0 6%; } to { scale: 1; translate: 0 0; } }
/* flutuar do cubo: os 45 quadros do animateTransform do SVG, em % do próprio cubo */
@keyframes cube-float {
  0.00% { translate: 0.000% 0.000%; scale: 1.0000 1.0000; }
  2.27% { translate: -0.277% 0.286%; scale: 1.0002 1.0001; }
  4.55% { translate: -0.530% 0.553%; scale: 1.0001 1.0007; }
  6.82% { translate: -0.749% 0.803%; scale: 0.9997 1.0017; }
  9.09% { translate: -0.927% 1.032%; scale: 0.9989 1.0030; }
  11.36% { translate: -1.049% 1.240%; scale: 0.9973 1.0046; }
  13.64% { translate: -1.098% 1.419%; scale: 0.9952 1.0063; }
  15.91% { translate: -1.064% 1.561%; scale: 0.9923 1.0080; }
  18.18% { translate: -0.943% 1.660%; scale: 0.9890 1.0097; }
  20.45% { translate: -0.724% 1.712%; scale: 0.9853 1.0113; }
  22.73% { translate: -0.417% 1.710%; scale: 0.9814 1.0130; }
  25.00% { translate: -0.025% 1.653%; scale: 0.9774 1.0146; }
  27.27% { translate: 0.444% 1.542%; scale: 0.9734 1.0162; }
  29.55% { translate: 0.983% 1.379%; scale: 0.9692 1.0179; }
  31.82% { translate: 1.585% 1.169%; scale: 0.9650 1.0196; }
  34.09% { translate: 2.242% 0.919%; scale: 0.9606 1.0213; }
  36.36% { translate: 2.936% 0.635%; scale: 0.9561 1.0229; }
  38.64% { translate: 3.651% 0.321%; scale: 0.9515 1.0243; }
  40.91% { translate: 4.359% -0.009%; scale: 0.9472 1.0255; }
  43.18% { translate: 5.031% -0.354%; scale: 0.9433 1.0264; }
  45.45% { translate: 5.636% -0.704%; scale: 0.9403 1.0270; }
  47.73% { translate: 6.136% -1.051%; scale: 0.9384 1.0273; }
  50.00% { translate: 6.520% -1.391%; scale: 0.9378 1.0273; }
  52.27% { translate: 6.763% -1.715%; scale: 0.9386 1.0271; }
  54.55% { translate: 6.876% -2.019%; scale: 0.9406 1.0266; }
  56.82% { translate: 6.867% -2.300%; scale: 0.9436 1.0260; }
  59.09% { translate: 6.761% -2.555%; scale: 0.9473 1.0252; }
  61.36% { translate: 6.583% -2.782%; scale: 0.9515 1.0241; }
  63.64% { translate: 6.357% -2.973%; scale: 0.9558 1.0229; }
  65.91% { translate: 6.103% -3.127%; scale: 0.9602 1.0215; }
  68.18% { translate: 5.825% -3.238%; scale: 0.9645 1.0199; }
  70.45% { translate: 5.525% -3.295%; scale: 0.9687 1.0182; }
  72.73% { translate: 5.196% -3.295%; scale: 0.9729 1.0165; }
  75.00% { translate: 4.826% -3.231%; scale: 0.9771 1.0147; }
  77.27% { translate: 4.411% -3.103%; scale: 0.9812 1.0129; }
  79.55% { translate: 3.951% -2.912%; scale: 0.9851 1.0111; }
  81.82% { translate: 3.455% -2.662%; scale: 0.9887 1.0095; }
  84.09% { translate: 2.936% -2.364%; scale: 0.9919 1.0078; }
  86.36% { translate: 2.418% -2.034%; scale: 0.9944 1.0063; }
  88.64% { translate: 1.917% -1.682%; scale: 0.9964 1.0047; }
  90.91% { translate: 1.448% -1.323%; scale: 0.9978 1.0033; }
  93.18% { translate: 1.026% -0.968%; scale: 0.9987 1.0021; }
  95.45% { translate: 0.645% -0.628%; scale: 0.9993 1.0010; }
  97.73% { translate: 0.307% -0.305%; scale: 0.9997 1.0003; }
  100.00% { translate: 0.000% 0.000%; scale: 1.0000 1.0000; }
}
@keyframes word-in { from { opacity: 0; translate: 0 .5em; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes nav-in { from { opacity: 0; translate: -50% -24px; } to { opacity: 1; translate: -50% 0; } }

/* ============ 2. Portfólio ============ */
.work__stage { padding: var(--section) 0 calc(var(--section) * .6); }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-inline: var(--gutter); margin-bottom: clamp(32px, 4vw, 56px); }
.work__head .label { margin-bottom: 18px; }
.work__head .h2 { max-width: 15ch; }
.work__meter { min-width: 220px; }
.work__count { font-size: clamp(36px, 4.4vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.work__count [data-work-kind] { font-size: .32em; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; vertical-align: .9em; color: var(--ink-3); }
.work__of { color: var(--ink-3); }
.work__bar { height: 1px; margin-top: 14px; background: var(--line-2); }
.work__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.work__viewport::-webkit-scrollbar { display: none; }
.work__track { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 64px); padding-inline: var(--gutter); width: max-content; }

.project { flex: 0 0 min(84vw, 860px); scroll-snap-align: center; }
.project__open { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; text-align: left; cursor: none; }
.project__main { position: absolute; left: 0; top: 0; height: 100%; width: auto; aspect-ratio: 1; border-radius: var(--r-img); transition: scale var(--d-base) var(--ease-out), filter var(--d-slow) var(--ease-state); }
.project__float { position: absolute; width: auto; aspect-ratio: 1; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); transition: filter var(--d-slow) var(--ease-state); }
.project__float--a { right: 0; top: 4%; height: 46%; }
.project__float--b { right: 16%; bottom: 0; height: 36%; }
.project__open:hover .project__main { scale: 1.02; }
.project__meta { display: grid; gap: 10px; margin-top: 22px; max-width: 52ch; }
.project__meta p:last-child, .reel__meta p:last-child { color: var(--ink-2); font-size: var(--fs-small); }
@media (hover: none), (pointer: coarse) { .project__open { cursor: pointer; } }
[data-motion="full"] .work.is-pinned .project:not(.is-center) :is(.project__main, .project__float) { filter: saturate(.7) brightness(.85); }

.interlude { position: relative; flex: 0 0 min(42vw, 560px); align-self: stretch; display: grid; place-items: center; min-height: 360px; scroll-snap-align: center; }
.interlude__beam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(#ff6a00, #ffd400, #39e07a, #00c2ff, #a35cff); box-shadow: 0 0 24px rgba(0, 194, 255, .7), 0 0 80px rgba(163, 92, 255, .45); }
.interlude__text { position: relative; padding: 14px 22px; background: var(--bg); border-radius: 999px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; }

.reel { flex: 0 0 auto; scroll-snap-align: center; }
.reel__phone { position: relative; display: block; width: min(68vw, 300px); aspect-ratio: 9 / 16; border-radius: 34px; border: 7px solid #141416; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px rgba(0, 0, 0, .6); cursor: none; transition: translate var(--d-base) var(--ease-out); }
.reel__phone:hover { translate: 0 -6px; }
.reel__phone video { width: 100%; height: 100%; object-fit: cover; }
.reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity var(--d-fast) var(--ease-state); }
.reel__poster.is-off { opacity: 0; }
.reel__progress { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.reel__progress i { display: block; height: 100%; border-radius: inherit; background: #fff; transform-origin: left; transform: scaleX(var(--t, 0)); }
.reel__play { position: absolute; left: 50%; bottom: 30px; translate: -50% 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity var(--d-fast) var(--ease-state), translate var(--d-fast) var(--ease-out); }
.reel__phone:hover .reel__play, .reel__phone:focus-visible .reel__play { opacity: 1; translate: -50% 0; }
.reel__meta { display: grid; gap: 10px; margin-top: 22px; max-width: 300px; }
@media (hover: none), (pointer: coarse) { .reel__phone { cursor: pointer; } .reel__play { opacity: 1; translate: -50% 0; } }
/* celular: o trilho tem a altura do item mais alto; reels menores evitam um vão debaixo dos projetos */
@media (max-width: 760px) {
  .reel__phone { width: min(40vw, 180px); border-radius: 24px; border-width: 5px; }
  .reel__meta { width: min(62vw, 250px); max-width: none; }
  .interlude { min-height: 0; }
}

/* Desktop com animação: trilho preso na tela (main.js liga .is-pinned e define a altura) */
.work.is-pinned .work__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 88px 32px; overflow: hidden; }
.work.is-pinned .work__viewport { overflow: visible; scroll-snap-type: none; }
.work.is-pinned .project { flex-basis: auto; }
.work.is-pinned .work__head { margin-bottom: 3svh; }
.work.is-pinned .work__head .h2 { font-size: clamp(28px, min(3.4vw, 5.6svh), 52px); } /* encolhe em telas baixas de notebook */
.work.is-pinned .work__head .label { margin-bottom: 12px; }
.work.is-pinned .project__open { aspect-ratio: auto; height: min(44svh, 520px); width: min(70vw, calc(min(44svh, 520px) * 1.62)); }
.work.is-pinned .project__meta, .work.is-pinned .reel__meta { margin-top: 2.2svh; }
/* reels: legenda embaixo, mais larga que o celular para o nome caber numa linha e ela roubar pouca altura;
   o celular usa o que sobra depois do topo, do título do portfólio e da legenda (~370px) */
.work.is-pinned .reel__phone { width: auto; height: min(calc(100svh - 370px), 560px); }
.work.is-pinned .reel { display: grid; justify-items: center; } /* celular centralizado sobre a legenda */
.work.is-pinned .reel__meta { width: 260px; max-width: none; gap: 8px; justify-items: center; text-align: center; }
.work.is-pinned .reel__meta .tags { justify-content: center; }
.work.is-pinned .reel__meta .h4 { font-size: clamp(17px, 1.3vw, 20px); }
.work.is-pinned .interlude { min-height: 0; }

.cursor-pill { position: fixed; left: 0; top: 0; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #050505; font-size: 13px; font-weight: 500; pointer-events: none; opacity: 0; scale: .6; transition: opacity var(--d-fast) var(--ease-state), scale var(--d-fast) var(--ease-out); will-change: transform; }
.cursor-pill.is-on { opacity: 1; scale: 1; }

/* Visualizador e player */
.viewer, .player { padding: 0; border: 0; border-radius: var(--r-card); background: var(--surface); color: var(--ink); max-height: calc(100svh - 32px); }
.viewer { width: min(1200px, calc(100% - 2 * var(--gutter))); max-width: none; }
.viewer::backdrop, .player::backdrop { background: rgba(0, 0, 0, .8); }
.viewer__inner, .player__inner { padding: clamp(18px, 3vw, 36px); display: grid; gap: 18px; }
.viewer__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.viewer__head .tags { margin-bottom: 10px; }
.viewer__desc { color: var(--ink-2); }
.viewer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.viewer__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.viewer__grid img:first-child { grid-row: span 2; }
@media (max-width: 760px) { .viewer__grid { grid-template-columns: 1fr 1fr; } .viewer__grid img:first-child { grid-column: span 2; grid-row: auto; } }
::view-transition-group(project) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
.player { width: min(440px, calc(100% - 2 * 16px)); }
.player__frame { border-radius: 22px; overflow: hidden; background: #000; }
.player__frame video { width: 100%; max-height: calc(100svh - 220px); object-fit: contain; }
.player__controls { display: flex; align-items: center; gap: 12px; }
.player__seek { flex: 1; accent-color: #fff; }

/* ============ 3. Serviços (bento) ============ */
.services { padding: var(--section) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card--brand { grid-column: 1 / 8; grid-row: 1; }
.card--social { grid-column: 8 / 13; grid-row: 1 / span 2; }
.card--social .card__body { max-width: none; }
.card--motion { grid-column: 1 / 8; grid-row: 2; }
.card--web { grid-column: 1 / 13; grid-row: 3; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr; } .bento > .card { grid-column: auto; grid-row: auto; } }

.card {
  --mx: 50%; --my: 0%; --glow: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 26px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-card);
  background: rgba(14, 14, 16, .72); /* vidro falso: sem backdrop-filter */
}
.card::before { /* luz que segue o cursor */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(220, 220, 235, .1), transparent 70%);
  opacity: var(--glow); transition: opacity var(--d-base) var(--ease-out);
}
.card::after { /* borda base: gradiente sutil */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card__glow { /* borda iridescente perto do cursor */
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--iris);
  -webkit-mask: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: source-in, xor;
  mask: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%) intersect, linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--glow); transition: opacity var(--d-base) var(--ease-out);
}
/* número discreto, na linha do rótulo (o grande disputava atenção com os títulos) */
.card__n { position: absolute; right: clamp(24px, 3vw, 40px); top: clamp(24px, 3vw, 40px); font-size: clamp(28px, 2.8vw, 42px); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card .card__note { font-size: var(--fs-small); color: var(--ink-3); }
.card__body { display: grid; gap: 14px; max-width: 46ch; }
.card .link { justify-self: start; align-self: flex-start; }
.card p { color: var(--ink-2); }
/* hierarquia: o nome do serviço manda, a promessa vem logo abaixo, a descrição por último */
.card .card__title { font-size: clamp(26px, 2.3vw, 36px); letter-spacing: -.03em; }
.card .card__lead { margin-top: -6px; font-size: var(--fs-h4); font-weight: 400; line-height: 1.3; color: var(--ink); }
.price { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 8px; }
.price dt { font-size: var(--fs-small); color: var(--ink-3); }
.price dd { font-size: var(--fs-body); }
.price strong { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.03em; }
.price--rows { flex-direction: column; gap: 0; }
.price--rows > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
/* valor em cima, prazo pequeno embaixo, os dois alinhados à direita */
.price--rows dd { display: grid; justify-items: end; gap: 2px; text-align: right; }
.price--rows dd strong { line-height: 1; }
.price--rows dd span { font-size: var(--fs-small); color: var(--ink-3); }

/* texto à esquerda, a marca grande à direita ocupando a altura do card */
.card--brand { flex-direction: row; align-items: center; gap: clamp(24px, 3vw, 44px); }
.card--brand .card__body { flex: 1 1 0; max-width: 32ch; }
/* embaixo, à direita: o canto de cima fica livre para o número */
.card__art--mono { position: relative; flex: 0 0 min(42%, 300px); aspect-ratio: 1; align-self: flex-end; margin-top: 52px; }
.card__art--mono img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
/* troca sem flash: a próxima marca entra por cima e a anterior só some depois, escondida embaixo */
[data-motion="full"] .card__art--mono img:nth-child(2) { animation: mono-2 9s infinite; }
[data-motion="full"] .card__art--mono img:nth-child(3) { animation: mono-3 9s infinite; }
[data-motion="reduced"] .card__art--mono img:nth-child(n+2) { opacity: 0; }
@keyframes mono-2 { 0%, 33.3% { opacity: 0; } 40%, 73.3% { opacity: 1; } 73.4%, 100% { opacity: 0; } }
@keyframes mono-3 { 0%, 66.6% { opacity: 0; } 73.3%, 93.3% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 960px) {
  .card--brand { flex-direction: column; align-items: stretch; }
  .card--brand .card__body { max-width: none; }
  .card__art--mono { flex: none; width: min(100%, 340px); align-self: center; }
}

/* uma fileira só, mesma proporção: menos ruído que o mosaico de seis */
/* as três ocupam a altura que sobra no card (ele vale por duas linhas), como stories lado a lado */
.mosaic { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 220px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.card--motion { flex-direction: row; align-items: center; }
.card--motion .card__body { flex: 1; }
.card__art--logo { flex: 0 0 34%; display: grid; place-items: center; }
.card__art--logo svg { width: min(100%, 200px); overflow: visible; }
[data-motion="full"] .card__art--logo path { stroke-dasharray: 1; animation: draw-loop 4.5s var(--ease-reveal) infinite; }
[data-motion="full"] .card__art--logo path + path { animation-delay: .12s; }
@keyframes draw-loop { 0% { stroke-dashoffset: 1; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@media (max-width: 560px) { .card--motion { flex-direction: column; align-items: stretch; } .card__art--logo { padding-block: 12px; } }

.card--web { flex-direction: row; flex-wrap: wrap; align-items: center; }
.card--web .card__body { flex: 1 1 340px; }
.seal { margin-top: 6px; }
.concepts { flex: 1 1 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 52px; } /* folga para o número */
@media (max-width: 560px) { .concepts { grid-template-columns: 1fr; } }
/* Sites conceito: miniaturas de página real. Tudo em cqw para escalar junto com o card, como um print.
   Cada um tem estrutura e voz próprias: a padaria é escura, rústica e cheira a forno; o salão é claro, editorial e calmo. */
.concept { margin: 0; }
.concept--padaria { --c-bg: #f1e4cc; --c-ink: #24160c; --fv-serif: "Fraunces", Georgia, "Times New Roman", serif; }
.concept--salao { --c-bg: #f4f1eb; --c-ink: #1e2a22; --as-soft: #6d7a70; --as-line: rgba(30, 42, 34, .13); --as-sage: #2f4a3a; --as-serif: "Fraunces", Georgia, serif; }
.concept__bar, .concept__page { transition: translate var(--d-base) var(--ease-out); }
.concept:hover :is(.concept__bar, .concept__page) { translate: 0 -4px; }
.concept__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 14px 14px 0 0; background: #222127; }
.concept__bar > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #48444f; }
.concept__url { display: flex; align-items: center; gap: 5px; margin-inline: auto; padding: 3px 12px; border-radius: 6px; background: #2f2d35; color: #a9a5b2; font-size: 11px; line-height: 1.3; }
.concept__url svg { width: 8px; height: 10px; }
.concept__page { position: relative; container-type: inline-size; display: flex; flex-direction: column; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: 0 0 14px 14px; background: var(--c-bg); color: var(--c-ink); font-family: var(--font); }
.card .concept__page p { color: inherit; }
.concept__page :where(span, p, b, i) { display: block; }
.concept__page img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Forno da Vila: foto da fornada de ponta a ponta, título por cima ---- */
.fv-hero { position: relative; flex: none; height: 54cqw; color: #f6ead6; overflow: hidden; }
.fv-hero__img { position: absolute; inset: 0; }
.fv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 11, 5, .7) 0%, rgba(20, 11, 5, .05) 30%, rgba(20, 11, 5, .2) 52%, rgba(20, 11, 5, .88) 100%), linear-gradient(90deg, rgba(20, 11, 5, .55), transparent 62%); }
.fv-nav, .fv-copy, .fv-stamp { z-index: 1; }
.fv-nav { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2.6cqw 4cqw; }
.fv-links { display: flex; gap: 2.6cqw; font-size: 2cqw; letter-spacing: .02em; color: rgba(246, 234, 214, .82); }
.fv-logo { text-align: center; font: italic 600 4.1cqw/1 var(--fv-serif); letter-spacing: -.01em; }
.fv-logo small { display: block; margin-top: .7cqw; font: 500 1.35cqw/1 var(--font); font-style: normal; letter-spacing: .32em; text-transform: uppercase; color: rgba(246, 234, 214, .7); }
.fv-order { justify-self: end; padding: 1.2cqw 2.2cqw; border: 1px solid rgba(246, 234, 214, .55); border-radius: 99px; font-size: 1.9cqw; font-weight: 500; white-space: nowrap; }
.fv-copy { position: absolute; left: 4cqw; bottom: 4cqw; display: grid; gap: 1.8cqw; justify-items: start; max-width: 60cqw; }
.fv-live { display: flex; align-items: center; gap: 1.2cqw; font-size: 1.85cqw; font-weight: 500; letter-spacing: .04em; color: #ffd9a3; }
.fv-live i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #ff9a3c; box-shadow: 0 0 0 .6cqw rgba(255, 154, 60, .25), 0 0 2cqw rgba(255, 154, 60, .8); }
.fv-h { font: 600 5.8cqw/1 var(--fv-serif); letter-spacing: -.025em; text-wrap: balance; }
.fv-h em { display: block; font-weight: 400; font-style: italic; color: #f3c98d; }
.fv-actions { display: flex; align-items: center; gap: 2.6cqw; margin-top: .6cqw; }
.fv-btn { padding: 1.7cqw 3cqw; border-radius: 99px; background: #f6ead6; color: #24160c; font-size: 2.1cqw; font-weight: 600; }
.fv-ghost { font-size: 2.1cqw; font-weight: 500; text-decoration: underline; text-underline-offset: .6cqw; }
/* carimbo de papel kraft, meio torto, como etiqueta colada na vitrine */
.fv-stamp { position: absolute; right: 4.5cqw; bottom: 4.5cqw; display: grid; place-content: center; justify-items: center; gap: .5cqw; width: 17cqw; aspect-ratio: 1; padding: 2.4cqw; border-radius: 50%; background: #e9cf9f; color: #5a2e0e; text-align: center; font: italic 500 1.7cqw/1.1 var(--fv-serif); rotate: -12deg; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .35), inset 0 0 0 .6cqw #e9cf9f, inset 0 0 0 .8cqw #5a2e0e; }
.fv-stamp b { font: 700 1.9cqw/1 var(--fv-serif); font-style: normal; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
/* lousa com as fornadas do dia */
.fv-board { display: flex; align-items: center; gap: 2cqw; padding: 1.8cqw 4cqw; background: #2b2420; color: #efe6d6; font-size: 1.6cqw; white-space: nowrap; overflow: hidden; }
.fv-board b { font: italic 600 2cqw/1 var(--fv-serif); color: #f3c98d; }
.fv-board span::before { content: "·"; margin-right: 2cqw; color: rgba(239, 230, 214, .35); }
.fv-board time { font-weight: 600; margin-right: .8cqw; font-variant-numeric: tabular-nums; }
.fv-shelf { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding: 3cqw 4cqw 3.2cqw; background: #f1e4cc; min-height: 0; }
.fv-item { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1.4cqw; min-height: 0; }
.fv-item img { border-radius: 1.6cqw; }
.fv-item > span { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; font-size: 1.8cqw; line-height: 1.2; white-space: nowrap; }
.fv-item b { font: 600 2.3cqw/1 var(--fv-serif); color: #8a3f12; white-space: nowrap; }

/* ---- Ateliê Sereno: editorial, muito respiro, agenda de verdade ---- */
.as-nav { display: flex; align-items: center; gap: 3cqw; padding: 2.8cqw 4.5cqw; }
.as-logo { display: flex; align-items: center; gap: 1.2cqw; font-size: 2.5cqw; font-weight: 400; letter-spacing: -.01em; text-transform: lowercase; }
.as-logo i { width: 2.4cqw; aspect-ratio: 1; border-radius: 50% 50% 50% 0; background: var(--as-sage); rotate: -45deg; }
.as-links { display: flex; gap: 2.8cqw; margin-left: auto; font-size: 1.9cqw; color: var(--as-soft); }
.as-cta { padding: 1.1cqw 2.4cqw; border: 1px solid var(--c-ink); border-radius: 99px; font-size: 1.9cqw; font-weight: 500; }
.as-hero { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; padding: 1.5cqw 4.5cqw 0; min-height: 0; }
.as-copy { display: grid; align-content: start; gap: 2.2cqw; padding-top: 1.5cqw; }
.as-kicker { font-size: 1.6cqw; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--as-soft); }
.as-h { font-size: 6.4cqw; font-weight: 300; line-height: .98; letter-spacing: -.055em; }
.as-h em { font: italic 400 1.04em/1 var(--as-serif); letter-spacing: -.03em; color: var(--as-sage); }
/* widget de agendamento: dias, horários e o botão já com o horário escolhido */
.as-book { display: grid; gap: 1.5cqw; margin-top: .8cqw; padding: 2.2cqw; border-radius: 2cqw; background: #fff; box-shadow: 0 .4cqw 3cqw rgba(30, 42, 34, .08); }
.as-book__t { font-size: 1.6cqw; font-weight: 500; color: var(--as-soft); }
.as-days, .as-times { display: flex; gap: 1cqw; }
.as-days span { flex: 1; display: grid; justify-items: center; gap: .3cqw; padding: 1cqw 0; border: 1px solid var(--as-line); border-radius: 1.3cqw; font-size: 1.45cqw; color: var(--as-soft); }
.as-days b { font-size: 2.3cqw; font-weight: 500; color: var(--c-ink); }
.as-times span { flex: 1; padding: .9cqw 0; border-radius: 99px; background: #eef0ea; text-align: center; font-size: 1.7cqw; font-variant-numeric: tabular-nums; }
.as-book .is-on { border-color: var(--as-sage); background: var(--as-sage); color: #f4f1eb; }
.as-book .is-on b { color: #f4f1eb; }
.as-book__btn { display: flex; justify-content: space-between; padding: 1.4cqw 2cqw; border-radius: 99px; background: var(--c-ink); color: #f4f1eb; font-size: 1.85cqw; font-weight: 500; }
.as-photo { position: relative; min-height: 0; }
.as-photo img { border-radius: 22cqw 22cqw 0 0; object-position: 50% 30%; }
.as-review { position: absolute; left: -3cqw; bottom: 3.5cqw; display: grid; gap: .5cqw; max-width: 26cqw; padding: 1.6cqw 2cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, .94); font: italic 400 2cqw/1.2 var(--as-serif); box-shadow: 0 1cqw 3cqw rgba(30, 42, 34, .16); }
.as-review b { font: 600 1.5cqw/1 var(--font); letter-spacing: .14em; color: #c9962c; }
.as-review i { font: 400 1.45cqw/1.2 var(--font); font-style: normal; color: var(--as-soft); }
.as-menu { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--as-line); background: #ebe7df; }
.as-row { display: grid; grid-template-columns: 6.4cqw 1fr; grid-template-rows: auto auto; column-gap: 1.6cqw; align-items: center; padding: 2.2cqw 2.4cqw 2.2cqw 4.5cqw; font-size: 1.85cqw; line-height: 1.2; }
.as-row + .as-row { border-left: 1px solid var(--as-line); padding-left: 2.4cqw; }
.as-row img { grid-row: span 2; width: 6.4cqw; height: 6.4cqw; border-radius: 50%; }
.as-row b { font-size: 1.7cqw; font-weight: 500; color: var(--as-soft); }
.concept figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); }

/* ============ 4. Depoimentos ============ */
.quotes { padding: var(--section) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
/* serviços e depoimentos são duas seções escuras seguidas: respiro de uma só, não de duas */
.services { padding-bottom: calc(var(--section) * .4); }
.quotes { padding-top: calc(var(--section) * .4); }
.quote { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: clamp(28px, 5vw, 80px); min-height: 80svh; padding-block: 6svh; }
.section-head + .quote { min-height: 0; padding-top: 0; } /* o primeiro depoimento cola no título */
.quote__art { display: block; border-radius: var(--r-img); overflow: hidden; max-width: 360px; }
.quote__art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale var(--d-base) var(--ease-out); }
.quote__art img[width="720"][height="720"] { aspect-ratio: 1; }
.quote__art:hover img { scale: 1.03; }
.quote__text { display: grid; gap: 28px; }
.quote__big { font-size: clamp(30px, 4vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; view-timeline-name: --quote; }
.quote__body { max-width: 60ch; margin-top: 24px; color: var(--ink-2); }
/* quem falou: o nome em destaque, o trabalho feito embaixo, com um traço iridescente puxando o olho */
.quote__who { display: grid; gap: 6px; padding-left: 18px; border-left: 2px solid transparent; border-image: linear-gradient(#ff6a00, #ffd400, #39e07a, #00c2ff, #a35cff) 1; }
.quote__who b { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.quote__who span { font-size: var(--fs-small); color: var(--ink-3); }
@media (max-width: 760px) {
  /* celular: uma coluna centralizada, foto em cima, nome embaixo */
  .quote { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding-block: 8svh; }
  .quote__art { max-width: 180px; }
  .quote__text { justify-items: center; }
  .quote__text blockquote { text-align: justify; }
  .quote__big { text-align: left; text-wrap: balance; } /* justificada, a frase curta abria buracos entre as palavras */
  .quote__body { text-wrap: pretty; } /* justificado sem hífen: o navegador distribui melhor as palavras entre as linhas */
  .quote__who { text-align: center; }
  .quote__who { justify-items: center; padding: 14px 0 0; border-left: 0; border-top: 2px solid transparent; border-image: var(--iris) 1; }
}
[data-motion="full"] .quote__big .w { opacity: clamp(.4, calc(.4 + (var(--qp, 0) - var(--k) * .5 - .2) * 8), 1); }
@supports (animation-timeline: view()) {
  [data-motion="full"] .quote__big .w { opacity: .4; animation: lit linear both; animation-timeline: --quote; animation-range: cover calc(22% + var(--k) * 30%) cover calc(30% + var(--k) * 30%); }
}
@keyframes lit { to { opacity: 1; } }

/* ============ 5. Pacote (campo branco) ============ */
.plan { position: relative; background: var(--paper); color: var(--paper-ink); padding: var(--section) var(--gutter); }
.plan::before { /* faixa de luz na entrada do campo branco */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--iris);
  box-shadow: 0 0 30px rgba(0, 194, 255, .7), 0 0 90px rgba(255, 106, 0, .45);
}
.plan .label { color: #55555c; }
.plan__grid { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .plan__grid { grid-template-columns: 1fr; } }
.plan__main { display: grid; gap: 24px; justify-items: start; }
.plan__main .display { max-width: 12ch; }
.plan__price { display: inline-block; padding: 0 .14em .04em; border: 3px solid transparent; border-radius: .12em; background: linear-gradient(#050505, #050505) padding-box, var(--iris-conic) border-box; color: var(--paper); }
[data-motion="full"] .plan__price { animation: spin-hue 6s linear infinite; }
@keyframes spin-hue { to { filter: hue-rotate(360deg); } }
.plan__sub { font-size: var(--fs-lead); font-weight: 300; color: #3f3f46; margin-top: -8px; }
.plan__math { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.02em; }
.plan__math strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__math > span:last-child { display: block; font-size: var(--fs-small); letter-spacing: 0; color: #55555c; }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #050505; color: var(--paper); font-size: 12px; }
/* regras do pacote como etiquetas, em texto normal (o rótulo em maiúsculas pesava demais) */
.plan__rules { display: flex; flex-wrap: wrap; gap: 8px; }
.plan__rules span { padding: 9px 16px; border-radius: 999px; background: #e7e7eb; color: #3f3f46; font-size: var(--fs-small); font-weight: 500; }
.plan__side { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: #050505; color: var(--ink); }
.plan__side .label { color: var(--ink-3); }
.menu > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.menu dt { font-weight: 500; }
.menu dd { font-size: var(--fs-small); color: var(--ink-2); }
.link--light { color: var(--ink); justify-self: start; }

/* ============ 6. Como funciona ============ */
.steps { padding: var(--section) var(--gutter); }
.steps__stage { max-width: var(--maxw); margin-inline: auto; }
.steps__head { display: grid; gap: 18px; margin-bottom: 48px; }
.steps__list { display: grid; gap: 56px; padding-left: 28px; border-left: 1px solid var(--line-2); }
.step { display: grid; gap: 14px; }
.step__n { font-size: clamp(56px, 8vw, 88px); font-weight: 300; line-height: .85; letter-spacing: -.05em; color: var(--ink-3); }
.step__text p { color: var(--ink-2); max-width: 40ch; margin-top: 8px; }
.step__text strong { color: var(--ink); font-weight: 500; }
.step__visual { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bubble { padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: var(--surface-2); font-size: var(--fs-small); }
.bubble--me { border-radius: 18px 18px 4px 18px; background: var(--ink); color: #050505; }
/* folha de contrato: cinza mais claro que o fundo, borda, sombra e canto dobrado */
.doc { position: relative; display: grid; gap: 7px; width: 200px; padding: 14px 16px 16px; border-radius: 10px; background: linear-gradient(160deg, #34343b, #26262c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .08); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.doc::before { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(225deg, transparent 50%, #4c4c55 50%); border-bottom-left-radius: 4px; }
/* a sombra vai no pai: o clip-path do canto dobrado cortaria um box-shadow */
.step__visual:has(.doc) { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.doc__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 14px 8px 0; margin-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 10px; color: var(--ink-3); }
.doc__head b { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.doc i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .24); }
.doc i:nth-of-type(2) { width: 86%; }
.doc i:nth-of-type(3) { width: 93%; }
.doc i:nth-of-type(4) { width: 58%; }
.doc__sign { display: grid; margin-top: 6px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.doc__sign svg { width: 100%; height: 28px; margin-bottom: 3px; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .3); box-sizing: content-box; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.deadlines { display: flex; gap: 10px; }
.deadlines > div { padding: 12px 16px; border-radius: 14px; background: var(--surface-2); }
.deadlines dt { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.deadlines dd { font-weight: 500; }
.pill-check { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-small); font-weight: 500; }
.pill-check--done { border: 1px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--iris) border-box; }
.timeline { display: none; }

/* Desktop com animação: uma etapa por tela */
.steps.is-pinned { height: 600svh; padding-block: 0; }
.steps.is-pinned .steps__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.steps.is-pinned .steps__head { margin-bottom: 4svh; }
.steps.is-pinned .steps__list { display: grid; padding: 0; border: 0; gap: 0; }
.steps.is-pinned .step {
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; column-gap: 48px; align-items: center;
  pointer-events: none;
}
.steps.is-pinned .step__n { grid-row: span 2; font-size: var(--fs-num); color: var(--ink); clip-path: inset(0 0 0 0); }
.steps.is-pinned .step:not(.is-active) .step__n { clip-path: inset(0 0 100% 0); translate: 0 -12%; }
.steps.is-pinned .step__n { transition: clip-path var(--d-slow) var(--ease-reveal), translate var(--d-slow) var(--ease-reveal); }
.steps.is-pinned :is(.step__text, .step__visual) { opacity: 0; translate: 0 24px; transition: opacity var(--d-base) var(--ease-out), translate var(--d-base) var(--ease-out); }
.steps.is-pinned .step.is-active :is(.step__text, .step__visual) { opacity: 1; translate: 0 0; }
.steps.is-pinned .step.is-active .step__visual { transition-delay: 120ms; }
.steps.is-pinned .step.is-active { pointer-events: auto; }
.steps.is-pinned .timeline { position: relative; display: flex; justify-content: space-between; height: 9px; margin-top: 6svh; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-2); }
.timeline__fill { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.timeline b { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); background: var(--bg); }
.timeline b.is-done { background: var(--ink); }
.steps.is-pinned .doc svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-reveal) .3s; }
.steps.is-pinned .step.is-active .doc svg path { stroke-dashoffset: 0; }
.steps.is-pinned .pill-check { opacity: .35; transition: opacity var(--d-base) var(--ease-state); }
.steps.is-pinned .step.is-active .pill-check { opacity: 1; }
.steps.is-pinned .step.is-active .pill-check:nth-child(2) { transition-delay: .35s; }
.steps.is-pinned .step.is-active .pill-check:nth-child(3) { transition-delay: .7s; }

/* ============ 7. Sobre ============ */
.about { padding: var(--section) var(--gutter); }
.about__stage { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 760px) { .about__stage { grid-template-columns: 1fr; } .about__art { width: 92%; margin-inline: auto; } }
.logo-draw { width: 100%; overflow: visible; }
.logo-draw__sub { font: 300 30px var(--font); letter-spacing: .4em; fill: var(--ink-2); }
.logo-draw__labels text { font: 500 14px var(--font); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink-2); }
.about__text { display: grid; gap: 22px; }
/* justificado sem hífen: a coluna mais larga dá mais palavras por linha e o espaço que sobra se divide entre elas */
.about__text .lede { max-width: 56ch; text-align: justify; text-align-last: left; hyphens: manual; text-wrap: pretty; }
/* o degradê só pinta dentro da caixa: folga no topo (pingo do i) e à direita (ponta do itálico), sem mexer no layout */
.about__text em[data-about-word] { padding: .18em .14em .06em 0; margin-right: -.14em; transition: color var(--d-slow) var(--ease-state); }
.about__text em[data-about-word].is-lit { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__sign { font-size: var(--fs-lead); }
.stats { display: flex; gap: 40px; margin-top: 8px; }
.stats dt { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); order: 2; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { font-size: clamp(32px, 3.4vw, 48px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.about.is-pinned { height: 340svh; padding-block: 0; }
.about.is-pinned .about__stage { position: sticky; top: 0; height: 100svh; padding-top: 64px; }

/* ============ 8. Dúvidas ============ */
.faq { padding: var(--section) var(--gutter); max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }
.faq__aside { display: grid; gap: 18px; align-content: start; justify-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color var(--d-fast) var(--ease-state); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 300; line-height: 1; color: var(--ink-3); transition: rotate var(--d-base) var(--ease-pop); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 24px; max-width: 60ch; color: var(--ink-2); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size var(--d-base) var(--ease-out), content-visibility var(--d-base) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ============ 9. Chamada final ============ */
.final { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: var(--section) var(--gutter); text-align: center; overflow: hidden; }
.final__cube { position: absolute; left: 50%; top: 44%; width: min(64vmin, 620px); aspect-ratio: 754 / 720; translate: -50% -50%; opacity: .34; }
.final .lede { color: var(--ink); text-shadow: 0 1px 18px rgba(0, 0, 0, .9); }
.final__cube .wm__float { transform-origin: 50% 50%; }
/* o flutuar herdado do topo anda em média 2,7% para a direita e o cubo fica 2,3% à direita na imagem: compensa para o centro */
.final__cube .wm__float > img { translate: -5% 2%; }
.final > :not(.final__cube) { position: relative; }
.final .display { max-width: 13ch; }
.final .lede { text-align: center; }

/* ============ 10. Rodapé ============ */
.footer { padding: 48px var(--gutter) calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 28px; border-top: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.footer__wm { position: relative; aspect-ratio: 874.7 / 238.22; }
.footer__wm svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__wm-stroke { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1px; }
.footer__wm-stroke path { vector-effect: non-scaling-stroke; }
.footer__wm-fill { fill: #fff; clip-path: inset(calc((1 - var(--f, 1)) * 100%) 0 0 0); }
[data-motion="full"] .footer__wm-fill { --f: 0; }
@supports (animation-timeline: view()) {
  [data-motion="full"] .footer__wm-fill { animation: fill-up linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
}
@keyframes fill-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; color: var(--ink-2); font-size: var(--fs-small); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { text-decoration: none; color: var(--ink-2); transition: color var(--d-fast) var(--ease-state); }
.footer__links a:hover { color: var(--ink); }

/* ============ Monitor grande ============ */
/* os tokens de tokens.css já crescem; aqui o que usa medida fixa */
@media (min-width: 1800px) {
  .nav { top: 20px; }
  .nav__pill { gap: 8px; padding: 7px 7px 7px 18px; }
  .nav__logo { width: 40px; height: 40px; }
  .nav__logo img { width: 26px; height: 26px; }
  .nav__links { max-width: 640px; }
  .nav__links a { padding: 11px 18px; font-size: 16px; }
  .note--tl { top: 41px; } /* continua no meio da pill, que ficou mais alta */
  .btn { padding: 20px 34px; font-size: 18px; }
  .btn--small { padding: 13px 22px; font-size: 16px; } /* depois de .btn, senão perde para ele */
  .card__n { font-size: clamp(42px, 2vw, 52px); }
}
