/* A fonte Ogg era carregada de um CDN que bloqueia CORS — nunca chegava a
   aplicar e só gerava erro no console. Se você tiver o arquivo, coloque-o na
   pasta do site e reative o bloco abaixo:

@font-face {
  font-family: "Ogg Medium";
  src: url("OggText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --mx: 0;
  --my: 0;

  --hero-x: 0px;
  --hero-y: 0px;
  --hero-scale: 1.06;
  --hero-blur: 0px;
  --hero-brightness: 1;

  --title-x: 0px;
  --title-y: 0px;
  --title-scale: 1;
  --title-opacity: 1;

  --intro-x: 0px;
  --intro-y: 0px;
  --intro-opacity: 1;

  --shade-tint: 22, 18, 14;
  --shade-top-alpha: 0.34;
  --shade-mid-alpha: 0.18;
  --shade-bottom-alpha: 0.54;

  --ink: #111411;
  --paper: #fdf1e1;
  --serif: "Ogg Medium", Georgia, "Times New Roman", serif;

  font-family: Inter, Satoshi, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #efe7dd;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #efe7dd;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: #efe7dd;
}

button {
  border: 0;
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

/* ---------- hero ---------- */

.cinema-scroll {
  position: relative;
  height: calc(100vh + 900px);
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #16120e;
}

.world,
.hero-video,
.shade,
.hero-title,
.intro-copy {
  position: absolute;
}

.world {
  inset: 0;
  overflow: hidden;
}

.hero-video {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(var(--hero-scale));
  filter: blur(var(--hero-blur)) brightness(var(--hero-brightness));
  will-change: transform, filter;
  pointer-events: none;
  user-select: none;
}

/* véu que garante leitura do texto por cima de qualquer quadro do vídeo */
.shade {
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--shade-tint), var(--shade-top-alpha)) 0%,
    rgba(var(--shade-tint), var(--shade-mid-alpha)) 46%,
    rgba(var(--shade-tint), var(--shade-bottom-alpha)) 100%
  );
}

/* ---------- cabeçalho fixo + menu cascata ---------- */

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  color: var(--paper);
  transition: background 260ms ease, box-shadow 260ms ease, color 260ms ease;
}

/* passou da hero: fundo sólido para o menu continuar legível sobre o catálogo */
.site-header.is-solid {
  color: var(--ink);
  background: rgba(253, 241, 225, 0.96);
  box-shadow: 0 10px 34px rgba(20, 12, 4, 0.12);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 3.4vw, 42px);
}

.site-logo {
  justify-self: start;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 23px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.logo-sep {
  padding: 0 2px;
  opacity: 0.55;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 34px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  color: inherit;
  background: transparent;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 1;
}

.site-header:not(.is-solid) .nav-link,
.site-header:not(.is-solid) .site-logo,
.site-header:not(.is-solid) .language-switcher {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.language-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.language-switcher span {
  display: inline-flex;
  line-height: 1;
}

/* ---------- menu cascata ---------- */

.nav-mega {
  position: static;
}

.mega-caret {
  font-size: 0.85em;
  transition: transform 200ms ease;
}

.nav-mega.is-open .mega-caret {
  transform: rotate(180deg);
}

.mega-panel {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: clamp(12px, 3vw, 42px);
  right: clamp(12px, 3vw, 42px);
  max-height: min(calc(100vh - 96px), 640px);
  padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.6vw, 38px) clamp(18px, 2vw, 26px);
  overflow-y: auto;
  border-radius: 22px;
  color: var(--ink);
  background: rgba(253, 246, 238, 0.985);
  box-shadow: 0 30px 70px rgba(20, 12, 4, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}

.nav-mega:hover .mega-panel,
.nav-mega:focus-within .mega-panel,
.nav-mega.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: clamp(16px, 1.8vw, 32px);
}

/* em tela larga os 7 grupos cabem lado a lado, sem quebrar em duas fileiras */
@media (min-width: 1280px) {
  .mega-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(14px, 1.4vw, 24px);
  }
}

.mega-col h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 20, 17, 0.16);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
}

.mega-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-col li + li {
  margin-top: 2px;
}

.mega-col a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 8px;
  color: rgba(17, 20, 17, 0.76);
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.mega-col a:hover,
.mega-col a:focus-visible {
  color: var(--ink);
  background: rgba(17, 20, 17, 0.07);
}

.mega-note {
  margin: clamp(16px, 2vh, 24px) 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 20, 17, 0.14);
  color: rgba(17, 20, 17, 0.5);
  font-size: 0.85rem;
}

/* espaço para o cabeçalho fixo não cobrir o alvo das âncoras */
.catalog,
.policies,
.site-footer {
  scroll-margin-top: 84px;
}

#destaques {
  scroll-margin-top: 96px;
}

/* assinatura da marca: nome grande em serifa + descritor espaçado embaixo */
.hero-title {
  z-index: 5;
  left: 50%;
  top: clamp(122px, 22vh, 230px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(94vw, 1780px);
  margin: 0;
  color: var(--paper);
  font-weight: 500;
  text-align: center;
  text-shadow: 0 10px 44px rgba(12, 8, 4, 0.42);
  transform: translate3d(calc(-50% + var(--title-x)), var(--title-y), 0) scale(var(--title-scale));
  opacity: var(--title-opacity);
  will-change: transform, opacity;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 10vw, 11rem);
  line-height: 0.82;
}

.brand-tag {
  display: block;
  margin-top: clamp(12px, 1.8vh, 26px);
  color: rgba(253, 241, 225, 0.92);
  font-family: Inter, Satoshi, system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.35vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  line-height: 1;
  text-indent: 0.36em;
  text-transform: uppercase;
}

.intro-copy {
  z-index: 6;
  left: 50%;
  bottom: clamp(56px, 14vh, 150px);
  width: min(620px, calc(100vw - 40px));
  text-align: center;
  transform: translate3d(calc(-50% + var(--intro-x)), var(--intro-y), 0);
  opacity: var(--intro-opacity);
  will-change: transform, opacity;
}

.intro-copy p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--paper);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(12, 8, 4, 0.55);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 25px;
  border: 0;
  color: var(--ink);
  border-radius: 999px;
  background: rgba(253, 241, 225, 0.94);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  background: #fffaf3;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: rgba(253, 241, 225, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(12, 8, 4, 0.5);
}

.hero-scroll-hint span:last-child {
  animation: hint-bounce 2.2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---------- catálogo ---------- */

.catalog {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vh, 120px) clamp(20px, 5vw, 88px) clamp(56px, 8vh, 104px);
  color: var(--ink);
  background: var(--paper);
}

.catalog-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: center;
}

.catalog-kicker {
  margin: 0 0 14px;
  color: rgba(17, 20, 17, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 500;
  line-height: 0.98;
}

.catalog-lead {
  margin: 22px auto 0;
  max-width: 560px;
  color: rgba(17, 20, 17, 0.72);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.catalog-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  margin: clamp(30px, 4vh, 46px) 0 0;
}

.catalog-stats dt {
  font-family: var(--serif);
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 0.9;
}

.catalog-stats dd {
  margin: 10px 0 0;
  color: rgba(17, 20, 17, 0.66);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- blocos do catálogo ---------- */

.catalog-block {
  margin: 0 auto clamp(56px, 8vh, 104px);
  max-width: 1560px;
}

.catalog-block:last-of-type {
  margin-bottom: 0;
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 0 0 clamp(22px, 3vh, 34px);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 20, 17, 0.14);
}

.block-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
}

.block-head p {
  margin: 0;
  color: rgba(17, 20, 17, 0.6);
  font-size: 0.98rem;
  font-weight: 500;
}

.catalog-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 1.6vw, 26px);
}

.featured-card {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(2, 20, 30, 0.1);
}

.featured-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.featured-link .featured-card {
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-link:hover .featured-card,
.featured-link:focus-visible .featured-card {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(2, 20, 30, 0.16);
}

.featured-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.featured-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 22px 22px;
}

.featured-card strong {
  font-size: 1.12rem;
  font-weight: 700;
}

.featured-card span {
  color: rgba(17, 20, 17, 0.6);
  font-size: 0.92rem;
}

/* ---------- pesquisa isolada por catálogo ---------- */

.search-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 36px 100px rgba(2, 20, 30, 0.34);
}

.search-dialog::backdrop {
  background: rgba(6, 10, 8, 0.68);
  backdrop-filter: blur(7px);
}

.search-shell {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 820px);
}

.search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px) clamp(20px, 4vw, 40px) 18px;
}

.search-kicker {
  margin: 0 0 7px;
  color: rgba(17, 20, 17, 0.54);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.search-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.search-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(17, 20, 17, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
}

.search-form {
  display: flex;
  gap: 10px;
  padding: 0 clamp(20px, 4vw, 40px) 18px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(17, 20, 17, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.search-input:focus {
  border-color: rgba(17, 20, 17, 0.58);
  box-shadow: 0 0 0 4px rgba(17, 20, 17, 0.07);
}

.search-summary {
  margin: 0;
  padding: 0 clamp(20px, 4vw, 40px) 14px;
  color: rgba(17, 20, 17, 0.58);
  font-size: 0.88rem;
}

.search-results {
  min-height: 170px;
  padding: 0 clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px);
  overflow-y: auto;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 88px;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 17, 0.09);
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.search-result:hover,
.search-result:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 20, 30, 0.11);
}

.search-result img {
  width: 104px;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}

.search-result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
}

.search-result-copy strong {
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span {
  margin-top: 5px;
  overflow: hidden;
  color: rgba(17, 20, 17, 0.56);
  font-size: 0.78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  margin: 0;
  color: rgba(17, 20, 17, 0.56);
  text-align: center;
}

/* ---------- grade de categorias com miniatura ---------- */

/* no celular a grade fica com 2 colunas — nunca um card por linha */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.6vw, 26px);
}

@media (min-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 16 categorias fecham exatamente 4 linhas de 4, sem card órfão na última */
@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 17, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(2, 20, 30, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover,
.category-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(2, 20, 30, 0.13);
}

/* a miniatura desenhada em CSS fica no fundo; quando existir uma foto para a
   categoria, a <img> entra por cima e cobre o desenho */
.cat-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  /* fundo neutro caso alguma foto falte, para o card nunca ficar vazio */
  background: linear-gradient(160deg, #ece3d6, #dbd0c0);
}

/* leve aproximação: corta a faixa de teto que sobra no topo dos recortes */
.cat-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.cat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 20px;
}

.cat-group {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: rgba(17, 20, 17, 0.62);
  border-radius: 999px;
  background: rgba(17, 20, 17, 0.06);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat-body h4 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
}

.cat-body p {
  margin: 0;
  color: rgba(17, 20, 17, 0.62);
  font-size: 0.92rem;
  line-height: 1.3;
}

.swatch {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(17, 20, 17, 0.18);
  border-radius: 999px;
  background: var(--swatch, #ccc);
}

/* ---------- telas internas: categoria e papel de parede ---------- */

.view {
  padding: calc(84px + clamp(28px, 5vh, 60px)) clamp(20px, 5vw, 88px) clamp(56px, 8vh, 104px);
  background: var(--paper);
}

.view-inner {
  max-width: 1560px;
  margin: 0 auto;
}

.trilha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vh, 30px);
  color: rgba(17, 20, 17, 0.5);
  font-size: 0.88rem;
}

.trilha a {
  color: rgba(17, 20, 17, 0.66);
  text-decoration: none;
}

.trilha a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.view-head {
  max-width: 680px;
  margin-bottom: clamp(28px, 4vh, 46px);
}

.view-kicker {
  margin: 0 0 10px;
  color: rgba(17, 20, 17, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.view-head h1,
.papel-info h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
}

.view-lead {
  margin: 16px 0 0;
  color: rgba(17, 20, 17, 0.72);
  font-size: 1.05rem;
  line-height: 1.4;
}

.view-conta {
  margin: 14px 0 0;
  color: rgba(17, 20, 17, 0.5);
  font-size: 0.9rem;
}

.vazio {
  padding: 40px 0;
  color: rgba(17, 20, 17, 0.55);
}

/* --- grade de papéis dentro da categoria --- */

.papel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}

@media (min-width: 1100px) {
  .papel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.papel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 17, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(2, 20, 30, 0.07);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.papel-card:hover,
.papel-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(2, 20, 30, 0.13);
}

.papel-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e9e0d4;
}

.papel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.papel-qtd {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 20, 17, 0.72);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 500;
}

.papel-body {
  padding: 16px 18px 20px;
}

.papel-body h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.papel-body p {
  margin: 0;
  color: rgba(17, 20, 17, 0.62);
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* --- tela do papel de parede --- */

.papel-detalhe {
  display: grid;
  gap: clamp(26px, 3.4vw, 54px);
  align-items: start;
}

@media (min-width: 900px) {
  .papel-detalhe {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  }
}

.galeria-principal {
  overflow: hidden;
  border-radius: 20px;
  background: #e9e0d4;
  box-shadow: 0 20px 50px rgba(2, 20, 30, 0.12);
}

.galeria-principal img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.galeria-miniaturas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mini {
  width: 92px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: border-color 160ms ease, opacity 160ms ease;
  opacity: 0.72;
}

.mini img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.mini:hover,
.mini:focus-visible {
  opacity: 1;
}

.mini.ativa {
  border-color: var(--ink);
  opacity: 1;
}

.papel-desc {
  margin: 18px 0 0;
  color: rgba(17, 20, 17, 0.76);
  font-size: 1.06rem;
  line-height: 1.5;
}

.papel-obs {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(17, 20, 17, 0.16);
  border-radius: 0 10px 10px 0;
  background: rgba(17, 20, 17, 0.04);
  color: rgba(17, 20, 17, 0.6);
  font-size: 0.88rem;
  line-height: 1.4;
}

.papel-cta,
.voltar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.voltar {
  background: transparent;
  border: 1px solid rgba(17, 20, 17, 0.2);
  color: var(--ink);
}

.voltar:hover {
  background: rgba(17, 20, 17, 0.06);
}

.papel-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(36px, 6vh, 64px);
  padding-top: clamp(20px, 3vh, 30px);
  border-top: 1px solid rgba(17, 20, 17, 0.14);
}

.papel-nav a {
  color: rgba(17, 20, 17, 0.72);
  font-size: 0.95rem;
  text-decoration: none;
}

.papel-nav a:hover {
  color: var(--ink);
}

.papel-nav .voltar {
  margin-top: 0;
}

/* quantidade de papéis no card de categoria */
.cat-conta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: rgba(17, 20, 17, 0.5);
  font-size: 0.84rem;
  font-weight: 500;
}

.category-card {
  color: inherit;
  text-decoration: none;
}

/* ---------- entrada dos blocos conforme a rolagem ----------
   --d é o atraso de cada elemento, escrito pelo JS conforme a posição
   horizontal: quem está mais à direita entra depois, formando uma onda. */

.reveal {
  --d: 0ms;
}

/* nada fica escondido enquanto o JS não assume o controle */
.reveal-ready .reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(48px) rotateX(7deg) scale(0.965);
  transform-origin: 50% 100%;
  filter: blur(7px);
}

.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1) var(--d),
    transform 940ms cubic-bezier(0.16, 1, 0.3, 1) var(--d),
    filter 640ms ease var(--d);
}

/* a foto entra como cortina, de cima para baixo, e assenta o zoom */
.reveal-ready .reveal .cat-thumb img,
.reveal-ready .reveal.featured-card img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.22);
}

.reveal-ready .reveal.is-in .cat-thumb img,
.reveal-ready .reveal.is-in.featured-card img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) + 90ms),
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) + 90ms);
}

.reveal-ready .reveal.is-in .cat-thumb img {
  transform: scale(1.06);
}

.reveal-ready .reveal.is-in.featured-card img {
  transform: scale(1);
}

/* o texto sobe logo atrás da imagem, em escadinha */
.reveal-ready .reveal .cat-body > *,
.reveal-ready .reveal figcaption > * {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-ready .reveal.is-in .cat-body > *,
.reveal-ready .reveal.is-in figcaption > * {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease calc(var(--d) + 260ms),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) + 260ms);
}

.reveal-ready .reveal.is-in .cat-body > *:nth-child(2),
.reveal-ready .reveal.is-in figcaption > *:nth-child(2) {
  transition-delay: calc(var(--d) + 330ms);
}

.reveal-ready .reveal.is-in .cat-body > *:nth-child(3) {
  transition-delay: calc(var(--d) + 400ms);
}

/* um fio de luz corre pela borda do card no instante da entrada */
.category-card {
  position: relative;
}

.reveal-ready .reveal.is-in.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%
  );
  animation: card-sheen 1100ms ease-out calc(var(--d) + 180ms) 1 both;
  pointer-events: none;
}

@keyframes card-sheen {
  from {
    opacity: 0.9;
    transform: translateX(-120%);
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

/* ---------- botão que abre o menu a partir da página ---------- */

.head-mega-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: clamp(24px, 3vh, 36px);
  padding: 0 26px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.head-mega-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 12, 4, 0.22);
}

/* ---------- políticas ---------- */

.policies {
  padding: clamp(56px, 8vh, 100px) clamp(20px, 5vw, 88px);
  background: #efe7dd;
}

.policies-inner {
  max-width: 900px;
  margin: 0 auto;
}

.policies h2 {
  margin: 0 0 clamp(22px, 3vh, 34px);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
}

.policies details {
  border-top: 1px solid rgba(17, 20, 17, 0.16);
}

.policies details:last-of-type {
  border-bottom: 1px solid rgba(17, 20, 17, 0.16);
}

.policies summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.policies summary::-webkit-details-marker {
  display: none;
}

.policies summary::after {
  content: "+";
  color: rgba(17, 20, 17, 0.45);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.policies details[open] summary::after {
  content: "–";
}

.policy-body {
  padding: 0 0 22px;
  max-width: 700px;
}

.policy-body p {
  margin: 0 0 12px;
  color: rgba(17, 20, 17, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  padding: clamp(48px, 7vh, 88px) clamp(20px, 5vw, 88px) 30px;
  color: rgba(253, 241, 225, 0.78);
  background: #17130f;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(28px, 3vw, 54px);
  max-width: 1560px;
  margin: 0 auto;
}

.footer-brand {
  grid-column: span 1;
  max-width: 360px;
}

.footer-logo {
  margin: 0 0 12px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.2;
}

.footer-desc {
  margin: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(253, 241, 225, 0.22);
  border-radius: 999px;
  color: rgba(253, 241, 225, 0.82);
  font-size: 0.86rem;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer-social a:hover {
  color: #17130f;
  border-color: var(--paper);
  background: var(--paper);
}

.footer-col h3 {
  margin: 0 0 16px;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.94rem;
  line-height: 1.4;
}

.footer-col a {
  color: rgba(253, 241, 225, 0.76);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
}

.contact-label {
  color: rgba(253, 241, 225, 0.44);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  max-width: 1560px;
  margin: clamp(36px, 5vh, 62px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 241, 225, 0.14);
}

.footer-legal p {
  margin: 0;
  color: rgba(253, 241, 225, 0.6);
  font-size: 0.85rem;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-legal a {
  color: rgba(253, 241, 225, 0.72);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-note {
  max-width: 1560px;
  margin: 18px auto 0;
  color: rgba(253, 241, 225, 0.4);
  font-size: 0.8rem;
}

/* ---------- media queries ---------- */

@media (max-width: 1100px) {
  .hero-title {
    top: 18vh;
  }
  .catalog-stats dt {
    font-size: 2.6rem;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding: 14px clamp(16px, 4vw, 24px);
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .mega-panel {
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 150px);
    border-radius: 18px;
  }
  .mega-grid {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  }
  /* no toque não existe hover: o painel só abre pelo clique */
  .nav-mega:hover .mega-panel:not(.forcado) {
    opacity: 0;
    visibility: hidden;
  }
  .nav-mega.is-open .mega-panel {
    opacity: 1;
    visibility: visible;
  }
  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .stage {
    min-height: 600px;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 24px;
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-logo {
    font-size: 15px;
  }
  .site-nav {
    gap: 12px;
  }
  .nav-link {
    font-size: 14px;
  }
  .brand-tag {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }
  .hero-title {
    top: 19vh;
  }
  .intro-copy {
    bottom: 44px;
  }
  .intro-copy p {
    font-size: 1rem;
  }
  .hero-tags {
    gap: 8px;
  }
  .hero-action {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.88rem;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .hero-scroll-hint {
    margin-top: 22px;
  }
  .cat-body {
    padding: 12px 12px 16px;
  }
  .cat-group {
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 0.6rem;
  }
  .cat-body h4 {
    font-size: 0.95rem;
  }
  .cat-body p {
    font-size: 0.8rem;
  }
  .block-head {
    gap: 6px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-ready .reveal,
  .reveal-ready .reveal .cat-thumb img,
  .reveal-ready .reveal.featured-card img,
  .reveal-ready .reveal .cat-body > *,
  .reveal-ready .reveal figcaption > * {
    opacity: 1;
    clip-path: none;
    transform: none;
    filter: none;
    transition: none;
  }
  .reveal-ready .reveal.is-in.category-card::after {
    animation: none;
    content: none;
  }
  .hero-video,
  .hero-title,
  .intro-copy {
    transition: none;
  }
  .hero-scroll-hint span:last-child {
    animation: none;
  }
}
