/* Dr. Juliano Villani — sistema visual derivado do hero "Anticorpo" (ver 02-conceito/sistema.md) */
@property --matiz { syntax: '<number>'; inherits: true; initial-value: 180; }

:root {
  --noite: oklch(0.17 0.03 205);
  --petroleo: oklch(0.3 0.055 200);
  --salvia: oklch(0.72 0.1 152);
  --menta: oklch(0.88 0.08 160);
  --lavanda: oklch(0.9 0.035 280);
  --pessego: oklch(0.84 0.075 55);
  --texto: oklch(0.96 0.012 160);
  --texto-suave: oklch(0.96 0.012 160 / .68);
  --linha: oklch(0.96 0.012 160 / .16);
  --vidro: oklch(1 0 0 / .045);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
  --margem: clamp(20px, 5vw, 72px);
  --matiz: 180;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--display); font-weight: 300; color: var(--texto); background: var(--noite); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; border-radius: 6px; }
.pular { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--menta); color: var(--noite); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.pular:focus { left: 8px; }

/* ---------- camadas fixas: gradiente, aura, anticorpo, granulado ---------- */
.fundo, .aura, #cena, .grao { position: fixed; inset: 0; pointer-events: none; }
.fundo { z-index: -4; transition: --matiz 1.6s var(--ease);
  background:
    radial-gradient(60vmax 52vmax at 74% 42%, oklch(0.42 0.085 var(--matiz) / .85), transparent 62%),
    radial-gradient(50vmax 46vmax at 98% 0%, oklch(0.36 0.06 calc(var(--matiz) + 100) / .7), transparent 60%),
    radial-gradient(54vmax 44vmax at 40% 110%, oklch(0.4 0.07 calc(var(--matiz) - 120) / .45), transparent 60%),
    radial-gradient(70vmax 60vmax at 0% 30%, oklch(0.24 0.05 215), transparent 70%),
    var(--noite); }
.aura { z-index: -3; inset: auto; left: var(--ax, 72%); top: var(--ay, 48%); width: 62vmin; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: var(--ao, 1);
  background: radial-gradient(closest-side, oklch(0.86 0.1 160 / .34), oklch(0.8 0.08 175 / .14) 46%, transparent 72%); filter: blur(10px); animation: pulso 9s ease-in-out infinite; }
@keyframes pulso { 50% { scale: 1.09; } }
#cena { z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
#cena.pronta { opacity: var(--co, 1); transition: opacity .5s linear; }
.grao { z-index: -1; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- topo ---------- */
.topo { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--margem); transition: background .4s, backdrop-filter .4s, padding .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.topo.rolou { background: oklch(0.17 0.03 205 / .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); padding-block: 10px; border-color: var(--linha); }
.marca { display: flex; align-items: center; gap: 12px; color: var(--menta); }
.marca svg { width: 36px; height: 36px; flex: none; }
.marca b { display: block; font-weight: 600; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; color: var(--texto); }
.marca span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-suave); }
.topo nav { display: flex; gap: clamp(14px, 2.2vw, 32px); font-size: 14px; font-weight: 400; color: var(--texto-suave); }
.topo nav a { position: relative; padding: 6px 0; transition: color .3s; }
.topo nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--menta); scale: 0 1; transform-origin: left; transition: scale .4s var(--ease); }
.topo nav a:hover { color: var(--texto); }
.topo nav a:hover::after { scale: 1 1; }

/* ---------- peças ---------- */
.botao { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 14px; font-weight: 600; font-size: 15.5px; color: var(--noite); background: linear-gradient(100deg in oklch, var(--menta), oklch(0.9 0.06 190)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 0 0 1px oklch(1 0 0 / .2) inset, 0 14px 40px -14px oklch(0.88 0.08 160 / .7); }
.botao:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px oklch(1 0 0 / .3) inset, 0 22px 50px -14px oklch(0.88 0.08 160 / .9); }
.botao svg { width: 18px; height: 18px; }
.botao.pequeno { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.link-mono { font-family: var(--mono); font-size: 13.5px; color: var(--texto-suave); border-bottom: 1px solid var(--linha); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.link-mono:hover { color: var(--texto); border-color: var(--texto); }
.etiqueta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--menta); border: 1px solid oklch(0.88 0.08 160 / .3); border-radius: 999px; padding: 7px 14px 7px 10px; background: oklch(0.88 0.08 160 / .06); }
.etiqueta i { width: 7px; height: 7px; border-radius: 50%; background: var(--menta); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 oklch(0.88 0.08 160 / .6); } 100% { box-shadow: 0 0 0 12px oklch(0.88 0.08 160 / 0); } }
.vidro { background: var(--vidro); border: 1px solid var(--linha); border-radius: 20px; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
strong { font-weight: 600; }
h1 strong, h2 strong { background: linear-gradient(95deg in oklch, var(--menta), var(--lavanda) 55%, var(--pessego)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hexnum { display: grid; place-items: center; width: 54px; aspect-ratio: 1 / 1.1; flex: none; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--menta); background: oklch(0.88 0.08 160 / .1); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
q { quotes: '“' '”'; }
cite { font-style: normal; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--margem) 0; }
.hero-texto { align-self: center; max-width: min(640px, 54vw); padding: clamp(8px, 2vh, 30px) 0 clamp(20px, 4vh, 48px); }
h1 { font-weight: 300; font-size: clamp(2.2rem, min(4.5vw, 10.4vh), 5.2rem); line-height: 1; letter-spacing: -.04em; margin: clamp(16px, 2.6vh, 28px) 0 clamp(18px, 3vh, 30px); font-variation-settings: 'opsz' 96; }
h1 .l { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
h1 .l > span { display: block; transform: translateY(108%); animation: subir 1.15s var(--ease) forwards; }
h1 .l:nth-child(2) > span { animation-delay: .1s; }
h1 .l:nth-child(3) > span { animation-delay: .2s; }
h1 strong { white-space: nowrap; }
@keyframes subir { to { transform: none; } }
.apoio { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--texto-suave); max-width: 31em; }
.apoio b { color: var(--texto); font-weight: 500; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(22px, 3.6vh, 36px); }
.prova { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(20px, 3vw, 44px); margin-top: clamp(20px, 4vh, 52px); }
.prova div { padding-left: 14px; border-left: 1px solid var(--linha); }
.prova dt { font-weight: 500; font-size: clamp(1.6rem, 2.5vw, 2.2rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.prova dd { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--texto-suave); line-height: 1.35; }
.legenda { position: absolute; right: var(--margem); bottom: clamp(70px, 12vh, 120px); width: 230px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--texto-suave); padding-top: 12px; border-top: 1px solid var(--linha); }
.legenda b { display: block; color: var(--menta); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.registro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin: 0 calc(var(--margem) * -1); padding: 14px var(--margem) 18px; font-family: var(--mono); font-size: 11.5px; color: var(--texto-suave); border-top: 1px solid var(--linha); }
.entra { opacity: 0; transform: translateY(14px); animation: chegar .9s var(--ease) forwards; animation-delay: calc(.4s + var(--i, 0) * .09s); }
@keyframes chegar { to { opacity: 1; transform: none; } }

/* ---------- seções ---------- */
.secao { position: relative; max-width: 1384px; margin: 0 auto; padding: clamp(72px, 12vh, 150px) var(--margem); }
.secao.estreita { max-width: 1000px; }
.cabeca { max-width: 880px; margin-bottom: clamp(32px, 6vh, 64px); }
h2 { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; margin-top: 20px; text-wrap: balance; }
h3 { font-weight: 500; font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
.sub { color: var(--texto-suave); margin-top: 16px; font-size: 1.08rem; max-width: 34em; }
.revela { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.revela.visivel { opacity: 1; transform: none; }
.divisor { display: grid; place-items: center; color: var(--menta); opacity: .5; }
.divisor svg { width: 34px; height: 34px; }
.divisor::before, .divisor::after { content: ''; grid-area: 1 / 1; height: 1px; width: min(38vw, 440px); background: linear-gradient(90deg, transparent, var(--linha)); justify-self: start; margin-left: calc(50% - min(38vw, 440px) - 34px); }
.divisor::after { background: linear-gradient(270deg, transparent, var(--linha)); justify-self: end; margin: 0 calc(50% - min(38vw, 440px) - 34px) 0 0; }

/* trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio article { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease), border-color .5s, background .5s; }
.trio article:hover { transform: translateY(-6px); border-color: oklch(0.88 0.08 160 / .45); background: oklch(1 0 0 / .07); }
.trio p { color: var(--texto-suave); }
.trio blockquote { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--linha); font-size: 1.05rem; font-weight: 400; line-height: 1.45; }
.trio cite, .passos cite, figcaption { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--texto-suave); letter-spacing: .03em; }

/* passos */
.passos { list-style: none; padding: 0; display: grid; gap: 0; max-width: 860px; position: relative; }
.passos::before { content: ''; position: absolute; left: 26.5px; top: 30px; bottom: 60px; width: 1px; background: linear-gradient(var(--menta), var(--lavanda), var(--pessego)); opacity: .4; }
.passos li { display: flex; gap: 26px; padding: 0 0 clamp(30px, 5vh, 52px); }
.passos .hexnum { align-self: flex-start; position: relative; font-size: 15px; color: var(--noite); background: linear-gradient(160deg in oklch, var(--menta), var(--lavanda)); }
.passos h3 { font-size: 1.5rem; margin-bottom: 8px; padding-top: 12px; }
.passos p { color: var(--texto-suave); max-width: 36em; }
.passos q { display: block; margin-top: 14px; font-size: 1.05rem; font-weight: 400; color: var(--texto); padding-left: 16px; border-left: 2px solid oklch(0.88 0.08 160 / .5); }
.passos cite { padding-left: 18px; }

/* o que trato */
.grupos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grupos article { padding: 26px; }
.grupos .largo { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: start; }
.grupos .largo h3 { grid-column: 1 / -1; }
.grupos h3 { margin-bottom: 16px; }
.grupos ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.grupos li { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.grupos li::before { content: ''; width: 9px; aspect-ratio: 1 / 1.1; flex: none; background: var(--menta); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.nota { color: var(--texto-suave); max-width: 44em; }
.nota q { color: var(--texto); font-weight: 400; }
.aviso { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--pessego); padding: 14px 18px; border: 1px solid oklch(0.84 0.075 55 / .3); border-radius: 14px; background: oklch(0.84 0.075 55 / .06); max-width: 760px; }

/* opiniões */
.numeros { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(28px, 6vw, 90px); margin-bottom: clamp(32px, 6vh, 60px); }
.numeros b { display: block; font-weight: 300; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.numeros span { font-family: var(--mono); font-size: 12px; color: var(--texto-suave); letter-spacing: .03em; }
.mural { columns: 3; column-gap: 20px; }
.mural figure { break-inside: avoid; margin-bottom: 20px; padding: 24px 24px 22px; }
.mural blockquote { font-size: 1.08rem; font-weight: 400; line-height: 1.45; }
.mural figure:nth-child(3n+1) blockquote { font-size: 1.22rem; }
.fontes { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 20px; }

/* sobre */
.sobre { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 90px); align-items: center; }
.retrato { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.sobre { overflow-x: clip; }
.retrato::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.88 0.08 160 / .5), oklch(0.9 0.035 280 / .22) 60%, transparent); filter: blur(20px); }
.retrato .hex { position: absolute; inset: -2%; width: 104%; height: 104%; animation: girar 140s linear infinite; }
.retrato .hex polygon { fill: none; stroke: var(--menta); stroke-width: .3; stroke-dasharray: 1.2 2.4; opacity: .7; }
@keyframes girar { to { rotate: 360deg; } }
.retrato img { position: relative; width: 100%; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
.sobre-texto .cabeca { margin-bottom: 24px; }
.sobre-texto > p { color: var(--texto-suave); font-size: 1.1rem; max-width: 36em; margin-bottom: 16px; }
.sobre-texto > p q { color: var(--texto); font-weight: 400; }
.curriculo { list-style: none; padding: 0; margin-top: 30px; border-top: 1px solid var(--linha); }
.curriculo li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linha); font-weight: 400; font-size: .98rem; }
.curriculo span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--menta); padding-top: 4px; }

/* perguntas */
.faq details { border-bottom: 1px solid var(--linha); }
.faq details:first-child { border-top: 1px solid var(--linha); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.2rem; font-weight: 400; letter-spacing: -.01em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 1.3rem; color: var(--menta); transition: rotate .4s var(--ease); flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--menta); }
.faq details p { color: var(--texto-suave); padding: 0 40px 24px 0; max-width: 44em; }

/* final */
.final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
address { font-style: normal; display: grid; gap: 18px; margin-bottom: 8px; }
address p { font-size: 1.12rem; font-weight: 400; }
address span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--menta); margin-bottom: 3px; }
address a { border-bottom: 1px solid var(--linha); }
.mapa { overflow: hidden; aspect-ratio: 4 / 3.4; padding: 0; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.02); }

/* rodapé */
.rodape { position: relative; border-top: 1px solid var(--linha); background: oklch(0.14 0.025 205 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 44px var(--margem) 26px; font-size: 14px; font-weight: 400; color: var(--texto-suave); }
.rodape-topo { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 24px 40px; align-items: start; }
.rodape a:hover { color: var(--texto); }
.rodape-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--linha); font-family: var(--mono); font-size: 11.5px; }
.rodape-fim a { color: var(--menta); border-bottom: 1px solid oklch(0.88 0.08 160 / .4); padding-bottom: 1px; }
.rodape-fim a:hover { color: var(--texto); border-color: var(--texto); }

/* botão flutuante (celular) */
.flutuante { display: none; position: fixed; z-index: 30; right: 16px; bottom: 16px; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--noite); background: linear-gradient(100deg in oklch, var(--menta), oklch(0.9 0.06 190)); box-shadow: 0 14px 34px -10px oklch(0 0 0 / .6); translate: 0 90px; transition: translate .5s var(--ease); }
.flutuante svg { width: 18px; height: 18px; }
.flutuante.mostra { translate: 0 0; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .grupos { grid-template-columns: repeat(2, 1fr); }
  .mural { columns: 2; }
  .topo nav { display: none; }
}
@media (max-width: 860px) {
  .legenda { display: none; }
  .aura { --ax: 50%; --ay: 24%; width: 86vmin; }
  .hero { padding-top: 76px; }
  .hero-texto { max-width: none; align-self: end; padding-top: 38vh; }
  h1 strong { white-space: normal; }
  .prova { gap: 0 16px; }
  .prova div { padding-left: 10px; }
  .registro span { display: none; }
  .trio, .sobre, .final { grid-template-columns: 1fr; }
  .grupos .largo { grid-template-columns: 1fr; }
  .retrato { max-width: 340px; }
  .numeros { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .passos li { gap: 16px; }
  .passos .hexnum { width: 44px; }
  .passos::before { left: 21.5px; }
  .passos h3 { font-size: 1.3rem; padding-top: 8px; }
  .curriculo li { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { font-size: 1.08rem; }
  .rodape-topo { grid-template-columns: 1fr; }
  .rodape { padding-bottom: 90px; }
  .flutuante { display: inline-flex; }
  .topo .botao.pequeno { display: none; }
}
@media (max-width: 620px) {
  .grupos { grid-template-columns: 1fr; }
  .mural { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .revela { opacity: 1; transform: none; }
}
