/* Slide look, shared by the projector screen, presenter view, editor and audience phones.
   "stage" = fixed 1920x1080 canvas scaled to fit. "reader" = responsive phone layout. */

:root {
  --ink: #1E2929;
  --slate: #4F5B5A;
  --teal: #169C9A;
  --teal-d: #0B5E5C;
  --pale: #E4F3F2;
  --purple: #4D2379;
  --red: #C2452A;
  --peach: #FBE5DE;
  --white: #FFFFFF;
  --gold: #F2C14E;
  --head: 'Poppins', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

.slide { font-family: var(--body); color: var(--ink); overflow: hidden; background: var(--white); }
.slide * { box-sizing: border-box; }
.slide a { color: var(--teal-d); }
.slide strong { font-weight: 800; }

/* ------------------------------------------------------------------ stage canvas */

.stage-wrap { position: relative; overflow: hidden; background: #0d1414; }
.stage-wrap > .slide, .stage-wrap > .slide-layer > .slide {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; transform: translate(var(--ox, 0px), var(--oy, 0px)) scale(var(--sc, 1));
}
.slide-layer { position: absolute; inset: 0; }

.stage .bg, .stage .frame, .stage .deco { position: absolute; inset: 0; }
.stage .frame { display: block; }
.stage .main, .stage .aside, .stage .foot { position: absolute; display: flex; flex-direction: column; gap: 34px; }

/* title: tapa artwork + white disc (sections, start and end) */
.stage.L-title .bg { background: url(/media/tapa-title.jpg) center / cover; }
.stage.L-title .disc {
  position: absolute; left: 50%; top: -230px; width: 1080px; height: 1080px; margin-left: -540px;
  border-radius: 50%; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.stage.L-title .logo { position: absolute; right: 70px; bottom: 50px; width: 300px; opacity: .95; }
.stage.L-title .main { left: 520px; width: 880px; top: 80px; height: 680px; justify-content: center; align-items: center; text-align: center; gap: 24px; }
.stage.L-title .foot { left: 0; right: 0; bottom: 46px; align-items: center; text-align: center; gap: 6px; color: var(--white); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.stage.L-title .foot .t-body { color: var(--white); font-weight: 800; font-size: 34px; }
.stage.L-title .aside { right: 80px; top: 70px; width: 300px; }

/* side: tapa strip and flower arc on the left */
.stage.L-side .bg { background: url(/media/tapa-side.jpg) left center / cover no-repeat; }
.stage.L-side .main { left: 470px; right: 110px; top: 150px; bottom: 80px; }

/* plain: white with a soft disc motif */
.stage.L-plain .deco::before {
  content: ''; position: absolute; right: -260px; top: -300px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(22, 156, 154, .10), rgba(22, 156, 154, .03) 60%, transparent 70%);
}
.stage.L-plain .main { left: 110px; right: 110px; top: 80px; bottom: 70px; }

/* poster: tall picture on the left */
.stage.L-poster .aside { left: 0; top: 0; bottom: 0; width: 760px; gap: 0; }
.stage.L-poster .main { left: 840px; right: 100px; top: 90px; bottom: 80px; }

/* chart: thin tapa strip, numbers on the left, chart picture on the right */
.stage.L-chart .bg { background: url(/media/tapa-side.jpg) left center / auto 100% no-repeat; }
.stage.L-chart .bg::after { content: ''; position: absolute; left: 150px; top: 0; right: 0; bottom: 0; background: var(--white); }
.stage.L-chart .main { left: 220px; width: 640px; top: 80px; bottom: 80px; justify-content: center; }
.stage.L-chart .aside { left: 900px; right: 50px; top: 50px; bottom: 50px; justify-content: center; }

/* photos: words on the left, photo wall on the right */
.stage.L-photos .main { left: 90px; width: 640px; top: 90px; bottom: 90px; justify-content: center; }
.stage.L-photos .aside { left: 770px; right: 0; top: 0; bottom: 0; gap: 0; }

/* full: one picture fills the slide */
.stage.L-full .main { inset: 0; gap: 0; }
.stage.L-full .main > .b-image { flex: 1; }

.stage .b-source { margin-top: auto; }

/* ------------------------------------------------------------------ blocks (stage sizes) */

.stage .b-heading h1 { font-family: var(--head); font-weight: 700; font-size: 68px; line-height: 1.12; margin: 0; letter-spacing: -.5px; color: var(--ink); }
.stage .b-heading .sub { font-size: 34px; color: var(--slate); margin-top: 10px; }
.stage .b-heading.v-display h1 { font-weight: 800; font-size: 84px; color: var(--purple); text-transform: uppercase; line-height: 1.08; }
.stage .b-heading.v-hero h1 { font-weight: 800; font-size: 104px; }
.stage .b-heading.v-hero .sub { font-size: 40px; }
.stage .b-heading.v-small h1 { font-size: 56px; }
.stage .b-heading.v-purple h1 { color: var(--purple); font-weight: 800; font-size: 84px; }

.t-lead { font-size: 44px; line-height: 1.3; }
.t-body { font-size: 35px; line-height: 1.38; color: var(--ink); }
.t-small { font-size: 22px; line-height: 1.4; color: var(--slate); }
.t-accent { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--teal-d); }
.t-big { font-family: var(--head); font-weight: 800; font-size: 72px; color: var(--teal); line-height: 1.1; }
.t-warning { font-family: var(--head); font-weight: 700; font-size: 36px; color: var(--red); }
.t-fijian { font-style: italic; font-size: 44px; color: var(--teal-d); }
.t-quote { font-style: italic; font-size: 40px; color: var(--slate); }
.t-white { color: var(--white); }
.b-text p { margin: 0; }
.b-text p + p { margin-top: .35em; }

.b-bullets ul, .b-bullets ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55em; }
.stage .b-bullets { font-size: 38px; line-height: 1.32; }
.b-bullets li { position: relative; padding-left: 1.5em; }
.b-bullets li::before { content: ''; position: absolute; left: .3em; top: .5em; width: .42em; height: .42em; border-radius: 50%; background: var(--teal); }
.b-bullets.v-check li::before { content: '\2713'; background: none; width: auto; height: auto; top: 0; left: .1em; color: var(--teal); font-weight: 800; }
.b-bullets.v-numbered ol { counter-reset: n; }
.b-bullets.v-numbered li { counter-increment: n; padding-left: 1.9em; }
.b-bullets.v-numbered li::before {
  content: counter(n); background: var(--teal); color: var(--white); font-family: var(--head); font-weight: 700;
  width: 1.35em; height: 1.35em; top: 0; left: 0; display: grid; place-items: center; font-size: .8em; line-height: 1;
}

.b-cards .grid { display: grid; gap: 34px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.card { background: var(--pale); border-radius: 28px; padding: 36px 38px; display: flex; flex-direction: column; gap: 14px; }
.card .c-title { font-family: var(--head); font-weight: 700; font-size: 42px; color: var(--teal-d); line-height: 1.15; }
.card .c-body { font-size: 31px; line-height: 1.38; }
.card .c-body p { margin: 0; }
.card .c-body p + p { margin-top: .5em; }
.card .c-body .kv-k { display: block; font-size: .72em; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; margin-top: .4em; }
.card .c-body .kv-v { display: block; font-weight: 800; font-size: 1.05em; }
.card.tone-peach { background: var(--peach); }
.card.tone-peach .c-title { color: var(--red); }
.card.tone-solid { background: var(--teal); color: var(--white); }
.card.tone-solid .c-title { color: var(--white); }
.card.tone-purple { background: #EFE8F6; }
.card.tone-purple .c-title { color: var(--purple); }
.b-cards.v-solid .card { background: var(--teal); color: var(--white); box-shadow: 0 14px 30px rgba(11, 94, 92, .25); }
.b-cards.v-solid .card .c-title { color: var(--white); }
.b-cards.v-solid .card a { color: var(--white); }
.b-cards.v-list .grid { grid-template-columns: 1fr; gap: 18px; }
.b-cards.v-list .card { padding: 22px 34px; border-radius: 18px; }
.b-cards.v-list .card .c-title { font-family: var(--body); font-weight: 600; font-size: 36px; }

.b-stats .grid { display: grid; gap: 34px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.stat { background: var(--pale); border-radius: 28px; padding: 40px 28px; text-align: center; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.stat .s-val { font-family: var(--head); font-weight: 800; font-size: 108px; line-height: 1; color: var(--teal-d); font-variant-numeric: tabular-nums; }
.stat .s-lab { font-size: 30px; line-height: 1.3; }
.stat.tone-red .s-val { color: var(--red); }
.stat.tone-purple .s-val { color: var(--purple); }

.b-flow .row { display: flex; align-items: stretch; gap: 0; }
.b-flow .node { flex: 1; border-radius: 28px; padding: 44px 34px; text-align: center; background: var(--pale); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.b-flow .node .c-title { font-family: var(--head); font-weight: 700; font-size: 44px; color: var(--teal-d); }
.b-flow .node .c-body { font-size: 31px; line-height: 1.35; }
.b-flow .node.tone-peach { background: var(--peach); }
.b-flow .node.tone-peach .c-title { color: var(--red); }
.b-flow .arrow { flex: 0 0 90px; display: grid; place-items: center; }
.b-flow .arrow svg { width: 70px; height: 56px; overflow: visible; }
.b-flow .arrow path { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

.b-tree { position: relative; }
.b-tree .t-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 120px; row-gap: 90px; }
.b-tree .t-root { grid-column: 1 / -1; justify-self: center; }
.b-tree .t-box { position: relative; z-index: 1; background: var(--teal); color: var(--white); border-radius: 24px; padding: 30px 44px; text-align: center; font-size: 34px; line-height: 1.3; box-shadow: 0 14px 30px rgba(11, 94, 92, .22); }
.b-tree .t-box strong { display: block; font-family: var(--head); font-size: 36px; }
.b-tree .t-box.tone-light { background: var(--pale); color: var(--ink); box-shadow: none; }
.b-tree .t-box.tone-light strong { color: var(--teal-d); }
.b-tree .t-box.tone-peach { background: var(--peach); color: var(--ink); box-shadow: none; }
.b-tree .t-box.tone-peach strong { color: var(--red); }
.b-tree .t-col { display: flex; flex-direction: column; gap: 90px; align-items: stretch; }
.b-tree svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.b-tree svg.lines path { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; }

.b-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.b-steps li { display: grid; grid-template-columns: 84px 1fr; gap: 28px; align-items: center; }
.b-steps .num { width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 40px; box-shadow: 0 10px 22px rgba(22, 156, 154, .35); }
.b-steps .st-title { font-family: var(--head); font-weight: 700; font-size: 42px; line-height: 1.2; }
.b-steps .st-body { font-size: 31px; color: var(--slate); line-height: 1.35; margin-top: 4px; }
.b-steps.v-compact ol { gap: 26px; }
.b-steps.v-compact li { grid-template-columns: 80px 1fr; }
.b-steps.v-compact .num { width: 80px; height: 80px; font-size: 38px; }
.b-steps.v-compact .st-title { font-size: 40px; }
.b-steps.v-compact .st-body { font-size: 29px; }

.b-pairs .rows { display: flex; flex-direction: column; gap: 22px; }
.b-pairs .pair { display: grid; grid-template-columns: 640px 1fr; gap: 40px; align-items: center; }
.b-pairs .q { background: var(--pale); border-radius: 20px; padding: 24px 30px; font-family: var(--head); font-weight: 700; font-size: 32px; color: var(--teal-d); line-height: 1.25; }
.b-pairs .a { font-size: 32px; line-height: 1.35; }

.b-image { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; }
.b-image .img-box { position: relative; flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; }
.b-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.b-image.v-cover img { object-fit: cover; }
.b-image.v-cover .img-box { border-radius: 0; }
.b-image.v-shadow .img-box { box-shadow: 0 22px 50px rgba(0, 0, 0, .18); background: var(--white); }
.b-image .cap { font-size: 22px; color: var(--teal-d); text-align: center; }
.b-image.v-cover .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); color: #fff; }

.b-gallery { flex: 1; min-height: 0; }
.b-gallery .g { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; height: 100%; padding: 14px; }
.b-gallery .g figure { margin: 0; overflow: hidden; border-radius: 18px; background: var(--pale); min-height: 0; }
.b-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.b-bars { display: flex; flex-direction: column; gap: 18px; }
.b-bars .bt { font-family: var(--head); font-weight: 600; font-size: 28px; color: var(--slate); }
.b-bars .chart { position: relative; display: flex; flex-direction: column; gap: 14px; }
.b-bars .bar { display: grid; grid-template-columns: 330px 1fr; gap: 22px; align-items: center; }
.b-bars .bl { font-size: 28px; text-align: right; font-weight: 600; line-height: 1.1; }
.b-bars .bl small { display: block; font-size: 19px; color: var(--slate); font-weight: 400; }
.b-bars .track { position: relative; height: 56px; }
.b-bars .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); border-radius: 0 14px 14px 0; background: #8CCBC9; }
.b-bars .bar.hi .fill { background: linear-gradient(90deg, var(--teal), var(--teal-d)); box-shadow: 0 8px 22px rgba(11, 94, 92, .35); }
.b-bars .bar.hi .bl { color: var(--teal-d); font-weight: 800; }
.b-bars .val { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--v) * 1% + 14px); font-family: var(--head); font-weight: 700; font-size: 28px; white-space: nowrap; }
.b-bars .bar.hi .val { color: var(--teal-d); font-size: 34px; }
.b-bars .goal { position: absolute; top: -14px; bottom: -14px; left: calc(352px + (100% - 352px) * var(--g) / 100); width: 0; border-left: 5px dashed var(--red); }
.b-bars .goal span { position: absolute; top: -40px; left: -60px; width: 120px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 24px; color: var(--red); }
.b-bars .scale-note { font-size: 20px; color: var(--slate); }

.b-gauge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.b-gauge .ring { position: relative; width: 380px; height: 380px; }
.b-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.b-gauge .r-bg { fill: none; stroke: var(--pale); stroke-width: 34; }
.b-gauge .r-fg { fill: none; stroke: var(--teal); stroke-width: 34; stroke-linecap: round; }
.b-gauge .r-goal { stroke: var(--red); stroke-width: 8; }
.b-gauge .r-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.b-gauge .r-num b { font-family: var(--head); font-weight: 800; font-size: 104px; color: var(--teal-d); line-height: 1; font-variant-numeric: tabular-nums; }
.b-gauge .r-num span { font-size: 24px; color: var(--slate); margin-top: 6px; }
.b-gauge .g-label { font-size: 30px; font-weight: 700; }
.b-gauge .g-sub { font-size: 24px; color: var(--slate); }
.b-gauge .g-goal { font-family: var(--head); font-weight: 700; font-size: 32px; color: var(--teal-d); }

.b-contacts { background: var(--pale); border-radius: 28px; padding: 38px 44px; display: flex; flex-direction: column; gap: 18px; }
.b-contacts .ct { font-family: var(--head); font-weight: 700; font-size: 36px; color: var(--teal-d); }
.b-contacts .row { display: flex; flex-direction: column; }
.b-contacts .lab { font-size: 24px; color: var(--slate); }
.b-contacts .num { font-family: var(--head); font-weight: 800; font-size: 50px; color: var(--ink); text-decoration: none; letter-spacing: .5px; }

.b-link a { display: inline-flex; align-items: center; gap: 14px; padding: 16px 30px; border: 3px solid var(--teal); border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 28px; color: var(--teal-d); text-decoration: none; background: var(--white); }
.b-link a .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: 16px; }

.b-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 28px; }
.b-links li a { text-decoration: none; border-bottom: 2px solid rgba(22, 156, 154, .35); }

.b-qr { display: flex; align-items: center; gap: 30px; background: var(--white); border-radius: 26px; padding: 22px 30px 22px 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); align-self: flex-start; }
.b-qr img { width: 230px; height: 230px; display: block; }
.b-qr .q-l { font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--teal-d); line-height: 1.2; max-width: 520px; }
.b-qr .q-u { font-size: 22px; color: var(--slate); margin-top: 8px; word-break: break-all; }
.stage.L-title .aside .b-qr { flex-direction: column; padding: 18px; gap: 8px; text-align: center; align-self: stretch; }
.stage.L-title .aside .b-qr img { width: 240px; height: 240px; }
.stage.L-title .aside .b-qr .q-l { font-size: 24px; }
.stage.L-title .aside .b-qr .q-u { display: none; }

.b-circles .vw { position: relative; width: 820px; height: 720px; margin: 0 auto; }
.b-circles .cir { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(22, 156, 154, .55); mix-blend-mode: multiply; display: grid; place-items: center; text-align: center; padding: 60px; font-size: 32px; line-height: 1.25; font-weight: 700; color: #0a3433; }
.b-circles .cir:nth-child(1) { left: 210px; top: 0; padding-bottom: 150px; }
.b-circles .cir:nth-child(2) { left: 30px; top: 300px; padding-right: 140px; }
.b-circles .cir:nth-child(3) { left: 390px; top: 300px; padding-left: 140px; }
.b-circles .cir .n { display: block; font-family: var(--head); font-size: 26px; opacity: .7; }

.b-video video { width: 100%; max-height: 640px; border-radius: 20px; background: #000; }

/* ------------------------------------------------------------------ reader (phones) */

.reader.slide { position: relative; padding: 22px 18px 30px; border-radius: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); font-size: 1rem; }
.reader .bg, .reader .deco, .reader .disc, .reader .logo { display: none; }
.reader .frame { display: flex; flex-direction: column; gap: 18px; }
.reader .main, .reader .aside, .reader .foot { display: flex; flex-direction: column; gap: 18px; }
.reader.L-poster .frame, .reader.L-photos .frame { flex-direction: column-reverse; }
.reader.L-chart .frame { flex-direction: column; }
.reader.L-title { background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .96)), url(/media/tapa-title.jpg) center / cover; text-align: center; }
.reader.L-title .main { align-items: center; }
.reader.L-title .b-qr { display: none; }
.reader.L-side { background: linear-gradient(90deg, rgba(255, 255, 255, .92), #fff 40%), url(/media/tapa-side.jpg) left top / auto 100% no-repeat; }

.reader .b-heading h1 { font-family: var(--head); font-weight: 700; font-size: 1.6em; line-height: 1.2; margin: 0; }
.reader .b-heading .sub { font-size: 1.05em; color: var(--slate); margin-top: 6px; }
.reader .b-heading.v-display h1, .reader .b-heading.v-purple h1 { color: var(--purple); font-weight: 800; font-size: 1.7em; }
.reader .b-heading.v-hero h1 { font-size: 2em; font-weight: 800; }
.reader .t-lead { font-size: 1.25em; }
.reader .t-body { font-size: 1.05em; }
.reader .t-small { font-size: .85em; }
.reader .t-accent { font-size: 1.15em; }
.reader .t-big { font-size: 1.8em; }
.reader .t-warning { font-size: 1.1em; }
.reader .t-fijian, .reader .t-quote { font-size: 1.2em; }
.reader.L-title .foot .t-body { color: var(--ink); font-size: .95em; }
.reader .b-bullets { font-size: 1.05em; line-height: 1.4; }
.reader .b-cards .grid, .reader .b-stats .grid { grid-template-columns: 1fr; gap: 12px; }
.reader .card { padding: 18px 18px; border-radius: 18px; gap: 6px; }
.reader .card .c-title { font-size: 1.25em; }
.reader .card .c-body { font-size: 1em; }
.reader .b-cards.v-list .card .c-title { font-size: 1.05em; }
.reader .stat { padding: 18px; border-radius: 18px; flex-direction: row; align-items: center; text-align: left; gap: 16px; }
.reader .stat .s-val { font-size: 2.2em; min-width: 3.6em; }
.reader .stat .s-lab { font-size: 1em; }
.reader .b-flow .row { flex-direction: column; }
.reader .b-flow .node { padding: 16px; border-radius: 18px; }
.reader .b-flow .node .c-title { font-size: 1.2em; }
.reader .b-flow .node .c-body { font-size: 1em; }
.reader .b-flow .arrow { flex: 0 0 44px; transform: rotate(90deg); }
.reader .b-flow .arrow svg { width: 36px; height: 30px; }
.reader .b-tree .t-grid { grid-template-columns: 1fr; row-gap: 14px; }
.reader .b-tree .t-col { gap: 10px; }
.reader .b-tree .t-col + .t-col { margin-top: 10px; }
.reader .b-tree .t-box { font-size: 1em; padding: 14px 16px; border-radius: 16px; }
.reader .b-tree .t-box strong { font-size: 1.1em; }
.reader .b-tree svg.lines { display: none; }
.reader .b-steps ol { gap: 14px; }
.reader .b-steps li { grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.reader .b-steps .num { width: 44px; height: 44px; font-size: 1.2em; }
.reader .b-steps .st-title { font-size: 1.1em; }
.reader .b-steps .st-body { font-size: .95em; }
.reader .b-pairs .pair { grid-template-columns: 1fr; gap: 6px; }
.reader .b-pairs .q { font-size: 1em; padding: 12px 14px; border-radius: 14px; }
.reader .b-pairs .a { font-size: 1em; padding: 0 4px 6px; }
.reader .b-image .img-box { border-radius: 16px; max-height: 70vh; }
.reader .b-image img { height: auto; max-height: 70vh; }
.reader .b-image.v-cover img { object-fit: contain; }
.reader .b-image .cap { font-size: .8em; position: static; background: none; color: var(--teal-d); }
.reader .b-gallery .g { grid-template-columns: 1fr 1fr; grid-auto-rows: 110px; padding: 0; gap: 8px; }
.reader .b-bars .bt { font-size: .95em; }
.reader .b-bars .bar { grid-template-columns: 7.2em 1fr; gap: 8px; }
.reader .b-bars .bl { font-size: .85em; }
.reader .b-bars .bl small { font-size: .7em; }
.reader .b-bars .track { height: 30px; margin-right: 3.4em; }
.reader .b-bars .val { font-size: .9em; }
.reader .b-bars .bar.hi .val { font-size: 1em; }
.reader .b-bars .goal { left: calc(7.2em + 8px + (100% - 7.2em - 8px - 3.4em) * var(--g) / 100); }
.reader .b-bars .goal span { font-size: .75em; top: -26px; }
.reader .b-bars .chart { padding-top: 18px; }
.reader .b-gauge .ring { width: 200px; height: 200px; }
.reader .b-gauge .r-num b { font-size: 2.4em; }
.reader .b-gauge .r-num span { font-size: .8em; }
.reader .b-gauge .g-label, .reader .b-gauge .g-goal { font-size: 1.05em; }
.reader .b-gauge .g-sub { font-size: .9em; }
.reader .b-contacts { padding: 18px; border-radius: 18px; gap: 12px; }
.reader .b-contacts .ct { font-size: 1.2em; }
.reader .b-contacts .lab { font-size: .9em; }
.reader .b-contacts .num { font-size: 1.5em; }
.reader .b-contacts a.num { color: var(--teal-d); text-decoration: underline; text-underline-offset: 4px; }
.reader .b-link a { font-size: 1em; padding: 12px 20px; }
.reader .b-links ul { font-size: 1em; }
.reader .b-qr { display: none; }
.reader .b-circles .vw { width: auto; height: auto; display: flex; flex-direction: column; gap: 10px; }
.reader .b-circles .cir { position: static; width: auto; height: auto; border-radius: 18px; padding: 14px !important; font-size: 1em; mix-blend-mode: normal; background: var(--pale); }
.reader a.tel { color: var(--teal-d); font-weight: 800; white-space: nowrap; }

/* ------------------------------------------------------------------ animation */

.anim .b, .anim .it { opacity: 0; }
.anim .b.in { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
.anim .b.in .it { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 120ms + var(--j, 0) * 130ms); }
.anim .b-heading.in { animation: none; opacity: 1; }
.anim .b-heading .w { display: inline-block; opacity: 0; }
.anim .b-heading.in .w { animation: word .8s var(--ease) both; animation-delay: calc(var(--d, 0ms) + var(--w) * 55ms); }
.anim .b-image.in { animation: zoomIn 1.3s var(--ease) both; animation-delay: var(--d, 0ms); }
.anim .b-image.v-kenburns.in img { animation: kenburns 24s ease-out both; }
.anim .b-gallery.in figure { animation: photoIn 1s var(--ease) both; animation-delay: calc(var(--d, 0ms) + var(--j, 0) * 140ms); }
.anim .b-gallery figure { opacity: 0; }
.anim .b-bars .fill { width: 0; transition: width 1.4s var(--ease); transition-delay: calc(var(--d, 0ms) + 200ms + var(--j, 0) * 110ms); }
.anim .b-bars.in .fill { width: calc(var(--v) * 1%); }
.anim .b-bars .val { opacity: 0; transition: opacity .5s, left 1.4s var(--ease); left: 14px; transition-delay: calc(var(--d, 0ms) + 500ms + var(--j, 0) * 110ms); }
.anim .b-bars.in .val { opacity: 1; left: calc(var(--v) * 1% + 14px); }
.anim .b-bars .goal { opacity: 0; transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease), opacity .3s; transition-delay: calc(var(--d, 0ms) + 1800ms); }
.anim .b-bars.in .goal { opacity: 1; transform: none; }
.anim .b-gauge .r-fg { transition: stroke-dashoffset 2s var(--ease); transition-delay: calc(var(--d, 0ms) + 250ms); }
.anim .b-flow .arrow path, .anim .b-tree svg.lines path { stroke-dashoffset: var(--len, 300); stroke-dasharray: var(--len, 300); transition: stroke-dashoffset .8s var(--ease); }
.anim .b-flow.in .arrow path, .anim .b-tree.in svg.lines path { stroke-dashoffset: 0; }
.anim .b-flow.in .arrow path { transition-delay: calc(var(--d, 0ms) + 380ms + var(--j, 0) * 520ms); }
.anim .b-flow.in .node { animation-delay: calc(var(--d, 0ms) + var(--j, 0) * 520ms); }
.anim .b-tree.in .t-box { animation: skPop .7s var(--ease) both; animation-delay: calc(var(--d, 0ms) + var(--j, 0) * 420ms); }
.anim .b-tree .t-box { opacity: 0; }
.anim .b-tree.in svg.lines path { transition-delay: calc(var(--d, 0ms) + 250ms + var(--j, 0) * 420ms); }
.anim .b-circles.in .cir { animation: bubble 1s var(--ease) both; animation-delay: calc(var(--d, 0ms) + var(--j, 0) * 260ms); }
.anim .b-circles .cir { opacity: 0; }
.anim .b-qr.in { animation: skPop .8s var(--ease) both; animation-delay: var(--d, 0ms); }
.anim .disc { animation: discIn 1.2s var(--ease) both; }
.anim.L-title .bg { animation: drift 30s ease-in-out infinite alternate; }

.stat .s-val, .r-num b { display: inline-block; }

@keyframes rise { from { opacity: 0; transform: translateY(36px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes word { from { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(1.06); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes photoIn { from { opacity: 0; transform: scale(.9) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes skPop { from { opacity: 0; transform: scale(.85); } 60% { opacity: 1; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes bubble { from { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes discIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, 1%); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* slide-to-slide transition */
.slide-layer.enter { animation: layerIn .9s var(--ease) both; }
.slide-layer.leave { animation: layerOut .7s var(--ease) both; pointer-events: none; }
.slide-layer.back.enter { animation-name: layerInBack; }
.slide-layer.back.leave { animation-name: layerOutBack; }
@keyframes layerIn { from { opacity: 0; transform: translateX(4%) scale(.98); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes layerOut { from { opacity: 1; } to { opacity: 0; transform: translateX(-3%) scale(1.02); filter: blur(10px); } }
@keyframes layerInBack { from { opacity: 0; transform: translateX(-4%) scale(.98); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes layerOutBack { from { opacity: 1; } to { opacity: 0; transform: translateX(3%) scale(1.02); filter: blur(10px); } }

.static .b, .static .it, .static .w, .static figure, .static .t-box, .static .cir { opacity: 1 !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .anim .b, .anim .it, .anim .w, .anim figure, .anim .t-box, .anim .cir { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .anim.L-title .bg { animation: none; }
}

/* ------------------------------------------------------------------ extras */
.stage.L-plain .aside, .stage.L-side .aside { right: 110px; width: 600px; top: 250px; bottom: 80px; justify-content: flex-start; }
.stage.L-plain.has-aside .main, .stage.L-side.has-aside .main { right: 760px; }
.stage.L-plain.has-aside .main > .b-heading, .stage.L-side.has-aside .main > .b-heading { margin-right: -650px; }
.stage.centered .main { justify-content: center; align-items: center; text-align: center; }
.reader.centered .main { text-align: center; align-items: center; }

.b-timer { display: flex; align-items: center; gap: 40px; }
.b-timer .tm-ring { position: relative; width: 260px; height: 260px; }
.b-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.b-timer .tm-bg { fill: none; stroke: var(--pale); stroke-width: 18; }
.b-timer .tm-fg { fill: none; stroke: var(--teal); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.b-timer .tm-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 70px; color: var(--teal-d); font-variant-numeric: tabular-nums; }
.b-timer.done .tm-num { color: var(--red); animation: pulse 1s ease-in-out infinite; }
.b-timer .tm-lab { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--teal-d); }
.reader .b-timer .tm-ring { width: 90px; height: 90px; }
.reader .b-timer .tm-num { font-size: 1.3em; }
.reader .b-timer .tm-lab { font-size: 1.1em; }
.reader .b-timer { gap: 14px; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* Keep the heading at the top and centre the rest of the slide's content in the space below it. */
.stage.L-side .main > .b-heading:first-child + .b, .stage.L-plain .main > .b-heading:first-child + .b, .stage.L-poster .main > .b-heading:first-child + .b { margin-top: auto; }
.stage.L-side .main > .b:last-child, .stage.L-plain .main > .b:last-child, .stage.L-poster .main > .b:last-child { margin-bottom: auto; }
/* Clear the flower arc in the top-left corner of the tapa-strip layout. */
.stage.L-side .main > .b-heading:first-child { padding-left: 120px; margin-top: 20px; }
.b-cards.v-solid .card { padding: 30px 44px; }
.stage .b-cards.v-solid .card .c-title { font-size: 40px; }
.stage .b-cards.v-solid .card .c-body { font-size: 34px; }
/* On phones the goal line becomes a label above the bars. */
.reader .b-bars .goal { position: static; order: -1; width: auto; height: auto; border: 0; opacity: 1 !important; transform: none !important; }
.reader .b-bars .goal span { position: static; display: inline-block; width: auto; background: var(--peach); color: var(--red); padding: 2px 12px; border-radius: 999px; font-size: .85em; }
.reader .b-bars .chart { padding-top: 0; }
.reader .b-bars .track { margin-right: 3.2em; }
