:root {
  --bg: #0b0e12;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f7fa;
  --text-dim: #8b93a1;
  /* AnterVid brand palette (from antervid.com): navy shell, warm amber/orange
     accent, cream for light contrast. Kept as --accent-cyan/green/purple
     aliases so the rest of the stylesheet below doesn't need renaming. */
  --brand-navy: #0b1f3a;
  --brand-orange: #d75a1f;
  --brand-amber: #eca400;
  --brand-cream: #f5f0e7;
  --accent-cyan: #d75a1f;
  --accent-green: #eca400;
  --accent-purple: #d75a1f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  height: 100%;
  overflow: hidden;
}

#deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(215, 90, 31, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(236, 164, 0, 0.06), transparent 40%),
    linear-gradient(var(--bg), var(--bg));
  background-size: cover;
}

#deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width 0.6s ease;
  z-index: 10;
}

.topbar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: block;
  border-radius: 5px;
}

.brand__word {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
}

.brand__i {
  position: relative;
  font-style: normal;
}

.brand__i::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-orange);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  background: rgba(10, 14, 22, 0.6);
  backdrop-filter: blur(6px);
}

.ticker-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.ticker-spark svg {
  width: 90px;
  height: 20px;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  fill: none;
}

.ticker-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.ticker-note {
  font-size: 12px;
  color: var(--text-dim);
}

.slide-index {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  background: rgba(10, 14, 22, 0.6);
}

.dots {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.dots button.active {
  background: var(--accent-cyan);
  width: 8px;
  height: 20px;
  border-radius: 4px;
}

.slide-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 100px 120px 100px;
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,0.55), rgba(5,7,12,0.92));
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.slide h1 {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 16px 0;
  max-width: 900px;
}

.slide .subtitle {
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.5;
}

.slide .body-copy {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-top: 8px;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  max-width: 720px;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
  mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

.financial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin-top: 24px;
}

.fin-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-panel);
}

.fin-card .fin-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.fin-card .fin-headline {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  margin: 8px 0 4px 0;
}

.fin-card .fin-sublabel {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 20px;
}

.fin-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
}

.fin-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.fin-row-top .row-title { font-weight: 700; font-size: 15px; }
.fin-row-top .row-value { font-weight: 800; font-size: 17px; color: var(--accent-cyan); }
.fin-row .row-note { font-size: 12px; color: var(--text-dim); }

.fin-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  margin-top: 4px;
  overflow: hidden;
}

.fin-bar-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
}

.fin-footnote {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.fin-footnote strong { color: var(--text); }

.fin-footer {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-dim);
}

.fin-footer strong { color: var(--text); font-size: 15px; }

.controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.arrows { display: flex; gap: 12px; }

.arrows button, .links button, .links a {
  border: 1px solid var(--border);
  background: rgba(10, 14, 22, 0.6);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.arrows button {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
  border-radius: 50%;
}

.links { display: flex; gap: 12px; }

@media (max-width: 720px) {
  .slide { padding: 90px 24px 140px 24px; }
  .financial-grid { grid-template-columns: 1fr; }
  .dots { left: 12px; }
  .hero-image { display: none; }
  .topbar { left: 12px; right: 12px; }
  .topbar__left { gap: 10px; }
  .brand__word { display: none; }
  .ticker { padding: 8px 12px; gap: 10px; }
  .controls { left: 12px; right: 12px; flex-direction: column; gap: 12px; }
}
