:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: #191d25;
  --panel-strong: #202632;
  --text: #f7f7f2;
  --muted: #b7bdc8;
  --soft: #7f8795;
  --line: rgba(255, 255, 255, 0.12);
  --green: #50d890;
  --cyan: #42c6d7;
  --amber: #f2b84b;
  --red: #f0786d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(80, 216, 144, 0.12), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(242, 184, 75, 0.10), transparent 24%),
    linear-gradient(135deg, #101217 0%, #171a21 55%, #101114 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: clamp(28px, 4vw, 56px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide.active {
  display: flex;
  animation: slideIn 260ms ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide > * {
  width: min(1180px, 100%);
}

.slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: end;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(76px, 11vw, 148px);
  line-height: 0.9;
  letter-spacing: 0;
}

.subtitle {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.08;
  font-weight: 650;
}

.eyebrow,
.panel-kicker,
.mini-label,
.source {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.badge,
.tab-cue {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.signature-panel,
.panel,
.metric,
.assertion,
.candidate,
.conditions > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 29, 37, 0.78);
  box-shadow: var(--shadow);
}

.signature-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.signature-panel strong {
  font-size: 24px;
}

.slide-header {
  align-self: flex-start;
}

.slide-header h2,
.transition-slide h2 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

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

.contrast {
  margin-top: 32px;
}

.stronger .panel {
  min-height: 230px;
}

.panel {
  min-height: 250px;
  padding: clamp(24px, 3vw, 38px);
}

.panel h3 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
}

.risk {
  border-color: rgba(240, 120, 109, 0.32);
}

.success {
  border-color: rgba(80, 216, 144, 0.34);
}

.risk h3 {
  color: var(--amber);
}

.success h3 {
  color: var(--green);
}

.statement {
  width: min(1180px, 100%);
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 750;
}

.takeaway-strip {
  width: min(1180px, 100%);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border: 1px solid rgba(80, 216, 144, 0.34);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(80, 216, 144, 0.16), rgba(66, 198, 215, 0.08));
  padding: 20px 24px;
}

.takeaway-strip strong {
  color: var(--green);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.takeaway-strip span {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 750;
  text-align: right;
}

.flow {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 44px minmax(180px, 1fr) 44px minmax(180px, 1fr) 44px minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 34px 0 28px;
}

.flow span {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  text-align: center;
  color: var(--text);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 750;
}

.flow i {
  height: 2px;
  background: linear-gradient(90deg, var(--soft), transparent);
  position: relative;
}

.flow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--soft);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.deterministic span {
  border-color: rgba(80, 216, 144, 0.22);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric.wide {
  grid-column: span 2;
}

.metric {
  min-height: 126px;
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--amber);
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.source {
  margin-top: 24px;
}

.assertion {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 36px);
  border-color: rgba(80, 216, 144, 0.38);
  background: linear-gradient(135deg, rgba(80, 216, 144, 0.14), rgba(25, 29, 37, 0.88));
}

.assertion span,
.assertion strong {
  display: block;
}

.assertion span {
  color: var(--muted);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
}

.assertion strong {
  margin-top: 14px;
  color: var(--green);
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.performance-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 29, 37, 0.78);
  padding: 18px 22px;
}

.performance-card strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}

.performance-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 760;
}

.performance-card.accent {
  border-color: rgba(80, 216, 144, 0.34);
}

.performance-card.accent strong {
  color: var(--green);
}

.performance-card.savings {
  border-color: rgba(242, 184, 75, 0.36);
}

.performance-card.savings strong {
  color: var(--amber);
}

.transition-slide {
  text-align: center;
}

.transition-slide > * {
  width: min(900px, 100%);
}

.transition-mark {
  margin: 0 auto 28px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 198, 215, 0.36);
  border-radius: 999px;
  background: rgba(66, 198, 215, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.transition-slide p {
  margin: 24px auto 30px;
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
}

.gantt {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 29, 37, 0.78);
  box-shadow: var(--shadow);
  padding: 24px;
}

.gantt-scale {
  display: grid;
  grid-template-columns: 220px repeat(10, 1fr);
  gap: 0;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
}

.gantt-scale::before {
  content: "Junio 2026";
  text-align: left;
  color: var(--muted);
}

.gantt-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  min-height: 72px;
  border-top: 1px solid var(--line);
}

.gantt-row strong {
  padding-right: 18px;
  color: var(--text);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.1;
}

.gantt-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
  min-height: 38px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 10%
  );
}

.bar,
.milestone {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #08110d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.bar.tests {
  grid-column: 1 / 5;
  background: linear-gradient(90deg, var(--cyan), #7fe7f1);
}

.bar.pilot {
  grid-column: 5 / 10;
  background: linear-gradient(90deg, var(--green), #a5f3c5);
}

.milestone {
  width: 72px;
  min-height: 72px;
  border-radius: 999px;
  color: var(--text);
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.milestone.committee {
  grid-column: 7;
  background: var(--amber);
  color: #201600;
}

.milestone.production {
  grid-column: 10;
  background: var(--green);
  color: #04120a;
}

.candidate {
  margin-top: 32px;
  padding: 30px;
  border-color: rgba(66, 198, 215, 0.32);
}

.candidate span {
  display: block;
  color: var(--soft);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.candidate strong {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.04;
}

.conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.conditions > div {
  min-height: 108px;
  padding: 20px;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 750;
  line-height: 1.18;
}

.closing-line {
  margin: 24px 0 0;
  color: var(--green);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
}

@media (max-height: 780px) and (min-width: 921px) {
  .slide {
    padding: 30px 48px;
  }

  .eyebrow,
  .panel-kicker,
  .mini-label,
  .source {
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(74px, 10vw, 132px);
  }

  .subtitle {
    font-size: clamp(24px, 3vw, 40px);
  }

  .slide-header h2,
  .transition-slide h2 {
    font-size: clamp(42px, 5vw, 70px);
  }

  .panel {
    min-height: 220px;
  }

  .takeaway-strip {
    padding: 16px 20px;
  }

  .metric-grid {
    gap: 12px;
  }

  .assertion {
    margin-top: 24px;
    padding: 22px 26px;
  }

  .assertion strong {
    font-size: clamp(34px, 4.4vw, 58px);
  }

  .performance-card {
    padding: 16px 18px;
  }

  .gantt {
    margin-top: 24px;
    padding: 18px;
  }

  .gantt-row {
    min-height: 62px;
  }
}

.controls {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.78);
  padding: 8px;
  backdrop-filter: blur(14px);
}

.controls button,
.controls span {
  min-width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.controls button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.controls button:hover,
.controls button:focus-visible {
  outline: 2px solid rgba(66, 198, 215, 0.6);
  outline-offset: 2px;
}

.controls span {
  min-width: 70px;
  color: var(--muted);
  font-weight: 800;
}

#notesBtn {
  min-width: 70px;
  padding: 0 14px;
}

.speaker-notes {
  position: fixed;
  left: 24px;
  bottom: 22px;
  z-index: 11;
  width: min(560px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.92);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.speaker-notes span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.speaker-notes p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .deck,
  .slide {
    min-height: 100vh;
    height: auto;
  }

  .slide {
    position: relative;
    display: none;
    padding: 32px 18px 108px;
  }

  .slide-grid,
  .two-columns,
  .metric-grid,
  .performance-grid,
  .conditions {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow i {
    width: 2px;
    height: 24px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--soft), transparent);
  }

  .flow i::after {
    left: -5px;
    right: auto;
    top: auto;
    bottom: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--soft);
    border-bottom: 0;
  }

  .panel {
    min-height: 220px;
  }

  .takeaway-strip {
    display: grid;
    gap: 10px;
  }

  .takeaway-strip strong {
    white-space: normal;
  }

  .takeaway-strip span {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(68px, 22vw, 120px);
  }

  .controls {
    right: 12px;
    left: 12px;
    justify-content: center;
  }
}
