/*
 * Problems, variant scene (site/snippets/problems/scene.php): the home page's
 * "The problem" (2026-11-16). Linked
 * in the body right before the section (peanut_page_css() in the snippet), so
 * it never holds the first paint. Layer: blocks. Tokens only.
 *
 * .pscene.is-live (public/assets/js/problems-scene.js, 64rem and up, motion
 * allowed): the content box sticks under the header while the runway after
 * it (one and a half screens) scrolls past, and the script moves the drawing.
 * Without it (phones, reduced motion, Save-Data, very low memory, no
 * JavaScript) the section is static: the finished drawing on wide screens,
 * a small still above each problem on phones, every row as it is.
 */

@layer blocks {
  /* ---------- The line style of the drawings: thin ink strokes (1.5px at any
     size), rounded joins, flat fills from the brand tokens ---------- */

  .pscene__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .pscene__svg :is(.l, .s) {
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .pscene__svg .l {
    fill: none;
  }

  .pscene__svg .f-white { fill: var(--color-white); }
  .pscene__svg .f-paper { fill: var(--color-paper); }
  .pscene__svg .f-mint { fill: var(--color-brand); }
  .pscene__svg .f-coral { fill: var(--color-accent-2); }
  .pscene__svg .f-butter { fill: var(--color-butter); }
  .pscene__svg .f-gold { fill: var(--color-gold-soft); }
  .pscene__svg .f-ink { fill: var(--color-ink); }

  .pscene__svg text {
    font-family: var(--font-body);
    font-weight: 600;
    fill: var(--color-ink);
  }

  /* ---------- The section ---------- */

  .pscene__grid {
    display: grid;
    gap: var(--space-5);
  }

  .pscene__title {
    margin: 0;
  }

  .pscene__intro {
    max-width: 40rem;
    margin: var(--space-3) 0 0;
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  .pscene__rows {
    display: grid;
    gap: var(--space-1);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
  }

  /* The closing line (the redesign page's pull quote): Trirong, a 1px gold soft rule */
  .pscene__outro {
    max-width: 40rem;
    margin: var(--space-4) 0 0;
    padding-inline-start: var(--space-3);
    border-inline-start: 1px solid var(--color-gold-soft);
    font-family: var(--font-heading);
    font-size: var(--step-1);
    font-weight: var(--weight-display);
    line-height: var(--leading-tight);
  }

  .pscene__row {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0 var(--space-2);
    align-items: baseline;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
  }

  .pscene__row.is-active {
    background: var(--color-mint-pale);
  }

  .pscene__still {
    grid-column: 1 / -1;
    max-width: 20rem;
    margin-block-end: var(--space-2);
  }

  .pscene__num {
    font-family: var(--font-heading);
    font-size: var(--step-3);
    font-weight: var(--weight-heading);
    line-height: 1;
  }

  .pscene__name {
    margin: 0;
    font-size: var(--step-2);
  }

  .pscene__text {
    margin: var(--space-1) 0 0;
    font-size: var(--text-body);
    line-height: var(--leading-body);
  }

  .pscene__art,
  .pscene__runway {
    display: none;
  }

  /* ---------- Scene drawing "own": each problem's own drawing ---------- */

  .pscene--own .pscene__still {
    max-width: 22rem;
  }

  /* beside the rows (live only): the drawings in one cell, the current one showing */
  .pscene__own {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 400ms var(--ease-out);
  }

  .pscene__own.is-active {
    opacity: 1;
  }

  /* the finished drawing: only the local pages */
  .pscene__svg--live :is(.pscene__tangle, .pscene__rival, .pscene__stamp, .pscene__copy) {
    opacity: 0;
  }

  @media (min-width: 64rem) {
    .pscene__grid {
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
      gap: var(--space-6);
      align-items: center;
    }

    .pscene__still {
      display: none;
    }

    .pscene__art {
      display: block;
    }

    /* own drawings, not live (reduced motion, no script): every row with its drawing above it, nothing beside them */
    .pscene--own:not(.is-live) .pscene__still {
      display: block;
    }

    .pscene--own:not(.is-live) .pscene__art {
      display: none;
    }

    /* (bulk fixes A1, 2026-11-29) the whole width: the eyebrow, heading and
       intro centered, the rows side by side under them, two by two (three
       across for three or six rows), each with its drawing over its words */
    .pscene--own:not(.is-live) .pscene__grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .pscene--own:not(.is-live) .pscene__words {
      display: grid;
      justify-items: center;
      text-align: center;
    }

    .pscene--own:not(.is-live) :is(.pscene__title, .pscene__intro) {
      max-width: 46rem;
      text-wrap: balance;
    }

    .pscene--own:not(.is-live) .pscene__rows {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 var(--space-6);
      width: 100%;
      margin-block-start: var(--space-6);
      text-align: start;
    }

    .pscene--own:not(.is-live) .pscene__rows:has(> :nth-child(3):last-child),
    .pscene--own:not(.is-live) .pscene__rows:has(> :nth-child(6):last-child) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* the rows side by side share two lines: the drawings, then the numbers
       and titles, which start level (bulk fixes A2) */
    .pscene--own:not(.is-live) .pscene__row {
      grid-row: span 2;
      grid-template-rows: subgrid;
      padding-block-end: var(--space-5);
    }

    .pscene--own:not(.is-live) .pscene__still {
      align-self: end;
    }

    .pscene--own:not(.is-live) .pscene__still {
      width: 100%;
    }

    .pscene--own:not(.is-live) .pscene__outro {
      text-align: start;
    }

    .pscene--own.is-live .pscene__art {
      display: grid;
    }

    /* ---------- Live: the box sticks under the header for one and a half
       screens of scrolling ---------- */

    .pscene.is-live .pscene__stick {
      position: sticky;
      top: var(--header-height);
    }

    .pscene.is-live .pscene__grid {
      min-height: calc(100svh - var(--header-height));
      align-content: center;
    }

    .pscene.is-live .pscene__runway {
      display: block;
      height: 150vh;
    }
  }

  /* Short screens: the stuck box still fits under the header, and only the
     current problem shows its sentence */
  @media (prefers-reduced-motion: reduce) {
    .pscene__own {
      transition: none;
    }
  }

  @media (min-width: 64rem) and (max-height: 52rem) {
    .pscene.is-live .pscene__grid {
      row-gap: var(--space-2);
    }

    .pscene.is-live .pscene__title {
      font-size: var(--step-4);
    }

    .pscene.is-live .pscene__intro {
      margin-block-start: var(--space-2);
      font-size: 0.875rem;
      line-height: 1.6;
    }

    .pscene.is-live .pscene__rows {
      margin-block-start: var(--space-2);
    }

    .pscene.is-live .pscene__outro {
      margin-block-start: var(--space-2);
      font-size: var(--step-0);
    }

    .pscene.is-live .pscene__row {
      padding-block: var(--space-1);
    }

    .pscene.is-live .pscene__name {
      font-size: var(--step-1);
    }

    .pscene.is-live .pscene__row:not(.is-active) .pscene__text {
      display: none;
    }
  }

  /* Print (and PDF captures): no sticking and no runway, so the next section
     follows the problems directly instead of after a screen and a half of
     blank space (owner, 2026-11-22) */
  @media print {
    .pscene.is-live .pscene__stick {
      position: static;
    }

    .pscene.is-live .pscene__grid {
      min-height: 0;
    }

    .pscene.is-live .pscene__runway {
      display: none;
    }
  }
}

/* ---------- The med spa page's own drawings (Scene drawing "own";
   site/snippets/diagrams/problem-spa-concerns.php, -onecal.php, -twins.php,
   2026-11-19): their parts beyond the shared drawing classes in blocks.css.
   The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.pms-ground, .pms-feed, .pms-trail, .pms-chev, .pms-equals) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the ground line every drawing stands on */
  .diagram .pms-ground {
    opacity: 0.2;
  }

  .diagram .pms-feed {
    opacity: 0.55;
  }

  .diagram .pms-trail {
    stroke-dasharray: 3 5;
    opacity: 0.55;
  }

  .diagram .pms-chev {
    stroke-width: 1.2;
    opacity: 0.45;
  }

  /* the treatment menu runs on past the bottom */
  .diagram .pms-fade {
    opacity: 0.45;
  }

  .diagram .pms-grey {
    opacity: 0.55;
  }

  .diagram .pms-strong {
    font-weight: 600;
  }

  .diagram .pms-tag {
    font-size: 9px;
    font-weight: 600;
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A med spa drawing waits until it is seen: beside the rows, when its row
       becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .pms-drawing :is(.pb-step, .dg-cursor, .pms-drop, .pms-mark),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .pms-drawing :is(.pb-step, .dg-cursor, .pms-drop, .pms-mark),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .pms-drawing :is(.pb-step, .dg-cursor, .pms-drop, .pms-mark) {
      animation-play-state: paused;
    }

    /* 01: the cursor leaves the menu and reaches for the first chip */
    html[data-fx~="diagrams"] .diagram--problem .pms-reach {
      animation: pms-reach 1500ms var(--ease-out) 1700ms both;
    }

    /* 02: Location two's booking drops onto Location one's calendar */
    html[data-fx~="diagrams"] .diagram--problem .pms-drop {
      animation: pms-drop 900ms var(--ease-out) 1600ms both;
    }

    html[data-fx~="diagrams"] .diagram--problem .pms-mark {
      animation: pms-in 300ms var(--ease-out) 2500ms both;
    }
  }

  @keyframes pms-reach {
    0% {
      opacity: 0;
      transform: translate(-150px, -24px);
    }

    30% {
      opacity: 1;
    }

    80% {
      transform: translate(4px, 2px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pms-in {
    from {
      opacity: 0;
    }
  }

  @keyframes pms-drop {
    0% {
      opacity: 0;
      transform: translate(74px, -126px);
    }

    25% {
      opacity: 1;
    }

    80% {
      transform: translate(0, 3px);
    }

    100% {
      transform: none;
    }
  }
}

/* ---------- The therapist page's own drawings (Scene drawing "own";
   site/snippets/diagrams/problem-tp-directory.php, -inbox.php,
   -template.php, 2026-11-20): their parts beyond the shared drawing classes
   in blocks.css. The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.ptp-ground, .ptp-sep) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
  }

  /* the ground line every drawing stands on */
  .diagram .ptp-ground {
    opacity: 0.2;
  }

  /* the thin rules between the inbox's messages */
  .diagram .ptp-sep {
    stroke-width: 1;
    opacity: 0.18;
  }

  /* the directory's identical cards, the headshot slots in them */
  .diagram .ptp-card {
    stroke: var(--color-ink);
    stroke-width: 1.2;
  }

  .diagram .ptp-head {
    fill: var(--color-ink);
    opacity: 0.18;
  }

  /* the inbox's last messages, as the week runs on */
  .diagram .ptp-fade {
    opacity: 0.45;
  }

  .diagram .ptp-grey {
    opacity: 0.55;
  }

  .diagram .ptp-strong {
    font-weight: 600;
  }

  .diagram .ptp-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A therapist drawing waits until it is seen: beside the rows, when its
       row becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .ptp-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .ptp-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .ptp-drawing :is(.pb-step, .dg-cursor) {
      animation-play-state: paused;
    }

    /* 01: the cursor drifts across the identical cards and settles on
       someone else's */
    html[data-fx~="diagrams"] .diagram--problem .ptp-drift {
      animation: ptp-drift 1600ms var(--ease-out) 1800ms both;
    }
  }

  @keyframes ptp-drift {
    0% {
      opacity: 0;
      transform: translate(-190px, -70px);
    }

    25% {
      opacity: 1;
    }

    55% {
      transform: translate(-96px, -40px);
    }

    100% {
      transform: none;
    }
  }
}

/* ---------- The doula page's own drawings (Scene drawing "own";
   site/snippets/diagrams/problem-dl-question.php, -feed.php, -fit.php,
   2026-11-20): their parts beyond the shared drawing classes in blocks.css.
   The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.pdl-ground, .pdl-line, .pdl-sep, .pdl-trail, .pdl-lead) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the ground line every drawing stands on */
  .diagram .pdl-ground {
    opacity: 0.2;
  }

  .diagram .pdl-sep {
    stroke-width: 1;
    opacity: 0.18;
  }

  .diagram :is(.pdl-trail, .pdl-lead) {
    stroke-dasharray: 3 5;
    opacity: 0.55;
  }

  .diagram .pdl-card {
    stroke: var(--color-ink);
    stroke-width: 1.2;
  }

  .diagram .pdl-photo {
    fill: var(--color-ink);
    fill-opacity: 0.2;
  }

  .diagram .pdl-heart {
    fill: var(--color-accent-2);
    stroke: var(--color-ink);
    stroke-width: 1.2;
    stroke-linejoin: round;
  }

  .diagram .pdl-fade {
    opacity: 0.45;
  }

  .diagram .pdl-grey {
    opacity: 0.55;
  }

  .diagram .pdl-strong {
    font-weight: 600;
  }

  /* the searches typed in the phones: small enough to stay in their pills */
  .diagram :is(.pdl-query, .pdl-tag) {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .pdl-hello {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: var(--weight-heading);
    letter-spacing: 0;
  }

  .diagram .pdl-on-ink {
    fill: var(--color-white);
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A doula drawing waits until it is seen: beside the rows, when its row
       becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .pdl-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .pdl-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .pdl-drawing :is(.pb-step, .dg-cursor) {
      animation-play-state: paused;
    }

    /* 01: the cursor scrolls down the site, looking for the answer */
    html[data-fx~="diagrams"] .diagram--problem .pdl-search {
      animation: pdl-search 1800ms var(--ease-out) 1900ms both;
    }

    /* 02: the cursor comes to the empty results and waits there */
    html[data-fx~="diagrams"] .diagram--problem .pdl-hover {
      animation: pdl-hover 1500ms var(--ease-out) 1900ms both;
    }

    /* 03: the cursor leaves the tags for the Reply button */
    html[data-fx~="diagrams"] .diagram--problem .pdl-reach {
      animation: pdl-reach 1400ms var(--ease-out) 2000ms both;
    }
  }

  @keyframes pdl-search {
    0% {
      opacity: 0;
      transform: translate(-20px, -150px);
    }

    20% {
      opacity: 1;
    }

    55% {
      transform: translate(-10px, -70px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pdl-hover {
    0% {
      opacity: 0;
      transform: translate(30px, 110px);
    }

    30% {
      opacity: 1;
    }

    100% {
      transform: none;
    }
  }

  @keyframes pdl-reach {
    0% {
      opacity: 0;
      transform: translate(190px, -60px);
    }

    30% {
      opacity: 1;
    }

    100% {
      transform: none;
    }
  }
}

/* ---------- The midwife page's own drawings (Scene drawing "own";
   site/snippets/diagrams/problem-mw-timeline.php, -questions.php, -tone.php,
   2026-11-20): their parts beyond the shared drawing classes in blocks.css.
   The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.pmw-ground, .pmw-line, .pmw-tick, .pmw-trail, .pmw-cross, .pmw-check, .pmw-squiggle) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the ground line every drawing stands on */
  .diagram .pmw-ground {
    opacity: 0.2;
  }

  .diagram .pmw-line {
    opacity: 0.55;
  }

  .diagram .pmw-trail {
    stroke-dasharray: 3 5;
    opacity: 0.55;
  }

  .diagram .pmw-check {
    stroke-width: 1.8;
  }

  /* the hospital site: cold, flat and grey */
  .diagram .pmw-cold {
    fill: var(--color-ink);
    opacity: 0.7;
  }

  .diagram .pmw-coldtext {
    fill: var(--color-white);
    opacity: 0.6;
  }

  .diagram .pmw-coldbox {
    fill: var(--color-ink);
    fill-opacity: 0.1;
    stroke: var(--color-ink);
    stroke-width: 1;
    stroke-opacity: 0.35;
  }

  .diagram .pmw-coldmark {
    opacity: 0.6;
  }

  /* the hobby site: a clip-art heart, a looping hello */
  .diagram .pmw-heart {
    fill: var(--color-accent-2);
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linejoin: round;
  }

  .diagram .pmw-squiggle {
    opacity: 0.55;
  }

  .diagram .pmw-hello {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: var(--weight-heading);
    font-style: italic;
    letter-spacing: 0;
  }

  /* the consultation call's second round of the same questions */
  .diagram .pmw-fade {
    opacity: 0.45;
  }

  .diagram .pmw-grey {
    opacity: 0.55;
  }

  .diagram .pmw-strong {
    font-weight: 600;
  }

  .diagram .pmw-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .pmw-small {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0;
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A midwife drawing waits until it is seen: beside the rows, when its
       row becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .pmw-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .pmw-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .pmw-drawing :is(.pb-step, .dg-cursor) {
      animation-play-state: paused;
    }

    /* 01: the cursor travels the pregnancy and reaches your site at the end */
    html[data-fx~="diagrams"] .diagram--problem .pmw-late {
      animation: pmw-late 1800ms var(--ease-out) 1900ms both;
    }

    /* 02: the cursor slides from the first questions down to the repeat */
    html[data-fx~="diagrams"] .diagram--problem .pmw-repeat {
      animation: pmw-repeat 1500ms var(--ease-out) 1900ms both;
    }

    /* 03: the cursor tries one site, then the other, and stops between them */
    html[data-fx~="diagrams"] .diagram--problem .pmw-torn {
      animation: pmw-torn 2200ms var(--ease-out) 1900ms both;
    }
  }

  @keyframes pmw-late {
    0% {
      opacity: 0;
      transform: translate(-210px, 40px);
    }

    20% {
      opacity: 1;
    }

    60% {
      transform: translate(-90px, 46px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pmw-repeat {
    0% {
      opacity: 0;
      transform: translate(-150px, -70px);
    }

    30% {
      opacity: 1;
    }

    100% {
      transform: none;
    }
  }

  @keyframes pmw-torn {
    0% {
      opacity: 0;
      transform: translate(-90px, 20px);
    }

    20% {
      opacity: 1;
      transform: translate(-90px, 20px);
    }

    55% {
      transform: translate(90px, -40px);
    }

    100% {
      transform: none;
    }
  }
}

/* ---------- The coaches page's own drawings (Scene drawing "own";
   site/snippets/diagrams/problem-co-referral.php, -offers.php,
   -portrait.php, 2026-11-21): their parts beyond the shared drawing classes
   in blocks.css. The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.pco-ground, .pco-line, .pco-sep, .pco-fold, .pco-check, .pco-warm, .pco-cool, .pco-trail, .pco-ring, .pco-arrow, .pco-track) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the ground line every drawing stands on */
  .diagram .pco-ground {
    opacity: 0.2;
  }

  .diagram .pco-line {
    opacity: 0.55;
  }

  .diagram .pco-sep {
    stroke-width: 1;
    opacity: 0.18;
  }

  /* the end of the site's first screen */
  .diagram .pco-fold {
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.35;
  }

  .diagram .pco-check {
    stroke-width: 1.8;
  }

  /* the referral: warm on its way in, a cold grey trail on its way out */
  .diagram .pco-warm {
    stroke-width: 2;
  }

  .diagram :is(.pco-cool, .pco-trail) {
    stroke-dasharray: 3 5;
    opacity: 0.55;
  }

  .diagram .pco-ring {
    opacity: 0.4;
  }

  .diagram .pco-arrow {
    opacity: 0.7;
  }

  /* the scroll bar's track; its thumb is the ink pill on it */
  .diagram .pco-track {
    stroke-width: 6;
    opacity: 0.1;
  }

  .diagram .pco-fade {
    opacity: 0.45;
  }

  .diagram .pco-grey {
    opacity: 0.55;
  }

  .diagram .pco-strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .pco-say {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .pco-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A coaches drawing waits until it is seen: beside the rows, when its
       row becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .pco-drawing :is(.pb-step, .dg-cursor, .pco-thumb),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .pco-drawing :is(.pb-step, .dg-cursor, .pco-thumb),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .pco-drawing :is(.pb-step, .dg-cursor, .pco-thumb) {
      animation-play-state: paused;
    }

    /* 01: the cursor follows the referral in, then turns away */
    html[data-fx~="diagrams"] .diagram--problem .pco-away {
      animation: pco-away 1800ms var(--ease-out) 1900ms both;
    }

    /* 02: the cursor goes from card to card and stops between them */
    html[data-fx~="diagrams"] .diagram--problem .pco-hesitate {
      animation: pco-hesitate 2400ms var(--ease-out) 1900ms both;
    }

    /* 03: the cursor drags the scroll bar all the way down to About me */
    html[data-fx~="diagrams"] .diagram--problem .pco-scroll {
      animation: pco-scroll 1800ms var(--ease-out) 1900ms both;
    }

    html[data-fx~="diagrams"] .diagram--problem .pco-thumb {
      animation: pco-thumb 1800ms var(--ease-out) 1900ms both;
    }
  }

  @keyframes pco-away {
    0% {
      opacity: 0;
      transform: translate(22px, -126px);
    }

    20% {
      opacity: 1;
      transform: translate(22px, -126px);
    }

    50% {
      transform: translate(30px, -96px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pco-hesitate {
    0% {
      opacity: 0;
      transform: translate(-125px, -16px);
    }

    15% {
      opacity: 1;
      transform: translate(-125px, -16px);
    }

    40% {
      transform: translate(89px, -16px);
    }

    70% {
      transform: translate(-18px, 76px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pco-scroll {
    0% {
      opacity: 0;
      transform: translate(0, -180px);
    }

    20% {
      opacity: 1;
      transform: translate(0, -180px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pco-thumb {
    0%,
    20% {
      transform: translate(0, -180px);
    }

    100% {
      transform: none;
    }
  }
}

/* ---------- The healthcare practice page's own drawings (Scene drawing
   "own"; site/snippets/diagrams/problem-hc-term.php, -insurance.php,
   -hours.php, 2026-11-21): their parts beyond the shared drawing classes in
   blocks.css. The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.phc-ground, .phc-line, .phc-sep, .phc-horizon, .phc-mid, .phc-trail) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the ground line every drawing stands on */
  .diagram .phc-ground {
    opacity: 0.2;
  }

  .diagram .phc-line {
    opacity: 0.55;
  }

  .diagram .phc-sep {
    stroke-width: 1;
    opacity: 0.18;
  }

  /* the long road: the horizon it disappears into, its dashed middle line */
  .diagram .phc-horizon {
    stroke-width: 1;
    opacity: 0.25;
  }

  .diagram .phc-road {
    stroke-linejoin: round;
  }

  .diagram .phc-mid {
    stroke-width: 1.2;
    stroke-dasharray: 6 7;
    opacity: 0.45;
  }

  .diagram .phc-trail {
    stroke-dasharray: 3 5;
    opacity: 0.55;
  }

  /* where the insurance answer should be: empty dashed lines */
  .diagram .phc-blank {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.2;
    stroke-dasharray: 3 4;
    opacity: 0.5;
  }

  /* the night: a dark band of sky, a butter moon, soft gold stars */
  .diagram .phc-sky {
    fill: var(--color-ink);
  }

  .diagram .phc-moon {
    fill: var(--color-butter);
  }

  .diagram .phc-star {
    fill: var(--color-gold-soft);
  }

  .diagram .phc-on-ink {
    fill: var(--color-white);
  }

  .diagram .phc-fade {
    opacity: 0.45;
  }

  .diagram .phc-strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .phc-say {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .phc-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .phc-small {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0;
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A healthcare drawing waits until it is seen: beside the rows, when its
       row becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .phc-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .phc-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .phc-drawing :is(.pb-step, .dg-cursor) {
      animation-play-state: paused;
    }

    /* 01: the cursor leaves the unfamiliar term for the start of the road */
    html[data-fx~="diagrams"] .diagram--problem .phc-start {
      animation: phc-start 1600ms var(--ease-out) 1900ms both;
    }

    /* 02: the cursor goes from the question to the page and down to the blank */
    html[data-fx~="diagrams"] .diagram--problem .phc-scan {
      animation: phc-scan 2000ms var(--ease-out) 1900ms both;
    }

    /* 03: the cursor runs down the empty page and off it */
    html[data-fx~="diagrams"] .diagram--problem .phc-scroll {
      animation: phc-scroll 2000ms var(--ease-out) 1900ms both;
    }
  }

  @keyframes phc-start {
    0% {
      opacity: 0;
      transform: translate(-108px, -136px);
    }

    20% {
      opacity: 1;
      transform: translate(-108px, -136px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes phc-scan {
    0% {
      opacity: 0;
      transform: translate(-168px, -112px);
    }

    15% {
      opacity: 1;
      transform: translate(-168px, -112px);
    }

    50% {
      transform: translate(-48px, -82px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes phc-scroll {
    0% {
      opacity: 0;
      transform: translate(-90px, -130px);
    }

    15% {
      opacity: 1;
      transform: translate(-90px, -130px);
    }

    55% {
      transform: translate(-60px, 20px);
    }

    100% {
      transform: none;
    }
  }
}

/* ---------- The nonprofit page's own drawings (Scene drawing "own";
   site/snippets/diagrams/problem-np2-wall.php, -donate.php, -season.php,
   2026-11-21): their parts beyond the shared drawing classes in blocks.css.
   The static drawing is the finished one. ---------- */

@layer blocks {
  .diagram :is(.pnp-ground, .pnp-line, .pnp-sep, .pnp-trail, .pnp-ring) {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the ground line every drawing stands on */
  .diagram .pnp-ground {
    opacity: 0.2;
  }

  .diagram .pnp-line {
    opacity: 0.55;
  }

  .diagram .pnp-sep {
    stroke-width: 1;
    opacity: 0.18;
  }

  /* the visitors' way in, the cursor's hunt between the links */
  .diagram .pnp-trail {
    stroke-dasharray: 3 5;
    opacity: 0.55;
  }

  .diagram .pnp-ring {
    opacity: 0.4;
  }

  /* the calendar's today: a firmer ring */
  .diagram .pnp-today {
    opacity: 0.8;
  }

  /* last season's card: its photo and its lines faded */
  .diagram .pnp-stale {
    opacity: 0.5;
  }

  /* the calendar's old page, flipped back over the rings */
  .diagram .pnp-back {
    opacity: 0.6;
  }

  .diagram .pnp-fade {
    opacity: 0.45;
  }

  .diagram .pnp-grey {
    opacity: 0.6;
  }

  .diagram .pnp-strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .pnp-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .diagram .pnp-small {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0;
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A nonprofit drawing waits until it is seen: beside the rows, when its
       row becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .pnp-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .pnp-drawing :is(.pb-step, .dg-cursor),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .pnp-drawing :is(.pb-step, .dg-cursor) {
      animation-play-state: paused;
    }

    /* 01: the cursor wanders down the wall of text and stops in the middle */
    html[data-fx~="diagrams"] .diagram--problem .pnp-scan {
      animation: pnp-scan 2200ms var(--ease-out) 1900ms both;
    }

    /* 02: the cursor goes from Support Us to each link and stops between them */
    html[data-fx~="diagrams"] .diagram--problem .pnp-hunt {
      animation: pnp-hunt 2600ms var(--ease-out) 1900ms both;
    }

    /* 03: the cursor leaves the calendar for last season's Sign up */
    html[data-fx~="diagrams"] .diagram--problem .pnp-return {
      animation: pnp-return 2000ms var(--ease-out) 1900ms both;
    }
  }

  @keyframes pnp-scan {
    0% {
      opacity: 0;
      transform: translate(-28px, -78px);
    }

    15% {
      opacity: 1;
      transform: translate(-28px, -78px);
    }

    45% {
      transform: translate(28px, -46px);
    }

    75% {
      transform: translate(-28px, -20px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pnp-hunt {
    0% {
      opacity: 0;
      transform: translate(-38px, -76px);
    }

    12% {
      opacity: 1;
      transform: translate(-38px, -76px);
    }

    32% {
      transform: translate(28px, -45px);
    }

    55% {
      transform: translate(28px, -13px);
    }

    78% {
      transform: translate(28px, 19px);
    }

    100% {
      transform: none;
    }
  }

  @keyframes pnp-return {
    0% {
      opacity: 0;
      transform: translate(192px, -116px);
    }

    15% {
      opacity: 1;
      transform: translate(192px, -116px);
    }

    40% {
      transform: translate(184px, -68px);
    }

    100% {
      transform: none;
    }
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* A Network drawing waits until it is seen (2026-11-23): beside the rows,
       when its row becomes current; on phones, when its still scrolls into view */
    html.js-motion .pscene--own[data-play]:not(.is-in) .pscene__own .pnw-drawing :is(.pb-step, .pb-pill),
    html.js-motion .pscene--own .pscene__own:not(.is-active) .pnw-drawing :is(.pb-step, .pb-pill),
    html.js-motion .pscene--own .pscene__still[data-play]:not(.is-in) .pnw-drawing :is(.pb-step, .pb-pill) {
      animation-play-state: paused;
    }
  }
}
