/* Classic tall Watt Now? poster, "Pay it forward" (Winter Energy Payment).
   Designed at 1000px. Inside .poster everything is sized in cqw
   (1 design px = 0.1cqw) so the poster scales like one printed image.
   Below 641px the rows stack and the type gets a px floor. */

@font-face {
  font-family: "Popkorn";
  src: url("../fonts/POPKORN.ttf") format("truetype");
  font-display: block;
}

:root {
  --paper: #FFFBF2;
  --ink: #111;
  --warn: #C03030;
  --surround: #EFE9DC;
  --below-ink: #2B2B2B;
  --below-muted: #5A5650;
  --link: #0060B8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surround: #1C1B19; --below-ink: #ECE7DC; --below-muted: #B5AFA3; --link: #8CC4FF;
  }
}
:root[data-theme="dark"] {
  --surround: #1C1B19; --below-ink: #ECE7DC; --below-muted: #B5AFA3; --link: #8CC4FF;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--surround);
  color: var(--below-ink);
  font-family: "Rubik", system-ui, sans-serif;
  overflow-x: hidden;
}

.poster {
  --big: 7.6cqw;
  --mid: 4.6cqw;
  --lead: 3.0cqw;
  --body: 2.5cqw;
  --small: 2.05cqw;
  --title: 4.6cqw;
  --px: 6cqw;
  --py: 4.4cqw;
  --gap: 1.1cqw;
  width: min(1000px, 100%);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  container-type: inline-size;
  font-family: "Popkorn", "Rubik", sans-serif;
  letter-spacing: .02em;
  overflow: hidden;
}

/* ---------- panels, rows, rules */
.panel { position: relative; padding: var(--py) var(--px); }
.rule { position: relative; z-index: 1; width: 80%; height: 2cqw; margin: 0 auto; }
.rule svg { display: block; width: 100%; height: 100%; }

.row { display: grid; align-items: center; column-gap: 3cqw; }
.row + .row { margin-top: 4cqw; }
.row.L { grid-template-columns: minmax(0, 1fr) auto; }
.row.R { grid-template-columns: auto minmax(0, 1fr); }
.row.R > .art, .row.R > .pie { grid-column: 1; grid-row: 1; }
.row.R > .tx { grid-column: 2; grid-row: 1; }
.row.F { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 1.5cqw; margin-top: 2cqw; }

/* ---------- type */
.tx > p, .tx > h1, .cmp > p, .five-text > p { margin: 0; font-weight: 400; text-wrap-style: balance; }
.tx > * + * { margin-top: var(--gap); }
.title { font-size: var(--title); line-height: 1.12; margin: 0; font-weight: 400; }
.big { font-size: var(--big); line-height: 1.02; }
.mid { font-size: var(--mid); line-height: 1.1; }
.lead { font-size: var(--lead); line-height: 1.25; }
.body { font-size: var(--body); line-height: 1.35; }
.small { font-size: var(--small); line-height: 1.3; }
.stat { letter-spacing: .01em; white-space: nowrap; }
.nw { white-space: nowrap; }
.row.F .big { font-size: 6.2cqw; }
.three .big { font-size: 5.6cqw; }
.tx > .big + .body, .tx > .big + .lead { margin-top: .6cqw; }
.tx > .gap { margin-top: 3.4cqw; }
.kick { max-width: 82%; margin: 3.6cqw auto 0; }
.narrow, .tx > .narrow { max-width: 78%; margin-left: auto; margin-right: auto; }
.tx.kick > .lead + .big { margin-top: .4cqw; }

.approx { display: inline-block; width: .62em; height: .62em; vertical-align: -.02em; margin-right: .06em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- art */
.art { position: relative; width: var(--w); margin: 0; z-index: 2; }
.art img { display: block; width: 100%; height: auto; }
.art.centre { margin: 2.4cqw auto; }
.bleed { top: 7cqw; z-index: 3; }
.bleed-s { top: 3.4cqw; z-index: 3; }
.ph {
  display: grid; place-items: center; width: 100%;
  border: max(1.5px, .3cqw) dashed #A39C8C; border-radius: 1.6cqw;
  background: rgba(0, 0, 0, .025); color: #8A8374;
  font: 600 max(11px, 1.7cqw)/1.2 "Rubik", system-ui, sans-serif; letter-spacing: 0;
}
.deco { position: absolute; height: auto; z-index: 4; overflow: visible; pointer-events: none; }

/* ---------- header */
.hdr { padding-top: 4.4cqw; padding-bottom: 3cqw; }
.hdr-top { display: grid; grid-template-columns: 52% 1fr; align-items: center; column-gap: 4cqw; margin-bottom: 3.4cqw; }
.lockup { display: block; width: 100%; height: auto; transform: rotate(-1.2deg); }
.lockup.ph { aspect-ratio: 3.7; }
.hdr-title { text-align: center; }
.uline { display: block; width: 72%; height: 1.6cqw; margin: 1.4cqw auto 0; }
.hdr .rule { width: 100%; }
.intro-block { margin-top: 3cqw; }
.intro-block .sub { font-size: 3.4cqw; margin-bottom: 1.6cqw; }
.intro-block .intro { max-width: 84%; margin-left: auto; margin-right: auto; font-size: 2.6cqw; }

/* ---------- p01 five-up */
.five { list-style: none; padding: 0; margin: 3.4cqw 0 0; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 2.2cqw; }
.five-item { text-align: center; }
.five .icon { width: 100%; max-width: 15cqw; margin: 0 auto 1.4cqw; }
.five-text .mid { font-size: 5cqw; margin-bottom: .6cqw; }

/* ---------- compare / three-up */
.three { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 3cqw; margin-top: 3cqw; align-items: start; }
.cmp { text-align: center; }
.cmp > .lead { min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.cmp > .lead + .big { margin-top: .6cqw; }
.cmp > .mid + .body { margin-top: .6cqw; }
.mark { display: block; width: 5.6cqw; height: 5.6cqw; margin: 0 auto .8cqw; }

/* ---------- pie */
.pie { position: relative; width: 27cqw; margin: 0 4cqw 0 0; }
.pie > svg:first-child { display: block; width: 100%; height: auto; aspect-ratio: 1; }

/* ---------- fleet chart */
.chart.card { position: relative; margin: 5cqw 1cqw 0; padding: 4cqw 6cqw 5cqw; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.chart > :not(.card-bg) { position: relative; z-index: 1; }
.chart > .deco { position: absolute; }
.bar-row + .bar-row { margin-top: 3cqw; }
.bar-label { margin: 0 0 .8cqw; }
.bar { position: relative; height: 7.4cqw; }
.bar > svg { display: block; width: 100%; height: 100%; }
.bar-val { position: absolute; top: 50%; transform: translateY(-46%); font-size: var(--mid); white-space: nowrap; }
.bar-note { margin: .8cqw 0 0; }
.axis { position: relative; height: 3cqw; margin-top: 2.4cqw; border-top: max(1.5px, .3cqw) solid var(--ink); }
.axis span {
  position: absolute; top: .6cqw; transform: translateX(-50%);
  font: 700 max(11px, 1.8cqw)/1 "Rubik", system-ui, sans-serif; letter-spacing: 0;
}
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }

/* ---------- callout bubble (p09) */
.callout { position: absolute; left: -4%; top: 44%; width: 20cqw; height: 10cqw; display: grid; place-items: center; z-index: 5; }
.callout span { position: relative; z-index: 1; font: 700 5.6cqw/1 "Rubik", system-ui, sans-serif; letter-spacing: 0; }
.bub-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bub-arrow { position: absolute; left: 70%; top: 92%; width: 11cqw; height: 6.6cqw; transform: rotate(78deg); transform-origin: 0 0; }

/* ---------- footer */
.foot { padding-top: 6cqw; padding-bottom: 3cqw; }
.cta { display: flex; align-items: center; justify-content: center; gap: 3.6cqw; }
.cta-lead { margin: 0; font-size: 3.6cqw; white-space: nowrap; }
.pill { position: relative; display: grid; place-items: center; width: 50cqw; height: 9cqw; color: var(--ink); text-decoration: none; }
.pill-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pill span { position: relative; font-size: 3.3cqw; padding-top: .3cqw; white-space: nowrap; }
.pill:hover span, .pill:focus-visible span { text-decoration: underline; text-decoration-thickness: .3cqw; }
.pill:focus-visible { outline: .35cqw solid var(--ink); outline-offset: .6cqw; border-radius: 1cqw; }
.date { margin: 5cqw 0 0; text-align: right; font: 400 2.2cqw/1 "Rubik", system-ui, sans-serif; letter-spacing: 0; }

/* ---------- below the poster: plain sans */
.below { width: min(1000px, 100%); margin: 0 auto; padding: 28px 16px 56px; font-size: 14px; line-height: 1.55; }
.below h2 { font-size: 15px; margin: 22px 0 8px; font-weight: 600; }
.below-cta { font-size: 16px; font-weight: 600; margin: 0; }
.below a { color: var(--link); }
.sources { padding-left: 20px; margin: 0; color: var(--below-muted); }
.sources li { margin: 0 0 6px; }

@media (min-width: 1040px) {
  .poster { margin-top: 32px; }
  .below { padding-left: 0; padding-right: 0; }
}

/* ---------- phone: stack the rows, floor the type */
@media (max-width: 640px) {
  .poster {
    --big: 44px; --mid: 30px; --lead: 19px; --body: 17px; --small: 15px; --title: 28px;
    --px: 16px; --py: 30px; --gap: 8px;
  }
  .row, .row.L, .row.R, .row.F { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .row.R > .art, .row.R > .pie, .row.R > .tx { grid-column: auto; grid-row: auto; }
  .row + .row { margin-top: 28px; }
  .art, .art.centre { width: min(var(--mw, 80%), 330px); margin: 4px auto; top: 0; }
  .kick, .narrow { max-width: 100%; }
  .kick { margin-top: 20px; }
  .tx > .gap { margin-top: 22px; }
  .rule { height: 10px; }
  .hdr { padding-top: 22px; }
  .hdr-top { grid-template-columns: minmax(0, 1fr); row-gap: 18px; margin-bottom: 18px; }
  .lockup { width: 86%; margin: 0 auto; }
  .uline { height: 8px; margin-top: 8px; width: 60%; }
  .intro-block { margin-top: 18px; }
  .intro-block .sub { font-size: 21px; }
  .intro-block .intro { font-size: 17px; max-width: 100%; }

  .five { grid-template-columns: minmax(0, 1fr); row-gap: 18px; margin-top: 22px; }
  .five-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
  .five .icon { width: 88px; max-width: none; margin: 0; }
  .five-text .mid, .mid.stat { font-size: 40px; }
  .stat { white-space: normal; }
  .row.F .big, .three .big { font-size: var(--big); }

  .three { grid-template-columns: minmax(0, 1fr); row-gap: 24px; margin-top: 22px; }
  .cmp > .lead { min-height: 0; }
  .mark { width: 34px; height: 34px; margin-bottom: 4px; }
  .pie { width: min(62%, 240px); margin: 0 auto; }

  .chart.card { margin: 28px 0 0; padding: 22px 18px 26px; }
  .bar { height: 46px; }
  .bar-val { font-size: 34px; }
  .bar-row + .bar-row { margin-top: 20px; }
  .axis { height: 20px; margin-top: 14px; }

  .callout { width: 96px; height: 50px; left: -4%; top: -10%; }
  .callout span { font-size: 28px; }
  .bub-arrow { width: 48px; height: 30px; }

  .foot { padding-top: 34px; }
  .cta { flex-direction: column; gap: 14px; }
  .cta-lead { font-size: 26px; }
  .pill { width: 100%; max-width: 340px; height: 66px; }
  .pill span { font-size: 23px; }
  .date { font-size: 14px; margin-top: 26px; }
  .ph { border-radius: 10px; }
}

/* ================= Pay it forward additions ================= */
.svg-pop { font-family: "Popkorn", sans-serif; }
.assume { margin: 0; color: var(--below-muted); }
.assume.ai { margin-top: 18px; }
.efp { font-size: 6.6cqw; }
.ras { font-size: 4.7cqw; line-height: 1.06; }
.fromto .mid { font-size: 6cqw; }
.block { margin-top: 5cqw; }
.three .mid { font-size: 4.8cqw; }

/* 2x2 "the money is..." grid and 3+2 "more" grid */
.grid2 { list-style: none; padding: 0; margin: 3.6cqw 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4cqw; }
.g-item { display: grid; grid-template-columns: 15cqw minmax(0, 1fr); column-gap: 2.4cqw; align-items: center; }
.g-item .icon { width: 100%; }
.g-text > p, .m-item > p { margin: 0; text-wrap-style: balance; }
.g-head { font-size: 3.5cqw; line-height: 1.1; }
.g-text .small, .m-item .small { margin-top: .7cqw; }
.more { list-style: none; padding: 0; margin: 3.6cqw 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4cqw 3cqw; }
.m-item { width: 27cqw; text-align: center; }
.m-item .icon { width: 15cqw; margin: 0 auto 1.2cqw; }
.m-item .g-head { font-size: 3.1cqw; }

/* stacked income chart */
.chart.card.inc { padding: 3.4cqw 4cqw 3.6cqw 9cqw; margin-top: 4cqw; }
.inc-title { margin: 0 0 1.4cqw; font-size: 2.5cqw; line-height: 1.25; text-align: left; }
.legend { display: flex; gap: 3cqw; margin: 0 0 5cqw; font-size: var(--small); }
.legend span { display: inline-flex; align-items: center; gap: .9cqw; }
.legend i { width: 2.2cqw; height: 2.2cqw; border: max(1.5px, .3cqw) solid var(--ink); border-radius: .4cqw; }
.inc-plot { position: relative; height: 40cqw; border-bottom: max(1.5px, .3cqw) solid var(--ink); }
.inc-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.inc-y { position: absolute; right: calc(100% + 1.2cqw); transform: translateY(50%); font: 700 max(10px, 1.8cqw)/1 "Rubik", system-ui, sans-serif; letter-spacing: 0; }
.inc-grid { position: absolute; left: 0; right: 0; height: 0; border-top: max(1px, .15cqw) dashed #C9C2B2; }
.inc-val { position: absolute; margin: 0; transform: translate(-50%, -.5cqw); font: 700 max(11px, 2.3cqw)/1 "Rubik", system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
.inc-x { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 1.4cqw; }
.inc-x p { margin: 0; padding: 0 .6cqw; text-align: center; font-size: 1.9cqw; line-height: 1.2; }
.inc-call { position: absolute; margin: 0; left: 56%; bottom: 62%; font-size: 8cqw; line-height: 1; color: #BC4440; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; row-gap: 2.8cqw; }
.step { display: grid; grid-template-columns: 6.4cqw minmax(0, 1fr); column-gap: 2cqw; align-items: center; text-align: left; }
.step svg { display: block; width: 100%; height: auto; overflow: visible; }
.step p { margin: 0; font-size: 2.9cqw; line-height: 1.25; text-wrap-style: balance; }
.stack { display: grid; row-gap: 1cqw; justify-items: center; }

/* case studies */
.tag { position: relative; display: inline-grid; place-items: center; width: 30cqw; height: 6.4cqw; margin: 0 0 1.6cqw; }
.tag svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tag span { position: relative; font-size: 3cqw; padding-top: .2cqw; white-space: nowrap; }
.ladder { margin-top: 3.4cqw; display: grid; row-gap: 2.6cqw; }
.rung > p { margin: 0; }
.rung > .rung-label { font-size: 2.4cqw; line-height: 1.25; margin-bottom: .7cqw; text-wrap-style: balance; max-width: 92%; }
.rung-bar { position: relative; height: 6.6cqw; }
.rung-bar > svg { position: absolute; left: 0; top: 0; height: 100%; overflow: visible; }
.rung-val { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: baseline; gap: 1.2cqw; white-space: nowrap; }
.rung-val b { font-weight: 400; font-size: var(--mid); line-height: 1; }
.rung-val i { font-style: normal; font-size: var(--small); }
.rung > .rung-note { font-size: var(--small); margin-top: .5cqw; color: #3A3A3A; }
.foot-note { margin: 3.4cqw auto 0; max-width: 88%; text-align: center; font-size: 2.2cqw; line-height: 1.35; text-wrap-style: balance; }

/* from > to */
.fromto { display: grid; grid-template-columns: minmax(0, 1fr) 20cqw minmax(0, 1fr); align-items: center; column-gap: 2cqw; margin-top: 1.6cqw; text-align: center; }
.fromto p { margin: 0; }
.fromto > svg { display: block; width: 100%; height: auto; overflow: visible; }

@media (max-width: 640px) {
  .efp { font-size: 36px; } .ras { font-size: 32px; }
  .block { margin-top: 30px; }
  .three .mid { font-size: 34px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; }
  .g-item { grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; }
  .g-head, .m-item .g-head { font-size: 22px; }
  .more { gap: 24px; margin-top: 22px; }
  .m-item { width: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
  .m-item .icon { width: 88px; margin: 0; grid-row: 1 / span 2; }
  .m-item .g-head { align-self: end; } .m-item .small { align-self: start; margin-top: 4px; }
  .chart.card.inc { padding: 20px 12px 22px 40px; margin-top: 24px; }
  .inc-title { font-size: 16px; } .legend { margin-bottom: 30px; gap: 14px; }
  .legend i { width: 14px; height: 14px; }
  .inc-plot { height: 240px; }
  .inc-val { font-size: 12px; transform: translate(-50%, -3px); }
  .inc-x p { font-size: 10.5px; padding: 0 1px; overflow-wrap: anywhere; }
  .inc-call { font-size: 40px; }
  .steps { row-gap: 16px; } .step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; } .step p { font-size: 18px; }
  .tag { width: 190px; height: 42px; margin-bottom: 10px; } .tag span { font-size: 19px; }
  .ladder { margin-top: 22px; row-gap: 18px; }
  .rung > .rung-label { font-size: 16px; margin-bottom: 5px; }
  .rung-bar { height: 50px; }
  .rung-val { flex-direction: column; align-items: flex-start; gap: 0; }
  .rung-val b { font-size: 28px; } .rung-val i { font-size: 13px; }
  .foot-note { font-size: 15px; max-width: 100%; margin-top: 20px; }
  .fromto { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .fromto > svg { width: 90px; margin: 0 auto; transform: rotate(90deg); }
}
