/* ==========================================================================
   Andrade Lab — v3 · minimalista e premium
   Neutros quase monocromáticos, Geist + Geist Mono, uma única cor de apoio
   tirada da esfera (azul-marinho e areia). Movimento lento e preciso.
   ========================================================================== */

:root {
  --bg: #f5f5f2;
  --bg-2: #ecece8;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #2c2c30;
  --muted: #66666b;
  --faint: #a3a3a8;
  --em: #86868c;
  --line: rgb(11 11 12 / .08);
  --line-2: rgb(11 11 12 / .16);
  --accent: #2c4a7e;
  --sand: #c9b48c;
  --spot: rgb(44 74 126 / .5);
  --glow: rgb(44 74 126 / .22);
  --glow-2: rgb(201 180 140 / .35);
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 48px -24px rgb(0 0 0 / .18);

  --f-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --s: min(54vh, 40vw, 580px);
}

[data-theme='dark'] {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #131315;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #8f8f96;
  --faint: #55555b;
  --em: #6e6e75;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .16);
  --accent: #a3bbea;
  --spot: rgb(163 187 234 / .55);
  --glow: rgb(80 120 200 / .28);
  --glow-2: rgb(201 180 140 / .16);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -24px rgb(0 0 0 / .9);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
main:focus, section[tabindex]:focus { outline: none; }
::selection { background: var(--ink); color: var(--bg); }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1, h2 { letter-spacing: -.055em; line-height: .95; }
h2 { font-size: clamp(40px, 6.2vw, 92px); }
/* Segunda linha dos títulos em cinza, com contraste mínimo de 3:1 (texto grande) */
h1 em, h2 em { font-style: normal; color: var(--em); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; line-height: 1.15; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 30px;
  font-weight: 500; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Rótulo técnico: número + nome da seção */
.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 28px;
}
.label span { color: var(--ink); }
.label span::after { content: ''; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--line-2); }
.label--center { justify-content: center; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Botões e links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
/* Reflexo que atravessa o botão no hover */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
[data-theme='dark'] .btn:not(.btn--ghost)::after { background: linear-gradient(105deg, transparent 35%, rgb(0 0 0 / .12) 50%, transparent 65%); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.98); }
.btn-arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn-arrow { transform: translateY(2px); }
.btn[href^='mailto']:hover .btn-arrow { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost::after { display: none; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 58px; padding: 0 28px; font-size: 16px; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--ink); align-self: flex-start;
}
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link span { transition: transform .5s var(--ease); }
.link:hover span { transform: translateX(3px); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; z-index: 70; top: 14px; left: 50%; translate: -50% 0;
  width: min(var(--max), calc(100% - 2 * var(--pad) + 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .7s var(--ease), background .5s, border-color .5s, box-shadow .5s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-color: var(--line); box-shadow: 0 8px 32px -16px rgb(0 0 0 / .18);
}
.nav.is-hidden { transform: translateY(-150%); }
.logo { font-size: 18px; font-weight: 600; letter-spacing: -.05em; white-space: nowrap; }
.logo span { color: var(--muted); font-weight: 400; }
.logo i { display: inline-block; font-style: normal; color: var(--accent); transition: transform 1s var(--ease); }
.logo:hover i { transform: rotate(360deg); }

.nav-links { position: relative; display: flex; gap: 2px; font-size: 13px; }
.nav-links a { position: relative; z-index: 1; padding: 7px 14px; border-radius: 999px; color: var(--muted); transition: color .4s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); opacity: 0;
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .4s;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: border-color .4s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform .8s var(--ease); }
.theme-toggle circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle path { fill: currentColor; }
[data-theme='dark'] .theme-toggle svg { transform: rotate(180deg); }

/* ---------- Hero (modo estático: celular, sem JS, movimento reduzido) ---------- */
.hero { position: relative; }
.hero-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 150px var(--pad) 40px;
}
.hero-text { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--spot); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

.hero-title { font-size: clamp(46px, 8.4vw, 140px); line-height: .92; letter-spacing: -.06em; }
.hero-intro { max-width: 32em; margin-top: 28px; font-size: clamp(16px, 1.3vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.orb-wrap { width: min(78vw, 460px); aspect-ratio: 1; margin-top: 64px; }
.orb-in { position: relative; isolation: isolate; width: 100%; height: 100%; }
/* Sombra de contato: elemento fixo, não é recalculado enquanto a esfera gira */
.orb-in::after {
  content: ''; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: -9%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .2), transparent); filter: blur(4px);
}
[data-theme='dark'] .orb-in::after { background: radial-gradient(closest-side, rgb(0 0 0 / .7), transparent); }
.orb-glow {
  position: absolute; inset: -32%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 42% 40%, var(--glow) 0%, transparent 52%), radial-gradient(circle at 62% 64%, var(--glow-2) 0%, transparent 50%);
  filter: blur(20px);
}
.orb {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  transform: rotate(var(--rot, 0deg));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }

.orb-notes { display: none; }
.hero-caption { margin-top: 36px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); max-width: 30em; }
.hero-caption span { display: block; color: var(--ink); margin-top: 4px; }
.hero-foot { display: none; }

/* ---------- Hero como cena (desktop com JS e movimento) ----------
   O JS escreve --a (0→1: texto sai, esfera sobe) e --b (0→1: anotações). */
.scene .hero { height: 250vh; }
.scene .hero-stage { position: sticky; top: 0; height: 100vh; padding: 0; overflow: hidden; display: block; }
.scene .hero-text {
  position: absolute; left: var(--pad); right: var(--pad); top: 14vh;
  transform: translateY(calc(var(--a, 0) * -10vh)); opacity: calc(1 - var(--a, 0) * 1.7);
  will-change: transform, opacity;
}
.scene .hero-title { font-size: clamp(48px, min(8.6vw, 13.4vh), 140px); }
.scene .orb-wrap {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: var(--s); margin-left: calc(var(--s) / -2); margin-top: calc(var(--s) / -2);
  transform: translateY(calc((1 - var(--a, 0)) * 50vh)) scale(calc(.9 + var(--a, 0) * .18));
  will-change: transform;
}
.scene .orb-glow { opacity: calc(.45 + var(--a, 0) * .55); }

.scene .orb-notes { display: block; list-style: none; margin: 0; padding: 0; }
.note {
  position: absolute; top: calc(50% + var(--s) * var(--y)); display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
  opacity: 0; translate: 0 10px; transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.note b { font-weight: 400; color: var(--muted); }
.note::after {
  content: ''; width: calc(var(--s) * .12); height: 7px;
  background: radial-gradient(circle at var(--end, 100%) 50%, var(--ink) 2.5px, transparent 3px),
              linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat;
  transform: scaleX(0); transform-origin: var(--from, left); transition: transform 1.1s var(--ease) .15s;
}
.note--l { right: calc(50% + var(--s) * .64); }
.note--r { left: calc(50% + var(--s) * .64); flex-direction: row-reverse; --end: 0%; --from: right; }
.note.is-on { opacity: 1; translate: 0 0; }
.note.is-on::after { transform: scaleX(1); }

.scene .hero-caption {
  position: absolute; left: 50%; top: calc(50% + var(--s) * .64); width: max-content; margin: 0;
  translate: -50% 10px; opacity: 0; transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.scene .hero-caption.is-on { opacity: 1; translate: -50% 0; }

.scene .hero-foot {
  display: block; position: absolute; left: var(--pad); right: var(--pad); bottom: 26px;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  opacity: calc(1 - var(--a, 0) * 4);
}
.hero-foot > div { display: flex; justify-content: space-between; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Entrada da página */
.js .hero-in { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
.js .orb-in.hero-in { transform: translateY(60px) scale(.94); transition-duration: 2s; }
.js .nav { opacity: 0; transition: opacity 1.2s var(--ease) .5s, transform .7s var(--ease), background .5s, border-color .5s, box-shadow .5s; }
.is-loaded .hero-in { opacity: 1; transform: none; filter: none; }
.is-loaded .pill.hero-in { transition-delay: .1s; }
.is-loaded .hero-intro.hero-in { transition-delay: .65s; }
.is-loaded .hero-actions.hero-in { transition-delay: .8s; }
.is-loaded .orb-in.hero-in { transition-delay: .35s; }
.is-loaded .hero-foot .hero-in { transition-delay: 1.2s; }
.is-loaded .nav { opacity: 1; }

/* ---------- Títulos: palavras entram com desfoque ---------- */
.w { display: inline-block; vertical-align: top; }
.w > span { display: inline-block; }
.js [data-split] .w > span {
  opacity: 0; filter: blur(12px); transform: translateY(.28em);
  transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.js .hero-title .w > span { transition-delay: calc(.2s + var(--i) * 70ms); }
.js [data-split].is-in .w > span { opacity: 1; filter: none; transform: none; }

/* ---------- Revelação ao rolar ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .card[data-reveal] { filter: none; transform: translateY(48px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Disciplinas ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-group { display: flex; align-items: center; }
.ticker span { display: inline-flex; align-items: center; font-size: clamp(18px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.035em; color: var(--muted); white-space: nowrap; }
.ticker span::after { content: ''; width: 5px; height: 5px; margin: 0 clamp(28px, 3.4vw, 52px); border-radius: 50%; background: var(--line-2); }

/* ---------- Seções ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 14vw, 200px) var(--pad) 0; }
.section-head {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0 72px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .label { grid-column: 1 / -1; }
.lead { font-size: 16px; max-width: 34em; }

/* ---------- Cartões com luz que segue o mouse ---------- */
.card {
  position: relative; isolation: isolate; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card::before, .card::after { content: ''; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.card::before {
  inset: -1px; padding: 1px; z-index: 2;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card::after { inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- Projetos ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.project { display: flex; flex-direction: column; padding: 12px; }
.project--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }

.project-visual {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 18px; background: var(--bg-2);
}
.project-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.12 - var(--z, 1) * .12)); transform-origin: 50% 40%;
  transition: filter .8s var(--ease);
}
.project-visual--light { background: #ede8e1; }
a.project-visual:hover img { filter: brightness(1.06); }

.project-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 14px 12px; }
.project--featured .project-body { padding: 20px clamp(8px, 2vw, 28px) 20px 0; }
.project-meta { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.project-meta span:first-child { color: var(--ink); }
.project-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project--featured h3 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.05em; }
.project-body > p:not(.caption) { font-size: 15px; }

.stage {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--muted);
}
.stage i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.stage--live i { background: var(--accent); animation: pulse 2.6s var(--ease) infinite; }
.stage--soon i { background: var(--sand); }
.caption { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Composição tipográfica Alphatelf */
.alpha {
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3vw, 36px);
  background: #0c0c0d; color: #f4f4f5;
}
.alpha-word { display: flex; font-size: clamp(44px, 6vw, 90px); font-weight: 700; letter-spacing: -.075em; line-height: 1; }
.alpha-word span { display: inline-block; transition: transform 1s var(--ease), color .6s var(--ease); transition-delay: calc(var(--i, 0) * 35ms); }
.alpha:hover .alpha-word span { transform: translateY(-10%); color: #a3bbea; }
.alpha:hover .alpha-word span:nth-child(even) { transform: translateY(10%); }
.alpha-tag { color: #f4f4f5; font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; }
.alpha-tag em { font-style: normal; color: #6c6c73; }
.alpha small { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8f8f96; }

/* ---------- Acordeões ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 12px 0; font-size: 14px; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 12px; height: 12px; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .6s var(--ease); }
.plus::after { transform: rotate(90deg); }
.accordion[open] > summary .plus::after { transform: rotate(0deg); }
.accordion[open] > summary .plus::before { transform: rotate(180deg); }
.accordion-body { overflow: hidden; }
.accordion-body p { padding-bottom: 16px; font-size: 15px; }

/* ---------- Abordagem ---------- */
.statement {
  max-width: 22em; font-size: clamp(30px, 4.1vw, 60px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em;
  color: var(--ink); margin-bottom: clamp(70px, 9vw, 130px);
}
.sw { transition: opacity .25s linear; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) calc(var(--d, 0s) + .3s);
}
.step.is-in::before { transform: scaleX(1); }
.step-num { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 40px; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: 15px; max-width: 24em; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-card { padding: clamp(24px, 3vw, 36px); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; }
.about-card .label { margin: 0; }
.venn { width: 100%; max-width: 360px; margin: 0 auto; overflow: visible; }
.venn circle { fill: none; stroke: var(--line-2); stroke-width: 1; transition: transform 1.2s var(--ease); transform-box: fill-box; transform-origin: center; }
.venn circle:nth-of-type(1) { fill: color-mix(in srgb, var(--accent) 5%, transparent); }
.venn circle:nth-of-type(2) { fill: color-mix(in srgb, var(--sand) 9%, transparent); }
.venn circle:nth-of-type(3) { fill: color-mix(in srgb, var(--ink) 3%, transparent); }
.venn .venn-core { fill: var(--accent); stroke: none; animation: core 2.6s var(--ease) infinite; }
@keyframes core { 50% { opacity: .35; } }
.venn text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }
.js .venn circle:not(.venn-core) { stroke-dasharray: 491; stroke-dashoffset: 491; transition: stroke-dashoffset 2.2s var(--ease), transform 1.2s var(--ease); }
.js .venn circle:nth-of-type(2) { transition-delay: .2s, 0s; }
.js .venn circle:nth-of-type(3) { transition-delay: .4s, 0s; }
.js .is-in .venn circle:not(.venn-core) { stroke-dashoffset: 0; }
.about-card:hover .venn circle:nth-of-type(1) { transform: translate(8px, 5px); }
.about-card:hover .venn circle:nth-of-type(2) { transform: translate(-8px, 5px); }
.about-card:hover .venn circle:nth-of-type(3) { transform: translate(0, -8px); }
.about-quote { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.05em; line-height: 1.04; color: var(--ink); }
.about-quote em { font-style: normal; color: var(--em); }
.about-copy h2 { margin-bottom: 8px; }
.about-copy > p:not(.label) { font-size: 17px; margin-top: 22px; max-width: 32em; }
.about-copy .link { margin-top: 22px; }

/* ---------- Serviços ---------- */
.service-list { border-bottom: 1px solid var(--line); }
.service summary { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; min-height: auto; padding: clamp(22px, 2.6vw, 36px) 0; }
.service-num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.service-name { font-size: clamp(28px, 4.2vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; transition: transform .8s var(--ease), color .5s var(--ease); }
.service .plus { width: 18px; height: 18px; }
.service summary:hover .service-name { transform: translateX(14px); }
/* Ao passar o mouse na lista, os outros itens recuam */
@media (hover: hover) {
  .service-list:hover .service:not(:hover):not([open]) .service-name { color: var(--faint); }
}
.service .accordion-body p { padding: 0 0 36px 84px; font-size: 17px; max-width: 40em; }

/* ---------- Contato ---------- */
.contact {
  max-width: var(--max); margin: 0 auto; text-align: center;
  padding: clamp(130px, 16vw, 230px) var(--pad) clamp(90px, 10vw, 140px);
  display: flex; flex-direction: column; align-items: center;
}
.contact-orb { position: relative; width: clamp(88px, 9vw, 120px); aspect-ratio: 1; margin-bottom: 44px; }
.contact-orb::before { content: ''; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 60%); filter: blur(14px); }
.contact-orb img { position: relative; width: 100%; height: 100%; animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.contact-title { font-size: clamp(48px, 8.4vw, 136px); line-height: .92; letter-spacing: -.06em; }
.contact-text { max-width: 26em; margin-top: 30px; font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.copy-btn.is-done { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--pad) 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.footer .link { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--ink); align-self: center; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 99; translate: -50% 0;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .7s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* Troca de tema com revelação circular (View Transitions, quando houver) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Sem View Transitions: cores mudam suavemente só durante a troca */
.theme-anim, .theme-anim * { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease) !important; }

/* Texto do hero já apagado não recebe clique nem foco */
.scene .hero-text.is-gone { visibility: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .section-head, .project--featured, .about { grid-template-columns: 1fr; }
  .lead { margin-top: 28px; }
  .project--featured .project-body { padding: 22px 14px 12px; }
  .about-card { aspect-ratio: auto; min-height: 460px; gap: 32px; }
}
@media (max-width: 720px) {
  .projects, .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 18px; }
  .nav { padding-left: 16px; }
  .service summary { grid-template-columns: 30px 1fr auto; gap: 12px; }
  .service .accordion-body p { padding-left: 42px; }
  .hero-stage { padding-top: 124px; }
  .contact-actions .btn--lg { width: 100%; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w > span, .js .hero-in, .js .nav { opacity: 1; transform: none; filter: none; }
  .js .venn circle:not(.venn-core) { stroke-dashoffset: 0; }
  .step::before { transform: scaleX(1); }
}
/* Keep the decorative glow inside the viewport on small screens. */
.hero{overflow-x:clip}
@media(max-width:359px){.nav{gap:10px;padding-left:12px}.nav-actions{gap:6px}.nav-actions .btn--sm{padding-inline:12px;font-size:12px}}
