/* ─── Triade · sistema de design compartilhado ──────────────────────────
   Tokens vindos do brand-spec.md (identidade Superliga66, 2019).
   Modernizado: mais espaço, menos foto, accent dourado deliberado.
   Porte para Grav — fonte referenciada em theme/fonts/.
*/
@font-face {
  font-family: 'Handel Gothic D';
  src: url('../fonts/mpg34yy8-_11162.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Handel Gothic D';
  src: url('../fonts/mpg34yy9-_11163.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Handel Gothic D';
  src: url('../fonts/mpg34yy9-_11164.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  /* canvas + neutros */
  --bg:        oklch(20% 0.06 260);    /* deep navy */
  --bg-deep:   oklch(15% 0.06 260);    /* darker navy */
  --bg-light:  oklch(98% 0.005 260);   /* light contrast section */
  --surface:   oklch(100% 0 0);
  --fg:        oklch(96% 0.01 90);
  --fg-dark:   oklch(20% 0.06 260);
  --muted:     oklch(72% 0.03 260);
  --muted-dark:oklch(48% 0.02 260);
  --border:    oklch(30% 0.05 260);
  --border-light: oklch(88% 0.01 260);

  /* accent — dourado, no máx 2× por tela */
  --accent-1:  oklch(86% 0.16 90);     /* light amber  */
  --accent-2:  oklch(78% 0.16 75);     /* warm gold    */
  --accent-3:  oklch(62% 0.13 70);     /* deep gold    */
  --accent:    var(--accent-2);

  /* derived */
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --accent-line: color-mix(in oklch, var(--accent) 30%, transparent);
  --fg-soft:     color-mix(in oklch, var(--fg) 6%, transparent);

  /* tipografia */
  --font-display: 'Handel Gothic D', 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* escala */
  --fs-h1: clamp(40px, 5.6vw, 76px);
  --fs-h2: clamp(28px, 3.4vw, 44px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;

  /* espaçamento (8pt) */
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1180px;
  --gutter: 32px;

  --radius: 8px;
  --radius-lg: 12px;
}

/* ─── reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ─── layout primitives ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 8vw, var(--gap-2xl)); }
.section--light { background: var(--bg-light); color: var(--fg-dark); }
.section--light .muted { color: var(--muted-dark); }
.section--deep { background: var(--bg-deep); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

/* ─── tipografia ───────────────────────────────────────────────────── */
.h1, h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.08; letter-spacing: 0; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.14; letter-spacing: 0; margin: 0; }
.h3, h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: 0.005em; margin: 0; }
.lead   { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0; }
.section--light .lead { color: var(--muted-dark); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.02em; }
.section--light .meta { color: var(--muted-dark); }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ─── chrome: nav + footer ─────────────────────────────────────────── */
/* topnav escuro — navy com logo branco, padrão de autoridade do site */
.topnav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
  gap: var(--gap-lg);
}
.topnav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--fg);
}
.topnav .brand .mark { height: 26px; width: auto; display: block; }
.topnav .brand img.mark { height: 26px; width: auto; }
.pagefoot .brand img { height: 24px; width: auto; display: block; }
.topnav nav { display: flex; gap: var(--gap-lg); }
.topnav nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
  position: relative;
  padding-block: 4px;
  transition: color 150ms ease;
}
.topnav nav a:hover, .topnav nav a[aria-current="page"] { color: var(--fg); }
.topnav nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 1px;
  background: var(--accent);
}
.topnav .menu-btn { display: none; }

.pagefoot {
  padding-block: var(--gap-xl);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.pagefoot a { color: var(--muted); transition: color 150ms ease; }
.pagefoot a:hover { color: var(--accent); }
.pagefoot .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}
.pagefoot .col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 var(--gap-md);
  font-weight: 500;
}
.pagefoot .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pagefoot .col p { margin: 0 0 8px; line-height: 1.55; }
.pagefoot .bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--gap-md);
}
@media (max-width: 920px) {
  .pagefoot .grid { grid-template-columns: 1fr 1fr; }
}

/* ─── buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  transition: transform 50ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-1); border-color: var(--accent-1); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.section--light .btn-secondary { color: var(--fg-dark); border-color: var(--border-light); }
.section--light .btn-secondary:hover { color: var(--accent-3); border-color: var(--accent-3); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 0; }
.btn-ghost:hover { color: var(--accent); }
.section--light .btn-ghost { color: var(--fg-dark); }
.btn-arrow::after { content: '→'; transition: transform 150ms ease; font-weight: 400; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── card / surface ───────────────────────────────────────────────── */
.card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.card:hover { border-color: var(--accent-line); }
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--border); padding: 28px 0 0; border-radius: 0; }
.section--light .card { border-color: var(--border-light); background: var(--surface); }
.section--light .card-rule { border-top-color: var(--border-light); }

/* ─── pillar (numbered service card) ───────────────────────────────── */
.pillar {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--gap-md) var(--gap-lg);
  align-items: start;
  padding: var(--gap-lg) 0;
  border-top: 1px solid var(--border);
}
.section--light .pillar { border-top-color: var(--border-light); }
.pillar:last-child { border-bottom: 1px solid var(--border); }
.section--light .pillar:last-child { border-bottom-color: var(--border-light); }
.pillar .pillar-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.pillar .pillar-icon { width: 48px; height: 48px; display: block; }
.pillar .pillar-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
@media (max-width: 920px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar .pillar-head { flex-direction: row; align-items: center; gap: 16px; }
}
.pillar h3 { margin: 0 0 8px; font-size: 24px; }
.pillar p { margin: 0; color: var(--muted); max-width: 60ch; }
.section--light .pillar p { color: var(--muted-dark); }
.pillar .tags { margin-top: var(--gap-md); display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── pill / badge / tag ───────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 11px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: border-color 150ms ease, color 150ms ease;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.section--light .tag { border-color: var(--border-light); color: var(--muted-dark); }

/* ─── form ─────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.section--light .field label { color: var(--muted-dark); }
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color 150ms ease;
}
.section--light .input,
.section--light .textarea,
.section--light .select {
  background: var(--surface);
  color: var(--fg-dark);
  border-color: var(--border-light);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.6; }
.input:focus, .textarea:focus, .select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

/* ─── ds-table ─────────────────────────────────────────────────────── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th, .ds-table td {
  padding: 16px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.section--light .ds-table th,
.section--light .ds-table td { border-bottom-color: var(--border-light); }
.ds-table th {
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom-width: 2px;
}
.ds-table tbody tr:hover { background: var(--fg-soft); }
.ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: center; }
.ds-table .col-highlight { background: var(--accent-soft); border-left: 1px solid var(--accent-line); border-right: 1px solid var(--accent-line); }
.ds-table .col-highlight.is-head { border-top: 1px solid var(--accent-line); }
.ds-table .col-highlight.is-foot { border-bottom: 1px solid var(--accent-line); }

/* ─── hero — navy escuro, texto claro ──────────────────────────────── */
.hero {
  min-height: clamp(600px, 68vh, 720px); /* altura padrão do hero — igual em todas as páginas */
  padding-block: 40px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
}
.hero-center { text-align: center; max-width: 36ch; margin-inline: auto; }
.hero h1 { margin-bottom: var(--gap-md); }
.hero .lead { margin-bottom: var(--gap-lg); }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }
.hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; gap: var(--gap-xl); } }

/* hero decorative concha — flourish assinatura (uma vez por página) */
.concha-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}
.concha-bg svg { width: 100%; height: 100%; }
.hero > * { position: relative; z-index: 1; }

/* hero photo layer — foto navy/dourada, overlay navy para legibilidade */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 78%, transparent) 45%, color-mix(in oklab, var(--bg) 12%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent) 0%, transparent 30%, color-mix(in oklab, var(--bg) 65%, transparent) 100%);
}
@media (max-width: 920px) {
  .hero-photo { opacity: 0.35; background-position: center; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, color-mix(in oklab, var(--bg) 65%, transparent) 0%, color-mix(in oklab, var(--bg) 88%, transparent) 100%);
  }
}

/* hero claro — canvas claro estilo página 6 da identidade; topnav segue navy */
.hero--light {
  background: var(--bg-light);
  color: var(--fg-dark);
}
.hero--light .lead { color: var(--muted-dark); }
.hero--light .eyebrow { color: var(--accent-3); }
.hero--light .eyebrow::before { background: var(--accent-3); }
.hero--light .btn-secondary { color: var(--fg-dark); border-color: var(--border-light); }
.hero--light .btn-secondary:hover { color: var(--accent-3); border-color: var(--accent-3); }
.hero--light .hero-photo {
  opacity: 1;
  filter: saturate(0.92) contrast(1.02);
}
.hero--light .hero-photo::after {
  background:
    linear-gradient(90deg, var(--bg-light) 6%, color-mix(in oklab, var(--bg-light) 78%, transparent) 45%, color-mix(in oklab, var(--bg-light) 6%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg-light) 22%, transparent) 0%, transparent 35%, color-mix(in oklab, var(--bg-light) 42%, transparent) 100%);
}
@media (max-width: 920px) {
  .hero--light .hero-photo { opacity: 0.5; }
  .hero--light .hero-photo::after {
    background: linear-gradient(180deg, color-mix(in oklab, var(--bg-light) 72%, transparent) 0%, color-mix(in oklab, var(--bg-light) 92%, transparent) 100%);
  }
}

/* hero imagem institucional — home; imagem com logo triade já embutido, full-bleed */
.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;
}
.hero--image {
  padding-block: 0; /* imagem full-bleed; herda a altura padrão do .hero */
  background: var(--bg-light);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%; /* viés à direita mantém o logo fora do crop */
}
@media (max-width: 920px) {
  .hero { min-height: clamp(440px, 60vh, 560px); } /* altura padrão do hero no mobile */
  .hero-img { object-position: 64% 44%; }
}

/* foto de seção escura — reaproveitamento dos heros navy, overlay navy */
.has-photo { position: relative; overflow: hidden; }
.has-photo > .container { position: relative; z-index: 1; }
.section-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: saturate(0.85) contrast(1.05);
}
.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 55%, transparent) 50%, var(--bg) 100%);
}
.section--deep .section-photo::after {
  background: linear-gradient(180deg, var(--bg-deep) 0%, color-mix(in oklab, var(--bg-deep) 55%, transparent) 50%, var(--bg-deep) 100%);
}

/* ─── stack-grid (partner logos / tech stack) ──────────────────────── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.section--light .logo-grid { border-top-color: var(--border-light); border-left-color: var(--border-light); }
.logo-grid .cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0;
  text-align: center;
  transition: color 150ms ease, background 150ms ease;
}
.section--light .logo-grid .cell { border-right-color: var(--border-light); border-bottom-color: var(--border-light); color: var(--muted-dark); }
.logo-grid .cell:hover { color: var(--fg); background: var(--fg-soft); }
.section--light .logo-grid .cell:hover { color: var(--fg-dark); }
.logo-grid .cell img {
  max-height: 36px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 150ms ease, filter 150ms ease;
}
.section--light .logo-grid .cell img { filter: brightness(0) invert(0); opacity: 0.6; }
.logo-grid .cell:hover img { opacity: 1; }
.logo-grid .cell-tall img { max-height: 42px; }
@media (max-width: 920px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── case row (clients) ───────────────────────────────────────────── */
.case-list { display: flex; flex-direction: column; }
.case-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: var(--gap-md);
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.case-row:last-child { border-bottom: 1px solid var(--border); }
.section--light .case-row { border-top-color: var(--border-light); }
.section--light .case-row:last-child { border-bottom-color: var(--border-light); }
.case-row .case-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.case-row .case-sector { color: var(--muted); font-size: 14px; }
.case-row .case-tag { color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 920px) {
  .case-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ─── stat block ───────────────────────────────────────────────────── */
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--accent);
}
.stat .stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 26ch;
  line-height: 1.45;
}
.section--light .stat .stat-label { color: var(--muted-dark); }
.stat .stat-unit { font-size: 0.45em; opacity: 0.7; margin-left: 4px; }

/* ─── ph-img placeholder ───────────────────────────────────────────── */
.ph-img {
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.ph-img.square    { aspect-ratio: 1 / 1; }
.ph-img.wide      { aspect-ratio: 16 / 9; }

/* ─── divider ──────────────────────────────────────────────────────── */
.rule  { border: 0; border-top: 1px solid var(--border); margin: 0; }
.section--light .rule { border-top-color: var(--border-light); }

/* ─── timeline ─────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--gap-xl);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.timeline-row:last-child { border-bottom: 1px solid var(--border); }
.timeline-row .year {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.timeline-row h3 { margin: 0 0 6px; font-size: 20px; }
.timeline-row p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 920px) {
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
  .timeline-row .year { font-size: 20px; margin-bottom: 8px; }
}

/* ─── quote block ──────────────────────────────────────────────────── */
.quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  letter-spacing: 0;
  max-width: 32ch;
  margin: 0;
}
.quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); font-family: var(--font-mono); letter-spacing: 0.02em; }
.quote-mark   {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: -16px;
  font-weight: 700;
}

/* ─── mobile nav toggle ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .topnav nav { display: none; }
  .topnav .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--fg);
  }
  .topnav.is-open nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: var(--gap-md) var(--gutter);
    gap: var(--gap-md);
    border-bottom: 1px solid var(--border);
  }
  .topnav nav a[aria-current="page"]::after { display: none; }
}

/* ─── form-status (Grav flash message — erro; sucesso vira painel próprio) ── */
.form-status { color: var(--muted-dark); min-height: 24px; }
.form-status.is-error { color: oklch(60% 0.20 25); }

/* ─── form-success (substitui o form após envio confirmado pelo Grav) ──── */
.form-success {
  padding: var(--gap-xl);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface);
  animation: form-success-in 420ms ease both;
}
.form-success-icon {
  width: 52px;
  height: 52px;
  color: var(--accent-3);
  margin-bottom: var(--gap-md);
}
.form-success-icon svg { width: 100%; height: 100%; display: block; }
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-success { animation: none; }
}
