/* ==========================================================================
   Messo IA — landing page
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1d1d20;
  --paper: #f4f3ef;
  --paper-2: #eae8e1;
  --white: #ffffff;
  --accent: #c8f26a;
  --accent-strong: #b5e04f;

  --zap-green: #1f5c46;
  --zap-cream: #fbf7ee;
  --zap-ink: #1d2b24;
  --zap-amber: #f0b44c;

  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Each section sets its own palette; children read these. */
.theme-dark {
  --bg: var(--ink);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --fg: #f4f3ef;
  --muted: #a6a49e;
  --line: rgba(244, 243, 239, 0.14);
  --focus: var(--accent);
  background: var(--bg);
  color: var(--fg);
}

.theme-dark.deep {
  --bg: #000000;
  --surface: #0f0f10;
}

.theme-light {
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--paper-2);
  --fg: var(--ink);
  --muted: #5b5a55;
  --line: rgba(11, 11, 12, 0.12);
  --focus: var(--ink);
  background: var(--bg);
  color: var(--fg);
}

.theme-light.alt {
  --bg: var(--paper-2);
  --surface: #f8f7f3;
}

/* --- Base --------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

/* --- Type ---------------------------------------------------------------- */

h1,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
}

.display {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.lead strong {
  color: var(--fg);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.975rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--fg);
}

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  color: var(--paper);
  --fg: var(--paper);
  --line: rgba(244, 243, 239, 0.14);
  --focus: var(--accent);
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(244, 243, 239, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 26px;
}

.nav-list a {
  font-size: 0.95rem;
  color: #c9c7c1;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 243, 239, 0.18);
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle-bar {
  top: 50%;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: rotate(45deg);
  background: var(--paper);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: rotate(-45deg);
  background: var(--paper);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid rgba(244, 243, 239, 0.12);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(244, 243, 239, 0.08);
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 243, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 239, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-visual figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Pipeline card: informal message -> structured record */
.pipeline {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #161618, #101012);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.pipe-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 4px 16px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.pipe-dots {
  display: inline-flex;
  gap: 6px;
}

.pipe-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2c2c30;
}

.pipe-step {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.pipe-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pipe-quote {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--fg);
  min-height: 3em;
}

.pipe-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
}

.pipe-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}

.pipe-chip {
  padding: 5px 12px;
  border: 1px solid rgba(200, 242, 106, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pipe-record {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.pipe-record > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
}

.pipe-record > div:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.pipe-record dt {
  color: var(--muted);
}

.pipe-record dd {
  color: var(--fg);
}

.pipe-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(200, 242, 106, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
}

.pipe-confirm svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Animated state (enabled by JS; static and fully visible otherwise) */
.pipeline.is-animated [data-step],
.pipeline.is-animated [data-field] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.pipeline.is-animated [data-step].is-on,
.pipeline.is-animated [data-field].is-on {
  opacity: 1;
  transform: none;
}

.caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Proof strip */
.proof-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.proof-strip li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 24px 8px 0;
}

.proof-strip li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.proof-strip strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.proof-strip span {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip li,
  .proof-strip li + li {
    padding: 18px 0;
    border-left: 0;
  }

  .proof-strip li + li {
    border-top: 1px solid var(--line);
  }
}

/* --- Sobre --------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.prose p {
  font-size: 1.075rem;
  color: var(--muted);
}

.prose p + p {
  margin-top: 1.1em;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--fg);
}

.principles li {
  padding: 28px 28px 0 0;
}

.principles li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.principles .index {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.principles h3 {
  margin-bottom: 10px;
}

.principles p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .principles li,
  .principles li + li {
    padding: 24px 0;
    border-left: 0;
  }

  .principles li + li {
    border-top: 1px solid var(--line);
  }

  .principles .index {
    margin-bottom: 12px;
  }
}

/* --- Section heads & cards ---------------------------------------------- */

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .display {
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 11, 12, 0.28);
}

.card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 36px;
  padding: 8px;
  border-radius: 12px;
  background: var(--ink);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.975rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.stack span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
}

/* --- Produto: ZapRaf ---------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.product .display {
  margin-bottom: 20px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--fg);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.label-wrap {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(240, 180, 76, 0.28), transparent 55%),
    var(--zap-green);
}

.label-wrap figcaption {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(251, 247, 238, 0.7);
  text-align: center;
}

.label {
  max-width: 400px;
  margin-inline: auto;
  border-radius: 12px;
  background: var(--zap-cream);
  color: var(--zap-ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  transform: rotate(-2deg);
  font-family: var(--font-body);
  overflow: hidden;
}

.label-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--zap-ink);
  color: var(--zap-cream);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px dashed rgba(29, 43, 36, 0.3);
}

.label-product {
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.label-data {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
}

.label-data div {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: 8px;
}

.label-data dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(29, 43, 36, 0.6);
  text-transform: uppercase;
  padding-top: 1px;
}

.label-data dd {
  font-weight: 500;
}

.label-qr {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 6px;
}

.label-foot {
  padding: 10px 18px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(29, 43, 36, 0.7);
}

@media (max-width: 960px) {
  .product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .label-body {
    flex-direction: column-reverse;
  }
}

/* --- Trajetória --------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 44px 36px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--fg);
}

.timeline li.is-next::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(200, 242, 106, 0.15);
}

.when {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  padding-top: 1px;
}

.timeline h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.timeline p {
  max-width: 62ch;
  color: var(--muted);
}

@media (max-width: 720px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 26px;
  }
}

/* --- Pesquisa ----------------------------------------------------------- */

.research {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
  align-items: start;
}

.research .section-head {
  grid-column: 1 / -1;
}

.pubs {
  border-top: 1px solid var(--fg);
}

.pubs li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 3px;
}

.pubs a {
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 40% no-repeat;
  transition: background-size 0.35s var(--ease);
}

.pubs a::after {
  content: " ↗";
  color: var(--muted);
}

.pubs a:hover {
  background-size: 100% 40%;
}

.research-aside {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  --muted: #a6a49e;
  --focus: var(--accent);
}

.research-aside h3 {
  margin-bottom: 16px;
}

.research-aside ul {
  display: grid;
  gap: 12px;
}

.research-aside li {
  position: relative;
  padding-left: 22px;
  color: #d8d6cf;
}

.research-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.aside-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 243, 239, 0.14);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .research {
    grid-template-columns: 1fr;
  }

  .research-aside {
    margin-top: 32px;
  }
}

@media (max-width: 560px) {
  .pubs li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --- Equipe ------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.person {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.person img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 0 var(--accent);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Hover: o card sobe e a foto ganha um anel na cor de destaque. */
.person:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 11, 12, 0.28);
  box-shadow: 0 18px 36px -24px rgba(11, 11, 12, 0.45);
}

.person:hover img {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent);
  transform: scale(1.04);
}

.person .role {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.person h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.person p {
  font-size: 0.925rem;
  color: var(--muted);
}

/* Destaque do CEO: ocupa a linha inteira, acima dos demais. */
.person.featured {
  grid-column: 1 / -1;
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
  --surface: var(--ink);
  --muted: #b5b3ad;
}

.person.featured:hover {
  border-color: transparent;
}

.person.featured img {
  width: 112px;
  height: 112px;
}

.person.featured .role {
  color: var(--accent);
}

.person.featured h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.person.featured p {
  max-width: 88ch;
  font-size: 1rem;
}

@media (max-width: 560px) {
  .person.featured {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }
}

/* --- Ecossistema -------------------------------------------------------- */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.partners li {
  padding: 24px;
  border-top: 2px solid var(--fg);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}

.partner-name {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.partners p {
  font-size: 0.925rem;
  color: var(--muted);
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.support p {
  font-size: 0.925rem;
  color: var(--muted);
}

.support p a {
  color: var(--fg);
  font-weight: 600;
}

.seals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seals li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--surface);
}

.seals a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .support {
    grid-template-columns: 1fr;
  }
}

/* --- Contato ------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact .display {
  margin-bottom: 18px;
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li[hidden] {
  display: none;
}

.contact-list span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 2px;
}

.contact-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--fg);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a49e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 242, 106, 0.2);
}

.field [aria-invalid="true"] {
  border-color: #ff8a7a;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 138, 122, 0.12);
  color: #ffb4a8;
  font-size: 0.9rem;
}

.form-status.is-ok {
  background: rgba(200, 242, 106, 0.12);
  color: var(--accent);
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

/* Campo-armadilha para robôs: fica fora da tela e fora da ordem de foco. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form [type="submit"]:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px 48px;
  align-items: center;
}

.footer-brand img {
  width: 96px;
  height: auto;
  border-radius: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.825rem;
  color: var(--muted);
}

.footer-legal p + p {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* --- Reveal on scroll --------------------------------------------------- */

/* Usa "translate" (e não "transform") para não brigar com o hover dos cards. */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
