:root {
  --ink: #0a0c10;
  --ink-2: #11151d;
  --ink-3: #181e2a;
  --paper: #e8e4dc;
  --paper-dim: rgba(232, 228, 220, 0.62);
  --copper: #c9895a;
  --copper-bright: #e0a574;
  --steel: #7a9eae;
  --line: rgba(232, 228, 220, 0.14);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.deck-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.92), transparent);
}

.deck-bar__brand {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
}

.deck-bar__brand:hover { opacity: 1; color: var(--copper-bright); }

.deck-bar__meta {
  font-size: 0.75rem;
  color: var(--paper-dim);
  letter-spacing: 0.04em;
  text-align: right;
}

.deck {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  padding:
    clamp(4.5rem, 10vh, 6rem)
    clamp(1.4rem, 5vw, 4.5rem)
    clamp(4rem, 8vh, 5.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(201, 137, 90, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(122, 158, 174, 0.1), transparent 45%),
    var(--ink);
  overflow: auto;
}

.slide.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideIn 0.55s var(--ease);
}

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

.slide--title {
  justify-content: flex-end;
  padding-bottom: clamp(5rem, 12vh, 7rem);
  background:
    linear-gradient(180deg, transparent 20%, rgba(10, 12, 16, 0.55) 55%, var(--ink) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 137, 90, 0.18), transparent 55%),
    linear-gradient(135deg, #151a24, #0a0c10);
}

.slide__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 1rem;
}

.slide h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1.1rem;
}

.slide h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.slide__lead {
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--paper-dim);
  line-height: 1.55;
}

.slide__period {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(100%, 1080px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  width: min(100%, 1080px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: min(100%, 1080px);
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.panel {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}

.panel p, .panel li {
  font-size: 0.92rem;
  color: var(--paper-dim);
  line-height: 1.5;
}

.panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.panel li {
  position: relative;
  padding-left: 0.9rem;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--copper);
}

.metric {
  padding: 1.25rem 1.1rem;
  border-top: 2px solid var(--copper);
  background: rgba(255, 255, 255, 0.02);
}

.metric__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--copper-bright);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.metric__label {
  font-size: 0.85rem;
  color: var(--paper-dim);
  line-height: 1.35;
  max-width: 16ch;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  width: min(100%, 1080px);
}

.flow__step {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  position: relative;
}

.flow__step span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--steel);
  margin-bottom: 0.45rem;
  letter-spacing: 0.08em;
}

.flow__step strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.quote {
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.deck-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
  background: linear-gradient(0deg, rgba(10, 12, 16, 0.95), transparent);
}

.deck-nav__progress {
  flex: 1;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  max-width: 220px;
}

.deck-nav__bar {
  height: 100%;
  width: 0;
  background: var(--copper);
  transition: width 0.35s var(--ease);
}

.deck-nav__count {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  min-width: 4.5rem;
}

.deck-nav__btns {
  display: flex;
  gap: 0.5rem;
}

.deck-nav__btns button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.deck-nav__btns button:hover:not(:disabled) {
  border-color: rgba(201, 137, 90, 0.5);
  color: var(--copper-bright);
}

.deck-nav__btns button:disabled {
  opacity: 0.3;
  cursor: default;
}

.hint {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 4.2rem;
  z-index: 30;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.35);
}

@media (max-width: 700px) {
  .hint { display: none; }
  .slide--title { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; }
}
