/* The Breakthrough, told by scroll. Phone first (most readers open it from WhatsApp), then screens.
   Brand as the A4 prospectus and the films: Action Green, white, the night, Futura Std (F for type, FC condensed
   for the big figures). Night carries the data; day carries people and photographs; green is the ask. */

:root {
  --green: #05B615; --glow: #22E234; --deep: #04790E;
  --ink: #0B110D; --night: #030605; --night2: #0A120D; --mute: #5F6C62; --line: #DCE3DE;
  --anc: #F6B40E; --eff: #E5312F; --da: #2D7BF0; --mk: #A86BE0; --oth: #9AA6A0;
  --mx: clamp(22px, 6vw, 72px);
  --vh: 1svh;
}
@supports not (height: 1svh) { :root { --vh: 1vh; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; font-family: F, "Century Gothic", Futura, sans-serif; color: #fff; background: var(--night);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.logo { display: block; height: auto; }

/* ---------- the bar: the logo and the ask, once the reader is past the opening ---------- */
.bar { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between;
       padding: 12px var(--mx); padding-top: max(12px, env(safe-area-inset-top));
       background: linear-gradient(180deg, rgba(3,6,5,.92), rgba(3,6,5,.72) 70%, rgba(3,6,5,0));
       transform: translateY(-110%); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.bar.on { transform: none; }
.bar .home .logo { height: 26px; width: auto; }
.bar .talk { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
             background: var(--green); color: #fff; padding: 10px 14px 9px; border-radius: 3px; }

/* ---------- scenes: a tall section, its stage held on screen while the reader scrolls through ---------- */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden; }

/* ---------- the hook ---------- */
.hook { height: calc(900 * var(--vh)); }

/* the cover: a photograph and a word on the breakthrough, dissolving into the night as the reader scrolls */
.hook .cover { position: absolute; inset: 0; z-index: 6; background: var(--night); will-change: opacity; }
.hook .cover picture, .hook .cover .cph { position: absolute; inset: 0; width: 100%; height: 100%; }
.hook .cover .cph { object-fit: cover; object-position: 50% 16%; transform-origin: 50% 30%; will-change: transform; }
.hook .cover .cshade { position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3,6,5,.97) 0%, rgba(3,6,5,.92) 22%, rgba(3,6,5,.6) 38%, rgba(3,6,5,0) 56%),
              linear-gradient(180deg, rgba(3,6,5,.45) 0%, rgba(3,6,5,0) 16%); }
.hook .cover .ctxt { position: absolute; left: var(--mx); right: var(--mx); bottom: calc(max(env(safe-area-inset-bottom), 0px) + 13 * var(--vh)); }
.hook .cover .kicker { color: var(--glow); margin-bottom: 14px; }
.hook .cover .ctitle { margin: 0; display: flex; flex-direction: column; align-items: flex-start; text-transform: uppercase; }
.hook .cover .cthis { font-weight: 700; font-size: clamp(16px, 4.6vw, 30px); letter-spacing: .06em; opacity: .92; }
.hook .cover .clogo .logo { height: clamp(34px, 10.4vw, 86px); width: auto; margin: .32em 0 .26em; }
.hook .cover .cbig { font-weight: 900; font-size: 9.3vw; line-height: 1; letter-spacing: -.005em; white-space: nowrap; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hook .cover .cline { font-weight: 500; font-size: clamp(17px, 4.7vw, 28px); line-height: 1.3; margin: .6em 0 0; color: rgba(255,255,255,.92); max-width: 22em; }
.hook .cover .ccue { position: absolute; left: 50%; bottom: calc(max(env(safe-area-inset-bottom), 0px) + 2.6 * var(--vh)); transform: translateX(-50%); text-align: center;
                     font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); transition: opacity .4s; }
.hook .cover .ccue i { display: block; width: 2px; height: 34px; margin: 10px auto 0; background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,0));
                       transform-origin: 50% 0; animation: cue 1.8s cubic-bezier(.45,0,.2,1) infinite; }
@media (min-aspect-ratio: 11/10) {
  .hook .cover .cph { object-position: 50% 100%; transform-origin: 50% 40%; }
  .hook .cover .cshade { background: linear-gradient(0deg, rgba(3,6,5,.96) 0%, rgba(3,6,5,.86) 20%, rgba(3,6,5,.45) 38%, rgba(3,6,5,0) 54%),
                                     linear-gradient(90deg, rgba(3,6,5,.55) 0%, rgba(3,6,5,0) 40%); }
  .hook .cover .ctxt { right: auto; width: min(62vw, 980px); bottom: calc(9 * var(--vh)); }
  .hook .cover .cthis { font-size: clamp(16px, 1.7vw, 28px); }
  .hook .cover .clogo .logo { height: clamp(32px, 3.6vw, 76px); margin: .26em 0 .2em; }
  .hook .cover .cbig { font-size: min(5.4vw, 112px); }
  .hook .cover .cline { font-size: clamp(17px, 1.75vw, 28px); }
}
.hook .stage { background: radial-gradient(120% 80% at 50% 58%, #031207 0%, #020a05 55%, #010402 100%); }
.hook canvas.lights { position: absolute; inset: 0; width: 100%; height: 100%; }
.hook svg.geo, .hook svg.dots { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* a little night behind the words and the landing lines, so they read over the lights */
.hook .shade { position: absolute; inset: 0; pointer-events: none;
               background: linear-gradient(180deg, rgba(1,4,2,.74) 0%, rgba(1,4,2,.5) 20%, rgba(1,4,2,0) 34%),
                           linear-gradient(0deg, rgba(1,4,2,.66) 0%, rgba(1,4,2,0) 20%); }
@media (min-aspect-ratio: 11/10) {
  .hook .shade { background: linear-gradient(90deg, rgba(1,4,2,.78) 0%, rgba(1,4,2,.5) 26%, rgba(1,4,2,0) 44%); }
}
.hook .geo path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hook .geo .outline { stroke: rgb(130,235,140); stroke-width: 1.3; }
.hook .geo .districts { stroke: rgb(120,220,130); stroke-width: .8; }
.hook .places .place { position: absolute; left: 0; top: 0; font-weight: 700; font-size: clamp(12px, 3.2vw, 19px); letter-spacing: .16em;
                       color: rgba(255,255,255,.86); text-shadow: 0 0 12px rgba(0,0,0,.9); white-space: nowrap; will-change: transform, opacity; }

.hook .words { position: absolute; left: var(--mx); right: var(--mx); top: calc(max(env(safe-area-inset-top), 0px) + 7 * var(--vh)); }
.hook .beat { position: absolute; left: 0; right: 0; top: 0; will-change: opacity, transform; }
.hook .lead { font-weight: 700; font-size: clamp(16px, 4.6vw, 30px); letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.hook .count { font-weight: 900; font-size: clamp(44px, 15.2vw, 150px); line-height: 1; letter-spacing: -.01em; margin-top: .14em;
               white-space: nowrap; font-variant-numeric: tabular-nums; }
.hook .unit { display: flex; align-items: center; gap: .26em; font-weight: 900; font-size: clamp(26px, 7.4vw, 72px); line-height: 1; text-transform: uppercase; margin-top: .12em; }
.hook .unit .logo { height: .98em; width: auto; flex: none; transform: translateY(-.02em); }
.hook .b-seats .unit, .hook .b-wards .unit { font-size: clamp(22px, 6.4vw, 60px); }
.hook .beat .sub { font-weight: 500; font-size: clamp(16px, 4.4vw, 26px); line-height: 1.3; margin: .55em 0 0; color: rgba(255,255,255,.86); }
.hook .b-seats, .hook .b-wards { opacity: 0; }
.hook .b-seats .count, .hook .b-wards .count { color: var(--glow); text-shadow: 0 0 30px rgba(34,226,52,.35); }

.hook .landing { position: absolute; left: var(--mx); right: var(--mx); bottom: calc(max(env(safe-area-inset-bottom), 0px) + 5.5 * var(--vh)); margin: 0;
                 font-weight: 700; font-size: clamp(17px, 4.6vw, 28px); line-height: 1.3; }
.hook .landing span { display: block; opacity: 0; will-change: opacity, transform; }
.hook .landing .l2 { font-weight: 500; font-size: .82em; color: rgba(255,255,255,.8); margin-top: .35em; }
.hook .explain { position: absolute; left: var(--mx); right: var(--mx); bottom: calc(max(env(safe-area-inset-bottom), 0px) + 4 * var(--vh)); margin: 0;
                 font-weight: 500; font-size: clamp(13px, 3.4vw, 18px); line-height: 1.4; color: rgba(255,255,255,.7); opacity: 0; max-width: 34em; }
.hook .scalebar { position: absolute; left: var(--mx); bottom: calc(max(env(safe-area-inset-bottom), 0px) + 2.2 * var(--vh)); display: flex; align-items: flex-end; gap: 10px;
                  font-weight: 700; font-size: 13px; color: rgba(255,255,255,.75); opacity: 0; }
.hook .scalebar i { display: block; height: 7px; border: 2px solid rgba(255,255,255,.75); border-top: 0; }
.hook .cue { position: absolute; left: 50%; bottom: calc(max(env(safe-area-inset-bottom), 0px) + 3 * var(--vh)); transform: translateX(-50%); text-align: center;
             font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); opacity: 0; transition: opacity .6s; }
.hook .cue i { display: block; width: 2px; height: 34px; margin: 10px auto 0; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
               transform-origin: 50% 0; animation: cue 1.8s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hook .dotlabels .dl { position: absolute; left: 0; top: 0; font-weight: 800; font-size: clamp(12px, 3.2vw, 17px); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; }
.hook .dotlabels .dl b { font-family: FC; font-weight: 900; font-size: 1.9em; letter-spacing: .01em; margin-right: .3em; vertical-align: -.08em; }
.hook .dotlabels .dl.y26 b { color: var(--glow); }

/* screens: the words to the left, the lights to the right */
@media (min-aspect-ratio: 11/10) {
  .hook .words { top: 45%; right: auto; width: min(40vw, 640px); transform: translateY(-62%); }
  .hook .count { font-size: clamp(48px, 7.4vw, 150px); }
  .hook .lead { font-size: clamp(16px, 1.9vw, 30px); }
  .hook .unit { font-size: clamp(26px, 3.6vw, 72px); }
  .hook .b-seats .unit, .hook .b-wards .unit { font-size: clamp(22px, 3vw, 60px); }
  .hook .beat .sub { font-size: clamp(16px, 1.7vw, 26px); }
  .hook .landing { right: auto; width: min(40vw, 640px); bottom: calc(13 * var(--vh)); font-size: clamp(17px, 1.9vw, 30px); }
  .hook .explain { right: auto; width: min(38vw, 560px); font-size: clamp(13px, 1.25vw, 18px); }
  .hook .places .place { font-size: clamp(12px, 1.2vw, 19px); }
  .hook .dotlabels .dl { font-size: clamp(12px, 1.2vw, 17px); }
}

/* ---------- pages: one idea each, as in the PDF ---------- */
.page { position: relative; padding: calc(13 * var(--vh)) 0; overflow: hidden; }
.night { background: var(--night); color: #fff; }
.day { background: #fff; color: var(--ink); }
.green { background: var(--green); color: #fff; }
.wrap { position: relative; max-width: 760px; margin: 0 auto; padding: 0 var(--mx); }
@media (min-width: 1100px) { .wrap { max-width: 1040px; } }

.kicker { font-weight: 800; font-size: clamp(12px, 3.1vw, 16px); letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.kicker::before { content: ""; width: 38px; height: 4px; background: currentColor; flex: none; }
.night .kicker { color: var(--glow); }
.day .kicker { color: var(--deep); }
.green .kicker { color: var(--ink); }
.display { font-weight: 900; text-transform: uppercase; line-height: 1.02; letter-spacing: -.004em; margin: 0; }
.d1 { font-size: clamp(46px, 13vw, 124px); } .d2 { font-size: clamp(42px, 11.4vw, 104px); } .d3 { font-size: clamp(34px, 9vw, 80px); }
.d4 { font-size: clamp(30px, 8vw, 66px); } .d5 { font-size: clamp(26px, 6.6vw, 52px); }
.lede { font-weight: 500; font-size: clamp(20px, 5.3vw, 32px); line-height: 1.34; margin: 26px 0 0; }
.body { font-weight: 400; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.55; margin: 20px 0 0; }
.night .body { color: rgba(255,255,255,.82); }
.day .body { color: #2E3A33; }
.note { font-weight: 500; font-size: clamp(12px, 3.2vw, 14px); line-height: 1.5; opacity: .7; margin: 36px 0 0; }
.g { color: var(--glow); }
.day .g { color: var(--green); }

/* a photograph across the top of a day page */
.band { margin: calc(-13 * var(--vh)) 0 calc(8 * var(--vh)); height: clamp(260px, 52vw, 560px); overflow: hidden; position: relative; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* six numbers: every figure in its own cell, the lead pair green-white as in the PDF */
.six { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: calc(6 * var(--vh)); }
.six .stat { padding: 26px 0 26px; border-top: 2px solid rgba(255,255,255,.14); }
.six .stat:nth-child(odd) { padding-right: 18px; }
.six .stat:nth-child(even) { padding-left: 20px; border-left: 2px solid rgba(255,255,255,.14); }
.six .stat.lead { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.six .n { font-family: FC; font-weight: 900; font-size: clamp(54px, 15vw, 116px); line-height: .84; letter-spacing: .005em; white-space: nowrap; }
.six .stat.lead + .stat.lead .n { color: #fff; }
.six .l { font-weight: 700; font-size: clamp(12px, 3.2vw, 15px); line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; }
.six .s { font-weight: 400; font-size: clamp(14px, 3.7vw, 17px); line-height: 1.4; margin-top: 6px; opacity: .76; }
@media (min-width: 900px) {
  .six { grid-template-columns: repeat(4, 1fr); }
  .six .stat.lead { grid-column: span 2; }
  .six .stat, .six .stat:nth-child(odd), .six .stat:nth-child(even) { padding: 30px 22px 30px 0; border-left: 0; }
  .six .stat + .stat { padding-left: 22px; border-left: 2px solid rgba(255,255,255,.14); }
  .six .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* the ask */
.talk .display { margin-bottom: calc(6 * var(--vh)); }
.talk .who .name { font-weight: 900; font-size: clamp(26px, 7vw, 40px); text-transform: uppercase; margin: 0; }
.talk .ways { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 20px 12px; border-radius: 4px;
       font-weight: 800; font-size: 16px; letter-spacing: .02em; text-decoration: none; background: #fff; color: var(--ink); }
.btn.wa { background: var(--ink); color: #fff; }
.talk .how { margin-top: calc(7 * var(--vh)); max-width: 36em; }
.green .body { color: var(--ink); font-weight: 500; }

.foot { background: var(--night); padding: calc(10 * var(--vh)) 0 calc(8 * var(--vh)); text-align: center; }
.foot .logo { width: 210px; margin: 0 auto; }
.foot .display { font-size: clamp(26px, 7vw, 48px); margin-top: 28px; }
.foot .note { max-width: 52em; margin: 28px auto 0; text-align: left; }

/* reveal on entering the screen (only once the script is running: without it, everything simply shows) */
.js .up { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.js .up.in { opacity: 1; transform: none; }

/* ---------- charts (charts_web.py): drawn 720 wide, scaled to the column ---------- */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.scrub > .chart { max-width: 760px; }
.multiples .scrub > .chart { max-width: none; }
.chart text { font-family: F, sans-serif; }
.chart .pop, .chart .flip, .chart .grow, .chart .sweep { transform-box: fill-box; transform-origin: 50% 50%; }
.chart .grow { transform-origin: 0 50%; }
.chart .grow[data-o="r"] { transform-origin: 100% 50%; }
.chart .grow[data-o="b"] { transform-origin: 50% 100%; }
.scrub { margin-top: 26px; }
.chart-label { font-weight: 800; font-size: clamp(11px, 3vw, 14px); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.74); margin: 44px 0 6px; }
.day .chart-label { color: #46524B; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; font-size: clamp(13px, 3.4vw, 16px); color: rgba(255,255,255,.88); margin-top: 18px; }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 7px; margin-right: 8px; vertical-align: -1px; }
.legend i.sq { border-radius: 2px; }
.legend .mute { opacity: .72; }
.big { font-family: FC; font-weight: 900; font-size: clamp(84px, 27vw, 200px); line-height: .84; letter-spacing: .005em; }
.subhead { font-weight: 700; font-size: clamp(22px, 6vw, 40px); line-height: 1.16; margin: 16px 0 0; }
.standfirst { font-weight: 500; font-size: clamp(17px, 4.5vw, 22px); line-height: 1.42; color: rgba(255,255,255,.86); margin: 16px 0 0; }
.page.tight { padding-top: calc(4 * var(--vh)); }
.mute { opacity: .78; }

/* sticky chart scenes: everything on one screen */
.tilescene { height: calc(290 * var(--vh)); }
.mapscene { height: calc(250 * var(--vh)); }
.tilescene .stage, .mapscene .stage { display: flex; align-items: center; background: var(--night); }
.tilescene .wrap, .mapscene .wrap { width: 100%; }
.tilescene .big { font-size: clamp(72px, min(22vw, 13svh), 170px); }
.tilescene .subhead { font-size: clamp(17px, min(4.8vw, 2.9svh), 34px); }
.tilebox { margin-top: 2.4svh; max-width: min(100%, 52svh); }
.tilescene .legend { margin-top: 1.6svh; }
.mapscene .display { font-size: clamp(28px, min(8vw, 5.2svh), 60px); }
.mapscene .swap { display: grid; margin-top: 1.6svh; }
.mapscene .swap > * { grid-area: 1 / 1; margin: 0; font-size: clamp(16px, min(4.4vw, 2.6svh), 26px); }
.mapbox { margin: 2svh auto 0; max-width: min(100%, 56svh); }
.mapscene .note { margin-top: 1.6svh; }

/* chapter openers: a photograph, the number and the title at the foot */
.opener { height: calc(175 * var(--vh)); }
.opener .stage { background: var(--night); }
.opener .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); will-change: transform; }
.opener .scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,6,5,.96) 0%, rgba(3,6,5,.84) 26%, rgba(3,6,5,.38) 52%, rgba(3,6,5,.1) 70%, rgba(3,6,5,.35) 100%); }
.opener .txt { position: absolute; left: var(--mx); right: var(--mx); bottom: calc(max(env(safe-area-inset-bottom), 0px) + 9 * var(--vh)); max-width: 760px; }
.js .opener .txt { opacity: 0; }
@media (min-width: 1100px) { .opener .txt { left: max(var(--mx), calc(50vw - 520px)); } }
.no { font-family: FC; font-weight: 900; font-size: clamp(110px, 34vw, 240px); line-height: .8; color: var(--glow); text-shadow: 0 2px 36px rgba(0,0,0,.55); }
.title { font-weight: 900; font-size: clamp(42px, 12vw, 104px); line-height: 1.02; text-transform: uppercase; margin: 16px 0 0; text-shadow: 0 2px 36px rgba(0,0,0,.55); }
.opener .lede { color: rgba(255,255,255,.92); max-width: 30em; }

/* candidates */
.hero { padding-top: 0; }
.heroimg { margin: 0 0 calc(-14 * var(--vh)); height: min(78svh, 128vw); position: relative; overflow: hidden; }
.heroimg img { width: 100%; height: 100%; object-fit: cover; }
.heroimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,6,5,0) 40%, rgba(3,6,5,.72) 72%, #030605 100%); }
.hero .wrap { z-index: 2; }
.cand { font-weight: 800; font-size: clamp(12px, 3.2vw, 16px); letter-spacing: .14em; text-transform: uppercase; opacity: .82; margin-bottom: 8px; }
.slogan { display: inline-block; font-weight: 900; font-size: clamp(14px, 3.8vw, 19px); letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--ink);
          padding: 8px 12px 6px; transform: rotate(-2deg); box-shadow: 0 6px 24px rgba(0,0,0,.35); margin-top: 16px; }
.stats { display: flex; align-items: flex-start; margin-top: 30px; }
.stats > .stat { padding-right: 18px; min-width: 0; }
.stats > .stat + .stat { padding-left: 18px; border-left: 2px solid rgba(255,255,255,.22); }
.day .stats > .stat + .stat { border-left-color: rgba(11,17,13,.16); }
.stat .n { font-family: FC; font-weight: 900; font-size: clamp(44px, 13vw, 96px); line-height: .84; letter-spacing: .005em; white-space: nowrap; }
.stat .l { font-weight: 700; font-size: clamp(11px, 2.9vw, 14px); line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; margin-top: 12px; }
.stat .s { font-weight: 400; font-size: clamp(13px, 3.4vw, 16px); line-height: 1.35; margin-top: 6px; opacity: .76; }

/* the council chamber: 2021 turning into 2026 */
.chamberbox { position: relative; margin-top: 10px; }
.chamberbox .yr { display: grid; justify-items: start; font-family: FC; font-weight: 900; font-size: clamp(30px, 8vw, 54px); line-height: 1; color: rgba(255,255,255,.8); }
.chamberbox .yr > span { grid-area: 1 / 1; }
.chamberbox .yr .fade { color: var(--glow); }
.chamberbox .cnt { font-weight: 800; font-size: clamp(16px, 4.4vw, 22px); margin-top: 10px; }
.chamberbox .cnt b { font-family: FC; font-weight: 900; font-size: 1.9em; margin-right: .2em; vertical-align: -.1em; }

/* lists */
.ticks { list-style: none; margin: 26px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; font-size: clamp(16px, 4.3vw, 20px); line-height: 1.4; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 4px; background: var(--glow); }
.day .ticks li::before { background: var(--green); }
@media (min-width: 900px) { .record .ticks { columns: 2; column-gap: 40px; } .record .ticks li { break-inside: avoid; } }

/* Cape Town and eThekwini, side by side on a screen */
.cards { display: grid; gap: 56px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; gap: 44px; } }
.card figure { margin: 0 0 24px; aspect-ratio: 4 / 3; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card .stats { margin-top: 24px; }
.card .stat .n { font-size: clamp(34px, 10vw, 64px); }

/* Laingsburg */
.lbhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.locbox { width: min(42%, 260px); margin-top: 0; flex: none; }

/* provinces */
table.councils { width: 100%; border-collapse: collapse; font-size: clamp(14px, 3.7vw, 18px); margin-top: 10px; }
table.councils td { padding: 8px 0; border-bottom: 1px solid #DCE3DE; }
table.councils .nm { font-weight: 800; }
table.councils .pv { color: #5F6C62; font-weight: 500; padding-left: 10px; }
table.councils .pc { text-align: right; font-weight: 900; color: var(--deep); }
table.councils .rk { text-align: right; font-weight: 700; color: #46524B; padding-left: 14px; white-space: nowrap; }
@media (max-width: 520px) { table.councils .pv { display: none; } }

/* the headlines: each clipping lands, then its highlighter */
.wall { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 900px) { .wall { grid-template-columns: 1fr 1fr; align-items: start; gap: 34px 40px; } }
.clipw { margin: 0; }
.clipw.tall { max-width: 74%; justify-self: center; }
.clip { position: relative; filter: drop-shadow(0 10px 22px rgba(0,0,0,.55)); transform: rotate(var(--rot)); will-change: transform, opacity; }
.clip img { width: 100%; height: auto; }
.clip .hl { position: absolute; background: rgba(5,182,21,.6); mix-blend-mode: multiply; clip-path: polygon(0 10%, 100% 0, 100% 92%, 0 100%); transform-origin: 0 50%; }

/* the road to 2029: six photographs, the title over them */
.road { padding: 0; }
.collage { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; gap: 4px; }
.collage figure { margin: 0; overflow: hidden; }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage .t0, .collage .t5 { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .collage { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15vw; }
  .collage .t0 { grid-column: 1 / span 2; grid-row: span 2; }
  .collage .t5 { grid-column: 1 / -1; }
}
.road .roadtxt { margin-top: -24vw; padding-bottom: calc(10 * var(--vh)); }
.road .roadtxt::before { content: ""; position: absolute; left: -50vw; right: -50vw; top: -12vw; bottom: 0; background: linear-gradient(180deg, rgba(3,6,5,0), rgba(3,6,5,.92) 30%, var(--night) 60%); z-index: -1; }
.road .wrap { z-index: 1; }

/* the machine */
.machine .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.machine::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(3,6,5,.94) 0%, rgba(3,6,5,.8) 40%, rgba(3,6,5,.7) 70%, rgba(3,6,5,.92) 100%); }
.machine .wrap { z-index: 2; }
.stack { margin-top: 40px; }
.stack > div { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 2px solid rgba(255,255,255,.18); }
.stack > div:first-child { border-top: 0; }
.stack .n { font-family: FC; font-weight: 900; font-size: clamp(44px, 12.4vw, 120px); line-height: .84; color: var(--glow); flex: 0 0 56%; white-space: nowrap; }
@media (min-width: 700px) { .stack .n { flex-basis: 52%; } }
.stack .l { font-weight: 700; font-size: clamp(13px, 3.4vw, 18px); text-transform: uppercase; letter-spacing: .06em; }
.stack .s { font-weight: 400; font-size: clamp(13px, 3.4vw, 17px); opacity: .78; margin-top: 4px; }

/* the multiples: one ward per township */
.multiples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 18px; }
@media (min-width: 900px) { .multiples { grid-template-columns: repeat(4, 1fr); } }
.multiples .scrub { margin-top: 14px; }

/* hear it: a leader's own words, one tap */
.hear { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: 34px 0 0; padding: 12px 16px 12px 12px; text-align: left; cursor: pointer;
        font: inherit; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.hear:hover, .hear:focus-visible { background: rgba(34,226,52,.12); border-color: rgba(34,226,52,.5); outline: none; }
.day .hear { background: #F3F7F4; border-color: #DCE3DE; }
.green .hear { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.hear .hp { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; background: #1B2620; }
.hear .hp img { width: 100%; height: 100%; object-fit: cover; }
.hear .ht { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hear .hk { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.day .hear .hk { color: var(--deep); }
.hear .hl { font-weight: 800; font-size: clamp(15px, 4vw, 18px); line-height: 1.25; }
.hear .hs { font-weight: 500; font-size: 12px; opacity: .66; }
.hear .hplay { width: 44px; height: 44px; border-radius: 50%; background: var(--green); flex: none; position: relative; box-shadow: 0 0 0 0 rgba(34,226,52,.5); animation: hp 2.4s ease-out infinite; }
.hear .hplay::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@keyframes hp { 0% { box-shadow: 0 0 0 0 rgba(34,226,52,.45); } 70% { box-shadow: 0 0 0 14px rgba(34,226,52,0); } 100% { box-shadow: 0 0 0 0 rgba(34,226,52,0); } }

.player { position: fixed; inset: 0; z-index: 100; background: rgba(1,4,2,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.player[hidden] { display: none; }
.pbox { width: min(960px, 100%); }
.phead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; letter-spacing: .04em; }
.pclose { font: inherit; font-size: 30px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; padding: 4px 8px; }
.pframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.psrc { font-weight: 500; font-size: 13px; opacity: .7; margin-top: 10px; }
html.noscroll, html.noscroll body { overflow: hidden; }

/* ---------- the clips come out: one card slides in slowly from the right as the reader nears a clip ----------
   (Anthony, 9 Nov). It says it can be swiped away and nudges to show it moves; swiped, closed or played it goes,
   and it goes back into the page once the clip's inline button is on screen. app.js drives the classes. */
.peek { position: fixed; z-index: 60; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
        width: min(calc(100vw - 24px), 380px); pointer-events: none; }
.peek[hidden] { display: none; }
.pk-card { pointer-events: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
           transform: translateX(calc(100% + 28px)); transition: transform .32s cubic-bezier(.2,.8,.3,1.15), opacity .32s ease; will-change: transform; }
.peek.on .pk-card { transform: none; }
.peek.enter .pk-card { transition: transform 1.6s cubic-bezier(.4,.3,.2,1); }                  /* comes out slowly: a third out at 0.35 s */
.peek.go .pk-card { transform: translateX(calc(100% + 28px)); opacity: 0; transition: transform .3s cubic-bezier(.4,0,1,1), opacity .3s; }
.peek.dock .pk-card { transform: translateX(calc(100% + 28px)); transition: transform .7s cubic-bezier(.55,0,.75,.2); }
.pk-card.drag { transition: none; }
.pk-in { background: #0A120D; border: 1.5px solid rgba(34,226,52,.55); border-radius: 16px; overflow: hidden;
         box-shadow: 0 22px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.5); }
.peek.on .pk-in { animation: pknudge 1.25s 1.7s ease-in-out 1 both; }                         /* "I move": twice to the right */
@keyframes pknudge { 0%, 100% { transform: none; } 20% { transform: translateX(20px); } 42% { transform: none; } 62% { transform: translateX(10px); } 82% { transform: none; } }
.pk-main { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 14px 12px 12px; margin: 0; background: none; border: 0;
           color: #fff; font: inherit; text-align: left; cursor: pointer; }
.pk-ph { position: relative; flex: none; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #1B2620; }
.pk-ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pk-ph::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.pk-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
           background: var(--green); animation: hp 2.4s ease-out infinite; }
.pk-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.pk-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-k { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.pk-l { font-weight: 800; font-size: 17px; line-height: 1.22; }
.pk-s { font-weight: 500; font-size: 12px; opacity: .66; }
.pk-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 0 4px 0 14px;
          border-top: 1px solid rgba(255,255,255,.12); background: rgba(34,226,52,.07); }
.pk-hint { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
           color: rgba(255,255,255,.88); white-space: nowrap; }
.pk-chev { display: flex; gap: 1px; }
.pk-chev i { width: 9px; height: 9px; border-top: 2.5px solid var(--glow); border-right: 2.5px solid var(--glow); transform: rotate(45deg);
             opacity: .25; animation: pkchev 1.1s infinite; }
.pk-chev i:nth-child(2) { animation-delay: .15s; }
.pk-chev i:nth-child(3) { animation-delay: .3s; }
@keyframes pkchev { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.pk-x { position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 0; color: transparent; }
.pk-x::before, .pk-x::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2.5px; border-radius: 2px;
                              background: rgba(255,255,255,.9); transform: rotate(45deg); }
.pk-x::after { transform: rotate(-45deg); }
@media (max-width: 340px) { .pk-hint { letter-spacing: .06em; } .pk-ph { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .peek { display: none !important; } }

/* reduced motion: every scene shows its end, nothing moves */
.hook.still { height: calc(200 * var(--vh)); }
@media (prefers-reduced-motion: reduce) {
  .js .up { opacity: 1; transform: none; transition: none; }
  .hook .cue i, .hook .cover .ccue i, .hear .hplay { animation: none; }
  .js .opener .txt { opacity: 1; }
  .opener .ph { transform: none; }
  .opener { height: calc(100 * var(--vh)); }
  .tilescene, .mapscene { height: calc(100 * var(--vh)); }
}

/* ---------- new ground, as the A4 PDF (9 Nov): the footprint, each province's councils, the provinces, the strongest councils ---------- */
.heatbox { margin: 3svh auto 0; max-width: min(100%, 62svh); }
.heatkey { margin: 18px auto 0; max-width: 520px; }
.heatkey .hk-t { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-bottom: 10px; }
.pcards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
@media (min-width: 900px) { .pcards { grid-template-columns: repeat(3, 1fr); gap: 22px 36px; } }
.pcard .pc-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: clamp(15px, 4.2vw, 19px); margin-bottom: 7px; }
.pcard .pc-v { font-weight: 900; color: var(--deep); }
.pcard svg { display: block; width: 100%; height: auto; }
.day .legend { color: #2E3A33; }
.provinces .scrub, .standouts > .wrap > .scrub { margin-top: 26px; }
.sohead { display: grid; grid-template-columns: 1fr; gap: 6px; }
.somap { width: min(64%, 300px); margin: 18px 0 0; }
@media (min-width: 700px) { .sohead { grid-template-columns: 1fr 300px; align-items: start; gap: 30px; } .somap { width: 300px; margin: 0; } }
