/* White: composed typography with one precise typing sequence. */
.white .topbar { display: flex; justify-content: center; }
.white .story-top > .eyebrow { text-transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.white .scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
}
.white .scroll-reveal.is-visible { opacity: 1; transform: none; }
.white .animated-challenge {
  align-items: stretch;
  background: #f6f5f1;
}
.white .animated-challenge .problem-copy {
  flex: 0 0 43%;
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
}
.white .animated-challenge > .scene { width: 57%; }
.challenge-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.white .challenge-heading .eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}
.type-stage { display: grid; flex: 1 0 auto; }
.type-scene { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.type-scene.is-current { visibility: visible; }
.white .animated-challenge .type-headline {
  display: grid;
  align-content: start;
  min-height: 3.4em;
  margin: 0 0 18px;
  font: 650 clamp(25px, 2.05vw, 32px)/1.16 "Segoe UI", Arial, sans-serif;
  letter-spacing: -.045em;
  color: #1e2c2b;
}
.type-headline > span { grid-area: 1 / 1; white-space: pre-line; }
.type-reserve { visibility: hidden; }
.type-dialogue {
  display: grid;
  align-content: start;
  min-height: 112px;
  margin: 0;
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.65;
  letter-spacing: -.018em;
  color: #515a57;
}
.type-dialogue > span { grid-area: 1 / 1; }
.type-lead { font-weight: 600; color: #293835; }
.type-answer { margin-left: .5em; }
.type-response { color: #9e3631; }
.type-prefix { color: #515a57; }
.type-scene .is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: .85em;
  margin-left: 2px;
  background: var(--red);
  vertical-align: -.03em;
  animation: white-caret 800ms step-end infinite;
}
.animated-challenge[data-running="false"] .is-typing::after { animation-play-state: paused; }
@keyframes white-caret { 50% { opacity: 0; } }

/* Paperwork, with portrait and landscape sheets rather than stamp boxes. */
.document-stack {
  position: relative;
  flex: 0 0 166px;
  height: 166px;
  width: 100%;
  max-width: 340px;
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
  isolation: isolate;
}
.document-sheet {
  --sheet: #fffef9;
  --sheet-ink: #666856;
  position: absolute;
  overflow: hidden;
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 1px solid #dadbd1;
  border-top: 3px solid var(--sheet-ink);
  box-shadow: 0 3px 5px #28372e09, 0 9px 18px #28372e06;
}
.document-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: linear-gradient(45deg, #0000000b 49%, #ffffffd9 51%);
}
.document-label {
  position: absolute;
  inset: 16px 8px auto;
  font: 500 clamp(10px, .78vw, 11px)/1.3 "Segoe UI", Arial, sans-serif;
  letter-spacing: -.01em;
}
.document-lines {
  position: absolute;
  inset: 54px 9px 12px;
  opacity: .15;
  background: repeating-linear-gradient(to bottom, var(--sheet-ink) 0 1px, transparent 1px 6px);
}
.sheet-1 { left: 1%; top: 8px; width: 31%; height: 110px; transform: rotate(-7deg); }
.sheet-2 { left: 33%; top: 0; width: 29%; height: 100px; transform: rotate(3deg); --sheet: #e9efeb; --sheet-ink: #516c62; }
.sheet-3 { left: 65%; top: 12px; width: 31%; height: 104px; transform: rotate(8deg); --sheet: #f3e5df; --sheet-ink: #984d3b; }
.sheet-4 { left: 2%; top: 78px; width: 54%; height: 61px; transform: rotate(-3deg); --sheet: #e7eced; --sheet-ink: #50656e; }
.sheet-5 { left: 57%; top: 86px; width: 42%; height: 65px; transform: rotate(4deg); --sheet: #f1ebda; --sheet-ink: #796837; }
.sheet-6 { left: 31%; top: 131px; width: 62%; height: 53px; transform: rotate(-3deg); }
.sheet-4 .document-label, .sheet-5 .document-label, .sheet-6 .document-label { top: 12px; }
.sheet-4 .document-lines, .sheet-5 .document-lines, .sheet-6 .document-lines { top: 37px; bottom: 7px; }
#tim .document-stack { flex-basis: 190px; height: 190px; }

/* V2: a restrained composition, with a separate response area. */
.white .animated-challenge[data-layout="v2"] .type-headline {
  padding-left: 13px;
  border-left: 2px solid #a74036;
  letter-spacing: -.04em;
}
[data-layout="v2"] .type-dialogue { position: relative; padding-top: 2px; }
[data-layout="v2"] .type-lead {
  display: block;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: #161717;
  letter-spacing: .055em;
  text-transform: uppercase;
}
[data-layout="v2"] .type-answer {
  display: block;
  width: 88%;
  margin: 12px 0 0 auto;
  padding-left: 12px;
  border-left: 1px solid #cbcfc6;
  font: 400 clamp(19px, 1.5vw, 22px)/1.3 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
[data-layout="v2"] .document-stack { transform: translateX(2px); }

@media (min-width: 701px) {
  .white .animated-challenge { height: auto; min-height: 540px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .white .animated-challenge .problem-copy { padding-inline: 18px; }
  .white .animated-challenge .type-headline { font-size: 25px; min-height: 3.5em; }
  .type-dialogue { font-size: 15px; min-height: 125px; }
  .document-label { font-size: 10px; inset-inline: 6px; }
  [data-layout="v2"] .type-answer { font-size: 18px; }
}
@media (max-width: 700px) {
  .white .animated-challenge .problem-copy { flex: 0 0 auto; width: 100%; padding: 18px 22px 8px; }
  .white .animated-challenge > .scene { width: 100%; min-height: 110px; }
  .challenge-heading { margin-bottom: 16px; }
  .white .animated-challenge .type-headline { font-size: 27px; min-height: 2.4em; margin-bottom: 14px; }
  .type-dialogue { font-size: 16px; min-height: 105px; line-height: 1.5; }
  .document-stack { width: 86%; max-width: 300px; margin-top: 6px; flex-basis: 144px; height: 144px; }
  .document-sheet { scale: .9; transform-origin: top left; }
  .sheet-4 { top: 67px; }
  .sheet-5 { top: 75px; }
  .sheet-6 { top: 114px; }
  #tim .document-stack { flex-basis: 164px; height: 164px; }
  [data-layout="v2"] .type-answer { font-size: 20px; margin-top: 9px; }
}
@media (max-width: 380px) {
  .white .animated-challenge .problem-copy { padding-inline: 16px; }
  .white .animated-challenge .type-headline { font-size: 25px; }
  .type-dialogue { min-height: 120px; }
  .document-stack { width: 95%; }
}
@media (prefers-reduced-motion: reduce) {
  .white .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .white .animated-challenge { height: auto; max-height: none; }
  .white .animated-challenge .problem-copy { flex-basis: 43%; }
  .type-stage { display: block; }
  .type-scene { visibility: visible; margin-bottom: 28px; }
  .white .animated-challenge .type-headline { min-height: 0; }
  .type-dialogue { min-height: 0; }
  .type-scene .is-typing::after { display: none; animation: none; }
  .white .animated-challenge > .scene { height: auto; align-self: center; }
}
