:root {
  --black: #101010;
  --ink: #181818;
  --text: #2d2d2d;
  --muted: #6a6661;
  --paper: #faf7ef;
  --paper-2: #efe6d7;
  --wine: #a4070d;
  --wine-dark: #5b070b;
  --gold: #c49b45;
  --line: rgba(16, 16, 16, 0.16);
  --gold-line: rgba(196, 155, 69, 0.48);
  --shadow: 0 28px 70px rgba(16, 16, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
}

body {
  overflow: hidden;
}

a {
  color: inherit;
}

.reveal {
  font-size: 24px;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  width: 100%;
  height: 100%;
  padding: 88px 104px 78px;
}

.slide {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(250, 247, 239, 0.98), rgba(250, 247, 239, 0.94)),
    radial-gradient(circle at 83% 24%, rgba(196, 155, 69, 0.16), transparent 28%);
}

.slide::before {
  content: "";
  position: absolute;
  left: 104px;
  right: 104px;
  top: 132px;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms ease;
}

.slide.present::before {
  transform: scaleX(1);
}

.slide::after {
  content: "";
  position: absolute;
  right: 82px;
  bottom: 72px;
  width: 230px;
  height: 150px;
  background: url("cariri-fest-logo.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.slide.dark::after,
.slide.national::after,
.slide.ending::after {
  opacity: 0.13;
}

.slide.cover::after {
  display: none;
}

.slide.cover {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  grid-template-rows: 1fr auto;
  gap: 34px 48px;
  align-items: center;
}

.slide.dark,
.slide.cover,
.slide.ending,
.slide.national {
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(16, 16, 16, 0.98), rgba(37, 24, 21, 0.96)),
    radial-gradient(circle at 78% 42%, rgba(164, 7, 13, 0.28), transparent 35%);
}

.slide.clean {
  background:
    linear-gradient(180deg, rgba(250, 247, 239, 0.99), rgba(245, 239, 229, 0.98)),
    var(--paper);
}

.topbar {
  position: fixed;
  inset: 28px 54px auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

body[data-theme="dark"] .topbar {
  color: var(--paper);
}

body[data-theme="dark"] .top-line {
  background: linear-gradient(90deg, rgba(196, 155, 69, 0.72), transparent);
}

.top-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine);
}

.top-line {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.deck-actions {
  position: fixed;
  right: 30px;
  bottom: 28px;
  z-index: 50;
  display: flex;
  gap: 8px;
  align-items: center;
}

.deck-action {
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.72);
  color: #fff;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font: 700 11px/1 Poppins, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.deck-action-wide {
  min-width: 86px;
}

.deck-action:hover {
  background: var(--wine);
  border-color: var(--wine);
}

.print-alert {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 80;
  transform: translateX(-50%);
  display: none;
  max-width: min(820px, calc(100vw - 28px));
  padding: 12px 16px;
  border: 1px solid rgba(164, 7, 13, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
}

.print-alert a {
  color: var(--wine);
  margin-left: 12px;
  font-weight: 800;
}

body.print-mode .print-alert {
  display: block;
}

body.print-mode .deck-actions {
  display: none;
}

.eyebrow {
  display: block;
  margin-bottom: 28px;
  color: var(--wine);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dark .eyebrow,
.cover .eyebrow,
.ending .eyebrow,
.national .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  color: #fff;
  font-size: 104px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 17ch;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  max-width: 780px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.38;
}

.dark p,
.cover p,
.ending p,
.national p {
  color: rgba(250, 247, 239, 0.86);
}

.lead {
  margin-top: 24px;
  max-width: 640px;
  color: #fff;
  font-size: 34px;
  line-height: 1.18;
}

.lead-small {
  margin-top: 28px;
  max-width: 760px;
  font-size: 30px;
}

.cover-copy {
  position: relative;
  z-index: 2;
  padding-top: 10px;
  grid-column: 1;
  grid-row: 1;
}

.cover-logo {
  position: relative;
  justify-self: end;
  align-self: center;
  z-index: 1;
  width: min(390px, 28vw);
  max-height: 300px;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 32px 54px rgba(0, 0, 0, 0.36));
  grid-column: 2;
  grid-row: 1;
}

.metric-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  grid-column: 1 / -1;
  grid-row: 2;
}

.metric-strip div {
  min-height: 96px;
  padding: 18px 22px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.metric-strip strong {
  display: block;
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 8px;
  color: rgba(250, 247, 239, 0.88);
  font-size: 17px;
}

.editorial-grid,
.split {
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 78px;
  align-items: start;
}

.copy-list {
  display: grid;
  gap: 22px;
  padding-left: 34px;
  border-left: 3px solid var(--wine);
}

.emphasis {
  color: var(--wine);
  font-weight: 800;
}

.dark .emphasis,
.national .emphasis {
  color: var(--gold);
}

.row-list {
  display: grid;
  gap: 0;
  max-width: 1180px;
  margin-top: 62px;
  border-top: 1px solid var(--line);
}

.row-list article {
  display: grid;
  grid-template-columns: 70px 270px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.row-list b {
  color: var(--wine);
  font-size: 20px;
}

.row-list strong {
  font-size: 27px;
  line-height: 1.08;
}

.row-list span {
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.row-list.inverse {
  border-color: rgba(250, 247, 239, 0.18);
}

.row-list.inverse article {
  border-color: rgba(250, 247, 239, 0.18);
}

.row-list.inverse b,
.row-list.inverse strong {
  color: var(--gold);
}

.row-list.inverse span {
  color: rgba(250, 247, 239, 0.78);
}

.flow-line,
.path,
.stack-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 54px;
  max-width: 1120px;
}

.flow-line span,
.path span,
.stack-flow span,
.day-grid span,
.tag-cloud span,
.impact-grid span,
.kpi-grid span,
.benefit-grid span {
  min-height: 66px;
  padding: 18px 22px;
  border: 1px solid var(--gold-line);
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
}

.dark .flow-line span,
.dark .stack-flow span,
.dark .timeline article {
  background: rgba(250, 247, 239, 0.08);
  color: #fff;
}

.flow-line .strong,
.path .strong,
.stack-flow .strong,
.red .strong {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.proof-panel {
  margin-top: 56px;
  max-width: 980px;
  display: grid;
  gap: 28px;
  padding-left: 36px;
  border-left: 4px solid var(--gold);
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 52px;
}

.day-grid span {
  min-height: 160px;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(164, 7, 13, 0.04), rgba(164, 7, 13, 0.12)),
    #fff;
  font-size: 18px;
}

.tag-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1060px;
  margin: 54px 0 34px;
}

.tag-cloud span {
  min-height: 92px;
  align-items: end;
}

.impact-grid,
.kpi-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1120px;
  margin-top: 54px;
}

.impact-grid span,
.kpi-grid span,
.benefit-grid span {
  min-height: 94px;
  align-items: end;
}

.pillar-list {
  display: grid;
  gap: 18px;
}

.pillar-list article {
  padding: 24px 0 24px 28px;
  border-left: 4px solid var(--wine);
}

.pillar-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 28px;
}

.pillar-list p {
  font-size: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin-top: 58px;
}

.timeline article {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--gold-line);
}

.timeline strong {
  display: block;
  color: var(--gold);
  font-size: 32px;
}

.timeline span {
  display: block;
  margin-top: 14px;
  color: rgba(250, 247, 239, 0.8);
  font-size: 23px;
  line-height: 1.34;
}

.quote-stack {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-top: 48px;
}

.quote-stack p {
  padding: 22px 28px;
  border-left: 4px solid var(--wine);
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 16, 16, 0.04);
  font-size: 27px;
}

.quota-ladder {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  max-width: 1160px;
  margin-top: 54px;
}

.quota-ladder article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--gold-line);
  background: #fff;
}

.quota-ladder .master {
  min-height: 225px;
  background: var(--wine);
  color: #fff;
}

.quota-ladder strong {
  display: block;
  font-size: 30px;
}

.quota-ladder span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.quota-ladder .master span {
  color: rgba(255, 255, 255, 0.78);
}

.legal-note {
  margin-top: 30px;
  max-width: 950px;
  color: var(--muted);
  font-size: 18px;
}

.ending {
  display: grid !important;
  align-content: center;
}

.ending-logo {
  width: 260px;
  max-height: 118px;
  object-fit: contain;
  margin-bottom: 44px;
  padding: 10px 18px;
  background: #fff;
}

.ending h2 {
  max-width: 14ch;
}

.ending p {
  margin-top: 30px;
  font-size: 31px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 1120px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
  color: rgba(250, 247, 239, 0.76);
  font-size: 18px;
}

.contact-strip a {
  color: var(--gold);
  text-decoration: none;
}

.reveal .controls,
.reveal .progress {
  color: var(--wine);
}

.reveal .controls {
  display: none !important;
}

.dark .controls,
.cover .controls {
  color: var(--gold);
}

@media (max-width: 900px) {
  .reveal {
    font-size: 18px;
  }

  .reveal .slides section {
    padding: 76px 34px 96px;
  }

  .slide::before {
    left: 34px;
    right: 34px;
    top: 118px;
  }

  .topbar {
    inset: 18px 22px auto;
    font-size: 10px;
  }

  .deck-actions {
    left: 14px;
    right: 14px;
    bottom: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .deck-action {
    height: 38px;
    min-width: 42px;
  }

  .deck-action-wide {
    min-width: 78px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 42px;
    max-width: 100%;
  }

  p,
  .lead-small {
    font-size: 22px;
  }

  .lead {
    font-size: 28px;
  }

  .slide.cover {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
  }

  .cover-logo {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: min(280px, 70vw);
    opacity: 0.72;
  }

  .metric-strip,
  .editorial-grid,
  .split,
  .timeline,
  .quota-ladder {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    gap: 8px;
    grid-row: 3;
  }

  .metric-strip div {
    min-height: 72px;
    padding: 12px 14px;
  }

  .metric-strip strong {
    font-size: 34px;
  }

  .metric-strip span {
    font-size: 14px;
  }

  .row-list article {
    grid-template-columns: 48px 1fr;
  }

  .row-list article span {
    grid-column: 2;
  }

  .day-grid,
  .tag-cloud,
  .impact-grid,
  .kpi-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {
  .deck-actions,
  .topbar,
  .print-alert {
    display: none !important;
  }

  .reveal .slides section {
    padding: 70px 78px;
  }
}

body.print-mode {
  overflow: auto;
  background: #f5efe5;
}

body.print-mode .deck-actions,
body.print-mode .topbar,
body.print-mode .print-alert,
body.print-mode .reveal .controls,
body.print-mode .reveal .progress {
  display: none !important;
}

body.print-mode .reveal,
body.print-mode .reveal-viewport {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: #f5efe5 !important;
}

body.print-mode .reveal .slides {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  display: grid !important;
  gap: 24px;
  padding: 24px;
}

body.print-mode .reveal .slides section {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(1120px, calc(100vw - 48px)) !important;
  min-height: 630px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 62px 72px !important;
  transform: none !important;
  page-break-after: always;
  box-shadow: 0 12px 40px rgba(16, 16, 16, 0.12);
}

body.print-mode .slide.cover {
  display: grid !important;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 1fr auto;
}

body.print-mode .cover-logo {
  position: relative;
  width: 280px;
  max-height: 220px;
}

body.print-mode h1 {
  font-size: 78px;
}

body.print-mode h2 {
  font-size: 46px;
  max-width: 15ch;
}

body.print-mode p {
  font-size: 20px;
}

body.print-mode .lead {
  font-size: 26px;
}

body.print-mode .metric-strip {
  position: relative;
  margin-top: 24px;
}

body.print-mode .metric-strip div {
  min-height: 80px;
}

body.print-mode .row-list {
  margin-top: 36px;
}

body.print-mode .row-list article {
  grid-template-columns: 48px 190px 1fr;
  padding: 18px 0;
}

body.print-mode .row-list strong {
  font-size: 21px;
}

body.print-mode .row-list span,
body.print-mode .pillar-list p,
body.print-mode .timeline span {
  font-size: 17px;
}

body.print-mode .day-grid,
body.print-mode .tag-cloud,
body.print-mode .impact-grid,
body.print-mode .kpi-grid,
body.print-mode .benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive presentation canvas and protected navigation area. */
@media screen {
  .reveal .slides section {
    padding-bottom: 112px;
  }

  .row-list {
    margin-top: clamp(30px, 5vh, 54px);
  }

  .row-list article {
    padding-block: 14px;
  }

  .deck-actions {
    isolation: isolate;
    padding: 6px;
    border: 1px solid rgba(196, 155, 69, 0.25);
    border-radius: 999px;
    background: rgba(16, 16, 16, 0.9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  }

  .deck-action {
    background: transparent;
    backdrop-filter: none;
  }
}

@media screen and (max-width: 700px), screen and (orientation: portrait) {
  .reveal {
    font-size: 16px;
  }

  .reveal .slides section {
    padding: 68px 24px 104px;
  }

  .slide {
    overflow: hidden;
  }

  .slide::before {
    left: 24px;
    right: 24px;
    top: 105px;
  }

  .slide::after {
    right: 18px;
    bottom: 88px;
    width: 105px;
    height: 78px;
  }

  .topbar {
    inset: 17px 18px auto;
    gap: 8px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .top-dot {
    width: 7px;
    height: 7px;
  }

  .deck-actions {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
    border-radius: 8px;
  }

  .deck-action,
  .deck-action-wide {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 3px;
    border-radius: 5px;
    font-size: 8px;
  }

  .deck-action:nth-child(2) {
    background: var(--wine);
    border-color: var(--wine);
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: 58px;
    line-height: 0.9;
  }

  h2 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1.02;
  }

  p,
  .lead-small {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.42;
  }

  .lead {
    margin-top: 18px;
    font-size: 23px;
  }

  .slide.cover {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
    align-content: start;
  }

  .cover-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .cover-logo {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: 210px;
    max-height: 130px;
  }

  .metric-strip {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .metric-strip div {
    min-height: 0;
    padding: 10px 12px;
  }

  .metric-strip strong {
    display: inline-block;
    min-width: 70px;
    font-size: 28px;
  }

  .metric-strip span {
    display: inline-block;
    margin-top: 0;
    font-size: 13px;
  }

  .editorial-grid,
  .split {
    display: flex !important;
    flex-direction: column;
    gap: 32px;
  }

  .copy-list {
    gap: 16px;
    padding-left: 18px;
  }

  .row-list {
    margin-top: 32px;
  }

  .row-list article {
    grid-template-columns: 34px 1fr;
    gap: 5px 10px;
    padding: 16px 0;
  }

  .row-list b {
    font-size: 13px;
  }

  .row-list strong {
    font-size: 19px;
  }

  .row-list span {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.35;
  }

  .flow-line,
  .path,
  .stack-flow {
    gap: 8px;
    margin-top: 32px;
  }

  .flow-line span,
  .path span,
  .stack-flow span,
  .day-grid span,
  .tag-cloud span,
  .impact-grid span,
  .kpi-grid span,
  .benefit-grid span {
    min-height: 48px;
    padding: 12px 13px;
    font-size: 14px;
  }

  .proof-panel {
    gap: 20px;
    margin-top: 34px;
    padding-left: 18px;
  }

  .day-grid,
  .tag-cloud,
  .impact-grid,
  .kpi-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 30px;
  }

  .day-grid span {
    min-height: 70px;
  }

  .tag-cloud {
    margin-bottom: 20px;
  }

  .tag-cloud span,
  .impact-grid span,
  .kpi-grid span,
  .benefit-grid span {
    min-height: 58px;
  }

  .pillar-list {
    gap: 10px;
  }

  .pillar-list article {
    padding: 14px 0 14px 16px;
  }

  .pillar-list strong {
    font-size: 20px;
  }

  .pillar-list p {
    font-size: 14px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 30px;
  }

  .timeline article {
    min-height: 0;
    padding: 16px;
  }

  .timeline strong {
    font-size: 22px;
  }

  .timeline span {
    margin-top: 4px;
    font-size: 14px;
  }

  .quote-stack {
    gap: 10px;
    margin-top: 28px;
  }

  .quote-stack p {
    padding: 15px 16px;
    font-size: 16px;
  }

  .quota-ladder {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 28px;
  }

  .quota-ladder article,
  .quota-ladder .master {
    min-height: 0;
    padding: 12px 16px;
  }

  .quota-ladder strong {
    display: inline-block;
    min-width: 105px;
    font-size: 20px;
  }

  .quota-ladder span {
    display: inline;
    margin-top: 0;
    font-size: 13px;
  }

  .legal-note {
    margin-top: 18px;
    font-size: 12px;
  }

  .ending-logo {
    width: 190px;
    margin-bottom: 30px;
  }

  .ending p {
    margin-top: 22px;
    font-size: 18px;
  }

  .contact-strip {
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    font-size: 13px;
  }
}

@media screen and (max-height: 680px) and (min-width: 701px) {
  .reveal .slides section {
    padding-top: 76px;
    padding-bottom: 100px;
  }

  h2 {
    font-size: 52px;
  }

  .row-list {
    margin-top: 26px;
  }

  .row-list article {
    padding-block: 14px;
  }

  .day-grid,
  .tag-cloud,
  .impact-grid,
  .kpi-grid,
  .benefit-grid,
  .timeline {
    margin-top: 30px;
  }
}
