/* Congresso Incendiários: página entre edições (views/index-memorial.html). HTML estático, sem dependências. */

@font-face { font-family: Poppins; src: url(poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(poppins-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(poppins-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --fogo: #e8420f;
  --fogo-forte: #c9330a;
  --ouro: #f09410;
  --ouro-claro: #ffc35a;
  --brasa: #5c2108;
  --brasa-escura: #3a1406;
  --carvao: #1c0b05;
  --papel: #fff8ee;
  --creme: #fdebd3;
  --areia: #f3dcc0;
  --tinta: #3b1c0e;
  --tinta-suave: #7a5341;
  --linha: rgb(92 33 8 / 14%);
  --raio: 18px;
  --sombra: 0 18px 40px -22px rgb(58 20 6 / 55%);
  --largura: 1180px;
  --cabecalho: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecalho) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1rem/1.65 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .7rem 1rem; border-radius: 10px; background: var(--ouro); color: var(--carvao); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }
.container { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }

/* Rótulos e títulos de seção */
.kicker { color: var(--ouro); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.section-head { max-width: 46rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { margin: .7rem 0 .9rem; color: var(--brasa); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 600; letter-spacing: -.02em; }
.section-head p:last-child { color: var(--tinta-suave); }
.section-head--light h2 { color: var(--ouro-claro); }
.section-head--light p:last-child { color: rgb(255 236 214 / 78%); }

/* Botões */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.6rem; border: 0; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--fire { background: linear-gradient(135deg, var(--ouro) 0%, var(--fogo) 100%); color: #fff; box-shadow: 0 14px 30px -14px rgb(232 66 15 / 80%); }
.button--glass { background: rgb(255 255 255 / 10%); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%); backdrop-filter: blur(6px); }
.button--glass:hover { background: rgb(255 255 255 / 18%); }
.button--ghost { background: transparent; color: var(--brasa); box-shadow: inset 0 0 0 1.5px var(--brasa); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--fogo-forte); font-size: .9rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--cabecalho);
  display: flex; align-items: center; gap: 2rem; padding: 0 max(1.25rem, calc((100% - var(--largura)) / 2));
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-solid { background: rgb(28 11 5 / 88%); box-shadow: 0 10px 30px -20px #000; backdrop-filter: blur(10px); }
.header-brand img { width: 140px; height: auto; opacity: 0; transition: opacity .3s ease; }
.header.is-solid .header-brand img { opacity: 1; }
.header-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.header-nav a { color: rgb(255 240 222 / 86%); font-size: .9rem; font-weight: 500; text-decoration: none; }
.header-nav a:hover { color: var(--ouro-claro); }
.header-cta { padding: .55rem 1.1rem; border-radius: 999px; background: var(--ouro); color: var(--carvao); font-size: .85rem; font-weight: 600; text-decoration: none; }
.header-cta:hover { background: var(--ouro-claro); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; margin-left: auto; border: 0; border-radius: 12px; background: rgb(255 255 255 / 12%); cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 1.3rem; height: 2px; margin: auto; border-radius: 2px; background: #fff; content: ""; transition: transform .25s ease; position: relative; }
.menu-toggle-bars::before { position: absolute; top: -6px; }
.menu-toggle-bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Abertura */
.hero {
  position: relative; display: grid; place-items: center; min-height: 100svh; padding: calc(var(--cabecalho) + 2rem) 1.25rem 5rem;
  overflow: hidden; color: #fff; text-align: center; isolation: isolate;
  background: var(--carvao) url(hero-fogo-2400.jpg) center / cover no-repeat;
}
.hero::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 42% 55% at 50% 50%, rgb(28 11 5 / 62%) 0%, rgb(28 11 5 / 0%) 100%), linear-gradient(to bottom, rgb(28 11 5 / 45%), transparent 22%, transparent 70%, var(--carvao)); content: ""; }
.hero-content { max-width: 60rem; }
.hero-kicker { color: var(--ouro-claro); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.hero h1 { margin: 1.5rem auto 1.25rem; }
.hero h1 img { width: min(88vw, 720px); margin: 0 auto; filter: drop-shadow(0 10px 30px rgb(0 0 0 / 55%)); }
.hero-tagline { font-size: clamp(1.15rem, .9rem + 1.1vw, 1.6rem); font-weight: 500; line-height: 1.4; text-wrap: balance; }
.hero-verse { margin-top: 1rem; color: rgb(255 236 214 / 80%); font-size: .95rem; }
.hero-verse cite { color: var(--ouro-claro); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.25rem; }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; width: 1.6rem; height: 2.6rem; translate: -50% 0; border: 2px solid rgb(255 255 255 / 55%); border-radius: 999px; }
.hero-scroll span { position: absolute; top: .45rem; left: 50%; width: 4px; height: 8px; translate: -50% 0; border-radius: 4px; background: #fff; animation: rolar 1.8s ease-in-out infinite; }
@keyframes rolar { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* O congresso */
.intro { position: relative; padding: clamp(4.5rem, 8vw, 7.5rem) 0 4rem; background: linear-gradient(180deg, var(--papel) 0%, var(--creme) 100%); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.intro-text h2 { margin: .8rem 0 1.4rem; color: var(--brasa); font-size: clamp(2rem, 1.25rem + 2.8vw, 3.35rem); font-weight: 600; letter-spacing: -.025em; }
.intro-text h2 span { display: block; color: var(--fogo); }
.intro-text p + p { margin-top: 1rem; }
.intro-text p { color: var(--tinta-suave); }
.intro-text .lead { color: var(--tinta); font-size: 1.12rem; }
.intro-photos { position: relative; min-height: 30rem; }
.intro-photo { position: absolute; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra); }
.intro-photo--main { inset: 0 10% 12% 0; width: 90%; height: 88%; }
.intro-photo--side { right: 0; bottom: 0; width: 38%; height: 58%; filter: saturate(1.1) brightness(.72) contrast(.7); }
.intro-flame { position: absolute; top: -2.2rem; right: 4%; width: 5.5rem; opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--linha); }
.stats div { display: flex; flex-direction: column; padding: 1.6rem 1.25rem 0; border-left: 1px solid var(--linha); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { order: 2; color: var(--brasa); font-weight: 600; }
.stats dd { order: 1; margin: 0; color: var(--fogo); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.3rem); font-weight: 700; line-height: 1; }
.stats span { order: 3; color: var(--tinta-suave); font-size: .85rem; }

/* Edições */
.editions { padding: clamp(4.5rem, 8vw, 7rem) 0; background: var(--papel); }
.years { position: relative; display: flex; justify-content: space-between; gap: .25rem; max-width: 60rem; margin: -1rem auto 1.25rem; padding: 1rem 1.25rem 1.5rem; overflow-x: auto; scrollbar-width: none; }
.years::-webkit-scrollbar { display: none; }
.years::before { position: absolute; top: 2.05rem; right: 2.25rem; left: 2.25rem; height: 2px; background: linear-gradient(90deg, var(--areia), var(--ouro), var(--fogo)); content: ""; }
.year { position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 3.6rem; padding: 0; border: 0; background: none; color: var(--tinta-suave); font-weight: 600; font-size: .95rem; cursor: pointer; }
.year-dot { width: 2.1rem; height: 2.1rem; border: 2px solid var(--areia); border-radius: 50%; background: var(--papel); transition: all .25s ease; }
.year:hover .year-dot { border-color: var(--ouro); }
.year[aria-selected="true"] { color: var(--fogo); }
.year[aria-selected="true"] .year-dot { border-color: var(--fogo); background: radial-gradient(circle, var(--ouro-claro) 0 25%, var(--fogo) 60%); box-shadow: 0 0 0 6px rgb(232 66 15 / 15%), 0 6px 18px rgb(232 66 15 / 45%); }
.js .edition[data-inactive] { display: none; }
.edition { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; outline: 0; }
.no-js .edition + .edition, html:not(.js) .edition + .edition { margin-top: 4rem; }
.edition.is-entering { animation: surgir .45s ease both; }
@keyframes surgir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.edition-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--raio); overflow: hidden; background: var(--carvao); box-shadow: var(--sombra); cursor: zoom-in; aspect-ratio: 16 / 10; }
.edition-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s ease; }
.edition-cover:hover img { transform: scale(1.03); }
.edition-year { position: absolute; left: 1.25rem; bottom: .2rem; color: #fff; font-size: clamp(3.2rem, 2rem + 4vw, 5.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; text-shadow: 0 6px 24px rgb(0 0 0 / 60%); }
.edition-cover::after { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(28 11 5 / 75%)); content: ""; pointer-events: none; }
.edition-year { z-index: 1; }
.edition-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .75rem; }
.edition-thumb { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--carvao); cursor: zoom-in; aspect-ratio: 4 / 3; }
.edition-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.edition-thumb:hover img { transform: scale(1.06); }
.edition-body h3 { margin: 0 0 .7rem; color: var(--brasa); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; }
.edition-text { color: var(--tinta-suave); }
.edition-messages { margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--linha); }
.edition-messages h4 { margin-bottom: .8rem; color: var(--brasa); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.edition-messages--empty p { margin-bottom: 1rem; color: var(--tinta-suave); }
.messages { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; max-height: 22rem; overflow-y: auto; scrollbar-width: thin; }
.message { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: .9rem; padding: .45rem; border-radius: 12px; text-decoration: none; transition: background-color .2s ease; }
.message:hover { background: var(--creme); }
.message img { width: 5.5rem; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; }
.message-text { display: flex; flex-direction: column; min-width: 0; }
.message-title { color: var(--brasa); font-weight: 600; line-height: 1.3; }
.message-meta { color: var(--tinta-suave); font-size: .85rem; line-height: 1.35; }
.message-time { padding: .2rem .55rem; border-radius: 6px; background: var(--brasa); color: #fff; font-size: .75rem; font-variant-numeric: tabular-nums; }
.editions-nav { display: none; }
.js .editions-nav { display: flex; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.round-button { width: 3rem; height: 3rem; border: 1.5px solid var(--areia); border-radius: 50%; background: var(--papel); color: var(--brasa); font-size: 1.1rem; cursor: pointer; transition: all .2s; }
.round-button:hover { border-color: var(--fogo); color: var(--fogo); }

/* Quem já esteve conosco */
.people { position: relative; padding: clamp(4.5rem, 8vw, 7rem) 0; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 50% 0%, #7a2c0a 0%, var(--brasa) 45%, var(--brasa-escura) 100%); }
.people::before { position: absolute; top: -6rem; right: -6rem; width: 26rem; height: 30rem; background: url(chama.png) center / contain no-repeat; opacity: .08; content: ""; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.chip { padding: .45rem 1.05rem; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; background: transparent; color: rgb(255 240 222 / 85%); font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ouro-claro); }
.chip[aria-pressed="true"] { border-color: var(--ouro); background: var(--ouro); color: var(--carvao); font-weight: 600; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.person[hidden] { display: none; }
.person-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.person-photo { position: relative; display: block; overflow: hidden; border-radius: 16px; background: linear-gradient(160deg, #8a3410, var(--carvao)); aspect-ratio: 4 / 5; box-shadow: 0 16px 30px -18px #000; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.95); transition: filter .4s ease, transform .5s ease; }
.person-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(240 148 16 / 45%), rgb(232 66 15 / 55%) 55%, rgb(28 11 5 / 80%)); mix-blend-mode: multiply; content: ""; transition: opacity .4s ease; }
.person-card:hover .person-photo img, .person-card:focus-visible .person-photo img { filter: none; transform: scale(1.04); }
.person-card:hover .person-photo::after, .person-card:focus-visible .person-photo::after { opacity: .25; }
.person-initials { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ouro-claro); font-size: 3.2rem; font-weight: 600; letter-spacing: -.04em; background: url(chama.png) center 60% / 55% no-repeat; z-index: 1; }
.person-name { margin-top: .9rem; color: #fff; font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.person-years { color: var(--ouro-claro); font-size: .8rem; font-weight: 500; }
.person-action { margin-top: auto; padding-top: .6rem; color: rgb(255 236 214 / 72%); font-size: .8rem; }
.person-action span { color: var(--ouro); font-size: .7rem; }
.person-action--quiet { color: rgb(255 236 214 / 55%); }
.person-card:hover .person-action { color: #fff; }
.people-note { max-width: 40rem; margin: 3rem auto 0; color: rgb(255 236 214 / 65%); font-size: .85rem; text-align: center; }

/* Palavras que ficaram */
.quotes { padding: clamp(4.5rem, 8vw, 7rem) 0; background: var(--creme) url(chama.png) right -6rem bottom -10rem / 26rem no-repeat; }
.quotes-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; margin: 0; padding: 1.75rem; border-radius: var(--raio); background: var(--papel); box-shadow: var(--sombra); }
.quote blockquote { margin: 0; }
.quote blockquote p { color: var(--brasa); font-size: 1.12rem; font-weight: 500; line-height: 1.5; }
.quote blockquote p::before { display: block; height: 2.4rem; color: var(--ouro); font-size: 4rem; line-height: 1; content: "“"; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; }
.quote figcaption img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; object-position: center 20%; filter: grayscale(1); }
.quote figcaption span { display: flex; flex-direction: column; color: var(--tinta); font-weight: 600; line-height: 1.3; }
.quote figcaption small { color: var(--tinta-suave); font-weight: 400; }

/* Momentos */
.moments { padding: clamp(4.5rem, 8vw, 7rem) 0; background: var(--papel); }
.moments-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 14rem 14rem; grid-template-areas: "a a b c e" "a a b d e"; gap: 1rem; }
.moment:nth-child(1) { grid-area: a; }
.moment:nth-child(2) { grid-area: b; }
.moment:nth-child(3) { grid-area: c; }
.moment:nth-child(4) { grid-area: e; }
.moment:nth-child(5) { grid-area: d; }
.moment { position: relative; padding: 0; border: 0; border-radius: var(--raio); overflow: hidden; background: var(--carvao); cursor: zoom-in; text-decoration: none; }
a.moment { cursor: pointer; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.moment:hover img { transform: scale(1.05); }
.moment span { position: absolute; left: .9rem; bottom: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgb(28 11 5 / 70%); color: #fff; font-size: .78rem; font-weight: 500; backdrop-filter: blur(4px); }

/* Próxima edição */
.next { position: relative; padding: clamp(5rem, 9vw, 8rem) 0; overflow: hidden; color: #fff; text-align: center; background: var(--carvao) url(hero-fogo-1200.jpg) center / cover no-repeat; isolation: isolate; }
.next::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(58 20 6 / 82%), rgb(28 11 5 / 94%)); content: ""; }
.next-inner { max-width: 60rem; }
.next-flame { width: 4.5rem; margin: 0 auto 1.25rem; animation: tremular 3.5s ease-in-out infinite; transform-origin: bottom; }
@keyframes tremular { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.05) rotate(-2deg); } }
.next h2 span { display: block; }
@media (min-width: 801px) { .next h2 span { white-space: nowrap; } }
.next h2 { margin: .8rem 0 1.2rem; color: var(--ouro-claro); font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; }
.next p { max-width: 42rem; margin-inline: auto; color: rgb(255 236 214 / 82%); }
.next-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }
.next-place { display: flex; flex-direction: column; gap: .2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / 15%); color: rgb(255 236 214 / 75%); font-size: .9rem; font-style: normal; }
.next-place strong { color: #fff; }
.next-place a { color: var(--ouro-claro); font-weight: 600; text-decoration: none; }

/* Rodapé */
.footer { padding: 2.5rem 0; background: var(--carvao); color: rgb(255 236 214 / 65%); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-inner img { width: 130px; }
.footer-links { display: flex; gap: 1.25rem; }
.footer a { color: var(--ouro-claro); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Visualizador de vídeo e imagem */
.viewer { width: min(100% - 2rem, 64rem); max-height: calc(100% - 2rem); padding: 0; border: 0; border-radius: var(--raio); background: var(--carvao); color: #fff; box-shadow: 0 30px 80px -20px #000; }
.viewer::backdrop { background: rgb(12 5 2 / 82%); backdrop-filter: blur(4px); }
.viewer-head { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem 1.25rem; }
.viewer-title { flex: 1; font-weight: 600; font-size: .95rem; }
.viewer-external { color: var(--ouro-claro); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.viewer-external[hidden] { display: none; }
.viewer-close { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: rgb(255 255 255 / 20%); }
.viewer-stage iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.viewer-stage img { width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; background: #000; }

/* Aparição suave */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Telas menores */
@media (max-width: 980px) {
  .intro-grid, .edition { grid-template-columns: 1fr; }
  .intro-photos { min-height: 24rem; }
  .moments-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 16rem 11rem 11rem 11rem; grid-template-areas: "a a" "b e" "b e" "c d"; }
  .quotes-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  :root { --cabecalho: 64px; }
  .hero { background-image: url(hero-fogo-1200.jpg); }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-nav { position: fixed; inset: var(--cabecalho) 0 auto; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; background: rgb(28 11 5 / 96%); transform: translateY(-120%); transition: transform .3s ease; }
  .header-nav.is-open { transform: none; }
  .header-nav a { padding: .9rem 0; border-bottom: 1px solid rgb(255 255 255 / 10%); font-size: 1rem; }
  .header-brand img { opacity: 1; }
  .stats { grid-template-columns: 1fr; }
  .stats div, .stats div:first-child { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--linha); }
  .years { justify-content: flex-start; gap: 1rem; }
  .years::before { right: auto; width: 46rem; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .message { grid-template-columns: 4.5rem 1fr auto; gap: .7rem; }
  .message img { width: 4.5rem; }
}
@media (max-width: 520px) {
  .intro-photos { min-height: 19rem; }
  .moments-grid { grid-template-rows: 13rem 9rem 9rem 9rem; }
  .quotes-track { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Capa que precisa aparecer inteira (arte com texto) */
.edition-cover--whole img { object-fit: contain; object-position: center 40%; padding: 0 1.5rem 3rem; }
