:root {
  color-scheme: light dark;
  --lime: #a8c522;
  --lime-strong: #c7e543;
  --ink: #172018;
  --muted: #5d665a;
  --paper: #f7f7f2;
  --line: rgba(168, 197, 34, 0.44);
  --dark: #08100d;
  --dark-soft: rgba(7, 13, 11, 0.68);
  --glass-light: rgba(248, 248, 241, 0.78);
  --glass-dark: rgba(6, 12, 10, 0.72);
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #111612;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

.deck {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(1.8%);
  transition: opacity 420ms ease, transform 520ms ease;
}

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

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.is-light::after {
  background:
    linear-gradient(90deg, rgba(249, 249, 244, 0.82) 0%, rgba(249, 249, 244, 0.45) 31%, rgba(249, 249, 244, 0.02) 64%),
    linear-gradient(0deg, rgba(247, 247, 242, 0.22), rgba(247, 247, 242, 0));
}

.slide-title::after,
.slide-scheme-title::after,
.slide-july::after {
  background: linear-gradient(90deg, rgba(249, 249, 244, 0.82) 0%, rgba(249, 249, 244, 0.18) 43%, rgba(249, 249, 244, 0) 77%);
}

.slide-scheme-title::after {
  background: linear-gradient(180deg, rgba(249, 249, 244, 0.78) 0%, rgba(249, 249, 244, 0.2) 27%, rgba(249, 249, 244, 0) 58%);
}

.slide-systems-light::after {
  background:
    linear-gradient(90deg, rgba(249, 249, 244, 0.9) 0%, rgba(249, 249, 244, 0.67) 48%, rgba(249, 249, 244, 0.16) 100%),
    linear-gradient(0deg, rgba(249, 249, 244, 0.2), rgba(249, 249, 244, 0));
}

.is-dark::after {
  background:
    radial-gradient(circle at 72% 42%, rgba(168, 197, 34, 0.12), transparent 29%),
    linear-gradient(90deg, rgba(4, 10, 9, 0.88) 0%, rgba(4, 10, 9, 0.36) 45%, rgba(4, 10, 9, 0.08) 78%);
}

.slide-system-questions::after {
  background:
    linear-gradient(0deg, rgba(4, 10, 9, 0.86) 0%, rgba(4, 10, 9, 0.18) 34%, rgba(4, 10, 9, 0) 66%),
    radial-gradient(circle at 50% 48%, rgba(168, 197, 34, 0.16), transparent 32%);
}

.content-zone,
.title-lockup,
.scheme-title-only,
.systems-card,
.july-title,
.dual-strip,
.dark-bottom-note {
  position: absolute;
  z-index: 2;
}

.title-lockup {
  left: 6.4%;
  top: 18%;
  width: 42%;
}

.content-zone {
  left: 6.2%;
  top: 11.2%;
}

.content-zone.narrow {
  width: 36%;
}

.content-zone.medium {
  width: 41%;
}

.content-zone.wide {
  width: 50%;
}

.slide-left-dark .content-zone {
  top: 10%;
  width: 53%;
}

.roadmap-zone {
  width: 50%;
  top: 8.4%;
}

.final-zone {
  left: 5.4%;
  top: 8.4%;
  width: 52%;
}

.dark-panel {
  padding: 34px 38px 36px;
  border: 1px solid rgba(199, 229, 67, 0.25);
  background: linear-gradient(135deg, rgba(6, 12, 10, 0.74), rgba(8, 15, 13, 0.45));
  backdrop-filter: blur(8px);
}

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

h1,
h2 {
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 5.2vw, 84px);
}

h2 {
  max-width: 720px;
  font-size: clamp(36px, 3.9vw, 64px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--lime);
  font-size: clamp(14px, 1.1vw, 19px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.is-light .eyebrow {
  color: #71920c;
}

.subtitle {
  margin-top: 28px;
  color: #2c352c;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 500;
}

.caption {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 24px);
}

.lead {
  margin-top: 30px;
  color: var(--ink);
  font-size: clamp(20px, 1.5vw, 27px);
  font-weight: 650;
}

.closing {
  margin-top: 28px;
  color: #2d372f;
  font-size: clamp(18px, 1.34vw, 24px);
  line-height: 1.26;
  font-weight: 520;
}

.is-dark,
.is-dark .closing,
.is-dark .lead {
  color: #f4f7ee;
}

.is-dark h2,
.is-dark h1 {
  color: #f8fbf0;
}

.is-dark .closing {
  color: rgba(244, 247, 238, 0.85);
}

.clean-list,
.compact-list {
  padding: 0;
  list-style: none;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  font-size: clamp(18px, 1.42vw, 25px);
  line-height: 1.18;
}

.clean-list li,
.compact-list li {
  position: relative;
  padding-left: 28px;
}

.clean-list li::before,
.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(168, 197, 34, 0.14);
}

.scheme-title-only {
  left: 32%;
  top: 6.2%;
  width: 48%;
}

.scheme-title-only h2 {
  color: var(--ink);
  max-width: none;
  font-size: clamp(40px, 3.35vw, 60px);
  white-space: nowrap;
}

.systems-card {
  left: 6.2%;
  top: 14%;
  width: 48%;
  padding: 36px 42px 40px;
  background: rgba(248, 248, 242, 0.78);
  border-left: 2px solid rgba(168, 197, 34, 0.58);
  backdrop-filter: blur(5px);
}

.systems-card .clean-list {
  gap: 14px;
  margin-top: 26px;
  font-size: clamp(20px, 1.56vw, 28px);
}

.systems-card .closing {
  max-width: 720px;
  font-size: clamp(18px, 1.36vw, 24px);
}

.month-grid {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.month-grid article,
.phase-grid article,
.dual-strip article {
  position: relative;
}

.month-grid article {
  padding: 14px 0 14px 24px;
  border-left: 2px solid rgba(199, 229, 67, 0.46);
}

.month-grid span,
.phase-grid span,
.dual-strip span {
  display: block;
  color: var(--lime-strong);
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 760;
}

.month-grid p {
  margin-top: 5px;
  color: rgba(246, 248, 239, 0.88);
  font-size: clamp(16px, 1.17vw, 21px);
  line-height: 1.18;
}

.july-title {
  left: 36%;
  top: 5.8%;
  width: 39%;
}

.july-title h2 {
  font-size: clamp(34px, 3.1vw, 54px);
}

.dual-strip {
  left: 25%;
  bottom: 7%;
  width: 58%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 22px 28px 24px;
  background: rgba(249, 249, 244, 0.75);
  border: 1px solid rgba(168, 197, 34, 0.31);
  backdrop-filter: blur(5px);
}

.dual-strip span {
  color: #6f900d;
}

.dual-strip ul {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
  color: #263129;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.16;
}

.dual-strip li {
  position: relative;
  padding-left: 21px;
}

.dual-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.phase-grid {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.phase-grid article {
  padding: 16px 0 16px 24px;
  border-left: 2px solid rgba(199, 229, 67, 0.46);
}

.phase-grid .clean-list {
  gap: 10px;
  margin-top: 13px;
  font-size: clamp(16px, 1.12vw, 21px);
}

.slide-phase .roadmap-zone {
  width: 49%;
}

.final-zone h2 {
  max-width: 820px;
}

.final-list {
  gap: 13px;
  margin-top: 30px;
  max-width: 760px;
  font-size: clamp(17px, 1.18vw, 22px);
}

.dark-bottom-note {
  left: 4.5%;
  right: 4.5%;
  bottom: 5.8%;
  display: grid;
  grid-template-columns: 0.32fr 0.4fr 0.28fr;
  gap: 32px;
  align-items: end;
  padding: 24px 30px 26px;
  color: #f7faee;
  background: rgba(5, 11, 10, 0.76);
  border: 1px solid rgba(199, 229, 67, 0.23);
  backdrop-filter: blur(7px);
}

.dark-bottom-note h2 {
  font-size: clamp(34px, 3vw, 54px);
}

.compact-list {
  display: grid;
  gap: 9px;
  color: rgba(247, 250, 238, 0.92);
  font-size: clamp(14px, 1vw, 19px);
  line-height: 1.15;
}

.compact-list.two {
  grid-template-columns: 1fr 1fr;
  gap: 13px 24px;
  margin-top: 28px;
  font-size: clamp(16px, 1.17vw, 21px);
}

.dark-bottom-note .closing {
  margin: 0;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.25;
}

.brand-mark,
.slide-counter,
.deck-progress {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.brand-mark {
  right: 3.2%;
  top: 3.2%;
  color: rgba(168, 197, 34, 0.82);
  font-size: clamp(12px, 0.85vw, 16px);
  font-weight: 800;
}

.is-active.is-light ~ .brand-mark {
  color: rgba(105, 137, 12, 0.74);
}

.slide-counter {
  right: 3.2%;
  bottom: 3%;
  color: rgba(245, 248, 238, 0.72);
  font-size: clamp(12px, 0.88vw, 17px);
  font-weight: 650;
}

.slide.is-active.is-light ~ .slide-counter {
  color: rgba(36, 45, 37, 0.56);
}

.deck-progress {
  left: 3.2%;
  right: 9.5%;
  bottom: 3.6%;
  height: 16px;
}

.progress-line {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(168, 197, 34, 0.34);
}

.progress-dot {
  position: absolute;
  top: 3px;
  left: calc((100% / 10) * var(--i));
  width: 9px;
  height: 9px;
  border: 1px solid rgba(168, 197, 34, 0.86);
  border-radius: 50%;
  background: rgba(168, 197, 34, 0.08);
  transform: translateX(-50%);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.progress-dot:first-of-type {
  transform: translateX(0);
}

.progress-dot.is-current {
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(168, 197, 34, 0.16);
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.72);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.controls button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f7faee;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.controls button:hover {
  background: rgba(168, 197, 34, 0.34);
}

.control-progress {
  width: 116px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.control-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 220ms ease;
}

body.is-exporting {
  background: #000;
}

body.is-exporting .deck {
  width: 100vw;
  height: 100vh;
  box-shadow: none;
}

body.is-exporting .slide {
  transition: none;
  transform: none;
}

body.is-exporting .controls {
  display: none;
}

@media (max-aspect-ratio: 4 / 3) {
  .content-zone.narrow,
  .content-zone.medium,
  .content-zone.wide,
  .title-lockup,
  .roadmap-zone,
  .final-zone,
  .systems-card,
  .scheme-title-only {
    width: 58%;
  }

  .dark-bottom-note,
  .dual-strip {
    left: 5%;
    right: 5%;
    width: auto;
  }
}
