/* ============ DESIGN SYSTEM ============ */
:root {
  --bg: #0c0c0d;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-offset: #202024;
  --accent: #00e5ff;
  --accent-2: #7c3aed;
  --text: #e8e8ec;
  --text-muted: #8888a0;
  --text-faint: #4a4a5a;
  --border: oklch(from #e8e8ec l c h / 0.08);
  --ok: #34d399;
  --whatsapp: #25d366;

  /* derivados — nunca hex novos */
  --accent-text: oklch(from var(--accent) calc(l - 0.04) c h);
  --accent-hover: oklch(from var(--accent) calc(l + 0.08) c h);
  --accent-glow: oklch(from var(--accent) l c h / 0.14);
  --accent-border: oklch(from var(--accent) l c h / 0.35);
  --accent-2-text: oklch(from var(--accent-2) calc(l + 0.18) calc(c - 0.03) h);
  --accent-2-hover: oklch(from var(--accent-2) calc(l + 0.1) c h);
  --accent-2-glow: oklch(from var(--accent-2) l c h / 0.16);
  --accent-2-border: oklch(from var(--accent-2) l c h / 0.4);
  --focus-ring: oklch(from var(--accent) l c h / 0.55);
  --header-bg: oklch(from var(--bg) l c h / 0.72);

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  --fs-hero: clamp(2.5rem, 1rem + 4vw, 6rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-meta: 0.75rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
}

[data-theme="light"] {
  --bg: #f4f4f8;
  --surface: #ffffff;
  --surface-2: #ececf2;
  --surface-offset: #e2e2ea;
  --accent: #0097b2;
  --accent-2: #6d28d9;
  --text: #1a1a1f;
  --text-muted: #5a5a6e;
  --text-faint: #9a9aac;
  --border: oklch(from #1a1a1f l c h / 0.10);
  --ok: #047857;
  --whatsapp: #0e7a43;

  --accent-text: oklch(from var(--accent) calc(l - 0.08) c h);
  --accent-hover: oklch(from var(--accent) calc(l - 0.06) c h);
  --accent-glow: oklch(from var(--accent) l c h / 0.10);
  --accent-2-text: oklch(from var(--accent-2) calc(l - 0.06) c h);
  --accent-2-hover: oklch(from var(--accent-2) calc(l - 0.08) c h);
  --accent-2-glow: oklch(from var(--accent-2) l c h / 0.10);
  --focus-ring: oklch(from var(--accent) l c h / 0.55);
  --header-bg: oklch(from var(--bg) l c h / 0.78);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 500; }

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent-glow); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* link editorial — corpo de texto nunca usa accent como cor de texto pequeno */
.link-inline {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.link-inline:hover { text-decoration-color: var(--accent-hover); }

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--surface-offset);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============ CURSOR CUSTOM (desktop) ============ */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    translate: -50% -50%;
  }
  .cursor-dot { width: 6px; height: 6px; background: var(--accent); }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid var(--accent-border);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
  }
  .cursor-ring.is-active { width: 52px; height: 52px; border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo img {
  width: 52px;
  height: 52px;
  display: block;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.logo:hover img {
  filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 3px var(--accent-2));
  transform: scale(1.06);
}

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-desktop a:hover { color: var(--text); }
.nav-link-visoes::after {
  content: '';
  position: absolute;
  top: 0.1em; right: -0.65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-faint); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  padding: 7rem 2rem 2rem;
}
.nav-overlay.is-open { display: block; }
.nav-overlay a {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-overlay .nav-link-visoes::after { top: 1.2rem; right: auto; margin-left: 0.5rem; position: static; display: inline-block; }

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 8rem 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 2.2rem;
  background: var(--surface);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(from var(--ok) l c h / 0.45); }
  50% { box-shadow: 0 0 0 6px oklch(from var(--ok) l c h / 0); }
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 1.8rem;
}
.hero h1 .line { display: block; }
.hero h1 .char { display: inline; }
.hero h1 .char.is-pending { opacity: 0; }
.hero h1 .char.is-scrambling { color: var(--accent-text); opacity: 1; }
.hero-sub {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.hero-meta {
  color: var(--text-faint);
  margin-bottom: 2.8rem;
}
.hero-meta .sep { margin-inline: 0.6em; }
.hero-ctas { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.link-editorial {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--accent-2-text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-2-border);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s, color 0.2s;
}
.link-editorial:hover { color: var(--accent-2-hover); border-bottom-color: var(--accent-2-hover); }
.link-editorial .arrow { display: inline-block; margin-left: 0.35em; transition: transform 0.25s var(--ease); }
.link-editorial:hover .arrow { transform: translateX(4px); }

/* ============ REVEALS ============ */
.reveal {
  clip-path: inset(0 0 14% 0);
  opacity: 0;
  translate: 0 22px;
  transition: clip-path 0.6s var(--ease), opacity 0.6s var(--ease), translate 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { clip-path: inset(0); opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { clip-path: none; opacity: 1; translate: none; transition: none; }
}

/* ============ SECTION HEADINGS ============ */
.section-head { margin-bottom: 3.5rem; }
.section-head .kicker {
  display: block;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.section-head.is-thought .kicker { color: var(--accent-2-text); }
.section-head.is-code .kicker { color: var(--accent-text); }

/* ============ SOBRE ============ */
.sobre { padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); }
.sobre-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.sobre-copy p { margin-bottom: 1.4rem; color: var(--text-muted); }
.sobre-copy p strong { color: var(--text); font-weight: 500; }
.sobre-visual {
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--text-muted);
  overflow: hidden;
}
.sobre-visual .ln { display: flex; gap: 1rem; white-space: pre; }
.sobre-visual .ln-num { color: var(--text-faint); user-select: none; }
.sobre-visual .tok-k { color: var(--accent-text); }
.sobre-visual .tok-c { color: var(--text-faint); }
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 4.5rem;
}
.stat {
  background: var(--surface);
  padding: 1.8rem 1.6rem;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  color: var(--text);
  display: block;
  line-height: 1.15;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; display: block; }
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.skill-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  background: var(--surface);
}

@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-visual { position: static; }
  .sobre-stats { grid-template-columns: 1fr; }
}

/* ============ PROJETOS ============ */
.projetos {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.project-card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px oklch(from var(--bg) l c h / 0.5);
}
.project-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 2.4rem;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 1rem;
}
.project-context {
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.project-card h3 { margin-bottom: 0.7rem; }
.project-impact { color: var(--text-muted); font-size: 0.97rem; flex-grow: 1; }
.is-featured .project-impact { font-size: 1.08rem; max-width: 52ch; }
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}
.project-stack .chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent-text);
  background: var(--accent-glow);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}
.project-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s, margin-top 0.45s var(--ease);
  color: var(--text-muted);
  font-size: 0.92rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 0;
}
.project-card:hover .project-details,
.project-card:focus-within .project-details {
  max-height: 220px;
  opacity: 1;
  margin-top: 1.3rem;
}
.project-details .details-label {
  display: block;
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}
.project-note { color: var(--text-faint); font-size: 0.68rem; }
.project-media {
  display: block;
  position: relative;
  margin: -1.8rem -1.8rem 1.4rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: var(--bg);
}
.is-featured .project-media { margin: -2.4rem -2.4rem 1.6rem; }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.project-media:hover img,
.project-media:focus-visible img { transform: scale(1.025); }
.project-media-hint {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: oklch(from var(--bg) l c h / 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 0.68rem;
}
.project-doc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s;
}
.project-doc:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .project-card.is-featured { grid-column: span 1; grid-row: span 1; padding: 1.8rem; }
  .is-featured .project-media { margin: -1.8rem -1.8rem 1.4rem; }
  .project-details { max-height: none; opacity: 1; margin-top: 1.3rem; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 3vw, 2.5rem);
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(from var(--bg) l c h / 0.88);
  backdrop-filter: blur(8px);
}
.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: min(1080px, 100%);
  max-height: 100%;
  margin: 0;
}
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: min(72vh, 760px);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px oklch(from var(--bg) l c h / 0.6);
  background: var(--surface);
}
.lightbox-caption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}
.lightbox-prev, .lightbox-next, .lightbox-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
  border-color: var(--accent-border);
  background: var(--surface-offset);
}
.lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: -10px; right: -10px; width: 38px; height: 38px; }
@media (max-width: 1240px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { right: 6px; top: 6px; z-index: 1; }
}

/* ============ STACK ============ */
.stack-section { padding-block: clamp(5rem, 11vw, 10rem); }
.clusters { display: flex; flex-direction: column; gap: 3.2rem; max-width: 920px; }
.cluster { padding-left: clamp(0rem, 3vw, 2rem); }
.cluster:nth-child(even) { padding-left: clamp(1rem, 8vw, 6rem); }
.cluster.is-primary {
  border-left: 2px solid var(--accent);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  margin-left: 0;
}
.cluster h3 { margin-bottom: 0.35rem; }
.cluster-synthesis { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.1rem; }
.cluster-note { color: var(--text-faint); }
.cluster-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cluster-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.cluster-chips .chip:hover { border-color: var(--accent-border); color: var(--text); }
/* ícones locais via mask: a cor acompanha o tema sem trocar arquivo */
.chip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: var(--text-muted);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
  transition: background-color 0.2s;
}
.cluster-chips .chip:hover .chip-icon { background-color: var(--text); }
.stack-langs {
  margin-top: 3.5rem;
  color: var(--text-faint);
}

/* ============ DEPOIMENTOS ============ */
.depoimentos { padding-block: clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 3vw, 2.5rem); }
.depoimentos-inner { max-width: 720px; margin-inline: auto; }
.depo-list { display: flex; flex-direction: column; gap: 1.6rem; }
.depo {
  border-left: 2px solid var(--accent-2);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  padding: 1.6rem 1.8rem;
  margin: 0;
}
.depo-text { color: var(--text); font-size: 1.02rem; }
.depo-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.1rem;
}
.depo-name { font-family: var(--font-display); font-weight: 500; }
.depo-role { color: var(--text-faint); font-size: 0.7rem; }
.depo-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  border: 1px dashed var(--accent-2-border);
  border-radius: 12px;
}
.depo-invite p { color: var(--text-muted); max-width: 44ch; }
.btn-depo {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2-text);
  border: 1px solid var(--accent-2-border);
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-depo:hover { background: var(--accent-2-glow); border-color: var(--accent-2); }
.depo-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.depo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.depo-form-note { color: var(--text-faint); font-size: 0.85rem; }
.btn-submit.is-depo { background: var(--accent-2); color: oklch(from var(--accent-2) 0.99 0 h); }
.btn-submit.is-depo:hover:not(:disabled) { background: var(--accent-2-hover); box-shadow: 0 8px 28px var(--accent-2-glow); }
@media (max-width: 600px) {
  .depo-form-row { grid-template-columns: 1fr; }
  .depo-invite { flex-direction: column; align-items: flex-start; }
}

/* ============ DEPOIMENTOS MODAL ============ */
.depo-modal {
  position: fixed;
  inset: 0;
  z-index: 210; /* acima do lightbox e do header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 3vw, 2.5rem);
}
.depo-modal[hidden] { display: none !important; }
.depo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(from var(--bg) l c h / 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s var(--ease) forwards;
}
.depo-modal-inner {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--accent-2-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 5vw, 3rem);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px oklch(from var(--accent-2) 0.12 0.04 h / 0.3);
  animation: modalScaleUp 0.35s var(--ease) forwards;
}
.depo-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.depo-modal-close:hover {
  color: var(--text);
  border-color: var(--accent-2-border);
  background: var(--surface-offset);
}
.depo-modal-inner .depo-form {
  margin-top: 0;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ VISÕES ============ */
.visoes {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.visoes-inner { max-width: 720px; margin-inline: auto; }
.thought-list { display: flex; flex-direction: column; }
.thought {
  border-top: 1px solid var(--border);
  padding-block: 2.2rem;
}
.thought:last-child { border-bottom: 1px solid var(--border); }
.thought-meta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
.thought-meta .date { color: var(--text-faint); }
.thought-meta .theme { color: var(--accent-2-text); }
.thought h3 {
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}
.thought-excerpt { color: var(--text-muted); max-width: 60ch; }
.thought-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s, margin-top 0.5s var(--ease);
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: 0;
}
.thought.is-open .thought-body { max-height: 600px; opacity: 1; margin-top: 1rem; }
.thought-toggle {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--accent-2-text);
  border-bottom: 1px solid var(--accent-2-border);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.thought-toggle:hover { color: var(--accent-2-hover); border-color: var(--accent-2-hover); }
.visoes-footer {
  margin-top: 2.8rem;
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.95rem;
}

/* ============ CONTATO ============ */
.contato {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(6rem, 13vw, 11rem);
  text-align: center;
}
.contato .kicker { color: var(--accent-text); display: block; margin-bottom: 1.4rem; }
.contato h2 { max-width: 22ch; margin-inline: auto; margin-bottom: 3rem; }
.email-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 0.8rem + 2.4vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
  transition: color 0.2s;
  word-break: break-all;
}
.email-btn:hover { color: var(--accent-text); }
.email-hint { display: block; margin-top: 1.1rem; color: var(--text-faint); }
.contato-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3.2rem;
}
.contato-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.contato-social a:hover {
  color: var(--text);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 60;
  background: var(--surface-offset);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% -6px; }

/* ============ FORMULÁRIO DE CONTATO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 3.5rem;
  text-align: left;
}
.contact-left { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-action-label { color: var(--text-faint); font-size: 0.85rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form-field input,
.form-field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.95rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s;
  width: 100%;
  margin-top: 0.4rem;
}
.btn-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-whatsapp:hover {
  border-color: var(--whatsapp);
  color: var(--whatsapp);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(from var(--bg) l c h / 0.4);
}
.btn-whatsapp svg { flex-shrink: 0; }
.cv-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn-cv:hover {
  border-color: var(--accent-border);
  color: var(--accent-text);
  transform: translateY(-2px);
}
.btn-cv svg { flex-shrink: 0; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ FAB — BOTÃO FLUTUANTE DE CONTATO ============ */
.fab-wrap {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}
.fab-wrap.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px var(--accent-glow), 0 2px 8px oklch(from var(--bg) l c h / 0.4);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.fab:hover { background: var(--accent-hover); transform: scale(1.06); }
.fab .fab-icon-close { display: none; }
.fab-wrap.is-open .fab .fab-icon-chat { display: none; }
.fab-wrap.is-open .fab .fab-icon-close { display: block; }
.fab-panel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: 0 16px 48px oklch(from var(--bg) l c h / 0.55);
  opacity: 0;
  translate: 0 8px;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}
.fab-wrap.is-open .fab-panel { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.fab-option:hover { background: var(--surface-offset); }
.fab-option#fab-whatsapp:hover { color: var(--whatsapp); }
.fab-option#fab-email:hover,
.fab-option#fab-form:hover { color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) {
  .fab-wrap { transition: opacity 0.2s; translate: none; }
  .fab-panel { transition: opacity 0.2s; translate: none; }
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
