/* The Product Journal, working edition
   Tokens and shared rules. Fraunces for headlines, numerals and quotes; Inter for body, lists and labels. */

:root {
  --ink: #0E0E10;
  --ink-2: #16161A;
  --paper: #F1EFEA;
  --body: #D6D4CE;
  --muted: #A8A6A0;
  --hair: #2A2A2E;
  --hair-strong: #3A3A40;
  --hover: #F5C400;
  --blue: #2457F5;
  --cyan: #12B5D8;
  --green: #1EAD5A;
  --yellow: #F5C400;
  --orange: #F0661A;
  --pink: #E0307F;
  --purple: #7A3BE0;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 56px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration: none; transition: color 180ms; }
a:hover { color: var(--hover); }
h1, h2, h3 { margin: 0; font-weight: 500; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 500; }

.serif { font-family: var(--serif); font-optical-sizing: auto; }
.caps {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.muted { color: var(--muted); }
.body { color: var(--body); }

/* The ribbon: the one piece of colour. Horizontal at page top and bottom, vertical on the cover. */
.ribbon-h {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 18%, var(--green) 34%, var(--yellow) 50%, var(--orange) 66%, var(--pink) 82%, var(--purple) 100%);
}
.ribbon-v {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--cyan) 18%, var(--green) 34%, var(--yellow) 50%, var(--orange) 66%, var(--pink) 82%, var(--purple) 100%);
}
.ribbon-rule { width: 120px; height: 2px; }

/* The plate: the second piece of colour, after the ribbon. One cell of the 16 x 16 chart that
   unfolds every colour a screen can show. Left to right green fades out, top to bottom blue
   rises, and --r (0 to 255) sets the red. A feature's plate is its place in the issue; a row
   of plates is the printer's control strip at the foot of every page. */
.plate {
  --r: 0;
  background:
    linear-gradient(180deg, #000 0%, #00F 100%),
    linear-gradient(90deg, rgb(var(--r), 255, 0) 0%, rgb(var(--r), 0, 0) 100%);
  background-blend-mode: screen;
}
.plate-lg { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; margin-right: 12px; }
.plate-md { width: 44px; height: 44px; flex: 0 0 44px; margin-top: 4px; }
.plates { display: grid; grid-template-columns: repeat(var(--cols, 16), minmax(0, 1fr)); }
.plates > i { display: block; aspect-ratio: 1; }
.plates.rule { width: 120px; }
.plates.control > i { aspect-ratio: auto; height: 14px; }
.plate-cover { width: 44px; aspect-ratio: 1; flex: none; }
.ribbon-h.draw { transform-origin: left; animation: ribbon-draw 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes ribbon-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Text rises 12 px over 400 ms as it enters. Scorecards and margin notes do not animate. */
.rise-ready .rise { opacity: 0; transform: translateY(12px); transition: opacity 400ms ease, transform 400ms ease; }
.rise-ready .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-h.draw { animation: none; }
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 16px var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--hair);
}
.masthead .brand { font-size: 12px; }
.masthead .issue-line { font-size: 11px; color: var(--paper); }
.masthead nav { display: flex; gap: 24px; flex-wrap: wrap; }
.masthead nav a { font-size: 11px; }

/* Sections */
.section { padding: 56px var(--gutter) 64px; border-top: 1px solid var(--hair); }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.kicker { font-size: 12px; color: var(--muted); }
.h-section { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.h-section.tight { font-size: clamp(32px, 3.6vw, 48px); }
.lede-small { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 36ch; }
.split-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px 56px;
  align-items: start;
}
.span-2 { grid-column: span 2; min-width: 0; }
@media (max-width: 700px) { .span-2 { grid-column: span 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--paper);
  font-size: 11px;
  transition: background 180ms, color 180ms;
}
.btn.quiet { border-color: var(--hair-strong); }
.btn:hover { background: var(--paper); color: var(--ink); }

/* Cover */
.cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 72px var(--gutter) 72px 72px;
  align-items: start;
}
@media (min-width: 760px) { .cover { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
@media (max-width: 759px) { .cover figure { max-width: 520px; } }
.cover-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* The first screen says who this is: the role and a small chart sit on one line above the name. */
.cover-kicker { display: flex; align-items: center; gap: 14px; }
.cover h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(76px, 12.5vw, 196px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* On wide screens the name sits on one line, so the cover line fits the first screen too. */
@media (min-width: 1000px) {
  .cover h1 { font-size: clamp(64px, 9.6vw, 150px); white-space: nowrap; }
  .cover h1 br { display: none; }
}
.cover .standfirst, .standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.25;
  max-width: 30ch;
  text-wrap: pretty;
}
.strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.strip > div {
  flex: 1 1 150px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--hair);
}
.strip > div:first-child { padding-left: 0; }
.strip > div:last-child { border-right: 0; padding-right: 0; }
.strip dt { font-size: 11px; color: var(--muted); }
.strip dd { font-size: 14px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.frame {
  border: 1px solid var(--hair-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #1A1A1E 0 1px, transparent 1px 16px);
}
.frame .label {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--hair-strong);
  padding: 8px 12px;
  background: var(--ink);
  text-align: center;
  line-height: 1.8;
}
figure { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.portrait { width: 100%; height: auto; max-height: 660px; object-fit: cover; object-position: top; }
figcaption { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
figcaption .fig { font-size: 12px; }
.fig-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; align-items: start; }
.fig-pair img { border: 1px solid var(--hair-strong); }
.fig-pair.phones img { max-width: min(300px, 100%); }
.fig-pair.phones .frame img { max-width: min(300px, 100%); }

/* The Index */
.index-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 48px; }
.index-list > div { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.index-list dt { flex: 0 0 120px; font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.index-list dd { font-size: 15px; line-height: 1.5; color: var(--body); }

/* Contents */
.toc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.toc { display: flex; flex-direction: column; border-top: 1px solid var(--paper); }
.toc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: flex-start;
  padding: 26px 8px;
  border-bottom: 1px solid var(--hair);
  transition: background 180ms;
  color: var(--paper);
}
a.toc-row:hover { background: var(--ink-2); color: var(--paper); }
.toc-row:last-child { border-bottom: 1px solid var(--paper); }
.toc-num { flex: 0 0 72px; font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1; color: var(--muted); }
.toc-main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.toc-main .kind { font-size: 12px; color: var(--muted); }
.toc-main .title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.01em; }
.toc-main .dek { font-size: 15px; line-height: 1.5; color: var(--muted); }
.toc-card {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  font-size: 13px;
  line-height: 1.4;
  border-left: 1px solid var(--hair);
  padding: 4px 0 0 20px;
}
.toc-card dt { font-size: 11px; color: var(--muted); }
.toc-card dd { margin-top: 2px; }
.toc-page { flex: 0 0 48px; text-align: right; font-size: 11px; color: var(--muted); }

/* Pull quote */
.pull { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.pull blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}
.pull cite { font-style: normal; font-size: 12px; color: var(--muted); }
.praise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px 56px; width: 100%; max-width: 1120px; }
.praise-item { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pull.praise blockquote { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.32; letter-spacing: -0.01em; max-width: 36ch; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 48px; }
.principles li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.principles .num { font-family: var(--serif); font-size: 36px; font-weight: 300; line-height: 1; color: var(--muted); }
.principles .text { display: flex; flex-direction: column; gap: 6px; }
.principles strong { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.principles span { font-size: 15px; line-height: 1.5; color: var(--body); }
.principles .from { font-size: 11px; color: var(--muted); }

/* Back issues */
.issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.issue { border: 1px solid var(--hair-strong); display: flex; flex-direction: column; min-height: 420px; transition: border-color 180ms; }
.issue:hover { border-color: var(--paper); }
.issue .bar { height: 14px; }
.issue .inner { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; color: var(--paper); }
.issue .no { font-size: 11px; color: var(--muted); }
.issue .big { font-family: var(--serif); font-size: 64px; font-weight: 300; line-height: 0.9; letter-spacing: -0.03em; color: var(--muted); }
.issue .name { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.issue .role { font-size: 13px; color: var(--muted); line-height: 1.5; }
.issue .lesson { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.5; color: var(--body); }
.issue .lesson .caps { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }

/* The record */
.record { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 40px; }
.record-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.record-list dt { font-size: 15px; font-weight: 600; }
.record-list dt span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.record-list dd { font-size: 13px; color: var(--muted); white-space: nowrap; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack > div { display: flex; flex-direction: column; gap: 10px; }
.stack h3 { font-size: 12px; color: var(--muted); }
.cite { font-size: 14px; line-height: 1.55; color: var(--body); }

/* Letters / colophon */
.letters { padding: 56px var(--gutter) 32px; border-top: 1px solid var(--paper); display: flex; flex-direction: column; gap: 40px; }
.letters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 56px; align-items: end; }
.letters h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 5vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.letters ul { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.letters ul a { border-bottom: 1px solid var(--paper); }
.colophon { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 16px; }
.colophon span { font-size: 12px; color: var(--muted); }

/* Feature pages */
.opener { padding: 64px var(--gutter) 32px; display: flex; flex-direction: column; gap: 28px; }
.opener-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.spine { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.spine li { font-size: 12px; padding: 8px 12px; border: 1px solid var(--hair-strong); }
.spine li a { display: block; margin: -8px -12px; padding: 8px 12px; }
.spine li:hover { border-color: var(--paper); }
.toc-row.soon { color: var(--muted); }
.toc-row.soon .title { color: var(--muted); }
.toc-page.soon { flex-basis: 110px; }
.spine .link { width: 16px; height: 1px; background: var(--hair-strong); padding: 0; border: 0; }
.h-feature { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7.4vw, 112px); line-height: 0.95; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
.byline { font-size: 14px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.byline strong { color: var(--paper); }

.scorecard { padding: 0 var(--gutter) 40px; }
.scorecard dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  border-top: 1px solid var(--paper);
  border-bottom: 1px solid var(--hair);
}
.scorecard dl > div { padding: 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--hair); }
.scorecard dl > div:first-child { padding-left: 0; }
.scorecard dl > div:last-child { border-right: 0; padding-right: 0; }
.scorecard dt { font-size: 11px; color: var(--muted); }
.scorecard dd { font-size: 14px; font-weight: 600; }
@media (max-width: 700px) { .scorecard dl > div { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--hair); } }

.lead-figure { padding: 0 var(--gutter) 56px; }
.article-cols { padding: 0 var(--gutter) 48px; display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.col-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 40px; padding: 14px 0 0; }
.col-labels span { font-size: 11px; color: var(--muted); }
.article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hair);
}
.article:last-child { border-bottom: 0; }
.article .crosshead { display: flex; flex-direction: column; gap: 8px; }
.article .crosshead .num { font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1; color: var(--muted); }
.article h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; line-height: 1.1; }
.article .story { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--body); }
.article .story p { max-width: 66ch; text-wrap: pretty; }
.article .story.wide { max-width: none; }
.dropcap::first-letter { font-family: var(--serif); font-weight: 600; font-size: 4.4em; float: left; line-height: 0.8; margin: 0.06em 0.12em 0 0; color: var(--paper); }
.bet-line { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.015em; color: var(--paper); max-width: 34ch; text-wrap: pretty; }
.margin { display: flex; flex-direction: column; gap: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.margin > div { border-top: 1px solid var(--hair-strong); padding-top: 10px; }
.margin .caps { display: block; font-size: 11px; margin-bottom: 6px; color: var(--paper); }
@media (max-width: 700px) {
  .article .story { grid-column: span 1; }
  .col-labels { display: none; }
}

.table-wrap { overflow-x: auto; }
.data { min-width: 560px; font-size: 15px; line-height: 1.5; }
.data th { font-size: 11px; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--paper); }
.data td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--body); }
.data tr:last-child td { border-bottom: 1px solid var(--paper); }
.data td.must { font-weight: 600; color: var(--paper); }
.data td.src { color: var(--muted); }
.data td.status { font-size: 12px; }
/* On phones a data table stacks: each row a block, each cell under its column label (set by script.js). */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  .data { min-width: 0; width: 100%; }
  .data thead { display: none; }
  .data tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .data tbody tr:last-child { border-bottom: 1px solid var(--paper); }
  .data td { display: block; padding: 4px 0; border: 0; }
  .data td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .data td:empty { display: none; }
}

/* Decision log */
.log { display: flex; flex-direction: column; }
.log-row { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.5; }
.log-row.head { padding: 0 0 10px; border-bottom: 1px solid var(--paper); }
.log-row.head span { font-size: 11px; color: var(--muted); }
.log-row:last-child { border-bottom: 1px solid var(--paper); }
.log .no { flex: 0 0 56px; font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--muted); }
.log .when { flex: 0 0 110px; color: var(--muted); font-size: 13px; }
.log .where { flex: 0 0 170px; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.log .where i { width: 10px; height: 10px; display: inline-block; }
.log .what { flex: 1 1 220px; font-weight: 600; }
.log .why { flex: 1 1 220px; color: var(--body); }
.log .stands { flex: 1 1 200px; font-size: 12px; }

/* Inside a feature's story column the log is narrower: decision on one line, reason below it. */
.story .log .what { flex: 1 1 55%; }
.story .log .why { flex: 1 1 100%; padding-left: 76px; }
.story .log-row.head .why { display: none; }
.story .log .stands { flex: 1 1 100%; padding-left: 76px; }
.story img[src$=".svg"] { width: 100%; }
@media (max-width: 700px) { .story .log .why, .story .log .stands { padding-left: 0; } }

.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin-top: 24px; }
.pipeline li { flex: 1 1 120px; border: 1px solid var(--hair-strong); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.pipeline li.on { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.pipeline li.on .caps { color: #5A5B57; }
.pipeline li .caps { font-size: 11px; color: var(--muted); }
.pipeline li strong { font-size: 14px; }
.pipeline .arrow { flex: 0 0 auto; align-self: center; color: var(--muted); border: 0; padding: 0; }

.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.outcomes h3 { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--paper); padding-bottom: 10px; margin-bottom: 12px; }
.outcomes .metric { padding: 10px 0; border-bottom: 1px solid var(--hair); display: flex; gap: 16px; align-items: baseline; }
.outcomes .metric dt { flex: 0 0 120px; font-family: var(--serif); font-size: 32px; font-weight: 300; line-height: 1; }
.outcomes .metric dd { font-size: 14px; color: var(--muted); }

.quote-left { padding: 0 0 0 28px; border-left: 2px solid var(--paper); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; color: var(--paper); max-width: 26ch; text-wrap: balance; }

.feature-foot { padding: 40px var(--gutter) 32px; border-top: 1px solid var(--paper); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.feature-foot .next { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.feature-foot .next .caps { font-size: 12px; color: var(--muted); }
.feature-foot .next a.big { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); font-weight: 400; letter-spacing: -0.02em; }

/* The Lab */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.card { border: 1px solid var(--hair-strong); display: flex; flex-direction: column; transition: border-color 180ms; }
.card:hover { border-color: var(--paper); }
.card .bar { height: 10px; }
.card .inner { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.card .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card .name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; }
.card .dates { font-size: 11px; color: var(--muted); }
.card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 13px; line-height: 1.45; }
.card dt { font-size: 11px; color: var(--muted); }
.card dd { margin-top: 2px; }
.card .bet { grid-column: 1 / -1; border-top: 1px solid var(--hair); padding-top: 10px; }
.card .bet dd { color: var(--body); }

.grid2 { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 28px; gap: 8px; }
.grid2 .y { font-size: 11px; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.grid2 .x { font-size: 11px; color: var(--muted); text-align: center; }
.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; }
.quad > div { border: 1px solid var(--hair-strong); padding: 18px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; }
.quad > div.on { border-color: var(--paper); }
.quad .caps { font-size: 11px; color: var(--muted); }
.quad > div.on .caps { color: var(--paper); }
.quad ul { display: flex; flex-direction: column; gap: 8px; }
.quad li { border: 1px solid var(--hair-strong); color: var(--muted); padding: 8px 12px; font-size: 13px; font-weight: 600; align-self: flex-start; }
.quad li.fill { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.quad li.line { border-color: var(--paper); color: var(--paper); }
@media (max-width: 600px) { .quad { grid-template-columns: 1fr; grid-template-rows: none; } }

/* Prioritization grid: two axes with arrowheads, four quadrants tinted by plate, items as chips. */
.pgrid { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 22px; gap: 10px; }
.pgrid .axis-y { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.pgrid .axis-y .end { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--muted); white-space: nowrap; }
.pgrid .axis-y .line { flex: 1; width: 1px; margin: 10px 0; background: linear-gradient(180deg, var(--paper), var(--hair)); position: relative; }
.pgrid .axis-y .line::before { content: ""; position: absolute; top: -1px; left: -3.5px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--paper); }
.pgrid .axis-x { grid-row: 2; grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pgrid .axis-x .end { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pgrid .axis-x .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), var(--paper)); position: relative; }
.pgrid .axis-x .line::after { content: ""; position: absolute; right: -1px; top: -3.5px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid var(--paper); }
.pquad { grid-row: 1; grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pq { position: relative; isolation: isolate; padding: 20px; min-height: 250px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--hair-strong); background: var(--ink-2); }
.pq::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.1; background: linear-gradient(180deg, #000 0%, #00F 100%), linear-gradient(90deg, rgb(var(--r), 255, 0) 0%, rgb(var(--r), 0, 0) 100%); background-blend-mode: screen; }
.pq-1 { --r: 0; border-color: var(--paper); } .pq-1::before { opacity: 0.22; }
.pq-2 { --r: 109; }
.pq-3 { --r: 182; }
.pq-4 { --r: 255; } .pq-4::before { opacity: 0.06; }
.pq .tag { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.pq-1 .tag { color: var(--paper); }
.pq .tag i { width: 10px; height: 10px; display: inline-block; --r: inherit; }
.pq h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; }
.pq p { font-size: 12px; line-height: 1.45; color: var(--muted); }
.pq ul { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.pq li { font-size: 13px; line-height: 1.4; padding: 8px 10px; border: 1px solid var(--hair-strong); color: var(--body); background: var(--ink); }
.pq-1 li { border-color: var(--paper); background: var(--paper); color: var(--ink); font-weight: 600; }
.pq-2 li { border-color: var(--paper); color: var(--paper); }
.pq-4 li { color: var(--muted); }
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; grid-template-rows: auto 22px; }
  .pgrid .axis-y { display: none; }
  .pquad { grid-column: 1; grid-template-columns: 1fr; grid-template-rows: none; }
  .pgrid .axis-x { grid-column: 1; }
}

/* Decision logs: the last column records what followed the decision, not a yes. */
.log .followed { flex: 1 1 200px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.story .log .followed { flex: 1 1 100%; padding-left: 76px; }
@media (max-width: 700px) { .log .followed { flex-basis: 100%; } .story .log .followed { padding-left: 0; } .log-row.head { display: none; } .log-row { gap: 6px 16px; } }

.note-box { font-size: 14px; line-height: 1.5; color: var(--muted); border-left: 1px solid var(--hair-strong); padding-left: 20px; max-width: 34ch; }

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .cover { padding: 48px var(--gutter) 48px 36px; }
  .ribbon-v { left: 12px; width: 4px; }
  .toc-num { flex-basis: 48px; font-size: 34px; }
  .plate-md { width: 28px; height: 28px; flex-basis: 28px; }
  .toc-card { border-left: 0; padding-left: 0; }
  .index-list dt { flex-basis: 90px; font-size: 36px; }
  .log .where { flex-basis: 100%; }
  .log .when { flex-basis: 100%; }
  .log .stands { flex-basis: 100%; }
  .record-list > div { flex-direction: column; gap: 4px; }
  .record-list dd { white-space: normal; }
}

/* Skip link, keyboard focus and landing below the sticky masthead */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 60; padding: 12px 16px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; }
.skip-link:focus { top: 8px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--hover); outline-offset: 2px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 84px; }

/* The arrow from the design kit, in the colour of the button */
.btn.go::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 12px;
  background: currentColor;
  -webkit-mask: url("assets/icon-arrow.svg") center / contain no-repeat;
  mask: url("assets/icon-arrow.svg") center / contain no-repeat;
}


/* A list that folds */
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; margin-bottom: 10px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.fold[open] > summary::after { content: "\2212"; }
.fold > summary > span.caps { font-size: 12px; }

/* The phone menu */
.menu-toggle { display: none; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair-strong); background: none; color: var(--paper); font-size: 11px; cursor: pointer; }
/* On a wide screen the masthead is always one row. The issue line goes first when space runs out. */
@media (min-width: 1001px) {
  .masthead { flex-wrap: nowrap; }
  .masthead nav { flex: 0 0 auto; flex-wrap: nowrap; }
  .masthead .brand, .masthead nav a { white-space: nowrap; }
  .masthead .issue-line { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 1339px) { .masthead .issue-line { display: none; } }
@media (max-width: 1180px) { .masthead nav { gap: 20px; } }
@media (max-width: 1000px) {
  .masthead { padding-top: 6px; padding-bottom: 6px; }
  .masthead .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .masthead nav { flex-basis: 100%; gap: 0 20px; }
  .masthead nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .js .masthead { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; }
  .js .masthead nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--gutter) 16px; background: var(--ink); border-bottom: 1px solid var(--paper); }
  .js .masthead nav.open { display: flex; }
  .js .masthead nav a { display: flex; min-height: 48px; font-size: 13px; border-bottom: 1px solid var(--hair); }
  .js .masthead nav a:last-child { border-bottom: 0; }
}

/* The home page on a phone: the name first, short lists, detail left to the project pages */
@media (max-width: 700px) {
  .cover { padding-top: 24px; gap: 28px; }
  .cover-text { gap: 16px; }
  .plate-cover { width: 32px; }
  #contents .toc-head .kicker, .toc-num, .toc-card, .toc-page, .toc-row > span[style*="flex"] { display: none; }
  .toc-row { flex-wrap: nowrap; gap: 14px; padding: 18px 0; }
  .toc-main { flex: 1 1 0; }
  .issues { gap: 12px; }
  .issue { min-height: 0; }
  .issue .big { display: none; }
  #issues .lede-small { text-align: left !important; }
  .card .name { display: inline-flex; align-items: center; min-height: 44px; }
  .fold > summary { min-height: 44px; margin-bottom: 0; }
  .letters ul { gap: 4px; }
  .letters ul a { display: inline-block; padding: 10px 0; }
  .spine { gap: 6px; }
  .spine .link { display: none; }
  .spine li { padding: 0; }
  .spine li a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 12px; }
}

/* More of the chart. The 16 x 16 chart is the RGB cube unfolded: every cell is one slice of it,
   fixed at one value of red. Each page and section owns a slice (--page-r). Its numerals, rules
   and plates are cut from that slice, and the full gamut runs between sections. */
:root {
  --page-r: 0;
  --gamut: linear-gradient(90deg, #00FF00, #00FFFF, #0000FF, #FF00FF, #FF0000, #FFFF00, #00FF00);
}
#index { --page-r: 0; }
#contents { --page-r: 64; }
#letter { --page-r: 128; }
#issues { --page-r: 191; }
#record { --page-r: 255; }
.index-list > div:nth-child(1) { --page-r: 0; }
.index-list > div:nth-child(2) { --page-r: 51; }
.index-list > div:nth-child(3) { --page-r: 102; }
.index-list > div:nth-child(4) { --page-r: 153; }
.index-list > div:nth-child(5) { --page-r: 204; }
.index-list > div:nth-child(6) { --page-r: 255; }
.toc li:nth-child(1) { --page-r: 0; }
.toc li:nth-child(2) { --page-r: 36; }
.toc li:nth-child(3) { --page-r: 73; }
.toc li:nth-child(4) { --page-r: 109; }
.toc li:nth-child(5) { --page-r: 146; }
.toc li:nth-child(6) { --page-r: 182; }
.toc li:nth-child(7) { --page-r: 219; }
.toc li:nth-child(8) { --page-r: 255; }
.principles li:nth-child(1) { --page-r: 0; }
.principles li:nth-child(2) { --page-r: 42; }
.principles li:nth-child(3) { --page-r: 85; }
.principles li:nth-child(4) { --page-r: 128; }
.principles li:nth-child(5) { --page-r: 170; }
.principles li:nth-child(6) { --page-r: 213; }
.principles li:nth-child(7) { --page-r: 255; }
.issues li:nth-child(1) { --page-r: 0; }
.issues li:nth-child(2) { --page-r: 51; }
.issues li:nth-child(3) { --page-r: 102; }
.issues li:nth-child(4) { --page-r: 153; }
.issues li:nth-child(5) { --page-r: 204; }
.issues li:nth-child(6) { --page-r: 255; }
.praise-item:nth-child(1) { --page-r: 0; }
.praise-item:nth-child(2) { --page-r: 85; }
.praise-item:nth-child(3) { --page-r: 170; }
.praise-item:nth-child(4) { --page-r: 255; }

/* The full gamut between sections: one continuous line, repeated below it and a little to the side */
.section, .feature-foot, .letters { position: relative; border-top: 0; }
.section::before, .feature-foot::before, .letters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gamut);
}
.section::after, .feature-foot::after, .letters::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--gamut-2) 22px 4px / 100% 2px no-repeat, var(--gamut-3) 44px 10px / 100% 2px no-repeat;
  pointer-events: none;
}

/* The reading bar */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--gamut);
  transform: scaleX(var(--read, 0));
  transform-origin: left;
}

/* Numerals cut from the slice. These stops stay bright enough to read on the ink. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .index-list dt, .toc-num, .issue .big, .article .crosshead .num, .log .no, .outcomes .metric dt {
    color: transparent;
    background: linear-gradient(180deg, rgb(var(--page-r), 255, 90) 12%, rgb(var(--page-r), 220, 255) 50%, rgb(var(--page-r), 130, 255) 88%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .log-row.head .no { color: var(--muted); background: none; }
}

/* A chip of the slice beside each section label */
.section-head .kicker::before, .praise-item .kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: -1px;
  background: linear-gradient(180deg, #000 0%, #00F 100%), linear-gradient(90deg, rgb(var(--page-r), 255, 0) 0%, rgb(var(--page-r), 0, 0) 100%);
  background-blend-mode: screen;
}

/* The seven rules, each on its own cell */
.principles .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  background: linear-gradient(180deg, #000 0%, #00F 100%), linear-gradient(90deg, rgb(var(--page-r), 255, 0) 0%, rgb(var(--page-r), 0, 0) 100%);
  background-blend-mode: screen;
}

/* Project pages: the slice as a rule over the scorecard and a line beside the quote */
.scorecard dl { position: relative; border-top: 0; }
.scorecard dl::before, .quote-left::before { content: ""; position: absolute; }
.scorecard dl::before {
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--page-r), 255, 0), rgb(var(--page-r), 255, 255), rgb(var(--page-r), 0, 255), rgb(var(--page-r), 128, 255));
}
.quote-left { position: relative; border-left: 0; }
.quote-left::before {
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, rgb(var(--page-r), 255, 0), rgb(var(--page-r), 255, 255), rgb(var(--page-r), 0, 255));
}

/* Each project opens on its own cell of the chart, enlarged, wherever there is room beside the title */
@media (min-width: 1250px) {
  .opener { position: relative; }
  .opener::after {
    content: "";
    position: absolute;
    top: 128px;
    right: var(--gutter);
    width: 238px;
    height: 238px;
    background: linear-gradient(180deg, #000 0%, #00F 100%), linear-gradient(90deg, rgb(var(--page-r), 255, 0) 0%, rgb(var(--page-r), 0, 0) 100%);
    background-blend-mode: screen;
    -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 13px, transparent 13px 15px), repeating-linear-gradient(0deg, #000 0 13px, transparent 13px 15px);
    -webkit-mask-composite: source-in;
    mask-image: repeating-linear-gradient(90deg, #000 0 13px, transparent 13px 15px), repeating-linear-gradient(0deg, #000 0 13px, transparent 13px 15px);
    mask-composite: intersect;
  }
}

/* One shade per project and experience. The full gamut belongs to the site: the cover chart, the bars
   between sections, the foot of the page. A project takes one shade from it and keeps that shade
   everywhere it appears: its page, its row on the home page, its card in the Lab. */
[data-shade="settlesmart"] { --shade: #4E9DFF; --shade-light: #AFD3FF; --shade-deep: #284770; }
[data-shade="pipeline"] { --shade: #27D3E3; --shade-light: #9EEBF2; --shade-deep: #185D64; }
[data-shade="techies"] { --shade: #FF6257; --shade-light: #FFB8B3; --shade-deep: #6E302C; }
[data-shade="tinynext"] { --shade: #FFD83D; --shade-light: #FFEDA8; --shade-deep: #6E5F22; }
[data-shade="rubixo"] { --shade: #F45FD0; --shade-light: #FAB7EA; --shade-deep: #6A2E5D; }
[data-shade="onpremises"] { --shade: #9A7BFF; --shade-light: #D2C4FF; --shade-deep: #463A70; }
[data-shade="greenoak"] { --shade: #3DD56D; --shade-light: #A8ECBD; --shade-deep: #215E35; }
[data-shade="floyan"] { --shade: #FF9D42; --shade-light: #FFD3AA; --shade-deep: #6E4724; }
[data-shade="abnieh"] { --shade: #C6F135; --shade-light: #E5F9A4; --shade-deep: #58691F; }
[data-shade] {
  --num-fill: linear-gradient(180deg, var(--shade-light) 12%, var(--shade) 88%);
  --tile-fill: linear-gradient(135deg, var(--shade-light), var(--shade) 60%);
  --bar-fill: linear-gradient(90deg, var(--shade-light), var(--shade));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  [data-shade] .toc-num, [data-shade] .issue-num, [data-shade] .crosshead .num, [data-shade] .log .no, .log-row[data-shade] .no, [data-shade] .metric dt, .index-list [data-shade] dt {
    background-image: var(--num-fill);
  }
  [data-shade] .log-row.head .no { background-image: none; }
}
[data-shade] .plate-md, [data-shade] .plate-lg, [data-shade] .bar { background: var(--tile-fill); background-blend-mode: normal; }
.principles [data-shade] .num, .principles li[data-shade] .num { background: var(--tile-fill); background-blend-mode: normal; }
body[data-shade] .masthead::after { background: var(--bar-fill); }
body[data-shade] .scorecard dl::before { background: linear-gradient(90deg, var(--shade-light), var(--shade) 55%, var(--shade-deep)); }
body[data-shade] .quote-left::before { background: linear-gradient(180deg, var(--shade-light), var(--shade) 55%, var(--shade-deep)); }
body[data-shade] .opener::after {
  background: linear-gradient(180deg, rgba(14, 14, 16, 0) 0%, rgba(14, 14, 16, 0.75) 100%), linear-gradient(90deg, var(--shade-light), var(--shade) 55%, var(--shade-deep));
  background-blend-mode: normal;
}
body[data-shade] a:hover { color: var(--shade); }
.record-list [data-shade] dt::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--shade); }
.log .where i { background: var(--shade, var(--paper)); }

/* The RGB split: every colour line repeats below it and a little to the side, like a glitch print */
:root {
  --gamut-2: linear-gradient(90deg, rgba(0, 255, 0, 0.62), rgba(0, 255, 255, 0.62), rgba(0, 0, 255, 0.62), rgba(255, 0, 255, 0.62), rgba(255, 0, 0, 0.62), rgba(255, 255, 0, 0.62), rgba(0, 255, 0, 0.62));
  --gamut-3: linear-gradient(90deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 255, 0.3), rgba(0, 0, 255, 0.3), rgba(255, 0, 255, 0.3), rgba(255, 0, 0, 0.3), rgba(255, 255, 0, 0.3), rgba(0, 255, 0, 0.3));
}
.masthead::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 100%;
  height: 2px;
  margin-top: 3px;
  background: var(--bar-fill, var(--gamut));
  opacity: 0.6;
  transform: scaleX(var(--read, 0));
  transform-origin: left;
  pointer-events: none;
}
.ribbon-v::before, .ribbon-v::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 2px;
  background: inherit;
  pointer-events: none;
}
.ribbon-v::before { top: 16px; left: calc(100% + 4px); opacity: 0.6; }
.ribbon-v::after { top: 32px; left: calc(100% + 10px); opacity: 0.3; }
.scorecard dl::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 10px;
  --line: linear-gradient(90deg, var(--shade-light, var(--paper)), var(--shade, var(--paper)) 55%, var(--shade-deep, var(--paper)));
  background: var(--line) 18px 3px / 100% 2px no-repeat, var(--line) 36px 8px / 100% 2px no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.quote-left::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -16px;
  left: 7px;
  width: 9px;
  --line: linear-gradient(180deg, var(--shade-light, var(--paper)), var(--shade, var(--paper)) 55%, var(--shade-deep, var(--paper)));
  background: var(--line) 0 0 / 2px calc(100% - 8px) no-repeat, var(--line) 6px 8px / 2px calc(100% - 8px) no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
[data-shade] > .bar { position: relative; }
[data-shade] > .bar::before, [data-shade] > .bar::after {
  content: "";
  position: absolute;
  right: 0;
  height: 2px;
  background: var(--bar-fill);
  pointer-events: none;
}
[data-shade] > .bar::before { top: calc(100% + 3px); left: 14px; opacity: 0.6; }
[data-shade] > .bar::after { top: calc(100% + 8px); left: 28px; opacity: 0.3; }

/* The RGB split on the cover. The photo has it baked in, so it looks the same in every browser.
   On the name it is kept light: under 2 px of colour at laptop size. */
.cover h1 { text-shadow: -0.012em 0.005em 0 rgba(255, 0, 40, 0.6), 0.012em -0.005em 0 rgba(0, 120, 255, 0.65), 0.005em 0.008em 0 rgba(0, 255, 90, 0.3); }

/* The cover line runs a little wider on wide screens, so four short sentences take six lines on a laptop. */
@media (min-width: 1000px) { .cover .standfirst { max-width: 36ch; } }

/* The cover strip holds the role and the research name. What Nova is open to sits beside the buttons. */
@media (max-width: 359px) {
  .cover .strip > div { flex-basis: 100%; padding-left: 0; padding-right: 0; border-right: 0; }
  .cover .strip > div + div { border-top: 1px solid var(--hair); }
}

/* Phones: long pages get shorter and proof stays readable. Screenshot groups swipe sideways,
   two Tiny Next tables pack tighter, wide screenshots open full size, and a project's section
   buttons follow its byline so the first screen is the headline. */
a.zoom { display: block; cursor: zoom-in; }
.zoom-hint { display: none; }
@media (max-width: 700px) {
  .fig-pair.phones { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px 0; }
  .fig-pair.phones > * { flex: 0 0 76%; width: 76%; min-width: 0; scroll-snap-align: start; }
  .fig-pair.phones img, .fig-pair.phones .frame img { max-width: 100%; }
  .fig-pair.phones .frame { padding: 12px !important; }
  .fig-pair.phones > :only-child { flex-basis: 100%; }
  .fig-pair.phones > :only-child img { max-width: min(300px, 100%); }
  .zoom-hint { display: inline; }
  .opener-top { display: contents; }
  .opener .spine { order: 5; }
  .data.versions td:nth-child(1), .data.versions td:nth-child(2) { display: inline; padding: 0; font-weight: 600; color: var(--paper); }
  .data.versions td:nth-child(1)::before, .data.versions td:nth-child(2)::before { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; margin: 0; }
  .data.versions td:nth-child(1)::before { content: "Version "; }
  .data.versions td:nth-child(2)::before { content: " \B7  "; }
  .data.versions td:nth-child(3) { margin-top: 8px; }
  .data.engines tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .data.engines td:first-child { grid-column: 1 / -1; font-size: 16px; font-weight: 600; color: var(--paper); }
  .data.engines td:first-child::before { display: none; }
  /* A stacked table ends with one line under its last row, not a line under every value. */
  .data tr:last-child td { border-bottom: 0; }
}

/* Project covers on the home page: a screenshot where one exists, otherwise the project's headline
   number in its own shade. The number of the piece sits in the corner. */
.toc-cover { flex: 0 0 236px; height: 148px; position: relative; overflow: hidden; align-self: center; border: 1px solid var(--hair-strong); background: var(--ink-2); }
.toc-cover img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top left; }
.toc-cover .n { position: absolute; left: 0; top: 0; padding: 5px 9px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); background: var(--shade, var(--paper)); }
.toc-cover.type { display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; background: linear-gradient(135deg, var(--shade-deep, var(--hair)), var(--ink-2) 75%); }
.toc-cover.type b { font-family: var(--serif); font-weight: 300; font-size: 58px; line-height: 1; color: var(--shade, var(--paper)); }
.toc-cover .l { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-top: 8px; }
.toc-cover.lab { background: linear-gradient(180deg, #000 0%, #00F 100%), linear-gradient(90deg, #0F0 0%, #F00 100%); background-blend-mode: screen; }
.toc-cover.lab .l { position: absolute; left: 16px; bottom: 14px; margin: 0; text-shadow: 0 0 6px #000; }
/* On a phone the cover sits beside the project's name, and the summary runs the full width under both.
   The piece's number gives way to a line in the project's shade, so the picture stays clear. */
@media (max-width: 700px) {
  .toc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
  .toc-cover { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 96px; height: 72px; margin-top: 3px; border-top: 3px solid var(--shade, var(--hair-strong)); }
  .toc-main { display: contents; }
  .toc-main .kind { grid-column: 2; grid-row: 1; }
  .toc-main .title { grid-column: 2; grid-row: 2; }
  .toc-main .dek { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .toc-cover.type { padding: 8px 10px; }
  .toc-cover.type b { font-size: 30px; }
  .toc-cover .l, .toc-cover .n { display: none; }
}

/* In short: a project's results in two to four lines. On wide screens they sit under the project's
   chart; elsewhere they follow the byline. The chart stays on every project page. */
.in-short { border-top: 1px solid var(--hair-strong); padding-top: 12px; }
.in-short > .caps { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.in-short dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 24px; }
.in-short dl > div { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.in-short dt { flex: none; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: var(--shade, var(--paper)); white-space: nowrap; }
.in-short dd { font-size: 13px; line-height: 1.4; color: var(--body); }
@media (min-width: 1250px) {
  .in-short { position: absolute; right: var(--gutter); top: 386px; width: 238px; }
  .in-short dl { display: block; }
}
@media (max-width: 700px) { .opener .in-short { order: 4; } }

/* Immigrant Techies: four cohorts, thirteen teams, drawn from the page's own table. */
.cohort-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 16px; }
.cohort-grid .caps { font-size: 11px; color: var(--muted); padding: 10px 0; border-top: 3px solid var(--shade, var(--paper)); }
.cohort-grid ul { display: flex; flex-direction: column; gap: 8px; }
.cohort-grid li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--hair-strong); background: #121215; font-size: 15px; line-height: 1.3; }
.cohort-grid li.back { border-color: var(--shade, var(--paper)); }
.cohort-grid small { display: block; margin-top: 2px; font-size: 13px; color: var(--shade-light, var(--muted)); }
.cohort-grid .tag { flex: none; padding: 3px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink); background: var(--shade, var(--paper)); }

/* A recommendation quoted inside a story: the words, then who said them. */
.said { max-width: 60ch; padding-left: 20px; border-left: 2px solid var(--shade, var(--paper)); }
.said blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; line-height: 1.45; color: var(--paper); }
.said cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--muted); }

/* The section bar: once a page's opening has scrolled away, its sections stay in reach under the masthead.
   It shows from 1000 px, the width at which the page name and every button fit on every page. */
.section-bar { position: fixed; left: 0; right: 0; top: 56px; z-index: 39; display: none; justify-content: space-between; align-items: center; gap: 16px; padding: 9px var(--gutter); background: var(--ink); border-bottom: 1px solid var(--hair); }
.section-bar .t { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-bar .t i { flex: none; width: 10px; height: 10px; background: var(--shade, var(--paper)); }
.section-bar ol { flex: none; display: flex; gap: 6px; }
.section-bar li { font-size: 11px; border: 1px solid var(--hair-strong); }
.section-bar li a { display: block; padding: 7px 11px; }
.section-bar li.here { background: var(--shade, var(--paper)); border-color: var(--shade, var(--paper)); }
.section-bar li.here a, .section-bar li.here a:hover { color: var(--ink); }
@media (min-width: 1000px) {
  .section-bar.on { display: flex; }
  .has-section-bar [id] { scroll-margin-top: 132px; }
}

/* The contact band closes every page: what I am open to, and one clear way to reach me. */
.contact-band { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--hair); }
.contact-band .k { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.contact-band .big, .letters h2.big { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.01em; max-width: 17ch; }
.contact-band .side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-band .reach { font-size: 15px; color: var(--muted); }
.contact-band .reach a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-band .btn.go { background: var(--paper); color: var(--ink); }
.contact-band .btn.go:hover { background: transparent; color: var(--paper); }

/* First impression. The cover's first screen ends with a next step: the buttons follow the cover line on
   every screen, with what Nova is open to beside them. The role line above the name is larger and white. */
.cover .kicker { font-size: 13px; color: var(--paper); }
.cover .actions { align-items: center; gap: 14px 20px; }
.open-to { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 1px solid var(--hair-strong); }
.open-to .caps { font-size: 11px; line-height: 1.2; color: var(--muted); }
.open-to strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
/* Where the row has no room for it, "Open to" takes its own row under the buttons. */
@media (max-width: 1139px) { .open-to { flex-basis: 100%; padding-left: 0; border-left: 0; } }
/* A short laptop window keeps the buttons on the first screen. */
@media (min-width: 1000px) and (max-height: 640px) { .cover { padding-top: 48px; } }

/* On a phone a close crop of the cover photo sits beside the name, in the space to its right,
   and the large photo is left out. */
.cover-name { display: flex; justify-content: space-between; align-items: stretch; gap: 12px; }
.cover-face { display: none; }
@media (max-width: 700px) {
  .cover .kicker { font-size: 12px; }
  .cover .actions { gap: 12px; }
  .cover-face { display: block; flex: 0 1 136px; min-width: 0; border: 1px solid var(--hair-strong); }
  .cover-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .cover > figure { display: none; }
}
/* On the narrowest phones the two buttons share one row and stay on the first screen. */
@media (max-width: 340px) { .cover .kicker { font-size: 11px; } }
@media (max-width: 380px) {
  .cover .actions { gap: 8px; }
  .cover .actions .btn { padding: 0 14px; }
  .cover .actions .btn.go::after { margin-left: 8px; }
}

/* The top bar says whose journal this is: the name and role beside the title on wide screens,
   "by Nova Skye" under the title on narrower ones. Contact is a button in the menu. */
.masthead .brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; line-height: 1; }
.masthead .brand .by { font-size: 11px; color: var(--muted); }
@media (min-width: 1340px) { .masthead .brand .by { display: none; } }
@media (min-width: 1001px) and (max-width: 1339px) { .masthead { padding-top: 12px; padding-bottom: 12px; } }
@media (min-width: 1001px) {
  .masthead nav a.contact { margin: -8px 0; padding: 7px 12px; border: 1px solid var(--paper); }
  .masthead nav a.contact:hover { background: var(--paper); color: var(--ink); }
}

/* Phones: each project row shows its result under the title, where the small scorecard is hidden. */
.toc-result { display: none; }
@media (max-width: 700px) {
  .toc-result { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: flex-start; gap: 9px; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--shade, var(--paper)); }
  .toc-result::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 5px; background: var(--shade, var(--paper)); }
  .toc-result + .dek { grid-row: 4; margin-top: 0; }
}

/* One colleague's sentence between the numbers and the projects. */
.said-strip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px; padding: 28px var(--gutter); border-top: 1px solid var(--hair); }
.said-strip blockquote { flex: 1 1 520px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.3; }
.said-who { display: flex; flex-direction: column; gap: 6px; }
.said-who cite { font-style: normal; font-size: 13px; color: var(--muted); }
.said-who a { font-size: 11px; }
@media (max-width: 700px) {
  .said-who { gap: 0; }
  .said-who a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Experience as a timeline: one bar per place on a year line, each in its own shade.
   The right edge is today; script.js sets --now, and the value here is the fallback. */
.timeline { --from: 2009; --now: 2026.87; margin-bottom: 36px; }
.tl-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--paper); font-size: 11px; color: var(--muted); }
.timeline li, .tl-axis { display: grid; grid-template-columns: minmax(0, 330px) 240px minmax(0, 1fr); gap: 20px; }
.timeline li { align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.tl-who { font-size: 14px; line-height: 1.4; color: var(--muted); }
.tl-who b { display: block; font-size: 15px; font-weight: 600; color: var(--paper); }
.tl-when { font-size: 13px; color: var(--muted); }
.tl-track { position: relative; height: 16px; }
.tl-track i { position: absolute; top: 0; bottom: 0; left: calc((var(--a) - var(--from)) / (var(--now) - var(--from)) * 100%); width: calc((var(--b, var(--now)) - var(--a)) / (var(--now) - var(--from)) * 100%); background: linear-gradient(90deg, var(--shade-light, var(--shade)), var(--shade) 60%); }
.tl-track i.after { background: none; border: 1px solid var(--shade); border-left: 0; }
.tl-axis { padding-top: 8px; }
.tl-ticks { grid-column: 3; display: block; position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.tl-ticks span { position: absolute; left: calc((var(--y) - var(--from)) / (var(--now) - var(--from)) * 100%); transform: translateX(-50%); }
.tl-ticks span:first-child { transform: none; }
.tl-ticks .tl-now { left: auto; right: 0; transform: none; }
@media (max-width: 1100px) {
  .timeline li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 10px 0; }
  .tl-when { align-self: start; text-align: right; }
  .tl-track { grid-column: 1 / -1; height: 12px; }
  .tl-axis { display: block; }
}
/* On a phone each place is its name, its dates and its bar; the roles are on the cards below. */
@media (max-width: 700px) {
  .timeline { margin-bottom: 28px; }
  .timeline li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 7px 0 8px; }
  .tl-who b { display: inline; }
  .tl-role { display: none; }
  .tl-when { text-align: left; }
  .tl-track { flex: 0 0 100%; height: 10px; margin-top: 3px; }
}

/* Previous and next project, with their covers, at the end of every project page and the Lab. */
.all-projects { flex: 1 1 100%; display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }
.pn { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pn-card { display: flex; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--hair-strong); color: var(--paper); transition: border-color 180ms; }
.pn-card:hover { border-color: var(--shade, var(--paper)); }
.pn-next { justify-content: space-between; text-align: right; }
.pn-card .toc-cover { flex: 0 0 168px; height: 105px; border-top: 3px solid var(--shade, var(--hair-strong)); }
.pn-card .toc-cover.type { padding: 10px 14px; }
.pn-card .toc-cover.type b { font-size: 44px; }
.pn-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pn-text .caps { font-size: 11px; color: var(--muted); }
.pn-text .serif { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.12; letter-spacing: -0.01em; }
@media (max-width: 700px) {
  .pn { grid-template-columns: 1fr; }
  .pn-card { gap: 14px; padding: 14px; }
  .pn-next { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
  .pn-card .toc-cover { flex-basis: 96px; height: 72px; margin-top: 0; }
  .pn-card .toc-cover.type { padding: 8px 10px; }
  .pn-card .toc-cover.type b { font-size: 28px; }
}

/* On a phone, Contact stays in the top bar beside the menu button. */
.bar-contact { display: none; }
@media (min-width: 360px) and (max-width: 1000px) {
  .js .bar-contact { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 2px; font-size: 11px; }
  .js .masthead { gap: 12px 12px; }
  .js .masthead .brand { white-space: nowrap; }
  .js .menu-toggle { padding: 0 12px; }
}
@media (min-width: 360px) and (max-width: 389px) {
  .js .masthead { gap: 12px 10px; }
  .js .masthead .brand { letter-spacing: 0.1em; }
  .js .menu-toggle { padding: 0 10px; }
}

/* A picture that opens full size does it on the page: the image, its caption and a Close button. */
html:has(dialog.lightbox[open]) { overflow: hidden; }
.lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 64px 24px 20px; border: 0; background: rgba(8, 8, 10, 0.96); color: var(--paper); }
.lightbox::backdrop { background: rgba(8, 8, 10, 0.96); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lb-top { position: absolute; top: 10px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.lb-nav { display: flex; gap: 8px; }
.lb-nav button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--hair-strong); background: none; color: var(--paper); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.lb-nav .lb-close { border-color: var(--paper); }
.lb-nav button:hover { background: var(--paper); color: var(--ink); }
.lb-stage { flex: 0 1 auto; min-height: 0; max-width: 100%; overflow: auto; }
.lb-stage img { display: block; width: auto; height: auto; max-width: min(1200px, 100%); max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); border: 1px solid var(--hair-strong); cursor: zoom-in; }
.lb-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-cap { max-width: 78ch; font-size: 14px; line-height: 1.5; color: var(--body); text-align: center; }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px 16px; }
  .lb-top { left: 12px; right: 12px; }
  .lb-cap { font-size: 13px; }
}

/* The record: its list of roles folds like the research list. On a phone both start folded,
   because the timeline and the six cards already show the same places. On wider screens the
   fold's label lines up with the labels beside it. */
@media (min-width: 701px) { .stack .fold > summary { align-items: flex-start; } }

/* 16 November 2026, Nova approved from mock-ups: the six Experience cards sit three by two on wide
   screens, and on phones the recommendations and the Experience cards swipe sideways like the
   screenshot groups, so the home page is about three screens shorter. */
@media (min-width: 1001px) {
  ol.issues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .praise-grid, ol.issues { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px 0; }
  .praise-grid > .praise-item { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
  ol.issues > li { flex: 0 0 80%; min-width: 0; scroll-snap-align: start; }
}

/* 17 November 2026, Nova chose subtler colours after trying both on the site: softer full-gamut
   lines, each project's shade mixed about a third toward grey, calmer charts, and a lighter RGB
   split on the cover. These rules come last so they win over the earlier ones. */
:root{--gamut:linear-gradient(90deg,#5fa37c,#5fa3ad,#6a7fb3,#a174ad,#b07175,#ae9f66,#5fa37c)}
.section::before,.feature-foot::before,.letters::before{height:2px;opacity:.75}
.section::after,.feature-foot::after,.letters::after{opacity:.4}
.masthead::after{opacity:.7}
.plates{filter:saturate(.45) brightness(.85)}
.cover h1{text-shadow:-0.008em .004em 0 rgba(255,0,40,.32),.008em -.004em 0 rgba(0,120,255,.35)}
.cover figure img{filter:saturate(.5)}
[data-shade="settlesmart"]{--shade:color-mix(in oklab,#4E9DFF 62%,#8f8f8f);--shade-light:color-mix(in oklab,#AFD3FF 62%,#a8a8a8)}
[data-shade="pipeline"]{--shade:color-mix(in oklab,#27D3E3 62%,#8f8f8f);--shade-light:color-mix(in oklab,#9EEBF2 62%,#a8a8a8)}
[data-shade="techies"]{--shade:color-mix(in oklab,#FF6257 62%,#8f8f8f);--shade-light:color-mix(in oklab,#FFB8B3 62%,#a8a8a8)}
[data-shade="tinynext"]{--shade:color-mix(in oklab,#FFD83D 62%,#8f8f8f);--shade-light:color-mix(in oklab,#FFEDA8 62%,#a8a8a8)}
[data-shade="rubixo"]{--shade:color-mix(in oklab,#F45FD0 62%,#8f8f8f);--shade-light:color-mix(in oklab,#FAB7EA 62%,#a8a8a8)}
[data-shade="onpremises"]{--shade:color-mix(in oklab,#9A7BFF 62%,#8f8f8f);--shade-light:color-mix(in oklab,#D2C4FF 62%,#a8a8a8)}
[data-shade="greenoak"]{--shade:color-mix(in oklab,#3DD56D 62%,#8f8f8f);--shade-light:color-mix(in oklab,#A8ECBD 62%,#a8a8a8)}
[data-shade="floyan"]{--shade:color-mix(in oklab,#FF9D42 62%,#8f8f8f);--shade-light:color-mix(in oklab,#FFD3AA 62%,#a8a8a8)}
[data-shade="abnieh"]{--shade:color-mix(in oklab,#C6F135 62%,#8f8f8f);--shade-light:color-mix(in oklab,#E5F9A4 62%,#a8a8a8)}

/* 17 November 2026: On Premises AI's tile shows a word, "Offline", in place of a number. */
.toc-cover.type.word b { font-size: 46px; }
.pn-card .toc-cover.type.word b { font-size: 34px; }
@media (max-width: 700px) {
  .toc-cover.type.word b { font-size: 21px; }
  .pn-card .toc-cover.type.word b { font-size: 20px; }
}

/* 17 November 2026, Nova chose from mock-ups: screenshot covers carry a light wash of their
   project's shade, so they sit with the number tiles. The Lab's gradient tile is left as it is. */
.toc-cover:not(.type):not(.lab) .n { z-index: 2; }
.toc-cover:not(.type):not(.lab)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, var(--shade-deep) 0%, var(--shade) 55%, var(--shade-light) 100%);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* 17 November 2026: on mid-size screens the previous and next cards were too narrow for the
   picture and the title side by side, so the title spilled out. There the picture sits above it. */
@media (min-width: 701px) and (max-width: 1000px) {
  .pn-card { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .pn-next { flex-direction: column-reverse; align-items: flex-end; justify-content: flex-end; }
  .pn-card .toc-cover { flex: 0 0 auto; width: 168px; align-self: auto; }
}

/* 17 November 2026: on a phone the prioritization quadrants stack, so they size to their items. */
@media (max-width: 700px) {
  .pq { min-height: 0; }
}
