/* How banks are becoming telcos and telcos are becoming banks in Africa
   Concept: convergence. Bank green and telco blue trade signals for coins until each
   looks a little like the other. */

html.theme-banktelco {
  --fg: #0e1b2c;
  --muted: #5a6577;
  --accent: #2257d6;
  --bank: #0f7a5a;
  --telco: #2257d6;
  --rule: #e2e7ef;
  --surface: #f4f7fb;
  --selection: #d3e1ff;
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- hero */

.theme-banktelco .hero-title {
  font: 800 clamp(2.3rem, 1rem + 4.4vw, 4.6rem)/1 var(--font-display);
  letter-spacing: -0.035em; max-width: 16em;
}
.theme-banktelco .hero-title .b { color: var(--bank); }
.theme-banktelco .hero-title .t { color: var(--telco); }
.theme-banktelco .hero-dek { font-style: normal; }

.bt-scene { width: 100%; max-width: 46rem; margin: 2rem 0 0.5rem; overflow: visible; }
.bt-route { fill: none; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.bt-route-sky { stroke: color-mix(in srgb, var(--telco) 45%, transparent); }
.bt-route-ground { stroke: color-mix(in srgb, var(--bank) 45%, transparent); }

.bt-bank { fill: var(--bank); }
.bt-tower { fill: var(--telco); stroke: var(--telco); }
.bt-tower polyline, .bt-tower line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.bt-tower rect { stroke: none; }
.bt-wave { fill: none; stroke-width: 4; stroke-linecap: round; animation: pulse 1.6s ease-in-out infinite; }
.bt-wave-2 { animation-delay: 0.3s; }
.bt-tower .bt-wave { stroke: var(--telco); }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.bt-signal circle { fill: var(--telco); }
.bt-coin ellipse { fill: #f2c94c; stroke: var(--bank); stroke-width: 3; }

/* After a few exchanges, each side takes on the other's trait. Telco blue on the bank, bank green on the tower. */
.bt-grow { opacity: 0; animation: grow 0.8s cubic-bezier(.3,1.5,.5,1) forwards; transform-box: fill-box; transform-origin: 50% 100%; }
.bt-antenna { animation-delay: 4.2s; stroke: var(--telco); fill: var(--telco); }
.bt-antenna line { stroke-width: 5; stroke-linecap: round; }
.bt-antenna .bt-wave { stroke: var(--telco); }
.bt-vault { animation-delay: 4.8s; fill: #f2c94c; stroke: var(--bank); stroke-width: 3; }
@keyframes grow { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }

.bt-label { font: 700 15px var(--font-display); text-anchor: middle; letter-spacing: 0.08em; text-transform: uppercase; }
.bt-label-b { fill: var(--bank); }
.bt-label-t { fill: var(--telco); }

@media (prefers-reduced-motion: reduce) {
  .bt-signal, .bt-coin { display: none; }
  .bt-grow { opacity: 1; animation: none; }
}

/* ---------------------------------------------------------------- prose */

.theme-banktelco .prose h2, .theme-banktelco .prose h3 { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.025em; }
.theme-banktelco .prose h2::before {
  content: ''; display: block; width: 2.6rem; height: 6px; margin-bottom: 0.9rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--bank) 50%, var(--telco) 50%);
}
/* The essay ends on its question: give it room */
.theme-banktelco .prose > h2:last-child {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; margin-top: 2em; padding: 1.6rem 0 0;
  border-top: 2px solid var(--fg);
}
.theme-banktelco .prose > h2:last-child::before { display: none; }

.theme-banktelco .prose blockquote {
  border-left: 0; padding: 0 0 0 1.3rem; position: relative;
  font: 600 1.2em/1.4 var(--font-display); letter-spacing: -0.01em;
}
.theme-banktelco .prose blockquote::before {
  content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; border-radius: 2px;
  background: linear-gradient(var(--bank) 50%, var(--telco) 50%);
}
.theme-banktelco .prose figcaption { text-align: left; margin-left: 0; }
