/* ==========================================================================
   Rito Adonhiramita — sistema visual
   O céu do Oriente: a página é um amanhecer, azul no alto e branco embaixo.
   Os quatro emblemas do Rito habitam esse céu — o Delta radiante, a Lua,
   o Sol e a medalha do Cordeiro.
   Ângulo de 52°: constante do Pálio, usada na marca de passagem.
   ========================================================================== */

:root {
  /* céu */
  --ceu-1:   #A6C7EE;
  --ceu-2:   #D7E7F8;
  --ceu-3:   #FFFFFF;

  /* superfícies */
  --papel:   #FFFFFF;
  --papel-2: rgba(255, 255, 255, 0.74);
  --papel-3: rgba(232, 241, 251, 0.86);

  /* tinta */
  --azul:      #16277E;
  --azul-vivo: #1E28C8;
  --tinta:     #23324E;
  --fumo:      #5D6E8C;

  /* ouro */
  --ouro:     #8A6A1C;
  --ouro-luz: #C89A30;

  --filete:     rgba(22, 39, 126, 0.15);
  --filete-luz: rgba(200, 154, 48, 0.55);

  --serif: "EB Garamond", "Garamond", Georgia, "Times New Roman", serif;
  --util:  "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --medida: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ritmo:  clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ceu-3);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.16rem);
  line-height: 1.78;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

::selection { background: var(--azul); color: #fff; }

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

/* ------------------------------------------------------------ o céu ao fundo */

.ceu {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--ceu-1) 0%,
    var(--ceu-2) 40%,
    var(--ceu-3) 72%);
}

/* Nuvens: manchas macias que atravessam o céu devagar. */
.ceu__nuvem {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  filter: blur(50px);
  animation: derivar linear infinite;
}

.ceu__nuvem--a { width: 44vw; height: 20vw; top: 6%;  left: -30%; animation-duration: 150s; }
.ceu__nuvem--b { width: 34vw; height: 14vw; top: 26%; left: -30%; animation-duration: 210s; animation-delay: -60s; opacity: 0.7; }
.ceu__nuvem--c { width: 52vw; height: 18vw; top: 48%; left: -30%; animation-duration: 260s; animation-delay: -130s; opacity: 0.55; }

/* --------------------------------------------------------------- tipografia */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--azul);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.t-hero  { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 5.6rem); }
.t-page  { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem); }
.t-secao { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
.t-item  { font-size: clamp(1.22rem, 1.1rem + 0.5vw, 1.5rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--azul); }
strong { font-weight: 600; color: var(--azul); }

.sobrescrito {
  font-family: var(--util);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ouro);
  margin: 0 0 1.4rem;
  display: block;
}

.entrada {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.42rem);
  line-height: 1.62;
  color: var(--tinta);
}

.nota {
  font-family: var(--util);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--fumo);
}

.assinatura {
  font-family: var(--util);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ouro);
}

.abrev { white-space: nowrap; }

/* ----------------------------------------------------------------- estrutura */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--estreito { max-width: 900px; }

.section { padding-block: var(--ritmo); position: relative; }
.section--topo { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* Véu: superfície branca translúcida — o céu ainda passa por trás. */
.section--veu {
  background: var(--papel-2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-block: 1px solid var(--filete);
}

/* Véus encostados não devem dobrar o filete. */
.section--veu + .section--veu { border-top: 0; }

/* Oriente à direita: o texto caminha na direção da luz. */
.trilha {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.trilha__rail {
  position: sticky;
  top: 7rem;
  border-left: 1px solid var(--filete);
  padding-left: 1.4rem;
}

.trilha__corpo { min-width: 0; }

.medida { max-width: var(--medida); }

@media (max-width: 860px) {
  .trilha { grid-template-columns: 1fr; gap: 2.5rem; }
  .trilha__rail {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--filete);
    padding-left: 0;
    padding-top: 1.4rem;
  }
}

/* -------------------------------------------------------- emblemas do Rito */

/* Raios: 48 fachos em gradiente cônico, com as pontas suavizadas.
   Serve ao Delta radiante, ao Sol e à roseta da medalha. */
.raios {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    var(--ouro-luz) 0deg 1.1deg,
    transparent 1.1deg 7.5deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 34%, #000 44%, #000 88%, transparent 100%);
          mask-image: radial-gradient(closest-side, transparent 34%, #000 44%, #000 88%, transparent 100%);
  animation: girar 180s linear infinite;
}

.raios--azul {
  background: repeating-conic-gradient(from 0deg,
    var(--azul) 0deg 0.9deg,
    transparent 0.9deg 6deg);
  animation-duration: 240s;
  animation-direction: reverse;
}

.emblema {
  position: relative;
  display: grid;
  place-items: center;
}

.emblema__arte { position: relative; width: 100%; height: auto; }

/* O Delta radiante, no alto, como no estandarte. */
.delta {
  width: clamp(7.5rem, 20vw, 14rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.delta .emblema__arte { width: 62%; }

/* Lua ao Setentrião, Sol ao Meio-dia, Cordeiro ao centro. */
.astro { width: clamp(4.5rem, 11vw, 7.5rem); aspect-ratio: 1; }
.astro .emblema__arte { width: 58%; }

.astro--lua { animation: flutuar 9s ease-in-out infinite alternate; }
.astro--sol { animation: flutuar 11s ease-in-out infinite alternate-reverse; }

.cordeiro { width: clamp(6rem, 14vw, 10rem); aspect-ratio: 1; }
.cordeiro .emblema__arte { width: 62%; }

.estrela {
  position: absolute;
  fill: var(--ouro-luz);
  animation: cintilar 4s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------- marcas */

/* Pálio: duas espadas cruzando a 52°. */
.palio {
  display: block;
  width: 42px;
  height: auto;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  color: var(--ouro-luz);
}

.filete {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--filete-luz), transparent);
  margin: clamp(2rem, 4vw, 3rem) 0;
}

/* ------------------------------------------------------------------ cabeçalho */

.topo {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--filete);
}

.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.4rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--util);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--azul);
  text-decoration: none;
}

.marca svg { width: 20px; color: var(--ouro-luz); flex: none; }
.marca:hover { color: var(--azul-vivo); }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }

.menu a {
  position: relative;
  font-family: var(--util);
  font-size: 0.745rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fumo);
  text-decoration: none;
  padding-block: 0.5rem;
  transition: color 0.25s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: var(--ouro-luz);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.menu a:hover { color: var(--azul); }
.menu a:hover::after { transform: scaleX(1); }

.menu a[aria-current="page"] { color: var(--azul); }
.menu a[aria-current="page"]::after { transform: scaleX(1); opacity: 0.6; }

.menu__chave {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--filete);
  color: var(--azul);
  font-family: var(--util);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.menu__chave:hover { border-color: var(--azul); }

@media (max-width: 940px) {
  .menu__chave { display: block; }
  .menu {
    position: fixed;
    inset: 4.4rem 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    /* Opaco de verdade: a 97% o título da página vazava por trás. */
    background: #fff;
    border-bottom: 0;
    /* Sem padding no estado fechado: com box-sizing:border-box o padding
       impediria o max-height:0 de colapsar até zero. */
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
                padding-block 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .menu[data-aberto="true"] {
    /* 8 itens de ~65px + o respiro: 32rem cortaria o último. */
    max-height: 40rem;
    padding-block: 1rem 2.2rem;
    border-bottom: 1px solid var(--filete);
  }
  .menu a {
    width: 100%;
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--tinta);
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--filete);
  }
  .menu a::after { display: none; }
}

/* -------------------------------------------------------------- o estandarte */

.atrio {
  position: relative;
  min-height: min(100svh, 62rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem var(--gutter) 5.5rem;
}

/* Em telas curtas o estandarte não cabe na dobra: solta a altura mínima
   para que o Delta nunca seja cortado pelo cabeçalho. */
@media (max-width: 620px), (max-height: 760px) {
  .atrio { min-height: auto; padding-block: 7.5rem 3.5rem; }
}

.atrio .sobrescrito { margin-bottom: 1rem; }

.atrio__conteudo { position: relative; width: 100%; max-width: 58rem; }

.estandarte {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  margin: clamp(0.8rem, 2.2vw, 1.8rem) auto 0;
  max-width: 33rem;
}

.atrio .t-hero {
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(2rem, 1rem + 5.4vw, 4.6rem);
}

.vitriol {
  max-width: 40rem;
  margin: clamp(1.6rem, 3.5vw, 3rem) auto 0;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.34rem);
  font-style: italic;
  line-height: 1.62;
  color: var(--tinta);
}

.vitriol__fonte {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--util);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ouro);
}

.descer {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--util);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fumo);
  text-decoration: none;
}

.descer svg { width: 24px; color: var(--ouro); }
.descer:hover { color: var(--azul); }

/* Quando o átrio deixa de ocupar a dobra inteira, a seta entra no fluxo.
   Precisa vir depois da regra base para vencê-la. */
@media (max-width: 620px), (max-height: 760px) {
  .descer {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 2.5rem;
  }
}

/* --------------------------------------------------------------- a divisa */

/* “Nem melhor nem pior, apenas diferente.” — a tese do Rito. */
.divisa {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.divisa__frase {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4rem);
  font-style: italic;
  line-height: 1.16;
  color: var(--azul);
  max-width: 30ch;
  margin: 0 auto;
  letter-spacing: -0.015em;
}

.divisa__frase b {
  font-weight: 400;
  font-style: normal;
  color: var(--ouro);
}

.divisa__fonte {
  display: block;
  margin-top: 2rem;
  font-family: var(--util);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fumo);
}

/* ------------------------------------------------------------------- cabeçote */

/* Só padding-block: o atalho `padding` zeraria o padding-inline que o
   .wrap aplica neste mesmo elemento. */
.cabecote {
  padding-block: clamp(8rem, 14vw, 11rem) clamp(3rem, 6vw, 4.5rem);
  position: relative;
}

.cabecote::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--filete-luz), transparent 65%);
}

.cabecote .t-page { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------- cartões */

.grade {
  display: grid;
  gap: 1px;
  background: var(--filete);
  border: 1px solid var(--filete);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.cartao {
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.4s ease;
}

.cartao::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--ouro-luz);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cartao:hover { background: #fff; }
.cartao:hover::before { width: 52px; }

.cartao__glifo { width: 30px; color: var(--ouro); transition: color 0.35s ease; }
.cartao:hover .cartao__glifo { color: var(--azul-vivo); }

.cartao__texto { color: var(--fumo); font-size: 0.99rem; line-height: 1.7; }
.cartao:hover .cartao__texto { color: var(--tinta); }

/* --------------------------------------------------------------------- verbetes */

.verbete {
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--filete);
  scroll-margin-top: 6.5rem;
}

.verbete:first-of-type { border-top: 0; padding-top: 0; }
.verbete .t-item { margin-bottom: 1.1rem; }
.verbete__corpo { max-width: var(--medida); }

.bloco { margin-bottom: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 6.5rem; }
.bloco:last-child { margin-bottom: 0; }
.bloco .t-secao { margin-bottom: 1.6rem; }

/* ---------------------------------------------------------------- bibliografia */

/* Recuo pendente: a entrada começa na margem e as linhas seguintes recuam,
   como manda a norma de referências. */
.biblio {
  list-style: none;
  counter-reset: fonte;
  margin: 0;
  padding: 0;
  max-width: var(--medida);
}

.biblio li {
  counter-increment: fonte;
  position: relative;
  padding: 0.85rem 0 0.85rem 2.6rem;
  border-bottom: 1px solid var(--filete);
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--tinta);
}

.biblio li::before {
  content: counter(fonte);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--util);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ouro);
}

.biblio em { color: var(--azul); }

/* ------------------------------------------------------- índice do rail */

.indice { list-style: none; margin: 0; padding: 0; }
.indice li { margin-bottom: 0.55rem; }

.indice a {
  font-family: var(--util);
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  line-height: 1.55;
  color: var(--fumo);
  text-decoration: none;
  display: block;
  transition: color 0.25s ease;
}

.indice a:hover { color: var(--azul-vivo); }
.indice a[data-ativo="true"] { color: var(--azul); }

/* ------------------------------------------------- as peculiaridades, uma a uma */

.peculiar {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(2rem, 4vw, 3.5rem);
}

.peculiar li {
  break-inside: avoid;
  padding: 0.62rem 0 0.62rem 1.5rem;
  border-bottom: 1px solid var(--filete);
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinta);
}

.peculiar li::before {
  content: "\02CA";
  position: absolute;
  left: 0.1rem;
  top: 0.6rem;
  color: var(--ouro);
  font-size: 1.1rem;
}

@media (max-width: 700px) { .peculiar { columns: 1; } }

/* ---------------------------------------------------------------------- tabelas */

/* Quadros comparativos do artigo histórico. Rolam sozinhos no celular. */
.tabela__rolo {
  overflow-x: auto;
  margin-block: clamp(1.6rem, 3vw, 2.4rem);
  border-block: 1px solid var(--filete);
}

.tabela {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.5;
}

.tabela th {
  font-family: var(--util);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ouro);
  text-align: left;
  padding: 0.9rem 1.2rem 0.7rem 0;
  border-bottom: 1px solid var(--filete-luz);
  vertical-align: bottom;
}

.tabela td {
  padding: 0.6rem 1.2rem 0.6rem 0;
  border-bottom: 1px solid var(--filete);
  vertical-align: top;
  color: var(--tinta);
}

.tabela td:last-child, .tabela th:last-child { padding-right: 0; }

/* Coluna do Rito ao lado da coluna de referência. */
.tabela td + td { color: var(--fumo); }

.tabela .tabela__parte td {
  font-family: var(--util);
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--azul);
  padding-top: 1.5rem;
  border-bottom-color: var(--filete-luz);
}

/* --------------------------------------------------------------------- listagens */

.lista { list-style: none; margin: 0; padding: 0; }

.lista__item { border-top: 1px solid var(--filete); }
.lista__item:last-child { border-bottom: 1px solid var(--filete); }

.lista--colunas {
  columns: 2;
  column-gap: clamp(2rem, 4vw, 4rem);
}

.lista--colunas .lista__item { break-inside: avoid; }

@media (max-width: 760px) { .lista--colunas { columns: 1; } }

.lista__link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.15rem, 2.2vw, 1.6rem) 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lista__link:hover { padding-left: 1rem; }

.lista__titulo {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  color: var(--tinta);
  line-height: 1.35;
  transition: color 0.3s ease;
}

.lista__link:hover .lista__titulo { color: var(--azul); }

.lista__meta {
  font-family: var(--util);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fumo);
  white-space: nowrap;
}

.lista__link:hover .lista__meta { color: var(--ouro); }

/* ---------------------------------------------------------------------- botões */

.botao {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--util);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azul);
  text-decoration: none;
  border: 1px solid var(--azul);
  padding: 0.95rem 1.6rem;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.botao svg { width: 15px; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.botao:hover { color: #fff; background: var(--azul); }
.botao:hover svg { transform: translateX(4px); }

.botao--vazado { border-color: var(--filete); color: var(--fumo); }
.botao--vazado:hover { color: #fff; background: var(--fumo); border-color: var(--fumo); }

/* --------------------------------------------------------------- elo em texto */

.elo {
  color: var(--azul);
  text-decoration: none;
  border-bottom: 1px solid var(--filete-luz);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.elo:hover { color: var(--azul-vivo); border-color: var(--azul-vivo); }

/* ------------------------------------------------------------------ dois lados */

.par {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.par--oriente { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

@media (max-width: 860px) { .par--oriente { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------- vídeos */

.filme {
  border: 1px solid var(--filete);
  background: rgba(255, 255, 255, 0.9);
}

.filme__tela {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0B1020;
}

.filme__tela video,
.filme__tela iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.filme__pe { padding: 1.2rem 1.4rem; border-top: 1px solid var(--filete); }

/* --------------------------------------------------------------------- formulário */

.campo { display: block; margin-bottom: 1.4rem; }

.campo__rotulo {
  display: block;
  font-family: var(--util);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 0.6rem;
}

.campo input,
.campo textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--filete);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 1.02rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease;
}

.campo input:focus,
.campo textarea:focus { border-color: var(--azul); outline: none; }

.campo textarea { min-height: 9rem; resize: vertical; }

/* ------------------------------------------------------------------- aviso */

.aviso {
  border: 1px dashed var(--filete-luz);
  background: rgba(255, 255, 255, 0.6);
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}

.aviso__titulo {
  display: block;
  font-family: var(--util);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------------- rodapé */

.rodape {
  border-top: 1px solid var(--filete);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--papel-3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rodape__grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.rodape h3 {
  font-family: var(--util);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 1rem;
}

.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: 0.5rem; }

.rodape a {
  color: var(--fumo);
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.25s ease;
}

.rodape a:hover { color: var(--azul); }

.rodape__base {
  border-top: 1px solid var(--filete);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* ------------------------------------------------------------------ movimento */

@keyframes girar {
  to { transform: rotate(360deg); }
}

@keyframes flutuar {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}

@keyframes cintilar {
  from { opacity: 0.25; transform: scale(0.8); }
  to   { opacity: 1;    transform: scale(1.08); }
}

@keyframes derivar {
  from { transform: translateX(0); }
  to   { transform: translateX(160vw); }
}

@keyframes amanhecer {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.amanhece { animation: amanhecer 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.amanhece--2 { animation-delay: 0.25s; }
.amanhece--3 { animation-delay: 0.5s; }

/* Só esconde quando há JS para revelar: sem script, o conteúdo aparece inteiro. */
.js .surge {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .surge[data-visivel="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .raios, .ceu__nuvem, .estrela, .astro--lua, .astro--sol, .amanhece { animation: none; }
  .js .surge { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
