/* Finshub case study. Colours sampled from the logo: off-white paper, black ink. */
:root {
  --paper: #fafbf5;
  --paper-2: #f1f2e9;
  --ink: #0a0a0a;
  --ink-2: #2f2f2c;
  --muted: #74746d;
  --line: #e0e1d6;
  --night: #111110;
  --night-2: #1c1c1a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: 20px;
  --max: 1080px;
  --text: 640px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--text); }

/* ---------- Header: always visible, chapter menu, reading progress ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(250, 251, 245, .94);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__inner { display: flex; align-items: center; gap: 14px; height: 56px; }
.bar__home { flex-shrink: 0; display: block; }
.bar__home img { height: 26px; width: auto; }
.bar__now { min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 14px; border-left: 1px solid var(--line); opacity: 0; transition: opacity .25s; }
.bar__now.is-on { opacity: 1; }
.bar__now span { color: var(--muted); font-weight: 500; margin-right: 6px; font-variant-numeric: tabular-nums; }
.bar__dots { margin-left: auto; display: none; gap: 4px; }
.bar__dots a {
  width: 28px; height: 28px; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none;
  border-radius: 50%; transition: background .2s, color .2s;
}
.bar__dots a.is-active { background: var(--ink); color: var(--paper); }
.bar__dots a:hover { color: var(--ink); background: var(--paper-2); }
.bar__dots a.is-active:hover { color: var(--paper); background: var(--ink); }
.bar__menu { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 600; }
.bar__menu:hover { border-color: var(--ink); }
.bar__menu svg { width: 16px; height: 16px; }
.bar__menu path { transition: transform .25s ease; transform-origin: 12px 12px; }
.bar__menu[aria-expanded="true"] .m1 { transform: translateY(4px) rotate(45deg); }
.bar__menu[aria-expanded="true"] .m2 { transform: translateY(-4px) rotate(-45deg); }
.bar__fill { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.menu { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100svh - 56px); overflow-y: auto; box-shadow: 0 24px 40px -28px rgba(0,0,0,.35); }
.menu ol { display: grid; grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 16px; }
.menu a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 17px; font-weight: 600; }
.menu a span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; width: 22px; }
.menu a:hover, .menu a.is-active { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 720px) { .menu ol { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .bar__dots { display: flex; } .bar__menu { margin-left: 8px; } }
@media (max-width: 420px) { .bar__menu span { display: none; } .bar__menu { padding: 0 11px; } }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 40px; }
.hero__logo { width: min(440px, 88%); margin-left: -1.5%; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; }
.hero__domain { font-size: 14px; color: var(--muted); }
.hero__line { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 5.4vw, 40px); line-height: 1.25; letter-spacing: -.01em; max-width: 22ch; }
.hero__sub { margin-top: 18px; color: var(--ink-2); max-width: 46ch; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; max-width: 760px; }
.stats div { background: var(--paper); padding: 16px 16px 14px; }
.stats b { display: block; font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }
.hero__cue { margin-top: 36px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.hero__cue svg { width: 18px; height: 18px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contents ---------- */
.toc { padding: 0 0 72px; }
.toc ol { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 14px; padding: 12px 0; text-decoration: none; font-size: 15px; }
.toc a span { color: var(--muted); font-variant-numeric: tabular-nums; width: 22px; }
.toc a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.toc b { font-weight: 600; }
@media (min-width: 720px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* ---------- Chapters ---------- */
.ch { padding: 88px 0; border-top: 1px solid var(--line); }
.ch--night { background: var(--night); color: #f2f2ec; border-top: 0; }
.ch--night .muted, .ch--night .lede, .ch--night .cap, .ch--night .ch__num, .ch--night .ch__when { color: #a9a9a1; }
.ch--tint { background: var(--paper-2); }
.ch__head { display: grid; gap: 6px; margin-bottom: 28px; }
.ch__num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.ch__when { font-size: 13px; color: var(--muted); }
.ch__title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 7vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.lede { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: var(--text); }
.lede + .lede { margin-top: 14px; }
.muted { color: var(--muted); }
.cap { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.sub { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 56px 0 18px; }
.ch--night .sub { color: #8d8d86; }
.block { margin-top: 40px; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .split--rev > :first-child { order: 2; }
}

/* ---------- Phone frame ---------- */
.phone { width: min(260px, 70vw); margin: 0 auto; border: 8px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

/* ---------- Pillars (ch 01) ---------- */
.pillars { display: grid; gap: 10px; }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.pillars svg { width: 44px; height: 44px; }
.pillars b { display: block; font-size: 15px; }
.pillars span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Article cards (ch 02) ---------- */
.articles { display: grid; gap: 14px; grid-template-columns: 1fr; }
.art { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
a.art:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.art__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.art__img img { width: 100%; height: 100%; object-fit: cover; }
.art__type { aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px; background: var(--ink); color: var(--paper); }
.art__type svg { width: 100%; height: auto; margin-bottom: auto; }
.art__type .big { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.art__body { padding: 16px 16px 18px; display: grid; gap: 6px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.art h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.3; }
.art p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.art__more { font-size: 13px; font-weight: 600; margin-top: 4px; }
@media (min-width: 620px) { .articles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.note-strip { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.note-strip b { color: var(--ink); }

/* ---------- Pipeline diagram ---------- */
.pipe { display: grid; gap: 10px; }
.pipe__step { position: relative; padding: 16px 16px 16px 56px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.ch--night .pipe__step { background: var(--night-2); border-color: #2c2c29; }
.pipe__step i { position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--paper); }
.ch--night .pipe__step i { background: var(--paper); color: var(--ink); }
.pipe__step b { display: block; font-size: 15px; }
.pipe__step span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ch--night .pipe__step span { color: #a3a39b; }
.pipe__step:not(:last-child)::after { content: ""; position: absolute; left: 28px; bottom: -11px; width: 2px; height: 10px; background: var(--ink); }
.ch--night .pipe__step:not(:last-child)::after { background: #5b5b55; }
.pipe__out { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.pipe__out div { padding: 12px 8px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
.pipe__out small { display: block; font-weight: 500; opacity: .7; font-size: 11.5px; }
@media (min-width: 900px) {
  .pipe--row { grid-template-columns: repeat(var(--n, 4), 1fr); gap: 14px; }
  .pipe--row .pipe__step { padding: 56px 16px 18px; }
  .pipe--row .pipe__step:not(:last-child)::after { left: auto; right: -15px; top: 28px; bottom: auto; width: 16px; height: 2px; }
}

/* ---------- Video facades ---------- */
.vids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .vids { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.vids--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .vids--3 { grid-template-columns: repeat(3, 1fr); } }
.vid { display: grid; gap: 8px; align-content: start; }
.vid__btn { position: relative; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--night-2); cursor: pointer; }
.vid__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vid__btn:hover img { transform: scale(1.04); }
.vid__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); }
.vid__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(250,251,245,.95); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.vid__play svg { width: 18px; height: 18px; margin-left: 3px; fill: #0a0a0a; }
.vid__src { position: absolute; z-index: 1; left: 10px; bottom: 9px; font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.vid iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 12px; background: #000; }
.vid--ig iframe { aspect-ratio: 4 / 5.6; background: #fff; }
.vid h4 { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ch--night .vid h4 { color: #ecece6; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li > *, .chips li { font-size: 13px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chips a { text-decoration: none; }
.chips li:has(a):hover { border-color: var(--ink); }
.ch--night .chips li { background: transparent; border-color: #34342f; color: #e6e6df; }
.series { display: grid; gap: 22px; }
.series h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
@media (min-width: 860px) { .series { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }

/* ---------- Gallery (ch 04) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery figure { display: grid; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border-radius: 12px; background: var(--night-2); }
.gallery figcaption { font-size: 12.5px; color: #a3a39b; line-height: 1.4; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.globe { display: grid; gap: 20px; align-items: center; }
.globe__n { font-size: clamp(72px, 18vw, 128px); font-weight: 800; letter-spacing: -.05em; line-height: .85; }
.globe__n small { display: block; font-size: 14px; letter-spacing: 0; font-weight: 600; color: #a9a9a1; margin-top: 10px; }
@media (min-width: 860px) { .globe { grid-template-columns: auto 1fr; gap: 56px; } }

/* ---------- Roadmap ---------- */
.road { border: 1px solid #2c2c29; border-radius: 18px; overflow: hidden; background: var(--night-2); }
.road__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #2c2c29; }
.road__tab { appearance: none; border: 0; background: transparent; padding: 14px 10px 12px; text-align: left; cursor: pointer; color: #8d8d86; border-right: 1px solid #2c2c29; position: relative; }
.road__tab:last-child { border-right: 0; }
.road__tab small { display: block; font-size: 10.5px; letter-spacing: .1em; font-weight: 700; }
.road__tab span { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.road__tab[aria-selected="true"] { color: #fff; background: #262623; }
.road__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fafbf5; }
.road__bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; padding: 16px 16px 0; }
.road__bar i { height: 6px; border-radius: 3px; background: #33332f; transition: background .3s; }
.road__bar i.on { background: #fafbf5; }
.road__panel { padding: 16px 16px 20px; }
.road__panel[hidden] { display: none; }
.road__goal { font-size: 14px; color: #b5b5ad; margin-bottom: 14px; }
.road__weeks { display: grid; gap: 10px; }
.wk { padding: 14px 16px; border-radius: 12px; background: #151513; border: 1px solid #2c2c29; }
.wk small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #8d8d86; }
.wk b { display: block; font-size: 15.5px; margin: 2px 0 6px; color: #fff; }
.wk p { font-size: 13.5px; color: #b5b5ad; line-height: 1.5; }
.wk p + p { margin-top: 6px; }
.wk p em { font-style: normal; color: #e7e7df; font-weight: 600; }
@media (max-width: 520px) { .road__tab span { display: none; } .road__tab small { font-size: 11px; } }
@media (min-width: 860px) { .road__weeks { grid-template-columns: repeat(3, 1fr); } .road__tab { padding: 16px 18px 14px; } .road__panel { padding: 18px 20px 22px; } }
.tracks { display: grid; gap: 12px; }
.track { padding: 18px; border-radius: var(--r); border: 1px solid #2c2c29; }
.track b { display: block; font-size: 16px; margin-bottom: 4px; }
.track p { font-size: 14px; color: #b5b5ad; line-height: 1.5; }
@media (min-width: 860px) { .tracks { grid-template-columns: 1fr 1fr; } }

/* ---------- Rhythm grid (ch 05) ---------- */
.rhythm { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.rhythm table { border-collapse: separate; border-spacing: 4px; min-width: 640px; width: 100%; }
.rhythm th { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 0 0 4px; }
.rhythm th:first-child { text-align: left; width: 150px; }
.rhythm td { height: 42px; border-radius: 8px; background: var(--paper-2); text-align: center; font-size: 11.5px; font-weight: 600; }
.rhythm td.lab { background: none; text-align: left; font-size: 13px; font-weight: 600; padding-right: 8px; line-height: 1.25; }
.rhythm td.draft { background: repeating-linear-gradient(135deg, #e4e5da 0 6px, #f1f2e9 6px 12px); }
.rhythm td.due { background: var(--ink); color: var(--paper); }
.rhythm td.rot { background: #d6d7cc; }
.rhythm td.meet { background: var(--ink-2); color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* ---------- Report anatomy ---------- */
.doc { position: relative; max-width: 520px; width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px 20px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); }
.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.doc__head img { width: 104px; }
.doc__head span { font-size: 10.5px; color: var(--muted); text-align: right; line-height: 1.35; }
.doc details { border-bottom: 1px solid var(--line); }
.doc details:last-child { border-bottom: 0; }
.doc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.doc summary b { font-size: 14.5px; }
.doc summary small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.doc summary::after { content: none; }
.doc details p { font-size: 13.5px; color: var(--ink-2); padding: 0 0 12px 36px; line-height: 1.5; }
.doc details[open] summary b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Fund flow ---------- */
.flow { width: 100%; height: auto; }
.flow text { font-family: var(--sans); }
.flow--v { max-width: 360px; margin: 0 auto; }
.flow--h { display: none; }
@media (min-width: 860px) { .flow--v { display: none; } .flow--h { display: block; } }
.proposal-parts { counter-reset: p; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.proposal-parts li { counter-increment: p; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c2c29; color: #e6e6df; }
.proposal-parts li::before { content: counter(p, decimal-leading-zero) "  "; color: #8d8d86; font-size: 11px; font-weight: 700; }
@media (min-width: 860px) { .proposal-parts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Partners (ch 07) ---------- */
.partners { display: grid; gap: 12px; }
.partner { padding: 20px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.partner__kind { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner b { font-size: 18px; letter-spacing: -.01em; }
.partner p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.partner a { font-size: 13px; font-weight: 600; }
@media (min-width: 860px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.merge-svg { width: 100%; max-width: 620px; height: auto; margin: 0 auto; }
.shot { max-width: 300px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.shot img { width: 100%; }

/* ---------- Timeline (ch 08) ---------- */
.tl { position: relative; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 26px 34px; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: -4px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.tl li.end::after { background: var(--paper); border: 2px solid var(--ink); }
.tl small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl b { display: block; font-size: 17px; margin-top: 2px; line-height: 1.3; }
.tl p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 4px; max-width: 46ch; }
@media (min-width: 980px) {
  .tl { grid-template-columns: repeat(7, 1fr); gap: 16px; }
  .tl li { padding: 30px 0 0; }
  .tl li::before { left: 18px; right: -16px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .tl li::after { top: 0; }
  .tl b { font-size: 15.5px; }
  .tl p { font-size: 13px; }
}

/* ---------- Status board (ch 09) ---------- */
.status { display: grid; gap: 10px; }
.status li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.status b { font-size: 15px; }
.status span { display: block; font-size: 13px; color: var(--muted); }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--on { background: var(--ink); color: var(--paper); }
.pill--off { border: 1px solid var(--muted); color: var(--muted); }
.lessons { display: grid; gap: 12px; }
.lesson { padding: 20px 18px; border-left: 3px solid var(--ink); background: var(--paper-2); border-radius: 0 12px 12px 0; }
.lesson b { display: block; font-size: 16px; margin-bottom: 4px; }
.lesson p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (min-width: 860px) { .lessons { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Team & links (ch 10) ---------- */
.team { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.person { padding: 18px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); }
.person i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-style: normal; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.person b { display: block; font-size: 15.5px; line-height: 1.3; }
.person span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
@media (min-width: 860px) { .team { grid-template-columns: repeat(4, 1fr); } }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; transition: background .15s, color .15s, border-color .15s; }
.social a:hover, .social a:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.social svg { width: 21px; height: 21px; fill: currentColor; }
.social-note { margin-top: 18px; max-width: 54ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.social-note a { color: var(--ink-2); text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); }
.closing { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); max-width: 52ch; margin-bottom: 18px; }
.copy { font-size: 13px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ch--night :focus-visible { outline-color: #fafbf5; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .ch { padding: 112px 0; }
}

/* YouTube thumbnails arrive letterboxed; crop the bars */
.vid__btn { aspect-ratio: 3 / 4; }
img.yt { transform: scale(1.34); }
.vid__btn:hover img.yt { transform: scale(1.4); }
