@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');
:root {
  --paper: #110e13;       /* Carvão místico profundo */
  --paper-card: #1a1520;  /* Fundo de carta de tarô escuro */
  --ink: #eae4d0;         /* Tom de osso/pergaminho envelhecido */
  --navy: #151c2a; 
  --rubric: #9e2a22;      /* Vermelho carmesim/sangue de dragão */
  --gold: #c69b56;        /* Latão/dourado antigo */
  --amethyst: #6b528b;
  --rule: color-mix(in oklch, var(--ink) 12%, var(--paper));
  
  /* Sombras duras estilo litografia/xilogravura */
  --shadow-woodcut: 6px 6px 0px rgba(0,0,0,0.65);
  --shadow-woodcut-sm: 3px 3px 0px rgba(0,0,0,0.55);
  
  --disp: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Cormorant Garamond', 'Georgia', serif; /* Tipografia literária antiga */
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; 
  background: var(--paper); 
  color: var(--ink); 
  font-family: var(--body); 
  -webkit-font-smoothing: antialiased; 
  min-height: 100vh;
}

/* Textura física de papel / Película */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body {
  background-image: radial-gradient(rgba(230,223,200,.04) .75px, transparent .75px);
  background-size: 10px 10px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='11' y='0' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='13' y='1' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%23211B16'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='8' y='2' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='10' y='2' width='1' height='1' fill='%23211B16'/%3E%3Crect x='12' y='2' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%23F4ECD8'/%3E%3Crect x='14' y='2' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23211B16'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%23C98424'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23C98424'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%23C98424'/%3E%3Crect x='7' y='3' width='1' height='1' fill='%23C98424'/%3E%3Crect x='8' y='3' width='1' height='1' fill='%23C98424'/%3E%3Crect x='9' y='3' width='1' height='1' fill='%23C98424'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23211B16'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23211B16'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='7' y='4' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='8' y='4' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%23211B16'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23211B16'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='8' y='5' width='1' height='1' fill='%23211B16'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23211B16'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23211B16'/%3E%3Crect x='6' y='7' width='1' height='1' fill='%23211B16'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23211B16'/%3E%3Crect x='5' y='8' width='1' height='1' fill='%23211B16'/%3E%3Crect x='6' y='8' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='7' y='8' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23211B16'/%3E%3Crect x='4' y='9' width='1' height='1' fill='%23211B16'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23C98424'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23C98424'/%3E%3Crect x='7' y='9' width='1' height='1' fill='%23C98424'/%3E%3Crect x='8' y='9' width='1' height='1' fill='%23C98424'/%3E%3Crect x='9' y='9' width='1' height='1' fill='%23211B16'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%23211B16'/%3E%3Crect x='4' y='10' width='1' height='1' fill='%23C98424'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%23C98424'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%23C98424'/%3E%3Crect x='7' y='10' width='1' height='1' fill='%23C98424'/%3E%3Crect x='8' y='10' width='1' height='1' fill='%23C98424'/%3E%3Crect x='9' y='10' width='1' height='1' fill='%23C98424'/%3E%3Crect x='10' y='10' width='1' height='1' fill='%23211B16'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23211B16'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='5' y='11' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='6' y='11' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='7' y='11' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='8' y='11' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='9' y='11' width='1' height='1' fill='%23B08D3C'/%3E%3Crect x='10' y='11' width='1' height='1' fill='%23211B16'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='1' y='13' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='2' y='13' width='1' height='1' fill='%23F4ECD8'/%3E%3Crect x='3' y='13' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='2' y='14' width='1' height='1' fill='%23D8B45A'/%3E%3Crect x='14' y='14' width='1' height='1' fill='%23D8B45A'/%3E%3C/svg%3E") 13 13, pointer;
  font-size: 19px;
}

/* ---------- menu bar (System 7 style) ---------- */
.menubar {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 20px;
  background: rgba(26, 21, 32, 0.85); border-bottom: 1px solid rgba(234, 228, 208, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 8px clamp(12px,3vw,26px); font-family: var(--mono); font-size: 12px;
}
.menubar .brand { font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-decoration: none; color: var(--gold) }
.menubar nav { display: flex; gap: 16px; flex-wrap: wrap }
.menubar nav a { text-decoration: none; color: var(--ink); font-weight: bold; transition: color 0.2s var(--ease) }
.menubar nav a:hover { color: var(--rubric) }
.menubar .sp { margin-left: auto }
.menubar .clock { font-variant-numeric: tabular-nums; font-size: 12px; }

/* ---------- header ---------- */
header {
  text-align: center;
  padding: clamp(40px,7vh,80px) 20px clamp(30px,5vh,50px);
  max-width: 1100px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
  border: 2px solid var(--gold);
  padding: 4px 14px; margin-bottom: 18px;
  background: color-mix(in oklch, var(--gold) 4%, transparent);
}
header h1 {
  font-family: var(--disp); font-size: clamp(32px,5.4vw,56px); font-weight: normal;
  margin: 0 0 14px; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em;
}
header p.meta {
  font-family: var(--mono); font-size: 11px;
  color: color-mix(in oklch,var(--ink) 60%,var(--paper));
  text-transform: uppercase; letter-spacing: .12em; margin: 0;
}
header p.meta span { color: var(--rubric); font-weight: bold }

/* ---------- tabs navigation (Tarot Card Deck feel) ---------- */
.tabs-nav-wrapper {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  position: sticky; top: 35px; z-index: 90;
}
.tabs-nav {
  display: flex; justify-content: center; gap: 12px; border-bottom: 2px solid var(--ink);
  padding: 8px 8px 0; border-radius: 0;
  background: rgba(17, 14, 19, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tab-btn {
  font-family: var(--disp); font-size: clamp(14px,1.6vw,17px); font-weight: 600;
  padding: 8px clamp(12px,2.4vw,28px); border: 2px solid var(--ink); border-bottom: 0;
  background: var(--paper-card); color: color-mix(in oklch, var(--ink) 55%, transparent);
  border-radius: 4px 4px 0 0; transition: all 0.2s var(--ease);
  box-shadow: 4px -4px 0px rgba(0,0,0,0.3);
  margin-bottom: -2px;
}
.tab-btn:hover {
  color: var(--ink); background: #231d2a; transform: translateY(-2px);
  box-shadow: 5px -5px 0px rgba(0,0,0,0.4);
}
.tab-btn.active {
  background: var(--paper); color: var(--gold); font-weight: 700;
  border: 2px solid var(--ink);
  border-bottom: 2px solid var(--paper); margin-bottom: -2px;
  box-shadow: none;
  transform: translateY(-4px);
}

/* ---------- Double Bezel (Gothic Tarot card border) ---------- */
.double-bezel {
  border-radius: 4px;
  padding: 6px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -5px;
  box-shadow: var(--shadow-woodcut);
  transition: all 0.3s var(--ease);
  height: 100%;
  position: relative;
}
.double-bezel-inner {
  border-radius: 0;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: clamp(20px, 4vw, 42px);
  height: 100%;
  position: relative;
}

/* Linha interna decorativa */
.double-bezel-inner::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed color-mix(in oklch, var(--ink) 25%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* ---------- main layout ---------- */
main {
  max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Roteiro / Presentation Player ---------- */
.player-container {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px;
  position: relative;
  z-index: 2;
}
@media(max-width:900px){ .player-container{grid-template-columns:1fr; gap:20px} }

.narrative-panel {
  display: flex; flex-direction: column; justify-content: space-between;
}

.narrative-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px dashed var(--rule); padding-bottom: 14px; margin-bottom: 20px;
}
.narrative-title { font-family: var(--disp); font-size: 28px; font-weight: bold; color: var(--rubric); margin: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); transform-origin: left center; }
.narrative-time { font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--paper); padding: 3px 9px; border: 1px solid var(--ink) }

.narrative-body {
  font-family: var(--disp); font-size: clamp(19px, 1.9vw, 22px); line-height: 1.56;
  color: var(--ink); min-height: 240px; margin-bottom: 24px; text-align: justify;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.narrative-body p { margin-top: 0; margin-bottom: 18px }
.narrative-body ul, .narrative-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
.narrative-body li {
  margin-bottom: 8px;
}
.narrative-body blockquote {
  border-left: 3px solid var(--gold); padding-left: 16px; margin: 20px 0;
  font-style: italic; font-size: 0.96em; color: color-mix(in oklch,var(--ink) 80%,var(--paper));
}

.player-controls {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 2px dashed var(--rule); padding-top: 20px; gap: 16px;
}

/* Button-in-Button CTA (Woodcut Stamp style) */
.btn-premium {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px; background: var(--paper-card);
  color: var(--ink); border: 2px solid var(--ink);
  border-radius: 4px; box-shadow: var(--shadow-woodcut-sm);
  text-decoration: none; transition: all 0.15s var(--ease);
}
.btn-premium:hover {
  background-color: var(--ink);
  color: var(--paper);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--ink);
}
.btn-premium:active { 
  transform: translate(3px, 3px); 
  box-shadow: none;
}
.btn-premium .btn-icon-wrapper {
  width: 22px; height: 22px; border-radius: 0;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 11px;
  transition: none;
}
.btn-premium:hover .btn-icon-wrapper {
  background: var(--paper); 
  color: var(--ink);
  border-color: var(--ink);
}

.btn-premium:disabled{opacity:0.35; cursor:not-allowed; transform:none; box-shadow:none}

.player-progress-container {
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.progress-bar-bg {
  height: 8px; background: rgba(230,223,200,0.05); border-radius: 0; overflow: hidden;
  position: relative; border: 1px solid var(--ink);
}
.progress-bar-fill {
  height: 100%; width: 0%; transition: width 0.6s var(--ease);
  border-radius: 0;
  background-image: repeating-linear-gradient(
    45deg,
    var(--rubric),
    var(--rubric) 4px,
    var(--gold) 4px,
    var(--gold) 8px
  );
}

.visual-panel {
  background: #161311; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 16px; position: relative;
  min-height: 380px; border-radius: 4px; border: 2px solid var(--ink);
  box-shadow: var(--shadow-woodcut);
}
.visual-panel::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed color-mix(in oklch, var(--ink) 20%, transparent);
  pointer-events: none;
}
.slide-image-frame {
  width: 100%; height: 100%; max-height: 360px; display: flex; justify-content: center; align-items: center;
  overflow: hidden; border-radius: 0; border: 1px solid var(--ink);
  background: #100d0c;
  z-index: 2;
}
.slide-image {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.slide-caption {
  margin-top: 14px; font-family: var(--mono); font-size: 10px; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em; text-align: center;
  width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  z-index: 2;
}

/* Timeline Nav (Zodiac / Occult aesthetic) */
.timeline-wrapper {
  margin-top: 40px; padding: 20px;
  background: rgba(0,0,0,0.2); border-radius: 4px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-woodcut-sm);
}
.timeline-nav {
  display: flex; justify-content: space-between;
  position: relative;
}
.timeline-line {
  position: absolute; top: 8px; left: 30px; right: 30px; height: 2px;
  background: var(--ink); transform: translateY(0); z-index: 1; opacity: 0.15;
}
.timeline-node {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  width: 80px; text-align: center;
}
.timeline-dot {
  width: 12px; height: 12px; border-radius: 0; border: 2px solid var(--ink);
  background: var(--paper); transform: rotate(45deg); /* Diamond shape */
  transition: all 0.3s var(--ease);
}
.timeline-node:hover .timeline-dot {
  transform: rotate(45deg) scale(1.25); border-color: var(--rubric);
}
.timeline-node.active .timeline-dot {
  background: var(--rubric); border-color: var(--rubric); transform: rotate(45deg) scale(1.35);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--rubric) 20%, transparent);
}
.timeline-label {
  font-family: var(--mono); font-size: 9px; margin-top: 12px;
  color: color-mix(in oklch,var(--ink) 50%,var(--paper));
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}
.timeline-node.active .timeline-label {
  color: var(--gold); font-weight: 700;
}
@media(max-width:760px) {
  .timeline-wrapper { display: none }
}

/* ---------- Handout Acadêmico ---------- */
.handout-paper {
  background: var(--paper-card); border: 2px solid var(--ink);
  box-shadow: var(--shadow-woodcut); padding: clamp(24px,6vw,64px);
  border-radius: 4px; max-width: 860px; margin: 0 auto;
  position: relative;
}
.handout-paper::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px dashed color-mix(in oklch, var(--ink) 25%, transparent);
  border-radius: 0;
}
.handout-title {
  font-family: var(--disp); font-size: clamp(24px,4vw,38px); font-weight: normal;
  text-align: center; margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.01em;
}
.handout-subtitle {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; text-align: center; color: var(--gold); margin-bottom: 40px;
}
.handout-divider {
  display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--gold); margin: 36px 0;
}
.handout-divider::before, .handout-divider::after {
  content: ""; height: 1px; width: 100px; background: linear-gradient(90deg,transparent, var(--gold));
}
.handout-divider::after { transform: scaleX(-1) }

/* Bento Box de Downloads */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media(max-width:768px) {
  .bento-grid { grid-template-columns: 1fr; }
}
.bento-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-woodcut-sm);
  transition: all 0.3s var(--ease);
  gap: 16px;
  position: relative;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed color-mix(in oklch, var(--ink) 15%, transparent);
  pointer-events: none;
}
.bento-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.5);
}
.bento-card-large {
  grid-column: span 2;
}
@media(max-width:768px) {
  .bento-card-large {
    grid-column: span 1;
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
.bento-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.bento-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bento-tag.rubric { 
  background: rgba(158, 42, 34, 0.15) !important; 
  color: var(--rubric) !important; 
  border: 1px solid rgba(158, 42, 34, 0.3) !important; 
}
.bento-tag.gold { 
  background: rgba(198, 155, 86, 0.15) !important; 
  color: var(--gold) !important; 
  border: 1px solid rgba(198, 155, 86, 0.3) !important; 
}
.bento-tag.amethyst { 
  background: rgba(107, 82, 139, 0.15) !important; 
  color: #9f82c0 !important; 
  border: 1px solid rgba(107, 82, 139, 0.3) !important; 
}
.bento-tag.navy { 
  background: rgba(21, 28, 42, 0.6) !important; 
  color: #8fa0c0 !important; 
  border: 1px solid rgba(143, 160, 192, 0.3) !important; 
}

.bento-card-title {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: bold;
  color: var(--ink);
  line-height: 1.25;
}
.bento-card-desc {
  font-size: 14.5px;
  color: color-mix(in oklch, var(--ink) 75%, var(--paper));
  line-height: 1.5;
}
.bento-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.handout-content {
  font-family: var(--disp); font-size: 20px; color: var(--ink);
  text-align: justify; line-height: 1.6;
}
.handout-content h2, .handout-content h3 {
  font-family: var(--disp); font-size: 26px; font-weight: bold;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px;
  margin: 46px 0 22px; color: var(--gold); letter-spacing: -0.01em;
}
.handout-content p { margin-bottom: 30px; text-indent: 2em }
.handout-content p.no-indent { text-indent: 0 }
.handout-content blockquote {
  font-style: italic; border-left: 3px solid var(--rubric);
  padding-left: 24px; margin: 36px 0; color: color-mix(in oklch,var(--ink) 85%,var(--paper));
  text-indent: 0; font-size: 1.05em;
}

/* Capitular (Tarot deck style) */
.dropcap::first-letter {
  font-family: var(--disp); font-size: 72px; font-weight: bold;
  float: left; line-height: 52px; padding-top: 4px; padding-right: 12px; padding-left: 4px;
  color: var(--rubric);
  border: 2px solid var(--ink);
  margin-right: 12px;
  margin-bottom: 4px;
  box-shadow: 3px 3px 0px var(--ink);
  background-color: var(--paper-card);
}

/* Table styling */
.handout-table-wrapper {
  overflow-x: auto; margin: 36px 0; border: 2px solid var(--ink);
  box-shadow: var(--shadow-woodcut-sm); border-radius: 4px;
}
.handout-table {
  width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 16px; text-align: left;
  background: var(--paper-card);
}
.handout-table th {
  background: var(--ink); color: var(--paper); padding: 12px 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ink);
}
.handout-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5;
}
.handout-table tr:last-child td { border-bottom: 0; }
.handout-table tr.highlight { background: rgba(158, 42, 34, 0.08); }
.handout-table tr.highlight td:first-child { border-left: 4px solid var(--rubric); }

/* ---------- Tabela Comparativa de Processos ---------- */
.filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
  position: relative;
  z-index: 2;
}
.search-input {
  font-family: var(--body); font-size: 16px; padding: 10px 16px;
  border: 1px solid rgba(234, 228, 208, 0.25); background: rgba(26, 21, 32, 0.65);
  border-radius: 6px; width: min(320px, 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.25s var(--ease);
  color: var(--ink);
}
.search-input:focus { 
  outline: none; 
  border-color: var(--gold); 
  background: rgba(26, 21, 32, 0.9);
  box-shadow: 0 0 0 3px rgba(198, 163, 80, 0.15), inset 0 2px 4px rgba(0,0,0,0.3); 
}

.process-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  position: relative;
  z-index: 2;
}
.interactive-row {
  background: var(--paper-card); border: 2px solid var(--ink);
  border-radius: 4px; box-shadow: var(--shadow-woodcut-sm); padding: 18px clamp(16px, 3vw, 24px);
  transition: all 0.2s var(--ease); display: grid;
  grid-template-columns: 80px 1.5fr 1fr 1.5fr 100px; gap: 20px; align-items: center;
}
.interactive-row:hover {
  transform: translateY(-1px); box-shadow: 4px 4px 0px var(--ink);
  background: #231d2a;
}
.interactive-row.active-row {
  border-color: var(--gold); background: #292231;
  box-shadow: 5px 5px 0px var(--gold);
}
@media(max-width:800px){
  .interactive-row {
    grid-template-columns: 1fr; gap: 10px; padding: 16px;
  }
  .interactive-row .p-stat { justify-self: start; }
}

.p-process { font-family: var(--mono); font-size: 11px; color: var(--rubric); font-weight: 700 }
.p-name { font-family: var(--disp); font-size: 21px; font-weight: 700; color: var(--ink) }
.p-crime { font-family: var(--body); font-size: 16px; }
.p-sentence { font-family: var(--body); font-size: 15px; color: color-mix(in oklch,var(--ink) 75%,var(--paper)) }
.p-stat { font-family: var(--mono); font-size: 10.5px; background: var(--ink); color: var(--paper); padding: 3px 9px; border: 1px solid var(--ink); justify-self: end }

.process-detail-panel {
  display: none; background: #221b28; border: 2px dashed var(--ink);
  border-radius: 4px; padding: 20px; margin-top: -6px; margin-bottom: 14px;
  animation: slideDown 0.45s var(--ease) forwards;
}
@keyframes slideDown{
  from{opacity:0; transform:translateY(-8px); filter:blur(2px)}
  to{opacity:1; transform:translateY(0); filter:blur(0)}
}
.process-detail-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px;
}
@media(max-width:600px){ .process-detail-grid{grid-template-columns:1fr} }
.detail-section h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em }
.detail-section p { margin: 0; font-family: var(--disp); font-size: 18px; line-height: 1.45; text-align: justify }

/* ---------- Galeria de Fontes: Bento Grid assimétrico ---------- */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media(max-width:900px){
  .bento-grid { grid-template-columns: 1fr; }
}

.bento-card {
  background: var(--paper-card); border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: var(--shadow-woodcut); overflow: hidden; display: flex; flex-direction: column;
  transition: all 0.3s var(--ease);
}
.bento-card:hover {
  transform: translate(-2px, -2px); box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
}

/* Bento Variants */
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
@media(max-width:900px) {
  .bento-wide { grid-column: span 1; }
  .bento-tall { grid-row: span 1; }
}

.gallery-img-container {
  flex: 1; min-height: 220px; background: #161311; display: flex; justify-content: center; align-items: center;
  overflow: hidden; border-bottom: 2px solid var(--ink); position: relative;
  z-index: 2;
}
.bento-tall .gallery-img-container { min-height: 420px; }
@media(max-width:900px) {
  .bento-tall .gallery-img-container { min-height: 220px; }
}
.gallery-img-container img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease);
}
.gallery-img-container:hover img { transform: scale(1.04) }

.gallery-info { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.gallery-title { font-family: var(--disp); font-size: 21px; font-weight: bold; margin: 0 0 8px; color: var(--ink); }
.gallery-desc { font-family: var(--body); font-size: 14.5px; color: color-mix(in oklch,var(--ink) 75%,var(--paper)); margin: 0 0 16px; line-height: 1.45 }
.gallery-tag { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold) }

/* Download Box Double Bezel */
.download-wrapper {
  margin-top: 48px;
}
.download-box {
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in oklch, var(--rubric) 3%, var(--paper-card));
  flex-wrap: wrap; gap: 20px; width: 100%;
}
.download-info { display: flex; align-items: center; gap: 20px }
.download-icon { font-size: 36px; color: var(--rubric); filter: drop-shadow(0 2px 4px rgba(158,42,34,0.2)) }
.download-text h3 { margin: 0; font-family: var(--disp); font-size: 22px; font-weight: bold }
.download-text p { margin: 4px 0 0; font-family: var(--mono); font-size: 10.5px; color: color-mix(in oklch,var(--ink) 50%,var(--paper)) }

/* Modal Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(17,14,19,0.97); z-index: 200;
  display: none; justify-content: center; align-items: center; padding: 30px;
  opacity: 0; transition: opacity .3s var(--ease); cursor: zoom-out;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; opacity: 1 }
.lightbox-img {
  max-width: 90vw; max-height: 80vh; object-fit: contain;
  border-radius: 4px; border: 2px solid var(--ink);
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
  transform: scale(0.97); transition: transform 0.3s var(--ease);
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-caption {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--paper-card); color: var(--ink); font-family: var(--disp);
  font-size: 18px; padding: 12px 24px; border-radius: 4px; text-align: center;
  border: 2px solid var(--ink); box-shadow: var(--shadow-woodcut); width: min(540px, 90vw);
}

/* ---------- Estilo dos Diagramas Acadêmicos (Modern ML Airy) ---------- */
.diagram-canvas {
  background: #FFFFFF !important;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 24px;
  margin: 36px 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diagram-canvas, .diagram-canvas * {
  color: #171717 !important; /* Força cores de papel para os elementos do diagrama */
  font-family: 'Geist', -apple-system, sans-serif !important;
}
.diagram-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  border-bottom: 1.5px solid rgba(0,0,0,0.1);
  padding-bottom: 8px;
  margin-bottom: 4px;
  text-align: left;
}
.diagram-panels-grid {
  display: grid;
  gap: 16px;
}
.diagram-panel {
  background: #FFFFFF !important;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.diagram-panel-title {
  font-family: 'Geist Mono', monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.diagram-panel-title.coral { color: #A83A32 !important; }
.diagram-panel-title.teal { color: #1A9988 !important; }
.diagram-panel-title.purple { color: #7C629F !important; }
.diagram-panel-title.gold { color: #C6A350 !important; }

.diagram-elements-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.diagram-token {
  font-family: 'Geist Mono', monospace !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.diagram-token.blue { background: #BBDEFB !important; border-color: #90CAF9 !important; color: #1565C0 !important; }
.diagram-token.green { background: #C8E6C9 !important; border-color: #A5D6A7 !important; color: #2E7D32 !important; }
.diagram-token.purple { background: #E1BEE7 !important; border-color: #CE93D8 !important; color: #6A1B9A !important; }
.diagram-token.amber { background: #FFF3C4 !important; border-color: #FFE082 !important; color: #827717 !important; }
.diagram-token.pink { background: #FFD0D0 !important; border-color: #EF9A9A !important; color: #C62828 !important; }

.diagram-pill {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02) !important;
}
.diagram-pill.red { background: rgba(168,58,50,0.05) !important; border-color: rgba(168,58,50,0.15) !important; color: #A83A32 !important; }
.diagram-pill.gold { background: rgba(198,163,80,0.05) !important; border-color: rgba(198,163,80,0.15) !important; color: #C6A350 !important; }
.diagram-pill.green { background: rgba(46,125,50,0.05) !important; border-color: rgba(46,125,50,0.15) !important; color: #2E7D32 !important; }

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.diagram-flow-step {
  background: #FFFFFF !important;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.diagram-flow-arrow {
  color: #888078 !important;
  font-size: 16px !important;
  font-weight: bold !important;
}

/* ---------- footer ---------- */
footer {
  max-width: 1100px; margin: 80px auto 0; padding: 30px 20px;
  border-top: 2px solid var(--rule); text-align: center;
  font-family: var(--mono); font-size: 10px; color: color-mix(in oklch,var(--ink) 45%,var(--paper));
  text-transform: uppercase; letter-spacing: 0.08em;
}
footer a { color: var(--gold); text-decoration: none; font-weight: 700 }
footer a:hover { text-decoration: underline }
