/* Crypto: value hopping across a peer-to-peer network */
.emb-crypto { background: #f2f8f5; }
.emb-crypto svg { width: 100%; height: 100%; display: block; }
.emb-crypto .ec-mesh line { stroke: #d6e4de; stroke-width: 1; }
.emb-crypto .ec-peers circle { fill: #b3cbc2; }
.emb-crypto .ec-routes path { fill: none; stroke: #0f9e72; stroke-width: 1.5; stroke-dasharray: 3 5; animation: ec-flow 1s linear infinite; }
.emb-crypto .ec-pulses circle { fill: #0f9e72; }
.emb-crypto .ec-core { fill: #fff; stroke: #0f9e72; stroke-width: 2; }
.emb-crypto .ec-usdt .ec-core { fill: #0f9e72; }
.emb-crypto .ec-halo { fill: #0f9e72; opacity: 0.1; transform-box: fill-box; transform-origin: center; animation: ec-breathe 2.4s ease-in-out infinite; }
.emb-crypto text { font: 600 11px 'JetBrains Mono', monospace; fill: #111a17; text-anchor: middle; letter-spacing: 0.08em; }
@keyframes ec-flow { to { stroke-dashoffset: -16; } }
@keyframes ec-breathe { 50% { opacity: 0.22; scale: 1.3; } }

/* Row on hover: a hashtag, as in the essay's headings */
.entry[data-theme="crypto"]:is(:hover, :focus-within) .entry-title::before { content: '# '; color: #0f9e72; font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 0.7em; }

/* Subscriptions: the statement where cards renew and mobile money lapses */
.emb-subs { background: #f1ece2; display: grid; place-items: center; }
.emb-subs .es-paper {
  width: 76%; padding: 5cqw 5cqw 4cqw; background: #fffdf8; rotate: 1.5deg;
  box-shadow: 0 2cqw 5cqw -3cqw rgb(20 33 58 / 0.4);
  font: 3.6cqw/1.3 'IBM Plex Mono', 'JetBrains Mono', monospace; color: #14213a;
}
.emb-subs p { margin: 0; }
.emb-subs .es-head { display: flex; justify-content: space-between; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 2.8cqw; padding-bottom: 2cqw; border-bottom: 1px dashed #d9d1c2; }
.emb-subs .es-cols, .emb-subs li { display: grid; grid-template-columns: 9cqw 1fr 1fr; gap: 2cqw; }
.emb-subs .es-cols { font-size: 2.8cqw; font-weight: 600; text-transform: uppercase; padding: 2cqw 0 1cqw; }
.emb-subs ol { list-style: none; margin: 0; padding: 0; }
.emb-subs li { padding: 1.4cqw 0; border-top: 1px solid #ece5d8; animation: es-row 7s ease-out infinite both; animation-delay: calc(var(--i) * 0.6s); }
.emb-subs li > span:first-child { color: #7a8290; }
.emb-subs .es-pull { color: #e2611a; }
.emb-subs .es-push { color: #1f63d6; }
.emb-subs .es-no { color: #7a8290; }
.emb-subs .es-no::first-letter { color: #1f63d6; }
@keyframes es-row { 0% { opacity: 0; translate: 0 1cqw; } 8%, 82% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; } }

/* Row on hover: a ledger tick */
.entry[data-theme="subscriptions"]:is(:hover, :focus-within) .entry-title { text-decoration: underline dashed 0.06em; text-underline-offset: 0.16em; text-decoration-color: #1f63d6; }

/* Mobile Money 2.0: the cracked feature phone, and the version ticking over */
.emb-mm2 { background: #ecebe7; }
.emb-mm2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.emb-mm2 .em-ver {
  position: absolute; right: 7cqw; top: 50%; translate: 0 -50%; margin: 0;
  display: flex; font: 700 19cqw/0.9 'Fraunces', serif; font-variation-settings: 'opsz' 144;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em; color: #151412;
}
.emb-mm2 .em-ver::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1.5cqw; height: 2.2cqw; background: #f2c200;
  transform-origin: left; animation: em-sweep 4s ease-out infinite;
}
.emb-mm2 .em-roll { display: inline-block; height: 0.9em; overflow: hidden; }
.emb-mm2 .em-roll i { display: block; font-style: normal; line-height: 0.9; animation: em-roll 4s cubic-bezier(.5,-0.4,.3,1.4) infinite; }
@keyframes em-roll { 0%, 25% { translate: 0 0; } 45%, 92% { translate: 0 -100%; } 100% { translate: 0 0; } }
@keyframes em-sweep { 0%, 45% { transform: scaleX(0); } 58%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* Row on hover: the signal-yellow highlighter */
.entry[data-theme="mm2"] .entry-title .t {
  -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 62%, #f6d64a 62%) no-repeat 0 0 / 0% 100%; transition: background-size 0.45s ease; }
.entry[data-theme="mm2"]:is(:hover, :focus-within) .entry-title .t { background-size: 100% 100%; }

/* Banks and telcos: trading signals for coins, then each taking on the other's trait */
.emb-bt { background: #f3f6fa; }
.emb-bt svg { width: 100%; height: 100%; display: block; }
.emb-bt .eb-route { fill: none; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.emb-bt .eb-sky { stroke: #93aee8; }
.emb-bt .eb-ground { stroke: #8cc2ae; }
.emb-bt .eb-bank { fill: #0f7a5a; }
.emb-bt .eb-tower polyline, .emb-bt .eb-tower line { fill: none; stroke: #2257d6; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.emb-bt .eb-wave, .emb-bt .eb-antenna path { fill: none; stroke: #2257d6; stroke-width: 3; stroke-linecap: round; }
.emb-bt .eb-antenna line { stroke: #2257d6; stroke-width: 3; stroke-linecap: round; }
.emb-bt .eb-antenna circle { fill: #2257d6; }
.emb-bt .eb-coins ellipse, .emb-bt .eb-coin circle { fill: #f2c94c; stroke: #0f7a5a; stroke-width: 2; }
.emb-bt .eb-signal circle { fill: #2257d6; }
.emb-bt .eb-antenna, .emb-bt .eb-coins { transform-box: fill-box; transform-origin: 50% 100%; animation: eb-grow 6s cubic-bezier(.3,1.5,.5,1) infinite; }
.emb-bt .eb-coins { animation-delay: 0.3s; }
.emb-bt .eb-wave { animation: eb-pulse 1.4s ease-in-out infinite; }
@keyframes eb-grow { 0%, 30% { opacity: 0; scale: 0.3; } 42%, 90% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 0.3; } }
@keyframes eb-pulse { 50% { opacity: 0.25; } }

/* Row on hover: bank green running into telco blue */
.entry[data-theme="banktelco"]:is(:hover, :focus-within) .entry-title .t {
  background: linear-gradient(90deg, #0f7a5a, #2257d6); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* USSD: a feature phone screen dialling *XYZ# and getting a menu back */
.emb-ussd { background: #23272b; display: grid; place-items: center; }
.emb-ussd .eu-lcd {
  width: 70%; height: 72%; padding: 3cqw 4.5cqw; border-radius: 2cqw;
  background: #b6c98a; color: #1f2a10; box-shadow: inset 0 0 0 1.2cqw #8fa462, inset 0 2cqw 4cqw rgb(0 0 0 / 0.18);
  font: 6.6cqw/1.12 'VT323', monospace;
}
.emb-ussd p { margin: 0; }
.emb-ussd .eu-status { display: flex; justify-content: space-between; font-size: 4.6cqw; opacity: 0.7; }
.emb-ussd .eu-code span { display: inline-block; clip-path: inset(0 100% 0 0); animation: eu-type 6s steps(5) infinite; }
.emb-ussd .eu-l { opacity: 0; animation: eu-line 6s steps(1) infinite; animation-delay: calc(var(--i) * 0.25s); }
@keyframes eu-type { 0% { clip-path: inset(0 100% 0 0); } 15%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes eu-line { 0%, 30% { opacity: 0; } 32%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* Row on hover: the title appears on the phone screen */
.entry[data-theme="ussd"]:is(:hover, :focus-within) .entry-title .t {
  background: #b6c98a; color: #1f2a10; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.15em;
}
.entry[data-theme="ussd"]:is(:hover, :focus-within) .entry-title::before { content: '> '; color: #4f7d17; }

/* African parents: the crazy dream, marked wrong in red and then given a gold star */
.emb-parents {
  padding: 10.5cqw 6cqw 0 15cqw;
  background:
    linear-gradient(90deg, transparent 11cqw, #e9a39b 11cqw calc(11cqw + 1px), transparent calc(11cqw + 1px)),
    repeating-linear-gradient(#fffdf7 0 calc(10cqw - 1px), #b9d2ec calc(10cqw - 1px) 10cqw);
  background-color: #fffdf7;
  font-family: 'Caveat', cursive; color: #1d3f9a; line-height: 10cqw;
}
.emb-parents p { margin: 0; white-space: nowrap; }
.emb-parents .ep-q { font-size: 6cqw; font-weight: 700; color: #1a1d2b; }
.emb-parents .ep-a { font-size: 7.6cqw; font-weight: 600; position: relative; }
.emb-parents .ep-note { font-size: 6.4cqw; font-weight: 700; }
.emb-parents .ep-ink, .emb-parents .ep-red, .emb-parents .ep-gold { display: inline-block; clip-path: inset(0 100% 0 0); }
.emb-parents .ep-ink { animation: ep-write 7s steps(16) infinite; }
.emb-parents .ep-red { color: #d9483b; position: relative; animation: ep-red 7s steps(12) infinite; }
.emb-parents .ep-gold { color: #c8892b; animation: ep-gold 7s steps(10) infinite; }
.emb-parents .ep-red::after { content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 0.8cqw; background: #c8892b; transform-origin: left; animation: ep-strike 7s ease-out infinite; }
.emb-parents .ep-x, .emb-parents .ep-star { display: inline-block; margin-left: 2cqw; font-weight: 700; }
.emb-parents .ep-x { color: #d9483b; animation: ep-x 7s ease-out infinite; }
.emb-parents .ep-star { position: absolute; color: #c8892b; margin-left: -5cqw; animation: ep-star 7s cubic-bezier(.3,1.8,.5,1) infinite; }
@keyframes ep-write { 0% { clip-path: inset(0 100% 0 0); } 18%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ep-x { 0%, 20% { opacity: 0; scale: 1.8; } 24%, 56% { opacity: 1; scale: 1; } 62%, 100% { opacity: 0; scale: 0.6; } }
@keyframes ep-red { 0%, 26% { clip-path: inset(0 100% 0 0); } 38%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes ep-strike { 0%, 52% { transform: scaleX(0); } 58%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ep-star { 0%, 60% { opacity: 0; scale: 2.4; rotate: -40deg; } 66%, 94% { opacity: 1; scale: 1; rotate: 0deg; } 100% { opacity: 0; } }
@keyframes ep-gold { 0%, 62% { clip-path: inset(0 100% 0 0); } 74%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }

/* Row on hover: the teacher's red pen, then a gold star */
.entry[data-theme="parents"]:is(:hover, :focus-within) .entry-title .t { text-decoration: underline wavy #d9483b 0.05em; text-underline-offset: 0.18em; }
.entry[data-theme="parents"]:is(:hover, :focus-within) .entry-title .t::after { content: ' ★'; color: #c8892b; }

/* Life Sucks in Africa: a lock screen moving from morning to night, the notifications telling the real story */
.emb-ls {
  padding: 6cqw 18cqw; color: #fff;
  background: linear-gradient(180deg, #f6b26b, #f7d58b 16%, #8fc3e8 33%, #1d2b5a 50%, #c4567a 60%, #f39c5a 66%, #04060f 83%, #1c2a55 100%) 0 0 / 100% 600%;
  animation: el-sky 9s ease-in-out infinite;
}
@keyframes el-sky { 0%, 26% { background-position: 0 0; } 36%, 60% { background-position: 0 55%; } 70%, 92% { background-position: 0 100%; } 100% { background-position: 0 0; } }
.emb-ls p, .emb-ls ol { margin: 0; }
.emb-ls .el-time { display: grid; text-align: center; font: 300 13cqw/1 'Instrument Sans', system-ui, sans-serif; letter-spacing: -0.03em; }
.emb-ls .el-time span { grid-area: 1 / 1; opacity: 0; }
.emb-ls .el-time span:nth-child(1) { animation: el-t1 9s infinite; }
.emb-ls .el-time span:nth-child(2) { animation: el-t2 9s infinite; }
.emb-ls .el-time span:nth-child(3) { animation: el-t3 9s infinite; }
@keyframes el-t1 { 0%, 28% { opacity: 1; } 32%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes el-t2 { 0%, 30% { opacity: 0; } 34%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes el-t3 { 0%, 64% { opacity: 0; } 68%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
.emb-ls .el-notes { list-style: none; padding: 0; margin-top: 4cqw; display: grid; gap: 2cqw; }
.emb-ls li {
  padding: 2cqw 3cqw; border-radius: 3cqw; background: rgb(255 255 255 / 0.78); color: #111;
  font: 3.5cqw/1.3 'Instrument Sans', system-ui, sans-serif;
  opacity: 0; animation: el-drop 9s cubic-bezier(.2,.9,.3,1.2) infinite;
}
.emb-ls li:nth-child(1) { animation-name: el-drop1; }
.emb-ls li:nth-child(2) { animation-name: el-drop2; }
.emb-ls li:nth-child(3) { animation-name: el-drop3; }
.emb-ls b { display: block; font-size: 3cqw; font-weight: 650; }
@keyframes el-drop1 { 0%, 5% { opacity: 0; translate: 0 -2cqw; } 9%, 92% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes el-drop2 { 0%, 14% { opacity: 0; translate: 0 -2cqw; } 18%, 92% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }
@keyframes el-drop3 { 0%, 70% { opacity: 0; translate: 0 -2cqw; } 74%, 92% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; } }

/* Row on hover: breaking news */
.entry[data-theme="lifesucks"]:is(:hover, :focus-within) .entry-title::before {
  content: 'Breaking'; display: inline-block; vertical-align: 0.35em; margin-right: 0.5em; padding: 0.35em 0.5em 0.25em;
  font-size: 0.32em; letter-spacing: 0.08em; background: #e10600; color: #fff;
}

/* The Mirror: the three battles, each standing on its own reflection */
.emb-mirror { background: linear-gradient(#fff 55%, #eef2f7 55%); }
.emb-mirror::before { content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 1px; background: #c9d1dd; }
.emb-mirror ul { list-style: none; margin: 0; padding: 0; }
.emb-mirror li {
  position: absolute; left: 0; right: 0; top: 55%; text-align: center;
  font: italic 400 15cqw/1 'Instrument Serif', serif; color: #14171c;
  opacity: 0; animation: em-word 9s ease-in-out infinite; animation-delay: calc(var(--i) * 3s);
}
.emb-mirror li span { display: block; }
.emb-mirror li span:first-child { translate: 0 -100%; margin-top: -0.04em; }
.emb-mirror .em-refl {
  position: absolute; left: 0; right: 0; top: 0;
  transform: scaleY(-1); /* flipped in its own box, so it hangs below the mirror line */ color: #4f6f9c; opacity: 0.35; filter: blur(0.3px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%);
}
@keyframes em-word { 0% { opacity: 0; filter: blur(4px); } 6%, 30% { opacity: 1; filter: blur(0); } 36%, 100% { opacity: 0; filter: blur(4px); } }
.emb-mirror .em-sheen {
  position: absolute; top: -20%; bottom: -20%; left: -30%; width: 16%; rotate: 18deg;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.9), transparent);
  animation: em-sheen 4.5s ease-in-out infinite;
}
@keyframes em-sheen { 0% { left: -30%; } 40%, 100% { left: 120%; } }

/* Row on hover: the title reflects */
.entry[data-theme="mirror"]:is(:hover, :focus-within) .entry-title .t { -webkit-box-reflect: below -0.12em linear-gradient(transparent 55%, rgb(0 0 0 / 0.22)); color: #4f6f9c; }

/* Young, black founder: $30,000 raised, struck out, and the last $100 stamped over it */
.emb-founder { background: #f2f2f2; display: grid; place-content: center; justify-items: center; gap: 2cqw; font-family: 'Archivo', sans-serif; }
.emb-founder p { margin: 0; display: flex; align-items: baseline; gap: 2cqw; }
.emb-founder small { font: 600 3.4cqw 'Instrument Sans', system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; color: #5c5c5c; }
.emb-founder .ef-from span { font-weight: 800; font-stretch: 112%; font-size: 15cqw; line-height: 1; letter-spacing: -0.03em; color: #0a0a0a; position: relative; }
.emb-founder .ef-from span::after { content: ''; position: absolute; left: -3%; right: -3%; top: 52%; height: 1.6cqw; background: #d7261e; transform-origin: left; animation: ef-strike 6s ease-out infinite; }
.emb-founder .ef-to { animation: ef-stamp 6s cubic-bezier(.3,1.6,.5,1) infinite; }
.emb-founder .ef-to span { font-weight: 800; font-stretch: 112%; font-size: 15cqw; line-height: 1; letter-spacing: -0.03em; background: #0a0a0a; color: #fff; padding: 0 2cqw; }
@keyframes ef-strike { 0%, 25% { transform: scaleX(0); } 35%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ef-stamp { 0%, 40% { opacity: 0; scale: 1.6; rotate: -6deg; } 48%, 92% { opacity: 1; scale: 1; rotate: -2deg; } 100% { opacity: 0; } }

/* Row on hover: stamped, black on white */
.entry[data-theme="founder"]:is(:hover, :focus-within) .entry-title .t { background: #0a0a0a; color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.12em; }

/* Speed test: the 5MB download race */
.emb-speed { background: #f5f5f5; padding: 9cqw 7cqw; display: grid; align-content: center; gap: 4cqw; font-family: 'JetBrains Mono', monospace; }
.emb-speed p { margin: 0; font-size: 3.4cqw; font-weight: 600; color: #666; }
.emb-speed .es-lane { --c: #e2231a; display: grid; grid-template-columns: 17cqw 1fr 12cqw; gap: 3cqw; align-items: center; }
.emb-speed .es-tnm { --c: #1f8a4c; }
.emb-speed b { font: italic 800 7.2cqw/1 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--c); }
.emb-speed i { font-style: normal; font-size: 4cqw; font-weight: 600; text-align: right; color: #141414; opacity: 0; }
.emb-speed .es-track { height: 7cqw; border-radius: 1cqw; background: #e3e3e3; overflow: hidden; }
.emb-speed .es-track span { display: block; height: 100%; background: var(--c); transform-origin: left; }
.emb-speed .es-airtel .es-track span { animation: es-airtel 8.5s linear infinite; }
.emb-speed .es-tnm .es-track span { animation: es-tnm 8.5s linear infinite; }
.emb-speed .es-airtel i { animation: es-done-a 8.5s steps(1) infinite; }
.emb-speed .es-tnm i { animation: es-done-t 8.5s steps(1) infinite; }
/* 4× speed: Airtel finishes at 1.9s, TNM at 7.2s */
@keyframes es-airtel { 0% { transform: scaleX(0); } 22%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes es-tnm { 0% { transform: scaleX(0); } 85%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes es-done-a { 0% { opacity: 0; } 22% { opacity: 1; } 95% { opacity: 0; } }
@keyframes es-done-t { 0% { opacity: 0; } 85% { opacity: 1; } 95% { opacity: 0; } }

/* Row on hover: leaning forward, with motion blur */
.entry[data-theme="speed"] .entry-title .t { display: inline-block; transition: transform 0.3s ease, text-shadow 0.3s ease; }
.entry[data-theme="speed"]:is(:hover, :focus-within) .entry-title .t {
  transform: skewX(-8deg) translateX(0.2em);
  text-shadow: -0.12em 0 0 rgb(226 35 26 / 0.35), -0.26em 0 0 rgb(226 35 26 / 0.18), -0.42em 0 0 rgb(226 35 26 / 0.08);
}
