/* Knowledge Sprint Series website. Static design file: edited by hand, not generated.
   Palette and typefaces from the MT24 Learning brand kit v1.0. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  --ink: #061127;
  --navy: #0A1C3C;
  --navy-2: #0E2550;
  --line: rgba(147, 166, 196, .18);
  --line-2: rgba(147, 166, 196, .32);
  --text: #F4F8FC;
  --muted: #A4B3CC;
  --soft: #93A6C4;
  --blue: #2A7CF6;
  --cyan: #22E6D4;
  --teal: #11B3A7;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.65 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--cyan); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.label {
  font: 600 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}

/* ---------------------------------------------------------------- header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 17, 39, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand small { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
header nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
header nav::-webkit-scrollbar { display: none; }
header nav a {
  text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .15s, background .15s;
}
header nav a:hover { color: var(--text); background: rgba(147, 166, 196, .1); }
header nav a.gh { color: var(--text); border: 1px solid var(--line-2); margin-left: 6px; display: inline-flex; align-items: center; gap: 8px; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header search field */
.hsearch {
  position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 320px; min-width: 0; height: 40px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 28, 60, .7);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.hsearch:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 230, 212, .18); background: #0A1C3C; }
.hs-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; color: var(--soft); cursor: pointer; font-size: 15px; }
.hsearch:focus-within .hs-icon { color: var(--cyan); }
.hsearch input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 400 15px/1 var(--sans); padding: 0 6px 0 0;
}
.hsearch input::placeholder { color: var(--soft); }
.hsearch input::-webkit-search-cancel-button { filter: invert(.7); }
.hsearch kbd {
  margin-right: 10px; font: 600 11px/1 var(--mono); color: var(--soft); border: 1px solid var(--line-2); border-radius: 5px;
  padding: 3px 6px; background: rgba(147, 166, 196, .08);
}
.hsearch:focus-within kbd { display: none; }
@media (max-width: 1080px) { header nav a[href$="#follow"], header nav a[href$="#cite"] { display: none; } }
@media (max-width: 860px) {
  .hsearch { order: 2; flex: 0 0 auto; width: 40px; margin-left: auto; }
  .hsearch kbd { display: none; }
  .hsearch input { width: 0; padding: 0; opacity: 0; }
  .hsearch:focus-within { width: 100%; flex-basis: 100%; order: 3; }
  .hsearch:focus-within input { width: auto; padding: 0 6px 0 0; opacity: 1; }
  header nav { order: 4; }
  header nav a[href$="#follow"], header nav a[href$="#cite"] { display: inline; }
}
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; gap: 6px; }
  header nav { width: 100%; margin: 0 -8px; }
  header nav a { font-size: 14px; padding: 6px 10px; }
  html { scroll-padding-top: 116px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 12% 8%, rgba(42, 124, 246, .22), transparent 70%),
    radial-gradient(520px 380px at 88% 30%, rgba(34, 230, 212, .12), transparent 70%),
    linear-gradient(rgba(147, 166, 196, .06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(147, 166, 196, .06) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; margin-bottom: 22px; max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 58ch; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--cyan); color: var(--ink); }
.btn.primary:hover { background: #4cf0e0; }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--soft); }

.fan { position: relative; height: 460px; }
.fan a {
  position: absolute; top: 50%; left: 50%; width: 260px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fan .fan-0 { transform: translate(-108%, -50%) rotate(-9deg); }
.fan .fan-1 { transform: translate(-8%, -46%) rotate(7deg); }
.fan .fan-2 { transform: translate(-56%, -52%) rotate(-1deg); z-index: 2; }
.fan:hover .fan-0 { transform: translate(-118%, -50%) rotate(-11deg); }
.fan:hover .fan-1 { transform: translate(2%, -46%) rotate(9deg); }
.fan a:hover { z-index: 3; }

.progress {
  position: relative; margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: rgba(10, 28, 60, .78); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--soft); font-size: 15px; }
.meter { display: block; height: 6px; border-radius: 999px; background: rgba(147, 166, 196, .16); margin-top: 14px; overflow: hidden; position: relative; }
.meter::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.js .meter::after { width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .meter.go::after { width: var(--v); }
.next-note { grid-column: 1 / -1; background: rgba(10, 28, 60, .78); padding: 16px 24px; color: var(--muted); font-size: 15px; }
.next-note b { color: var(--text); font-weight: 600; }
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); margin-right: 10px;
  box-shadow: 0 0 12px var(--cyan); vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: 16ch; }
  .fan { height: 330px; }
  .fan a { width: 190px; }
}
@media (max-width: 560px) {
  .fan { height: 270px; }
  .fan a { width: 150px; }
  .progress { grid-template-columns: 1fr; }
  .stat { padding: 18px 20px; }
  .stat b { font-size: 30px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- values strip */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy); }
.values-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; }
.values span { color: var(--soft); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.values span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--teal); }
.values b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.block { padding: 88px 0; }
.block.alt { background: var(--navy); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin-bottom: 14px; max-width: 22ch; }
.sub { color: var(--muted); max-width: 64ch; margin-bottom: 44px; }
@media (max-width: 560px) { .block { padding: 64px 0; } .sub { margin-bottom: 32px; } }

/* ---------------------------------------------------------------- phase cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--navy); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(42, 124, 246, .55); transform: translateY(-3px); }
.card .cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #0b1730; border-bottom: 1px solid var(--line); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .cover img { transform: scale(1.03); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; justify-content: space-between; gap: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.meta span:first-child { color: var(--cyan); font-weight: 700; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.card .line { font: italic 400 16px/1.5 var(--serif); color: var(--muted); margin-bottom: 16px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 500 12px/1.4 var(--mono); color: var(--soft); padding-top: 14px; border-top: 1px dashed var(--line); }
.doi { color: #6FB0FF; text-decoration: none; }
.doi:hover { text-decoration: underline; }
.card.milestone { border-color: rgba(34, 230, 212, .35); }
.card.milestone .meta span:first-child { color: var(--teal); }
.card.next { border-style: dashed; border-color: var(--line-2); background: transparent; }
.card.next:hover { transform: none; }
.card.next .line { font-style: normal; font-family: var(--sans); font-size: 15px; }

/* ---------------------------------------------------------------- results */
.feature {
  margin: 0 0 40px; padding: 30px 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(42, 124, 246, .16), rgba(34, 230, 212, .07));
  border: 1px solid rgba(42, 124, 246, .35);
}
.feature blockquote { margin: 0 0 14px; font: italic 500 clamp(21px, 2.6vw, 28px)/1.4 var(--serif); }
.feature figcaption { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.feature figcaption a { text-decoration: none; color: var(--text); }
.results { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.results li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.results .n { font: 700 14px/1.6 var(--mono); color: var(--cyan); min-width: 24px; }
.results a { font-weight: 600; text-decoration: none; }
.results a:hover { text-decoration: underline; text-underline-offset: 4px; }
.results p { color: var(--muted); font-size: 16px; margin-top: 4px; }
@media (max-width: 860px) { .results { grid-template-columns: 1fr; } .feature { padding: 24px 22px; } }

/* ---------------------------------------------------------------- how a sprint works */
.parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.parts li { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.parts .n { font: 700 13px/1 var(--mono); color: var(--cyan); display: block; margin-bottom: 18px; }
.parts h3 { font-size: 18px; margin-bottom: 10px; }
.parts p { color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .parts { grid-template-columns: repeat(2, 1fr); } .parts li:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .parts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cite */
.cite-grid { display: grid; gap: 0; }
.cite-box { position: relative; border: 1px solid var(--line-2); border-radius: 14px; background: #04102a; }
.cite-box pre {
  margin: 0; padding: 22px 24px; padding-right: 96px; font: 400 14px/1.7 var(--mono); color: #C9D6EC;
  white-space: pre-wrap; word-break: break-word;
}
.copy {
  position: absolute; top: 14px; right: 14px; font: 600 13px/1 var(--sans); color: var(--ink); background: var(--cyan);
  border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer;
}
.copy:hover { background: #4cf0e0; }
.cite-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; }
.cite-links a { color: #6FB0FF; text-decoration: none; font-size: 15px; }
.cite-links a:hover { text-decoration: underline; }
@media (max-width: 560px) { .cite-box pre { padding: 18px; padding-top: 56px; font-size: 13px; } }

/* ---------------------------------------------------------------- follow */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills a {
  text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px; color: var(--muted);
  font-size: 15px; transition: color .15s, border-color .15s, background .15s;
}
.pills a:hover { color: var(--text); border-color: var(--cyan); background: rgba(34, 230, 212, .06); }
.follow-pills { list-style: none; margin: 0; padding: 0; }
.follow-pills a { display: inline-flex; align-items: center; gap: 9px; }
.follow-pills a .icon { font-size: 16px; color: var(--cyan); }

/* ---------------------------------------------------------------- footer */
footer.site { border-top: 1px solid var(--line); padding: 30px 0 36px; color: var(--soft); font-size: 14px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.foot-brand b { display: block; color: var(--text); font-size: 15px; }
.foot-brand small { display: block; font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted) !important;
  border: 1px solid var(--line-2); background: rgba(10, 28, 60, .6); text-decoration: none !important;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.socials a .icon { font-size: 17px; }
.socials a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.socials a:hover, .socials a:focus-visible { color: var(--ink) !important; background: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }

/* ---------------------------------------------------------------- motion */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .meter::after { transition: none; width: var(--v); }
  .dot { animation: none; }
  .fan a, .card, .card .cover img, .btn, .spot, .pager a, .issue a, .back, .back-float, .socials a, .hsearch { transition: none; }
}

/* ================================================================ text pages (sprints, phases, search)
   Generated by tools/pages.py; styles edited by hand. --acc is the sprint's accent as printed on its
   image; --acc-text is the same hue lightened until it reads on navy (contrast 5:1 or more). */


.card .cover { position: relative; }
.badge {
  position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 7px;
  font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--cyan); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7);
}

.text-page { --acc: var(--blue); --acc-text: #6FB0FF; position: relative; isolation: isolate; }
.text-page::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(820px 420px at 22% 0%, color-mix(in srgb, var(--acc) 24%, transparent), transparent 72%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; font: 500 13px/1.5 var(--mono); color: var(--soft); }

/* back controls */
.back {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; padding: 7px 14px 7px 11px; border-radius: 999px;
  font: 600 13px/1 var(--sans); letter-spacing: .01em; color: var(--text) !important; text-decoration: none !important;
  border: 1px solid var(--line-2); background: rgba(10, 28, 60, .8); transition: border-color .2s, background .2s, transform .2s;
}
.back .icon { font-size: 15px; transition: transform .2s; }
.back:hover { border-color: var(--acc-text, var(--cyan)); background: #0E2550; }
.back:hover .icon { transform: translateX(-3px); }
.back:focus-visible, .back-float:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.back-float {
  position: fixed; left: 20px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; color: var(--text); background: rgba(14, 37, 80, .92); border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s;
}
.back-float .icon { font-size: 19px; }
.back-float:hover { border-color: var(--acc-text, var(--cyan)); }
body.scrolled .back-float { opacity: 1; transform: none; pointer-events: auto; }
.lost-back { margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }

.t-head { position: relative; padding-top: 26px; padding-bottom: 34px; }
.eyebrow {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin: 22px 0 14px;
  font: 600 12.5px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-text);
}
.eyebrow .names { color: var(--soft); letter-spacing: .12em; }
.t-head h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; max-width: 22ch; margin-bottom: 18px; }
.t-head h1 em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--acc-text); letter-spacing: -.01em; }
.tagline { font: italic 400 clamp(19px, 2vw, 23px)/1.45 var(--serif); color: #C9D6EC; max-width: 56ch; }
.in-short { margin-top: 18px; color: var(--muted); max-width: 70ch; font-size: 16px; }
.in-short b { color: var(--text); font-weight: 600; }

/* the road: one cell per sprint of the series */
.road { display: flex; gap: 2px; align-items: center; height: 14px; max-width: 760px; }
.road .cell { flex: 1 1 0; height: 6px; border-radius: 2px; background: rgba(147, 166, 196, .12); }
.road .cell.gap { margin-left: 5px; }
.road .cell.on { background: rgba(147, 166, 196, .42); }
.road a.cell.on { background: rgba(147, 166, 196, .62); }
.road a.cell:hover { background: var(--text); }
.road .cell.here { height: 14px; background: var(--acc-text); box-shadow: 0 0 12px var(--acc-text); }

/* body: the image stays in view while the text scrolls */
.t-body { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 72px; }
.t-image { margin: 0; position: sticky; top: 92px; }
.spotlit { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); }
.spot { position: absolute; border-radius: 5px; cursor: pointer; transition: box-shadow .4s ease; }
.spot:hover { box-shadow: 0 0 0 2px var(--acc-text); z-index: 3; }
.spotlit.on .spot.lit { z-index: 2; box-shadow: 0 0 0 2px var(--acc-text), 0 0 18px 2px color-mix(in srgb, var(--acc-text) 60%, transparent), 0 0 0 2400px rgba(2, 7, 20, .52); }
.spot-hint { margin-top: 8px; font: italic 400 14px/1.45 var(--serif); color: var(--soft); max-width: 40ch; }
.t-image figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font: 500 13px/1.5 var(--mono); color: var(--soft); }
.t-image figcaption a { color: #6FB0FF; text-decoration: none; }
.t-image figcaption a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .t-body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .t-image { position: static; max-width: 520px; }
  .spotlit.on .spot.lit { box-shadow: none; }
  .spot-hint { display: none; }
}

.t-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.t-text h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.t-text h2 > span:not(.key):not(.sec):not(.h):not(.tag):not(.stamp):not(.ver) { font: italic 400 19px/1 var(--serif); color: var(--soft); }
.t-text p, .t-text li { color: #D7E1F1; }
.t-text strong { color: var(--text); }
.key {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 8px;
  font: 700 14px/1 var(--mono); color: var(--text); background: #040d22;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 color-mix(in srgb, var(--acc) 85%, black);
}
.sec { color: var(--acc-text); margin-right: -4px; }

/* Fig. 1 in words */
.t-fig { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 28, 60, .55); }
.fig-title { font: 600 12.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); margin-bottom: 18px; }
.panels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panels > li { padding: 16px 16px 14px; border-radius: 12px; background: #071431; border: 1px solid var(--line); }
.panels h3 { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.panels ul { margin: 0; padding: 0; list-style: none; }
.panels ul li { font-size: 15px; line-height: 1.5; padding: 3px 0; }
.panels em, .notes em { color: var(--muted); }
.fig-sprint { margin-left: auto; font-size: 11px; color: var(--c, var(--acc-text)); text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.panels.one { grid-template-columns: 1fr; }
.ball {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  font: 700 12px/1 var(--mono); color: #fff; background: var(--acc);
}
.notes { margin-top: 16px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-2); }
.notes h3 { font: 600 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.notes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { display: block; position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.5; }
.notes li .ball { position: absolute; left: 0; top: 1px; }
.notes li b { font: 700 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-right: 6px; }
@media (max-width: 640px) {
  .panels { grid-template-columns: 1fr; } .t-fig { padding: 18px; }
  .t-try, .t-sources { padding: 16px; } .t-card { padding: 18px 16px 16px; }
  .t-card h2 { font-size: 20px; } .ver { margin-left: 0; width: 100%; }
}

/* cards 01–04, 06, 07 */
.t-cards { display: grid; gap: 16px; }
.t-card {
  position: relative; padding: 20px 22px 18px; border-radius: 14px; background: var(--navy); border: 1px solid var(--line);
  border-top: 4px solid var(--acc);
}
.t-card h2 { font-size: 22px; margin-bottom: 12px; }
.t-card h2 .h { flex: 1 1 auto; }
.tag { font: 600 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.stamp {
  font: 700 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ff8a7a;
  border: 2px solid #ff8a7a; border-radius: 6px; padding: 6px 9px; transform: rotate(-4deg);
  background: rgba(255, 106, 90, .08);
}
.t-card ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-card li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.55; }
.t-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--acc-text); }
.t-card .note {
  padding-top: 12px; border-top: 1px dashed var(--line-2); font: italic 400 16px/1.5 var(--serif); color: var(--muted);
}
.t-card.claim { background: linear-gradient(180deg, rgba(255, 106, 90, .07), transparent 60%), var(--navy); }

/* Try It */
.t-try { min-width: 0; padding: 22px; border-radius: var(--radius); background: #030b1d; border: 1px solid var(--line); border-top: 4px solid #f5b94a; }
.t-try h2 { font-size: 22px; }
.t-try .key { box-shadow: inset 0 0 0 1px #f5b94a, 0 3px 0 #a87412; color: #f5b94a; }
.ver { margin-left: auto; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; color: var(--soft); }
.code-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.code-box .file {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 8px 12px 8px 16px;
  font: 500 12.5px/1.4 var(--mono); color: var(--soft); background: #071431; border-bottom: 1px solid var(--line);
}
.code-box .file .copy { position: static; padding: 6px 12px; flex-shrink: 0; }
.code-box .file span { min-width: 0; overflow-wrap: anywhere; }
.code-box { min-width: 0; }
.code-box .file.out { border-top: 1px solid var(--line); color: #f5c26b; }
.code-box pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13px/1.62 var(--mono); tab-size: 4; }
.code-box pre.code { color: #D7E1F1; background: #020818; }
.code-box pre.output { color: #f5c26b; background: #0a0d14; }
.c-kw { color: #ff8fb8; } .c-str { color: #9be9a8; } .c-num { color: #f5b94a; } .c-com { color: #6b7d99; font-style: italic; }
.c-fn { color: #c7a6ff; } .c-bi { color: #7fd4ff; }
.t-try .run { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.t-try .run a { color: #6FB0FF; text-decoration: none; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.t-try .run a:hover { text-decoration: underline; }
.t-try .check { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); font: italic 400 17px/1.5 var(--serif); color: #E8D9B8; }

/* sources */
.t-sources { padding: 22px; border-radius: var(--radius); background: var(--navy); border: 1px solid var(--line); }
.t-sources .key { background: var(--text); color: var(--ink); box-shadow: 0 3px 0 var(--acc); }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sources li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.sources li::before { content: "◆"; position: absolute; left: 0; top: 7px; color: var(--acc-text); font-size: 12px; line-height: 1.9; }
.sources a { color: #D7E1F1; text-decoration: none; }
.sources a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--acc-text); text-underline-offset: 3px; }

/* pager and citation */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding-bottom: 40px; }
.pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  text-decoration: none; background: rgba(10, 28, 60, .6); transition: border-color .2s, transform .2s;
}
.pager a:hover { border-color: var(--acc-text); transform: translateY(-2px); }
.pager small { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-text); }
.pager b { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.pager .pg-next { text-align: right; }
.pager .pg-up { text-align: center; min-width: 180px; }
.pager .ext { color: var(--soft); text-transform: none; letter-spacing: 0; }
@media (max-width: 760px) { .pager { grid-template-columns: 1fr; } .pager .pg-next, .pager .pg-up { text-align: left; } }
.cite-strip { padding-bottom: 80px; }
.cite-note { margin-top: 12px; font: 500 13px/1.6 var(--mono); color: var(--soft); }

/* phase page */
.ribbon {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding: 9px 14px; border-radius: 8px;
  font: 600 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  background: #040d22; border: 1px solid var(--line);
}
.ribbon span:first-child { color: #f5b94a; }
.phase .t-head h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.byline { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; color: var(--muted); }
.byline a { color: var(--muted); }
.chip {
  display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 700 12.5px/1 var(--mono); color: var(--ink); background: var(--c, var(--acc-text)); text-decoration: none;
}
.chip:hover { filter: brightness(1.12); }
.byline .chip { color: var(--ink); }
.dropcap::first-letter { float: left; font: 700 64px/.82 var(--sans); margin: 6px 10px 0 0; color: var(--acc-text); }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 6px; font-size: 16.5px; }
.misread ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.misread li { padding: 14px 0; border-top: 1px dashed var(--line-2); }
.misread .struck { font: italic 400 17px/1.45 var(--serif); color: #ff9b8f; }
.misread s { text-decoration-thickness: 1.5px; }
.misread .ok { font: 700 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-right: 6px; }
.misread .by { margin-top: 4px; font: italic 400 15px/1.4 var(--serif); color: var(--soft); }
.issue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.issue a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 14px; overflow: hidden;
  background: var(--navy); border: 1px solid var(--line); border-top: 4px solid var(--c); transition: transform .2s, border-color .2s;
}
.issue a:hover { transform: translateY(-3px); border-color: var(--c); }
.issue img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.issue .meta { padding: 12px 14px 0; margin: 0; font-size: 11px; }
.issue .meta span:first-child { color: var(--c); }
.issue b { padding: 6px 14px 0; font-size: 16px; line-height: 1.3; }
.issue b em { font-family: var(--serif); color: var(--c); }
.issue i { padding: 8px 14px 14px; font: italic 400 14.5px/1.4 var(--serif); color: var(--muted); }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.boxes section { padding: 18px; border-radius: 14px; border-top: 4px solid var(--c); background: color-mix(in srgb, var(--c) 9%, var(--navy)); }
.boxes h2 { font-size: 20px; color: var(--c); margin-bottom: 8px; }
.boxes p { font-size: 15.5px; }
@media (max-width: 760px) { .boxes { grid-template-columns: 1fr; } }
.next-issue { padding: 20px 22px; border-radius: 14px; background: #040d22; border: 1px solid var(--line-2); }
.next-issue .label { color: #f5b94a; margin-bottom: 6px; }
.ni-title { font-size: 24px; font-weight: 700; }
.ni-line { font: italic 400 17px/1.4 var(--serif); color: var(--muted); margin-top: 4px; }

/* general blocks: catalog summaries (Phases 1–10), milestone and statement pages, early sprint layouts */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span { font: 500 13px/1.3 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.t-card .lead, .t-try .lead { margin-bottom: 12px; font-size: 16.5px; line-height: 1.55; }
.card-code { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #020818; border: 1px solid var(--line);
  overflow-x: auto; font: 400 13px/1.6 var(--mono); color: #D7E1F1; }
.try-items { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.try-items li { position: relative; padding-left: 20px; font-size: 15.5px; }
.try-items li::before { content: "›"; position: absolute; left: 4px; color: #f5b94a; }
.fig-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.fig-lines li { font-size: 15.5px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 14px; background: var(--navy); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--acc)); }
.tile h3 { font-size: 17px; margin-bottom: 8px; }
.tile h3 a { text-decoration: none; color: var(--text); }
.tile h3 a:hover { color: var(--c); text-decoration: underline; text-underline-offset: 3px; }
.tile p, .tile li { font-size: 15px; line-height: 1.5; }
.tile ul { margin: 6px 0 0; padding-left: 18px; }
.tile .tag { display: inline-block; margin-top: 10px; color: var(--c, var(--soft)); }
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.blocks.one { grid-template-columns: minmax(0, 1fr); }
.blk { min-width: 0; }
.blk { padding: 18px; border-radius: 14px; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--acc));
  background: color-mix(in srgb, var(--c, var(--acc)) 7%, var(--navy)); }
.blk h2 { font-size: 20px; color: var(--c, var(--acc-text)); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.blk p, .blk li { font-size: 15.5px; line-height: 1.55; }
.blk ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.blk .note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); font: italic 400 15.5px/1.5 var(--serif); color: var(--muted); }

/* search page (Pagefind UI) */
.search-page { min-height: 70vh; }
.search-box {
  --pagefind-ui-scale: .9; --pagefind-ui-primary: #22E6D4; --pagefind-ui-text: #F4F8FC; --pagefind-ui-background: #0A1C3C;
  --pagefind-ui-border: rgba(147, 166, 196, .32); --pagefind-ui-tag: #0E2550; --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 12px; --pagefind-ui-image-border-radius: 8px; --pagefind-ui-image-box-ratio: 4 / 5;
  --pagefind-ui-font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}
.search-box .pagefind-ui__result-link { color: var(--text); }
.search-box mark { background: rgba(34, 230, 212, .22); color: var(--text); border-radius: 3px; padding: 0 2px; }
.search-note { margin: 28px 0 80px; color: var(--soft); font-size: 14px; }
.lost { padding: 120px 0; min-height: 70vh; }
.lost h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.lost h1 em { font-family: var(--serif); color: var(--cyan); }
.lost .actions { margin-top: 32px; }

/* italic subtitle printed above a summary's paragraph */
.t-head .subtitle { font: italic 500 clamp(18px, 1.8vw, 21px)/1.4 var(--serif); color: var(--acc-text); margin-top: 12px; max-width: 56ch; }
.t-head .subtitle + .tagline { margin-top: 8px; }

/* case kept inside headings set in capitals (file names); struck claims */
.keep { text-transform: none; letter-spacing: .02em; }
.t-body s, .blk s { text-decoration-color: #ff6b5b; text-decoration-thickness: 2px; }
.fig-caption { font: italic 400 17px/1.55 var(--serif); color: var(--muted); margin: -6px 0 18px; max-width: 72ch; }
