/* ==========================================================================
   Portfólio Felipe Fex — design system aplicado
   Fonte única: Nunito Sans · grade de 8 px · cards 16 · controles 12 · destaque 24
   ========================================================================== */

:root {
  color-scheme: light;

  /* Cores de interface */
  --ink: #17212B;          /* Carvão · texto */
  --blue: #315F8C;         /* Azul · ação */
  --blue-deep: #234766;    /* Azul profundo · hover */
  --mist: #E8F0F6;         /* Azul névoa · destaque */
  --paper: #F7F6F2;        /* Marfim · fundo */
  --white: #FFFFFF;
  --sage: #6F8F86;         /* Sálvia · apoio */
  --sand: #C5A878;         /* Areia · detalhe */

  /* Escala neutra */
  --neutral-50: #F7F6F2;
  --neutral-100: #EFEEE9;
  --neutral-200: #E4E6E5;
  --neutral-300: #CFD3D3;
  --neutral-400: #A8B0B3;
  --neutral-500: #818B91;
  --neutral-600: #65717C;
  --neutral-700: #48545F;
  --neutral-800: #303B45;
  --neutral-900: #17212B;

  /* Texto */
  --text: var(--ink);
  --text-muted: var(--neutral-700);
  --text-subtle: var(--neutral-600);

  /* Tintas derivadas da paleta (sobre o marfim) */
  --tint-blue: rgb(49 95 140 / 12%);
  --tint-sand: rgb(197 168 120 / 18%);
  --tint-sage: rgb(111 143 134 / 16%);
  --line: rgb(35 71 102 / 16%);

  /* Espaçamento · múltiplos de 8 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Raios */
  --radius-tag: 8px;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-feature: 24px;
  --radius-round: 999px;

  /* Sombras */
  --shadow-flat: 0 1px 2px rgb(23 33 43 / 5%);
  --shadow-soft: 0 6px 18px rgb(23 33 43 / 7%);
  --shadow-raised: 0 12px 32px rgb(23 33 43 / 10%);
  --shadow-float: 0 20px 48px rgb(23 33 43 / 14%);
  --shadow-action: 0 6px 18px rgb(49 95 140 / 22%);

  /* Tipografia · tamanho / altura de linha */
  --fs-hero: 48px;    --lh-hero: 56px;
  --fs-section: 32px; --lh-section: 40px;
  --fs-card: 24px;    --lh-card: 32px;
  --fs-lead: 18px;    --lh-lead: 28px;
  --fs-body: 16px;    --lh-body: 24px;
  --fs-small: 14px;   --lh-small: 20px;
  --fs-meta: 12px;    --lh-meta: 16px;
  --tracking-title: -0.02em;
  --tracking-eyebrow: 0.12em;

  --header-h: 80px;

  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 680px) {
  :root {
    --fs-hero: 40px; --lh-hero: 48px;
    --fs-section: 32px; --lh-section: 40px;
    --header-h: 72px;
  }
}

@media (max-width: 400px) {
  :root {
    --fs-hero: 32px; --lh-hero: 40px;
    --fs-section: 24px; --lh-section: 32px;
  }
}

/* Base ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-2)); }
body { margin: 0; background: var(--paper); color: var(--text); font-size: var(--fs-body); line-height: var(--lh-body); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: var(--tracking-title); }

.section-wrap { width: min(1280px, calc(100% - var(--space-8))); margin-inline: auto; }
.section-space { padding-block: clamp(var(--space-10), 9vw, var(--space-16)); }

.skip-link { position: fixed; z-index: 30; top: var(--space-2); left: var(--space-2); padding: var(--space-2) var(--space-3); transform: translateY(-200%); border-radius: var(--radius-control); background: var(--ink); color: var(--white); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eyebrow { margin: 0 0 var(--space-2); color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-small); text-transform: uppercase; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid transparent; background: rgb(247 246 242 / 94%); backdrop-filter: blur(16px); transition: border-bottom-color 320ms ease-in-out; }
.site-header.is-scrolled { border-bottom-color: var(--neutral-200); }
.header-inner { width: min(1360px, calc(100% - var(--space-8))); min-height: var(--header-h); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { width: 64px; height: 48px; display: flex; align-items: center; }
.brand img { display: block; width: 64px; height: 48px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(var(--space-3), 3vw, var(--space-5)); }
.site-nav > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-muted); font-size: var(--fs-body); font-weight: 600; transition: color .18s ease; }
.site-nav > a:hover, .site-nav > a[aria-current=location] { color: var(--blue); }
.language-switch { color: var(--ink); font-size: var(--fs-meta); font-weight: 700; letter-spacing: var(--tracking-eyebrow); }
.language-switch i { padding-inline: var(--space-1); color: var(--neutral-400); font-style: normal; }
.menu-toggle { display: none; }

/* Botão primário (padrão do design system) */
.site-nav .nav-contact,
.case-button,
.contact-action {
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-control);
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-action);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-body);
  transition: background-color .18s ease, transform .18s ease;
}
.site-nav .nav-contact:is(:hover, :focus-visible),
.case-button:is(:hover, :focus-visible),
.contact-action:is(:hover, :focus-visible) { background: var(--blue-deep); color: var(--white); }

/* Seletor de contato */
.contact-picker { position: relative; }
.contact-picker summary { justify-content: center; cursor: pointer; list-style: none; }
.contact-picker summary::-webkit-details-marker { display: none; }
.channel-panel { position: absolute; right: 0; top: calc(100% + var(--space-2)); width: 320px; max-width: calc(100vw - var(--space-5)); padding: var(--space-3); border: 1px solid var(--neutral-100); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-raised); }
.channel-panel .eyebrow { margin-bottom: var(--space-1); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.channel-panel a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--space-2); padding-block: var(--space-1); border-radius: var(--radius-control); font-weight: 600; }
.channel-panel a::after { content: "↗"; color: var(--blue); }
.channel-panel a:is(:hover, :focus-visible) { color: var(--blue); }
.channel-panel b { display: grid; place-items: center; height: 40px; border-radius: var(--radius-control); background: var(--mist); color: var(--blue); }
.channel-panel small { display: block; color: var(--text-subtle); font-size: var(--fs-small); font-weight: 400; line-height: var(--lh-small); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: min(800px, calc(100svh - var(--header-h))); padding-block: clamp(var(--space-8), 7vw, var(--space-12)) clamp(var(--space-10), 10vw, var(--space-16)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-5); isolation: isolate; }
.hero::before { position: absolute; inset: 0 -8vw; z-index: -2; background: radial-gradient(ellipse at 75% 52%, var(--tint-sand), transparent 34%), radial-gradient(ellipse at 76% 64%, var(--tint-blue), transparent 38%); content: ""; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: var(--space-3); }
.hero-eyebrow span { letter-spacing: 0; }
.hero h1 { max-width: 640px; margin: 0 0 var(--space-4); font-size: var(--fs-hero); line-height: var(--lh-hero); font-weight: 700; }
.hero h1 span { color: var(--blue); }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.hero-tags span { padding: var(--space-1) var(--space-2); border-radius: var(--radius-tag); background: var(--mist); color: var(--blue); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-meta); }
.hero-tags span:nth-child(even) { background: var(--neutral-100); color: var(--neutral-800); }

.hero-portrait { position: relative; width: min(100%, 576px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.portrait-glow { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, rgb(197 168 120 / 22%), var(--tint-blue) 56%, transparent 74%); filter: blur(16px); }
.portrait-orbit { position: absolute; border: 1px dashed rgb(49 95 140 / 32%); border-radius: 50%; animation: orbit-spin 42s linear infinite; }
.orbit-one { inset: 8%; }
.orbit-two { inset: 16%; border-style: solid; border-color: var(--tint-blue); animation-direction: reverse; animation-duration: 57s; }
.portrait-placeholder { position: relative; z-index: 2; width: 62%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 8px solid rgb(255 255 255 / 88%); border-radius: 50%; background: linear-gradient(145deg, var(--mist), var(--paper) 65%, var(--mist)); box-shadow: var(--shadow-float); color: var(--blue-deep); text-align: center; }
.portrait-placeholder > span { font-size: var(--fs-section); font-weight: 700; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-section); }
.portrait-placeholder small { margin-top: var(--space-2); color: var(--text-subtle); font-size: var(--fs-meta); font-weight: 500; letter-spacing: var(--tracking-eyebrow); }
.portrait-satellites, .portrait-specks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.orbit-badge { position: absolute; z-index: 3; width: clamp(48px, 5vw, 64px); aspect-ratio: 1; display: grid; place-items: center; translate: -50% -50%; border: 1px solid var(--neutral-100); border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: var(--shadow-soft); font-size: var(--fs-body); font-weight: 700; }
.orbit-dot { position: absolute; z-index: 4; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.dot-a { top: 35%; left: 22%; }
.dot-b { right: 21%; bottom: 33%; background: var(--sand); }
.dot-c { bottom: 21%; left: 37%; background: var(--blue); }
.hero-decoration { position: absolute; z-index: -1; pointer-events: none; }
.deco-ring { top: 5%; left: 25%; width: 112px; aspect-ratio: 1; border: 1px solid rgb(49 95 140 / 24%); border-radius: 50%; }
.deco-ring::after { position: absolute; right: -4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); content: ""; }
.deco-spark { top: 9%; right: 0; color: var(--sand); font-size: var(--fs-card); }
.deco-dot { top: 18%; left: -8%; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Títulos de seção ------------------------------------------------------- */
.section-heading { margin-bottom: var(--space-5); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); }
.section-heading h2,
.about-details h2,
.process-heading h2,
.collaboration-invite h2 { margin: 0; font-size: var(--fs-section); line-height: var(--lh-section); }
.section-summary { max-width: 416px; margin: 0; color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }

/* Projetos --------------------------------------------------------------- */
.projects { padding-top: 0; }
.project-list { display: grid; padding-top: var(--space-4); isolation: isolate; }
.project-card { position: sticky; top: var(--case-top, 96px); align-self: start; min-height: 496px; margin-bottom: var(--space-4); padding: clamp(var(--space-4), 4.5vw, var(--space-8)); display: grid; grid-template-columns: .78fr 1.22fr; align-items: stretch; gap: clamp(var(--space-4), 5vw, var(--space-8)); overflow: hidden; border: 1px solid var(--neutral-100); border-radius: var(--radius-feature); box-shadow: var(--shadow-raised); transform-origin: center top; transition: box-shadow .3s ease; }
.project-card:nth-child(1) { z-index: 1; }
.project-card:nth-child(2) { z-index: 2; }
.project-card:nth-child(3) { z-index: 3; }
.project-card:nth-child(4) { z-index: 4; }
.project-card:hover { box-shadow: var(--shadow-float); }
.project-card-blue { background: linear-gradient(120deg, var(--mist), var(--paper)); }
.project-card-sand { background: linear-gradient(120deg, var(--tint-sand), transparent), var(--paper); }
.project-card-sage { background: linear-gradient(120deg, var(--tint-sage), transparent), var(--paper); }
.project-card-mist { background: linear-gradient(120deg, var(--paper), var(--mist)); }
.project-info { min-height: 384px; display: flex; flex-direction: column; align-items: flex-start; }
.project-kicker { margin: 0 0 var(--space-8); color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-eyebrow); }
.project-info h3 { max-width: 480px; margin: 0 0 var(--space-2); font-size: var(--fs-section); line-height: var(--lh-section); }
.project-description { max-width: 432px; margin: 0 0 var(--space-3); color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.tag-list { margin-bottom: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-1); }
.tag-list span, .process-tags span { padding: var(--space-1) var(--space-2); border-radius: var(--radius-tag); background: var(--white); color: var(--neutral-700); font-size: var(--fs-meta); font-weight: 600; line-height: var(--lh-meta); }
.case-button { margin-top: auto; }
.case-button span { line-height: 1; }

.project-preview { position: relative; min-height: 384px; overflow: hidden; display: grid; place-items: center; border-radius: var(--radius-card); background: radial-gradient(ellipse at 60% 60%, rgb(197 168 120 / 32%), transparent 55%), linear-gradient(135deg, var(--mist), var(--paper)); }
.preview-sand { background: radial-gradient(ellipse at 60% 65%, rgb(197 168 120 / 36%), transparent 55%), linear-gradient(135deg, var(--neutral-100), var(--paper)); }
.preview-sage { background: radial-gradient(ellipse at 60% 65%, rgb(111 143 134 / 28%), transparent 55%), linear-gradient(135deg, var(--neutral-100), var(--paper)); }
.preview-mist { background: radial-gradient(ellipse at 60% 65%, rgb(49 95 140 / 20%), transparent 55%), linear-gradient(135deg, var(--mist), var(--paper)); }
.mockup-stack { position: relative; width: 80%; height: 72%; perspective: 900px; transform: rotate(-4deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.project-card:hover .mockup-stack { transform: rotate(-1deg) translateY(-8px) scale(1.035); }
.mock-screen { position: absolute; inset: 8% 5%; border: 8px solid var(--white); border-radius: var(--radius-card); background: linear-gradient(145deg, var(--white), var(--mist)); box-shadow: var(--shadow-raised); }
.screen-back { transform: translate(-9%, -9%) rotate(-7deg); opacity: .55; }
.screen-mid { transform: translate(9%, -5%) rotate(5deg); opacity: .75; }
.screen-front { inset: 17% 12%; padding: var(--space-3); display: flex; flex-direction: column; align-items: flex-start; transform: translateY(3%); box-shadow: var(--shadow-float); }
.screen-front span { display: block; }
.screen-top { width: 42%; height: 8px; margin-bottom: var(--space-2); border-radius: var(--radius-tag); background: var(--neutral-200); }
.screen-block { width: 54%; height: 24px; margin-bottom: var(--space-2); border-radius: var(--radius-tag); background: rgb(49 95 140 / 28%); }
.screen-lines { width: 80%; height: 48px; border-top: 8px solid var(--neutral-100); border-bottom: 8px solid var(--neutral-100); }
.screen-chart { width: 100%; height: 96px; margin-top: auto; border-radius: var(--radius-tag); background: linear-gradient(165deg, transparent 30%, rgb(49 95 140 / 20%) 30% 32%, transparent 32% 46%, rgb(111 143 134 / 46%) 46% 49%, transparent 49% 65%, rgb(49 95 140 / 65%) 65% 68%, transparent 68%); }
.preview-arrow { position: absolute; top: var(--space-3); right: var(--space-3); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--blue-deep); box-shadow: var(--shadow-soft); font-size: var(--fs-card); transition: transform .2s ease, background .2s ease; }
.project-card:hover .preview-arrow { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.preview-label { position: absolute; right: var(--space-2); bottom: var(--space-2); color: var(--text-subtle); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-eyebrow); }
.devices { width: 77%; height: 76%; transform: rotate(-5deg); }
.mock-device { position: absolute; top: 6%; left: 30%; width: 30%; height: 90%; border: 8px solid var(--white); border-radius: var(--radius-feature); background: linear-gradient(var(--white), var(--mist)); box-shadow: var(--shadow-raised); }
.device-back { left: 2%; transform: rotate(-9deg); opacity: .55; }
.device-mid { left: 62%; transform: rotate(9deg); opacity: .7; }
.device-front { padding: var(--space-4) var(--space-1) var(--space-1); display: flex; flex-direction: column; gap: var(--space-1); }
.device-front span { height: 16px; border-radius: var(--radius-tag); background: var(--neutral-200); }
.device-front span:first-child { height: 64px; background: rgb(49 95 140 / 20%); }
.device-front b { height: 64px; border-radius: var(--radius-tag); background: var(--tint-sage); }
.device-front i { height: 48px; border-radius: var(--radius-tag); background: rgb(197 168 120 / 40%); }

/* Marcas ----------------------------------------------------------------- */
.clients-band { padding-block: var(--space-6) var(--space-8); overflow: hidden; border-block: 1px solid var(--neutral-200); background: var(--neutral-100); }
.clients-heading { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--space-1) var(--space-4); }
.clients-heading .eyebrow { margin-bottom: 0; }
.clients-heading > p:last-child { margin: 0; color: var(--text-subtle); font-size: var(--fs-small); line-height: var(--lh-small); }
.client-marquee { width: 100vw; margin: var(--space-5) 0 0 calc(50% - 50vw); overflow: hidden; outline-offset: -4px; }
.client-track { width: max-content; display: flex; animation: client-marquee 40s linear infinite; }
.client-marquee:hover .client-track, .client-marquee:focus .client-track, .client-marquee:focus-within .client-track { animation-play-state: paused; }
.client-group { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: max(100vw, 960px); flex: none; justify-items: center; align-items: center; }
.client-logo { display: block; width: min(90%, 176px); height: auto; }
.client-logo.logo-dm { scale: 1.12; }
.client-logo.logo-zuri { scale: .88; }
@keyframes client-marquee { to { transform: translateX(-50%); } }

/* Sobre ------------------------------------------------------------------ */
.about { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(var(--space-8), 9vw, var(--space-16)); }
.about-collage { position: relative; min-height: 648px; isolation: isolate; }
.collage-wash { position: absolute; inset: 8% 0 0; z-index: -1; border-radius: 46% 46% var(--radius-card) var(--radius-card); background: radial-gradient(ellipse at 50% 50%, var(--tint-blue), transparent 66%), linear-gradient(150deg, var(--tint-sand), var(--mist) 68%, transparent); }
.collage-stamp { position: absolute; top: 5%; right: 5%; width: 192px; height: 128px; padding: var(--space-3); display: flex; flex-direction: column; justify-content: center; transform: rotate(4deg); border: 1px solid var(--neutral-200); border-radius: var(--radius-control); background: repeating-linear-gradient(135deg, var(--white) 0 12px, var(--neutral-50) 12px 14px); box-shadow: var(--shadow-raised); color: var(--blue); font-size: var(--fs-lead); font-weight: 700; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-card); }
.collage-stamp b { margin-top: var(--space-1); font-size: var(--fs-meta); line-height: var(--lh-meta); }
.collage-note { position: absolute; top: 37%; left: 0; width: 192px; padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); transform: rotate(-3deg); border: 1px solid var(--neutral-200); border-radius: var(--radius-control); background: var(--white); box-shadow: var(--shadow-raised); color: var(--blue-deep); font-size: var(--fs-small); font-style: italic; line-height: var(--lh-small); }
.collage-note small { color: var(--text-subtle); font-size: var(--fs-meta); font-style: normal; font-weight: 500; letter-spacing: var(--tracking-eyebrow); }
.collage-note b { color: var(--blue); font-size: var(--fs-lead); }
.collage-screen { position: absolute; bottom: 13%; left: 1%; width: 56%; height: 168px; padding: var(--space-2); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); transform: rotate(-4deg); border: 8px solid var(--white); border-radius: var(--radius-card); background: var(--mist); box-shadow: var(--shadow-raised); }
.collage-screen > span { grid-column: span 2; height: 16px; border-radius: var(--radius-tag); background: rgb(49 95 140 / 16%); }
.collage-screen div { border-radius: var(--radius-tag); background: linear-gradient(150deg, var(--white), rgb(49 95 140 / 20%)); }
.collage-screen div:last-child { background: linear-gradient(150deg, var(--white), var(--tint-sage)); }
.collage-person { position: absolute; right: 7%; bottom: 1%; width: 54%; height: 68%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--neutral-300); border-radius: var(--radius-card); background: linear-gradient(145deg, rgb(255 255 255 / 48%), var(--tint-blue)); box-shadow: var(--shadow-float); color: var(--blue-deep); text-align: center; }
.collage-person::before { width: 128px; height: 128px; margin-bottom: var(--space-3); border: 8px solid var(--white); border-radius: 50%; background: linear-gradient(145deg, var(--mist), rgb(197 168 120 / 40%)); content: ""; }
.collage-person > span { font-weight: 700; letter-spacing: var(--tracking-eyebrow); }
.collage-person small { color: var(--text-subtle); font-size: var(--fs-meta); font-weight: 500; }
.collage-caption { position: absolute; top: 3%; left: 0; transform: rotate(-5deg); color: var(--blue); font-size: var(--fs-card); font-style: italic; font-weight: 700; }

.about-details .eyebrow { margin-bottom: var(--space-3); }
.about-details h2 { max-width: 704px; margin-bottom: var(--space-4); }
.about-details h2 span { color: var(--blue); }
.about-lead { margin: 0 0 var(--space-3); color: var(--ink); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; }
.about-body { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.values-title { margin: 0 0 var(--space-2); font-size: var(--fs-card); line-height: var(--lh-card); }
.about-values { border-top: 1px solid var(--neutral-200); }
.about-values article { padding-block: var(--space-3); display: grid; grid-template-columns: 48px .72fr 1fr; align-items: start; gap: var(--space-2); border-bottom: 1px solid var(--neutral-200); }
.value-index { color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-body); }
.about-values h4 { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: 0; }
.about-values p { margin: 0; color: var(--text-subtle); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Processo --------------------------------------------------------------- */
.process-section { padding-block: clamp(var(--space-10), 10vw, var(--space-16)); overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--mist)); }
.process-heading { max-width: 800px; }
.process-heading .eyebrow { margin-bottom: var(--space-3); }
.process-heading > p:last-child { max-width: 576px; margin: var(--space-3) 0 0; color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.process-cycle { position: relative; margin-top: var(--space-12); }
.cycle-label { position: absolute; z-index: 2; top: calc(var(--space-4) * -1); left: 50%; padding-inline: var(--space-2); transform: translateX(-50%); background: var(--paper); color: var(--text-subtle); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-eyebrow); white-space: nowrap; }
.cycle-path { position: absolute; top: 0; left: 9%; right: 8%; height: 72px; }
.cycle-path svg { width: 100%; height: 100%; overflow: visible; }
.cycle-path path { fill: none; stroke: var(--neutral-400); stroke-width: 2; }
.cycle-path i { position: absolute; top: -8px; width: 16px; height: 16px; border: 2px solid var(--white); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.cycle-path i:nth-of-type(1) { left: 0; }
.cycle-path i:nth-of-type(2) { left: 33%; }
.cycle-path i:nth-of-type(3) { left: 66%; }
.cycle-path i:nth-of-type(4) { right: 0; }
.process-list { margin: 0; padding: var(--space-10) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.process-list li { min-height: 256px; padding: 0 var(--space-4); display: flex; flex-direction: column; align-items: center; text-align: center; }
.process-list li:first-child { padding-left: 0; }
.process-list li:last-child { padding-right: 0; }
.process-number { margin-bottom: var(--space-2); color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-eyebrow); }
.process-list h3 { margin: 0 0 var(--space-2); font-size: var(--fs-card); line-height: var(--lh-card); }
.process-list p { max-width: 256px; min-height: 48px; margin: 0 0 var(--space-3); color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.process-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-1); }

/* Trajetória ------------------------------------------------------------- */
.trajectory { padding-block: clamp(var(--space-10), 10vw, var(--space-16)); }
.trajectory .eyebrow { margin-bottom: var(--space-6); }
.trajectory-list { position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.trajectory-list::before { position: absolute; top: 8px; left: 0; right: 9%; height: 2px; background: linear-gradient(90deg, var(--neutral-300), var(--blue)); content: ""; }
.trajectory-list li { position: relative; padding: var(--space-6) var(--space-2) 0 0; }
.trajectory-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border: 2px solid var(--neutral-400); border-radius: 50%; background: var(--paper); }
.trajectory-dot.is-current { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 8px var(--tint-blue); }
.trajectory-list li > b { display: block; margin-bottom: var(--space-2); color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-eyebrow); }
.trajectory-list h3 { margin: 0 0 var(--space-1); font-size: var(--fs-card); line-height: var(--lh-card); }
.trajectory-list p { margin: 0; color: var(--text-subtle); font-size: var(--fs-small); line-height: var(--lh-small); }

/* Contato (rodapé) ------------------------------------------------------- */
.collaboration { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse closest-side at 50% 42%, rgb(49 95 140 / 16%), transparent 85%), var(--mist); }
.collaboration-ring { position: absolute; z-index: -1; pointer-events: none; width: clamp(464px, 54vw, 960px); aspect-ratio: 1; left: 50%; top: 42%; translate: -50% -50%; border: 1px solid rgb(49 95 140 / 24%); border-radius: 50%; animation: orbit-spin 70s linear infinite; }
.collaboration-ring::before { position: absolute; top: 50%; left: 0; translate: -50% -50%; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--blue); content: ""; }
.collaboration-invite { padding-block: clamp(var(--space-12), 12vw, 208px) clamp(var(--space-10), 9vw, 144px); text-align: center; }
.collaboration-invite h2 { margin: var(--space-2) 0 var(--space-3); font-size: var(--fs-hero); line-height: var(--lh-hero); }
.collaboration-invite h2 span { color: var(--blue); }
.collaboration-invite > p:not(.eyebrow) { max-width: 560px; margin: 0 auto var(--space-5); color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.contact-action span { display: grid; place-items: center; }
.channel-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.channel-list div { padding: var(--space-4) clamp(var(--space-2), 2vw, var(--space-4)); }
.channel-list div + div { border-left: 1px solid var(--line); }
.channel-list dt { color: var(--blue); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-meta); text-transform: uppercase; }
.channel-list dd { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; }
.channel-list a { overflow-wrap: anywhere; }
.channel-list a:hover { color: var(--blue); }
#copy-email { min-height: 32px; padding: 0 var(--space-2); border: 1px solid var(--neutral-200); border-radius: var(--radius-tag); background: var(--white); color: var(--ink); font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
#copy-email:hover { border-color: var(--blue); color: var(--blue); }
.collaboration-signature { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-top: var(--space-8); padding-block: var(--space-4) var(--space-6); border-top: 1px solid var(--line); color: var(--text-subtle); font-size: var(--fs-small); line-height: var(--lh-small); }
.collaboration-signature a { color: var(--blue); font-weight: 600; }
.collaboration-signature a:hover { color: var(--blue-deep); }

.floating-contact { position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 19; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--white); box-shadow: var(--shadow-raised); transition: transform .2s ease, background .2s ease; }
.floating-contact:hover { transform: translateY(-4px); background: var(--blue-deep); }
.floating-contact svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.floating-contact svg path:last-child { stroke-width: 2.8; }

/* Movimento -------------------------------------------------------------- */
.motion-ready .reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
.motion-ready .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.hero-copy.is-visible h1 { animation: title-arrive .75s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy.is-visible .hero-tags { animation: fade-arrive .65s .15s both; }
@keyframes title-arrive { from { opacity: 0; clip-path: inset(0 0 70% 0); transform: translateY(16px); } to { opacity: 1; clip-path: inset(0); transform: translateY(0); } }
@keyframes fade-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: no-preference) {
  .project-list .project-card { scale: var(--case-scale, 1); }
  .portrait-satellites, .portrait-satellites .orbit-badge { animation: orbit-spin 30s linear infinite; }
  .portrait-satellites .orbit-badge { animation-direction: reverse; }
  .portrait-specks { animation: orbit-spin 42s linear infinite reverse; }
}

/* Tablet ----------------------------------------------------------------- */
@media (min-width: 1500px) { .hero { min-height: 816px; } }

@media (max-width: 950px) {
  .section-wrap, .header-inner { width: min(100% - var(--space-6), 760px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: var(--space-4); padding-block: var(--space-10) var(--space-12); }
  .hero-copy { max-width: 760px; }
  .hero-portrait { width: min(76vw, 560px); }
  .deco-ring { left: 58%; }
  .project-card { min-height: 464px; grid-template-columns: .84fr 1.16fr; padding: var(--space-5); gap: var(--space-4); }
  .project-info { min-height: 368px; }
  .project-kicker { margin-bottom: var(--space-6); }
  .project-preview { min-height: 352px; }
  .about { grid-template-columns: .9fr 1.1fr; gap: var(--space-6); }
  .about-collage { min-height: 560px; }
  .about-values article { grid-template-columns: 40px 1fr; gap: var(--space-1) var(--space-2); }
  .about-values p { grid-column: 2; }
  .process-list li { padding-inline: var(--space-2); }
  .trajectory-list h3 { font-size: var(--fs-lead); line-height: var(--lh-lead); }
}

/* Celular ---------------------------------------------------------------- */
@media (max-width: 680px) {
  .section-wrap, .header-inner { width: calc(100% - var(--space-5)); }
  .menu-toggle { width: 48px; height: 48px; padding: var(--space-2); display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); border: 1px solid var(--neutral-200); border-radius: var(--radius-control); background: transparent; }
  .menu-toggle span { width: 16px; height: 2px; display: block; background: var(--ink); transition: transform .18s ease; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; padding: var(--space-2) var(--space-3) var(--space-3); display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--neutral-200); background: var(--paper); box-shadow: var(--shadow-soft); }
  .site-nav.is-open { display: flex; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .site-nav > a { min-height: 48px; padding-inline: var(--space-1); }
  .site-nav .nav-contact { justify-content: center; margin-top: var(--space-1); }
  .language-switch { padding: var(--space-1); }
  .channel-panel { position: static; width: 100%; max-width: none; margin-top: var(--space-1); }

  .hero { padding-block: var(--space-8); gap: var(--space-2); }
  .hero-eyebrow { font-size: var(--fs-meta); line-height: var(--lh-meta); }
  .hero-portrait { width: min(94vw, 440px); margin-top: var(--space-1); }
  .portrait-placeholder { width: 60%; border-width: 8px; }
  .portrait-placeholder > span { font-size: var(--fs-card); line-height: var(--lh-card); }
  .orbit-badge { width: 48px; font-size: var(--fs-small); }
  .deco-ring { top: 3%; left: auto; right: 5%; width: 64px; }
  .deco-spark { top: 3%; font-size: var(--fs-lead); }

  .section-space { padding-block: var(--space-10); }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .section-heading { margin-bottom: var(--space-4); }
  .section-summary { font-size: var(--fs-body); line-height: var(--lh-body); }
  .project-list { padding-top: var(--space-2); }
  .project-card { min-height: unset; margin-bottom: var(--space-2); padding: var(--space-3); display: flex; flex-direction: column-reverse; gap: var(--space-3); border-radius: var(--radius-feature); }
  .project-info { min-height: unset; }
  .project-kicker { margin-bottom: var(--space-2); font-size: var(--fs-meta); }
  .project-info h3 { font-size: var(--fs-card); line-height: var(--lh-card); }
  .project-description { font-size: var(--fs-body); line-height: var(--lh-body); }
  .case-button { margin-top: var(--space-1); }
  .project-preview { width: 100%; min-height: 240px; flex: none; }
  .preview-arrow { top: var(--space-2); right: var(--space-2); width: 48px; height: 48px; font-size: var(--fs-lead); }
  .mockup-stack { width: 87%; height: 78%; }
  .screen-front { padding: var(--space-2); }
  .screen-chart { height: 64px; }
  .devices { height: 83%; }

  .clients-band { padding-block: var(--space-6); }
  .clients-heading { grid-template-columns: 1fr; gap: var(--space-1); }
  .client-marquee { margin-top: var(--space-3); }
  .client-group { width: 760px; }

  .about { grid-template-columns: 1fr; gap: var(--space-5); }
  .about-collage { min-height: min(125vw, 552px); }
  .collage-stamp { width: 144px; height: 104px; padding: var(--space-2); font-size: var(--fs-small); line-height: var(--lh-small); }
  .collage-note { top: 32%; width: 152px; padding: var(--space-2); font-size: var(--fs-meta); }
  .collage-note b { font-size: var(--fs-body); }
  .collage-screen { bottom: 12%; height: 128px; }
  .collage-person { right: 5%; width: 58%; height: 64%; }
  .collage-person::before { width: 104px; height: 104px; }
  .collage-caption { font-size: var(--fs-lead); }
  .about-details .eyebrow { margin-bottom: var(--space-2); }
  .values-title { font-size: var(--fs-card); }
  .about-values article { grid-template-columns: 32px 1fr; gap: var(--space-1); padding-block: var(--space-2); }

  .process-section { padding-block: var(--space-10); }
  .process-heading .eyebrow { margin-bottom: var(--space-2); }
  .process-cycle { margin-top: var(--space-8); }
  .cycle-path { left: 8%; right: 8%; height: 48px; }
  .cycle-path i { width: 16px; height: 16px; top: -8px; }
  .cycle-label { top: calc(var(--space-4) * -1); }
  .process-list { padding-top: var(--space-6); grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .process-list li { min-height: 224px; padding-inline: var(--space-1); }
  .process-list li:first-child { padding-left: 0; }
  .process-list li:last-child { padding-right: 0; }
  .process-number { margin-bottom: var(--space-1); font-size: var(--fs-meta); }
  .process-list p { min-height: 72px; font-size: var(--fs-small); line-height: var(--lh-small); }

  .trajectory { padding-block: var(--space-10); }
  .trajectory .eyebrow { margin-bottom: var(--space-4); }
  .trajectory-list { grid-template-columns: 1fr; gap: 0; padding-left: var(--space-3); }
  .trajectory-list::before { top: 8px; bottom: var(--space-3); left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--neutral-300), var(--blue)); }
  .trajectory-list li { min-height: 128px; padding: 0 0 var(--space-3) var(--space-3); }
  .trajectory-dot { top: 0; left: calc(var(--space-3) * -1); }
  .trajectory-list li > b { margin-bottom: var(--space-1); }
  .trajectory-list h3 { font-size: var(--fs-lead); line-height: var(--lh-lead); }

  .collaboration-invite h2 { font-size: var(--fs-section); line-height: var(--lh-section); }
  .channel-list { grid-template-columns: 1fr; }
  .channel-list div { padding: var(--space-2) 0; }
  .channel-list div + div { border-left: none; border-top: 1px solid var(--line); }
  .collaboration-signature { flex-wrap: wrap; margin-top: var(--space-4); padding-bottom: var(--space-12); }
  .floating-contact { right: var(--space-2); bottom: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-on-scroll { opacity: 1; transform: none; }
}

/* ==========================================================================
   Rodada 2 · intro, hero, projetos e recomendações
   ========================================================================== */

/* Intro de abertura ------------------------------------------------------ */
/* Única exceção de escala: a frase da intro é decorativa e passa de 48 px. */
.intro { display: none; }
.has-intro body { overflow: hidden; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 1fr 1fr;
  padding: var(--space-4) var(--space-5);
  background: radial-gradient(ellipse at 50% 55%, rgb(49 95 140 / 45%), transparent 55%), var(--ink);
  color: var(--mist);
  clip-path: inset(0 0 0 0);
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1);
}
.intro.is-leaving { clip-path: inset(0 0 100% 0); }
.intro-phrase { grid-column: 1 / -1; margin: 0; display: flex; justify-content: space-between; gap: var(--space-4); font-size: clamp(40px, 6.4vw, 128px); font-weight: 600; line-height: 1; letter-spacing: var(--tracking-title); white-space: nowrap; }
.intro-phrase > span { display: block; overflow: hidden; padding-bottom: .08em; }
.intro-phrase > span > span { display: block; transform: translateY(110%); animation: intro-rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro-phrase > span:nth-child(2) > span { animation-delay: .12s; }
.intro-avatar { position: relative; grid-column: 1 / -1; place-self: center; width: 168px; aspect-ratio: 1; }
.intro-photo { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, var(--blue), var(--blue-deep)); box-shadow: 0 0 0 8px rgb(232 240 246 / 8%), var(--shadow-float); opacity: 0; transform: scale(.6); animation: intro-pop .8s .3s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.intro-photo b { font-size: var(--fs-card); letter-spacing: var(--tracking-eyebrow); }
.intro-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-float { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgb(232 240 246 / 14%); backdrop-filter: blur(8px); color: var(--mist); font-size: var(--fs-small); font-style: normal; font-weight: 700; opacity: 0; animation: intro-fade .6s forwards, bob 3.2s ease-in-out infinite; }
.float-a { top: -8px; right: -88px; animation-delay: .7s, .7s; }
.float-b { top: 72px; right: -152px; animation-delay: .85s, 1.1s; }
.float-c { bottom: -16px; left: -96px; animation-delay: 1s, .4s; }
.intro-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--mist); opacity: 0; animation: intro-twinkle 2.4s ease-in-out infinite; }
.spark-a { top: 10%; left: -64px; } .spark-b { bottom: 8%; right: -48px; animation-delay: .6s; } .spark-c { top: -32px; left: 24%; animation-delay: 1.2s; } .spark-d { bottom: -40px; right: 32%; animation-delay: 1.8s; }
.intro-signature { align-self: end; margin: 0; color: rgb(232 240 246 / 64%); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-eyebrow); line-height: var(--lh-meta); }
.intro-counter { align-self: end; justify-self: end; margin: 0; font-size: clamp(48px, 6vw, 96px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.intro-skip { position: absolute; left: 50%; bottom: var(--space-4); translate: -50% 0; min-height: 44px; padding: 0 var(--space-2); border: 1px solid rgb(232 240 246 / 24%); border-radius: var(--radius-control); background: transparent; color: var(--mist); font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.intro-skip:hover { background: rgb(232 240 246 / 10%); }
@keyframes intro-rise { to { transform: translateY(0); } }
@keyframes intro-pop { to { opacity: 1; transform: scale(1); } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-twinkle { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Hero ------------------------------------------------------------------- */
.hero-intro { max-width: 520px; margin: 0 0 var(--space-4); color: var(--text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.hero-copy.is-visible .hero-intro { animation: fade-arrive .65s .1s both; }
.portrait-placeholder { overflow: hidden; }
.portrait-photo { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; background: var(--mist); }
.orbit-badge { font-size: var(--fs-small); letter-spacing: 0; }
.scroll-cue { position: absolute; right: 0; bottom: var(--space-5); display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--blue); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.scroll-cue span { position: relative; width: 48px; height: 1px; overflow: hidden; background: rgb(49 95 140 / 24%); }
.scroll-cue span::after { position: absolute; inset: 0; background: var(--blue); transform: translateX(-100%); animation: cue-run 1.8s cubic-bezier(.6, 0, .2, 1) infinite; content: ""; }
.scroll-cue:hover { color: var(--blue-deep); }
@keyframes cue-run { 60%, 100% { transform: translateX(100%); } }

/* Projetos: contador e título letra por letra ---------------------------- */
.section-heading h2 sup { margin-left: var(--space-1); color: var(--blue); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; vertical-align: super; }
.split-title .word { display: inline-block; white-space: nowrap; }
.split-title .char { display: inline-block; }
.motion-ready .split-title .char { opacity: 0; transform: translateY(.5em); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 22ms + 150ms); }
.motion-ready .is-visible .split-title .char { opacity: 1; transform: translateY(0); }
.project-card:hover .split-title .char { animation: char-wave .5s calc(var(--i) * 18ms) ease; }
@keyframes char-wave { 40% { transform: translateY(-6px); color: var(--blue); } }


@media (max-width: 950px) {
  .scroll-cue { position: static; margin-top: var(--space-2); }
}
@media (max-width: 680px) {
  .has-intro .intro { padding: var(--space-3); }
  .intro-phrase { flex-direction: column; gap: 0; font-size: clamp(40px, 13vw, 64px); }
  .intro-avatar { width: 128px; }
  .float-a { right: -64px; } .float-b { right: -80px; top: 96px; } .float-c { left: -72px; }
  .intro-skip { bottom: var(--space-12); }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .split-title .char { opacity: 1; transform: none; }
}

/* Card do Open Finance com telas reais e foto do Sobre ------------------- */
.preview-phones { position: relative; width: 100%; height: 100%; min-height: inherit; }
.preview-phones img { position: absolute; bottom: -12%; width: 34%; filter: drop-shadow(0 16px 24px rgb(23 33 43 / 16%)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.preview-phones img:nth-child(1) { left: 8%; rotate: -8deg; }
.preview-phones img:nth-child(2) { left: 33%; z-index: 2; bottom: -6%; }
.preview-phones img:nth-child(3) { right: 8%; rotate: 8deg; }
.project-card:hover .preview-phones img { transform: translateY(-16px); }
.project-card:hover .preview-phones img:nth-child(2) { transform: translateY(-24px); }
.collage-person.has-photo { overflow: hidden; border: 8px solid var(--white); }
.collage-person.has-photo::before { display: none; }
.collage-person.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.case-button.is-soon { background: var(--neutral-100); color: var(--text-subtle); box-shadow: none; cursor: default; }
.case-button.is-soon:hover { background: var(--neutral-100); color: var(--text-subtle); }

/* ==========================================================================
   Tags nas cores do design system (artboard Paleta)
   Azul = categoria · Amarelo = em breve · Verde = publicado · Vermelho = indisponível
   ========================================================================== */
:root {
  --tag-blue-text: #315F8C;    --tag-blue-bg: #E8F0F6;    --tag-blue-line: rgb(49 95 140 / 16%);
  --tag-soon-text: #76580D;    --tag-soon-bg: #FBF4DC;    --tag-soon-line: #F0E2B2;
  --tag-ok-text: #347A58;      --tag-ok-bg: #EDF5EF;      --tag-ok-line: #CFE3D5;
  --tag-error-text: #B54747;   --tag-error-bg: #FBEFEE;   --tag-error-line: #F0D3D0;
}

.tag,
.hero-tags span,
.tag-list span,
.process-tags span {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--tag-blue-line);
  border-radius: var(--radius-tag);
  background: var(--tag-blue-bg);
  color: var(--tag-blue-text);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: var(--lh-meta);
}
.hero-tags span { letter-spacing: var(--tracking-eyebrow); }
.hero-tags span:nth-child(even) { background: var(--tag-blue-bg); color: var(--tag-blue-text); }

/* "Case em breve": tag amarela do sistema, não botão */
.case-button.is-soon,
.case-button.is-soon:hover {
  min-height: 0;
  margin-top: auto;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--tag-soon-line);
  border-radius: var(--radius-tag);
  background: var(--tag-soon-bg);
  color: var(--tag-soon-text);
  box-shadow: none;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: var(--lh-meta);
  transform: none;
  cursor: default;
}
.case-button.is-soon::before { width: 8px; height: 8px; border-radius: 50%; background: #D6AA45; content: ""; }

/* ==========================================================================
   Menu com fundo de vidro
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, rgb(255 255 255 / 56%), rgb(232 240 246 / 36%));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgb(255 255 255 / 64%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
  transition: border-bottom-color 320ms ease-in-out, box-shadow 320ms ease-in-out, background 320ms ease-in-out;
}
.site-header.is-scrolled {
  border-bottom-color: rgb(255 255 255 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), var(--shadow-soft);
}
/* Sem suporte a desfoque: vira marfim quase sólido, ainda legível. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgb(247 246 242 / 96%); }
}
@media (max-width: 680px) {
  .site-nav {
    /* O header já desfoca o fundo; o painel aberto fica quase opaco para o texto da página não vazar. */
    background: linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(232 240 246 / 96%));
    border-bottom: 1px solid rgb(255 255 255 / 64%);
  }
}

/* ==========================================================================
   Fundo vivo: manchas de cor da paleta que flutuam devagar
   ========================================================================== */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i {
  position: absolute;
  display: block;
  border-radius: 50%;
  translate: 0 calc(var(--scroll, 0) * var(--depth) * -1px);
  will-change: transform;
}
.ambient .blob-blue  { --depth: .03; top: -12vh; left: -10vw; width: 56vw; aspect-ratio: 1; background: radial-gradient(circle, rgb(49 95 140 / 14%), transparent 62%); animation: drift-a 38s ease-in-out infinite alternate; }
.ambient .blob-sand  { --depth: .05; top: 24vh; right: -16vw; width: 48vw; aspect-ratio: 1; background: radial-gradient(circle, rgb(197 168 120 / 20%), transparent 62%); animation: drift-b 46s ease-in-out infinite alternate; }
.ambient .blob-sage  { --depth: .02; bottom: -24vh; left: 18vw; width: 52vw; aspect-ratio: 1; background: radial-gradient(circle, rgb(111 143 134 / 14%), transparent 62%); animation: drift-c 52s ease-in-out infinite alternate; }
.ambient .blob-mist  { --depth: .04; top: 8vh; left: 30vw; width: 40vw; aspect-ratio: 1; background: radial-gradient(circle, rgb(232 240 246 / 90%), transparent 64%); animation: drift-d 60s ease-in-out infinite alternate; }
.ambient .ambient-dots {
  inset: -10%; width: auto; border-radius: 0;
  --depth: .01;
  background-image: radial-gradient(rgb(49 95 140 / 9%) 1px, transparent 1.5px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 60%);
  animation: dots-pan 90s linear infinite;
}
@keyframes drift-a { to { transform: translate(14vw, 18vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-18vw, -12vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-12vw, -20vh) scale(1.2); } }
@keyframes drift-d { to { transform: translate(16vw, 24vh) scale(.85); } }
@keyframes dots-pan { to { transform: translate(32px, 32px); } }

@media (max-width: 680px) {
  .ambient .blob-blue, .ambient .blob-sand, .ambient .blob-sage, .ambient .blob-mist { width: 110vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient i { animation: none !important; translate: none; }
}

/* ==========================================================================
   Avatar da hero: o círculo flutua 8 px e a foto se move dentro dele
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .portrait-placeholder { animation: avatar-float 6s ease-in-out infinite; }
  .portrait-photo { transform-origin: 50% 40%; animation: avatar-inner 9s ease-in-out infinite; }
}
@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* Ritmo diferente do círculo (9 s contra 6 s): a foto parece ter profundidade. */
@keyframes avatar-inner {
  0%, 100% { transform: scale(1.06) translate(0, 0); }
  33% { transform: scale(1.06) translate(-4px, 4px); }
  66% { transform: scale(1.06) translate(4px, 2px); }
}

/* Com mouse: o círculo segue o cursor (até 8 px) e a foto vai um pouco além, dando profundidade.
   Sem mouse (celular): continua flutuando 8 px para cima e para baixo. */
.avatar-follows .portrait-placeholder {
  animation: none;
  translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 8px);
  transition: translate .9s cubic-bezier(.2, .7, .2, 1);
}
.avatar-follows .portrait-photo {
  translate: calc(var(--mx, 0) * 4px) calc(var(--my, 0) * 4px);
  transition: translate 1.2s cubic-bezier(.2, .7, .2, 1);
}
