/* ════════════════════════════════════════════════════════════
   Memorial Pr. Antenor Lourenço
   Design System: reverência cinematográfica
   (aircenter · jeskojets · monumoir)
   ════════════════════════════════════════════════════════════ */

:root {
  /* Base — cinema / profundidade */
  --ink-900: #0E0F12;
  --ink-800: #16181D;
  --ink-700: #21242B;

  /* Papel — luz / reverência */
  --paper-50: #F6F2E9;
  --paper-100: #EDE7DA;
  --paper-200: #DCD3C1;

  /* Acento — latão envelhecido / legado */
  --brass-500: #C9A24B;
  --brass-600: #B0863A;
  --brass-300: #E4CB8E;

  /* Pedra / neutro quente */
  --stone-500: #8A8474;
  --stone-400: #A9A290;

  /* Atmosfera */
  --sky-300: #AEC2CE;

  --line: rgba(246, 242, 233, 0.12);
  --line-dark: rgba(14, 15, 18, 0.12);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Manrope", -apple-system, system-ui, sans-serif;

  --fs-hero: clamp(3.5rem, 10vw, 9rem);
  --fs-h1: clamp(2.5rem, 6vw, 5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 3rem);
  --fs-lead: clamp(1.1rem, 1.6vw, 1.5rem);
  --fs-body: 1.0625rem;

  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1320px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(6rem, 14vh, 12rem);

  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 40px 120px -40px rgba(0, 0, 0, 0.65);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }

body {
  background: var(--ink-900);
  color: var(--paper-50);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: pan-y pinch-zoom; /* impede o arrasto lateral da página no toque */
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

em { font-style: italic; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-500);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}
.eyebrow--center { text-align: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 46ch;
  color: var(--stone-400);
}

/* ══════════════ TELA DE CARREGAMENTO ══════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-900);
  display: none;
  place-items: center;
  transition: opacity 0.9s var(--ease-luxe), visibility 0.9s;
}
html.js .loader { display: grid; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; padding: 0 2rem; }
.loader__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-500);
  font-weight: 600;
  display: block;
  margin-bottom: 1.2rem;
}
.loader__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--paper-50);
  letter-spacing: -0.02em;
}
.loader__name em { color: var(--brass-500); }
.loader__bar {
  width: min(64vw, 320px);
  height: 1px;
  background: var(--line);
  margin: 2.2rem auto 1rem;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--brass-500);
  transition: width 0.35s var(--ease-out-soft);
}
.loader__pct {
  color: var(--stone-400);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
html.js body.is-loading { overflow: hidden; }

/* ══════════════ NAV ══════════════ */
nav#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--gutter);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(14, 15, 18, 0.72), rgba(14, 15, 18, 0.25) 70%, transparent);
  transition: transform 0.45s var(--ease-luxe);
}
nav#nav.hide { transform: translateY(-120%); }
nav#nav .brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper-50);
  text-decoration: none;
  /* o nome só aparece depois de sair do hero — evita duplicar com o título */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out-soft), transform 0.45s var(--ease-out-soft);
}
nav#nav.past-hero .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
nav#nav ul { display: flex; gap: 2rem; list-style: none; }
nav#nav ul a {
  color: var(--paper-50);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
}
nav#nav ul a:hover { opacity: 1; color: var(--brass-300); }
/* mobile: sem a barra translúcida — a página é a própria navegação */
@media (max-width: 860px) { nav#nav { display: none; } }

/* ══════════════ HERO ══════════════ */
/* composição centralizada: retrato e nome empilhados no centro da tela */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.6rem, 4vh, 2.8rem);
  padding-block: clamp(7rem, 13vh, 10rem) clamp(3.5rem, 8vh, 5.5rem);
}

.hero__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 1;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(174, 194, 206, 0.10) 0%, transparent 62%),
    radial-gradient(120% 90% at 50% 8%, #262933 0%, #14151B 46%, #0E0F12 100%);
}

.drift {
  position: absolute;
  z-index: 2;
  width: 62vw;
  height: 42vh;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(174, 194, 206, 0.14), transparent 70%);
  filter: blur(24px);
}
.drift--1 { top: 10%; left: -8%; }
.drift--2 { top: 40%; right: -12%; background: radial-gradient(closest-side, rgba(201, 162, 75, 0.08), transparent 70%); }

.hero__portrait {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: min(260px, 50vw);
  margin: 0 auto;
}
.hero__portrait img {
  width: auto;
  max-width: 100%;
  max-height: 44vh;   /* nunca estoura a altura em notebooks */
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.hero__name {
  position: relative;
  z-index: 3;
  padding-bottom: 0;
}
.hero__name h1 {
  font-size: var(--fs-hero);
  color: var(--paper-50);
  text-shadow: 0 4px 40px rgba(14, 15, 18, 0.6);
}
.hero__name h1 em { color: var(--brass-500); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
  margin-top: 1.7rem;
  color: var(--stone-400);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__meta span + span::before {
  content: "·";
  margin-right: 2rem;
  color: var(--brass-500);
}

.scrollcue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2rem;
  z-index: 4;
  text-align: center;
  color: var(--stone-400);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.7;
}
.scrollcue span {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--brass-500);
  margin: 0.8rem auto 0;
  animation: cue 2.2s var(--ease-luxe) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 860px) {
  /* no celular: mesma composição do desktop — retrato e nome empilhados e centralizados */
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: clamp(1.6rem, 4vh, 2.6rem);
    padding-block: clamp(6rem, 12vh, 8rem) clamp(3rem, 7vh, 4.5rem);
  }
  .hero__portrait {
    position: relative;
    inset: auto;
    width: auto;
    max-width: min(280px, 70vw);
    height: auto;
    margin: 0 auto;
    z-index: 2;
  }
  .hero__portrait img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 46vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__name { padding-bottom: 0; }
  /* selos empilhados, sem pontos soltos na quebra de linha */
  .hero__meta {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.3rem;
  }
  .hero__meta span + span::before { content: none; margin: 0; }
  .scrollcue { display: none; }
}

/* ══════════════ SEÇÕES / CAPÍTULOS ══════════════ */
section { position: relative; padding-block: var(--section-y); }

.honor { background: var(--ink-900); }
.honor__phrase {
  font-size: var(--fs-h1);
  margin-bottom: 2.5rem;
}
.honor__phrase em { color: var(--brass-500); }

.chapter.dark { background: var(--ink-900); color: var(--paper-50); }
.chapter.light { background: var(--paper-50); color: var(--ink-900); }
.chapter.light .eyebrow { color: var(--brass-600); }
.chapter.light + .chapter.light { padding-top: 0; }

.chapter-title { font-size: var(--fs-h1); }
.chapter-title em { color: var(--brass-500); }
.chapter.light .chapter-title em { color: var(--brass-600); }

.chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.chapter__grid--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter__grid--flip .chapter__text { order: 2; }
.chapter__grid--flip .chapter__media { order: 1; }

.chapter__text--center { text-align: center; max-width: 800px; margin-inline: auto; }

/* mobile: uma coluna — nos capítulos invertidos as fotos ficam em cima do texto */
@media (max-width: 860px) {
  .chapter__grid,
  .chapter__grid--flip { grid-template-columns: 1fr; }
}

.body-col {
  max-width: 58ch;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.2rem;
}
.body-col--center { margin-inline: auto; }
.chapter.dark .body-col, .chapter.dark .body-col p { color: var(--stone-400); }
.chapter.light .body-col, .chapter.light .body-col p { color: #4A463C; }
.chapter.dark .body-col strong { color: var(--paper-50); font-weight: 600; }
.chapter.light .body-col strong { color: var(--ink-900); font-weight: 600; }
.body-col em { color: var(--brass-600); }

/* mídia dos capítulos */
.chapter__media { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

figure { margin: 0; }
figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
.chapter.dark figcaption, .gallery figcaption { color: var(--stone-400); }
.chapter.light figcaption { color: var(--stone-500); }

/* reveal de texto por máscara (linhas sobem sob recorte)
   o respiro extra (padding + margin negativa) evita que o recorte
   corte descendentes ("g", "ç") e o balanço do itálico */
.reveal-mask {
  overflow: hidden;
  display: block;
  padding: 0.06em 0.12em 0.14em 0.04em;
  margin: -0.06em -0.12em -0.14em -0.04em;
}
.reveal-line { display: block; will-change: transform; }

/* reveal por clip-path */
.reveal-img { position: relative; }
.reveal-img .img-wrap,
.reveal-img > img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.reveal-img > img {
  width: 100%;
  object-fit: cover;
  will-change: transform;
}
.ratio-45 > img { aspect-ratio: 4 / 5; }
.ratio-34 > img { aspect-ratio: 3 / 4; }
.ratio-43 > img { aspect-ratio: 4 / 3; }
.ratio-32 > img { aspect-ratio: 3 / 2; }
.reveal-img--offset { margin-left: clamp(1rem, 4vw, 3.5rem); }

/* imagem full-bleed */
.fullbleed {
  margin-top: var(--section-y);
  position: relative;
}
.fullbleed img {
  width: 100%;
  max-height: 86vh;
  object-fit: cover;
  will-change: transform;
}
.fullbleed figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 1.4rem;
  color: var(--paper-50);
  text-shadow: 0 2px 18px rgba(14, 15, 18, 0.8);
  z-index: 2;
}
.fullbleed::after {
  content: "";
  position: absolute;
  inset: 60% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(14, 15, 18, 0.55));
  pointer-events: none;
}

/* faixa de viagens */
.strip {
  touch-action: pan-x pan-y;
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding-inline: var(--gutter);
  margin-top: clamp(3rem, 7vh, 5.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--brass-500) transparent;
}
.strip__item {
  flex: 0 0 clamp(240px, 26vw, 380px);
  scroll-snap-align: center;
}
.strip__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease-out-soft);
}
.strip__item:hover img { transform: scale(1.03); }
.strip__item figcaption { color: var(--stone-500); }

/* ══════════════ PATRONO / COLÉGIO ══════════════ */
.patron { border-bottom: 1px solid var(--line-dark); }
.patron__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
@media (max-width: 700px) { .patron__duo { grid-template-columns: 1fr; } }

.patron__cta { margin-top: 2.6rem; }
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--brass-600);
  border-radius: var(--radius-full, 999px);
  color: var(--brass-600);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-out-soft), color 0.35s var(--ease-out-soft);
}
.btn:hover {
  background: var(--brass-600);
  color: var(--paper-50);
}

/* ══════════════ LINHA DO TEMPO PINADA ══════════════ */
.timeline {
  background: var(--ink-800);
  overflow: hidden;
  padding-block: 0;
}
.timeline .track {
  display: flex;
  width: max-content;
  height: 100vh;
  align-items: center;
}
.tl-chapter {
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  display: grid;
  place-items: center;
  position: relative;
}
.timeline .year {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(9rem, 32vw, 24rem);
  color: var(--brass-500);
  opacity: 0.16;
  z-index: 0;
  letter-spacing: -0.04em;
  user-select: none;
}
.timeline .year--word { font-style: italic; font-size: clamp(6rem, 24vw, 18rem); }
.timeline .card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 38ch;
  padding: 0 2rem;
}
.timeline .card h3 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.timeline .card p { color: var(--stone-400); }

/* ano dentro do cartão (visível apenas no mobile) e dica de deslizar */
.card__year { display: none; }
.timeline__hint { display: none; }

/* fallback mobile / reduced-motion: cartões com rolagem horizontal por snap */
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .timeline { padding-block: clamp(4rem, 10vh, 6rem); }
  .timeline__hint {
    display: block;
    text-align: center;
    color: var(--brass-300);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 var(--gutter) 2rem;
    animation: hint-pulse 2.4s ease-in-out infinite;
  }
  .timeline .track {
    touch-action: pan-x pan-y;
    overflow-x: auto;
    width: 100%;
    height: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-inline: var(--gutter);
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--brass-500) transparent;
  }
  .tl-chapter {
    width: auto;
    height: auto;
    min-height: 0;
    flex: 0 0 min(80vw, 420px);
    scroll-snap-align: center;
    background: var(--ink-700);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.4rem 1.6rem;
    display: block;
  }
  .timeline .year { display: none; }
  .timeline .card { padding: 0; max-width: none; }
  .card__year {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    color: var(--brass-500);
    line-height: 1;
    margin-bottom: 1.1rem;
  }
  .card__year--word { font-style: italic; }
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ══════════════ STATS ══════════════ */
.stats-section { border-top: 1px solid var(--line); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 3.5rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--brass-500);
  line-height: 1;
}
.stat__num sup { font-size: 0.5em; color: var(--brass-300); }
.stat__num--word { font-style: italic; }
.stat__label {
  color: var(--stone-400);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.8rem;
}
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; gap: 3rem 1.5rem; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ══════════════ QUOTE ══════════════ */
.quote {
  background: var(--ink-900);
  text-align: center;
  border-top: 1px solid var(--line);
}
.quote .mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--brass-500);
  line-height: 0.4;
  display: block;
  margin-bottom: 1.4rem;
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto;
}
.quote blockquote em { color: var(--brass-500); }
.quote cite {
  display: block;
  margin-top: 2.2rem;
  font-style: normal;
  color: var(--stone-400);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ══════════════ VÍDEO / INSTAGRAM ══════════════ */
.video-frame {
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  width: 100%;
  max-width: 400px;
}
.video-frame__embed {
  position: relative;
  width: 100%;
  /* proporção que acomoda o vídeo vertical + cabeçalho/rodapé do Instagram */
  aspect-ratio: 400 / 640;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--paper-200);
  background: #fff;
}
.video-frame__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-frame__fallback {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  color: var(--brass-600);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}
.video-frame__fallback:hover { text-decoration: underline; }

/* ══════════════ TRIO (reconhecimento) ══════════════ */
.trio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(3rem, 7vh, 5rem);
  max-width: 980px;
  margin-inline: auto;
}
.trio img { width: 100%; object-fit: cover; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

/* ══════════════ GALERIA ══════════════ */
.gallery { background: var(--paper-100); color: var(--ink-900); }
.gallery .eyebrow { color: var(--brass-600); }
.gallery .chapter-title em { color: var(--brass-600); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 3.5rem;
}
.grid figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  will-change: transform;
  background: var(--paper-200);
}
.grid figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}
.grid figure:hover img,
.grid figure:focus-visible img { transform: scale(1.04); }
.grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  color: var(--paper-50);
  background: linear-gradient(to top, rgba(14, 15, 18, 0.72), transparent);
  margin: 0;
}
@media (max-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════ LIGHTBOX ══════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.94);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(92vw, 1100px); max-height: 88vh; text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}
.lightbox figcaption {
  color: var(--stone-400);
  margin-top: 1.1rem;
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-size: 2.4rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--paper-50);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.lightbox__close:hover { opacity: 1; color: var(--brass-300); }

/* ══════════════ FOOTER ══════════════ */
footer {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding-block: clamp(5rem, 12vh, 8rem);
}
footer h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 16ch; }
footer h2 em { color: var(--brass-500); }
footer .footer__verse {
  margin-top: 2rem;
  color: var(--stone-400);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 46ch;
}
footer .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
  color: var(--stone-400);
  font-size: 0.85rem;
}
footer .row nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer a {
  color: var(--brass-300);
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover { color: var(--brass-500); }

/* ══════════════ ACESSIBILIDADE / REDUCED MOTION ══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .scrollcue span { animation: none !important; }
}
