/* =========================================================
   HOMO LONGEVUS — Landing page
   Preto e branco · editorial · sóbrio
   ========================================================= */

:root {
  --ink: #0e0e0e;
  --ink-soft: #2a2a2a;
  --paper: #f5f4f0;
  --paper-pure: #ffffff;
  --gray-1: #6b6b6b;
  --gray-2: #a3a3a3;
  --line: rgba(14, 14, 14, 0.14);
  --line-light: rgba(245, 244, 240, 0.18);

  /* Cores da espiral da capa — usar com parcimônia */
  --c-cyan: #2ec5d3;
  --c-blue: #4f6bed;
  --c-violet: #8b5cf6;
  --c-orange: #f2653a;
  --grad: linear-gradient(90deg, var(--c-cyan), var(--c-blue) 40%, var(--c-violet) 70%, var(--c-orange));

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 14vw, 180px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 820px; }

/* ---------- Tipografia base ---------- */
em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--grad);
}

/* ---------- Espiral (símbolo do livro) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.spiral {
  fill: none;
  stroke: url(#gradLogo);
  stroke-linecap: round;
}
.spiral--nav { width: 22px; height: 22px; flex: none; }

/* ---------- Barra de progresso de leitura ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}
.eyebrow--light { color: var(--gray-2); }

.section { padding: var(--section) 0; position: relative; }

.section__head { margin-bottom: clamp(48px, 7vw, 88px); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 18ch;
}
.section__title em { color: var(--gray-1); }

.body-copy {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 20px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--small { padding: 11px 20px; font-size: 11px; }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }

/* Botão principal de compra: preto, com a faixa de cores da capa no hover */
.btn--grad {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 40px;
}
.btn--grad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
}
.btn--grad::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
}
.btn--grad:hover { background: var(--ink); color: var(--paper); border-color: transparent; }
.btn--grad:hover::before { opacity: 1; }
.btn--grad span { transition: transform 0.35s var(--ease); }
.btn--grad:hover span { transform: translateX(4px); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease);
}
.link-arrow span { display: inline-block; transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  border-color: var(--line);
}
.nav.is-dark:not(.is-open) { color: var(--paper); }
.nav.is-dark.is-scrolled { background: rgba(14, 14, 14, 0.9); border-color: var(--line-light); }
.nav.is-dark .btn--small { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__brand .spiral { transition: transform 0.8s var(--ease); }
.nav__brand:hover .spiral { transform: rotate(120deg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a:not(.btn) {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  position: relative;
  color: inherit;
}
.nav__toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.hero__title em { color: var(--gray-1); }

.hero__lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 44px;
}
.hero__lead strong { font-weight: 600; color: var(--ink); }

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero__number {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 4vw, 56px);
}
.spiral--hero {
  position: absolute;
  right: -8%;
  top: 50%;
  width: clamp(260px, 34vw, 460px);
  height: clamp(260px, 34vw, 460px);
  margin-top: calc(clamp(260px, 34vw, 460px) / -2);
  opacity: 0.1;
  z-index: -1;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__number { isolation: isolate; }
.hero__count {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(140px, 22vw, 300px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.hero__caption {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-top: 18px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  left: 0; top: -50%;
  width: 1px; height: 50%;
  background: var(--ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* =========================================================
   SAGA / MANIFESTO
   ========================================================= */
.saga { border-top: 1px solid var(--line); }

.manifesto {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.3;
  margin: 0 0 36px;
}
.manifesto .hl {
  font-style: italic;
  background-image: var(--grad);
  background-size: 0% 1px;
  background-position: 0 92%;
  background-repeat: no-repeat;
  transition: background-size 1.4s var(--ease) 0.4s;
}
.manifesto.is-visible .hl { background-size: 100% 2px; }

.saga .body-copy { margin-top: 56px; color: var(--gray-1); }

/* =========================================================
   LINHA DA VIDA
   ========================================================= */
.lifeline {
  background: var(--ink);
  color: var(--paper);
}
.lifeline .section__title em { color: var(--gray-2); }

.lifeline__panel {
  border-top: 1px solid var(--line-light);
  padding-top: clamp(40px, 6vw, 72px);
}

.lifeline__readout {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  min-height: 200px;
  margin-bottom: 56px;
}

.lifeline__age {
  font-family: var(--serif);
  font-size: clamp(96px, 13vw, 170px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.lifeline__age small {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.lifeline__copy h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.lifeline__copy p {
  margin: 0;
  color: var(--gray-2);
  max-width: 52ch;
}
.lifeline__copy { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.lifeline__copy.is-changing { opacity: 0; transform: translateY(8px); }

/* Range */
.lifeline__track { position: relative; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  --pct: 25%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background:
    linear-gradient(to right, transparent var(--pct), var(--ink-soft) var(--pct)),
    var(--grad);
}
input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--ink-soft);
}
input[type="range"]::-moz-range-progress {
  height: 1px;
  background: var(--grad);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 1px var(--paper);
  transition: transform 0.25s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 1px var(--paper);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

.lifeline__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-2);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   TEMAS
   ========================================================= */
.themes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.theme {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: clamp(36px, 4.5vw, 56px) clamp(0px, 3vw, 44px) clamp(36px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.theme:nth-child(even) {
  padding-left: clamp(24px, 3vw, 44px);
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.theme__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gray-1);
  line-height: 1.2;
}
.theme__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.theme__q {
  margin: 0;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* =========================================================
   FAIXA DE IMAGEM (longevidade)
   ========================================================= */
.band {
  margin: 0;
  position: relative;
  height: clamp(420px, 82vh, 820px);
  overflow: hidden;
  background: var(--ink);
}
.band__media {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 2.4s var(--ease);
}
.band.is-visible .band__media img { filter: grayscale(0.15) contrast(1.02); }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.75), rgba(14, 14, 14, 0) 55%);
  pointer-events: none;
}
.band__caption {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(32px, 6vw, 72px);
  z-index: 2;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.15;
  max-width: var(--max);
}
.band__caption em { color: #d9d7d0; }
.band__line {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--grad);
  margin-bottom: 22px;
}

/* =========================================================
   PERGUNTAS
   ========================================================= */
.questions { border-bottom: 1px solid var(--line); }
.questions .section__title { max-width: 20ch; }

.questions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.questions__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.questions__list li::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.questions__list li:hover::after { transform: scaleX(1); }
.q__n {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray-1);
  font-variant-numeric: tabular-nums;
}
.questions__list p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  transition: transform 0.6s var(--ease);
}
.questions__list li:hover p { transform: translateX(10px); }
.questions__list em {
  background: linear-gradient(var(--gray-1), var(--gray-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.questions__list li:hover em { background-image: var(--grad); }

/* =========================================================
   AUTOR
   ========================================================= */
.author__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.author__photo {
  margin: 0;
  position: relative;
}
.author__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 1.2s var(--ease);
}
.author__photo:hover img { filter: grayscale(0) contrast(1); }
.author__photo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 38%;
  height: 2px;
  background: var(--grad);
}

.author__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin: 0 0 32px;
}
.author__name em { color: var(--gray-1); }

.author__creds {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.author__creds li {
  padding: 22px 16px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}
.author__creds span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 8px;
}

/* =========================================================
   GALERIA
   ========================================================= */
.gallery {
  background: var(--ink);
  color: var(--paper);
}
.gallery .section__title em { color: var(--gray-2); }

.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.gallery__intro {
  margin: 0;
  max-width: 38ch;
  color: var(--gray-2);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, clamp(220px, 24vw, 340px));
  gap: 14px;
}
.g {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
}
.g--wide { grid-column: span 2; }
.g--tall { grid-column: 3; grid-row: 1 / span 2; }
.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transform: scale(1.02);
  transition: filter 1s var(--ease), transform 1.4s var(--ease);
}
.g--tall img { object-position: center 30%; }
.g::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.g:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.06); }
.g:hover::after { transform: scaleX(1); }

/* =========================================================
   COMPRAR
   ========================================================= */
.buy {
  background: var(--paper);
  overflow: hidden;
}

.buy__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.buy__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 28px 0 44px;
}
.buy__lead strong { font-weight: 600; color: var(--ink); }

.buy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.buy__note {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--gray-1);
  letter-spacing: 0.04em;
}

/* Livro — releitura da capa real em CSS */
.book {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  perspective: 1400px;
  container-type: inline-size;
}
.book__cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 28%, #2a2a2e 0%, #161618 60%, #0f0f10 100%);
  color: #f2f2f2;
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: rotateY(-14deg);
  transform-origin: left center;
  box-shadow: 34px 34px 60px rgba(0, 0, 0, 0.35), inset 6px 0 12px rgba(255, 255, 255, 0.04);
  transition: transform 0.9s var(--ease);
  z-index: 2;
}
.book:hover .book__cover { transform: rotateY(-4deg); }
.book__spine {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 18px;
  background: #0a0a0b;
  transform: translateX(-17px) rotateY(76deg);
  transform-origin: right center;
}

.book__author {
  font-size: 3.4cqi;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.spiral--cover {
  width: 46%;
  aspect-ratio: 1;
  height: auto;
  margin: 8% 0 9%;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.35));
}
.book__titles { display: flex; flex-direction: column; gap: 6px; }
.book__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10cqi;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.book__sub {
  font-size: 3.2cqi;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  color: #d8d8d8;
}
.book__rule {
  display: block;
  width: 100%;
  height: 2px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, transparent, var(--c-blue) 25%, var(--c-violet) 55%, var(--c-orange));
}
.book__tag {
  font-size: 3cqi;
  line-height: 1.5;
  color: #cfcfcf;
  max-width: 22ch;
}
.book__tag b { color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--gray-2);
  border-top: 1px solid var(--line-light);
  padding: 32px 0;
  font-size: 13px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__top { text-decoration: none; }
.footer__top:hover { color: var(--paper); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__number {
    align-items: flex-start;
    text-align: left;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
  .hero__count { font-size: clamp(96px, 26vw, 180px); }
  .hero__caption { margin-top: 0; }

  .author__grid { grid-template-columns: 1fr; }
  .author__photo { max-width: 460px; }
  .buy__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .g, .g--tall, .g--wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .g--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .book { width: min(78%, 300px); }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links a:not(.btn) { font-family: var(--serif); font-size: 32px; letter-spacing: 0; font-weight: 400; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { color: var(--ink); }
  .nav.is-open .btn--small { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .themes__list { grid-template-columns: 1fr; }
  .theme,
  .theme:nth-child(even) {
    padding: 36px 0;
    border-left: 0;
    grid-template-columns: 48px 1fr;
  }

  .lifeline__readout { grid-template-columns: 1fr; min-height: 300px; align-items: start; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .author__creds { grid-template-columns: 1fr; }
  .author__creds li { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 22px; }
  .buy__actions .btn { width: 100%; }
  .lifeline__ticks span:nth-child(even) { visibility: hidden; }
  .questions__list li { grid-template-columns: 40px 1fr; gap: 12px; }
  .gallery__grid { gap: 8px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .band__media img { filter: grayscale(0.15); }
}
