/* /learn-why-our-cells, the section page for "Why these cells". Loaded after
   site.css by learn-why-our-cells.html only. The page answers one question
   (what is actually in the vial), so each part has its own shape and its own
   way of arriving: a hero that assembles once around the lab photograph, two
   vials with one label, three questions each with its own drawing, a navy
   band that counts living cells, a cell that signals six ways, three cell
   types on the one tinted band, a route through six articles, four refusals
   struck through. Everything 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.why-cells) {
  --wc-max: 1240px;
  --wc-gut: clamp(20px, 4vw, 56px);
  --wc-nav-h: 64px;            /* fallback; scripts/learn-why-our-cells.js sets the real header height */
  --wc-bar-h: 52px;
  --wc-ease: cubic-bezier(.16, 1, .3, 1);
  /* every jump, anchor and Tab stop lands below the header and the bar */
  scroll-padding-top: calc(var(--wc-nav-h) + var(--wc-bar-h) + 20px);
}
body.why-cells { background: var(--white); }

/* Text fills its column; the column, not the paragraph, sets the measure.
   The two resets are colors_and_type.css's: bare <p> capped at 42rem, and a
   grey underline on every <a>. */
.why-cells main { overflow-x: clip; }
.why-cells main p { max-width: none; }
.why-cells main a:not(.btn) { border-bottom: 0; }
.why-cells main :where(h1, h2, h3) { text-wrap: wrap; margin: 0; }
.why-cells main :where(h1, h2, h3) em { color: var(--accent-blue); font-style: italic; }
/* A heading that has to wrap breaks where the styling changes. */
.why-cells .h-lead, .why-cells main :is(h1, h2) > em { display: inline-block; }
.why-cells 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);
}
.why-cells main strong { font-weight: 600; color: var(--ink); }
.why-cells main ul, .why-cells main ol { list-style: none; margin: 0; padding: 0; }

.wc-wrap { max-width: var(--wc-max); margin: 0 auto; padding: 0 var(--wc-gut); }

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

/* a link inside running text: dotted, so it reads as a reference */
.wc-term, .wc-q__see a {
  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;
}
.wc-term:hover, .wc-q__see a:hover { color: var(--accent-blue); text-decoration-style: solid; }

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

/* ============ REVEALS ============
   Hidden only once the script has said it is running (html.wc-js), so with
   no script nothing is ever hidden. Each part chooses how it arrives. */
.wc-js [data-r] { opacity: 0; transition: opacity 700ms var(--wc-ease), transform 900ms var(--wc-ease); }
.wc-js [data-r].is-in { opacity: 1; transform: none; }
.wc-js :is(.wc-same__text, .wc-mech__main, .wc-not__aside, .wc-arts__head) [data-r]:not(.is-in) { transform: translateY(16px); }
.wc-js .wc-q[data-r]:not(.is-in) { transform: translateX(-28px); }
.wc-js .wc-q--identity[data-r]:not(.is-in) { transform: translateX(28px); }
.wc-js .wc-live__fig[data-r]:not(.is-in) { transform: scale(.97); }
.wc-js .wc-type[data-r]:not(.is-in) { transform: translateY(28px); }
.wc-js .wc-type[data-r]:nth-child(2) { transition-delay: 90ms; }
.wc-js .wc-type[data-r]:nth-child(3) { transition-delay: 180ms; }
.wc-js .wc-route li[data-r]:not(.is-in) { transform: translateX(20px); }
.wc-js .wc-not__list li[data-r]:not(.is-in) { transform: translateY(14px); }

/* one drawn stroke, used by every line drawing on the page */
@keyframes wc-draw { from { stroke-dashoffset: 1; } }
@keyframes wc-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes wc-fade { from { opacity: 0; } }
@keyframes wc-pop { from { opacity: 0; transform: scale(.2); } }

/* ============ HERO: assembles once, in reading order ============
   Pure CSS, so it runs from the first paint: the heading rises in halves,
   the answer follows, the contents rule draws itself and its lines step in,
   and the lab photograph opens from a band to its full frame and settles. */
.wc-hero { padding: clamp(28px, 4.2vw, 56px) 0 clamp(48px, 6vw, 84px); }
.wc-hero__h1 { font-size: clamp(2.2rem, 4.3vw, 3.9rem); line-height: 1.05; font-weight: 300; }
.wc-hero__h1 > * { animation: wc-rise 900ms var(--wc-ease) both; }
.wc-hero__h1 > em { animation-delay: 140ms; }
.wc-hero__row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 96px); align-items: start;
  margin-top: clamp(24px, 3.4vw, 44px);
}
.wc-hero__answer {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.3rem, 1.9vw, 1.68rem); line-height: 1.38; color: var(--ink); margin: 0;
  animation: wc-rise 900ms 260ms var(--wc-ease) both;
}
.wc-hero__answer .wc-term { padding-block: 0; }
.wc-hero__lede {
  margin: clamp(16px, 1.8vw, 22px) 0 0; font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.6; color: var(--ink-soft);
  animation: wc-rise 900ms 360ms var(--wc-ease) both;
}
.wc-hero__lede em { font-style: italic; color: var(--accent-blue-hover); }

/* Contents: the page's own headings, as links. */
.wc-toc { position: relative; padding-top: 1px; }
.wc-toc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform-origin: left; animation: wc-rule 1100ms 520ms var(--wc-ease) both;
}
.wc-toc__list li { animation: wc-rise 800ms var(--wc-ease) both; animation-delay: calc(620ms + var(--i, 0) * 70ms); }
.wc-toc__list li:nth-child(2) { --i: 1; } .wc-toc__list li:nth-child(3) { --i: 2; }
.wc-toc__list li:nth-child(4) { --i: 3; } .wc-toc__list li:nth-child(5) { --i: 4; }
.wc-toc__list li:nth-child(6) { --i: 5; } .wc-toc__list li:nth-child(7) { --i: 6; }
.wc-toc__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.25; color: var(--ink);
  transition: color 220ms, padding 320ms var(--wc-ease);
}
.wc-toc__list a::after {
  content: "\2193"; flex: none; font-family: var(--font-body); font-size: 17px; color: var(--accent-blue);
  opacity: .35; transform: translateY(-4px); transition: transform 320ms var(--wc-ease), opacity 220ms;
}
.wc-toc__list a:hover, .wc-toc__list a:focus-visible { color: var(--accent-blue); padding-left: 8px; }
.wc-toc__list a:hover::after, .wc-toc__list a:focus-visible::after { opacity: 1; transform: translateY(2px); }

.wc-hero__photo { margin: clamp(36px, 5vw, 64px) 0 0; animation: wc-open 1300ms 380ms var(--wc-ease) both; }
.wc-hero__frame {
  position: relative; display: block; aspect-ratio: 21 / 9; border-radius: 8px; overflow: hidden; background: var(--accent-wash);
}
/* the picture is taller than its frame by more than it ever travels (the drift) */
.wc-hero__frame img[width][height] {
  position: absolute; left: 0; top: -8%; display: block; width: 100%; height: 116%; object-fit: cover; object-position: 60% 38%;
  transform: translate3d(0, calc(var(--wc-drift, 0) * 1px), 0); will-change: transform;
  animation: wc-settle 1900ms 380ms var(--wc-ease) both;
}
@keyframes wc-rule { from { transform: scaleX(0); } }
@keyframes wc-open { from { opacity: 0; clip-path: inset(18% 0 18% 0 round 8px); } to { opacity: 1; clip-path: inset(0 round 8px); } }
@keyframes wc-settle { from { scale: 1.12; } }

/* ============ CONTENTS BAR (follows the reader) ============ */
.why-cells .hc-bar {
  /* under the phone menu's sheet (55) and backdrop (50), over the page */
  position: fixed; left: 0; right: 0; top: var(--wc-nav-h); z-index: 49;
  height: var(--wc-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(--wc-ease), visibility 0s 360ms;
}
.why-cells .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--wc-ease); }
body.nav-open.why-cells .hc-bar { opacity: 0; visibility: hidden; }
.why-cells .hc-bar__track {
  max-width: var(--wc-max); margin: 0 auto; padding: 0 var(--wc-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;
}
.why-cells .hc-bar__track::-webkit-scrollbar { display: none; }
.why-cells .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;
}
.why-cells .hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--wc-ease);
}
.why-cells .hc-bar__track a:hover, .why-cells .hc-bar__track a[aria-current] { color: var(--ink); }
.why-cells .hc-bar__track a:hover::after { transform: scaleX(.3); }
.why-cells .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.why-cells .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.why-cells .hc-bar__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--wc-p, 0));
}
/* where the track can run off the screen, its far edge fades */
.why-cells .hc-bar::after {
  content: ""; position: absolute; right: 0; top: 2px; bottom: 1px; width: 44px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96));
  opacity: 0; transition: opacity 200ms;
}
.why-cells .hc-bar.is-more::after { opacity: 1; }

/* ============ ARE THEY THE SAME: an essay beside two vials ============
   The same glass, the same label, drawn once each; then what is inside. */
.wc-same { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--border); }
.wc-same__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.wc-same__text p { margin: 0 0 1.05em; font-size: clamp(1.04rem, 1.25vw, 1.15rem); line-height: 1.68; color: var(--ink-soft); }
.wc-same__text p:last-child { margin-bottom: 0; }
.wc-same__text .wc-fold p { margin: 0; }
.why-cells .wc-same__no { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.26; margin-bottom: .9em; }
.why-cells .wc-same__no strong { font-weight: 400; }
.wc-vars { margin: 0 0 1.3em !important; border-top: 1px solid var(--ink); }
.wc-vars li {
  padding: 13px 0 14px; border-bottom: 1px solid var(--border);
  font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.55; color: var(--ink-soft);
}
.wc-vars strong { font-family: var(--font-display); font-size: 1.2em; font-weight: 400 !important; }

.wc-vials { position: sticky; top: calc(var(--wc-nav-h) + var(--wc-bar-h) + 32px); margin: 0; }
.wc-vials svg { display: block; width: 100%; max-width: 380px; margin: 0 auto; overflow: visible; }
.wc-vial__glass { fill: var(--white); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wc-vial__cap { fill: var(--ink); }
.wc-vial__liquid { fill: var(--accent-wash); transform-box: fill-box; transform-origin: 50% 100%; }
.wc-vial__label { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.wc-vial__ink { fill: none; stroke: var(--ink-muted); stroke-width: 2.5; stroke-linecap: round; }
.wc-vial__cells > * { fill: var(--accent-blue); transform-box: fill-box; transform-origin: center; }
.wc-vial__cells .o { fill: none; stroke: var(--ink-muted); stroke-width: 1.5; }
.wc-js .wc-vials:not(.is-in) :is(.wc-vial__cap, .wc-vial__label, .wc-vial__ink, .wc-vial__liquid, .wc-vial__cells > *) { opacity: 0; }
.wc-js .wc-vials:not(.is-in) .wc-vial__glass { stroke-dashoffset: 1; }
.wc-js .wc-vials.is-in .wc-vial__glass { animation: wc-draw 1100ms var(--wc-ease) both; }
.wc-js .wc-vials.is-in .wc-vial--b .wc-vial__glass { animation-delay: 180ms; }
.wc-js .wc-vials.is-in :is(.wc-vial__cap, .wc-vial__label, .wc-vial__ink) { animation: wc-fade 500ms 700ms both; }
.wc-js .wc-vials.is-in .wc-vial__liquid { animation: wc-fill 900ms 1000ms var(--wc-ease) both; }
.wc-js .wc-vials.is-in .wc-vial__cells > * { animation: wc-pop 420ms var(--wc-ease) both; animation-delay: calc(1500ms + var(--i, 0) * 45ms); }
@keyframes wc-fill { from { opacity: 0; transform: scaleY(0); } }

/* ============ THREE QUESTIONS: one row each, each with its own drawing ============ */
.wc-ask { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); border-top: 1px solid var(--border); }
.wc-ask__lede { margin: 0; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.wc-q {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr); column-gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(32px, 4.4vw, 60px) 0; border-bottom: 1px solid var(--border);
}
.wc-q:first-of-type { margin-top: clamp(28px, 3.6vw, 48px); border-top: 1px solid var(--ink); }
.wc-q:last-of-type { border-bottom: 0; }
.wc-q--identity { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
.wc-q--identity .wc-panel { order: 2; }
.wc-q--tested { grid-template-columns: minmax(0, 1fr); row-gap: clamp(24px, 3vw, 36px); }
.wc-q h3 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.14; font-weight: 400; margin-bottom: 14px; }
.wc-q__body p { margin: 0 0 .9em; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.66; color: var(--ink-soft); }
.wc-q__body p:last-child { margin-bottom: 0; }
.wc-q__body details + .wc-q__see { margin-top: .5em; }
.wc-q__body em { font-style: italic; }
.wc-q__see { font-size: 15px !important; color: var(--ink-muted) !important; }
.wc-q__see a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* source: cord, bone marrow, fat */
.wc-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wc-src li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-soft); text-align: center; }
.wc-src svg, .wc-type__ic { display: block; width: 96px; height: 96px; padding: 20px; border-radius: 50%; background: var(--accent-wash); overflow: visible; }
.wc-src svg > *, .wc-type__ic > * {
  fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0;
}
/* the cord is a tube: a wide stroke with the ground's colour drawn down its middle */
.wc-src svg > .t1, .wc-type__ic > .t1 { stroke-width: 8.4; }
.wc-src svg > .t2, .wc-type__ic > .t2 { stroke: var(--accent-wash); stroke-width: 5; }
.wc-js .wc-q:not(.is-in) .wc-src svg > *, .wc-js .wc-type:not(.is-in) .wc-type__ic > * { stroke-dashoffset: 1; }
.wc-js .wc-q.is-in .wc-src svg > * { animation: wc-draw 1200ms var(--wc-ease) both; }
.wc-js .wc-q.is-in .wc-src li:nth-child(2) svg > * { animation-delay: 220ms; }
.wc-js .wc-q.is-in .wc-src li:nth-child(3) svg > * { animation-delay: 440ms; }

/* identity: the six markers, three that must be there and three that must not */
.wc-panel { padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--border-strong); border-radius: 8px; background: var(--white); }
.wc-panel__k { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.wc-panel__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px !important; }
.wc-panel__row li {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding: 9px 8px; border: 1px solid var(--accent-blue); border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wc-panel__row--neg li { border-color: var(--border-strong); border-style: dashed; color: var(--ink-muted); }
.wc-mark { flex: none; width: 18px; height: 18px; }
.wc-mark path { fill: none; stroke: var(--accent-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wc-panel__row--neg .wc-mark path { stroke: var(--ink-muted); }
.wc-panel__foot { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.wc-js .wc-q:not(.is-in) .wc-mark path { stroke-dashoffset: 1; }
.wc-js .wc-q:not(.is-in) .wc-panel__row li { opacity: 0; }
.wc-js .wc-q.is-in .wc-panel__row li { animation: wc-rise 520ms var(--wc-ease) both; animation-delay: calc(200ms + var(--i, 0) * 110ms); }
.wc-js .wc-q.is-in .wc-mark path { animation: wc-draw 460ms var(--wc-ease) both; animation-delay: calc(480ms + var(--i, 0) * 110ms); }

/* tested: six gates in a row, one connector per gap, lit in turn */
.wc-gates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wc-gates li { position: relative; padding-top: 34px; font-size: 15px; font-weight: 500; color: var(--ink); }
.wc-gates i { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-blue); }
.wc-gates i::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.wc-gates li:not(:last-child)::before {
  content: ""; position: absolute; left: 28px; right: 6px; top: 10px; height: 2px; background: var(--accent-blue); transform-origin: left;
}
.wc-js .wc-q:not(.is-in) .wc-gates i { background: var(--border-strong); }
.wc-js .wc-q:not(.is-in) .wc-gates i::after { opacity: 0; }
.wc-js .wc-q:not(.is-in) .wc-gates li::before { transform: scaleX(0); }
.wc-js .wc-q.is-in .wc-gates i { animation: wc-gate 420ms both; animation-delay: calc(300ms + var(--i, 0) * 260ms); }
.wc-js .wc-q.is-in .wc-gates i::after { animation: wc-fade 260ms both; animation-delay: calc(460ms + var(--i, 0) * 260ms); }
.wc-js .wc-q.is-in .wc-gates li::before { animation: wc-rule 260ms linear both; animation-delay: calc(420ms + var(--i, 0) * 260ms); }
@keyframes wc-gate { from { background: var(--border-strong); transform: scale(.7); } 60% { transform: scale(1.18); } }

/* ============ VIABILITY: the first navy band ============
   One hundred cells, ninety-five alive; a clock that runs its sixty minutes. */
.wc-live { padding: clamp(56px, 7vw, 104px) 0; background: var(--navy-brand); color: var(--white); }
.why-cells .wc-live h2 { color: var(--white); }
.why-cells .wc-live h2 em { color: var(--accent-ice); }
.wc-live__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); row-gap: 48px; }
.wc-live__fig { display: grid; grid-template-columns: clamp(120px, 15vw, 190px) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 40px); align-items: center; }
.wc-dots, .wc-clock { display: block; width: 100%; height: auto; overflow: visible; }
.wc-dots circle { fill: var(--accent-ice); transform-box: fill-box; transform-origin: center; }
.wc-dots .off { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; stroke-dasharray: 3 3; }
.wc-js .wc-live__fig:not(.is-in) .wc-dots circle:not(.off) { opacity: .12; }
.wc-js .wc-live__fig.is-in .wc-dots circle:not(.off) { animation: wc-lit 380ms var(--wc-ease) both; animation-delay: calc(200ms + var(--i, 0) * 14ms); }
@keyframes wc-lit { from { opacity: .12; transform: scale(.5); } }
.wc-clock__rim { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 3; }
.wc-clock__sweep { fill: none; stroke: var(--accent-ice); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wc-clock__ticks { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-linecap: round; }
.wc-clock__hand { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; transform-origin: 100px 100px; }
.wc-clock__pin { fill: var(--white); }
.wc-js .wc-live__fig:not(.is-in) .wc-clock__sweep { stroke-dashoffset: 1; }
.wc-js .wc-live__fig.is-in .wc-clock__sweep { animation: wc-draw 2200ms 300ms cubic-bezier(.45, 0, .2, 1) both; }
.wc-js .wc-live__fig.is-in .wc-clock__hand { animation: wc-hand 2200ms 300ms cubic-bezier(.45, 0, .2, 1) both; }
@keyframes wc-hand { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wc-live__say p { margin: 0; font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.why-cells .wc-live__num {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3.2rem, 6vw, 5.2rem); line-height: 1; color: var(--white);
  margin-bottom: 14px; font-variant-numeric: tabular-nums lining-nums;
}
.wc-live__num sup { font-size: .42em; vertical-align: top; position: relative; top: .3em; margin-left: 2px; color: var(--accent-ice); }
.why-cells .wc-live__num--words { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-style: italic; }
.why-cells .wc-live__cite { margin-top: 12px; font-size: 15px; color: var(--accent-ice); }

/* ============ MECHANISMS: a cell that signals six ways, beside the six ============ */
.wc-mech { padding: clamp(56px, 7vw, 104px) 0; }
.wc-mech__grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.wc-mech__side { position: sticky; top: calc(var(--wc-nav-h) + var(--wc-bar-h) + 28px); }
.wc-mech__line { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--ink); }
.wc-mech__line em { font-style: italic; color: var(--accent-blue); }
.wc-cell { margin: clamp(8px, 1.4vw, 20px) 0 0; }
.wc-cell svg { display: block; width: 100%; max-width: 360px; overflow: visible; }
.wc-cell__body { fill: var(--accent-wash); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.wc-cell.is-live .wc-cell__body { animation: wc-breathe 7s ease-in-out infinite alternate; }
.wc-cell__core { fill: var(--accent-blue); }
.wc-ray path { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; transition: stroke 300ms; }
.wc-ray__end { fill: var(--white); stroke: var(--ink-muted); stroke-width: 2; transition: fill 300ms, stroke 300ms, r 300ms; }
.wc-ray__sig { fill: var(--accent-blue); opacity: 0; }
.wc-js .wc-cell.is-in.is-live .wc-ray__sig { animation: wc-signal 3.6s linear infinite; animation-delay: calc(var(--i, 0) * 600ms); }
.wc-ray.is-lit path { stroke: var(--accent-blue); }
.wc-ray.is-lit .wc-ray__end { fill: var(--accent-blue); stroke: var(--accent-blue); r: 11px; }
@keyframes wc-signal { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: 1; } 40% { opacity: 1; } 50%, 100% { opacity: 0; transform: translateX(88px); } }
@keyframes wc-breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.04) rotate(4deg); } }
.wc-mech__lede { margin: 0; font-size: clamp(1.08rem, 1.4vw, 1.24rem); line-height: 1.62; color: var(--ink-soft); }
.wc-mech__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3.4vw, 48px); margin-top: clamp(24px, 3vw, 40px) !important; border-top: 1px solid var(--ink); }
.wc-mech__list li { padding: 18px 0 20px 16px; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; margin-left: -18px; transition: border-color 300ms; }
.wc-mech__list li.is-lit { border-left-color: var(--accent-blue); }
.wc-mech__list h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; font-weight: 400; margin-bottom: 6px; transition: color 300ms; }
.wc-mech__list li.is-lit h3 { color: var(--accent-blue); }
.wc-mech__list p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.wc-mech__note { margin: clamp(22px, 2.8vw, 34px) 0 0; font-size: 16px; line-height: 1.62; color: var(--ink-muted); }

/* ============ THREE CELL TYPES: the one tinted band ============ */
.wc-types { padding: clamp(56px, 7vw, 104px) 0; background: var(--accent-wash); }
.wc-types__head p { margin: 0 0 .8em; font-size: clamp(1.04rem, 1.25vw, 1.15rem); line-height: 1.66; color: var(--ink-soft); }
.why-cells .wc-types__lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.wc-types__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(28px, 3.6vw, 48px);
}
.wc-type {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: clamp(22px, 2.6vw, 32px); background: var(--white); border-radius: 8px;
}
@supports not (grid-template-rows: subgrid) { .wc-type { display: block; } }
.wc-type__ic { background: var(--accent-wash); margin-bottom: 18px; }
.wc-type__ic .wc-type__cap { stroke: var(--accent-blue); stroke-width: 3.4; }
.wc-js .wc-type.is-in .wc-type__ic > * { animation: wc-draw 1200ms 200ms var(--wc-ease) both; }
.wc-type__name { margin: 0 0 6px !important; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.wc-type h3 { font-size: clamp(1.3rem, 1.72vw, 1.56rem); line-height: 1.14; font-weight: 400; margin-bottom: 14px; }
.wc-type details p, .wc-types__head details p { margin: 0; font-size: 16px; line-height: 1.64; color: var(--ink-soft); }
.wc-type__used { margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; color: var(--ink); align-self: end; }
.wc-type__used span { display: block; font-size: 14px; color: var(--ink-muted); margin-bottom: 2px; }
.wc-call { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.wc-call h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.14; font-weight: 400; }
.wc-call p { margin: 0; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.66; color: var(--ink-soft); }
.wc-call em { font-style: italic; color: var(--ink); }

/* Native "Read more". Ships open; the script folds it on a phone. */
.wc-fold summary {
  display: none; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--accent-blue-hover); transition: color 200ms;
}
.wc-fold summary::-webkit-details-marker { display: none; }
.wc-fold summary:hover { color: var(--accent-blue); }
.wc-fold.is-fold summary { display: inline-flex; }
.wc-fold[open] .wc-fold__more, .wc-fold:not([open]) .wc-fold__less { display: none; }
.wc-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--wc-ease); }
.wc-fold[open] .wc-chev { transform: rotate(180deg); }
.wc-fold.is-fold > summary { margin-top: -6px; }
.wc-fold.is-fold[open] > p + p { margin-top: .9em; }
.wc-fold.is-fold[open] > p { animation: wc-unfold 420ms var(--wc-ease) both; }
@keyframes wc-unfold { from { opacity: 0; transform: translateY(-6px); } }

/* ============ SIX ARTICLES: a route, lit a stop at a time ============ */
.wc-arts { padding: clamp(56px, 7vw, 104px) 0; }
.wc-arts__grid { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.6fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.wc-arts__head { position: sticky; top: calc(var(--wc-nav-h) + var(--wc-bar-h) + 28px); }
.wc-arts__head p { margin: 0 0 1em; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.66; color: var(--ink-soft); }
.wc-arts__head p:last-child { margin: 0; }
.wc-arts__wont { padding-top: 1em; border-top: 1px solid var(--border); }
.wc-arts__wont em { font-style: italic; color: var(--ink); }
.wc-route li { position: relative; padding-left: 44px; }
.wc-route li::before {
  content: ""; position: absolute; left: 6px; top: 34px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-blue); box-shadow: 0 0 0 5px var(--white); z-index: 1;
}
/* one connector per gap, stop to stop, and nothing after the last */
.wc-route li:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; top: 48px; height: 100%; width: 2px; background: var(--accent-blue); transform-origin: top;
}
.wc-js .wc-route li:not(.is-in)::before { background: var(--border-strong); }
.wc-js .wc-route li:not(.is-in)::after { transform: scaleY(0); }
.wc-js .wc-route li.is-in::before { animation: wc-gate 420ms 200ms both; }
.wc-js .wc-route li.is-in::after { animation: wc-grow 700ms 360ms var(--wc-ease) both; }
@keyframes wc-grow { from { transform: scaleY(0); } }
.wc-route a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 4px; align-items: center;
  padding: 24px 0 26px; border-bottom: 1px solid var(--border); color: var(--ink);
  transition: padding 320ms var(--wc-ease), border-color 220ms;
}
.wc-route li:first-child a { border-top: 1px solid var(--border); }
.wc-route__t { font-family: var(--font-display); font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.16; transition: color 220ms; }
.wc-route__d { grid-column: 1; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.wc-route .wc-arr { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; color: var(--accent-blue); }
.wc-route a:hover, .wc-route a:focus-visible { padding-left: 10px; border-bottom-color: var(--accent-blue); }
.wc-route a:hover .wc-route__t, .wc-route a:focus-visible .wc-route__t { color: var(--accent-blue); }

/* an article already opened from here: its stop is ticked */
.wc-route li.is-read::before {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3.4 7.3 2.4 2.4 4.8-5.2' fill='none' stroke='%232D6EB1' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 2px var(--accent-blue), 0 0 0 6px var(--white); animation: none;
}
.wc-route li.is-read .wc-route__t { color: var(--ink-soft); }
.wc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* six pages, laid down one at a time */
.wc-stack { display: block; width: 128px; height: 96px; margin: 4px 0 22px; overflow: visible; }
.wc-stack rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.6; }
.wc-stack rect:first-child { fill: var(--accent-wash); stroke: var(--accent-blue); }
.wc-stack path { fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.wc-js .wc-stack[data-r] { opacity: 1; }
.wc-js .wc-stack:not(.is-in) > * { opacity: 0; }
.wc-js .wc-stack.is-in > * { animation: wc-deal 520ms var(--wc-ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes wc-deal { from { opacity: 0; transform: translate(-14px, 10px); } }

/* ============ WHAT IT IS NOT: four claims, each struck through ============ */
.wc-not { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--border); }
.wc-not__grid { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.6fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.wc-not__aside { position: sticky; top: calc(var(--wc-nav-h) + var(--wc-bar-h) + 28px); }
.why-cells .wc-not__aside h2 { margin-bottom: 18px; }
.wc-not__aside p { margin: 0; font-size: clamp(1.04rem, 1.25vw, 1.15rem); line-height: 1.66; color: var(--ink-soft); }
.wc-not__aside p em { font-style: italic; }
.wc-not__list li { padding: clamp(22px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--border); }
.wc-not__list li:first-child { border-top: 1px solid var(--ink); }
.wc-not__list h3 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.16; font-weight: 400; margin-bottom: 12px; }
.wc-not__list p { margin: 0; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.66; color: var(--ink-soft); }
.wc-not__list p em { font-style: italic; }
/* the megaphone we do not use */
.wc-horn { display: block; width: 84px; height: 84px; margin-bottom: 20px; overflow: visible; }
.wc-horn path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wc-horn .wc-horn__x { stroke: var(--accent-blue); stroke-width: 3; }
.wc-js .wc-horn[data-r] { opacity: 1; }
.wc-js .wc-horn:not(.is-in) path { stroke-dashoffset: 1; }
.wc-js .wc-horn.is-in path { animation: wc-draw 900ms var(--wc-ease) both; }
.wc-js .wc-horn.is-in .wc-horn__x { animation-delay: 800ms; animation-duration: 520ms; }
/* the claim itself is what gets crossed out */
.wc-x { position: relative; display: inline-block; font-style: italic; color: var(--ink-muted); }
.wc-x::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 56%; height: 1.5px; background: var(--accent-blue); transform-origin: left;
}
.wc-js .wc-not__list li:not(.is-in) .wc-x::after { transform: scaleX(0); }
.wc-js .wc-not__list li.is-in .wc-x::after { animation: wc-rule 620ms 380ms var(--wc-ease) both; }

/* ============ CLOSING: the second navy band ============ */
.wc-end { padding: clamp(64px, 8vw, 112px) var(--wc-gut); background: var(--navy-brand); color: var(--white); text-align: center; }
.wc-end__inner { max-width: 760px; margin: 0 auto; }
.wc-end__doc { display: block; width: 56px; height: 70px; margin: 0 auto 22px; overflow: visible; }
.wc-end__doc path { fill: none; stroke: var(--accent-ice); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wc-end__doc .wc-end__tick { stroke: var(--white); stroke-width: 3; }
.wc-js .wc-end__inner:not(.is-in) .wc-end__doc path { stroke-dashoffset: 1; }
.wc-js .wc-end__inner.is-in .wc-end__doc path { animation: wc-draw 900ms 200ms var(--wc-ease) both; }
.wc-js .wc-end__inner.is-in .wc-end__doc path:nth-child(3) { animation-delay: 700ms; }
.wc-js .wc-end__inner.is-in .wc-end__doc .wc-end__tick { animation-delay: 1300ms; animation-duration: 500ms; }
.why-cells .wc-end h2 { color: var(--white); margin-bottom: 14px; }
.wc-end p { margin: 0; font-size: clamp(1.08rem, 1.4vw, 1.24rem); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.wc-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.why-cells .wc-end .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.why-cells .wc-end .btn--ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, .08); }
.why-cells .wc-end .btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ============ NARROWER ============ */
@media (max-width: 980px) {
  .wc-hero__row, .wc-same__grid, .wc-mech__grid, .wc-arts__grid, .wc-not__grid, .wc-call { grid-template-columns: minmax(0, 1fr); row-gap: clamp(28px, 5vw, 44px); }
  .wc-vials, .wc-mech__side, .wc-arts__head, .wc-not__aside { position: static; }
  .wc-vials svg { max-width: 260px; }
  .wc-mech__side { display: grid; grid-template-columns: minmax(0, 1fr) 160px; column-gap: 20px; align-items: center; }
  .wc-cell { margin: 0; }
  .wc-live__grid { grid-template-columns: minmax(0, 1fr); }
  .wc-types__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
  .wc-type { display: block; }
}
@media (max-width: 760px) {
  .wc-q, .wc-q--identity { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .wc-q--identity .wc-panel { order: 0; }
  .wc-hero__frame { aspect-ratio: 4 / 3; }
  .wc-mech__list { grid-template-columns: minmax(0, 1fr); }
  .wc-mech__list li { margin-left: 0; padding-left: 0; border-left: 0; }
  /* the six gates stand in a column, the connectors run down */
  .wc-gates { grid-template-columns: minmax(0, 1fr); }
  .wc-gates li { padding: 0 0 18px 38px; min-height: 22px; line-height: 22px; }
  .wc-gates li:last-child { padding-bottom: 0; }
  .wc-gates li:not(:last-child)::before { left: 10px; right: auto; top: 26px; bottom: 4px; width: 2px; height: auto; transform-origin: top; }
  .wc-js .wc-q:not(.is-in) .wc-gates li::before { transform: scaleY(0); }
  .wc-js .wc-q.is-in .wc-gates li::before { animation-name: wc-grow; }
  .wc-route li { padding-left: 34px; }
  .wc-route li::before { left: 0; }
  .wc-route li:not(:last-child)::after { left: 6px; }
  .wc-end__actions .btn { width: 100%; justify-content: center; }
  .wc-src svg, .wc-type__ic { width: 76px; height: 76px; padding: 15px; }
  .wc-type__ic { margin-bottom: 14px; }
}

/* ============ REDUCED MOTION, PRINT ============
   The script adds no .wc-js under reduced motion, so every drawing already
   stands finished; this stops what CSS alone would still run. */
@media (prefers-reduced-motion: reduce) {
  .why-cells main *, .why-cells main *::before, .why-cells main *::after, .why-cells .hc-bar { animation: none !important; transition: none !important; }
  .wc-ray__sig { opacity: 0 !important; }
}
@media print {
  .why-cells .hc-bar { display: none; }
  /* everything folded on a phone prints open: no control to print beside it */
  .wc-fold > summary { display: none !important; }
  .why-cells main [data-r] { opacity: 1 !important; transform: none !important; }
  /* a printout is one still frame: nothing may be caught part way through moving */
  .why-cells main *, .why-cells main *::before, .why-cells main *::after { animation: none !important; transition: none !important; }
  .wc-vials, .wc-mech__side, .wc-arts__head, .wc-not__aside { position: static; }
  .wc-live, .wc-end { background: none; color: var(--ink); }
  .wc-live *, .wc-end * { color: var(--ink) !important; }
}
