:root {
  --abyss: #070D0B;
  --abyss-deep: #040907;
  --patina: #0F1C17;
  --veil: #162B22;
  --kraft: #1C1611;
  --slate-com: #0B1214;
  --ivory: #F2EBE0;
  --parchment: #E4DEC8;
  --muted: #B6B09C;
  --gold: #D5BA78;
  --gold-bright: #E8C984;
  --brass: #CBB682;
  --slate-line: rgba(123, 156, 176, 0.34);
  --emerald-veil: #3CC482;
  --hairline: rgba(213, 186, 120, 0.24);
  --hairline-strong: rgba(213, 186, 120, 0.56);
}

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

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  background: var(--abyss-deep);
  color: var(--ivory);
  overflow-x: clip;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "GVInter", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  background: radial-gradient(ellipse at 50% 0%, #0E1F18 0%, var(--abyss) 54%, var(--abyss-deep) 100%);
  color: var(--ivory);
  line-height: 1.66;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sym-arrow {
  font-family: "GVInter", sans-serif;
  display: inline-block;
  margin: 0 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 80;
  background: var(--abyss);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold-bright);
  padding: 10px 16px;
  font-family: "GVCinzel", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Living Veil 2.0 WebGL Full-Bleed */
#veil-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.98;
}

.optical-beam {
  position: fixed;
  top: -360px;
  left: -360px;
  width: 720px;
  height: 720px;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(50vw, 30vh, 0);
}

.optical-beam::before,
.optical-beam::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.optical-beam::before {
  background: radial-gradient(circle at 50% 50%, rgba(213, 186, 120, 0.09), rgba(21, 52, 41, 0.06) 42%, transparent 72%);
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.optical-beam::after {
  background: radial-gradient(circle at 50% 50%, rgba(232, 201, 132, 0.15), rgba(60, 196, 130, 0.05) 38%, rgba(21, 52, 41, 0.09) 55%, transparent 74%);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-view-layer="second"] .optical-beam::before { opacity: 0.25; }
body[data-view-layer="second"] .optical-beam::after { opacity: 1; }

/* Grao 35mm GPU sem custo de codec nos videos */
.cinema-grain-overlay {
  position: fixed;
  inset: -64px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.036;
  background-image: repeating-radial-gradient(circle at 17% 32%, rgba(242, 235, 224, 0.7) 0, transparent 1.2px),
    repeating-linear-gradient(90deg, rgba(213, 186, 120, 0.25) 0 1px, transparent 1px 4px);
  background-size: 96px 96px, 6px 6px;
  animation: grainDrift 0.9s steps(3, end) infinite;
}

@keyframes grainDrift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-14px, 10px, 0); }
  66% { transform: translate3d(12px, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Diafragma Otico de Transicao I <-> II Vista */
.optical-iris-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(232, 201, 132, 0.22) 0%, rgba(7, 13, 11, 0.78) 65%, rgba(4, 9, 7, 0.95) 100%);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.optical-iris-scrim.active {
  opacity: 1;
}

@keyframes irisWipeIn {
  from { clip-path: circle(0% at var(--iris-x, 76%) var(--iris-y, 44px)); }
  to { clip-path: circle(150% at var(--iris-x, 76%) var(--iris-y, 44px)); }
}

::view-transition-new(root) {
  animation: irisWipeIn 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
  animation: none;
}

@media (hover: none), (pointer: coarse) {
  .optical-beam { display: none; }
}

/* Trilho lateral de profundidade I - VI */
.depth-rail {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 7px;
  border: 1px solid rgba(213, 186, 120, 0.26);
  background: rgba(7, 13, 11, 0.86);
  backdrop-filter: blur(12px);
}

.depth-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  font-family: "GVCinzel", serif;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--brass);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.depth-rail a:hover,
.depth-rail a.active {
  color: var(--gold-bright);
  border-color: rgba(232, 201, 132, 0.58);
  background: rgba(213, 186, 120, 0.16);
}

@media (max-width: 1480px) {
  .depth-rail { display: none; }
}

/* Moldura Wide Cinematografica GV-BRAND-LOCK v2.0 (desencaixotada) */
.page-frame {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 14px auto;
  border: 1px solid rgba(213, 186, 120, 0.24);
  background: linear-gradient(180deg, rgba(7, 13, 11, 0.56) 0%, rgba(7, 13, 11, 0.68) 45%, rgba(6, 11, 10, 0.82) 100%);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.82), inset 0 0 0 1px rgba(213, 186, 120, 0.05);
}

/* 4 Cantoneiras metalicas nos extremos da tela arquivistica */
.l-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 40;
  transition: border-color 0.35s ease, filter 0.35s ease;
}
.l-corner.tl { top: -1px; left: -1px; border-top: 1.5px solid rgba(213, 186, 120, 0.78); border-left: 1.5px solid rgba(213, 186, 120, 0.78); }
.l-corner.tr { top: -1px; right: -1px; border-top: 1.5px solid rgba(213, 186, 120, 0.78); border-right: 1.5px solid rgba(213, 186, 120, 0.78); }
.l-corner.bl { bottom: -1px; left: -1px; border-bottom: 1.5px solid rgba(213, 186, 120, 0.78); border-left: 1.5px solid rgba(213, 186, 120, 0.78); }
.l-corner.br { bottom: -1px; right: -1px; border-bottom: 1.5px solid rgba(213, 186, 120, 0.78); border-right: 1.5px solid rgba(213, 186, 120, 0.78); }

body[data-view-layer="second"] .l-corner {
  border-color: rgba(232, 201, 132, 0.96);
  filter: drop-shadow(0 0 8px rgba(232, 201, 132, 0.38));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 11, 9, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 186, 120, 0.20);
}

/* Cinema Masthead Unico */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 34px;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mini img.crest {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
}

.brand-mini img.wm {
  height: 13px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "GVCinzel", serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--parchment);
  text-decoration: none;
  opacity: 0.86;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  opacity: 1;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(15, 28, 23, 0.72);
  border: 1px solid rgba(213, 186, 120, 0.34);
  color: var(--parchment);
  padding: 6px 11px;
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ctrl-btn:hover {
  border-color: var(--gold-bright);
  color: var(--ivory);
}

.ctrl-btn[aria-pressed="true"] {
  background: rgba(213, 186, 120, 0.22);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(7, minmax(44px, auto));
  border: 1px solid rgba(213, 186, 120, 0.42);
  background: rgba(7, 13, 11, 0.78);
}

.lang-btn {
  background: transparent;
  color: var(--parchment);
  border: none;
  border-right: 1px solid rgba(213, 186, 120, 0.16);
  min-width: 44px;
  min-height: 44px;
  padding: 6px 8px;
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:last-child { border-right: none; }

.lang-btn.active {
  background: rgba(213, 186, 120, 0.26);
  color: var(--gold-bright);
}

.mobile-menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(15, 28, 23, 0.72);
  border: 1px solid rgba(213, 186, 120, 0.38);
  color: var(--gold-bright);
  cursor: pointer;
}

/* Faixa Cronoforo Ultracompacta */
.marginalia-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 34px;
  border-top: 1px solid rgba(213, 186, 120, 0.14);
  background: rgba(4, 9, 7, 0.72);
  font-family: "GVCinzel", serif;
  font-size: 9.6px;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}

.marginalia-coords {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stratum-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--brass);
  padding: 4px 8px;
  min-height: 30px;
  font-family: "GVCinzel", serif;
  font-size: 9.6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stratum-btn::after {
  content: " ▾";
  opacity: 0.65;
  font-size: 8px;
}

.stratum-btn:hover,
.stratum-btn.active-stratum,
.stratum-btn[aria-expanded="true"] {
  color: var(--gold-bright);
  border-color: rgba(213, 186, 120, 0.44);
  background: rgba(213, 186, 120, 0.11);
}

.marginalia-tag {
  color: var(--muted);
  font-size: 9.6px;
  letter-spacing: 0.16em;
  padding: 0 4px;
}

.chronometer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--parchment);
  font-size: 9.6px;
  letter-spacing: 0.12em;
}

.chronometer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(213, 186, 120, 0.65);
  animation: breathDot 5s ease-in-out infinite;
}

@keyframes breathDot {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.18); }
}

.chronometer-badge.night-focus #live-clock { color: var(--gold-bright); }

.stratum-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  background: rgba(9, 17, 14, 0.96);
  border-top: 0 solid rgba(213, 186, 120, 0.22);
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.stratum-drawer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-width: 1px;
}

.stratum-drawer-inner { overflow: hidden; }

.stratum-drawer-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 34px;
  flex-wrap: wrap;
}

.stratum-drawer-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 360px;
}

.stratum-drawer-text {
  font-size: 13.5px;
  color: var(--ivory);
  line-height: 1.55;
}

.stratum-drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Foco acessivel */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* Atmosferas em Bandas Darkroom (Desencaixotado: zero grid de cartoes repetidos) */
.section {
  position: relative;
  padding: 76px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(213, 186, 120, 0.14);
  scroll-margin-top: 112px;
  transition: background-color 0.7s ease;
}

.section[data-atmosphere-band="1"] {
  background: linear-gradient(180deg, rgba(16, 14, 11, 0.54) 0%, rgba(11, 18, 16, 0.62) 100%);
}

.section[data-atmosphere-band="3"] {
  background: linear-gradient(180deg, rgba(14, 18, 16, 0.45) 0%, rgba(7, 13, 11, 0.72) 100%);
}

/* HERO CINEMA STAGE */
.hero {
  position: relative;
  min-height: min(82svh, 740px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4.5vw, 62px) clamp(22px, 5vw, 72px);
  align-items: center;
  scroll-margin-top: 112px;
  background: radial-gradient(ellipse at 74% 48%, rgba(22, 43, 34, 0.36) 0%, rgba(7, 13, 11, 0.56) 62%, transparent 100%);
}

.hero-copy-col {
  position: relative;
  z-index: 3;
}

.kicker {
  font-family: "GVCinzel", serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.viral-invite-banner {
  margin-bottom: 14px;
  padding: 9px 14px;
  border-left: 2px solid var(--gold-bright);
  background: rgba(213, 186, 120, 0.11);
  color: var(--gold-bright);
  font-size: 13.5px;
}

h1 {
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.hero-edition-sub {
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: 15.5px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: none;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--parchment);
  margin-bottom: 24px;
  max-width: 54ch;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(213, 186, 120, 0.24) 0%, rgba(213, 186, 120, 0.11) 100%);
  color: var(--ivory);
  text-decoration: none;
  font-family: "GVCinzel", serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.btn-gold:hover {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(232, 201, 132, 0.34) 0%, rgba(213, 186, 120, 0.18) 100%);
  transform: translateY(-1px);
}

.btn-gold:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(228, 222, 200, 0.34);
  color: var(--parchment);
  text-decoration: none;
  background: rgba(15, 28, 23, 0.45);
  font-family: "GVCinzel", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--gold-bright);
  color: var(--ivory);
}

.btn-sm {
  min-height: 44px;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: 0.13em;
}

/* Selo vertical tategaki exclusivo do idioma Japones em desktop */
.ja-tategaki-seal {
  display: none;
}

html[lang="ja"] .ja-tategaki-seal {
  display: block;
  position: absolute;
  left: 24px;
  top: 52%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  color: rgba(213, 186, 120, 0.62);
  border-right: 1px solid rgba(213, 186, 120, 0.26);
  padding-right: 8px;
  pointer-events: none;
  z-index: 2;
}

/* Placa Cinema da Soleira (Imagem WebP LCP + Video Loop pos-idle) */
.hero-plate-stage {
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.hero-plate {
  position: relative;
  border: 1px solid rgba(213, 186, 120, 0.36);
  background: #040807;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.86), 0 0 56px rgba(22, 54, 42, 0.32);
  padding: 10px;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.hero-plate.is-tilting { transition: box-shadow 0.28s ease; }
.hero-plate .l-corner.tl { top: 0; left: 0; }
.hero-plate .l-corner.tr { top: 0; right: 0; }
.hero-plate .l-corner.bl { bottom: 0; left: 0; }
.hero-plate .l-corner.br { bottom: 0; right: 0; }

.hero-plate-glow {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #040807;
}

.hero-plate-glow picture,
.hero-plate-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-ambient-video,
.scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.hero-ambient-video.is-ready,
.scene-video.is-ready {
  opacity: 1;
}

.hero-plate-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 13, 11, 0.34) 0%, transparent 28%, transparent 72%, rgba(7, 13, 11, 0.28) 100%);
}

.hero-caption {
  margin-top: 10px;
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
}

/* IIa Vista em palimpsesto */
.second-sight-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  margin-top: 0;
  transition: grid-template-rows 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin-top 0.35s ease, visibility 0s linear 0.48s;
}

body[data-view-layer="second"] .second-sight-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  margin-top: 18px;
  transition: grid-template-rows 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin-top 0.35s ease, visibility 0s;
}

.second-sight-inner { overflow: hidden; }

.second-sight-note {
  padding: 13px 16px;
  border-left: 3px solid var(--emerald-veil);
  background: rgba(18, 42, 33, 0.84);
  font-size: 14px;
  color: var(--ivory);
}

.second-sight-label {
  display: block;
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Cabecalhos de secao e reguas de scroll progressivo */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

h2 {
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.16;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(213, 186, 120, 0.38);
  background: rgba(15, 28, 23, 0.56);
  padding: 7px 13px;
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.motif-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 28px;
}

.motif-divider-rule {
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 186, 120, 0.72), transparent);
}

@supports (animation-timeline: view()) {
  .reveal-rule {
    animation: ruleExpand linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 35%;
  }
  @keyframes ruleExpand {
    from { opacity: 0.35; transform: scaleX(0.72); }
    to { opacity: 1; transform: scaleX(1); }
  }
}

/* BANCADA DO CAMPECHE — Fólio Fotográfico + Cinemagraph */
.campeche-folio {
  padding: 18px 0 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(213, 186, 120, 0.18);
}

.campeche-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(22px, 3.5vw, 44px);
  align-items: center;
}

.campeche-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(213, 186, 120, 0.28);
  background: #0D0B09;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.72);
}

.campeche-stage picture,
.campeche-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campeche-envelope-beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 74% 58%, rgba(232, 201, 132, 0.30) 0%, rgba(213, 186, 120, 0.12) 28%, transparent 62%);
  transition: opacity 0.45s ease;
}

.campeche-folio.envelope-lit .campeche-envelope-beam {
  opacity: 1;
}

.campeche-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.campeche-copy h3 {
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.24;
}

.campeche-dialogue {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.campeche-dialogue.visible {
  grid-template-rows: 1fr;
  opacity: 1;
}

.campeche-dialogue-inner { overflow: hidden; }

.campeche-quote {
  margin-top: 4px;
  padding: 12px 15px;
  border-left: 2px solid var(--gold-bright);
  background: rgba(7, 13, 11, 0.76);
  font-size: 15px;
  color: var(--gold-bright);
  font-style: italic;
}

/* Camara Dual Darkroom (Mesa de Luz 28° com Lupa Otica vs Vidro Frio 04:02) */
.instruments-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(22px, 3.2vw, 38px);
  align-items: stretch;
}

.instrument-folio {
  position: relative;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(213, 186, 120, 0.24);
  overflow: hidden;
}

.darkroom-walnut {
  background: linear-gradient(165deg, rgba(28, 22, 17, 0.78) 0%, rgba(8, 13, 11, 0.90) 100%);
}

.cold-glass-0402 {
  border-color: var(--slate-line);
  background: rgba(6, 11, 13, 0.88);
}

.terminal-video-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.terminal-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  display: block;
}

.terminal-video-backdrop .scene-video.is-ready {
  opacity: 0.36;
}

.terminal-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 13, 0.84) 0%, rgba(6, 11, 13, 0.74) 55%, rgba(6, 11, 13, 0.92) 100%);
}

.terminal-fg {
  position: relative;
  z-index: 2;
}

.instrument-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.box-tag {
  font-family: "GVCinzel", serif;
  font-size: 10.5px;
  letter-spacing: 0.17em;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.angle-readout {
  font-family: "GVCinzel", serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--parchment);
  border: 1px solid rgba(213, 186, 120, 0.32);
  padding: 5px 10px;
}

.angle-readout.unlocked {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(213, 186, 120, 0.16);
}

/* MESA DE LUZ PRATA-GELATINA + LUPA OTICA 2.2X (ZERO TAINT) */
.lightbox-stage {
  position: relative;
  border: 1px solid rgba(213, 186, 120, 0.32);
  background: #080706;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage.detent-pulse {
  border-color: var(--gold-bright);
  box-shadow: 0 0 32px rgba(232, 201, 132, 0.25);
}

.lightbox-desk-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.lightbox-sheet {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 16 / 10;
  padding: 8px;
  background: linear-gradient(145deg, #E3DAC5 0%, #CFC4AC 60%, #A89C84 100%);
  box-shadow: 10px 14px 32px rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(140, 126, 98, 0.65);
  transform: rotate(-2.5deg);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.lightbox-stage.unlocked .lightbox-sheet {
  border-color: rgba(232, 201, 132, 0.92);
}

.lightbox-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #141715;
}

.lightbox-photo-frame picture,
.lightbox-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#lightbox-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Lupa Otica de Latao 2.2x via CSS GPU Background */
.optical-loupe {
  position: absolute;
  z-index: 6;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.88), inset 0 0 18px rgba(232, 201, 132, 0.24), inset 0 0 0 3px rgba(7, 13, 11, 0.65);
  background-color: #101412;
  background-image: url("media/sala-11andar-1280-v14.webp");
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0) scale(0.92);
  transition: opacity 0.22s ease;
}

.optical-loupe.active {
  opacity: 1;
}

.dial-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-wrap {
  position: relative;
  flex: 1 1 160px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.slider-detent {
  position: absolute;
  left: 62.2%;
  top: 50%;
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: var(--gold-bright);
  pointer-events: none;
  opacity: 0.78;
}

.brass-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, rgba(213, 186, 120, 0.25) 0%, var(--gold-bright) 100%);
  border: 1px solid rgba(213, 186, 120, 0.38);
  cursor: pointer;
}

.brass-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--abyss);
  border: 1.5px solid var(--gold-bright);
  box-shadow: 0 0 10px rgba(213, 186, 120, 0.48);
  cursor: pointer;
}

.brass-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--abyss);
  border: 1.5px solid var(--gold-bright);
  border-radius: 0;
  cursor: pointer;
}

.lightbox-inspect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

.lightbox-inspect-row.ready {
  max-height: 120px;
  opacity: 1;
  pointer-events: auto;
}

.inspect-chip {
  background: rgba(15, 28, 23, 0.82);
  border: 1px solid rgba(213, 186, 120, 0.34);
  color: var(--parchment);
  padding: 6px 12px;
  min-height: 44px;
  font-family: "GVCinzel", serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.inspect-chip.active,
.inspect-chip:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(213, 186, 120, 0.16);
}

.lightbox-reading {
  padding: 14px 16px;
  border-left: 2px solid rgba(213, 186, 120, 0.35);
  background: rgba(4, 9, 7, 0.72);
  font-size: 14.5px;
  color: var(--parchment);
  min-height: 88px;
}

.lightbox-reading.unlocked {
  border-left-color: var(--gold-bright);
  color: var(--ivory);
}

/* Terminal 04:02 */
.dawn-dispatch {
  border: 1px solid rgba(123, 156, 176, 0.28);
  background: rgba(6, 11, 13, 0.80);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--parchment);
}

.dispatch-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  border-bottom: 1px solid rgba(123, 156, 176, 0.2);
  padding-bottom: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.highlight-rest {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding: 0 2px;
  transition: color 0.35s ease, border-color 0.35s ease;
}

body[data-view-layer="second"] .highlight-rest,
.highlight-rest.lit {
  color: var(--gold-bright);
  border-bottom-color: rgba(232, 201, 132, 0.78);
}

.dispatch-sign { margin-top: 8px; color: var(--ivory); font-style: italic; }
.dispatch-rubric { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.unsent-box { display: flex; flex-direction: column; gap: 10px; }
.unsent-label {
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--brass);
  text-transform: uppercase;
}
.unsent-field-wrap { position: relative; }
.unsent-input {
  width: 100%;
  min-height: 46px;
  background: rgba(4, 9, 7, 0.90);
  border: 1px solid rgba(123, 156, 176, 0.38);
  padding: 10px 14px;
  color: var(--ivory);
  font-family: "GVInter", sans-serif;
  font-size: 16px;
  transition: border-color 0.25s ease, filter 0.2s ease;
}
.unsent-input.hesitating { border-color: var(--gold-bright); }
.unsent-input.dissolving { filter: blur(0.45px); }

.ash-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ash-particle {
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: ashRise 0.42s ease-out forwards;
}
@keyframes ashRise {
  0% { opacity: 0.95; transform: translateY(0) scale(1); background: var(--gold-bright); }
  55% { opacity: 0.55; background: var(--brass); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.4); }
}

.hesitation-trace { display: flex; align-items: center; gap: 10px; min-height: 22px; font-size: 12px; color: var(--muted); font-style: italic; }
.pixel-quad { display: grid; grid-template-columns: repeat(2, 5px); gap: 2px; opacity: 0; transition: opacity 0.2s ease; }
.pixel-quad.active { opacity: 0.85; }
.pixel-quad span { width: 5px; height: 5px; background: var(--brass); }

.desk-log {
  margin-top: auto;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border: 0 solid rgba(213, 186, 120, 0.26);
  background: rgba(15, 28, 23, 0.72);
  font-size: 13.5px;
  color: var(--parchment);
  transition: grid-template-rows 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.desk-log.visible {
  grid-template-rows: 1fr;
  opacity: 1;
  border-width: 1px;
  border-color: rgba(232, 201, 132, 0.64);
}
.desk-log-inner { overflow: hidden; padding: 0 16px; transition: padding 0.4s ease; }
.desk-log.visible .desk-log-inner { padding: 14px 16px; }
.desk-log-stamp { font-family: "GVCinzel", serif; font-size: 10.5px; letter-spacing: 0.16em; color: var(--gold-bright); margin-bottom: 6px; }
.desk-log-close { color: var(--gold-bright); margin-top: 8px; font-style: italic; }

/* Duas Portas + Dossie Psicologico & Passaporte 9:16 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.choice-card {
  border-top: 1px solid rgba(213, 186, 120, 0.32);
  border-bottom: 1px solid rgba(213, 186, 120, 0.16);
  background: linear-gradient(180deg, rgba(15, 28, 23, 0.56) 0%, rgba(7, 13, 11, 0.72) 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.choice-card:hover { border-top-color: rgba(232, 201, 132, 0.72); }
.choice-card.selected {
  border-color: var(--gold-bright);
  border-style: solid;
  border-width: 1px;
  box-shadow: 0 0 38px rgba(213, 186, 120, 0.16);
}
.choice-card h3 { font-family: "Palatino Linotype", "Georgia", serif; font-size: 23px; font-weight: 400; color: var(--ivory); }
.choice-card p { font-size: 15px; color: var(--parchment); }

.blind-reveal {
  margin-top: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border: 0 solid rgba(213, 186, 120, 0.44);
  background: rgba(11, 21, 17, 0.86);
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease, margin-top 0.3s ease;
}
.blind-reveal.visible {
  margin-top: 26px;
  grid-template-rows: 1fr;
  opacity: 1;
  border-width: 1px;
}
.blind-reveal-inner { overflow: hidden; padding: 0 26px; }
.blind-reveal.visible .blind-reveal-inner { padding: 26px; }

.passport-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.passport-reveal-lead { font-size: 15.5px; color: var(--ivory); margin-bottom: 10px; }
.dossier-psych-text {
  padding: 12px 14px;
  border-left: 2px solid var(--emerald-veil);
  background: rgba(7, 13, 11, 0.72);
  color: var(--parchment);
  font-size: 14px;
  margin-bottom: 14px;
}

.astrolabe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.astro-pip {
  padding: 5px 10px;
  border: 1px solid rgba(213, 186, 120, 0.24);
  background: rgba(7, 13, 11, 0.65);
  color: var(--muted);
  font-family: "GVCinzel", serif;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.astro-pip.done {
  border-color: var(--gold-bright);
  background: rgba(213, 186, 120, 0.16);
  color: var(--gold-bright);
}

.alias-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.alias-input { max-width: 340px; }

.passport-preview-wrap {
  display: flex;
  justify-content: center;
}

#passaporte-canvas {
  width: min(260px, 100%);
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(213, 186, 120, 0.48);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.88);
  background: #070D0B;
}

/* Ponte Fisica 3D Sem Ferrolho c. 1320 <-> 2009 */
.threshold-bridge {
  border-top: 1px solid rgba(213, 186, 120, 0.30);
  border-bottom: 1px solid rgba(213, 186, 120, 0.30);
  background: linear-gradient(90deg, rgba(24, 18, 13, 0.68) 0%, rgba(7, 13, 11, 0.80) 50%, rgba(10, 17, 20, 0.72) 100%);
  padding: 24px 0;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bridge-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bridge-era-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.bridge-era-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(213, 186, 120, 0.34);
  background: rgba(7, 13, 11, 0.80);
  color: var(--parchment);
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.bridge-era-btn.active { border-color: var(--gold-bright); background: rgba(213, 186, 120, 0.20); color: var(--gold-bright); }

.bridge-cinema-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 250px;
  padding: 10px;
  border: 1px solid rgba(213, 186, 120, 0.26);
  background: #060908;
  cursor: pointer;
  touch-action: pan-y;
  overflow: hidden;
}

.bridge-bg-video.is-ready {
  opacity: 0.22;
}

.bridge-panel {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(213, 186, 120, 0.22);
  background: #0B0D0C;
  perspective: 900px;
  opacity: 0.68;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.bridge-panel.active {
  opacity: 1;
  border-color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(213, 186, 120, 0.16);
}

.bridge-door-leaf {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.bridge-panel.bridge-2009 .bridge-door-leaf {
  transform-origin: right center;
}

.bridge-door-leaf picture,
.bridge-door-leaf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bolt-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: rgba(7, 13, 11, 0.86);
  border: 1px solid rgba(213, 186, 120, 0.55);
  color: var(--gold-bright);
  font-family: "GVCinzel", serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bridge-era-caption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(7, 13, 11, 0.84);
  color: var(--ivory);
  font-family: "GVCinzel", serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.bridge-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bridge-note { flex: 1 1 340px; font-size: 14.5px; color: var(--parchment); }

/* Prancha Editorial Arco 1 & Estante C01 */
.seals-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.seal-card {
  border-top: 1px solid rgba(213, 186, 120, 0.28);
  border-bottom: 1px solid rgba(213, 186, 120, 0.14);
  background: rgba(11, 20, 16, 0.56);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  min-height: 44px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.seal-card:hover { border-top-color: var(--gold-bright); transform: translateY(-2px); }
.seal-card.lit {
  border: 1px solid var(--gold-bright);
  background: rgba(15, 28, 23, 0.84);
  box-shadow: 0 0 28px rgba(213, 186, 120, 0.14);
}
.seal-top { display: flex; align-items: center; justify-content: space-between; font-family: "GVCinzel", serif; font-size: 10px; letter-spacing: 0.14em; color: var(--gold); gap: 6px; }
.seal-title { font-family: "Palatino Linotype", "Georgia", serif; font-size: 20px; color: var(--ivory); }
.seal-desc { font-size: 14px; color: var(--parchment); }
.seal-status { font-family: "GVCinzel", serif; font-size: 9.5px; letter-spacing: 0.14em; color: var(--brass); text-transform: uppercase; margin-top: auto; }

.act-counterweight { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }
body[data-view-layer="second"] .act-counterweight { grid-template-rows: 1fr; opacity: 1; }
.act-counterweight-inner { overflow: hidden; border-left: 2px solid var(--emerald-veil); padding-left: 10px; font-size: 12.5px; color: var(--ivory); font-style: italic; }

.arc-detail-drawer {
  margin-top: 20px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold-bright);
  background: rgba(15, 28, 23, 0.68);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.arc-detail-text { font-size: 15px; color: var(--ivory); }

.codex-shelf {
  margin-top: 30px;
  padding: 24px 0 6px;
  border-top: 1px solid rgba(213, 186, 120, 0.22);
}

.codex-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.codex-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.codex-spine {
  border: 1px solid rgba(213, 186, 120, 0.22);
  background: rgba(12, 22, 18, 0.62);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.codex-spine:hover { border-color: rgba(213, 186, 120, 0.52); }
.codex-spine.active {
  border-color: var(--gold-bright);
  background: linear-gradient(170deg, rgba(213, 186, 120, 0.22) 0%, rgba(15, 28, 23, 0.85) 100%);
}
.codex-num { font-family: "GVCinzel", serif; font-size: 13px; letter-spacing: 0.16em; color: var(--brass); }
.codex-spine.active .codex-num { color: var(--gold-bright); }
.codex-state { font-size: 12px; color: var(--muted); margin-top: auto; }
.codex-spine.active .codex-state { color: var(--ivory); }
.codex-seal-readout { margin-top: 14px; font-size: 14px; color: var(--parchment); min-height: 22px; }

/* Camara VI — Pedido & Portas */
.box {
  border-top: 1px solid rgba(213, 186, 120, 0.28);
  background: rgba(11, 20, 16, 0.62);
  padding: 28px;
}
.box h3 { font-family: "Palatino Linotype", "Georgia", serif; font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.box p { color: var(--parchment); font-size: 15px; margin-bottom: 12px; }

.crossing-context-banner {
  padding: 10px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(7, 13, 11, 0.72);
  color: var(--gold-bright) !important;
  font-size: 13.5px !important;
}

.pedido-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pedido-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pedido-form select {
  flex: 0 1 auto;
  min-width: 132px;
  max-width: 100%;
  min-height: 46px;
  background: rgba(7, 13, 11, 0.92);
  border: 1px solid rgba(213, 186, 120, 0.38);
  padding: 10px 12px;
  color: var(--ivory);
  font-size: 15px;
}
.pedido-form input[type="text"] {
  flex: 1 1 220px;
  min-height: 46px;
  background: rgba(7, 13, 11, 0.92);
  border: 1px solid rgba(213, 186, 120, 0.38);
  padding: 10px 14px;
  color: var(--ivory);
  font-size: 16px;
}

.check-line { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14.5px; color: var(--parchment); cursor: pointer; }
.check-line input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
  background: rgba(7, 13, 11, 0.9);
  position: relative;
  cursor: pointer;
}
.check-line input[type="checkbox"]:checked { background: rgba(213, 186, 120, 0.24); border-color: var(--gold-bright); }
.check-line input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--gold-bright);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.form-note { margin-top: 10px; font-size: 13.5px; color: var(--gold); min-height: 22px; }
.doors-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.door-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-left: 1px solid rgba(213, 186, 120, 0.28);
  background: rgba(4, 9, 7, 0.56);
}
.door-row p { margin-bottom: 0; font-size: 14px; }
.svg-lead { flex-shrink: 0; margin-top: 2px; }

/* Rodape Tripartido */
.site-footer {
  padding: 28px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(213, 186, 120, 0.16);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-family: "GVCinzel", serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.footer-left { justify-self: start; color: rgba(213, 186, 120, 0.92); }
.footer-center { justify-self: center; display: flex; align-items: center; gap: 18px; color: var(--parchment); letter-spacing: 0.28em; font-size: 12.5px; }
.footer-rule { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(213, 186, 120, 0.65), transparent); }
.footer-right { justify-self: end; color: var(--brass); text-align: right; }

/* MODAL TEATRO TIPOGRAFICO "LEITURA DO LIMIAR · 90S" */
.limiar-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.limiar-modal[hidden] { display: none; }

.limiar-backdrop { position: absolute; inset: 0; overflow: hidden; background: #040907; }
.limiar-poster-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.limiar-video-bg.is-ready { opacity: 0.45; }
.limiar-scrim { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(7, 13, 11, 0.72) 0%, rgba(4, 9, 7, 0.94) 100%); }

.limiar-sheet {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  border: 1px solid rgba(213, 186, 120, 0.42);
  background: rgba(7, 13, 11, 0.94);
  backdrop-filter: blur(16px);
  padding: clamp(20px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.limiar-sheet > * {
  flex-shrink: 0;
}

.limiar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.limiar-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.limiar-progress-tabs { display: flex; gap: 8px; }
.limiar-dot {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(213, 186, 120, 0.34);
  background: rgba(15, 28, 23, 0.56);
  color: var(--brass);
  font-family: "GVCinzel", serif;
  font-size: 11px;
  cursor: pointer;
}
.limiar-dot.active { border-color: var(--gold-bright); background: rgba(213, 186, 120, 0.24); color: var(--gold-bright); }

.limiar-stage { display: flex; flex-direction: column; gap: 14px; min-height: auto; flex: 0 0 auto; }
.limiar-stage h3 { font-family: "Palatino Linotype", "Georgia", serif; font-size: clamp(22px, 2.8vw, 30px); font-weight: 400; color: var(--ivory); }
.limiar-prose {
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
  color: var(--ivory);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}
.limiar-note-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-left: 2px solid rgba(213, 186, 120, 0.45);
  background: rgba(12, 22, 18, 0.72);
  transition: border-color 0.28s ease, background 0.28s ease;
}
body[data-view-layer="second"] .limiar-note-card {
  border-left: 3px solid var(--emerald-veil);
  background: rgba(18, 42, 33, 0.88);
}
.limiar-note-kicker {
  font-family: "GVCinzel", serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
body[data-view-layer="second"] .limiar-note-kicker {
  color: var(--gold-bright);
}
.limiar-note { font-size: 14.5px; color: var(--ivory); font-style: italic; line-height: 1.55; }
.limiar-layer-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
body[data-view-layer="second"] .limiar-layer-hint { display: none; }
.limiar-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(213, 186, 120, 0.18); padding-top: 16px; }
.limiar-step-label { font-family: "GVCinzel", serif; font-size: 11px; letter-spacing: 0.18em; color: var(--brass); }

/* REGRAS CULTURAIS E TIPOGRAFICAS PARA JAPONES E ALEMAO */
html[lang="ja"] body {
  font-family: "GVInter", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  line-height: 1.85;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  font-feature-settings: "palt" 1;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] .seal-title,
html[lang="ja"] .limiar-prose {
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", "Noto Serif JP", Georgia, serif;
}

html[lang="ja"] h1,
html[lang="ja"] h2 {
  word-break: auto-phrase;
}

html[lang="ja"] .kicker,
html[lang="ja"] .saga-pillar-num,
html[lang="ja"] .box-tag,
html[lang="ja"] .ctrl-btn,
html[lang="ja"] .btn-gold,
html[lang="ja"] .btn-ghost,
html[lang="ja"] .nav-links,
html[lang="ja"] .stratum-btn,
html[lang="ja"] .notice-pill,
html[lang="ja"] .hero-caption,
html[lang="ja"] .bridge-era-btn,
html[lang="ja"] .inspect-chip,
html[lang="ja"] .astro-pip,
html[lang="ja"] .bolt-badge,
html[lang="ja"] .limiar-note-kicker,
html[lang="ja"] .seal-status {
  text-transform: none;
  letter-spacing: 0.06em;
  font-family: "GVInter", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}

@media (min-width: 980px) {
  html[lang="ja"] .codex-spine {
    writing-mode: vertical-rl;
    text-orientation: upright;
    min-height: 185px;
    align-items: center;
    padding: 16px 10px;
  }
}

html[lang="ja"] .limiar-stage.is-tategaki {
  max-height: 52vh;
  overflow-x: auto;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid rgba(213, 186, 120, 0.22);
}

html[lang="ja"] .limiar-stage.is-tategaki .limiar-prose {
  border-left: none;
  border-top: 2px solid var(--gold);
  padding-left: 0;
  padding-top: 14px;
}

html[lang="de"] .choice-card h3,
html[lang="de"] .saga-pillar h3,
html[lang="de"] .box h3,
html[lang="de"] .seal-title,
html[lang="de"] h1,
html[lang="de"] h2 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Faixa Explicativa — O que e a saga Green Veil */
.saga-brief {
  padding: 48px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(213, 186, 120, 0.16);
  background: linear-gradient(180deg, rgba(10, 19, 15, 0.72) 0%, rgba(7, 13, 11, 0.62) 100%);
  scroll-margin-top: 112px;
}

.saga-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.saga-pillar {
  padding: 20px 22px;
  border: 1px solid rgba(213, 186, 120, 0.22);
  border-top: 2px solid rgba(213, 186, 120, 0.52);
  background: rgba(8, 16, 13, 0.74);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saga-pillar-num {
  font-family: "GVCinzel", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.saga-pillar h3 {
  font-family: "Palatino Linotype", "Georgia", serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.28;
}

.saga-pillar p {
  font-size: 14.5px;
  color: var(--parchment);
  line-height: 1.62;
}

/* Responsividade (Desktop Medio, Tablet e Mobile 390x844) */
@media (max-width: 980px) {
  .ja-tategaki-seal { display: none !important; }
  .hero,
  .campeche-grid,
  .instruments-grid,
  .passport-layout {
    grid-template-columns: 1fr;
  }
  .saga-brief-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-plate-stage { order: -1; }
  .seals-4 { grid-template-columns: repeat(2, 1fr); }
  .codex-grid { grid-template-columns: repeat(3, 1fr); }
  .bridge-cinema-stage { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-left, .footer-center, .footer-right { justify-self: center; text-align: center; }
}

@media (max-width: 640px) {
  .page-frame { margin: 8px; }
  .site-header { position: relative; top: auto; }
  .topbar {
    padding: 6px 14px;
    gap: 8px;
  }
  .brand-mini img.crest { height: 32px; }
  .brand-mini img.wm { height: 11px; }
  .mobile-menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid rgba(213, 186, 120, 0.16);
    padding-top: 6px;
  }
  .nav-links.open { display: flex; }

  .top-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
    margin-left: 0;
  }
  .ctrl-btn {
    padding: 6px 8px;
    font-size: 9px;
    min-width: 44px;
    min-height: 44px;
    width: 100%;
  }
  .limiar-head-actions .ctrl-btn {
    width: auto;
    flex: 0 1 auto;
  }
  .lang-switch {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, minmax(44px, 1fr));
    width: 100%;
  }
  .lang-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 2px;
    font-size: 9.5px;
    text-align: center;
  }

  .marginalia-bar {
    padding: 4px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    gap: 8px;
    font-size: 9.2px;
  }
  .marginalia-bar::-webkit-scrollbar { display: none; }
  .marginalia-coords {
    flex-wrap: nowrap;
    gap: 6px;
    padding-left: 24px;
  }
  .stratum-btn { min-height: 44px; padding: 4px 8px; font-size: 9.2px; }
  .chronometer-badge { flex-shrink: 0; font-size: 9.2px; }

  .hero {
    min-height: auto;
    padding: 16px 16px 24px;
    gap: 16px;
  }
  h1 { font-size: clamp(28px, 7.6vw, 38px); }
  .saga-brief { padding: 30px 16px; }
  .saga-pillar { padding: 16px; }
  .section { padding: 34px 16px; }
  .instrument-folio, .box, .choice-card { padding: 18px; }
  .stratum-drawer-body { padding: 10px 16px; }
  .site-footer { padding: 22px 16px 28px; }
  .seals-4 { grid-template-columns: 1fr; }
  .codex-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-reading { min-height: 130px; }
  .optical-loupe { width: 104px; height: 104px; }
  .limiar-modal { padding: 10px; }
  .limiar-sheet { padding: 16px; gap: 12px; max-height: 94svh; }
  .limiar-stage { gap: 10px; }
  .limiar-stage h3 { font-size: 20px; line-height: 1.2; }
  .limiar-prose { font-size: 15.8px; line-height: 1.52; padding-left: 12px; }
  .limiar-note-card { padding: 9px 12px; gap: 4px; }
  .limiar-note { font-size: 13.5px; line-height: 1.45; }
  .limiar-layer-hint { font-size: 11.8px; }
  .limiar-footer { padding-top: 10px; gap: 8px; }
}

/* Controle acessivel de movimento WCAG 2.2.2 */
body.motion-paused .chronometer-dot,
body.motion-paused .cinema-grain-overlay {
  animation: none !important;
}
body.motion-paused .cinema-grain-overlay { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chronometer-dot,
  .cinema-grain-overlay { animation: none !important; }
  .cinema-grain-overlay,
  .ash-particle { display: none; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
