:root {
  --cream: #f5efe2;
  --cream-deep: #eee2ce;
  --ink: #050505;
  --muted-ink: rgba(5, 5, 5, 0.64);
  --teal: #2d9eab;
  --teal-dark: #137883;
  --mint: #91d6cd;
  --orange: #ff7c25;
  --yellow: #f7c938;
  --white: #fffaf0;
  --shadow: 0 34px 70px rgba(20, 16, 8, 0.18);
  --deck-padding: clamp(0px, 2.6vmin, 28px);
  font-family: "Avenir Next Condensed", "Futura Condensed ExtraBold", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 124, 37, 0.16), transparent 23rem),
    linear-gradient(135deg, var(--cream), var(--cream-deep));
  -webkit-tap-highlight-color: transparent;
}

body {
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
}

button,
output {
  font: inherit;
}

.deck-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--deck-padding);
}

.stage {
  position: relative;
  width: min(calc(100vw - var(--deck-padding) * 2), calc((100vh - var(--deck-padding) * 2) * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow);
  isolation: isolate;
  container-type: size;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-width: 100%;
  min-height: 100%;
  padding: clamp(46px, 5.2cqw, 90px);
  opacity: 0;
  transform: translateX(1.3%);
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.4), transparent),
    var(--cream);
  touch-action: none;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.68;
  background-image:
    linear-gradient(rgba(45, 158, 171, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 158, 171, 0.11) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 65% 45%, black, transparent 66%);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: -2;
  border: 3px solid rgba(5, 5, 5, 0.92);
  box-shadow:
    8px 8px 0 var(--teal),
    14px 14px 0 rgba(255, 124, 37, 0.85);
  pointer-events: none;
}

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

.slide img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.slide-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.slide-copy.right {
  justify-self: end;
  max-width: 57%;
}

.slide-copy.wide {
  max-width: 76%;
}

.kicker {
  margin: 0 0 1rem;
  font-size: clamp(16px, 1.45cqw, 26px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--teal-dark);
}

h1,
h2 {
  margin: 0;
  font-family: "Futura Condensed ExtraBold", "Avenir Next Condensed", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(70px, 9cqw, 150px);
  max-width: 12ch;
}

h2 {
  font-size: clamp(58px, 7.3cqw, 124px);
}

.subcopy {
  margin: clamp(18px, 2cqw, 30px) 0 0;
  max-width: 52ch;
  font-size: clamp(18px, 1.75cqw, 29px);
  font-weight: 800;
  line-height: 1.22;
  color: var(--muted-ink);
}

.slide-mark {
  position: absolute;
  left: clamp(42px, 5cqw, 78px);
  bottom: clamp(32px, 3.5cqw, 56px);
  z-index: 4;
  padding-left: 64px;
  font-size: clamp(11px, 0.92cqw, 16px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

.slide-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--orange);
  box-shadow:
    14px 0 0 var(--yellow),
    28px 0 0 var(--teal);
}

.cover-art {
  position: absolute;
  right: clamp(42px, 5cqw, 82px);
  bottom: clamp(58px, 7cqw, 108px);
  z-index: 1;
  width: min(38cqw, 48cqh);
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  box-shadow:
    12px 12px 0 var(--teal),
    22px 22px 0 var(--orange);
  overflow: hidden;
  background: var(--white);
}

.cover-art img,
.operator-asset img,
.speaker-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-copy {
  max-width: 60%;
}

.slide-cover .ambient-grid {
  position: absolute;
  inset: auto 6% 6% auto;
  width: 34%;
  height: 38%;
  opacity: 0.6;
  background:
    radial-gradient(circle, var(--teal) 0 5px, transparent 6px) 0 0 / 38px 38px,
    linear-gradient(90deg, transparent 49%, rgba(45, 158, 171, 0.35) 50%, transparent 51%) 0 0 /
      76px 76px;
}

.soft-row,
.packing-list,
.question-cloud,
.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3cqw, 46px);
}

.soft-row span,
.packing-list span,
.crew-list span,
.partner-card span,
.question-cloud span,
.prompt-list p {
  margin: 0;
  border: 3px solid var(--ink);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 6px 6px 0 rgba(45, 158, 171, 0.7);
  padding: 12px 16px;
  font-size: clamp(17px, 1.45cqw, 24px);
  font-weight: 950;
  line-height: 1;
}

.crew-copy {
  max-width: 50%;
}

.crew-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3cqw, 42px);
}

.crew-list span {
  background: var(--yellow);
  box-shadow: 6px 6px 0 rgba(255, 124, 37, 0.72);
}

.speaker-line {
  margin: clamp(18px, 2cqw, 28px) 0 0;
  font-size: clamp(22px, 2.25cqw, 38px);
  font-weight: 1000;
  line-height: 1;
}

.partner-card {
  display: grid;
  gap: 10px;
  max-width: 35rem;
  margin-top: clamp(18px, 2.3cqw, 34px);
}

.partner-card span {
  width: fit-content;
  background: var(--white);
}

.partner-card span:first-child {
  background: var(--mint);
}

.operator-visuals {
  position: absolute;
  right: 7%;
  top: 12%;
  z-index: 1;
  width: 40%;
  height: 67%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 0.72fr 1fr;
  gap: clamp(10px, 1.35cqw, 18px);
}

.operator-asset {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(255, 124, 37, 0.72);
}

.operator-asset img {
  object-fit: contain;
  padding: 8%;
}

.operator-asset figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: 3px solid var(--ink);
  background: rgba(255, 250, 240, 0.9);
  padding: 6px 10px;
  font-size: clamp(11px, 0.9cqw, 15px);
  font-weight: 1000;
  line-height: 1;
}

.team-attention-asset {
  grid-column: 1 / -1;
  background: #050505;
  box-shadow: 10px 10px 0 rgba(45, 158, 171, 0.72);
}

.team-attention-asset img {
  padding: 9% 7%;
}

.team-attention-asset figcaption {
  background: var(--yellow);
}

.candid-asset {
  box-shadow: 10px 10px 0 rgba(45, 158, 171, 0.72);
}

.cover-chip,
.cover-fragment {
  position: absolute;
  z-index: 1;
  width: clamp(180px, 21cqw, 340px);
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  background: url("../assets/luma-cover.png") center / cover;
  opacity: 0.2;
  filter: saturate(1.05);
  transform: rotate(-5deg);
}

.cover-chip {
  right: 8%;
  top: 15%;
}

.cover-fragment.fragment-left {
  left: 6%;
  bottom: 12%;
  clip-path: polygon(0 0, 100% 0, 73% 100%, 0 78%);
}

.cover-fragment.fragment-right {
  right: 7%;
  top: 9%;
  clip-path: polygon(18% 0, 100% 9%, 100% 100%, 0 82%);
}

.pulse-path {
  position: absolute;
  right: 7%;
  top: 18%;
  width: 36%;
  height: 54%;
  border-top: 8px solid var(--teal);
  border-right: 8px solid var(--teal);
  border-bottom: 8px solid var(--teal);
  opacity: 0.78;
}

.pulse-path::before,
.pulse-path::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--cream);
  border: 7px solid var(--teal);
  box-shadow: 8px 8px 0 rgba(255, 124, 37, 0.75);
}

.pulse-path::before {
  left: -14px;
  top: -18px;
}

.pulse-path::after {
  right: -18px;
  bottom: -18px;
}

.metric-orbit {
  position: absolute;
  right: 8%;
  top: 16%;
  width: min(38cqw, 560px);
  aspect-ratio: 1;
  border: 5px dashed rgba(45, 158, 171, 0.65);
  border-radius: 50%;
  animation: slow-turn 42s linear infinite;
}

.metric-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  padding: 12px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--teal);
  font-size: clamp(15px, 1.4cqw, 24px);
  font-weight: 1000;
}

.metric-orbit span:nth-child(1) {
  left: 6%;
  top: 12%;
}

.metric-orbit span:nth-child(2) {
  right: -4%;
  top: 30%;
}

.metric-orbit span:nth-child(3) {
  left: 32%;
  bottom: -3%;
}

.metric-orbit span:nth-child(4) {
  left: -6%;
  bottom: 30%;
}

.speaker-portrait {
  position: absolute;
  right: 8%;
  top: 14%;
  z-index: 1;
  width: min(34cqw, 54cqh);
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow:
    14px 14px 0 var(--teal),
    25px 25px 0 rgba(255, 124, 37, 0.75);
}

.speaker-intro-copy {
  max-width: 55%;
}

.speaker-intro-copy h2 {
  font-size: clamp(62px, 7.2cqw, 118px);
}

.speaker-lead,
.speaker-body,
.speaker-credential {
  max-width: 44rem;
  margin: clamp(14px, 1.5cqw, 22px) 0 0;
  font-weight: 900;
  line-height: 1.28;
}

.speaker-lead {
  font-size: clamp(21px, 1.9cqw, 32px);
  color: var(--ink);
}

.speaker-body {
  font-size: clamp(16px, 1.35cqw, 23px);
  color: var(--muted-ink);
}

.speaker-credential {
  display: inline-block;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 rgba(45, 158, 171, 0.72);
  padding: 10px 14px;
  font-size: clamp(15px, 1.18cqw, 20px);
  line-height: 1.18;
}

.question-cloud {
  position: absolute;
  right: 7%;
  top: 16%;
  width: 38%;
  justify-content: flex-end;
}

.question-cloud span {
  background: var(--white);
}

.question-cloud span:nth-child(2n) {
  background: var(--mint);
}

.question-cloud span:nth-child(3n) {
  background: var(--yellow);
  box-shadow: 6px 6px 0 rgba(255, 124, 37, 0.75);
}

.breakfast-grid {
  position: absolute;
  right: 7%;
  top: 13%;
  width: 38%;
  height: 62%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transform: rotate(2deg);
}

.breakfast-grid span {
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at 50% 50%, var(--yellow) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(45, 158, 171, 0.8), rgba(145, 214, 205, 0.45));
  box-shadow: 8px 8px 0 rgba(255, 124, 37, 0.72);
}

.prompt-copy {
  max-width: 66%;
}

.prompt-list {
  display: grid;
  max-width: 45rem;
}

.venue-copy h2 {
  color: var(--orange);
}

.packing-list {
  position: absolute;
  right: 7%;
  top: 14%;
  width: 38%;
}

.packing-list span {
  background: var(--white);
}

.packing-list span:nth-child(2n) {
  background: var(--mint);
}

.packing-list span:nth-child(3n) {
  background: var(--yellow);
}

.cover-art.ghost {
  right: 6%;
  bottom: 9%;
  width: min(42cqw, 58cqh);
  opacity: 0.22;
  transform: rotate(4deg);
}

.close-copy {
  max-width: 68%;
}

.deck-controls {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 3px solid var(--ink);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 7px 7px 0 rgba(45, 158, 171, 0.78);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.control-button,
.counter {
  min-width: 48px;
  height: 48px;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
}

.control-button {
  cursor: pointer;
  touch-action: manipulation;
}

.control-button:disabled {
  cursor: default;
  opacity: 0.32;
}

.control-button:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 3px;
}

.counter {
  min-width: 84px;
  padding: 0 10px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-size: 14px;
}

.print-toggle {
  width: auto;
  min-width: 78px;
  padding: 0 12px;
  background: var(--orange);
  color: var(--ink);
  font-size: 13px;
}

.print-toggle.is-active {
  background: var(--teal);
  color: var(--white);
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 19;
  height: 6px;
  background: rgba(5, 5, 5, 0.12);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 260ms ease;
}

.print-mode,
.print-mode html,
.print-mode body {
  overflow: auto;
}

body.print-mode {
  display: block;
  padding: 24px;
}

.print-mode .deck-shell {
  display: block;
  height: auto;
  padding: 0;
}

.print-mode .stage {
  display: grid;
  gap: 24px;
  width: min(100%, 1400px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.print-mode .slide {
  position: relative;
  aspect-ratio: 16 / 9;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  page-break-after: always;
  box-shadow: var(--shadow);
}

.print-mode .deck-controls,
.print-mode .progress {
  position: fixed;
}

@keyframes slow-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    size: 16in 9in;
    margin: 0;
  }

  html,
  body {
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--cream);
  }

  body {
    display: block;
    padding: 0;
  }

  .deck-shell,
  .stage {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }

  .slide {
    position: relative;
    width: 16in;
    height: 9in;
    opacity: 1;
    transform: none;
    page-break-after: always;
    break-after: page;
  }

  .deck-controls,
  .progress {
    display: none !important;
  }
}
