/* =========================================================
   BIOTROPICA — camada "streaming + cinematográfica"
   Só usa os tokens de styles.css (paleta e tipografia oficiais).
   1. Abertura (logo → hero)            4. Popup do setor
   2. Hero-catálogo                     5. Painéis fotográficos
   3. Trilho de setores
                                        6. CTA sobre foto
   ========================================================= */

/* =========================================================
   1. ABERTURA — a logo aparece no centro e desliza até o seu
      lugar no menu, enquanto o site surge por trás.
      O voo é feito pelo JS (js/setores.js); sem JS, some sozinha.
   ========================================================= */
.ident { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; animation: identOut .6s var(--ease) 2.6s forwards; }
.ident.is-js { animation: none; }
.ident.is-flying { pointer-events: none; }
.ident.is-done, html.no-ident .ident { display: none; }
.ident::before {
  content: ""; position: absolute; inset: 0; background: var(--bg);
  transition: opacity .85s var(--ease);
}
.ident.is-flying::before { opacity: 0; }
/* mesmas proporções da marca do menu (42px / 28px / .6rem), ampliadas */
.ident__lockup {
  --k: 3; position: relative; display: flex; align-items: center; gap: calc(.6rem * var(--k));
  transform-origin: 0 0; transition: transform .85s var(--ease);
}
.ident__mark {
  width: calc(42px * var(--k)); height: calc(42px * var(--k)); color: var(--green); display: block;
  animation: identMark .8s var(--ease-spring) .05s both;
}
.ident__word { height: calc(28px * var(--k)); width: auto; animation: identWord .7s var(--ease-out) .35s both; }
[data-theme="dark"] .ident__mark { color: #fff; }
[data-theme="dark"] .ident__word { filter: brightness(0) invert(1); }
@keyframes identMark { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }
@keyframes identWord { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes identOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 720px) { .ident__lockup { --k: 1.9; } }

/* a marca do hero só aparece quando a logo da abertura pousa sobre ela */
html.ident-on:not(.ident-done) .hero__brand { visibility: hidden; }

/* o título do hero entra palavra a palavra quando a logo já está a caminho do menu */
html.ident-on.fx .hero__title.split .w { transition-delay: calc(1.3s + var(--wi, 0) * 70ms); }
html.ident-on.hero-in .scribble path { transition-delay: 2.4s; }

/* =========================================================
   2. HERO-CATÁLOGO — nome, logo e especialidades no topo e,
      na mesma dobra, os cards para escolher o empreendimento
   ========================================================= */
/* composição centrada: marca, especialidades e pergunta no eixo da página;
   os cards ocupam a largura toda e o texto de apoio fecha a tela */
.hero--catalog { min-height: 100svh; justify-content: center; gap: clamp(1.4rem, 3vh, 2.4rem); padding: 5.8rem 0 2.6rem; }
.hero--catalog .hero__content { max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero--catalog .eyebrow { margin-bottom: .8rem; }
.hero--catalog .hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: .2rem 0 clamp(1.4rem, 3.5vh, 2.4rem); }
@media (min-width: 900px) { .hero--catalog .hero__title br { display: none; } } /* uma linha só: sobra altura para os cards */
/* texto no centro: véu uniforme sobre a foto (o lateral só protegia a coluna da esquerda) */
.hero--catalog .hero__bg::after {
  background: linear-gradient(180deg, rgba(251,251,246,.94), rgba(251,251,246,.87) 45%, rgba(251,251,246,.8) 78%, rgba(251,251,246,.88));
}
[data-theme="dark"] .hero--catalog .hero__bg::after {
  background: linear-gradient(180deg, rgba(10,35,24,.9), rgba(10,35,24,.76) 45%, rgba(10,35,24,.66) 78%, rgba(10,35,24,.84));
}

/* mesmas proporções da marca do menu (42px / 28px / .6rem): a logo da abertura pousa aqui */
.hero__brand { --k: 2.5; display: flex; width: fit-content; align-items: center; gap: calc(.6rem * var(--k)); margin-bottom: 1.2rem; }
.hero__brand-mark { width: calc(42px * var(--k)); height: calc(42px * var(--k)); color: var(--green); display: block; flex: 0 0 auto; }
.hero__brand-word { height: calc(28px * var(--k)); width: auto; }
[data-theme="dark"] .hero__brand-mark { color: #fff; }
[data-theme="dark"] .hero__brand-word { filter: brightness(0) invert(1); }
/* no topo a marca grande já está na tela: a do menu só entra ao rolar */
.nav .brand { transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
.nav:not(.is-scrolled) .brand {
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}

.hero__rail { --rail-pad: 6px; align-self: stretch; margin-inline: -6px; text-align: left; scroll-margin-top: 6rem; }
/* pergunta no centro, setas à direita */
.hero__rail .rail__head { display: grid; grid-template-columns: 1fr auto 1fr; padding-inline: 6px; }
.hero__rail .rail__title { grid-column: 2; text-align: center; color: var(--text); font-size: clamp(1.25rem, 2vw, 1.55rem); }
.hero__rail .rail__title small { color: var(--text-soft); font-size: .86rem; }
.hero__rail .rail__nav { grid-column: 3; justify-self: end; }
.hero__rail .rail__btn { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.hero__rail .rail__btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.hero__rail .rail__btn:disabled:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.hero__rail .rail__track { padding-block: 1.1rem 1.6rem; }
/* cards em formato de capa de filme (2:3): título no centro, "gêneros" e botão.
   Cinco capas inteiras e o começo da sexta: mostra que o trilho continua */
.hero__rail .rail__item { flex-basis: max(186px, calc((100% - 5.5rem) / 5.3)); }
.hero__rail .poster { aspect-ratio: 2 / 3; box-shadow: var(--shadow-md); }
.hero__rail .poster::after {
  background: linear-gradient(180deg, rgba(8, 42, 30, .38) 0%, rgba(8, 42, 30, 0) 24%, rgba(8, 42, 30, .1) 44%, rgba(8, 42, 30, .86) 72%, rgba(8, 42, 30, .97));
}
.hero__rail .poster__num { font-size: 2.4rem; }
.hero__rail .poster__body { justify-items: center; text-align: center; gap: .5rem; padding: 1rem .9rem 1.15rem; }
.hero__rail .poster__title { font-size: 1.22rem; text-wrap: balance; }
.poster__tags { font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .86); }
.hero__rail .poster__desc { font-size: .78rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.hero__rail .poster__more {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .2rem; padding: .5rem 1.05rem; border-radius: 8px;
  background: #fff; color: var(--forest-950); font-size: .78rem; letter-spacing: .02em; text-transform: none;
  transition: transform .35s var(--ease-spring), background .3s;
}
.hero__rail .poster:hover .poster__more { background: var(--yellow); transform: scale(1.04); }
.hero__rail .poster:hover .poster__more span { transform: none; }

/* texto de apoio à esquerda, botões à direita, selos no centro */
.hero__more { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero__more .hero__lead { max-width: 660px; }
.hero__more .hero__actions { margin-top: 0; flex-wrap: nowrap; }
.hero__more .hero__badges { grid-column: 1 / -1; justify-content: center; margin-top: .4rem; }

/* telas baixas (notebook, zoom do navegador): compacta para os cards caberem sem rolar */
@media (max-height: 780px) and (min-width: 721px) {
  .hero--catalog { padding-top: 4.9rem; gap: 1.2rem; }
  .hero__brand { --k: 1.9; margin-bottom: .8rem; }
  .hero--catalog .hero__title { font-size: clamp(2rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
  /* capas menores e um pouco mais baixas (3:4) para o título de cada uma caber na dobra */
  .hero__rail .rail__item { flex-basis: max(170px, calc((100% - 6.6rem) / 6.2)); }
  .hero__rail .poster { aspect-ratio: 3 / 4; }
  .hero__rail .poster__title { font-size: 1.05rem; }
  .hero__rail .rail__track { padding-block: .8rem 1.2rem; }
}

@media (max-width: 980px) {
  .hero__more { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__more .hero__actions { flex-wrap: wrap; justify-content: center; }
  .hero__rail .rail__item { flex-basis: max(190px, calc((100% - 3.3rem) / 3.4)); }
}
@media (max-width: 720px) {
  .hero--catalog { padding-top: 5.4rem; }
  /* cabe "Educação Ambiental." numa linha (o ponto final caía sozinho na linha de baixo) */
  .hero--catalog .hero__title { font-size: clamp(1.6rem, 7.6vw, 2.3rem); }
  .hero--catalog .eyebrow { font-size: .64rem; letter-spacing: .1em; padding-inline: .8rem; }
  .hero__brand { --k: 1.6; }
  .hero__rail .rail__head { grid-template-columns: 1fr; }
  .hero__rail .rail__title { grid-column: 1; }
  /* celular: uma capa grande por vez, com a próxima aparecendo na borda */
  .hero__rail .rail__track { scroll-snap-type: x mandatory; }
  .hero__rail .rail__item { flex-basis: min(78vw, 330px); scroll-snap-align: center; }
  .hero__rail .poster { aspect-ratio: 2 / 3; border-radius: 18px; }
  .hero__rail .poster__num { font-size: 3rem; }
  .hero__rail .poster__body { gap: .6rem; padding: 1.3rem 1.2rem 1.5rem; }
  .hero__rail .poster__title { font-size: 1.7rem; line-height: 1.08; }
  .poster__tags { font-size: .86rem; }
  .hero__rail .poster__desc { font-size: .86rem; -webkit-line-clamp: 3; }
  .hero__rail .poster__more { padding: .7rem 1.5rem; font-size: .92rem; }
}

/* =========================================================
   3. SETORES — palco escuro + trilho de pôsteres
   ========================================================= */
.setores {
  width: min(100% - 1.5rem, 1400px); margin-inline: auto;
  background: linear-gradient(160deg, var(--forest-900), var(--forest-950));
  border-radius: var(--radius-xl); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg);
  --rail-pad: max(1.25rem, calc((100% - var(--container)) / 2));
}
.setores .section__head { margin-bottom: 2.6rem; }
.setores .section__title { color: #fff; }
.setores .section__sub { color: rgba(255, 255, 255, .72); }
.setores .text-grad { background: linear-gradient(100deg, var(--yellow), var(--cream)); -webkit-background-clip: text; background-clip: text; }
.setores .eyebrow { color: var(--yellow); background: rgba(255, 199, 66, .10); border-color: rgba(255, 199, 66, .25); }
.setores .eyebrow::before { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 199, 66, .2); }

.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rail__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.rail__title small { display: block; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .6); letter-spacing: 0; margin-top: .15rem; }
.rail__nav { display: flex; gap: .5rem; }
.rail__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .35s var(--ease-spring), background .3s, color .3s, border-color .3s, opacity .3s;
}
.rail__btn:hover { background: var(--yellow); color: var(--forest-950); border-color: transparent; transform: translateY(-2px); }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__btn:disabled:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .2); transform: none; }

.rail__track {
  display: flex; gap: 1.1rem; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 1.4rem var(--rail-pad) 1.8rem; scroll-padding-inline: var(--rail-pad);
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { flex: 0 0 clamp(236px, 23vw, 292px); scroll-snap-align: start; }

.poster {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius); text-align: left; color: #fff; isolation: isolate;
  background: var(--forest-900); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.poster:hover, .poster:focus-visible {
  transform: translateY(-8px) scale(1.03); border-color: rgba(255, 199, 66, .6);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
}
.poster:focus-visible { outline-color: var(--yellow); }
.poster__media { position: absolute; inset: 0; z-index: -2; }
.poster__media :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster__media img { transition: transform 1.4s var(--ease); }
.poster:hover .poster__media img { transform: scale(1.08); }
.poster__media video { opacity: 0; transition: opacity .5s var(--ease); }
.poster.is-previewing .poster__media video { opacity: 1; }
.poster::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 42, 30, .34) 0%, rgba(8, 42, 30, 0) 30%, rgba(8, 42, 30, .8) 66%, rgba(8, 42, 30, .96));
}
.poster__num {
  position: absolute; top: .55rem; left: 1rem;
  font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--yellow); opacity: .9;
}
.poster__badge {
  position: absolute; top: 1.1rem; right: 1rem; padding: .32rem .7rem; border-radius: 999px;
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--yellow); color: var(--forest-950);
}
.poster__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.2rem 1.3rem; display: grid; gap: .45rem; }
.poster__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.01em; }
.poster__desc { font-size: .86rem; line-height: 1.45; color: rgba(255, 255, 255, .8); overflow: hidden; }
.poster__more { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.poster__more span { display: inline-block; transition: transform .35s var(--ease-spring); }
.poster:hover .poster__more span { transform: translateX(5px); }
/* com mouse: a descrição abre no foco/hover, como numa vitrine de streaming */
@media (hover: hover) and (pointer: fine) {
  .poster__desc { max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease); }
  .poster:is(:hover, :focus-visible) .poster__desc { max-height: 9em; opacity: 1; }
}

/* =========================================================
   4. POPUP DO SETOR — página de título
   ========================================================= */
body.modal-open { overflow: hidden; }
.titulo {
  width: min(100% - 1.5rem, 940px); max-height: min(92dvh, 1000px); margin: auto; padding: 0;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg);
  background: var(--forest-950); color: #eaf3ec; overflow: hidden auto; overscroll-behavior: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6); scrollbar-width: thin; scrollbar-color: var(--sage) transparent;
}
.titulo::backdrop { background: rgba(4, 20, 14, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.titulo[open] { animation: tituloIn .45s var(--ease-out); }
@keyframes tituloIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }

.titulo__bar { position: sticky; top: 0; height: 0; z-index: 5; display: flex; justify-content: flex-end; }
.titulo__close {
  margin: .9rem; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; color: #fff;
  background: rgba(8, 42, 30, .78); border: 1px solid rgba(255, 255, 255, .25);
  transition: transform .35s var(--ease-spring), background .3s, color .3s;
}
.titulo__close:hover { background: var(--yellow); color: var(--forest-950); transform: rotate(90deg); }

.titulo__media { position: relative; aspect-ratio: 16 / 9; max-height: 60vh; width: 100%; background: #000; overflow: hidden; }
.titulo__media :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.titulo__media video[hidden] { display: none; }
.titulo__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 42, 30, 0) 86%, var(--forest-950));
}
/* título e ações ficam abaixo da mídia, sem cobrir o vídeo */
.titulo__head { padding: clamp(1.1rem, 3vw, 1.8rem) clamp(1.2rem, 4vw, 2.4rem) clamp(.8rem, 2vw, 1.2rem); }
.titulo__kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow); padding-left: .7rem; border-left: 3px solid var(--yellow); margin-bottom: .8rem;
}
.titulo__name {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(1.9rem, 5vw, 3.4rem); color: #fff;
}
.titulo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.titulo__actions .btn { padding: .8rem 1.4rem; font-size: .95rem; width: auto; }
.titulo__play {
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s;
}
.titulo__play:hover { background: rgba(255, 255, 255, .22); }
.titulo__play[hidden] { display: none; }

.titulo__body { padding: clamp(1.2rem, 4vw, 2.4rem); padding-top: .6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 2.8rem); }
/* itens de grid encolhem (sem isto o trilho "Outros setores" alarga o popup) */
.titulo__body > *, .titulo__top > *, .titulo__case > * { min-width: 0; }
.titulo__top { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }
.titulo__lead { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.titulo__text { margin-top: .8rem; color: rgba(234, 243, 236, .76); }
.titulo__label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: .7rem; }
.titulo__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.titulo__tags li { padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }

.titulo__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.01em; color: #fff; }
.titulo__sub { color: rgba(234, 243, 236, .7); margin-top: .5rem; max-width: 62ch; }
.titulo__eps { margin-top: 1.2rem; counter-reset: ep; }
.titulo__eps li {
  counter-increment: ep; display: grid; grid-template-columns: 3.4rem 1fr; gap: .4rem 1rem; align-items: start;
  padding: 1.1rem .8rem; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  transition: background .3s;
}
.titulo__eps li:hover { background: rgba(255, 255, 255, .045); }
.titulo__eps li::before {
  content: counter(ep, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.3px var(--yellow); opacity: .85;
}
.titulo__eps small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: .2rem; }
.titulo__eps strong { display: block; font-weight: 800; font-size: 1.02rem; color: #fff; }
.titulo__eps p { color: rgba(234, 243, 236, .72); font-size: .93rem; margin-top: .25rem; }
.titulo__eps em { display: block; font-style: normal; font-size: .86rem; font-weight: 700; color: var(--light-green); margin-top: .4rem; }

.titulo__case {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: center;
  padding: clamp(1rem, 2.4vw, 1.5rem); border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
}
.titulo__case figure { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.titulo__case img { width: 100%; height: 100%; object-fit: cover; }
.titulo__case figcaption {
  position: absolute; left: .7rem; bottom: .7rem; font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .88); padding-left: .55rem; border-left: 3px solid var(--yellow);
  text-shadow: 0 1px 10px rgba(8, 42, 30, .9);
}
.titulo__case p { color: rgba(234, 243, 236, .74); margin: .6rem 0 1rem; font-size: .95rem; }

/* ---------- blocos do conteúdo comercial ---------- */
.titulo__lead--xl { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; }
.titulo__tags--gap { margin-top: 1rem; }
.titulo__decs, .titulo__eps { list-style: none; padding: 0; }
.titulo__decs { counter-reset: dec; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.titulo__decs li {
  counter-increment: dec; padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .3s, background .3s;
}
.titulo__decs li:hover { border-color: rgba(255, 199, 66, .5); background: rgba(255, 255, 255, .07); }
.titulo__decs li::before {
  content: counter(dec, decimal-leading-zero); display: block; margin-bottom: .5rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--yellow); opacity: .85;
}
.titulo__decs strong { display: block; font-weight: 800; font-size: 1rem; line-height: 1.25; color: #fff; }
.titulo__decs p { margin-top: .4rem; font-size: .88rem; color: rgba(234, 243, 236, .74); }
.titulo__cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.titulo__cases li { padding: 1.1rem 1.2rem; border-radius: 16px; border-left: 3px solid var(--yellow); background: rgba(255, 255, 255, .05); }
.titulo__cases strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; color: #fff; }
.titulo__cases p { margin-top: .35rem; font-size: .88rem; color: rgba(234, 243, 236, .74); }
.titulo__tech, .titulo__cta { padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--radius); position: relative; overflow: hidden; }
.titulo__tech { background: linear-gradient(120deg, var(--forest-800), var(--green)); }
.titulo__tech::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; aspect-ratio: 1; background: var(--yellow); opacity: .14;
  -webkit-mask: url("../assets/logo/elemento.svg") center / contain no-repeat; mask: url("../assets/logo/elemento.svg") center / contain no-repeat;
  transform: rotate(18deg); pointer-events: none;
}
.titulo__tech p { margin-top: .6rem; max-width: 62ch; color: rgba(255, 255, 255, .9); }
.titulo__cta { text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 199, 66, .3); }
.titulo__cta p { margin: .6rem auto 1.3rem; max-width: 56ch; color: rgba(234, 243, 236, .8); }
.titulo__cta .btn { width: auto; }

/* galeria do acervo: quadro cinematográfico, o mesmo em todos os setores */
.titulo__cine { position: relative; margin-top: 1.1rem; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; --cine-dur: 5.2s; }
.titulo__cine img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.titulo__cine img:not([src]) { visibility: hidden; }
.titulo__cine img.is-on { opacity: 1; animation: cineKen 8s linear both; }
@keyframes cineKen { from { transform: scale(var(--z0, 1)); } to { transform: scale(var(--z1, 1.12)); } }
.titulo__cine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(8, 42, 30, .55)),
    linear-gradient(180deg, rgba(8, 42, 30, .18), transparent 22%, transparent 74%, rgba(8, 42, 30, .5));
}
.titulo__cine-btn {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; color: #fff;
  background: rgba(8, 42, 30, .6); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .75; transition: opacity .3s, background .3s, color .3s, transform .35s var(--ease-spring);
}
.titulo__cine-prev { left: .9rem; }
.titulo__cine-next { right: .9rem; }
.titulo__cine-btn:hover { opacity: 1; background: var(--yellow); color: var(--forest-950); transform: scale(1.08); }
.titulo__cine-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgba(255, 255, 255, .22); }
.titulo__cine-bar::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.titulo__cine.is-playing .titulo__cine-bar::after { animation: sobreBar var(--cine-dur) linear both; }

.titulo__others { display: flex; gap: .8rem; overflow-x: auto; padding: 1rem 0 .4rem; scrollbar-width: none; }
.titulo__others::-webkit-scrollbar { display: none; }
.mini {
  position: relative; flex: 0 0 172px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; isolation: isolate;
  text-align: left; color: #fff; border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .4s var(--ease), border-color .3s;
}
.mini:hover, .mini:focus-visible { transform: translateY(-4px); border-color: rgba(255, 199, 66, .6); }
.mini img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.mini::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 42, 30, .05), rgba(8, 42, 30, .9)); }
.mini span { position: absolute; left: .7rem; right: .7rem; bottom: .6rem; font-weight: 800; font-size: .86rem; line-height: 1.2; }

/* =========================================================
   5. PAINÉIS FOTOGRÁFICOS — comunidades terrestre e aquática
   ========================================================= */
.foto-credit {
  position: absolute; top: 1.2rem; right: 1.3rem; z-index: 1;
  font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .9); padding-left: .6rem; border-left: 3px solid var(--yellow);
  text-shadow: 0 1px 12px rgba(8, 42, 30, .8);
}
.biome.biome--foto {
  min-height: clamp(400px, 42vw, 500px); display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--forest-950); border-color: rgba(255, 255, 255, .1); isolation: isolate;
}
.biome__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.biome--foto:hover .biome__bg { transform: scale(1.06); }
.biome--foto::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 42, 30, .12), rgba(8, 42, 30, .3) 38%, rgba(8, 42, 30, .93));
}
.biome--foto::after { background: var(--yellow); opacity: .12; }
.biome--foto h3 { color: #fff; }
.biome--foto .biome__desc { color: rgba(255, 255, 255, .84); }
.biome.biome--foto .biome__icon {
  background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.biome--foto .tags li {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); color: #fff; box-shadow: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.biome--foto .tags li:hover { background: var(--yellow); color: var(--forest-950); border-color: transparent; }

/* ---------- Quem somos: quadro cinematográfico do acervo ---------- */
.sobre__frame { --sobre-dur: 7s; background: var(--forest-950); }
.sobre__frame img { transition: opacity .45s var(--ease), transform 1.4s var(--ease); }
.sobre__frame.is-changing img { opacity: 0; }
.sobre__frame.is-playing img { animation: sobreKen var(--sobre-dur) linear both; }
@supports (animation-timeline: view()) {
  /* soma o zoom lento ao parallax de rolagem que a foto já tinha */
  html.fx .sobre__frame.is-playing img {
    animation: imgPan linear both, sobreKen var(--sobre-dur) linear both;
    animation-timeline: view(), auto;
    animation-range: cover 0% cover 100%, normal;
  }
}
@keyframes sobreKen { from { transform: scale(1); } to { transform: scale(1.09); } }
/* vinheta nas bordas */
.sobre__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(8, 42, 30, .5)),
    linear-gradient(180deg, transparent 62%, rgba(8, 42, 30, .72));
}
.sobre__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3; background: rgba(255, 255, 255, .22); }
.sobre__progress::after {
  content: ""; position: absolute; inset: 0; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
}
.sobre__frame.is-playing .sobre__progress::after { animation: sobreBar var(--sobre-dur) linear both; }
@keyframes sobreBar { to { transform: scaleX(1); } }
.sobre__next { bottom: 1.4rem; }

/* =========================================================
   6. CTA — faixa sobre foto do acervo
   ========================================================= */
.cta-band--foto .cta-band__inner {
  padding-block: clamp(5rem, 10vw, 8rem); animation: none; background-size: cover;
  background:
    linear-gradient(120deg, rgba(8, 42, 30, .94), rgba(21, 90, 65, .74) 55%, rgba(8, 42, 30, .58)),
    url("../assets/galeria/arvore-emergente.jpg") center / cover no-repeat var(--forest-950);
}
.cta-band--foto .foto-credit { position: absolute; top: auto; bottom: 1.2rem; }

/* =========================================================
   RESPONSIVO + MOVIMENTO REDUZIDO
   ========================================================= */
@media (max-width: 720px) {
  .rail__item { flex-basis: min(74vw, 280px); }
  .rail__nav { display: none; }
  .titulo { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  /* a mídia segue 16:9 também no celular: os vídeos têm letreiro gravado na lateral e 4:3 cortava o texto */
  .titulo__top, .titulo__case { grid-template-columns: 1fr; }
  .titulo__eps li { grid-template-columns: 2.6rem 1fr; padding-inline: .2rem; }
  .titulo__actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ident { display: none; }
}
