:root {
  --navy: #1a365d;
  --navy-deep: #102640;
  --sand: #b89b76;
  --cream: #fdfbf7;
  --ink-soft: #4d607a;
  --line: #e6dfd2;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }

.page { max-width: 1120px; margin: 0 auto; padding: 56px 20px 40px; }

.intro { text-align: center; margin-bottom: 44px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}
.rule { display: block; width: 56px; height: 2px; background: var(--sand); margin: 22px auto; }
.hint { margin: 0; font-size: 17px; color: var(--ink-soft); font-weight: 300; }

/* grade */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--sand);
  box-shadow: 0 18px 40px -22px rgba(16, 38, 64, 0.45);
  outline: none;
}
.card:focus-visible { box-shadow: 0 0 0 3px var(--sand); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.card .meta {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.card .num { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--sand); }
.card .nm { font-size: 13px; line-height: 1.3; color: var(--navy); }
.card .open {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 14px;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.card:hover .open, .card:focus-visible .open { opacity: 1; transform: none; }

.foot { margin-top: 56px; text-align: center; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }

/* visualizador */
.viewer {
  position: fixed; inset: 0; z-index: 20;
  background: var(--navy-deep);
  color: #f4efe6;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
  animation: fadeIn 0.4s ease;
}
.viewer[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.v-close, .v-nav {
  position: fixed; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, 0.3);
  background: rgba(16, 38, 64, 0.6);
  color: #f4efe6; font-size: 26px; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.v-close:hover, .v-nav:hover { background: var(--sand); border-color: var(--sand); color: var(--navy-deep); }
.v-close { top: 16px; right: 16px; font-size: 30px; }
.v-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.v-next { right: 14px; top: 50%; transform: translateY(-50%); }

.v-body {
  width: 100%; max-width: 1060px;
  margin: auto;
  padding: 72px 24px 56px;
  display: grid; gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .v-body { grid-template-columns: 1.05fr 1fr; gap: 64px; padding: 48px 90px; }
}

.v-stage { display: flex; justify-content: center; }
.v-card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.v-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* animação da logo: o vídeo se desenha sozinho; o cartão só entra suave */
.v-card.play { animation: cardIn 0.9s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }

/* texto do conceito */
.v-text > * { opacity: 0; transform: translateY(14px); }
.v-text.play > * { animation: textIn 0.8s var(--ease) forwards; }
.v-text.play > :nth-child(1) { animation-delay: 0.5s; }
.v-text.play > :nth-child(2) { animation-delay: 0.65s; }
.v-text.play > :nth-child(3) { animation-delay: 0.8s; }
.v-text.play > :nth-child(4) { animation-delay: 0.95s; }
.v-text.play > :nth-child(5) { animation-delay: 1.15s; }
.v-text.play > :nth-child(6) { animation-delay: 1.3s; }
.v-text.play > :nth-child(7) { animation-delay: 1.4s; }
@keyframes textIn { to { opacity: 1; transform: none; } }

.v-eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sand); }
.v-text h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; color: #fff; }
.rule.gold { margin: 22px 0; width: 48px; }
.v-concept { margin: 0 0 22px; font-size: 17px; line-height: 1.7; font-weight: 300; color: #e4dccd; }
.v-tags { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v-tags li { padding: 6px 14px; border: 1px solid rgba(184, 155, 118, 0.6); border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #e9d9bf; }

.v-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.4); background: transparent;
  font-size: 14px; letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { border-color: var(--sand); color: var(--sand); }
.btn.primary { background: var(--sand); border-color: var(--sand); color: var(--navy-deep); font-weight: 700; }
.btn.primary:hover { background: #cdb28e; color: var(--navy-deep); }
.v-count { margin: 20px 0 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 239, 230, 0.55); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 40;
  transform: translate(-50%, 20px);
  background: var(--sand); color: var(--navy-deep);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 899px) {
  .v-prev, .v-next { top: auto; bottom: 16px; transform: none; }
  .v-prev { left: 16px; }
  .v-next { right: 16px; }
  .v-body { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; opacity: 1; transform: none; }
  .v-card.play, .v-card.play img, .v-card.play 