.agenda-monitors { display: none; }

.slide[data-slide="2"],
body.presenting .slide[data-slide="2"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

:is(.slide, .slide-exit)[data-slide="2"] .slide-heading {
  z-index: 2;
  max-width: none;
  border: 0;
  padding: 0;
  margin: 0;
}

:is(.slide, .slide-exit)[data-slide="2"] .slide-heading h1 {
  font-size: clamp(2.75rem, 5.2vw, 5.2rem);
  line-height: 1.07;
  letter-spacing: -.045em;
}

:is(.slide, .slide-exit)[data-slide="2"] :is(.chapter, .evidence) { display: none; }

:is(.slide, .slide-exit)[data-slide="2"] .takeaway {
  max-width: 90ch;
  margin-top: clamp(.4rem, .85dvh, .65rem);
  color: #e6efed;
  font-size: clamp(.98rem, 1.38vw, 1.26rem);
  line-height: 1.42;
  white-space: pre-line;
  text-shadow: 0 1px 3px #071319, 0 2px 10px #071319;
}

:is(.slide, .slide-exit)[data-slide="2"] .takeaway::first-line {
  color: #bdede3;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

:is(.slide, .slide-exit)[data-slide="2"] .content {
  display: block;
  max-width: none;
}

.slide[data-slide="2"] .content {
  position: fixed;
  inset: auto 5vw 24dvh;
  width: auto;
  pointer-events: none;
}

:is(.slide, .slide-exit)[data-slide="2"] .agenda-monitors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2.1vw;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agenda-monitor {
  position: relative;
  display: grid;
  min-width: 0;
  perspective: 880px;
}

.monitor-unit {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: end;
  transform: translate3d(0, var(--monitor-drop, 0px), 0) rotateX(var(--monitor-pitch, 0deg)) rotateZ(var(--monitor-rock, 0deg));
  transform-origin: 50% 100%;
  opacity: var(--monitor-opacity, 1);
}

.monitor-contact-shadow {
  position: absolute;
  z-index: -1;
  left: 7%;
  width: 86%;
  height: clamp(.52rem, 1.8vh, 1.18rem);
  bottom: -.20rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #02080bd9 4%, #080b10a6 35%, transparent 72%);
  opacity: var(--shadow-opacity, 1);
  transform: scaleX(var(--shadow-scale, 1));
}

.monitor-enclosure {
  position: relative;
  display: grid;
  min-width: 0;
  border: 1px solid #62666a;
  border-top-color: #899094;
  border-bottom-color: #111518;
  border-radius: .42rem .42rem .34rem .34rem;
  padding: clamp(.25rem, .55vw, .48rem) clamp(.25rem, .5vw, .46rem) clamp(.43rem, .81vw, .7rem);
  background: linear-gradient(148deg, #41484e 0%, #262e35 25%, #151c22 66%, #343b40 100%);
  box-shadow: 0 .16rem 0 #0c1116, 0 .32rem .78rem #02060b7d;
}

.monitor-enclosure::after {
  position: absolute;
  right: .65rem;
  bottom: .20rem;
  width: .16rem;
  height: .16rem;
  border-radius: 50%;
  background: #8bc3b8;
  box-shadow: 0 0 .22rem #8bc3b880;
  content: "";
}

.monitor-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: clamp(10.3rem, 24dvh, 18rem);
  min-width: 0;
  padding: clamp(.65rem, 1.24vw, 1.4rem);
  padding-block-start: clamp(.75rem, 2dvh, 1.4rem);
  border: 1px solid #050d12;
  border-radius: .18rem;
  background: linear-gradient(150deg, #2c424b 0%, #192b34 23%, #14202a 66%, #111e26 100%);
  box-shadow: inset 0 0 0 1px #c8e6e817, inset 0 0 .78rem #07141dab;
  color: #f5f5f2;
  text-shadow: 0 1px .16rem #0c131a8c;
}

.monitor-number {
  color: #9cc7c3;
  font-size: clamp(1.13rem, 2.1vw, 2.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: 1;
}

.agenda-blueprint {
  --blueprint-roll-height: clamp(.85rem, 1.5vw, 1.2rem);
  position: fixed;
  top: 82.4dvh;
  left: 50%;
  width: clamp(8rem, 23vw, 20rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.agenda-blueprint > .blueprint-roll { transform: rotate(-4deg); }

.blueprint-tilt-roll {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.monitor-heading {
  margin: clamp(.24rem, .6dvh, .52rem) 0 0;
  color: #fbfbf7;
  font-size: clamp(1.04rem, 1.65vw, 1.68rem);
  font-weight: 700;
  letter-spacing: -.019em;
  line-height: 1.13;
  text-wrap: balance;
}

.monitor-description {
  margin: clamp(.20rem, .66dvh, .58rem) 0 0;
  color: #dce8e8;
  font-size: clamp(.93rem, 1.33vw, 1.17rem);
  line-height: 1.29;
  text-wrap: pretty;
}

.monitor-stand {
  position: relative;
  height: clamp(1rem, 3.1dvh, 2.2rem);
}

.monitor-stand::before,
.monitor-stand::after {
  position: absolute;
  content: "";
}

.monitor-stand::before {
  top: 0;
  left: 43%;
  width: 14%;
  height: 80%;
  background: linear-gradient(91deg, #11171e 2%, #3d4549 21%, #2f373c 70%, #131c22 99%);
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}

.monitor-stand::after {
  left: 23%;
  width: 54%;
  height: 36%;
  bottom: 0;
  background: linear-gradient(180deg, #697072 0%, #3b4549 28%, #252d33 65%, #13171a 95%);
  clip-path: polygon(13% 0, 87% 0, 100% 62%, 100% 100%, 0 100%, 0 62%);
}

@media (max-width: 52rem) {
  .slide[data-slide="2"],
  body.presenting .slide[data-slide="2"] {
    grid-template-rows: auto auto;
    row-gap: clamp(.8rem, 3dvh, 1.8rem);
  }

  .slide[data-slide="2"] .content {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  :is(.slide, .slide-exit)[data-slide="2"] .agenda-monitors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
  }

  .monitor-unit {
    transform: translate3d(0, calc(var(--monitor-drop, 0px) * .55), 0) rotateX(var(--monitor-pitch, 0deg)) rotateZ(var(--monitor-rock, 0deg));
  }

  .monitor-screen { min-height: 9rem; }
  .monitor-heading { font-size: clamp(.91rem, 2.35vw, 1.23rem); }
  .monitor-description { font-size: clamp(.82rem, 2vw, .96rem); }
}

@media (max-height: 37.5rem) and (min-width: 52.0625rem) {
  .monitor-screen { min-height: 9.3rem; }
}
