/* ---------------------------------------------------------------------- */
/* Reset & variáveis                                                      */
/* ---------------------------------------------------------------------- */
:root {
  --vinho: #6d1b2b;
  --vinho-escuro: #4a1220;
  --vinho-claro: #8f3245;
  --branco: #ffffff;
  --papel: #faf7f5;
  --off-white: #f3eeec;
  --cinza-texto: #2b1f21;
  --cinza-medio: #6b5d5f;
  --borda: #e4dcdd;
  --escuro: #160b0e;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--cinza-texto);
  background: var(--papel);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--vinho);
  color: var(--branco);
}

:focus-visible {
  outline: 2px solid var(--vinho-claro);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------------------------------------------- */
/* Header / Navegação                                                    */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vinho);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--branco);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--branco);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-menu a {
  position: relative;
  display: block;
  padding: 20px 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 1.5px;
  background: var(--branco);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--branco);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Sombra quando a página rola */
.site-header {
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(22, 11, 14, 0.22);
}

/* Seletor de idioma: botão + menu suspenso */
.header-inner {
  position: relative;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px 0 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--branco);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.08em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover,
.lang-switch.is-open .lang-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--branco);
  outline-offset: 2px;
}

.lang-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.lang-caret {
  width: 11px;
  height: 11px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.lang-switch.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 110;
  min-width: 188px;
  padding: 6px;
  list-style: none;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(22, 11, 14, 0.22);
  animation: lang-in 0.16s ease;
}

.lang-menu[hidden] {
  display: none;
}

@keyframes lang-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--cinza-texto);
  font-size: 14px;
  text-align: left;
  transition: background 0.12s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--off-white);
}

.lang-option:focus-visible {
  outline: 2px solid var(--vinho-claro);
  outline-offset: -2px;
}

.lang-code {
  width: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cinza-medio);
}

.lang-name {
  flex: 1;
}

.lang-check {
  width: 15px;
  height: 15px;
  color: var(--vinho);
  visibility: hidden;
}

.lang-option.active {
  color: var(--vinho);
  font-weight: 600;
}

.lang-option.active .lang-code {
  color: var(--vinho);
}

.lang-option.active .lang-check {
  visibility: visible;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(143, 50, 69, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(74, 18, 32, 0.6), transparent 65%),
    var(--vinho);
  color: var(--branco);
  padding: 72px 0 56px;
}

/* Anéis decorativos no canto */
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.025), 0 0 0 49px rgba(255, 255, 255, 0.08);
}

.page-hero::after {
  width: 160px;
  height: 160px;
  right: 18%;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.04);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.page-hero h1 {
  font-size: 46px;
  font-weight: 700;
  max-width: 760px;
}

.page-hero p.lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

/* Hero da página inicial */
.hero-home {
  padding: 88px 0 128px;
}

.hero-home .container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}

.hero-home h1 {
  font-size: 64px;
  letter-spacing: -0.01em;
}

.hero-home .lead {
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-meta strong {
  color: var(--branco);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--branco);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-solid {
  background: var(--branco);
  color: var(--vinho);
}

.btn-solid:hover {
  background: transparent;
  color: var(--branco);
}

.btn-ghost {
  color: var(--branco);
}

.btn-ghost:hover {
  background: var(--branco);
  color: var(--vinho);
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Foto com moldura deslocada */
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--vinho-escuro);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transform: translate(14px, 14px);
  pointer-events: none;
}

.photo-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------- */
/* Seções gerais                                                          */
/* ---------------------------------------------------------------------- */
main {
  padding: 72px 0 96px;
}

section + section {
  margin-top: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--borda);
}

.section-num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--vinho-claro);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--vinho-escuro);
}

.section-head .section-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--cinza-medio);
}

.prose {
  font-size: 17px;
  max-width: 680px;
  color: var(--cinza-texto);
}

.prose-lg {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  max-width: 760px;
  color: var(--vinho-escuro);
}

/* ---------------------------------------------------------------------- */
/* Página inicial                                                         */
/* ---------------------------------------------------------------------- */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.fact {
  border-top: 2px solid var(--vinho);
  padding-top: 18px;
}

.fact-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vinho);
}

.fact-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--cinza-texto);
}

.fact-sub {
  font-size: 14px;
  color: var(--cinza-medio);
}

.page-index {
  list-style: none;
  border-top: 1px solid var(--borda);
}

.page-index a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--borda);
  transition: padding 0.2s ease, color 0.2s ease;
}

.page-index .idx {
  font-family: var(--serif);
  font-style: italic;
  color: var(--vinho-claro);
}

.page-index .name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.page-index .hint {
  font-size: 13px;
  color: var(--cinza-medio);
}

.page-index a:hover {
  padding-left: 14px;
  color: var(--vinho);
}

/* ---------------------------------------------------------------------- */
/* Linha do tempo (formação / experiência)                                */
/* ---------------------------------------------------------------------- */
.timeline {
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--borda);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-date {
  font-size: 13px;
  color: var(--cinza-medio);
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vinho);
  border: 1px solid var(--vinho);
}

.timeline-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--vinho-escuro);
}

.timeline-place {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cinza-texto);
  margin: 4px 0 10px;
}

.timeline-desc {
  font-size: 15px;
  color: var(--cinza-medio);
  max-width: 600px;
}

/* ---------------------------------------------------------------------- */
/* Objetivo / habilidades                                                 */
/* ---------------------------------------------------------------------- */
.skills-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}

.skills-col h3 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vinho);
  margin-bottom: 12px;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  font-size: 15.5px;
}

.skill-list .leader {
  flex: 1;
  border-bottom: 1px dotted #c9bcbe;
  transform: translateY(-4px);
}

.skill-list .level {
  font-size: 12.5px;
  color: var(--cinza-medio);
}

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

.tag {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--vinho);
  color: var(--vinho);
}

/* ---------------------------------------------------------------------- */
/* Contato                                                                */
/* ---------------------------------------------------------------------- */
.contact-lead {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--vinho-escuro);
  max-width: 720px;
  margin-bottom: 12px;
}

.contact-mail {
  display: inline-block;
  font-size: 20px;
  color: var(--vinho);
  border-bottom: 1.5px solid currentColor;
  margin-bottom: 48px;
  word-break: break-all;
}

.contact-mail:hover {
  color: var(--vinho-escuro);
}

.contact-info-list {
  list-style: none;
  max-width: 760px;
  border-top: 1px solid var(--borda);
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--borda);
  font-size: 15.5px;
}

.contact-info-list .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vinho);
  font-weight: 700;
  padding-top: 3px;
}

.contact-info-list a {
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-info-list a:hover {
  color: var(--vinho);
  border-color: currentColor;
}

/* ---------------------------------------------------------------------- */
/* Projetos                                                               */
/* ---------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.project-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--off-white);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-cover .open-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--branco);
  background: var(--vinho);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.project-card:hover .project-cover img,
.project-card:focus-visible .project-cover img {
  transform: scale(1.04);
}

.project-card:hover .open-hint,
.project-card:focus-visible .open-hint {
  transform: translateY(0);
}

.project-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding-top: 16px;
}

.project-num {
  grid-row: span 2;
  font-family: var(--serif);
  font-style: italic;
  color: var(--vinho-claro);
  padding-top: 2px;
}

.project-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--cinza-texto);
  transition: color 0.15s ease;
}

.project-card:hover .project-title {
  color: var(--vinho);
}

.project-meta {
  font-size: 13px;
  color: var(--cinza-medio);
}

.project-stack {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  list-style: none;
}

.project-stack li {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--vinho);
  background: rgba(109, 27, 43, 0.06);
  border: 1px solid rgba(109, 27, 43, 0.14);
  border-radius: 999px;
}

.project-cover {
  box-shadow: 0 1px 0 var(--borda);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-cover,
.project-card:focus-visible .project-cover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(74, 18, 32, 0.45);
}

/* Espaço reservado enquanto não há foto */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cinza-medio);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(109, 27, 43, 0.06) 11px 12px),
    var(--off-white);
}

.empty-note {
  font-size: 15px;
  color: var(--cinza-medio);
}

/* ---------------------------------------------------------------------- */
/* Book de fotos (visualizador)                                           */
/* ---------------------------------------------------------------------- */
.book {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--escuro);
  color: var(--branco);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book[hidden] {
  display: none;
}

.book.is-open {
  opacity: 1;
}

.book-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

.book-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9a3ae;
}

.book-title {
  font-size: 30px;
  font-weight: 600;
}

.book-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}

.book-link {
  align-self: flex-start;
  margin-top: 16px;
  padding-bottom: 2px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--branco);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease;
}

.book-link:hover {
  border-color: var(--branco);
}

.book-link[hidden] {
  display: none;
}

.book-count {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.book-count strong {
  font-size: 32px;
  font-weight: 600;
  color: var(--branco);
}

.book-main {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: 0;
}

.book-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--branco);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.book-close:hover {
  background: var(--branco);
  color: var(--escuro);
}

.book-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px 24px;
  min-height: 0;
}

.book-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.book-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.book-frame.is-changing {
  opacity: 0;
}

.book-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.book-frame .placeholder {
  max-width: 760px;
  aspect-ratio: 4 / 3;
  height: auto;
  color: rgba(255, 255, 255, 0.45);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(255, 255, 255, 0.04) 11px 12px),
    #23161a;
}

.book-caption {
  min-height: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.book-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--branco);
  font-size: 22px;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.book-nav:hover:not(:disabled) {
  background: var(--vinho);
  border-color: var(--vinho);
}

.book-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.book-nav.prev {
  left: 24px;
}

.book-nav.next {
  right: 24px;
}

.book-thumbs {
  display: flex;
  gap: 8px;
  padding: 16px 24px 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.book-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  background: #23161a;
  opacity: 0.5;
  overflow: hidden;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-thumb span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.book-thumb:hover {
  opacity: 0.85;
}

.book-thumb.active {
  opacity: 1;
  border-color: var(--branco);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--escuro);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 28px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--branco);
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.footer-brand small {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover {
  background: var(--branco);
  border-color: var(--branco);
  color: var(--escuro);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-top-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}

.footer-top-link:hover {
  color: var(--branco);
}

/* ---------------------------------------------------------------------- */
/* Faixa de contato (antes do rodapé)                                     */
/* ---------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 120% at 100% 50%, rgba(143, 50, 69, 0.6), transparent 70%),
    var(--vinho-escuro);
  color: var(--branco);
  padding: 64px 0;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.cta-title {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 700;
}

.cta-text {
  margin-top: 8px;
  max-width: 560px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------------- */
/* Página inicial: números e destaques                                    */
/* ---------------------------------------------------------------------- */
.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--branco);
  border: 1px solid var(--borda);
  box-shadow: 0 24px 48px -24px rgba(74, 18, 32, 0.35);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 24px 28px;
}

.stat + .stat {
  border-left: 1px solid var(--borda);
}

.stat dd {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--vinho);
}

.stat dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cinza-medio);
}

.main-home {
  padding-top: 64px;
}

.section-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vinho);
  white-space: nowrap;
}

.section-link .arrow {
  transition: transform 0.2s ease;
}

.section-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------- */
/* Animação de entrada                                                    */
/* ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------------------------------------------------------------------- */
/* Responsivo                                                             */
/* ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-home .container {
    grid-template-columns: 1fr 220px;
    gap: 40px;
  }

  .hero-home h1 {
    font-size: 52px;
  }

  .book {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .book-side {
    padding: 20px 120px 16px 24px;
    gap: 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 30vh;
  }

  .book-title {
    font-size: 22px;
  }

  .book-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .book-count {
    margin-top: 4px;
  }

  .book-count strong {
    font-size: 20px;
  }

  .book-main {
    position: static;
  }

  .book-stage {
    padding: 24px 72px 12px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  /* No celular o seletor fica no canto, na mesma linha do nome */
  .lang-switch {
    position: absolute;
    top: 11px;
    right: 32px;
  }

  .nav-bar {
    margin: 0 -32px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-bar::-webkit-scrollbar {
    display: none;
  }

  .nav-menu {
    width: max-content;
    padding: 0 22px;
    gap: 0;
  }

  .nav-menu a {
    padding: 14px 10px;
    white-space: nowrap;
  }

  .nav-menu a::after {
    left: 10px;
    right: 10px;
    bottom: 8px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 14px 16px 0;
  }

  .lang-switch {
    top: 13px;
    right: 16px;
  }

  .page-hero::before {
    width: 260px;
    height: 260px;
    right: -120px;
    top: -120px;
  }

  .stats-wrap {
    margin-top: -44px;
  }

  .stat {
    padding: 16px 12px;
  }

  .stat dd {
    font-size: 28px;
  }

  .stat dt {
    font-size: 9.5px;
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .main-home {
    padding-top: 48px;
  }

  .section-link span:first-child {
    display: none;
  }

  .project-stack {
    grid-column: 1 / -1;
    margin-top: 6px;
    gap: 4px;
  }

  .project-stack li {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-title {
    font-size: 27px;
  }

  .cta-text {
    font-size: 15px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .nav-bar {
    margin: 0 -16px;
  }

  .nav-menu {
    padding: 0 6px;
  }

  .hero-home {
    padding: 40px 0 84px;
  }

  /* Foto ao lado do nome, como no notebook */
  .hero-home .container {
    grid-template-columns: 1fr 112px;
    gap: 8px 18px;
    align-items: start;
  }

  .hero-home .container > div:first-child {
    display: contents;
  }

  .hero-home .photo-frame {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .hero-home .photo-frame::before {
    transform: translate(7px, 7px);
  }

  .hero-home .eyebrow,
  .hero-home h1,
  .hero-home .lead {
    grid-column: 1;
  }

  .hero-home h1 {
    font-size: 32px;
  }

  .hero-home .lead {
    font-size: 15px;
  }

  .hero-home .hero-meta,
  .hero-home .hero-actions {
    grid-column: 1 / -1;
  }

  .hero-home .hero-actions {
    margin-top: 16px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 12px;
  }

  main {
    padding: 48px 0 72px;
  }

  section + section {
    margin-top: 56px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-head .section-note {
    display: none;
  }

  .prose-lg {
    font-size: 20px;
  }

  .home-intro,
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-index a {
    grid-template-columns: 40px 1fr;
  }

  .page-index .hint {
    display: none;
  }

  .page-index .name {
    font-size: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-lead {
    font-size: 26px;
  }

  .contact-info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 14px;
  }

  .project-cover .open-hint {
    transform: none;
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .project-info {
    gap: 2px 8px;
    padding-top: 10px;
  }

  .project-num {
    font-size: 13px;
  }

  .project-title {
    font-size: 16px;
  }

  .project-meta {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .book-side {
    padding: 16px 110px 12px 16px;
  }

  .book-close {
    top: 16px;
    right: 16px;
  }

  .book-stage {
    padding: 16px 16px 8px;
  }

  .book-caption {
    padding: 0 52px;
  }

  .book-nav {
    top: auto;
    bottom: 0;
    transform: none;
    width: 42px;
    height: 42px;
    background: rgba(22, 11, 14, 0.7);
  }

  .book-nav.prev {
    left: 16px;
  }

  .book-nav.next {
    right: 16px;
  }

  .book-thumbs {
    padding: 12px 16px 16px;
  }

  .book-thumb {
    width: 64px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
