/* All chapters share one composition. Each anchor reserves the same space
   whether its dots are holding a shape or travelling to the next one. */
.chapter .story {
  --story-columns: minmax(0, 1fr);
  --story-pad-y: clamp(1.75rem, 5.5svh, 5rem);
}
.chapter .story-pin { row-gap: clamp(1.25rem, 5svh, 4rem); }
.chapter .story-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(1rem, 4vw, 4rem);
}
.chapter .story-meta > :is(.kicker, h2, .meta-note) { grid-column: 1; }
.chapter .story-meta h2 {
  max-width: 45ch;
  margin-top: .4rem;
  font-size: clamp(1.2rem, 1.8vw, 1.95rem);
  font-weight: 530;
  line-height: 1.12;
  letter-spacing: -.042em;
  text-wrap: pretty;
}
.chapter .story-meta .meta-note {
  margin-top: .45rem;
  max-width: 64ch;
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.4;
}
.chapter .story-controls:not(:empty) { grid-area: 1 / 2 / span 3 / 3; margin: 0; }
.chapter .story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  align-self: stretch;
  column-gap: clamp(1.5rem, 5vw, 6rem);
  padding: 0;
}
.chapter .graphic-copy { grid-area: 1 / 1; min-width: 0; }
.chapter .glyph-anchor {
  grid-area: 1 / 2;
  width: min(100%, 57svh, 35rem);
  aspect-ratio: 1;
  place-self: center;
  pointer-events: none;
}
.chapter .story-panel::before, .chapter .story-panel::after { content: none; }
.chapter .story-panel h3 {
  font-size: clamp(2.85rem, 5.6vw, 6.9rem);
  font-weight: 635;
  line-height: .98;
  letter-spacing: -.062em;
}
.chapter .opening-thought h3 {
  margin-block: .85rem;
  font-size: clamp(2.2rem, 4.1vw, 5.1rem);
}
.insights .story-panel h3 { font-size: clamp(3.9rem, 6.5vw, 8rem); }
.chapter .graphic-copy > p:not(.eyebrow) { max-width: 53ch; }
.chapter .graphic-copy > .takeaway { color: var(--paper); }
.chapter .graphic-copy > .sale-example {
  color: var(--mint);
  font-weight: 550;
}
.chapter .structure-list { max-width: 51ch; }
.chapter .structure-list > div { padding: 0; border: 0; }
.chapter .structure-list > div + div { margin-top: .8rem; }
.chapter .structure-list dt { font-weight: 600; }
.chapter .structure-list dd { margin-top: .12rem; line-height: 1.42; }
.chapter .insight-values {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: .7rem clamp(1.2rem, 3vw, 3rem);
  margin: 1.15rem 0 0;
  padding: 0;
  border: 0;
}
.chapter .insight-values::before, .chapter .insight-values::after { content: none; }
.chapter .insight-values dt { font-size: .8rem; line-height: 1.25; }
.chapter .insight-values dd {
  margin-top: .18rem;
  font-size: clamp(1.38rem, 2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.delivery-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1.3rem;
  max-width: 35rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}
.delivery-steps li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  line-height: 1.35;
  font-size: clamp(.9rem, 1.05vw, 1.05rem);
}
.delivery-steps li::before {
  content: "";
  width: .32rem;
  height: .32rem;
  align-self: flex-start;
  margin-top: .51em;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
}
.commercial .story-panel h3 { font-size: clamp(2.75rem, 5.15vw, 6.5rem); }
.chapter .phase-terms { margin-top: 1.3rem; border: 0; padding: 0; }

@media (max-width: 47.5rem) {
  .chapter {
    --stage-art-size: min(53vw, 21svh, 12.75rem);
    --stage-row-gap: clamp(.75rem, 2.25svh, 1.4rem);
  }
  .chapter .story { --story-pad-y-mobile: clamp(1.15rem, 3.25svh, 2.25rem); }
  .chapter .story-pin { row-gap: clamp(.65rem, 1.8svh, 1.2rem); }
  .chapter .story.is-staged .story-pin {
    /* Keep the chapter heading at the same top edge. Give any extra height
       to the artwork/copy area, which stays centered in the remaining space. */
    grid-template-rows: max-content minmax(min-content, 1fr);
    align-content: stretch;
    padding-block-start: max(var(--story-pad-y-mobile), env(safe-area-inset-top));
    padding-block-end: max(var(--story-pad-y-mobile), env(safe-area-inset-bottom));
  }
  .chapter .story-meta {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .chapter .story-meta h2 {
    max-width: 36ch;
    margin-top: .3rem;
    font-size: clamp(1.15rem, 4.6vw, 1.65rem);
    text-wrap: balance;
  }
  .chapter .story-meta .meta-note {
    font-size: .875rem;
    margin-top: .35rem;
  }
  .chapter .story-controls:not(:empty) {
    grid-area: auto;
    width: 100%;
    flex-wrap: nowrap;
    column-gap: .38rem;
    margin-top: .45rem;
  }
  .chapter .story-turn { flex: none; }
  .chapter .story-segments { flex: 1; margin-inline: .65rem .4rem; }
  .chapter .story-segment { flex: 1; }
  .chapter .story-counter { flex: none; }
  .chapter .story-panel {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: var(--stage-row-gap);
  }
  .chapter .glyph-anchor {
    grid-area: 1 / 1;
    width: var(--stage-art-size);
  }
  .chapter .graphic-copy { grid-area: 2 / 1; text-align: start; }
  .chapter .story-panel h3 { font-size: clamp(2.4rem, 9.8vw, 4.45rem); }
  .chapter .opening-thought h3 { font-size: clamp(1.85rem, 6.7vw, 3.15rem); margin-block: .55rem; }
  .insights .story-panel h3 { font-size: clamp(3.25rem, 12vw, 5.25rem); }
  .commercial .story-panel h3 { font-size: clamp(2.1rem, 8.8vw, 3.8rem); }
  .structure .story-panel h3 { font-size: clamp(2rem, 8.2vw, 3.4rem); }
  .chapter .structure-list > div + div { margin-top: .56rem; }
  .chapter .structure-list dt { font-size: 1rem; }
  .chapter .structure-list dd { font-size: .95rem; }
  .chapter .insight-values, .chapter .phase-terms, .delivery-steps { margin-top: .85rem; }
  .chapter .insight-values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
  .chapter .insight-values > div {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-rows: 1fr auto;
    align-self: stretch;
  }
  .chapter .phase-terms { display: grid; gap: .35rem; }
  .chapter .phase-terms > div {
    display: grid;
    grid-template-columns: var(--term-columns);
    gap: .8rem;
    align-items: baseline;
  }
  .chapter .phase-terms dd { margin: 0; text-align: end; }
}
@media (min-width: 35rem) and (max-width: 47.5rem) and (max-height: 32rem) {
  .chapter .story.is-flow .story-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, .45fr);
    gap: 1.5rem;
    align-items: start;
  }
  .chapter .story.is-flow .graphic-copy { grid-area: 1 / 1; }
  .chapter .story.is-flow .glyph-anchor {
    grid-area: 1 / 2;
    width: min(100%, 9rem);
  }
}

.no-js .chapter .story-panel { display: block; }
.no-js .glyph-anchor { display: none; }
@media print {
  .chapter .glyph-anchor { display: none; }
  .chapter .story-panel { display: block; }
}
