/* /learn-patient-experience, the section page for "the patient experience".
   Loaded after site.css by learn-patient-experience.html only. One question
   (what does this feel like), answered in the order a patient lives it, and
   every drawing on the page is a measure of time: the first year on one
   ruler in the hero, a clock for the forty-five minutes in the chair, the
   two early courses side by side, a ruler of the year the reader fills by scrolling, two
   chairs and the view from the second one, fifty-eight years laid out to
   scale, four doors to the articles, five claims crossed off. Every part
   holds its end state with scripts off, reduced motion and print. */

/* On the root, because scroll-padding-top (below) is read there. */
html:has(body.px-page) {
  --px-max: 1240px;
  --px-gut: clamp(20px, 4vw, 56px);
  --hc-nav-h: 64px;            /* fallback; scripts/learn-patient-experience.js sets the real header height */
  --hc-bar-h: 52px;
  --px-ease: cubic-bezier(.16, 1, .3, 1);
  --px-tint: color-mix(in srgb, var(--accent-blue) 14%, var(--white));
  /* every jump, anchor and Tab stop lands below the header and the bar */
  scroll-padding-top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 20px);
}
body.px-page { background: var(--white); }

/* colors_and_type.css caps every bare <p> at 42rem and underlines every <a> */
.px-page main { overflow-x: clip; }
.px-page main p { max-width: none; }
.px-page main a:not(.btn) { border-bottom: 0; }
.px-page main :is(h1, h2, h3) { text-wrap: wrap; margin: 0; }
.px-page main :is(h1, h2, h3) em { color: var(--accent-blue); font-style: italic; }
/* a heading that has to wrap breaks where the styling changes */
.px-page .h-lead, .px-page main :is(h1, h2) > em { display: inline-block; }
.px-page main h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.85rem); line-height: 1.1; font-weight: 300;
  margin: 0 0 clamp(24px, 3.2vw, 44px);
}
.px-page main figure { margin: 0; }
.px-wrap { max-width: var(--px-max); margin: 0 auto; padding: 0 var(--px-gut); }

/* a part that receives focus after a jump is not itself a control */
.px-page main [tabindex="-1"]:focus { outline: none; }
.px-page main :is(a, summary):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 3px; }
.px-page .px-comp :is(a, summary):focus-visible { outline-color: var(--accent-ice); }

/* a link inside running text: dotted, so it reads as a reference */
.px-ref {
  color: var(--accent-blue-hover); text-decoration: underline; text-decoration-style: dotted;
  text-decoration-color: var(--accent-blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  padding-block: 6px; transition: color 200ms, text-decoration-color 200ms;
}
.px-ref:hover { color: var(--accent-blue); text-decoration-style: solid; }
.px-comp .px-ref { color: var(--white); text-decoration-color: var(--accent-ice); }
.px-comp .px-ref:hover { color: var(--accent-ice); }

/* the arrow on a button leans the way it points */
.px-arr { display: inline-block; transition: transform 320ms var(--px-ease); }
a:hover > .px-arr, a:focus-visible > .px-arr { transform: translateX(4px); }
a:hover > .px-arr--down, a:focus-visible > .px-arr--down { transform: translateY(4px); }

/* the old heading of a part, kept as the line that opens it */
.px-page main .px-lead { margin: 0 0 clamp(18px, 2.2vw, 28px); font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.7vw, 2.4rem); line-height: 1.18; color: var(--ink); }
.px-lead em { display: inline-block; font-style: italic; color: var(--accent-blue); }

/* a figure and the sentence it measures */
.px-stat, .px-clock figcaption, .px-year figcaption { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); }
.px-stat strong, .px-clock figcaption strong, .px-year figcaption strong {
  display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--accent-blue); font-variant-numeric: lining-nums;
}
.px-stat span, .px-clock figcaption span { display: block; margin-top: 4px; font-size: 14px; }

/* ============ HERO: assembles once, in reading order ============
   Pure CSS, from the first paint: the question rises in two halves, the
   answer follows, then the year is ruled out from left to right, each call
   landing on the line as the line reaches it. */
.px-hero { padding: clamp(20px, 3.4vw, 40px) 0 clamp(48px, 6vw, 80px); }
.px-hero__h1 { font-size: clamp(2.2rem, 3.9vw, 3.5rem); line-height: 1.06; font-weight: 300; }
.px-hero__h1 > * { animation: px-rise 900ms var(--px-ease) both; }
.px-hero__h1 > em { animation-delay: 140ms; }
.px-hero__row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: clamp(24px, 3.4vw, 44px);
}
.px-hero__row > * { animation: px-rise 900ms var(--px-ease) both; }
.px-hero__answer {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.3rem, 1.95vw, 1.72rem); line-height: 1.36; color: var(--ink);
  animation-delay: 260ms;
}
.px-hero__side { animation-delay: 380ms; }
.px-hero__side p { margin: 0; font-size: clamp(1.05rem, 1.25vw, 1.16rem); line-height: 1.7; color: var(--ink-soft); }
.px-hero__side em { font-style: italic; color: var(--ink); }
.px-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 2.4vw, 28px); }

/* the year, to scale: the chair is one day wide, then the calls */
.px-page main .px-year { margin-top: clamp(40px, 4.6vw, 60px); }
.px-year__ruler { position: relative; height: 122px; margin: 0 7px 0 28px; }
.px-year__line { position: absolute; left: 0; right: 0; top: 68px; height: 2px; background: var(--border-strong); }
/* a tick a month */
.px-year__line::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 12px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px calc(100% / 12)); }
.px-year__line i { position: absolute; inset: 0; background: var(--accent-blue); transform-origin: left; animation: px-rule 1800ms 700ms cubic-bezier(.3, 0, .2, 1) both; }
.px-year__marks { list-style: none; margin: 0; padding: 0; }
.px-year__marks li {
  position: absolute; left: var(--x, 0%); top: 62px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--accent-blue); box-shadow: 0 0 0 4px var(--white);
  animation: px-pop 520ms var(--px-ease) both; animation-delay: calc(700ms + var(--t, 0) * 1800ms);
}
.px-year__marks li:nth-child(2) { --x: 1.92%; --t: .12; }
.px-year__marks li:nth-child(3) { --x: 8.33%; --t: .24; }
.px-year__marks li:nth-child(4) { --x: 25%; --t: .42; }
.px-year__marks li:nth-child(5) { --x: 50%; --t: .64; }
.px-year__marks li:nth-child(6) { --x: 100%; --t: 1; }
.px-year__marks span { position: absolute; left: 0; top: 26px; white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.px-year__marks li:last-child span { left: auto; right: 0; }
.px-year__day svg {
  position: absolute; left: 50%; bottom: 22px; width: 56px; height: 56px; margin-left: -28px; padding: 11px; box-sizing: border-box;
  border-radius: 50%; background: var(--ink); overflow: visible;
}
.px-year__day svg path { fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.px-year__marks .px-year__day span { left: 40px; top: -50px; font-weight: 600; }
.px-year figcaption { animation: px-rise 800ms 2400ms var(--px-ease) both; }
.px-year figcaption strong { display: inline; margin: 0 8px 0 0; font-size: clamp(1.5rem, 2vw, 1.8rem); }

/* Contents: the page's own headings, as links. */
.px-toc { position: relative; margin-top: clamp(36px, 5vw, 60px); }
.px-toc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform-origin: left; animation: px-rule 1100ms 620ms var(--px-ease) both;
}
.px-toc__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px);
}
.px-toc__list li { animation: px-rise 800ms var(--px-ease) both; animation-delay: calc(760ms + var(--i, 0) * 70ms); }
.px-toc__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 15px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: clamp(1.12rem, 1.45vw, 1.3rem); line-height: 1.25; color: var(--ink);
  transition: color 220ms, padding 320ms var(--px-ease);
}
.px-toc__list a::after {
  content: "\2193"; flex: none; font-family: var(--font-body); font-size: 18px; color: var(--accent-blue);
  opacity: .35; transform: translateY(-4px); transition: transform 320ms var(--px-ease), opacity 220ms;
}
.px-toc__list a:hover, .px-toc__list a:focus-visible { color: var(--accent-blue); padding-left: 8px; }
.px-toc__list a:hover::after, .px-toc__list a:focus-visible::after { opacity: 1; transform: translateY(2px); }

@keyframes px-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes px-rule { from { transform: scaleX(0); } }
@keyframes px-rule-y { from { transform: scaleY(0); } }
@keyframes px-pop { 0% { opacity: 0; scale: .3; } 60% { opacity: 1; scale: 1.25; } 100% { scale: 1; } }
@keyframes px-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes px-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ============ CONTENTS BAR (follows the reader) ============ */
.hc-bar {
  /* under the phone menu's sheet (55) and backdrop (50), over the page */
  position: fixed; left: 0; right: 0; top: var(--hc-nav-h); z-index: 49; height: var(--hc-bar-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 260ms, transform 360ms var(--px-ease), visibility 0s 360ms;
}
.hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--px-ease); }
body.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.hc-bar__track {
  max-width: var(--px-max); margin: 0 auto; padding: 0 var(--px-gut);
  height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 28px;
}
.hc-bar__track::-webkit-scrollbar { display: none; }
.hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; transition: color 200ms;
}
.hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left; transition: transform 360ms var(--px-ease);
}
.hc-bar__track a:hover, .hc-bar__track a[aria-current] { color: var(--ink); }
.hc-bar__track a:hover::after { transform: scaleX(.3); }
.hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.px-page .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.hc-bar__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--hc-p, 0));
}

/* running text, the same in every part */
.px-day__body p, .px-route p, .px-weeks__after, .px-arc__text p, .px-comp__body p, .px-hist__text {
  margin: 0 0 1.1em; font-size: clamp(1.05rem, 1.25vw, 1.16rem); line-height: 1.7; color: var(--ink-soft);
}
.px-page main :is(.px-day__body, .px-route, .px-arc__text, .px-comp__body) p:last-child { margin-bottom: 0; }
.px-day__body strong, .px-weeks__after strong, .px-arc__text strong, .px-hist__text strong { font-weight: 600; color: var(--ink); }

/* ============ THE DAY: a clock, and forty-five of its minutes ============ */
.px-day { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 112px); border-top: 1px solid var(--border); }
.px-day__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.px-clock { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }
.px-clock__svg { display: block; width: min(100%, 300px); height: auto; overflow: visible; }
.px-clock__svg :is(path, circle) { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.px-clock__svg .px-clock__sweep { stroke: var(--px-tint); stroke-width: 92; stroke-linecap: butt; stroke-dasharray: 45 60; transform: rotate(-90deg); transform-origin: 110px 110px; }
.px-clock__svg .px-clock__ticks { stroke: var(--ink-muted); stroke-width: 1.6; }
.px-clock__svg .px-clock__hand { stroke: var(--accent-blue); stroke-width: 4; transform: rotate(270deg); transform-origin: 110px 110px; }
.px-clock__svg .px-clock__pin { fill: var(--accent-blue); stroke: var(--white); stroke-width: 2; }
.px-clock figcaption { margin-top: 20px; }
/* the six things the day is built around; each is marked as the hand passes it */
.px-beat { border-radius: 3px; box-shadow: 0 0 0 3px transparent; transition: background-color 260ms, box-shadow 260ms, color 260ms; }
.px-beat.is-on { background: var(--px-tint); box-shadow: 0 0 0 3px var(--px-tint); color: var(--ink); }
.px-day__body .px-bring { margin-top: clamp(20px, 2.4vw, 28px); padding-top: clamp(16px, 2vw, 22px); border-top: 1px solid var(--border); color: var(--ink); }

/* ============ FOLDS (native details) ============
   Every fold ships open. On a phone the script closes the ones a reader can
   skip and the summary becomes a 44px "Read more"; on a desk there is no
   summary and nothing is hidden. In-page search and print open them. */
.px-fold > summary { display: none; list-style: none; }
.px-fold > summary::-webkit-details-marker { display: none; }
.px-fold__less, .px-fold[open] > summary .px-fold__more { display: none; }
.px-fold[open] > summary .px-fold__less { display: inline; }
.px-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--px-ease); }
.px-fold[open] > summary .px-chev { transform: rotate(180deg); }
@keyframes px-unfold { from { opacity: 0; transform: translateY(-8px); } }

/* ============ THE FIRST WEEKS: the one tinted band; two courses, side by side ============ */
.px-weeks { padding: clamp(64px, 8vw, 112px) 0; background: var(--accent-wash); }
.px-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.px-route { padding: 0 clamp(24px, 4vw, 64px) 0 0; }
.px-route + .px-route { padding: 0 0 0 clamp(24px, 4vw, 64px); border-left: 1px solid var(--border-strong); }
.px-route__ic { display: block; width: 64px; height: 64px; overflow: visible; }
.px-route__ic path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.px-route__ic .px-drop { fill: var(--accent-blue); stroke: none; }
.px-page .px-route h3 { margin: 18px 0 12px; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.18; font-weight: 300; }
.px-route em { font-style: italic; color: var(--ink); }
.px-weeks__after { margin: clamp(36px, 4.6vw, 64px) 0 0; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--border-strong); color: var(--ink); }

/* ============ THE FIRST YEAR: a ruler, drawn to scale, that the reader fills by scrolling ============ */
.px-arc { padding: clamp(64px, 8vw, 112px) 0; }
.px-page .px-arc h2 { margin-bottom: clamp(10px, 1.4vw, 16px); }
/* --px-lab: the column the names stand in; --px-over: room past month twelve for "and beyond" */
.px-page main .px-ruler { --px-lab: clamp(150px, 17vw, 230px); --px-over: 44px; margin-top: clamp(24px, 3vw, 44px); }
.px-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.8vw, 22px); }
.px-phases li { display: grid; grid-template-columns: var(--px-lab) minmax(0, 1fr); align-items: center; padding-right: var(--px-over); font-size: 15px; line-height: 1.4; color: var(--ink-muted); transition: color 300ms; }
.px-phases strong { grid-column: 1; display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; color: var(--ink); transition: color 300ms; }
.px-phases span { grid-column: 1; }
/* one stretch of the year: --a and --b are where it starts and ends, as a share of twelve months */
.px-phases i { grid-column: 2; grid-row: 1 / span 2; position: relative; height: 18px; margin-left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); border-radius: 3px; background: var(--border); }
.px-phases i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent-blue); clip-path: inset(0 calc((1 - clamp(0, (var(--p, 1) * 100 - var(--a)) / (var(--b) - var(--a)), 1)) * 100%) 0 0); }
.px-phases li:nth-child(even) i::after { background: var(--ink); }
/* the year runs on past its twelfth month */
.px-phases li:last-child i::before { content: ""; position: absolute; left: calc(100% + 5px); top: 50%; width: calc(var(--px-over) - 8px); margin-top: -1px; border-top: 2px dashed var(--accent-blue); transition: opacity 300ms; }
/* twelve months under the stretches, and the marker that rides them */
.px-ruler__scale { display: block; position: relative; height: 6px; margin: 14px var(--px-over) 0 var(--px-lab); border-right: 1.5px solid var(--border-strong); background: repeating-linear-gradient(90deg, var(--border-strong) 0 1.5px, transparent 1.5px calc(100% / 12)); }
.px-ruler__scale i { display: none; position: absolute; left: calc(var(--p, 1) * 100%); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent-blue); box-shadow: 0 0 0 3px var(--white); }
.px-arc__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(36px, 4.6vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--ink); }
.px-arc__text .px-arc__note { margin-top: 1.1em; padding: clamp(16px, 2vw, 22px) 0 0; border-top: 1px solid var(--border); color: var(--ink); }

/* ============ THE COMPANION: the one navy band; two chairs, and the view from the second ============ */
.px-comp { padding: clamp(64px, 8vw, 112px) 0; background: var(--navy-brand); color: var(--white); }
.px-page .px-comp h2 { color: var(--white); }
.px-comp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.px-page .px-comp .px-lead { color: var(--white); }
.px-page .px-comp .px-lead em { color: var(--accent-ice); }
.px-comp__body p { color: rgba(255, 255, 255, .86); }
.px-comp__body strong { font-weight: 600; color: var(--white); }
.px-comp__body p em { font-style: italic; color: var(--white); }
.px-chairs { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 28px); }
.px-chairs__svg { display: block; width: 100%; height: auto; overflow: visible; }
.px-chairs__svg :is(path, circle) { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.px-chairs__svg .px-chairs__floor { stroke: rgba(124, 169, 209, .4); stroke-width: 1.5; stroke-dasharray: none; }
.px-chairs__svg .px-chairs__pole :is(path, circle) { stroke: var(--accent-ice); stroke-width: 1.8; }
.px-chairs__svg :is(.px-chairs__view, .px-chairs__tip) { stroke: var(--accent-ice); stroke-width: 1.6; }
.px-chairs__svg .px-chairs__tip { stroke-dasharray: none; }
.px-roles { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px clamp(16px, 2.4vw, 32px); }
.px-roles p { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.px-roles p + p { text-align: right; }
.px-roles strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.15; color: var(--white); }
.px-roles span { display: block; }
.px-roles .px-roles__log { grid-column: 1 / -1; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(124, 169, 209, .4); text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--accent-ice); }

/* ============ THE HISTORY: fifty-eight years on one line, to scale ============ */
.px-hist { padding: clamp(64px, 8vw, 112px) 0; }
.px-era { position: relative; height: 138px; }
.px-era__line { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--border-strong); }
.px-era__line i { position: absolute; inset: 0; background: var(--accent-blue); transform-origin: left; }
.px-era__list { list-style: none; margin: 0; padding: 0; }
.px-era__list li { position: absolute; left: var(--x, 0%); top: 0; padding-top: 30px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.px-era__list li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 0 4px var(--white); }
.px-era__list li:nth-child(2) { --x: 39.66%; --t: .3966; }
.px-era__list li:nth-child(3) { --x: 65.52%; --t: .6552; }
.px-era__list li:nth-child(4) { --x: auto; --t: 1; left: auto; right: 0; text-align: right; }
.px-era__list li:nth-child(4)::before { left: auto; right: 0; }
.px-era__list strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; font-variant-numeric: lining-nums; }
.px-era__list span { display: block; margin-top: 6px; font-weight: 600; }
.px-era__list small { display: block; font-size: 14px; color: var(--ink-muted); }
.px-hist__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(36px, 4.6vw, 64px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--border); }
.px-stat--scope svg { display: block; width: 64px; height: 64px; margin-bottom: 14px; overflow: visible; }
.px-stat--scope svg path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.px-hist__text { margin: 0; }
.px-hist__text em { font-style: italic; color: var(--ink); }

/* ============ FOUR ARTICLES: each door is one link ============ */
.px-arts { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--border); }
.px-arts__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 3.6vw, 48px); }
.px-page .px-arts__head h2 { margin: 0; }
.px-arts__head p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.px-arts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: clamp(24px, 4vw, 64px); }
.px-arts__list li { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.px-art {
  position: relative; display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 0;
  padding: clamp(22px, 2.6vw, 32px) 44px clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--ink); color: var(--ink);
  transition: padding 360ms var(--px-ease), border-color 220ms;
}
.px-art__ic { display: block; width: 56px; height: 56px; margin-bottom: 18px; overflow: visible; }
.px-art__ic :is(path, circle) { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; transition: stroke 220ms; }
.px-art__title { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.15; transition: color 220ms; }
.px-art__text { display: block; margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.px-go { position: absolute; right: 8px; top: clamp(34px, 3.6vw, 46px); width: 24px; height: 24px; fill: none; stroke: var(--accent-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: transform 360ms var(--px-ease), opacity 220ms; }
.px-art:hover, .px-art:focus-visible { padding-left: 10px; border-top-color: var(--accent-blue); color: var(--ink); }
.px-art:hover .px-art__title, .px-art:focus-visible .px-art__title { color: var(--accent-blue); }
.px-art:hover .px-art__ic :is(path, circle), .px-art:focus-visible .px-art__ic :is(path, circle) { stroke: var(--accent-blue); animation: px-draw 900ms var(--px-ease) both; }
.px-art:hover .px-go, .px-art:focus-visible .px-go { opacity: 1; transform: translateX(6px); }
@keyframes px-draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
@supports not (grid-template-rows: subgrid) {
  .px-arts__list li, .px-art { display: block; }
}

/* ============ WHAT THIS EXPERIENCE IS NOT: five claims, each ruled off ============ */
.px-limits { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--border); }
.px-limits__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(28px, 3.6vw, 48px); }
.px-page .px-limits__head h2 { margin-bottom: clamp(10px, 1.4vw, 16px); }
.px-limits__head p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.px-limits__head p em { font-style: italic; color: var(--ink); }
.px-horn { display: block; width: clamp(84px, 9vw, 120px); height: auto; overflow: visible; }
.px-horn path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.px-horn .px-horn__no { stroke: var(--accent-blue); stroke-width: 4; }
.px-limits__list { list-style: none; margin: 0; padding: 0; }
.px-limit { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); padding: clamp(22px, 2.6vw, 32px) 0; border-top: 1px solid var(--border); }
.px-limit::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform-origin: left; }
.px-limit h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.18; font-weight: 300; }
.px-limit p { margin: 0; font-size: 16.5px; line-height: 1.68; color: var(--ink-soft); }
.px-limit p strong { font-weight: 600; color: var(--ink); }
.px-limit p em { font-style: italic; color: var(--ink); }

/* ============ CLOSING: narrow and centred on purpose ============ */
.px-end { padding: clamp(72px, 9vw, 120px) var(--px-gut); text-align: center; border-top: 1px solid var(--border); }
.px-end__inner { max-width: 720px; margin: 0 auto; }
.px-page .px-end h2 { margin-bottom: 0; }
.px-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ============ ARRIVALS (only once the script has said it is running) ============
   Each part comes in its own way, once. A box that keeps its size is a box
   the observer can see, so nothing is clipped to no area. */
.px-js [data-r] { opacity: 0; transition: opacity 700ms var(--px-ease), transform 900ms var(--px-ease); }
.px-js [data-r].is-in { opacity: 1; }

/* the clock: the face is there; the forty-five minutes are swept each time it comes into view */
.px-js .px-clock[data-r] { opacity: 1; }
.px-js .px-clock:not(.is-run) .px-clock__sweep { stroke-dasharray: 0 60; }
.px-js .px-clock:not(.is-run) .px-clock__hand { transform: rotate(0deg); }
.px-js .px-clock.is-run .px-clock__sweep { animation: px-sweep 2700ms cubic-bezier(.4, 0, .3, 1) both; }
.px-js .px-clock.is-run .px-clock__hand { animation: px-hand 2700ms cubic-bezier(.4, 0, .3, 1) both; }
.px-js .px-clock.is-run figcaption strong { animation: px-arrive 900ms 2600ms var(--px-ease) both; transform-origin: left bottom; }
@keyframes px-sweep { from { stroke-dasharray: 0 60; } to { stroke-dasharray: 45 60; } }
@keyframes px-hand { from { transform: rotate(0deg); } to { transform: rotate(270deg); } }
@keyframes px-arrive { 0% { transform: none; } 40% { transform: scale(1.12); } 100% { transform: none; } }
/* the opening line is uncovered from the left, like a line being read out */
.px-js .px-lead[data-r] { opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1300ms var(--px-ease); }
.px-js .px-lead[data-r].is-in { clip-path: inset(0 0 0 0); }
.px-js .px-day__body p[data-r]:not(.px-lead) { transform: translateY(14px); }
.px-js .px-day__body p[data-r].is-in { transform: none; }

/* the two courses arrive from their own sides; a drop falls, a plunger is pressed */
.px-js .px-route--iv[data-r] { transform: translateX(-28px); }
.px-js .px-route--inj[data-r] { transform: translateX(28px); transition-delay: 140ms; }
.px-js .px-route[data-r].is-in { transform: none; }
.px-js .px-route[data-r].is-in .px-drop { animation: px-drip 1100ms 500ms ease-in 2 both; }
.px-js .px-route[data-r].is-in .px-plunger { animation: px-plunge 1400ms 700ms var(--px-ease) both; }
@keyframes px-drip { 0% { opacity: 0; transform: translateY(-10px); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes px-plunge { from { transform: translateX(-9px); } to { transform: none; } }
.px-js .px-weeks__after[data-r] { transform: translateY(14px); }
.px-js .px-weeks__after[data-r].is-in { transform: none; }

/* the ruler is filled by the reader's own scrolling (the script sets --p); each stretch lights as the marker reaches it */
.px-js .px-ruler[data-r] { opacity: 1; }
.px-js .px-ruler__scale i { display: block; }
.px-js .px-ruler:not(.is-done) .px-phases li:last-child i::before { opacity: 0; }
.px-js .px-phases li { color: var(--border-strong); }
.px-js .px-phases li strong { color: var(--ink-muted); }
.px-js .px-phases li.is-lit { color: var(--ink-muted); }
.px-js .px-phases li.is-lit strong { color: var(--ink); }
.px-js .px-stat[data-r] { transform: translateX(-20px); }
.px-js .px-stat[data-r].is-in { transform: none; }

/* the patient is drawn first, then the line and its pole, then the second chair; last, the view from it */
.px-js .px-chairs[data-r] { opacity: 1; }
.px-js .px-chairs[data-r]:not(.is-in) :is(path, circle):not(.px-chairs__floor, .px-chairs__tip) { stroke-dashoffset: 1; }
.px-js .px-chairs[data-r]:not(.is-in) .px-chairs__tip, .px-js .px-chairs[data-r]:not(.is-in) .px-roles > * { opacity: 0; }
.px-js .px-chairs.is-in .px-chairs__patient :is(path, circle) { animation: px-trace 900ms var(--px-ease) both; }
.px-js .px-chairs.is-in .px-chairs__pole path { animation: px-trace 900ms 600ms var(--px-ease) both; }
.px-js .px-chairs.is-in .px-chairs__other :is(path, circle) { animation: px-trace 900ms 1200ms var(--px-ease) both; }
.px-js .px-chairs.is-in .px-chairs__view { animation: px-trace 1100ms 2000ms cubic-bezier(.45, 0, .2, 1) both; }
.px-js .px-chairs.is-in .px-chairs__tip { animation: px-fade 300ms 3000ms both; }
.px-js .px-chairs.is-in .px-roles > * { animation: px-rise 700ms var(--px-ease) both; animation-delay: calc(700ms + var(--i, 0) * 900ms); }
.px-js .px-comp__body p[data-r]:not(.px-lead) { transform: translateX(20px); }
.px-js .px-comp__body p[data-r].is-in { transform: none; }

/* fifty-eight years at one pace: the long gaps between the dates are waited out */
.px-js .px-era[data-r] { opacity: 1; }
.px-js .px-era[data-r]:not(.is-in) .px-era__line i { transform: scaleX(0); }
.px-js .px-era[data-r]:not(.is-in) .px-era__list li { opacity: 0; }
.px-js .px-era.is-in .px-era__line i { animation: px-rule 2600ms 200ms linear both; }
.px-js .px-era.is-in .px-era__list li { animation: px-rise 600ms var(--px-ease) both; animation-delay: calc(200ms + var(--t, 0) * 2600ms); }
.px-js .px-stat--scope[data-r]:not(.is-in) svg path { stroke-dashoffset: 1; }
.px-js .px-stat--scope[data-r].is-in svg path { animation: px-trace 1200ms 200ms var(--px-ease) both; }
.px-js .px-hist__text[data-r] { transform: translateY(14px); }
.px-js .px-hist__text[data-r].is-in { transform: none; }

/* the doors open one after another */
.px-js .px-arts__list li[data-r] { transform: translateY(24px); transition-delay: calc(var(--i, 0) * 90ms); }
.px-js .px-arts__list li[data-r].is-in { transform: none; }

/* the megaphone is drawn, then struck through; each claim is ruled off as it arrives */
.px-js .px-horn[data-r] { opacity: 1; }
.px-js .px-horn[data-r]:not(.is-in) path { stroke-dashoffset: 1; }
.px-js .px-horn[data-r].is-in path { animation: px-trace 1000ms var(--px-ease) both; }
.px-js .px-horn[data-r].is-in .px-horn__no { animation: px-trace 420ms 900ms ease-out both; }
.px-js .px-limit[data-r] { opacity: 1; }
.px-js .px-limit[data-r]::before { transform: scaleX(0); transition: transform 900ms var(--px-ease); }
.px-js .px-limit[data-r].is-in::before { transform: none; }
.px-js .px-limit[data-r] :is(h3, p) { opacity: 0; transform: translateY(10px); transition: opacity 600ms 200ms var(--px-ease), transform 800ms 200ms var(--px-ease); }
.px-js .px-limit[data-r].is-in :is(h3, p) { opacity: 1; transform: none; }

/* the closing call steps forward */
.px-js .px-end__inner[data-r] { transform: scale(.96); }
.px-js .px-end__inner[data-r].is-in { transform: none; }

/* back from an article: the door that was opened is marked for a moment */
.px-art.is-back { border-top-color: var(--accent-blue); }
.px-art.is-back .px-art__title { color: var(--accent-blue); }

/* ============ TABLET AND PHONE ============ */
@media (max-width: 900px) {
  .px-hero__row, .px-toc__list, .px-day__grid, .px-routes, .px-arc__grid, .px-comp__grid, .px-hist__grid, .px-arts__head, .px-limit { grid-template-columns: minmax(0, 1fr); }
  .px-clock, .px-chairs { position: static; }
  .px-limit { gap: 10px; }

}

/* too narrow for a week to be told from a day: the ruler keeps its order and gives up its scale, six even stops */
@media (max-width: 1100px) {
  .px-year__ruler { height: auto; margin: 0 0 14px; padding-top: 76px; }
  .px-year__line { left: calc(100% / 12); right: calc(100% / 12); top: 82px; }
  .px-year__line::before { display: none; }
  .px-year__marks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .px-year__marks li { position: relative; left: auto; top: auto; margin: 0 auto 46px; }
  .px-year__marks span, .px-year__marks li:last-child span, .px-year__marks .px-year__day span { left: 50%; right: auto; top: 24px; transform: translateX(-50%); width: min-content; white-space: normal; text-align: center; font-size: 13px; }
  .px-year__day svg { bottom: 20px; width: 48px; height: 48px; margin-left: -24px; padding: 9px; }
}

@media (max-width: 900px) {

  /* the clock sits beside its own caption, above the text */
  .px-clock { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; align-items: center; }
  .px-clock figcaption { margin-top: 0; }

  .px-route, .px-route + .px-route { padding: 0; border-left: 0; }
  .px-route + .px-route { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border-strong); }
  .px-comp__body { order: -1; }
  .px-chairs { max-width: 460px; }

  /* the dates run down the page, the line down their left side */
  .px-era { height: auto; }
  .px-era__line { left: 8px; right: auto; top: 8px; bottom: 44px; width: 2px; height: auto; }
  .px-era__line i { transform-origin: top; }
  .px-js .px-era[data-r]:not(.is-in) .px-era__line i { transform: scaleY(0); }
  .px-js .px-era.is-in .px-era__line i { animation-name: px-rule-y; }
  .px-era__list li, .px-era__list li:nth-child(4) { position: relative; left: auto; right: auto; text-align: left; padding: 0 0 22px 38px; }
  .px-era__list li:nth-child(4)::before { left: 0; right: auto; }
  .px-era__list li:last-child { padding-bottom: 0; }
  .px-era__list :is(span, small) { display: inline; margin-right: 6px; }

  /* the folds a reader can skip become "Read more" */
  .px-fold > summary {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--accent-blue-hover); -webkit-tap-highlight-color: transparent;
  }
  .px-comp .px-fold > summary { color: var(--accent-ice); }
  .px-fold[open] > .px-fold__body { animation: px-unfold 360ms var(--px-ease) both; }

  /* the bar's edges fade wherever its track can be wider than the window */
  .hc-bar__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
}

@media (max-width: 600px) {
  html:has(body.px-page) { --hc-bar-h: 48px; }
  .hc-bar__track { gap: 22px; }
  .px-hero__actions .btn, .px-end__actions .btn { width: 100%; }
  /* no room for a column of names: each name sits on the line above its own stretch */
  .px-page main .px-ruler { --px-lab: 0px; --px-over: 36px; }
  .px-phases li { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; row-gap: 8px; }
  .px-phases span { grid-column: 2; }
  .px-phases i { grid-column: 1 / -1; grid-row: 2; }
  .px-arts__list { grid-template-columns: minmax(0, 1fr); }
  .px-limits__head { grid-template-columns: minmax(0, 1fr); }
  .px-horn { width: 72px; }
}

/* ============ REDUCED MOTION: hold every end state ============ */
@media (prefers-reduced-motion: reduce) {
  .px-page main *, .px-page main *::before, .px-page main *::after { animation: none !important; transition: none !important; }
  .px-js [data-r], .px-js [data-r] * { opacity: 1 !important; transform: none !important; scale: none !important; clip-path: none !important; }
  .px-js [data-r]::before { transform: none !important; }
  .px-js .px-clock .px-clock__sweep { stroke-dasharray: 45 60 !important; transform: rotate(-90deg) !important; }
  .px-js .px-clock .px-clock__hand { transform: rotate(270deg) !important; }
  .px-js :is(.px-chairs__svg path, .px-chairs__svg circle, .px-horn path, .px-stat--scope svg path) { stroke-dashoffset: 0 !important; }
  .px-js .px-ruler { --p: 1 !important; }
  .px-js .px-ruler__scale i { display: none !important; }
  .px-js .px-phases li:last-child i::before { opacity: 1 !important; }
  .px-js .px-phases li { color: var(--ink-muted); }
  .px-js .px-phases li strong { color: var(--ink); }
  .px-js .px-era__line i { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ PRINT: no scrolling, so nothing waits to be revealed ============ */
@media print {
  .px-page main *, .px-page main *::before, .px-page main *::after { animation: none !important; transition: none !important; }
  .px-js [data-r], .px-js [data-r] * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .px-js [data-r]::before { transform: none !important; }
  .px-js .px-clock .px-clock__sweep { stroke-dasharray: 45 60 !important; transform: rotate(-90deg) !important; }
  .px-js .px-clock .px-clock__hand { transform: rotate(270deg) !important; }
  .px-js :is(.px-chairs__svg path, .px-chairs__svg circle, .px-horn path, .px-stat--scope svg path) { stroke-dashoffset: 0 !important; }
  .px-js .px-ruler { --p: 1 !important; }
  .px-js .px-ruler__scale i { display: none !important; }
  .px-js .px-phases li:last-child i::before { opacity: 1 !important; }
  .px-js .px-phases li { color: var(--ink-muted); }
  .px-js .px-phases li strong { color: var(--ink); }
  .px-js .px-era__line i { transform: none !important; }
  .hc-bar, .px-fold > summary { display: none !important; }
  /* the ruler is made of filled boxes, which a printer drops unless told to keep them */
  .px-phases i, .px-phases i::after, .px-ruler__scale { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .px-clock, .px-chairs { position: static; }
}

/* paper has no navy: the band's words and its drawing are set in ink */
@media print {
  .px-comp, .px-comp :is(h2, p, strong, em, span, a) { background: none; color: var(--ink) !important; }
  .px-chairs__svg :is(path, circle) { stroke: var(--ink) !important; }
}

/* ============ SMALL COURTESIES ============ */
/* a press is answered before the page changes */
.px-art:active .px-art__title, .px-toc__list a:active { color: var(--accent-blue-hover); }
.px-art:active .px-go { transform: translateX(10px); }
/* the ruler fills to the end of the year: the figure beside it answers, once */
.px-js .px-arc.is-drawn .px-stat strong { animation: px-arrive 900ms var(--px-ease) both; transform-origin: left bottom; }
