.lead-story {
  --story-ink: #1c1d19;
  --story-paper: #eeede8;
  --story-sulfur: #d9ff45;
  --story-violet: #cec3f5;
  --story-display: var(--display, "Barlow Semi Condensed", "Arial Narrow", sans-serif);
  --story-sans: var(--sans, "Space Grotesk", Arial, sans-serif);
  --story-mono: var(--mono, "IBM Plex Mono", monospace);
  background: var(--story-paper);
  color: var(--story-ink);
  padding-block: clamp(72px, 8.3vw, 140px);
}
.lead-story__layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(48px, 7vw, 124px);
}
.lead-story__guide { min-width: 0; }
.lead-story__guide h2 {
  margin: -.065em 0 0;
  color: inherit;
  font: 650 clamp(64px, 7.8vw, 137px)/.86 var(--story-display);
  letter-spacing: -.055em;
}
.lead-story__intro, .lead-story__caption p {
  font: 400 clamp(16px, 1.22vw, 20px)/1.5 var(--story-sans);
  color: #494a42;
}
.lead-story__intro { max-width: 29ch; margin: clamp(19px, 2.4vw, 38px) 0; }
.lead-story__index { display: grid; max-width: 365px; }
.lead-story__index a {
  position: relative;
  display: flex;
  gap: clamp(14px, 1.6vw, 28px);
  align-items: baseline;
  padding: 12px 32px 12px 0;
  border-block-start: 1px solid #c5c5b9;
  color: #4e5047;
  text-decoration: none;
  font: 500 clamp(16px, 1.3vw, 22px)/1.3 var(--story-sans);
  transition: color 150ms ease;
}
.lead-story__index a:last-child { border-block-end: 1px solid #c5c5b9; }
.lead-story__index a span { font: 400 11px/1 var(--story-mono); }
.lead-story__index a::after {
  content: "↗";
  position: absolute;
  right: 4px;
  align-self: center;
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 180ms ease, transform 180ms var(--ease-out, cubic-bezier(.23, 1, .32, 1));
}
.lead-story__index a[aria-current], .lead-story__index a:focus-visible { color: var(--story-ink); }
.lead-story__index a[aria-current]::after, .lead-story__index a:focus-visible::after { opacity: 1; transform: none; }
.lead-story__index a[aria-current] { font-weight: 700; }
.lead-story__index a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .lead-story__index a:hover { color: var(--story-ink); }
  .lead-story__index a:hover::after { opacity: 1; transform: none; }
}
.lead-story__chapters { --chapter-gap: clamp(52px, 7.25vw, 118px); min-width: 0; display: grid; gap: var(--chapter-gap); }
.lead-story__chapter { min-width: 0; scroll-margin-block-start: 18px; }
.lead-story__caption { position: relative; padding-top: clamp(16px, 2vw, 26px); }
.lead-story__caption h3 {
  margin: 0;
  color: inherit;
  letter-spacing: -.04em;
  font: 600 clamp(28px, 3.05vw, 51px)/1.04 var(--story-display);
}
.lead-story__caption p { max-width: 52ch; margin: 9px 0 0; }
.lead-print {
  display: grid;
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1.48;
  isolation: isolate;
  overflow: hidden;
  color: var(--story-ink);
}
.lead-print *, .lead-print *::before, .lead-print *::after { box-sizing: border-box; }
.print-ad__mast, .print-ad__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65em;
  font: 500 clamp(10px, 1.85cqw, 16px)/1.2 var(--story-mono);
}
.lead-print--ad { background: var(--story-violet); }
.print-ad { position: absolute; inset: 0; overflow: hidden; color: #262039; }
.print-ad__mast { position: absolute; inset: 6% 5.5% auto; padding-bottom: 2.3%; border-bottom: 1px solid currentColor; }
.print-ad__headline {
  position: absolute;
  left: 5%;
  bottom: 22%;
  z-index: 1;
  font: 700 16.2cqw/.81 var(--story-display);
  letter-spacing: -.055em;
}
.print-ad__foot { position: absolute; inset: auto 5.5% 4.5%; padding-top: 2%; border-top: 1px solid currentColor; }
.print-ad__foot b { font: 600 1.3em/1 Arial, sans-serif; }
.print-ad__tap {
  position: absolute;
  width: 52%;
  height: 55%;
  top: 13%;
  right: -4%;
  color: #383047;
  transform: rotate(-12deg);
  transform-origin: 100% 50%;
}
.print-ad__tap::before {
  content: "";
  position: absolute;
  width: 102%;
  height: 39%;
  top: 49%;
  left: 4%;
  border-top: 4.5cqw solid currentColor;
  border-left: 4.5cqw solid currentColor;
  border-top-left-radius: 9cqw;
}
.print-ad__tap::after {
  content: "";
  position: absolute;
  width: 14%;
  height: 4%;
  left: 1.5%;
  top: 86%;
  background: currentColor;
}
.tap-stem { position: absolute; top: 23%; left: 52%; width: 8%; height: 40%; background: currentColor; }
.tap-stem::after { content: ""; position: absolute; width: 165%; height: 24%; left: -32.5%; bottom: 7%; border-radius: .4cqw; background: currentColor; }
.tap-wheel { position: absolute; top: 5%; left: 40%; width: 32%; aspect-ratio: 1; border: 1.3cqw solid; border-radius: 50%; }
.tap-wheel::before, .tap-wheel::after { content: ""; position: absolute; width: 100%; height: 1.1cqw; top: calc(50% - .55cqw); background: currentColor; transform: rotate(45deg); }
.tap-wheel::after { transform: rotate(-45deg); }
.tap-drop { position: absolute; top: 98%; left: 6%; width: 6%; aspect-ratio: 1; border-radius: 0 65% 60% 65%; background: currentColor; transform: rotate(55deg); }
.lead-print--reply { place-items: center; background: #4b4e43; }
@media (min-width: 801px) and (min-height: 620px) {
  .lead-story__guide { position: sticky; top: max(28px, calc(var(--header-height, 70px) + 25px)); }
}
@media (prefers-reduced-motion: reduce) {
  .lead-story__index a::after { transform: none; transition: opacity 125ms ease; }
}
@media (max-width: 800px) {
  .lead-story__layout { display: block; }
  .lead-story__guide { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-items: end; }
  .lead-story__guide h2 { font-size: clamp(60px, 11vw, 92px); }
  .lead-story__intro { margin: 0; align-self: end; }
  .lead-story__index { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0,1fr)); max-width: none; padding-top: 12px; margin-bottom: 25px; gap: 7px; }
  .lead-story__index a { display: grid; gap: 6px; padding: 10px 0; font-size: clamp(13px, 2.5vw, 17px); }
  .lead-story__index a:last-child { border-block-end: 0; }
  .lead-story__index a::after { content: none; }
  .lead-story__index a[aria-current] { border-color: var(--story-ink); }
}
@media (max-width: 470px) {
  .lead-story__guide { display: block; }
  .lead-story__intro { margin-top: 18px; }
  .lead-story__index { margin-top: 18px; margin-bottom: 20px; }
}
@media print {
  .lead-story__layout { display: block; }
  .lead-story__guide { position: static; }
  .lead-story__index { display: none; }
  .lead-story__chapter { break-inside: avoid; }
}

/* The ad keeps its printed composition while the call itself changes state. */
.print-ad__foot { gap: 2cqw; }
.ad-call { position: relative; display: grid; }
.ad-call__surface {
  display: grid;
  padding: .98cqw 2.1cqw;
  min-width: 27.5cqw;
  min-height: 5.6cqw;
  align-items: center;
  border-radius: 8cqw;
  background: #292435;
  color: #fbf9ee;
  font: 600 clamp(11px, 2.4cqw, 21px)/1.06 var(--story-sans);
}
.ad-call__surface > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5cqw;
  white-space: nowrap;
}
.ad-call__invite { opacity: 0; }
.ad-call__surface b { color: var(--story-sulfur); }
.ad-call__ripple, .ad-call__pointer {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.ad-call__ripple {
  width: 5.5cqw; aspect-ratio: 1; left: 64%; top: 12%;
  border: max(1px, .34cqw) solid var(--story-sulfur); border-radius: 50%;
}
.ad-call__pointer {
  left: calc(64% + 2.75cqw); top: calc(12% + 2.75cqw);
  width: 3.4cqw; height: 4.5cqw;
  filter: drop-shadow(1px 1px 0 #292435);
}
.ad-call__pointer::before {
  content: ""; display: block; width: 100%; height: 100%;
  background: var(--story-sulfur);
  clip-path: polygon(0 0, 96% 56%, 58% 65%, 77% 93%, 59% 100%, 39% 70%, 10% 94%);
}
.lead-print--reply { grid-template-columns: minmax(0, 1fr); }
.sms-slip {
  width: 82%;
  position: relative;
  padding: 2.7cqw 4.1cqw 3.1cqw;
  color: #2b2d25; background: #f4efdf;
  transform: rotate(-2deg);
  box-shadow: .8cqw 1.2cqw 0 #32352d, 1cqw 2.4cqw 2.3cqw #20221966;
}
.sms-slip::after {
  content: ""; position: absolute; inset: calc(100% - 1px) 0 auto;
  height: 1cqw;
  background: linear-gradient(135deg, #f4efdf 45%, transparent 46%) 0 0 / 1cqw 1cqw repeat-x;
}
.sms-slip__mast {
  display: flex; justify-content: space-between; align-items: center;
  font: 400 clamp(10px, 1.75cqw, 16px)/1.1 var(--story-mono);
}
.sms-slip__title {
  padding: .8cqw 0 1.6cqw; border-bottom: 1px solid #9b998b;
  font: 600 7.7cqw/.99 var(--story-display); letter-spacing: -.045em;
}
.sms-message {
  width: max-content; max-width: 89%; margin-top: 2.1cqw;
  font: 500 clamp(13px, 3.25cqw, 28px)/1.16 var(--story-sans); letter-spacing: -.035em;
}
.sms-message__from {
  display: block; margin: 0 0 .65cqw;
  font: 400 clamp(9px, 1.65cqw, 14px)/1 var(--story-mono); letter-spacing: 0;
}
.sms-message p { margin: 0; padding: 1.15cqw 1.8cqw 1.4cqw; }
.sms-message--desk p {
  color: #f4f1e5; background: #35392f;
  border-radius: 1.4cqw 1.4cqw 1.4cqw 0;
}
.sms-message--jamie { margin-left: auto; text-align: right; }
.sms-message--jamie p {
  color: #29321b; background: var(--story-sulfur);
  border-radius: 1.4cqw 1.4cqw 0 1.4cqw;
}
@media (prefers-reduced-motion: no-preference) {
  .lead-print[data-cued]:not([data-play]) .ad-call__invite { opacity: 1; }
  .lead-print[data-cued]:not([data-play]) :is(.ad-call__placed, .sms-message) { opacity: 0; }
  [data-play] .ad-call__pointer { animation: ad-tap-pointer 1.65s var(--ease-out) both; }
  [data-play] .ad-call__ripple { animation: ad-tap-ripple 520ms 860ms var(--ease-out) both; }
  [data-play] .ad-call__surface { animation: ad-tap-press 240ms 860ms var(--ease-out); }
  [data-play] .ad-call__invite { animation: ad-call-invite 130ms 935ms linear both; }
  [data-play] .ad-call__placed { animation: ad-call-placed 190ms 1s var(--ease-out) both; }
  [data-play] .sms-message--desk { animation: sms-arrival 490ms 180ms var(--ease-out) both; }
  [data-play] .sms-message--jamie { animation: sms-arrival 490ms 1.53s var(--ease-out) both; }
  @keyframes ad-tap-pointer {
    0%, 10% { opacity: 0; transform: translate(-12cqw, -8cqw) rotate(-15deg); }
    20% { opacity: 1; }
    52% { opacity: 1; transform: translate(0, 0); }
    58% { opacity: 1; transform: translate(.2cqw, .25cqw) scale(.90); }
    72% { opacity: 1; transform: translate(0, 0); }
    100% { opacity: 0; transform: translate(1.4cqw, 1.85cqw); }
  }
  @keyframes ad-tap-ripple {
    0% { opacity: 0; transform: scale(.84); }
    14% { opacity: 1; }
    100% { opacity: 0; transform: scale(2.8); }
  }
  @keyframes ad-tap-press { 0%, 100% { transform: none; } 44% { transform: scale(.955); } }
  @keyframes ad-call-invite { from { opacity: 1; } to { opacity: 0; } }
  @keyframes ad-call-placed { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sms-arrival { from { opacity: 0; transform: translateY(2.2cqw); } to { opacity: 1; transform: none; } }
}

.lead-print--visit { display: grid; place-items: center; background: var(--story-sulfur); }
.dispatch-sheet {
  width: 78%;
  position: relative;
  padding: 2.4cqw 3.4cqw 4cqw;
  color: #24271e;
  background: #f5f2e6;
  transform: rotate(1.5deg);
  box-shadow: .65cqw 1.05cqw 0 #adb18a, .7cqw 1.45cqw 0 #444831;
  border-top: 1.7cqw solid #23271f;
}
.dispatch-sheet__head, .dispatch-week, .job-ledger__head, .job-ledger__key, .job-ledger__math {
  font: 500 clamp(9px, 1.9cqw, 16px)/1.25 var(--story-mono);
}
.dispatch-sheet__head, .dispatch-slot, .job-ledger__head, .job-ledger__key, .job-ledger__math {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
}
.dispatch-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2.2cqw;
  border-block: 1px solid #999b84;
  text-align: center;
}
.dispatch-week span { position: relative; isolation: isolate; padding: 1.1cqw 0; }
.dispatch-week span + span { border-left: 1px solid #b4b5a1; }
.dispatch-week__selected::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--story-sulfur);
}
.dispatch-sheet__day {
  position: relative;
  padding-block: 1cqw 2.1cqw;
  font: 700 22cqw/.9 var(--story-display);
  letter-spacing: -.065em;
}
.dispatch-stamp {
  position: absolute;
  right: .7cqw;
  top: 42%;
  transform: rotate(-9deg);
  color: #344b35;
  border: .4cqw double currentColor;
  outline: .2cqw solid currentColor;
  outline-offset: .4cqw;
  padding: .55cqw 1.4cqw;
  font: 600 3.25cqw/1 var(--story-display);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.dispatch-slot {
  border-block: 1px solid #80816c;
  isolation: isolate;
  position: relative;
  padding: 1.4cqw 1.6cqw;
}
.dispatch-slot::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ded7f1;
  border-left: .65cqw solid #595078;
  content: "";
  transform-origin: left center;
}
.dispatch-slot__time { font: 650 7.6cqw/.9 var(--story-display); letter-spacing: -.04em; }
.dispatch-slot__time small { font-size: .5em; }
.dispatch-slot__name { font: 600 clamp(12px, 3.35cqw, 33px)/1 var(--story-sans); letter-spacing: -.04em; }
.lead-print--report { color: #f4f3e7; background: #25291f; }
.job-ledger {
  position: absolute;
  inset: 7% 6%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
}
.job-ledger__head { align-self: start; padding-bottom: 1.8cqw; border-bottom: 1px solid #87917b; }
.job-ledger__amount { display: flex; align-items: baseline; gap: 2.6cqw; }
.job-ledger__amount strong { font: 650 21.5cqw/.9 var(--story-display); letter-spacing: -.07em; color: var(--story-sulfur); }
.job-ledger__amount span { font: 500 4.2cqw/1 var(--story-sans); letter-spacing: -.04em; }
.job-ledger__key { align-items: baseline; }
.job-ledger__attribution { display: inline-flex; gap: .7cqw; padding-right: 3.4cqw; align-items: center; color: var(--story-sulfur); }
.job-ledger__attribution i { width: 1.2cqw; height: 1.2cqw; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(.18cqw) rotate(45deg); }
.job-tallies { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .9cqw; margin: 1.1cqw .6cqw 2.5cqw; }
.job-tallies > i { display: block; height: 4.8cqw; background: var(--story-violet); transform: skewX(-14deg); }
.job-tallies > .job-tallies__jamie { background: var(--story-sulfur); }
.job-ledger__math { border-top: 1px solid #87917b; padding-top: 2cqw; }
.job-ledger__math b { font: normal 3.4cqw/1 var(--story-mono); }

@media (prefers-reduced-motion: no-preference) {
  .lead-print[data-cued]:not([data-play]) :is(.dispatch-stamp,.dispatch-slot__name,.job-tallies__jamie,.job-ledger__attribution,.job-ledger__amount) { opacity: 0; }
  .lead-print[data-cued]:not([data-play]) .dispatch-week__selected::before,
  .lead-print[data-cued]:not([data-play]) .dispatch-slot::before { opacity: 0; }

  .lead-print[data-play] .dispatch-week__selected::before { animation: dispatch-choose 450ms 180ms var(--ease-out) backwards; }
  .lead-print[data-play] .dispatch-slot::before { animation: dispatch-book 520ms 640ms var(--ease-out) backwards; }
  .lead-print[data-play] .dispatch-slot__name { animation: ledger-appear 350ms 870ms var(--ease-out) backwards; }
  .lead-print[data-play] .dispatch-stamp { animation: dispatch-confirm 510ms 1280ms var(--ease-out) backwards; }
  .lead-print[data-play] .job-tallies__jamie { animation: ledger-tally 500ms 260ms var(--ease-out) backwards; }
  .lead-print[data-play] .job-ledger__attribution { animation: ledger-appear 350ms 600ms var(--ease-out) backwards; }
  .lead-print[data-play] .job-ledger__amount { animation: ledger-appear 550ms 1120ms var(--ease-out) backwards; }
  @keyframes dispatch-choose {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @keyframes dispatch-book {
    from { transform: scaleX(.04); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @keyframes dispatch-confirm {
    0% { transform: translateY(-2cqw) rotate(-17deg) scale(1.3); opacity: 0; }
    55% { transform: translateY(.18cqw) rotate(-8deg) scale(.96); opacity: 1; }
    100% { transform: rotate(-9deg); }
  }
  @keyframes ledger-tally {
    from { transform: translate(1cqw,-2.8cqw) skewX(-14deg); opacity: 0; }
    to { transform: skewX(-14deg); opacity: 1; }
  }
  @keyframes ledger-appear {
    from { transform: translateY(.85cqw); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* The signal leaves each illustration at its edge, clear of the reading column. */
.chapter-wire {
  position: absolute;
  top: -18px;
  right: 0;
  transform: translateX(100%);
  width: min(35px, var(--gutter) * .72);
  height: calc(100% + var(--chapter-gap) + 36px);
  overflow: visible;
  pointer-events: none;
  fill: none;
}
.chapter-wire path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.chapter-wire__guide { stroke: #c4c4b5; stroke-width: 1.3px; }
.chapter-wire__ink { stroke: #62664b; stroke-width: 2.1px; }
@media (prefers-reduced-motion: no-preference) {
  .chapter-wire__ink { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .chapter-wire[data-pass] .chapter-wire__ink { stroke-dashoffset: 0; transition: stroke-dashoffset 840ms var(--ease-in-out); }
}
@media print { .chapter-wire { display: none; } }
