:root {
  color-scheme: dark;
  --ink: #0c0d0c;
  --stage: #151412;
  --paper: #f4ead8;
  --warm: #d79f55;
  --green: #66c18c;
  --muted: #9f9384;
  --line: rgba(244, 234, 216, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 2rem;
  padding: clamp(1.4rem, 2.6vw, 2.8rem) clamp(2rem, 4.6vw, 4.5rem)
    clamp(4.2rem, 6vw, 5.6rem);
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

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

.slide-title {
  place-items: center;
}

.slide-title h1 {
  white-space: nowrap;
}

.slide-photo,
.slide-screens,
.slide-source,
.slide-release,
.slide-text,
.slide-qr {
  align-content: start;
}

.title-lockup {
  display: grid;
  gap: 1.2rem;
  width: min(100%, 1120px);
  text-align: center;
}

.title-lockup::after {
  justify-self: center;
  width: min(34rem, 42vw);
  height: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--warm));
  content: "";
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 1120px;
  font-size: clamp(3.8rem, 7.2vw, 8rem);
}

.screen-single {
  display: grid;
  width: 100%;
  place-self: center;
}

.image-slide {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
  width: 100%;
  place-self: start center;
  margin: 0;
}

.image-slide img {
  width: 100%;
  height: min(70vh, 720px);
  min-height: 0;
  object-fit: cover;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(244, 234, 216, 0.06);
}

.screen-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
  min-width: 0;
  margin: 0;
}

.screen-card img,
.image-placeholder {
  width: auto;
  max-width: 100%;
  height: min(76vh, 820px);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.screen-card img {
  display: block;
  justify-self: center;
  object-fit: contain;
}

.image-slide img,
.image-placeholder {
  object-fit: cover;
  background: rgba(244, 234, 216, 0.06);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

figcaption {
  position: static;
  color: rgba(244, 234, 216, 0.9);
  font-size: clamp(2.25rem, 3.8vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
}

.source-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.2rem;
  width: 100%;
  min-height: 0;
}

.source-board h2 {
  margin: 0;
  color: rgba(244, 234, 216, 0.9);
  font-size: clamp(2.25rem, 3.8vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
}

.source-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.82fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: min(68vh, 700px);
  min-height: 0;
}

.source-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.source-card-wide {
  grid-row: span 2;
}

.source-card figcaption {
  color: rgba(215, 159, 85, 0.92);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 850;
}

.source-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(244, 234, 216, 0.06);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.source-card-wide img {
  object-position: center center;
}

.release-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.2rem;
  width: 100%;
  min-height: 0;
}

.release-board h2 {
  margin: 0;
  color: rgba(244, 234, 216, 0.9);
  font-size: clamp(2.25rem, 3.8vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.28fr);
  gap: 1rem;
  align-items: start;
  height: min(72vh, 760px);
  min-height: 0;
}

.release-shot {
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.release-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(244, 234, 216, 0.04);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.release-shot-mobile {
  justify-self: end;
  height: min(72vh, 760px);
}

.release-shot-mobile img {
  width: auto;
}

.text-slide {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1.1rem;
  width: min(100%, 1480px);
  min-height: calc(100vh - 11rem);
  place-self: start;
}

.section-label {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.15rem, 1.7vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-slide h2 {
  max-width: 1480px;
  color: rgba(244, 234, 216, 0.94);
  font-size: clamp(3.1rem, 5.45vw, 6.6rem);
  white-space: nowrap;
}

.text-slide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2.5rem;
  max-width: 860px;
  align-self: center;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.text-slide li {
  color: rgba(215, 159, 85, 0.92);
  font-size: clamp(1.45rem, 2.15vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}

.slide-takeaway .text-slide ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  gap: 0.55rem 2rem;
}

.slide-takeaway .text-slide li {
  font-size: clamp(1.25rem, 1.82vw, 2.05rem);
}

.qr-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  min-height: 0;
}

.qr-board h2 {
  margin: 0;
  color: rgba(244, 234, 216, 0.94);
  font-size: clamp(3.8rem, 7.2vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: min(100%, 1120px);
  min-height: 0;
}

.qr-card {
  display: grid;
  gap: 1rem;
  justify-items: center;
  color: rgba(215, 159, 85, 0.92);
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.qr-card img {
  width: min(100%, 360px);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.image-placeholder {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(244, 234, 216, 0.06), rgba(244, 234, 216, 0.02)),
    repeating-linear-gradient(
      -45deg,
      rgba(244, 234, 216, 0.06),
      rgba(244, 234, 216, 0.06) 1px,
      transparent 1px,
      transparent 18px
    );
}

.image-placeholder-event {
  filter: grayscale(1);
}

.image-placeholder-final {
  background:
    linear-gradient(135deg, rgba(102, 193, 140, 0.14), rgba(215, 159, 85, 0.08)),
    var(--stage);
}

.image-placeholder span {
  color: rgba(244, 234, 216, 0.62);
  font-size: 1.1rem;
  font-weight: 800;
}

.controls {
  position: fixed;
  right: 1.2rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(244, 234, 216, 0.66);
  font-size: 0.9rem;
  font-weight: 800;
}

.controls button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 234, 216, 0.08);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .slide {
    padding: 1.4rem 1.4rem 4.4rem;
  }

  .screen-single {
    width: 100%;
  }

  .image-slide {
    width: 100%;
  }

  .screen-card {
    min-height: 24vh;
  }

  .source-grid {
    grid-template-columns: 1fr 1fr;
    height: min(66vh, 620px);
  }

  .source-card-wide {
    grid-row: span 1;
    grid-column: span 2;
  }

  .release-grid {
    grid-template-columns: 1fr 0.36fr;
    height: min(66vh, 620px);
  }

  .release-shot-mobile {
    height: min(66vh, 620px);
  }

  .text-slide ul {
    grid-template-columns: 1fr;
  }

  .slide-takeaway .text-slide ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-grid {
    gap: 1rem;
  }

  .qr-card img {
    width: min(100%, 220px);
  }

  .image-slide img,
  .screen-card img,
  .image-placeholder {
    height: min(68vh, 600px);
  }
}
