/* ============================================================
   Entrepreneurship page — TAU-Israel iGEM 2026 wiki
   ------------------------------------------------------------
   Loaded only by wiki/pages/entrepreneurship.html (extra_head).
   Builds on style.css tokens. Follows the callout language: thin
   ink-3 borders, small radii, flat — no sticker shadows. The one
   exception is the TAM/SAM/SOM rings, which are round by nature.
   ============================================================ */

/* ------------------------------------------------------------
   Placeholders — dashed "[…]" slots waiting for content
   ------------------------------------------------------------ */
.ent-todo {
  display: inline;
  padding: 0 0.3em;
  border: 1px dashed var(--ink-3);
  border-radius: 2px;
  background: var(--paper-sink);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 400;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ent-todo--block {
  display: block;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Placeholders inside the dark table header row */
.table thead .ent-todo { background: transparent; color: var(--paper-edge); border-color: var(--ink-3); }

/* "input from: …" line inside a WIP callout */
.ent-src {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--rna-amber-deep);
  opacity: 0.8;
}

.ent-src::before { content: "↳ "; }

.ent-figure { margin: 1.25rem 0; }
.ent-figure--swot { margin: 0.75rem 0; }
.ent-figure--swot img { max-width: min(100%, 715px); margin-inline: auto; }
.ent-figure--patent img { max-width: min(100%, 720px); border: 1px solid var(--paper-edge); }

.ent-figure__img {
  display: block;
  max-width: min(100%, 520px);
  margin: 0 auto;
}

.ent-figcaption {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-top: 0.75rem;
}

.ent-ph {
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(26, 26, 26, 0.035) 14px 28px),
    var(--paper-sink);
  border: 1px dashed var(--ink-3);
  border-radius: var(--radius-sm);
}

.ent-ph__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   Shared bits
   ------------------------------------------------------------ */
.ent-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}

#wikiMain h3 { margin-top: 2.5rem; }

.ent-subhead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
}

.ent-list {
  padding-left: 1.1rem;
  margin: 0;
}

.ent-list li + li { margin-top: 0.3rem; }

.ent-table th, .ent-table td { vertical-align: top; }

/* ------------------------------------------------------------
   Competitive comparison table — capability rows against four
   named products and CERNAL. Marks are +/~/- with a short note;
   the glyph is decorative and each cell carries a spoken word.
   ------------------------------------------------------------ */
.ent-cmp { min-width: 46rem; }
.ent-cmp caption { caption-side: bottom; padding-top: 0.6rem; }
.ent-cmp thead th { vertical-align: bottom; }
.ent-cmp th[scope="row"] { font-weight: 700; min-width: 11rem; }
.ent-cmp__sub {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.ent-cmp__cell { text-align: center; }
.ent-cmp__mark { display: block; font-weight: 800; line-height: 1.1; }
.ent-cmp__note { display: block; font-size: 0.8125rem; }
/* Bootstrap paints every cell with an inset box-shadow, so the tint has to
   beat it on specificity and clear that shadow. */
.ent-cmp > tbody > tr > .ent-cmp__cell { box-shadow: none; }
.ent-cmp > tbody > tr > .ent-cmp__cell--yes { background-color: var(--gate-green-soft); }
.ent-cmp > tbody > tr > .ent-cmp__cell--part { background-color: var(--rna-amber-soft); }
.ent-cmp > tbody > tr > .ent-cmp__cell--no { background-color: var(--cernal-red-soft); }
.ent-cmp__us { border-inline: var(--border-w) solid var(--ink); }
.ent-cmp thead .ent-cmp__us { border-top: var(--border-w) solid var(--ink); }
.ent-cmp tbody tr:last-child .ent-cmp__us { border-bottom: var(--border-w) solid var(--ink); }

/* ------------------------------------------------------------
   Market size rings — the one deliberately round, "popping"
   graphic on the page.
   ------------------------------------------------------------ */
.ent-market {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1.25rem 0;
}

.ent-ring {
  position: relative;
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1;
}

.ent-ring > span {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The count under each ring's label. */
.ent-ring > span > b {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.ent-ring--tam {
  width: 100%;
  background: var(--pipe-blue-soft);
  box-shadow: var(--shadow-sticker);
}

.ent-ring--sam {
  width: 78%;
  margin-bottom: 4%;
  background: var(--pipe-shade);
}

.ent-ring--beach {
  width: 74%;
  margin-bottom: 4%;
  background: color-mix(in srgb, var(--pipe-blue) 45%, var(--pipe-shade));
}

.ent-ring--som {
  width: 58%;
  margin-bottom: 6%;
  background: var(--pipe-blue-deep);
  color: #fff;
}

.ent-ring--som > span { top: 26%; }

.ent-market__legend { margin: 0; }

.ent-market__row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--paper-edge);
}

.ent-market__row dt { font-weight: 700; color: var(--ink); }
.ent-market__row dd { margin: 0.25rem 0 0; }

.ent-market__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  margin-right: 0.3rem;
}

.ent-market__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
}

@media (max-width: 767.98px) {
  .ent-market { grid-template-columns: 1fr; }
  .ent-market__rings { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* The rings are the control (.ent-market--js is added by the page
   script). Pointing at a ring lights it, fades the other labels and
   shows its definition in the callout beside the rings; without
   script the callout stays hidden and the legend is listed instead. */
.ent-market--js .ent-ring {
  cursor: pointer;
  transition: box-shadow calc(var(--dur-base) * 1.8) var(--ease-standard),
              filter calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-market--js .ent-ring > span { transition: opacity calc(var(--dur-base) * 1.8) var(--ease-standard); }
.ent-market--js.is-probing .ent-ring > span { opacity: 0.25; }
.ent-market--js.is-probing .ent-ring.is-lit > span { opacity: 1; }

.ent-market--js .ent-ring.is-lit {
  box-shadow: 0 0 0 3px var(--cernal-red);
  filter: saturate(1.15);
}

.ent-market--js .ent-ring:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cernal-red); }

.ent-market__readout { display: none; }
.ent-market--js .ent-market__readout { display: block; min-height: 9rem; margin: 0; }
.ent-market--js .ent-market__legend { display: none; }

.ent-market__readout-value {
  display: inline-block;
  margin-right: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pipe-blue-deep);
}

.ent-market__readout-name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.container .ent-market__readout-def { margin: 0.35rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  .ent-market--js .ent-ring,
  .ent-market--js .ent-ring > span { transition: none; }
}

/* ------------------------------------------------------------
   Business model canvas (standard 9-block layout)
   ------------------------------------------------------------ */
.ent-bmc {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-areas:
    "part part act  act  val val rel  rel  seg seg"
    "part part res  res  val val chan chan seg seg"
    "cost cost cost cost cost rev rev  rev  rev rev";
  gap: 1px;
  background: var(--ink);            /* the 1px gaps draw the grid lines */
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}

.ent-bmc__cell {
  min-height: 7rem;
  padding: 0.8rem 0.9rem;
  background: var(--pipe-blue-soft);
}

.ent-bmc__cell .ent-kicker { color: var(--pipe-blue-deep); }

.ent-bmc__cell--partners      { grid-area: part; }
.ent-bmc__cell--activities    { grid-area: act; }
.ent-bmc__cell--resources     { grid-area: res; }
.ent-bmc__cell--value         { grid-area: val; background: var(--pipe-blue-deep); color: var(--card); }
.ent-bmc__cell--value .ent-kicker { color: var(--pipe-blue-soft); }
.ent-bmc__cell--value .ent-list li::marker { color: var(--pipe-blue-soft); }
.ent-bmc__cell--relationships { grid-area: rel; }
.ent-bmc__cell--channels      { grid-area: chan; }
.ent-bmc__cell--segments      { grid-area: seg; }
.ent-bmc__cell--costs         { grid-area: cost; }
.ent-bmc__cell--revenue       { grid-area: rev; }

@media (max-width: 991.98px) {
  .ent-bmc {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "seg  val"
      "rel  chan"
      "act  res"
      "part part"
      "rev  cost";
  }
}

@media (max-width: 575.98px) {
  .ent-bmc {
    grid-template-columns: 1fr;
    grid-template-areas: "seg" "val" "chan" "rel" "rev" "act" "res" "part" "cost";
  }
}

/* ------------------------------------------------------------
   Financials
   ------------------------------------------------------------ */
.ent-table--num td { text-align: right; font-variant-numeric: tabular-nums; }
/* Row header left, the calculation column centred, the count right — each
   header sits over its own values. */
.ent-table--num thead th:not(:first-child) { text-align: right; }
.ent-table--num thead th:nth-child(2),
.ent-table--num tbody td:nth-child(2) { text-align: center; }
.ent-row--total > * { font-weight: 800; border-top: var(--border-w) solid var(--ink); }


/* ------------------------------------------------------------
   Risk matrix
   ------------------------------------------------------------ */
.ent-risk {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}

.ent-risk__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  aspect-ratio: 1;
  background: var(--ink-3);          /* the 1px gaps draw the grid lines */
  border: 1px solid var(--ink);
}

.ent-risk__cell {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 4px;
}

.ent-risk__cell--low  { background: var(--acc-green-soft); }
.ent-risk__cell--mid  { background: var(--acc-gold-soft); }
.ent-risk__cell--high { background: var(--cernal-red-soft); }

.ent-risk__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

a.ent-risk__tag:hover { background: var(--ink); color: var(--paper); }

.ent-risk__axis {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}

.ent-risk__axis--x { bottom: 0; right: 0; }

.ent-risk__axis--y {
  top: 0;
  left: 0;
  transform-origin: left top;
  transform: rotate(-90deg) translateX(-100%);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Board & advisors
   ------------------------------------------------------------ */
.ent-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.ent-person__photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  align-self: center;
}

.ent-person__photo--ph {
  display: block;
  background: var(--paper-sink);
  border-style: dashed;
  border-color: var(--ink-3);
}

.ent-person__role { font-size: 0.875rem; color: var(--ink-3); }
.ent-person__why { font-size: 0.875rem; margin-top: 0.35rem; }

/* ------------------------------------------------------------
   Appendix — document cards
   ------------------------------------------------------------ */
.ent-doc {
  color: var(--ink);
  text-decoration: none;
}

a.ent-doc:hover { color: var(--ink); text-decoration: none; }

/* Document not uploaded yet: dashed, flat card */
.ent-doc--ph {
  background: var(--paper-sink);
  border-style: dashed;
  border-color: var(--ink-3);
  box-shadow: none;
}

.ent-doc__desc { font-size: 0.875rem; color: var(--ink-3); }

/* ------------------------------------------------------------
   Robot section graphics
   Heading + takeaway/WIP on the left, the robot on the right.
   ------------------------------------------------------------ */
.ent-sec-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.ent-sec-head__text { flex: 1; min-width: 0; }
.ent-sec-head--part { align-items: center; }
.ent-sec-head--part > h2 { flex: 1; margin: 0; }

.ent-robot {
  flex: 0 0 170px;
  width: 170px;
  margin: 0;
}

.ent-sec-head--part .ent-robot { flex-basis: 130px; width: 130px; }

.ent-robot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 575.98px) {
  .ent-sec-head { flex-direction: column-reverse; align-items: stretch; }
  .ent-sec-head--part { flex-direction: row; }
  .ent-robot { align-self: center; }
}

/* Sub-blocks for sections with more than one robot: text on one side,
   robot on the other; --flip puts the robot on the left. */
.ent-duo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.ent-duo--flip { flex-direction: row-reverse; }
.ent-duo__text { flex: 1; min-width: 0; }
.ent-duo__text .ent-subhead { margin-top: 0; }

/* Lorem filler — visibly placeholder; delete with the lorem() macro */
.ent-lorem { color: var(--ink-3); margin: 0; }

@media (max-width: 575.98px) {
  .ent-duo, .ent-duo--flip { flex-direction: column-reverse; align-items: stretch; }
}

/* ------------------------------------------------------------
   Vision pyramid — flipping circles, 1 → 2 → 4
   Front = title, back = text. Hover flips on a mouse; a click, tap
   or Enter/Space pins it (.is-flipped, toggled in the page script).
   The four columns are equal, so a branch sits centred over its two
   leaves and the vision centred over the two branches.
   ------------------------------------------------------------ */
.ent-pyramid {
  --flip-size: 190px;
  --flip-size-l1: 250px;       /* the vision circle also carries the graphic */
  position: relative;
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  /* The leaf backs are wider than their circles and occupy that space even
     while hidden, which would widen the page. Clip sideways only: a flipped
     back still needs to spill over the rows above and below it. */
  overflow-x: clip;
}

.ent-pyramid__row {
  display: grid;
  justify-items: center;
}

.ent-pyramid__row--top  { grid-template-columns: 1fr; }
.ent-pyramid__row--mid  { grid-template-columns: repeat(2, 1fr); }
.ent-pyramid__row--base { grid-template-columns: repeat(4, 1fr); }

/* Connectors: a stem down from the parent, then a bracket out to the
   centres of its two children. */
.ent-pyramid__links {
  display: grid;
  height: 44px;
}

.ent-pyramid__links--1 { grid-template-columns: 1fr; }
.ent-pyramid__links--2 { grid-template-columns: repeat(2, 1fr); }

.ent-pyramid__links > span {
  position: relative;
  width: 50%;
  justify-self: center;
  margin-top: 22px;
  border: var(--border-w) solid var(--ink);
  border-bottom: 0;
}

.ent-pyramid__links > span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 22px;
  border-left: var(--border-w) solid var(--ink);
  transform: translateX(-50%);
}

/* Width is capped by --flip-size but never exceeds the grid column, so the
   base row shrinks to fit instead of pushing the page sideways on the
   narrower desktop widths where the table of contents takes a slice of the
   column. aspect-ratio keeps them circular at whatever width wins. */
.ent-flip {
  position: relative;
  width: min(var(--flip-size), 100%);
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 800px;
  border-radius: 50%;
  transition: transform calc(var(--dur-fast) * 1.8) var(--ease-standard);
}

/* A flipped circle lifts above its neighbours, because the leaf backs are
   wider than the circles they belong to (see below). */
.ent-flip.is-flipped { z-index: 5; }

@media (hover: hover) {
  .ent-flip:hover { z-index: 5; }
}

.ent-flip:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.ent-flip__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease-standard);
}

.ent-flip.is-flipped .ent-flip__inner { transform: rotateY(180deg); }

@media (hover: hover) {
  .ent-flip:hover .ent-flip__inner { transform: rotateY(180deg); }
}

.ent-flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  text-align: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ent-flip__face--front {
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* The vision circle is larger and holds its graphic above the word. */
.ent-flip--l1 { width: min(var(--flip-size-l1), 100%); }

.ent-flip__img {
  display: block;
  width: 62%;
  height: auto;
  margin-bottom: 0.15rem;
}

.ent-flip__face--front small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.3;
}

/* Tier by level: the vision is solid, branches mid, leaves light. */
/* The vision circle carries a graphic whose artwork sits on white, so this
   face is white with a heavy blue ring rather than solid blue. Size and ring
   weight, not fill, mark it as the top of the pyramid. */
.ent-flip--l1 .ent-flip__face {
  border: var(--border-w-bold) solid var(--pipe-blue);
}

.ent-flip--l1 .ent-flip__face--front {
  background: var(--card);
  color: var(--pipe-blue-deep);
  font-size: 1.5rem;
}
.ent-flip--l2 .ent-flip__face--front { background: var(--pipe-shade); color: var(--ink); font-size: 1.1rem; }
.ent-flip--l3 .ent-flip__face--front { background: var(--pipe-blue-soft); color: var(--pipe-blue-deep); font-size: 1rem; }

.ent-flip__face--back {
  background: var(--card);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.35;
  transform: rotateY(180deg);
}

/* Leaf backs. The leaf circles are the smallest and carry much the longest
   backs (the vivid description runs to 35 words), so a back may open WIDER
   than its circle, centred on it. The page script sets the width to the
   smallest circle the text fits in; 170% is only the no-script fallback.
   Growing the box lets the text reflow at a readable size; scaling the
   circle instead would magnify the text by the same factor and gain
   nothing. The front, and so the pyramid's geometry, is untouched. */
.ent-flip--l3 .ent-flip__face--back {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 170%;
  height: 170%;
  font-size: 0.75rem;
  line-height: 1.3;
  transform: translate(-50%, -50%) rotateY(180deg);
  box-shadow: var(--shadow-sm);
}

/* Shaped backs: running text follows the circle. Two half-width floats
   carve the circle out of the square box (everything outside the ring, plus
   a margin, is "float"), so lines are short at the top and bottom and long
   across the middle instead of forming a block. The lead is a spacer the
   script uses to centre text that does not fill the circle. */
.ent-flip--l3 .ent-flip__face--shaped {
  display: block;
  padding: 0;
}

.ent-flip__edge {
  float: left;
  width: 50%;
  height: 100%;
  shape-outside: radial-gradient(farthest-side at right, transparent calc(100% - 0.8rem), #000 calc(100% - 0.8rem));
}

.ent-flip__edge + .ent-flip__edge {
  float: right;
  shape-outside: radial-gradient(farthest-side at left, transparent calc(100% - 0.8rem), #000 calc(100% - 0.8rem));
}

.ent-flip__lead,
.ent-flip__text { display: block; }

@media (prefers-reduced-motion: reduce) {
  .ent-flip__inner,
  .ent-flip { transition: none; }
}

/* Attention hint: a soft ring that pulses now and then on circles nobody has
   opened yet. The page script adds .is-unseen to every
   circle, re-triggers .is-hint when a circle scrolls into view and then once a
   second for about 5 s, and removes both as soon as the circle is pressed. To switch the ring colour, change --ent-hint
   (red is reserved for alerts and safety, so it is the primary blue). */
.ent-pyramid { --ent-hint: var(--pipe-blue); }

.ent-flip::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--ent-hint);
  opacity: 0;
  pointer-events: none;
}

.ent-flip.is-hint::after { animation: ent-flip-hint 0.9s ease-out 1; }

@keyframes ent-flip-hint {
  0%   { opacity: 0;   transform: scale(0.97); }
  30%  { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.08); }
}

/* Reduced motion: no pulse, a static faint ring on unopened circles instead. */
@media (prefers-reduced-motion: reduce) {
  .ent-flip.is-unseen::after { opacity: 0.45; border-width: 2px; }
  .ent-flip.is-hint::after { animation: none; }
}

.ent-pyramid__hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.8rem;
  color: var(--ink);
}

/* Narrow screens: four circles no longer fit in a row, so the base
   becomes 2 × 2 with each pair stacked under its own branch, and the
   connectors (which assume the 4-across layout) are dropped. Above this
   width the circles shrink to their column rather than overflowing. */
@media (max-width: 767.98px) {
  .ent-pyramid { --flip-size: 168px; --flip-size-l1: 210px; }
  .ent-flip__face--back { font-size: 0.75rem; line-height: 1.3; padding: 1.1rem; }
  .ent-pyramid__links { display: none; }
  .ent-pyramid__row { row-gap: 1rem; margin-bottom: 1rem; }
  .ent-pyramid__row--base { grid-template-columns: repeat(2, 1fr); grid-auto-flow: column; grid-template-rows: auto auto; }
}

/* The outermost leaves open inward, so their wide backs stay inside the
   pyramid instead of running past the page edge (right) or over the table
   of contents (left). The sides look swapped on purpose: the flip mirrors
   the back about the circle's centre, so a back laid out to the right of
   its circle is seen to the left of it. Only in the 4-across layout: in the
   2 x 2 one a centred back already fits. */
@media (min-width: 768px) {
  .ent-pyramid__row--base .ent-flip:first-child .ent-flip__face--back {
    left: auto;
    right: 0;
    transform: translateY(-50%) rotateY(180deg);
  }

  .ent-pyramid__row--base .ent-flip:last-child .ent-flip__face--back {
    left: 0;
    transform: translateY(-50%) rotateY(180deg);
  }
}

/* Phones: the leaf backs open wider than their circle, and a back centred on
   a circle in the right-hand column would run off the screen and widen the
   document. One circle per row keeps every back centred in the viewport. */
@media (max-width: 575.98px) {
  .ent-pyramid__row--base {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-template-rows: none;
  }
}

/* A short list on the back of a circle (core values) */
.ent-flip__points { display: block; font-size: 0.7rem; line-height: 1.25; }
.ent-flip__points > span { display: block; font-weight: 700; }
.ent-flip__points > span + span { margin-top: 0.25rem; padding-top: 0.25rem; border-top: 1px solid var(--paper-edge); }

/* Mission statement */
.ent-mission {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.ent-mission__tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--pipe-blue-deep);
  margin: 0;
}

.ent-mission__tag::before { content: "// "; }

.ent-robot-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ent-robot-row__text { flex: 1; min-width: 0; }

@media (max-width: 575.98px) {
  .ent-robot-row { flex-direction: column-reverse; align-items: stretch; }
  .ent-robot-row .ent-robot { align-self: center; }
}

/* Robot on the left of its text (desktop only; phones keep the stacked order) */
@media (min-width: 576px) {
  .ent-robot-row--left { flex-direction: row-reverse; }
}

/* ------------------------------------------------------------
   Lean pyramid — three stacked tiers, built from the base up
   The list is in reading order (vision first); column-reverse puts
   the product on top. Widths step down towards the top. The side
   question sits beside each tier, and above it on phones.
   Violet = the CERNAL platform, teal = method, deep blue = chrome.
   The hidden start state exists only under .ent-lean--js, which the
   page script adds, so no script means every tier is visible.
   ------------------------------------------------------------ */
.container .ent-lean {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ent-lean__tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  align-items: center;
  column-gap: 0.75rem;
  --lean-w: 100%;
}

.ent-lean__tier--vision   { --lean-w: 100%; }
.ent-lean__tier--strategy { --lean-w: 80%; }
.ent-lean__tier--product  { --lean-w: 60%; }

.ent-lean__body {
  justify-self: center;
  width: var(--lean-w);
  padding: 1rem 1.25rem;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--card);
  text-align: center;
  line-height: 1.35;
}

.ent-lean__tier--vision .ent-lean__body   { background: var(--pipe-blue-deep); }
.ent-lean__tier--strategy .ent-lean__body { background: var(--acc-teal); }
.ent-lean__tier--product .ent-lean__body  { background: var(--acc-violet); }

.ent-lean__name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ent-lean__head {
  display: block;
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.ent-lean__line { display: block; font-size: 0.875rem; }

.ent-lean__ask {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.ent-lean__ask::before {
  content: "";
  flex: 0 0 1.25rem;
  border-top: var(--border-w) solid var(--ink);
}

/* Pointing at a tier brings it forward; the other two recede. */
.ent-lean__body {
  transition: transform 576ms var(--ease-standard), filter 576ms var(--ease-standard);
}

.ent-lean__ask { transition: color 576ms var(--ease-standard); }
.ent-lean:hover .ent-lean__body,
.ent-lean:focus-within .ent-lean__body { filter: saturate(0.5) opacity(0.72); }
.ent-lean:hover .ent-lean__ask,
.ent-lean:focus-within .ent-lean__ask { color: var(--ink-3); }

.ent-lean__tier:hover .ent-lean__body,
.ent-lean__tier:focus-visible .ent-lean__body {
  filter: none;
  transform: scale(1.03);
}

.ent-lean__tier:hover .ent-lean__ask,
.ent-lean__tier:focus-visible .ent-lean__ask { color: var(--ink); }
.ent-lean__tier:focus-visible { outline: none; }
.ent-lean__tier:focus-visible .ent-lean__body { outline: var(--border-w) solid var(--ink); outline-offset: 3px; }

.ent-lean--js .ent-lean__tier {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1377ms var(--ease-standard), transform 1377ms var(--ease-standard);
}

.ent-lean--js.is-built .ent-lean__tier { opacity: 1; transform: none; }
.ent-lean--js.is-built .ent-lean__tier--strategy { transition-delay: 918ms; }
.ent-lean--js.is-built .ent-lean__tier--product { transition-delay: 1836ms; }

@media (prefers-reduced-motion: reduce) {
  .ent-lean--js .ent-lean__tier { opacity: 1; transform: none; transition: none; }
  .ent-lean__body, .ent-lean__ask { transition: none; }
  .ent-lean__tier:hover .ent-lean__body,
  .ent-lean__tier:focus-visible .ent-lean__body { transform: none; }
}

@media (max-width: 575.98px) {
  .ent-lean__tier { grid-template-columns: minmax(0, 1fr); row-gap: 0.25rem; }
  .ent-lean__tier--vision   { --lean-w: 100%; }
  .ent-lean__tier--strategy { --lean-w: 90%; }
  .ent-lean__tier--product  { --lean-w: 80%; }
  .ent-lean__body { padding: 0.8rem 0.9rem; }
  .ent-lean__ask { order: -1; font-size: 1rem; }
  .ent-lean__ask::before { display: none; }
}

/* ------------------------------------------------------------
   Headline numbers (customer discovery)
   ------------------------------------------------------------ */
.ent-stats {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.ent-stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ent-stats--two  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ent-stat {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-top: var(--border-w-bold) solid var(--pipe-blue);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.ent-stat dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pipe-blue-deep);
}

.ent-stat dd {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .ent-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .ent-stat dt { font-size: 1.4rem; }
}

/* ------------------------------------------------------------
   Concierge pipeline (MVP): four stage cards, a detail panel under
   the row, what compounds, and a proportional timeline.
   Stage colours: teal, violet (platform), deep blue, kraft.
   Without script all four panels show and the cards are plain
   labels; .ent-cp--js (added by the page script) turns on the
   click behaviour. Flat, no shadows, no animation.
   ------------------------------------------------------------ */
.ent-cp {
  --cp-gap: 1.5rem;
  margin: 1.25rem 0 1.5rem;
}

.ent-cp__item--1, .ent-cp__panel--1, .ent-cp__seg--1 { --cp-accent: var(--acc-teal);     --cp-soft: var(--acc-teal-soft); }
.ent-cp__item--2, .ent-cp__panel--2, .ent-cp__seg--2 { --cp-accent: var(--acc-violet);   --cp-soft: var(--acc-violet-soft); }
.ent-cp__item--3, .ent-cp__panel--3                  { --cp-accent: var(--pipe-blue-deep); --cp-soft: var(--pipe-blue-soft); }
.ent-cp__item--4, .ent-cp__panel--4, .ent-cp__seg--4 { --cp-accent: var(--acc-kraft);    --cp-soft: var(--acc-kraft-soft); }

.ent-cp__loop {
  position: relative;
  margin: 0 0 0.5rem calc(37.5% - var(--cp-gap) / 8);
  width: calc(50% + var(--cp-gap) / 2);
  padding: 0.15rem 0.5rem 1rem;
  border: var(--border-w) solid var(--pipe-blue);
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--pipe-blue);
}

.ent-cp__loop::after {
  content: "\25BC";
  position: absolute;
  left: -0.5rem;
  bottom: -0.55rem;
  font-size: 0.7rem;
  line-height: 1;
}

.ent-cp__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--cp-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ent-cp__item { position: relative; display: flex; }

.ent-cp__item:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--cp-gap));
  width: var(--cp-gap);
  transform: translateY(-50%);
  text-align: center;
  font-size: 1.1rem;
  color: var(--pipe-blue);
}

.ent-cp__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 0.5rem 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  cursor: default;
  pointer-events: none;
}

.ent-cp--js .ent-cp__card {
  position: relative;
  padding-top: 1.35rem;
  cursor: pointer;
  pointer-events: auto;
  border: var(--border-w) solid var(--cp-accent);
  box-shadow: 0 2px 0 var(--cp-accent);
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard);
}

/* Press affordance: a small mono tag in the corner says the card is a button. */
.ent-cp--js .ent-cp__card::after {
  content: "PRESS";
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cp-accent);
}

.ent-cp--js .ent-cp__card[aria-expanded="true"]::after { content: "OPEN"; }

.ent-cp--js .ent-cp__card:hover {
  background: var(--cp-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--cp-accent);
}

.ent-cp--js .ent-cp__card:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--cp-accent); }
.ent-cp__card:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ent-cp--js .ent-cp__card { transition: none; }
  .ent-cp--js .ent-cp__card:hover,
  .ent-cp--js .ent-cp__card:active { transform: none; }
}

.ent-cp--js .ent-cp__card[aria-expanded="true"] {
  background: var(--cp-soft);
  border: var(--border-w) solid var(--cp-accent);
}

.ent-cp__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--cp-accent);
  color: var(--card);
  font-family: var(--font-display);
  font-weight: 700;
}

.ent-cp__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.ent-cp__who {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--cp-accent);
}

.ent-cp__out {
  grid-column: 1 / -1;
  align-self: end;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--cp-accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cp-accent);
  background: var(--card);
}

.ent-cp__panels { margin: 1rem 0 0; }

.ent-cp__panel {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1.1rem 0.4rem;
  background: var(--cp-soft);
  border-left: var(--border-w-bold) solid var(--cp-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ent-cp__panel p:last-child { margin-bottom: 0.6rem; }
.ent-cp__docs { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.ent-cp__kicker {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.ent-cp__gain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ent-cp__gain-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-left: var(--border-w-bold) solid var(--cp-gain);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ent-cp__gain-card strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--cp-gain); }
.ent-cp__gain-card--gates { --cp-gain: var(--acc-teal); }
.ent-cp__gain-card--rules { --cp-gain: var(--acc-kraft); }

.ent-cp__time {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.25rem;
}

.ent-cp__bar { display: flex; flex: 1 1 auto; min-width: 0; }

.ent-cp__seg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.ent-cp__seg::after {
  content: "";
  height: 1.6rem;
  background: var(--cp-accent);
}

.ent-cp__seg--1 { flex: 1 1 0; }
.ent-cp__seg--2 { flex: 1 1 0; }
.ent-cp__seg--4 { flex: 5.5 1 0; }

.ent-cp__total {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--acc-teal);
}

@media (max-width: 767.98px) {
  .ent-cp__loop {
    margin: 0 0 0.6rem;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .ent-cp__loop::after { display: none; }
  .ent-cp__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .ent-cp__item:not(:last-child)::after { display: none; }
  .ent-cp__gain { grid-template-columns: minmax(0, 1fr); }
  .ent-cp__time { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .ent-cp__card { padding: 0.7rem; gap: 0.45rem 0.5rem; }
  .ent-cp__title { font-size: 0.9rem; overflow-wrap: anywhere; }
  .ent-cp__seg { font-size: 0.6875rem; }
  .ent-cp__dot { display: none; }
  .ent-cp__lab span:not(.ent-cp__dot) { display: block; }
}

/* Documents & Appendix header: three robots in one row */
.ent-robots { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.ent-sec-head--part .ent-robots .ent-robot { flex-basis: 96px; width: 96px; }

/* ------------------------------------------------------------
   Early roadmap timeline (ent-rm-*): 21 quarter columns, 2026-2031
   ------------------------------------------------------------ */
.ent-rm { margin: 1.25rem 0 1.5rem; }
.ent-rm__scroll {
  overflow-x: auto;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-md);
  background: var(--card);
}
.ent-rm__board {
  display: grid;
  grid-template-columns: 2.4rem 14.5rem repeat(21, minmax(3rem, 1fr));
  grid-auto-rows: minmax(2.75rem, auto);
  min-width: 82rem;
  position: relative;
  font-size: 0.78rem;
  color: var(--text-body);
}
.ent-rm--wet { --c: var(--pipe-blue); --c-soft: var(--pipe-blue-soft); }
.ent-rm--sw { --c: var(--acc-violet); --c-soft: var(--acc-violet-soft); }
.ent-rm--com { --c: var(--acc-kraft); --c-soft: var(--acc-kraft-soft); }
.ent-rm--sup { --c: var(--acc-teal); --c-soft: var(--acc-teal-soft); }

.ent-rm__phase {
  grid-row: 1;
  margin: 0.4rem 1px 0;
  padding: 0.2rem 0;
  background: var(--paper-sink);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.ent-rm__year {
  padding: 0.25rem 0.2rem 0.25rem 0.3rem;
  border-left: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--ink-3);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-strong);
  overflow: hidden;
}
.ent-rm__track {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.15rem 0.3rem 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--c-soft);
  border-left: 4px solid var(--c);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}
.ent-rm__track span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.ent-rm__label {
  align-self: center;
  padding: 0.2rem 0.5rem 0.2rem 0;
  line-height: 1.25;
  color: var(--text-strong);
}
.ent-rm__label small { display: block; color: var(--text-muted); font-size: 0.85em; }
.ent-rm__bar {
  align-self: start;
  margin-top: 0.3rem;
  height: 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--c);
  z-index: 1;
}
.ent-rm__bar--planned {
  background: var(--c-soft);
  border: 2px dashed var(--c);
}
.ent-rm__badge {
  align-self: center;
  justify-self: start;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--c);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}
.ent-rm__dec {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  pointer-events: none;
}
.ent-rm__dec span { padding: 0 0.25rem; background: var(--card); }
.ent-rm__dec--end { flex-direction: row-reverse; justify-content: flex-start; }
.ent-rm__diamond {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ink);
  transform: rotate(45deg);
}
.ent-rm__dec:not(.ent-rm__dec--end) .ent-rm__diamond { margin-left: -0.35rem; }
.ent-rm__today-line {
  border-left: 2px dashed var(--ink);
  z-index: 3;
  pointer-events: none;
}
.ent-rm__today {
  align-self: start;
  justify-self: end;
  margin-right: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text-strong);
}
.ent-rm__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ent-rm__legend li { display: flex; align-items: center; gap: 0.4rem; }
.ent-rm__key {
  width: 1.2rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--c);
}
.ent-rm__key--planned {
  background: var(--paper-sink);
  border: 2px dashed var(--ink-3);
}


/* ============================================================
   THE OPENING
   ------------------------------------------------------------
   A title card, the lead, and the four-stage journey that
   replaces the old arrow flow. Everything animates once, on
   entry, and every start state lives behind a script-added
   class, so with JavaScript off or reduced motion on, the whole
   opening is simply present and still.
   ============================================================ */
.ent-opening {
  position: relative;
  margin: 0 0 2rem;
  padding: 2rem 0 0;
  overflow: hidden;
}

/* A faint blueprint grid, drifting very slowly. Decoration only:
   it sits behind the type and never touches contrast. */
.ent-opening__grid {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 220%;
  background-image:
    linear-gradient(to right, var(--paper-edge) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-edge) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(120% 70% at 20% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 70% at 20% 30%, #000 0%, transparent 70%);
  pointer-events: none;
  animation: ent-grid-drift 108s linear infinite;
}

@keyframes ent-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

.ent-opening > *:not(.ent-opening__grid) { position: relative; }

.ent-lead { margin: 0 0 1.75rem; }

.ent-lead__display {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
  max-width: 24ch;
}

/* The display sentence arrives a word at a time. The spans are
   built by script; without it the sentence is plain text. */
.ent-lead__display .ent-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: ent-word-in 1116ms var(--ease-standard) forwards;
  animation-delay: calc(var(--w) * 69ms);
}

@keyframes ent-word-in {
  to { opacity: 1; transform: none; }
}

.ent-lead__text {
  max-width: 46rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------------------------------------
   The journey — Need, Design, Validate, Scale, then the closing
   element. A rail draws itself left to right, the stations land
   in order, and a pulse travels the finished rail once.
   ------------------------------------------------------------ */
.ent-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 0.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 2.4rem 0 0;
}

/* The rail and the pulse that runs along it. */
.ent-journey__rail {
  position: absolute;
  top: 2.4rem;
  left: 9%;
  right: 14%;
  height: 2px;
  background: var(--paper-edge);
  transform-origin: left center;
}

.ent-journey--js .ent-journey__rail { transform: scaleX(0); }

.ent-journey--js.is-built .ent-journey__rail {
  transform: scaleX(1);
  transition: transform 1620ms var(--ease-standard);
}

.ent-journey__pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cernal-red);
  opacity: 0;
}

.ent-journey.is-built .ent-journey__pulse {
  animation: ent-pulse-run 3.96s var(--ease-standard) 1620ms 1 forwards;
}

@keyframes ent-pulse-run {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.ent-journey__stage { position: relative; text-align: center; }

.ent-journey__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: -2.4rem auto 0.6rem;
  border-radius: 50%;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  color: var(--pipe-blue-deep);
  transition: transform calc(var(--dur-base) * 1.8) var(--ease-bounce),
              border-color calc(var(--dur-base) * 1.8) var(--ease-standard),
              background calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-journey__dot svg { width: 1.25rem; height: 1.25rem; }

.ent-journey__stage--goal .ent-journey__dot {
  background: var(--pipe-blue-deep);
  border-color: var(--pipe-blue-deep);
  color: var(--paper);
}

.ent-journey__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--ink);
}

.ent-journey__stage--goal .ent-journey__label { color: var(--pipe-blue-deep); }

/* Station entrance, staggered behind the rail. */
.ent-journey--js .ent-journey__stage {
  opacity: 0;
  transform: translateY(10px);
}

.ent-journey--js.is-built .ent-journey__stage {
  opacity: 1;
  transform: none;
  transition: opacity 828ms var(--ease-standard), transform 828ms var(--ease-bounce);
  transition-delay: calc(432ms + var(--i) * 306ms);
}

/* Hovering a station lifts it; the others stay put. */
.ent-journey__stage:hover .ent-journey__dot,
.ent-journey__stage:focus-within .ent-journey__dot {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--cernal-red);
}

@media (prefers-reduced-motion: reduce) {
  .ent-opening__grid { animation: none; }
  .ent-lead__display .ent-word { opacity: 1; transform: none; animation: none; }
  .ent-journey--js .ent-journey__stage { opacity: 1; transform: none; transition: none; }
  .ent-journey__rail { transform: scaleX(1); transition: none; }
  .ent-journey.is-built .ent-journey__pulse { animation: none; opacity: 0; }
  .ent-journey__stage:hover .ent-journey__dot { transform: none; }
}

@media (max-width: 575.98px) {
  .ent-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.5rem; padding-top: 0; }
  .ent-journey__rail, .ent-journey__pulse { display: none; }
  .ent-journey__dot { margin-top: 0; width: 2.5rem; height: 2.5rem; }
  .ent-journey__stage--goal { grid-column: 1 / -1; }
}


/* ------------------------------------------------------------
   Evidence strip - the figures already argued below, surfaced at
   the top. Every tile links to the section that carries it, and
   every value is quoted from that section unchanged. Tiles use the
   callout language (pale blue wash, thin ink border) without the
   corner brackets, which would crowd six tiles.
   ------------------------------------------------------------ */
.ent-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .ent-evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ent-evidence__item { margin: 0; }

.ent-evidence__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--pipe-blue-soft) 55%, var(--card));
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color calc(var(--dur-fast) * 1.8) var(--ease-standard),
              transform calc(var(--dur-fast) * 1.8) var(--ease-standard);
}

.ent-evidence__link:hover,
.ent-evidence__link:focus-visible {
  border-color: var(--pipe-blue-deep);
  transform: translateY(-2px);
  text-decoration: none;
}

.ent-evidence__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pipe-blue-deep);
  font-variant-numeric: tabular-nums;
}

.ent-evidence__label {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.ent-evidence__where {
  margin-top: auto;
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pipe-blue-deep);
}

.ent-evidence__where::before { content: "// "; }

/* Patent tile: a slow blue to red cross-fade so the filed patent stands out.
   Red is outside its usual alerts-only role here, by explicit request. */
.ent-evidence__item--patent .ent-evidence__link {
  animation: ent-patent-shift 4s ease-in-out infinite alternate;
}

@keyframes ent-patent-shift {
  from {
    background: color-mix(in srgb, var(--pipe-blue-soft) 55%, var(--card));
    border-color: var(--pipe-blue-deep);
  }
  to {
    background: color-mix(in srgb, var(--cernal-red-soft) 70%, var(--pipe-blue-soft));
    border-color: color-mix(in srgb, var(--cernal-red) 45%, var(--pipe-blue-deep));
  }
}

.ent-evidence__item--patent .ent-evidence__value,
.ent-evidence__item--patent .ent-evidence__where {
  animation: ent-patent-ink 4s ease-in-out infinite alternate;
}

@keyframes ent-patent-ink {
  from { color: var(--pipe-blue-deep); }
  to   { color: color-mix(in srgb, var(--cernal-red) 55%, var(--pipe-blue-deep)); }
}

@media (prefers-reduced-motion: reduce) {
  .ent-evidence__item--patent .ent-evidence__link,
  .ent-evidence__item--patent .ent-evidence__value,
  .ent-evidence__item--patent .ent-evidence__where { animation: none; }
  .ent-evidence__link { transition: none; }
  .ent-evidence__link:hover,
  .ent-evidence__link:focus-visible { transform: none; }
}

/* ------------------------------------------------------------
   Act dividers - six acts grouping the sections already here, in
   the order they were already in. Each is a blue callout with an
   icon circle (the same circle as the opening journey), a kicker,
   the act title and jump chips to its sections.

   The title is a <p role="heading" aria-level="2"> rather than a
   real <h2>: static/toc.js collects h2/h3 by tag name, so a real
   heading would land in the rail twice. The kicker is a <span>, not
   the callout's usual <h4>, so the callout's automatic "// NOTE"
   kicker is switched off here.
   ------------------------------------------------------------ */
.bd-callout.ent-act {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 4rem 0 0.5rem;
  padding: 1.1rem 1.25rem;
  scroll-margin-top: 80px;
}

.bd-callout.ent-act::before { content: none; display: none; }

.ent-act__dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  color: var(--pipe-blue-deep);
  transition: transform calc(var(--dur-base) * 1.8) var(--ease-bounce),
              border-color calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-act__dot svg { width: 1.5rem; height: 1.5rem; }

.ent-act:hover .ent-act__dot {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--cernal-red);
}

.ent-act__text { flex: 1; min-width: 0; }

.ent-act__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--pipe-blue-deep);
}

.ent-act__kicker::before { content: "// "; }

.container .ent-act__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

/* The sections this act contains, as jump chips. The labels are the
   section headings themselves, so this adds navigation, not copy. */
.ent-act__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  padding: 0;
}

.ent-act__chips a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  transition: border-color calc(var(--dur-fast) * 1.8) var(--ease-standard),
              color calc(var(--dur-fast) * 1.8) var(--ease-standard);
}

.ent-act__chips a:hover,
.ent-act__chips a:focus-visible {
  color: var(--pipe-blue-deep);
  border-color: var(--pipe-blue-deep);
}

@media (prefers-reduced-motion: reduce) {
  .ent-act__dot { transition: none; }
  .ent-act:hover .ent-act__dot { transform: none; }
}

@media (max-width: 575.98px) {
  .bd-callout.ent-act { align-items: flex-start; gap: 0.8rem; padding: 0.9rem 1rem; }
  .ent-act__dot { width: 2.75rem; height: 2.75rem; }
  .ent-act__dot svg { width: 1.2rem; height: 1.2rem; }
}

/* ------------------------------------------------------------
   Contents rail — act group labels, inserted by this page's own
   script after toc.js has built the list.
   ------------------------------------------------------------ */
.wiki-toc__group {
  margin-top: 1rem;
  padding: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--paper-edge);
}

.wiki-toc__list > li:first-child .wiki-toc__group { margin-top: 0; }

.wiki-toc__group--here { color: var(--pipe-blue-deep); border-bottom-color: var(--pipe-blue); }


/* SWOT detail: four neutral cards in a 2x2 grid (one column on phones).
   Order is Strengths, Weaknesses, Opportunities, Threats. The kicker is plain
   horizontal text under the heading and shows at every width. */
.ent-swotgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
@media (min-width: 768px) {
  .ent-swotgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ent-swotgrid__cell {
  min-width: 0;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ent-swotgrid__head { margin-bottom: 0.75rem; }
.ent-swotgrid__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.ent-swotgrid__kicker {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   Survey bar charts. Drawn here rather than shown as images, so
   each bar can grow from zero to its own height on first view.
   The height is set inline from count / respondents; the script
   only toggles .is-grown, so without it the bars are simply at
   full height.
   ------------------------------------------------------------ */
.ent-bar { margin: 0; }

.ent-bar__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.ent-bar__plot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: 0.5rem;
  height: 13rem;
  padding-bottom: 3.6rem;
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.ent-bar__col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.ent-bar__value {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.ent-bar__value small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.ent-bar__fill {
  display: block;
  height: var(--h);
  min-height: 2px;
  background: var(--bar-accent, var(--pipe-blue));
  border: 1px solid var(--ink);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* The label sits below the axis, so a long one cannot squash the bar. */
.ent-bar__label {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  padding-top: 0.45rem;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* Growth. Scaling from the bottom keeps the value label still and the
   motion cheap; the start state exists only once the script opts in. */
.ent-charts--grow .ent-bar__fill {
  transform: scaleY(0);
  transform-origin: bottom center;
}

.ent-charts--grow .is-grown .ent-bar__fill {
  transform: scaleY(1);
  transition: transform 1620ms var(--ease-standard);
  transition-delay: calc(var(--i) * 198ms);
}

.ent-charts--grow .ent-bar__value { opacity: 0; }

.ent-charts--grow .is-grown .ent-bar__value {
  opacity: 1;
  transition: opacity 576ms var(--ease-standard);
  transition-delay: calc(var(--i) * 198ms + 1116ms);
}

@media (prefers-reduced-motion: reduce) {
  .ent-charts--grow .ent-bar__fill,
  .ent-charts--grow .ent-bar__value {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .ent-bar__plot { height: 11rem; padding-bottom: 4.2rem; gap: 0.3rem; }
  .ent-bar__label { font-size: 0.625rem; }
}


/* ------------------------------------------------------------
   State-first vs logic-first — the page's core differentiator.
   Two pipelines drawn one above the other, so the point (where
   the decision about what to sense is made) is visible at a
   glance. The SVG carries the drawing; these rules give it the
   page's type and colour.
   ------------------------------------------------------------ */
.ent-sf { margin: 1.5rem 0; }

.ent-sf svg { display: block; width: 100%; height: auto; }

.ent-sf__track-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ent-sf__node-label { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; }
.ent-sf__note { font-family: var(--font-sans); font-size: 11.5px; font-style: italic; }
.ent-sf__decide { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }


/* ------------------------------------------------------------
   Fix: the roadmap's screen-reader table widened the whole page.
   Bootstrap's .visually-hidden sets width:1px, but a <table> with
   automatic layout grows past that to fit its content, and because
   the element is absolutely positioned it then extends the
   document's scroll area — the page scrolled sideways by ~150px.
   table-layout:fixed makes the declared width the used width;
   position on the figure keeps it contained either way.
   ------------------------------------------------------------ */
.ent-rm { position: relative; }

/* Screen-reader-only wrapper for the two data tables that back a drawn
   figure. Bootstrap's .visually-hidden cannot be used on the <table>
   itself: its width:1px does not constrain a table box, and a <caption>
   is explicitly exempted from the position:absolute rule, so the table
   kept its full content width and widened the page's scroll area. A
   plain clipping <div> around it has no such problem. */
.ent-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The appendix shows three robots in a row. As a flex item with a fixed
   170px figure inside, it could not shrink, so on a phone it pushed the
   whole page ~130px wider than the screen. Allow it to shrink, and give
   the heading row permission to wrap underneath it. */
.ent-robots {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
}

.ent-robots .ent-robot { flex: 0 1 auto; min-width: 0; width: auto; }
.ent-robots .ent-robot img { width: 100%; height: auto; }

@media (max-width: 575.98px) {
  .ent-sec-head--part { flex-wrap: wrap; }
  .ent-robots { width: 100%; flex-basis: 100%; }
  .ent-robots .ent-robot { max-width: 30%; }
}


/* The site's `.container ul/ol` padding outranks a single class, so the
   opening's journey, the evidence strip and the act chips reset it here. */
.container .ent-journey,
.container .ent-evidence,
.container .ent-act__chips { padding-left: 0; }


/* The phrases the team's own section markers sat on are <em> in the judging
   answers. Nunito ships no italic face, so the browser slants the roman one
   and the result reads faintly at body size; semibold and full ink strength
   lift it without an underline's pull towards "this is a link" - the links
   are the chips underneath. */
.judging__a em {
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}

/* ============================================================
   COMPONENT KIT - the shapes the long tables become.
   Every set is a balanced grid with a fixed column count, so no
   card is left alone on a short last row. Cards are callouts;
   the gap is wide enough for the corner brackets not to collide.
   ============================================================ */
.container .ent-grid,
.container .ent-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .container .ent-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.container .ent-grid > .bd-callout,
.container .ent-stack > .bd-callout { margin: 0; }

/* A callout that carries its own title instead of the automatic
   "// NOTE" kicker. */
.bd-callout.ent-co:not(:has(h4))::before { content: none; display: none; }

.ent-co__title {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.ent-co__meta {
  display: block;
  margin: -0.1rem 0 0.65rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.ent-co > :last-child { margin-bottom: 0; }

/* A neutral tone for "the field" and out-of-scope items. */
.bd-callout-grey {
  --callout-accent: var(--ink-3);
  --callout-fg: var(--ink-2);
  --callout-soft: var(--paper-sink);
}

/* Small category / status pill. */
.ent-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
}

.ent-badge--hyp { color: var(--rna-amber-deep); }

/* Labelled field inside a card: "WHAT WE LEARNED", "ACTION" ... */
.ent-field__label {
  display: block;
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--callout-fg, var(--ink-2));
}

/* What we learned -> what it changed, side by side. */
.ent-loop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.ent-loop__arrow {
  align-self: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--callout-accent);
}

@media (max-width: 767.98px) {
  .ent-loop { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .ent-loop__arrow { transform: rotate(90deg); justify-self: start; }
}

/* Track legend above the stakeholder callouts. */
.container .ent-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.ent-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }

.ent-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

/* The shared numbered steps (.cernal-pipeline, style.css) in the
   value-proposition colours: teal for what goes in, green for what
   comes back. Two columns side by side, one on phones. */
.container .ent-io {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 2rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 768px) {
  .container .ent-io { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ent-io .cernal-pipeline { margin: 0.75rem 0 0; }
.ent-io > div > p:first-child { margin-bottom: 0; font-weight: 700; color: var(--ink); }

.cernal-pipeline.ent-pipe--teal .pipeline-num { background: var(--acc-teal); }
.cernal-pipeline.ent-pipe--teal .pipeline-body { background: var(--acc-teal-soft); border-left-color: var(--acc-teal); }
.cernal-pipeline.ent-pipe--teal .pipeline-step:not(:last-child)::before { background: var(--acc-teal); }
.cernal-pipeline.ent-pipe--teal .pipeline-body strong:first-child { color: var(--acc-teal); }

.cernal-pipeline.ent-pipe--green .pipeline-num { background: var(--gate-green); }
.cernal-pipeline.ent-pipe--green .pipeline-body { background: var(--gate-green-soft); border-left-color: var(--gate-green); }
.cernal-pipeline.ent-pipe--green .pipeline-step:not(:last-child)::before { background: var(--gate-green); }
.cernal-pipeline.ent-pipe--green .pipeline-body strong:first-child { color: var(--gate-green-deep); }

/* Comparison panel: one row per question, the existing approach
   beside CERNAL, with the whole CERNAL column in blue. On phones
   each row stacks and every answer is labelled with its column. */
.ent-vs {
  margin: 1.5rem 0 2rem;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
  overflow: hidden;
}

.ent-vs__row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1fr);
}

.ent-vs--2 .ent-vs__row { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 1fr); }

.ent-vs__row + .ent-vs__row > * { border-top: 1px solid var(--paper-edge); }

.ent-vs__q,
.ent-vs__a { padding: 0.8rem 1rem; font-size: 0.9375rem; line-height: 1.5; }

.ent-vs__q { font-weight: 700; color: var(--ink); background: var(--paper-sink); }
.ent-vs__a { color: var(--ink-2); }

.ent-vs__a--ours {
  background: color-mix(in srgb, var(--pipe-blue-soft) 75%, var(--card));
  border-left: 0.3rem solid var(--pipe-blue);
  color: var(--ink);
}

.ent-vs__row + .ent-vs__row > .ent-vs__a--ours { border-top-color: color-mix(in srgb, var(--pipe-blue) 35%, transparent); }

.ent-vs__row--head > * {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-sink);
}

.ent-vs__row--head > .ent-vs__a--ours { background: var(--pipe-blue-deep); border-left-color: var(--pipe-blue-deep); color: #fff; }

@media (max-width: 767.98px) {
  .ent-vs__row,
  .ent-vs--2 .ent-vs__row { grid-template-columns: minmax(0, 1fr); }
  .ent-vs__row--head { display: none; }
  .ent-vs__row + .ent-vs__row { border-top: var(--border-w) solid var(--ink); }
  .ent-vs__row + .ent-vs__row > * { border-top: 0; }
  .ent-vs__a::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .ent-vs__a--ours::before { color: var(--pipe-blue-deep); }
}

/* Callout pair stacked vertically: the field, then CERNAL. */
.ent-pairv code { white-space: normal; }

/* Row set: one panel, one row per entity - name on the left, its
   labelled facts on the right. For sets that read as a crowd of
   boxes when drawn as separate cards. */
.container .ent-rowset {
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
  overflow: hidden;
}

.ent-rowset__row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr);
  gap: 0.5rem 1.25rem;
  padding: 1rem 1.1rem;
}

.ent-rowset__row + .ent-rowset__row { border-top: 1px solid var(--paper-edge); }

.ent-rowset__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.ent-rowset__name .ent-badge { margin: 0.35rem 0 0; }

.ent-rowset__facts { display: grid; gap: 0.55rem; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 767.98px) {
  .ent-rowset__row { grid-template-columns: minmax(0, 1fr); }
}

/* SWOT follow-ups: each weakness or threat as one row of three
   steps - the claim, what we do, how we will know. Pointing at a
   row tints it and outlines it in red, so the eye can follow it. */
.container .ent-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
}

.ent-steps__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1.2fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  outline: 2px solid transparent;
  outline-offset: -1px;
  transition: background calc(var(--dur-base) * 1.8) var(--ease-standard),
              outline-color calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-steps__row:hover {
  background: color-mix(in srgb, var(--pipe-blue-soft) 60%, var(--card));
  outline-color: var(--cernal-red);
}

.ent-steps__claim { font-weight: 700; color: var(--ink); }
.ent-steps__cell { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.ent-steps__arrow { align-self: center; color: var(--ink-3); }

@media (max-width: 767.98px) {
  .ent-steps__row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .ent-steps__arrow { transform: rotate(90deg); justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ent-steps__row { transition: none; }
}

/* Host analysis: the three market layers drawn to scale, so the
   1.0% is seen rather than only read. The table is kept for
   screen readers. */
.container .ent-layers { display: grid; gap: 0.85rem; margin: 1.25rem 0; padding: 0; list-style: none; }

.ent-layer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.ent-layer__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.ent-layer__value { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--pipe-blue-deep); }

.ent-layer__bar {
  height: 1.5rem;
  background: var(--paper-sink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ent-layer__fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  min-width: 3px;
  background: var(--pipe-shade);
}

.ent-layer--ours .ent-layer__fill { background: var(--cernal-red); }
.ent-layer--ours .ent-layer__value { color: var(--cernal-red-deep); }
.ent-layer__basis { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }

/* Fill from the left once the list is in view; the start state exists only
   once the script opts in. */
.ent-layers--grow .ent-layer__fill {
  transform: scaleX(0);
  transform-origin: left center;
}

.ent-layers--grow.is-grown .ent-layer__fill {
  transform: scaleX(1);
  transition: transform 1620ms var(--ease-standard);
  transition-delay: calc(var(--i) * 198ms);
}

@media (prefers-reduced-motion: reduce) {
  .ent-layers--grow .ent-layer__fill {
    transform: none;
    transition: none;
  }
}

/* In vivo deals: a dated run of cards, the year down the left. */
.container .ent-deals { display: grid; gap: 0.85rem; margin: 1.25rem 0 2rem; padding: 0; list-style: none; }

.ent-deal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
}

.ent-deal__year {
  grid-row: 1 / 4;
  align-self: start;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--pipe-blue-deep);
  border-radius: var(--radius-sm);
}

.ent-deal__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.ent-deal__terms { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

.ent-deal__signal {
  grid-column: 2;
  padding-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
  border-top: 1px dashed var(--ink-3);
}

/* Business Model Canvas: pointing at a block brightens it and draws a
   red outline inside it. The other blocks are left exactly as they are. */
.ent-bmc__cell {
  transition: background calc(var(--dur-base) * 1.8) var(--ease-standard),
              box-shadow calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-bmc__cell:hover { background: var(--card); box-shadow: inset 0 0 0 3px var(--cernal-red); }
.ent-bmc__cell--value:hover { background: var(--pipe-blue-deep); }

@media (prefers-reduced-motion: reduce) {
  .ent-bmc__cell { transition: none; }
}

/* Two facing columns of the same comparison panel: the user on the
   left, CERNAL on the right in blue. Row by row, so each pair lines up. */
.ent-vs--duo .ent-vs__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 767.98px) {
  .ent-vs--duo .ent-vs__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-vs--duo .ent-vs__row--head { display: grid; }
  .ent-vs--duo .ent-vs__a::before { display: none; }
  .ent-vs--duo .ent-vs__row + .ent-vs__row { border-top: 0; }
  .ent-vs--duo .ent-vs__row + .ent-vs__row > * { border-top: 1px solid var(--paper-edge); }
}

/* Spec strip: one record, several fields - the First Customer Profile. */
.container .ent-spec {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
  overflow: hidden;
}

.ent-spec__field { padding: 0.85rem 0.9rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }
.ent-spec__field + .ent-spec__field { border-left: 1px solid var(--paper-edge); }

@media (max-width: 991.98px) {
  .container .ent-spec { grid-template-columns: minmax(0, 1fr); }
  .ent-spec__field + .ent-spec__field { border-left: 0; border-top: 1px solid var(--paper-edge); }
}

/* Partner cards: white sticker cards; pointing at one outlines it in red. */
.ent-pcard {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: outline-color calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-pcard:hover { outline-color: var(--cernal-red); }

.ent-pcard__name { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ent-pcard__badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0 0.75rem; }
.ent-pcard__badges .ent-badge { margin: 0; }
.ent-pcard__field { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.ent-pcard__field + .ent-pcard__field { margin-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  .ent-pcard { transition: none; }
}

/* Five-year bars: estimated cost against the revenue scenario, drawn
   from the table below it and from nothing else. The revenue bar spans
   the scenario range, so the width of the uncertainty is visible. */
.ent-bars {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
}

.ent-bars__row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.85rem; align-items: center; }
.ent-bars__row + .ent-bars__row { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--paper-edge); }

.ent-bars__phase { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.ent-bars__phase b { display: block; font-family: var(--font-display); color: var(--ink); }

.ent-bars__track { display: grid; gap: 0.35rem; }
.ent-bars__line { display: flex; align-items: center; gap: 0.5rem; min-height: 1rem; }

.ent-bars__lane { position: relative; flex: 1; height: 0.9rem; }

.ent-bars__cost,
.ent-bars__rev {
  position: absolute;
  top: 0;
  height: 100%;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.ent-bars__cost { left: 0; width: var(--w); background: var(--pipe-shade); }
.ent-bars__rev { left: var(--l); width: var(--w); min-width: 4px; background: var(--gate-green); }

/* Fill from the left, phase by phase; the start state exists only once the
   script opts in. */
.ent-bars--grow .ent-bars__cost,
.ent-bars--grow .ent-bars__rev {
  transform: scaleX(0);
  transform-origin: left center;
}

.ent-bars--grow.is-grown .ent-bars__cost,
.ent-bars--grow.is-grown .ent-bars__rev {
  transform: scaleX(1);
  transition: transform 1620ms var(--ease-standard);
  transition-delay: calc(var(--i) * 198ms);
}

.ent-bars--grow .ent-bars__val { opacity: 0; }

.ent-bars--grow.is-grown .ent-bars__val {
  opacity: 1;
  transition: opacity 576ms var(--ease-standard);
  transition-delay: calc(var(--i) * 198ms + 1116ms);
}

@media (prefers-reduced-motion: reduce) {
  .ent-bars--grow .ent-bars__cost,
  .ent-bars--grow .ent-bars__rev,
  .ent-bars--grow .ent-bars__val {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.ent-bars__val {
  flex: 0 0 6.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  text-align: right;
}

.ent-bars__key {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.ent-bars__key i { display: inline-block; width: 0.9rem; height: 0.6rem; margin-right: 0.35rem; border: 1px solid var(--ink); border-radius: 2px; vertical-align: middle; }
.ent-bars__key .k-cost { background: var(--pipe-shade); }
.ent-bars__key .k-rev { background: var(--gate-green); }

@media (max-width: 575.98px) {
  .ent-bars__row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .ent-bars__val { flex-basis: 5.5rem; }
}

/* Risk register: one callout per risk, coloured by the likelihood x
   impact score the matrix uses. With script, only the selected risk is
   on the page; the selected matrix tag is ringed. */
.container .ent-risks { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.container .ent-risks > .bd-callout { margin: 0; }
.ent-risks--js > li[hidden] { display: none; }

.ent-riskc__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-bottom: 0.6rem; }
.ent-riskc__head .ent-badge { margin: 0; }
.ent-riskc__name { flex: 1 1 12rem; min-width: 0; color: var(--ink); line-height: 1.35; }
.ent-riskc p { margin: 0; }

.ent-risk__tag[aria-pressed="true"] { outline: 3px solid var(--cernal-red); outline-offset: 2px; }

/* Team photo: red markers above the standing row and below the
   kneeling row, a short stem pointing at the person, and a name tag
   on hover, focus or tap. */
.ent-photo__frame { position: relative; }
.ent-photo__frame img { display: block; }

.ent-photo__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.ent-photo__dot {
  position: absolute;
  inset: 0.2rem;
  background: var(--cernal-red);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink), 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform calc(var(--dur-base) * 1.8) var(--ease-bounce);
}

.ent-photo__pin:hover .ent-photo__dot,
.ent-photo__pin:focus-visible .ent-photo__dot,
.ent-photo__pin[aria-expanded="true"] .ent-photo__dot { transform: scale(1.25); }

.ent-photo__stem {
  position: absolute;
  left: 50%;
  top: calc(100% - 0.2rem);
  width: 2px;
  height: 0.8rem;
  background: var(--cernal-red);
  transform: translateX(-50%);
}

.ent-photo__pin--below .ent-photo__stem { top: auto; bottom: calc(100% - 0.2rem); }

.ent-photo__tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 3;
  display: grid;
  gap: 0.1rem;
  width: max-content;
  max-width: 13rem;
  padding: 0.4rem 0.7rem;
  text-align: center;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity calc(var(--dur-base) * 1.8) var(--ease-standard),
              transform calc(var(--dur-base) * 1.8) var(--ease-standard);
}

.ent-photo__pin--below .ent-photo__tag { bottom: auto; top: calc(100% + 0.45rem); transform: translate(-50%, -4px); }

/* Near the photo's edges the tag opens inwards, so it never spills
   past the page. */
.ent-photo__pin--l .ent-photo__tag { left: -0.25rem; transform: translate(0, 4px); }
.ent-photo__pin--r .ent-photo__tag { left: auto; right: -0.25rem; transform: translate(0, 4px); }

.ent-photo__tag strong { font-family: var(--font-display); font-size: 0.875rem; }
.ent-photo__tag span { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.06em; line-height: 1.35; text-transform: uppercase; opacity: 0.8; }

.ent-photo__pin:hover .ent-photo__tag,
.ent-photo__pin:focus-visible .ent-photo__tag,
.ent-photo__pin[aria-expanded="true"] .ent-photo__tag { opacity: 1; transform: translate(-50%, 0); }

.ent-photo__pin--l:hover .ent-photo__tag,
.ent-photo__pin--l:focus-visible .ent-photo__tag,
.ent-photo__pin--l[aria-expanded="true"] .ent-photo__tag,
.ent-photo__pin--r:hover .ent-photo__tag,
.ent-photo__pin--r:focus-visible .ent-photo__tag,
.ent-photo__pin--r[aria-expanded="true"] .ent-photo__tag { transform: none; }

.ent-photo__pin:focus-visible { outline: none; }
.ent-photo__hint { text-align: center; }

@media (hover: none) {
  .ent-photo__pin:hover .ent-photo__tag { opacity: 0; }
  .ent-photo__pin[aria-expanded="true"] .ent-photo__tag { opacity: 1; }
}

@media (max-width: 575.98px) {
  .ent-photo__pin { width: 1.2rem; height: 1.2rem; }
  .ent-photo__stem { height: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ent-photo__dot, .ent-photo__tag { transition: none; }
}

/* Closing the gaps: one callout per capability gap, coloured by the
   time we give ourselves to close it. A narrow label column (labels
   wrap onto two lines) leaves the width to the content. */
.ent-gap__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.6rem; margin-bottom: 0.6rem; }
.ent-gap__head .ent-co__title { margin: 0; }
.ent-gap__head .ent-badge { margin: 0; }

.ent-gap__rows { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.45rem 0.9rem; margin: 0; }
.ent-gap__rows dt { margin: 0; line-height: 1.3; }
.ent-gap__rows dd { margin: 0; line-height: 1.5; }

@media (max-width: 575.98px) {
  .ent-gap__rows { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .ent-gap__rows dd + dt { margin-top: 0.4rem; }
}

/* Three-up grid (Social Impact), one column below 992px. */
@media (min-width: 992px) {
  .container .ent-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Headline figure already stated in a card's own paragraph. */
.ent-stat-big {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--callout-fg);
}

.ent-stat-big small { margin-left: 0.3rem; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); }

/* Negative impacts: one card each - the risk on the left, an arrow,
   then how we plan to address it, so the shift reads at a glance. */
.ent-neg {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker-sm);
}

.ent-neg__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }

.ent-neg__num {
  flex: 0 0 2rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  background: var(--acc-violet);
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
}

.container .ent-neg__title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }

.ent-neg__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.75rem; align-items: stretch; }

.ent-neg__side { padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); }
.ent-neg__side p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }

.ent-neg__side--risk { background: var(--paper-sink); border-left: 0.3rem solid var(--ink-3); }
.ent-neg__side--fix {
  --callout-fg: var(--acc-violet);
  background: color-mix(in srgb, var(--acc-violet-soft) 70%, var(--card));
  border-left: 0.3rem solid var(--acc-violet);
}

.ent-neg__arrow { align-self: center; font-size: 1.4rem; font-weight: 700; color: var(--acc-violet); }

@media (max-width: 767.98px) {
  .ent-neg__grid { grid-template-columns: minmax(0, 1fr); }
  .ent-neg__arrow { justify-self: center; transform: rotate(90deg); }
}

/* Stakeholder track filter. Built by script, so the chips only appear
   when they work; the colour key they replace stays without script. */
.ent-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
}

.ent-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color calc(var(--dur-fast) * 1.8) var(--ease-standard),
              border-color calc(var(--dur-fast) * 1.8) var(--ease-standard),
              background calc(var(--dur-fast) * 1.8) var(--ease-standard);
}

.ent-filter__chip:hover { color: var(--pipe-blue-deep); border-color: var(--pipe-blue-deep); }

.ent-filter__chip[aria-pressed="true"] { color: #fff; background: var(--pipe-blue-deep); border-color: var(--pipe-blue-deep); }

.ent-filter__chip .ent-legend__swatch { width: 0.7rem; height: 0.7rem; }

.ent-filter__count {
  margin-left: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

[data-track-list] > li[hidden] { display: none; }

/* Inputs / outputs: the two intro lines can wrap to different heights,
   so each column shares the parent's rows (subgrid) and both numbered
   lists start on the same line. */
@media (min-width: 768px) {
  .container .ent-io { grid-template-rows: auto auto; }
  .ent-io > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
  .ent-io > div > p:first-child { align-self: end; }
}

/* ------------------------------------------------------------
   Click-to-enlarge (static/lightbox.js, opt-in .js-zoomable), the
   same rules as human-practices.css: neutral ink and white only.
   ------------------------------------------------------------ */
   ------------------------------------------------------------ */
.js-zoomable {
  cursor: zoom-in;
  position: relative;
}

.js-zoomable:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.lb-modal .modal-dialog.lb-dialog {
  width: fit-content;
  max-width: calc(100vw - 2rem);
}

.lb-modal .lb-content {
  position: relative;
  align-items: center;
  background: transparent;
  border: 0;
}

.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100vh - 8rem);
  border-radius: var(--radius-md);
  background: var(--card);
}

.lb-caption {
  margin: 0.75rem 0 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--card);
}

.lb-caption--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lb-close {
  position: absolute;
  top: -2.25rem;
  right: 0;
}

/* Zoom hint on hover/focus: a small magnifier badge in ink and white. */
figure:has(> .js-zoomable) {
  position: relative;
}

figure:has(> .js-zoomable)::after {
  content: "Click to enlarge";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--card);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

figure:has(> .js-zoomable:hover)::after,
figure:has(> .js-zoomable:focus-visible)::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  figure:has(> .js-zoomable)::after {
    transition: none;
  }
  .lb-modal.fade .modal-dialog,
  .lb-modal.fade {
    transition: none;
  }
}

/* Ballot answers: the phrases the team marked link to the part of
   the page (or wiki) that argues them, set bold italic. */
.judging__a a.ent-alink { font-weight: 700; font-style: italic; }

/* ============================================================
   PDF embeds (.ent-embed) - pitch deck and one-pager frames.
   Stacked full width; the one-pager is portrait and centred.
   ============================================================ */
.ent-embed { margin-top: 1.5rem; }
.ent-embed--page { max-width: 640px; margin-left: auto; margin-right: auto; }
.ent-embed__label { margin: 0 0 0.5rem; }
.ent-embed__frame {
  width: 100%;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}
.ent-embed--deck .ent-embed__frame { aspect-ratio: 16 / 9; min-height: 360px; }
.ent-embed--page .ent-embed__frame { aspect-ratio: 3 / 4; min-height: 480px; }
.ent-embed__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ent-embed__open { margin-top: 0.75rem; }

/* ------------------------------------------------------------
   Unmet need: figure beside the text
   ------------------------------------------------------------ */
.ent-need::after { content: ""; display: block; clear: both; }
.ent-need__fig { margin: 0 0 1rem; }
@media (min-width: 768px) {
  .ent-need__fig { float: right; width: 48%; margin: 0.25rem 0 1rem 1.5rem; }
}
.ent-need__fig .ent-figure { margin: 0; }

/* ------------------------------------------------------------
   Commercialization milestones (interactive)
   ------------------------------------------------------------ */
.ent-ms { margin: 1.5rem 0; }
.ent-ms__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.25rem;
}
.ent-ms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.ent-ms__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem 1rem;
  border: var(--border-w) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.ent-ms__item:nth-child(even) { margin-top: 1.5rem; }
.ent-ms__pin { width: 64px; height: 64px; flex: none; }
.ent-ms__ring { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.ent-ms__disc { fill: var(--pipe-blue-soft); stroke: var(--ink); stroke-width: 2; transition: fill 0.2s ease; }
.ent-ms__pin text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  fill: var(--ink);
}
.ent-ms__line { display: block; width: 2px; height: 1.25rem; background: var(--ink); }
.ent-ms__t {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.ent-ms__d { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.ent-ms__item:hover,
.ent-ms__item:focus-visible {
  transform: translateY(-4px);
  background: var(--card-tint);
  border-color: var(--pipe-blue);
  box-shadow: var(--shadow-md);
}
.ent-ms__item:hover .ent-ms__disc,
.ent-ms__item:focus-visible .ent-ms__disc { fill: var(--pipe-shade); }
.ent-ms__item:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.ent-ms__item:active {
  transform: translateY(-1px);
  border-color: var(--cernal-red);
  box-shadow: 0 0 0 3px var(--cernal-red-soft), 0 0 18px var(--cernal-red);
}
.ent-ms__road {
  height: 36px;
  margin-top: 0.5rem;
  border-block: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 28px) center / 28px 2px repeat-x;
}
@media (max-width: 767.98px) {
  .ent-ms__list { grid-template-columns: 1fr; }
  .ent-ms__item:nth-child(even) { margin-top: 0; }
  .ent-ms__road { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ent-ms__item, .ent-ms__disc { transition: none; }
  .ent-ms__item:hover, .ent-ms__item:focus-visible, .ent-ms__item:active { transform: none; }
}
