.capture-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5.5vw, 80px);
  align-items: center;
}

.quote-file {
  position: relative;
  isolation: isolate;
  width: min(100%, 23rem);
  margin: 0 auto;
  padding: 0 15px 35px;
}

.file-pocket-back {
  position: absolute;
  inset: 23% 0 0;
  border-radius: 0 11px 12px 12px;
  background: #bcafe3;
}

.file-pocket-back::before {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 32%;
  height: 8px;
  border-radius: 6px 8px 0 0;
  background: inherit;
}

.quote-slip {
  position: relative;
  padding: 18px 26px 19px;
  border: 1px solid #ded8cf;
  border-radius: 4px;
  background: #fffcf4;
  color: #342d36;
  box-shadow: 0 2px 5px #46355012;
  transform: rotate(-1.5deg);
  transform-origin: 45% 95%;
}

.quote-slip blockquote {
  margin: 0 0 5px;
  font: 400 clamp(21px, 1.85vw, 27px)/1.18 Georgia, serif;
  letter-spacing: -.035em;
}

.quote-slip blockquote span { display: table; position: relative; isolation: isolate; }
.quote-slip cite { font: italic 14px Georgia, serif; }

.quote-file figcaption {
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 18px;
  border: 1px solid #baa9db;
  border-radius: 5px 5px 11px 11px;
  background: linear-gradient(#e7dff5, #d9cdee);
  color: #433458;
  font-size: 13px;
  font-weight: 700;
}

.minute-window {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  font-variant-numeric: tabular-nums;
}
.minute-roll { position: relative; display: block; }

@media (max-width: 680px) {
  .capture-intro { grid-template-columns: 1fr; gap: 26px; }
  .quote-file { width: min(92%, 22rem); }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .motion-played .quote-slip {
    animation: file-passage 1.55s backwards;
  }
  .motion-played .quote-slip blockquote span::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: .12em -.08em .02em;
    background: #e2d4f5;
    opacity: 0;
    transform-origin: left;
    animation: select-passage .86s backwards;
  }
  .motion-played .quote-slip blockquote span:nth-child(2)::before { animation-delay: .18s; }
  .motion-played .quote-slip blockquote span:nth-child(3)::before { animation-delay: .34s; }
  .motion-ready .minute-roll::before, .motion-played .minute-roll::before {
    content: "29";
    position: absolute;
    inset: auto 0 100%;
  }
  .motion-ready .minute-roll { transform: translateY(100%); }
  .motion-ready .large-notification { visibility: hidden; }
  .motion-played .minute-roll { animation: turn-minute .48s cubic-bezier(.32, 0, .16, 1) .18s backwards; }
  .motion-played .large-notification { animation: deliver-reminder .5s cubic-bezier(.18, .78, .22, 1) .53s backwards; }

  @keyframes select-passage {
    0% { transform: scaleX(0); opacity: 1; }
    34%, 72% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
  }
  @keyframes file-passage {
    0%, 100% { transform: rotate(-1.5deg); }
    40%, 62% { transform: translate(0, -12px) rotate(1deg); animation-timing-function: cubic-bezier(.22, .7, .18, 1); }
  }
  @keyframes turn-minute { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes deliver-reminder {
    from { transform: translateY(-9px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
