/* ==========================================================================
   Prof. Guilherme de Almeida Corrêa — estilos
   Mobile primeiro. Paleta: azul-marinho profundo, off-white quente, acento bronze.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
/* Reserva com métricas próximas da Inter: evita o texto "pular" quando a fonte carrega */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  --navy-950: #0A1424;
  --navy-900: #0E1B30;
  --navy-600: #2C4568;

  --paper: #F5F1E8;
  --paper-soft: #FBF8F2;
  --sand: #ECE5D6;
  --line: #DDD4C2;
  --line-strong: #C9BDA5;

  --ink: #14213A;
  --ink-2: #4E586B;
  --on-navy: #EEE8DC;
  --on-navy-2: #A9B4C6;
  --line-navy: rgba(238, 232, 220, 0.14);
  --line-navy-strong: rgba(238, 232, 220, 0.3);

  --bronze: #B38F5A;
  --bronze-soft: #C8A673;
  --bronze-ink: #7A5A2C;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --header-h: 68px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 136px);
  --section-bg: var(--paper);

  /* Escala de tipos (DESIGN.md › Typography). Use só estes tamanhos. */
  --fs-display: clamp(2.35rem, 1.2rem + 5vw, 4.9rem);   /* nome no topo */
  --fs-headline: clamp(2rem, 1.3rem + 2.9vw, 3.35rem);  /* títulos de seção */
  --fs-subhead: clamp(2rem, 1.5rem + 2vw, 2.9rem);      /* título dentro de painel, links do menu */
  --fs-title: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);    /* nomes: empresa, livro, citação, frase de prova */
  --fs-xl: 1.45rem;    /* títulos de grupo, assinatura, mensagem do convite */
  --fs-lg: 1.2rem;     /* títulos de item em serifa */
  --fs-body: 1.0625rem;/* texto corrido */
  --fs-base: 1rem;     /* texto de interface: botões, itens de lista */
  --fs-sm: 0.9rem;     /* texto secundário */
  --fs-xs: 0.8125rem;  /* letras miúdas: legendas, crédito */
  --fs-label: 0.75rem; /* rótulos em maiúsculas espaçadas */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--navy-600) var(--paper);
  accent-color: var(--bronze);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
strong { font-weight: 600; }
cite { font-style: italic; }

::selection { background: var(--bronze); color: var(--navy-950); }

:focus-visible {
  outline: 2px solid var(--bronze-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
/* sobre o azul o bronze claro tem contraste; sobre papel e areia, o bronze-tinta (≥3:1) */
.site-header :focus-visible,
.menu :focus-visible,
.hero :focus-visible,
.feature :focus-visible,
.book :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--bronze); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.icon { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   Tipografia comum
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-headline);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 350; color: var(--ink-2); }
.section-title--light { color: var(--on-navy); }
.section-title--light em { color: var(--on-navy-2); }

.section-lead {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: var(--fs-body);
  text-wrap: pretty;
}
.section-lead--light { color: var(--on-navy-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 28px;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.25s var(--ease);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.text-link:hover { text-decoration-color: var(--bronze); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link--light { color: var(--on-navy); text-decoration-color: var(--line-navy-strong); }
.topic-group .text-link,
.feature .text-link { margin-top: 12px; }

/* Frase com três atalhos para o convite (palestra, aula, treinamento) */
.invite-links { margin-top: 28px; font-weight: 600; font-size: var(--fs-base); }
.invite-links a {
  display: inline-block;
  padding-block: 10px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.25s var(--ease);
}
.invite-links a:hover { text-decoration-color: var(--bronze); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon--down { transition: transform 0.3s var(--ease); }
.btn:hover .icon--down { transform: translateY(3px); }

.btn--primary { background: var(--bronze); color: var(--navy-950); }
.btn--primary:hover { background: var(--bronze-soft); box-shadow: 0 10px 24px -14px rgba(10, 20, 36, 0.6); transform: translateY(-1px); }

.btn--line-light { border-color: var(--line-navy-strong); color: var(--on-navy); }
.btn--line-light:hover { border-color: var(--bronze); background: rgba(238, 232, 220, 0.05); }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-sm); gap: 8px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Cabeçalho fixo (encolhe ao rolar)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-navy);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
/* Encolher sem animar altura: a barra sobe 8px e o conteúdo desce 4px (só transform) */
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  transition: transform 0.35s var(--ease);
}
.site-header.is-scrolled {
  transform: translateY(-8px);
  background: rgba(10, 20, 36, 0.94);
  box-shadow: 0 1px 0 var(--line-navy);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-scrolled .site-header__inner { transform: translateY(4px); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(179, 143, 90, 0.7);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bronze-soft);
  transition: transform 0.35s var(--ease);
}
.site-header.is-scrolled .brand__mark { transform: scale(0.9); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.005em; }
.brand__role { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-2); margin-top: 3px; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--on-navy-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--on-navy); }
.site-nav a:hover::after,
.site-nav a[aria-current]::after { transform: scaleX(1); }

.site-header__cta { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; }

@media (min-width: 1000px) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Menu do celular (dialog nativo: prende o foco e fecha com Esc) */
.menu {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--navy-950);
  color: var(--on-navy);
  flex-direction: column;
}
.menu[open] { display: flex; }
.menu::backdrop { background: var(--navy-950); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.menu__close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.menu__close .icon { width: 26px; height: 26px; }
.menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a[aria-current] { color: var(--bronze-soft); }
.menu__links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-navy);
  font-family: var(--serif);
  font-size: var(--fs-subhead);
  line-height: 1.2;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: fade-in 0.3s var(--ease); }
  .menu[open] .menu__links li { animation: rise 0.5s var(--ease) both; }
  .menu[open] .menu__links li:nth-child(2) { animation-delay: 40ms; }
  .menu[open] .menu__links li:nth-child(3) { animation-delay: 80ms; }
  .menu[open] .menu__links li:nth-child(4) { animation-delay: 120ms; }
  .menu[open] .menu__links li:nth-child(5) { animation-delay: 160ms; }
  .menu[open] .menu__links li:nth-child(6) { animation-delay: 200ms; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-navy);
}
.hero__media {
  position: relative;
  height: 42svh; /* First Screen Rule: o botão principal precisa caber na primeira tela do celular */
  min-height: 300px;
  max-height: 520px;
  margin-top: 52px; /* a cabeça fica abaixo do cabeçalho */
}
.hero__media picture,
.hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 58% 10%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--navy-900) 0%, rgba(14, 27, 48, 0) 16%),
    linear-gradient(to top, var(--navy-900) 2%, rgba(14, 27, 48, 0.75) 22%, rgba(14, 27, 48, 0) 50%);
}
.hero__inner { position: relative; margin-top: -84px; padding-bottom: 64px; }
.hero__content { max-width: 640px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.hero__prof { font-style: italic; font-weight: 320; color: var(--on-navy-2); }
.hero__role {
  margin-top: 18px;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.5;
  color: var(--on-navy);
}
.hero__dot { color: var(--bronze); padding-inline: 4px; }
.hero__spec { color: var(--on-navy-2); }
.hero__lead {
  margin-top: 16px;
  max-width: 54ch;
  font-size: var(--fs-base);
  color: var(--on-navy-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 960px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(100svh, 920px);
  }
  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
  }
  .hero__media img { object-position: 50% 18%; }
  .hero__media::after {
    inset: 0 0 0 -2px; /* cobre a coluna de 1px na borda esquerda da foto */
    background:
      linear-gradient(to right, var(--navy-900) 0%, rgba(14, 27, 48, 0.7) 18%, rgba(14, 27, 48, 0) 46%),
      linear-gradient(to top, rgba(14, 27, 48, 0.7) 0%, rgba(14, 27, 48, 0) 28%),
      linear-gradient(to bottom, rgba(10, 20, 36, 0.5) 0%, rgba(10, 20, 36, 0) 18%);
  }
  .hero__inner { margin-top: 0; padding-block: 140px 100px; }
  .hero__content { max-width: 600px; }
  .hero__role { font-size: var(--fs-base); }
  .hero__lead { margin-top: 18px; font-size: var(--fs-body); }
}
@media (min-width: 1280px) {
  .hero__content { max-width: 660px; }
}

/* Entrada do hero: a única entrada da página */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: settle 1.6s var(--ease) both; }
  .hero__content > * { animation: rise 0.9s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: 80ms; }
  .hero__content > :nth-child(3) { animation-delay: 160ms; }
  .hero__content > :nth-child(4) { animation-delay: 240ms; }
}
@keyframes settle { from { opacity: 0; transform: scale(1.05); } }

/* --------------------------------------------------------------------------
   Prova: os nomes reais, numa frase entre fios
   -------------------------------------------------------------------------- */
.proof { border-bottom: 1px solid var(--line); }
.proof__text {
  max-width: 62ch;
  padding-block: clamp(28px, 4vw, 44px);
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 350;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.proof__text strong { font-weight: 450; color: var(--ink); }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); background: var(--section-bg); }
.section--tight { padding-block: calc(var(--section-y) * 0.8); }
.section--navy { --section-bg: var(--navy-900); color: var(--on-navy); }
.section--sand { --section-bg: var(--sand); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

/* --------------------------------------------------------------------------
   Temas
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  gap: 36px;
  padding: 32px 24px;
  border-radius: 4px;
  background: var(--navy-900);
  color: var(--on-navy);
}
@media (min-width: 960px) {
  .feature { grid-template-columns: 7fr 5fr; gap: 64px; padding: 52px 56px; }
}
.feature__title {
  font-family: var(--serif);
  font-size: var(--fs-subhead);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.feature__text { margin-top: 16px; max-width: 52ch; color: var(--on-navy-2); text-wrap: pretty; }
.feature__proof {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-navy-strong);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--on-navy-2);
}
.feature__proof .icon { margin-top: 3px; color: var(--bronze); }

.timeline-bar { margin-top: 36px; max-width: 520px; }
.timeline-bar__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 350;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--on-navy);
}
.timeline-bar__track {
  position: relative;
  height: 2px;
  margin-top: 12px;
  margin-bottom: 36px;
  background: rgba(238, 232, 220, 0.16);
}
.timeline-bar__track::before,
.timeline-bar__track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  border: 1px solid var(--on-navy-2);
  border-radius: 50%;
  background: var(--navy-900);
  transform: translateY(-50%);
}
.timeline-bar__track::before { left: 0; }
.timeline-bar__track::after { right: 0; }
.timeline-bar__fill {
  position: absolute;
  inset: 0;
  background: var(--bronze);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.timeline-bar__today {
  position: absolute;
  top: 50%;
  left: calc(var(--p, 0) * 100%);
  width: 13px; height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 0 5px rgba(179, 143, 90, 0.2);
  transform: translateY(-50%);
}
.timeline-bar__today-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
/* perto das pontas, o rótulo alinha pela marca para não sair da tela */
.timeline-bar__today.is-start .timeline-bar__today-label { left: -2px; transform: none; }
.timeline-bar__today.is-end .timeline-bar__today-label { left: auto; right: -2px; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .timeline-bar__fill { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.2s; }
  .js .timeline-bar.is-in .timeline-bar__fill { transform: scaleX(var(--p, 0)); }
  .js .timeline-bar__today { opacity: 0; transition: opacity 0.5s var(--ease) 1.4s; }
  .js .timeline-bar.is-in .timeline-bar__today { opacity: 1; }
}

.topics li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-base);
  line-height: 1.5;
  text-wrap: pretty;
}
.topics--light li { border-top-color: var(--line-navy); color: var(--on-navy); font-family: var(--serif); font-size: var(--fs-lg); font-weight: 350; }
.topics--light li:first-child { border-top: 0; padding-top: 0; }
.topics__note {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(122, 90, 44, 0.35);
  border-radius: 2px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-ink);
  vertical-align: 2px;
  white-space: nowrap;
}

.topic-groups {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}
@media (min-width: 900px) {
  .topic-groups { grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; }
}
.topic-group { padding-top: 20px; border-top: 2px solid var(--ink); }
.topic-group__title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.topic-group .topics li:first-child { border-top: 0; }

/* --------------------------------------------------------------------------
   Trajetória
   -------------------------------------------------------------------------- */
.trajetoria__grid { display: grid; }
@media (min-width: 960px) {
  .trajetoria__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .section-head--sticky { position: sticky; top: calc(var(--header-h) + 48px); margin-bottom: 0; }
}

.timeline { position: relative; padding-left: 36px; }
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 1px;
}
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--bronze); transform-origin: top; }
/* Momento ligado à rolagem: a linha se desenha enquanto a trajetória passa pela tela */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline::after {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 60%;
    }
  }
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.timeline__item {
  position: relative;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}
.timeline__item:first-child { padding-top: 4px; }
.timeline__item:last-child { border-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 38px;
  width: 9px; height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--section-bg);
  transition: border-color 0.5s var(--ease);
  z-index: 1;
}
.timeline__item:first-child::before { top: 20px; }
.timeline__item.is-in::before { border-color: var(--bronze); }
.timeline__item--now::before { background: var(--bronze); border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(179, 143, 90, 0.18); }

.timeline__role {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-2);
}
.timeline__now { font-weight: 600; color: var(--bronze-ink); }
.timeline__years { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.timeline__org {
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.timeline__note {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--ink-2);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Palestras e aulas (o palco primeiro)
   -------------------------------------------------------------------------- */
.docencia__photos {
  position: relative;
  padding-bottom: 64px;
  max-width: 480px;
}
.docencia__grid { display: grid; }
/* Celular: título → fotos → lista → livro → atalhos (as fotos ficam entre o título e a lista) */
@media (max-width: 959px) {
  .docencia__content { display: contents; }
  .docencia__content > .section-title { order: 1; }
  .docencia__photos { order: 2; margin-top: 32px; }
  .teach { order: 3; }
  .book { order: 4; }
  .invite-links { order: 5; }
}
/* Computador: fotos à esquerda, grudadas enquanto a lista passa (regra depois da base, para valer) */
@media (min-width: 960px) {
  .docencia__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .docencia__photos { position: sticky; top: calc(var(--header-h) + 40px); }
}
.photo picture,
.photo img { width: 100%; }
.photo img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 33, 58, 0.12); }
.photo--main { width: 74%; }
.photo--small { position: absolute; right: 0; bottom: 0; width: 46%; }
.photo--small picture { padding: 6px; background: var(--section-bg); border-radius: 4px; }
.photo--small figcaption { margin-top: 8px; font-size: var(--fs-xs); line-height: 1.4; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .photo img { transition: transform 0.8s var(--ease); }
  .photo:hover img { transform: scale(1.015); }
}

.teach { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.teach li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}
/* coluna de anos: informa a sequência (substitui os ícones que só decoravam) */
.teach__when {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  line-height: 1.25;
  color: var(--bronze-ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.teach__when small { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-2); }
.teach h3 {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.teach p { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-base); line-height: 1.55; }

.book {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  margin-top: 32px;
  padding: 26px 26px 28px 22px;
  border-radius: 4px;
  background: var(--navy-900);
  color: var(--on-navy);
}
.book__icon { width: 28px; height: 28px; margin-top: 4px; color: var(--bronze-soft); }
.book__title {
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.book__meta {
  margin-top: 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
.book__note { margin-top: 8px; font-size: var(--fs-sm); color: var(--on-navy-2); }

/* --------------------------------------------------------------------------
   Recomendações
   -------------------------------------------------------------------------- */
.quotes { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .quotes { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
}
.quote blockquote p {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 350;
  line-height: 1.5;
  text-wrap: pretty;
}
.quote--lead blockquote p { font-size: var(--fs-title); line-height: 1.42; letter-spacing: -0.008em; }
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.quote__name { font-weight: 600; color: var(--ink); }
.quote__source {
  margin-top: 4px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

/* --------------------------------------------------------------------------
   Formação
   -------------------------------------------------------------------------- */
.section-head--row { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
}
.formacao__crc { font-size: var(--fs-sm); color: var(--ink-2); }
.formacao__crc strong {
  margin-left: 4px;
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
}

.edu { display: grid; gap: 40px; }
@media (min-width: 900px) { .edu { grid-template-columns: 1fr 1fr 1.35fr; gap: 48px; } }
.edu__group { padding-top: 20px; border-top: 2px solid var(--ink); }
.edu__school {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.edu__school span {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}
.edu__group .topics li:first-child { border-top: 0; }

/* --------------------------------------------------------------------------
   Sobre
   -------------------------------------------------------------------------- */
.sobre__grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .sobre__grid { grid-template-columns: 5fr 7fr; gap: 88px; align-items: center; }
  .sobre__photo { margin-right: 14px; }
}
@media (max-width: 959px) {
  .sobre__photo::after { display: none; }
}
.sobre__photo { position: relative; max-width: 460px; isolation: isolate; }
.sobre__photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.sobre__photo::after {
  /* moldura fina deslocada, em bronze (só no computador; no celular virava uma linha solta) */
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(179, 143, 90, 0.55);
  border-radius: 3px;
  z-index: -1;
}

.prose { margin-top: 28px; max-width: 62ch; }
.prose p + p { margin-top: 1.05em; }
.prose p { font-size: var(--fs-body); line-height: 1.72; text-wrap: pretty; }

.signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-xl);
  font-weight: 350;
}
.signature span {
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Convite (momento-assinatura)
   -------------------------------------------------------------------------- */
.convite__head { max-width: 760px; }
.convite__grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1000px) {
  .convite__grid { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
  .convite__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

.invite { display: grid; gap: 32px; }
.invite__legend {
  margin-bottom: 14px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-2);
}

.formats { display: grid; gap: 10px; }
@media (min-width: 620px) { .formats { grid-template-columns: 1fr 1fr; } }

.format {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-content: start;
  column-gap: 14px;
  row-gap: 4px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-navy-strong);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.format input,
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.format::before {
  content: "";
  grid-row: 1;
  width: 18px; height: 18px;
  margin-top: 3px;
  border: 1px solid var(--on-navy-2);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.format__name { grid-column: 2; font-family: var(--serif); font-size: var(--fs-lg); font-weight: 450; line-height: 1.3; color: var(--on-navy); }
.format__desc { grid-column: 2; font-size: var(--fs-sm); line-height: 1.5; color: var(--on-navy-2); }
.format:hover { border-color: rgba(238, 232, 220, 0.5); }
.format:has(input:checked) { border-color: var(--bronze); background: rgba(179, 143, 90, 0.09); }
.format:has(input:checked)::before { border-color: var(--bronze); background: var(--bronze); box-shadow: inset 0 0 0 4px var(--navy-900); }
.format:has(input:focus-visible),
.chip:has(input:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; border-radius: 999px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-navy-strong);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--on-navy);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover span { border-color: rgba(238, 232, 220, 0.5); }
.chip input:checked + span { border-color: var(--bronze); background: var(--bronze); color: var(--navy-950); }

.message {
  padding: 26px 24px 24px;
  border-radius: 4px;
  background: var(--paper-soft);
  color: var(--ink);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7);
}
.message__text {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 350;
  line-height: 1.5;
  text-wrap: pretty;
}
.slot {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* o fechamento também muda, mas sem sublinhado: não é escolha da pessoa */
.slot--quiet { font-weight: inherit; text-decoration: none; }
.message__note { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }

.convite__alt {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  font-size: var(--fs-sm);
  color: var(--on-navy-2);
}
.convite__alt a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: underline;
  text-decoration-color: var(--line-navy-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s var(--ease);
}
.convite__alt a:hover { text-decoration-color: var(--bronze); }
.convite__alt .icon { width: 16px; height: 16px; color: var(--bronze-soft); }
.convite__place { margin-top: 6px; font-size: var(--fs-xs); }

/* Celular: a mensagem vira uma barra que gruda no rodapé da tela enquanto a pessoa escolhe,
   para ver o convite se reescrever a cada toque. */
@media (max-width: 999px) {
  .convite__side { display: contents; }
  .message {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 5;
    padding: 12px 14px;
    box-shadow: 0 -10px 36px -14px rgba(0, 0, 0, 0.6), 0 18px 36px -18px rgba(0, 0, 0, 0.6);
  }
  /* altura reservada para a frase mais longa: o cartão não cresce e não cobre a opção recém-tocada */
  .message__text { margin-bottom: 10px; font-size: var(--fs-sm); line-height: 1.4; min-height: 8.4em; }
  /* no celular o aviso "dá para editar" fica no texto de abertura, para a barra ocupar menos tela */
  .message__note { display: none; }
  .message .btn { min-height: 44px; }
  /* espaço extra no fim do formulário para a barra não cobrir a última opção */
  .invite { padding-bottom: 24px; }
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 56px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--navy-950);
  color: var(--on-navy-2);
  font-size: var(--fs-sm);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-navy);
}
.brand--footer { color: var(--on-navy); margin-right: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--on-navy);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--bronze-soft); }
.site-footer__links .icon { width: 15px; height: 15px; }
.site-footer__legal { display: grid; gap: 4px; padding-block: 24px; line-height: 1.5; }
.credit {
  padding-top: 20px;
  border-top: 1px solid var(--line-navy);
  font-size: var(--fs-xs);
  color: var(--on-navy-2);
}
.credit strong { font-weight: 600; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   WhatsApp flutuante (só no celular)
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--navy-950);
  box-shadow: 0 12px 30px -10px rgba(10, 20, 36, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.wa-float:active { transform: scale(0.95); }
html:not(.js) .wa-float { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1000px) { .wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
