/* Phone layouts for the program, supply, cost, and expansion diagrams. */
@media (max-width: 720px) {
  #program h2,
  #program h3,
  #supply h2,
  #supply h3,
  #automation h2,
  #automation h3,
  #europe h2,
  #europe h3 {
    letter-spacing: -0.025em;
    line-height: 1.08;
  }

  #program .program-footnote,
  #program .scale-story-outcome,
  #supply .supply-lane-heading p,
  #supply .change-control > p:last-child,
  #cost .buyer-value-heading > p:last-child,
  #automation .context-note,
  #automation .volume-note {
    font-size: 13px;
    line-height: 1.55;
  }

  #program .program-layout h2,
  #program .scale-story h3,
  #program .strut-proof-heading h3 {
    max-width: 19ch;
    font-size: clamp(30px, 8.8vw, 38px);
  }

  #program .program-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    margin-top: 30px;
    padding-bottom: 64px;
  }

  #program .program-dial-face strong {
    font-size: clamp(46px, 14vw, 65px);
  }

  #program .program-dial-face span {
    font-size: 11px;
    letter-spacing: 0;
  }

  #program .program-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 16px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  #program .program-flow::before,
  #program .program-flow::after,
  #program .scale-story-flow::before,
  #program .scale-story-flow::after {
    display: none;
  }

  #program .program-flow li:nth-child(n) {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 80px;
    align-items: center;
    justify-items: start;
    gap: 16px;
    padding-block: 12px;
    text-align: left;
  }

  #program .program-flow svg {
    width: 56px;
    height: 56px;
    padding: 12px;
  }

  #program .program-flow span {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  #program .scale-story-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
    margin: 32px 0 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  #program .scale-pin {
    width: 64px;
  }

  #program .scale-story-flow li > strong {
    font-size: 13px;
  }

  #program .scale-story-flow figure {
    height: 145px;
    margin-top: 12px;
  }

  #program .strut-proof {
    width: 100%;
    margin-inline: 0;
    padding: 28px 18px 0;
    gap: 24px;
    border-radius: 24px 0 0;
  }

  #program .strut-proof-instrument {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  #program .strut-speed,
  #program .strut-cost,
  #program .strut-status {
    min-width: 0;
    min-height: 210px;
    padding: 20px 16px 30px;
  }

  #program .strut-proof-instrument span,
  #program .strut-proof-instrument small {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  #program .strut-proof-instrument strong {
    margin-top: 0;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.025em;
  }

  #program .instrument-arc {
    width: 135px;
    margin-top: 16px;
  }

  #program .strut-status > svg {
    width: 64px;
    height: 64px;
    margin: 16px 0;
  }

  #program .strut-machine {
    height: 230px;
    margin: 0 -18px;
  }

  #supply .supply-compare .supply-lane {
    padding: 24px 16px;
  }

  #supply .supply-compare .supply-lane-heading h3 {
    font-size: 25px;
  }

  #supply .supply-compare .supply-lane ol {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
    overflow: visible;
  }

  #supply .supply-compare .supply-lane li {
    flex-direction: row;
    justify-content: start;
    min-width: 0;
    min-height: 58px;
    gap: 14px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    border: 0 !important;
  }

  #supply .supply-compare .lane-art {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    padding: 5px;
  }

  #supply .change-control-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    counter-reset: revision-step;
  }

  #supply .change-control-flow span {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 0;
    border: 0 !important;
    font-size: 13px;
    line-height: 1.4;
    counter-increment: revision-step;
  }

  #supply .change-control-flow span::before {
    content: counter(revision-step, decimal-leading-zero);
    color: var(--muted);
    font: 700 12px "Geist Mono", monospace;
  }

  #cost .buyer-value-heading h3 {
    font-size: clamp(30px, 8.5vw, 37px);
  }

  #cost .cost-buckets li {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 12px;
  }

  #cost .cost-buckets strong {
    font-size: 15px;
  }

  #cost .cost-buckets span,
  #cost .cost-stack-outcome span {
    font-size: 13px;
    line-height: 1.5;
  }

  #cost .cost-columns {
    gap: clamp(28px, 9vw, 62px);
    padding-inline: 12px;
  }

  #cost .buyer-value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  #cost .buyer-value-grid article:nth-child(n) {
    min-width: 0;
    min-height: 174px;
    padding: 22px 94px 22px 18px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  #cost .buyer-value-grid article > span,
  #cost .buyer-value-grid p {
    font-size: 13px;
    line-height: 1.5;
  }

  #cost .buyer-value-grid h3 {
    font-size: 23px;
    margin-block: 12px;
  }

  #cost .buyer-value-grid article.is-active h3 {
    transform: none;
  }

  #cost .cost-step-art {
    width: 70px;
    height: 70px;
    right: 12px;
    bottom: 20px;
  }

  #automation .volume-platform {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px;
  }

  #automation .volume-platform > * {
    min-width: 0;
  }

  #automation .volume-platform-copy h3 {
    max-width: 18ch;
    font-size: clamp(29px, 8vw, 35px);
  }

  #automation .volume-platform-copy > p:last-of-type,
  #automation .volume-platform-copy li {
    font-size: 14px;
    line-height: 1.55;
  }

  #automation .volume-instruments {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  #automation .volume-instruments article {
    min-height: 0;
    padding: 20px;
  }

  #automation .volume-instruments strong {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  #automation .volume-instruments span {
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0;
  }

  #europe .europe-heading h2 {
    max-width: 18ch;
    font-size: clamp(30px, 8.8vw, 38px);
  }

  #europe .europe-goal {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 20px 18px;
  }

  #europe .europe-goal span,
  #europe .europe-path article > span {
    font-size: 13px;
  }

  #europe .europe-goal strong {
    font-size: 21px;
    line-height: 1.3;
  }

  #europe .europe-path article {
    min-height: 0;
    padding: 24px 18px;
  }

  #europe .europe-path article > span {
    margin-top: 20px;
  }

  #europe .europe-path h3 {
    font-size: 28px;
  }

  #europe .europe-path > i {
    min-height: 60px;
    transform: none;
    font-size: 0;
  }

  #europe .europe-path > i::before {
    content: "↓";
    font-size: 32px;
  }
}
