:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --lime: #e5ff00;
  --min-copy: clamp(24px, 2.9vw, 43px);
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--bg); color: var(--text); }
.slide {
  min-height: 100svh;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  padding: 0;
  background: var(--bg);
}
.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100vw, 177.7778svh);
  aspect-ratio: 16 / 9;
  max-height: 100svh;
  padding: clamp(22px, 3vw, 52px) clamp(28px, 4vw, 72px);
  border: 1px solid #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 42% 55% at 91% 32%, rgb(92 28 191 / 30%), transparent 75%),
    radial-gradient(ellipse 58% 36% at 18% 100%, rgb(107 28 208 / 25%), transparent 80%),
    #000;
}
.stage::before, .stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.stage::before {
  width: 72%;
  aspect-ratio: 1;
  right: -15%;
  top: -27%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 43%,
    rgb(204 156 255 / 78%) 0%,
    rgb(143 61 245 / 62%) 17%,
    rgb(92 24 189 / 38%) 38%,
    rgb(74 22 163 / 12%) 60%,
    transparent 72%);
  filter: blur(18px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.stage::after {
  left: -12%;
  bottom: -8%;
  width: 124%;
  height: 62%;
  background: url("assets/purple-waves.svg") center bottom / 100% 100% no-repeat;
  animation: wave-swell 8s ease-in-out infinite alternate;
}
.slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: auto 0;
  padding: 2vh 0;
}
.event-name, .cover-subtitle, .cover-date {
  margin: 0;
  font-size: var(--min-copy);
  line-height: 1.42;
}
.event-name { font-weight: 800; }
h1 {
  max-width: 12em;
  margin: clamp(32px, 4.5vw, 68px) 0;
  font-size: clamp(56px, 7.3vw, 112px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.055em;
}
.cover h1 { max-width: none; font-size: clamp(48px, 6vw, 92px); }
.cover-subtitle { color: var(--lime); font-weight: 800; }
.cover-date { margin-top: 15px; }
.agenda h2 {
  margin: 0 0 clamp(24px, 3.2vw, 48px);
  font-size: clamp(48px, 5vw, 74px);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.agenda-list { margin: 0; padding: 0; list-style: none; }
.agenda-list li {
  display: grid;
  grid-template-columns: clamp(54px, 7vw, 100px) 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(10px, 1.3vw, 20px) 0;
  border-top: 1px solid #fff;
}
.agenda-list li:last-child { border-bottom: 1px solid #fff; }
.agenda-number { color: var(--lime); font-size: clamp(32px, 3.5vw, 54px); font-weight: 900; }
.agenda-label { font-size: var(--min-copy); font-weight: 800; line-height: 1.35; }
.section-number {
  display: block;
  margin-bottom: clamp(26px, 4vw, 58px);
  color: var(--lime);
  font-size: clamp(104px, 13vw, 200px);
  font-weight: 900;
  line-height: .82;
  font-variant-numeric: tabular-nums;
}
.statement-title {
  max-width: 14em;
  margin: 0 0 clamp(24px, 3vw, 44px);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.statement-text {
  max-width: 34em;
  margin: 0;
  font-size: var(--min-copy);
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.statement-text + .statement-text { margin-top: .75em; }
.solo .statement-text { max-width: 28em; font-weight: 750; }
.image-slide .stage { align-items: center; justify-content: center; }
.render-figure { margin: 0; max-width: 100%; }
.render-figure a { display: block; }
.render-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(min(100svh, 56.25vw) - 2 * clamp(22px, 3vw, 52px) - 2px);
  object-fit: contain;
}
@keyframes orb-drift {
  from { transform: translate(-12%, -8%) scale(.82); }
  to { transform: translate(12%, 14%) scale(1.18); }
}
@keyframes wave-swell {
  from { transform: translate(-5%, 8%) scaleY(.78); }
  to { transform: translate(7%, 5%) scaleY(.9); }
}
@media (max-aspect-ratio: 4/3) {
  :root { --min-copy: 24px; }
  html { scroll-snap-type: none; scroll-behavior: auto; }
  .slide { min-height: 100svh; padding: 10px; }
  .stage {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: calc(100svh - 20px);
    max-height: none;
    padding: 24px;
  }
  h1 { font-size: clamp(52px, 14vw, 76px); }
  .cover h1 { font-size: clamp(36px, 10vw, 56px); }
  .agenda h2 { font-size: 42px; }
  .agenda-number { font-size: 34px; }
  .section-number { font-size: clamp(94px, 28vw, 150px); }
  .statement-title { font-size: clamp(36px, 9vw, 58px); }
  .render-figure img { max-height: calc(100svh - 70px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage::before, .stage::after { animation: none; }
}
@media print {
  @page { size: 16in 9in; margin: 0; }
  html { scroll-snap-type: none; }
  .slide { width: 16in; height: 9in; min-height: 0; break-after: page; }
  .stage {
    width: 16in;
    height: 9in;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .stage::before, .stage::after { animation: none; }
  .render-figure img { max-height: calc(9in - 104px); }
}
