/* GreenArc ClimateCheck — advert page.
   IBM Design Language, adapted for the web:
   - 2x Grid: 16 / 8 / 4 columns, 32px gutters, 8px mini unit, spacing 8·16·24·32·48·64·80·96.
   - Colour: neutrals draw, one accent (Green) gives purpose. Fields: Gray 100, Gray 10, White, Green.
   - Type: IBM Plex Sans / Mono, left aligned, light for large sizes.
   - Motion: Carbon easing, strokes draw on, colour changes swatch to swatch, one axis at a time.
   No Carbon components: everything here is plain HTML, CSS and inline SVG. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }

:root {
  --white: #ffffff;
  --gray-10: #f4f4f4; --gray-20: #e0e0e0; --gray-30: #c6c6c6; --gray-40: #a8a8a8; --gray-50: #8d8d8d;
  --gray-60: #6f6f6f; --gray-70: #525252; --gray-80: #393939; --gray-90: #262626; --gray-100: #161616;
  --green-10: #defbe6; --green-20: #a7f0ba; --green-30: #6fdc8c; --green-40: #42be65; --green-50: #24a148;
  --green-60: #198038; --green-70: #0e6027; --green-80: #044317;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, monospace;

  --s-01: 2px; --s-02: 4px; --s-03: 8px; --s-04: 12px; --s-05: 16px; --s-06: 24px; --s-07: 32px;
  --s-08: 40px; --s-09: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px; --s-13: 160px;

  --ease-standard: cubic-bezier(0.4, 0.14, 0.3, 1);
  --ease-entrance: cubic-bezier(0, 0, 0.3, 1);
  --ease-productive: cubic-bezier(0.2, 0, 0.38, 0.9);
  --header: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 24px; color: var(--gray-100); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; overflow: visible; }
svg text { font-family: var(--sans); }
.mono, svg .mono, svg .mono text { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); column-gap: 32px;
  width: 100%; max-width: 1584px; margin-inline: auto; padding-inline: 32px;
}
.col-full   { grid-column: 1 / -1; }
.col-head   { grid-column: 1 / span 10; }
.col-lead   { grid-column: 1 / span 7; }
.col-text   { grid-column: 1 / span 5; }
.col-stage  { grid-column: 7 / span 10; }
.col-wide   { grid-column: 6 / span 11; }
.col-half-l { grid-column: 1 / span 8; }
.col-half-r { grid-column: 9 / span 8; }
.col-third  { grid-column: span 5; }
.col-quarter { grid-column: span 4; }
.col-hero-text  { grid-column: 1 / span 7; }
.col-hero-stage { grid-column: 9 / span 8; }

@media (max-width: 1055px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .col-head, .col-lead, .col-text, .col-stage, .col-wide, .col-half-l, .col-half-r,
  .col-hero-text, .col-hero-stage { grid-column: 1 / -1; }
  .col-third { grid-column: span 8; }
  .col-quarter { grid-column: span 4; }
}
@media (max-width: 671px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; padding-inline: 16px; }
  .col-quarter { grid-column: span 4; }
}

/* ---------- fields ---------- */
.field-dark  { background: var(--gray-100); color: var(--white); }
.field-light { background: var(--gray-10); color: var(--gray-100); }
.field-white { background: var(--white); color: var(--gray-100); }
.field-green { background: var(--green-60); color: var(--white); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 14px; line-height: 20px; letter-spacing: 0.16px; color: var(--green-60); margin-bottom: var(--s-06); display: flex; gap: var(--s-05); }
.field-dark .eyebrow { color: var(--green-40); }
.field-green .eyebrow { color: var(--white); }
.display { font-weight: 300; font-size: clamp(42px, 2.2rem + 3.4vw, 92px); line-height: 1.08; letter-spacing: -0.01em; }
.h2 { font-weight: 300; font-size: clamp(32px, 1.6rem + 1.6vw, 54px); line-height: 1.14; letter-spacing: -0.005em; }
.h3 { font-weight: 400; font-size: 20px; line-height: 28px; }
.lead { font-weight: 300; font-size: clamp(18px, 1rem + 0.5vw, 24px); line-height: 1.38; max-width: 40em; }
.body { font-size: 16px; line-height: 24px; max-width: 36em; }
.muted { color: var(--gray-70); }
.field-dark .muted { color: var(--gray-30); }
.field-green .muted { color: var(--green-10); }
.label { font-size: 12px; line-height: 16px; letter-spacing: 0.32px; }
.accent { color: var(--green-60); }
.field-dark .accent { color: var(--green-40); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--header);
  background: var(--gray-100); color: var(--white); border-bottom: 1px solid var(--gray-80);
}
.site-header__inner { display: flex; align-items: center; height: 100%; max-width: 1584px; margin-inline: auto; padding-left: 16px; }
.brand { display: flex; align-items: center; gap: var(--s-03); text-decoration: none; font-size: 14px; letter-spacing: 0.1px; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; }
.brand b { font-weight: 600; }
.nav { display: flex; margin-left: var(--s-07); height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 var(--s-05); font-size: 14px; color: var(--gray-30); text-decoration: none; height: 100%; border-bottom: 2px solid transparent; transition: color 110ms var(--ease-productive), border-color 110ms var(--ease-productive); }
.nav a:hover, .nav a.is-current { color: var(--white); border-bottom-color: var(--green-40); }
.header-cta { margin-left: auto; height: 100%; display: flex; align-items: center; padding: 0 var(--s-07) 0 var(--s-05); background: var(--green-60); color: var(--white); font-size: 14px; text-decoration: none; transition: background 110ms var(--ease-productive); }
.header-cta:hover { background: var(--green-70); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--green-40); transform-origin: left; transform: scaleX(0); }
@media (max-width: 1055px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 1px; margin-top: var(--s-09); }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-09); min-height: 48px; padding: 0 var(--s-05); font-size: 16px; text-decoration: none; transition: background 110ms var(--ease-productive), color 110ms var(--ease-productive); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--green-60); color: var(--white); }
.btn--primary:hover { background: var(--green-70); }
.btn--ghost { color: var(--green-40); padding-left: var(--s-05); }
.btn--ghost:hover { background: var(--gray-90); }
.field-light .btn--ghost, .field-white .btn--ghost { color: var(--green-60); }
.btn--inverse { background: var(--white); color: var(--gray-100); }
.btn--inverse:hover { background: var(--gray-10); }
.btn--outline { color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.btn--outline:hover { background: var(--green-70); }
:focus-visible { outline: 2px solid var(--green-40); outline-offset: 2px; }

/* ---------- sections ---------- */
.section { padding-block: var(--s-13) var(--s-12); }
.section--tight { padding-block: var(--s-12); }
.section-head { margin-bottom: var(--s-11); }
.section-head .lead { margin-top: var(--s-06); }

/* pinned scroll scenes: the section is tall, its stage sticks for the length of --len */
.pin-section { position: relative; height: var(--len, 400vh); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--header); }
.pin > .grid { align-items: center; row-gap: var(--s-07); }
.pin .h2 { font-size: clamp(28px, 1.4rem + 1.3vw, 46px); }
.stage svg { width: 100%; height: auto; max-height: calc(100svh - var(--header) - 64px); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding-top: calc(var(--header) + var(--s-12)); padding-bottom: var(--s-10); display: flex; flex-direction: column; justify-content: space-between; }
.hero .grid { align-items: end; row-gap: var(--s-09); }
.hero .lead { margin-top: var(--s-07); color: var(--gray-30); }
.hero-meter { margin-top: var(--s-10); }
.hero-meter__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-05); margin-bottom: var(--s-03); }
.hero-meter__value { font-size: 32px; line-height: 40px; font-weight: 300; }
.hero-meter__value b { font-weight: 300; color: var(--green-40); }

/* the 1000-point meter, used in hero and problem section */
.meter { position: relative; height: 32px; background: var(--gray-90); }
.field-light .meter { background: var(--gray-20); }
.meter__fill { position: absolute; inset: 0 auto 0 0; background: var(--green-40); transform-origin: left; }
.meter__mark { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--white); }
.field-light .meter__mark { background: var(--gray-100); }
.meter__scale { display: flex; justify-content: space-between; margin-top: var(--s-03); color: var(--gray-50); }

/* ---------- problem ---------- */
.blocks { display: flex; gap: 2px; height: 96px; margin-top: var(--s-07); }
.blocks__seg { position: relative; background: var(--gray-100); color: var(--white); padding: var(--s-03) var(--s-04); transform-origin: left; overflow: hidden; }
.blocks__seg:nth-child(2) { background: var(--gray-80); }
.blocks__seg:nth-child(3) { background: var(--gray-60); }
.blocks__seg:nth-child(4) { background: var(--gray-70); }
.blocks__seg b { display: block; font-family: var(--mono); font-weight: 400; font-size: 14px; }
.blocks__seg span { display: block; font-size: 12px; line-height: 16px; color: var(--gray-30); margin-top: var(--s-02); }
.blocks__seg em { position: absolute; left: var(--s-04); bottom: var(--s-03); font-style: normal; font-size: 24px; font-weight: 300; }
.threshold { position: relative; height: 48px; }
.threshold__line { position: absolute; left: 85%; top: -104px; height: 152px; width: 2px; background: var(--green-60); transform-origin: top; }
.threshold__label { position: absolute; left: calc(85% + 12px); top: 16px; white-space: nowrap; }
.facts { margin-top: var(--s-12); row-gap: var(--s-09); }
.fact { border-top: 1px solid var(--gray-30); padding-top: var(--s-05); }
.fact__num { font-weight: 300; font-size: clamp(42px, 2rem + 2vw, 76px); line-height: 1; letter-spacing: -0.01em; }
.fact__num small { font-size: 0.4em; margin-left: 4px; }
.fact p { margin-top: var(--s-05); max-width: 22em; }
@media (max-width: 671px) {
  .blocks { height: 120px; }
  .blocks__seg span { display: none; }
}

/* ---------- steps (pinned list on the left of a stage) ---------- */
.steps { margin-top: var(--s-07); counter-reset: step; }
.step { position: relative; padding: var(--s-04) 0 var(--s-04) var(--s-06); border-left: 1px solid var(--gray-80); color: var(--gray-50); transition: color 240ms var(--ease-standard); }
.field-white .step, .field-light .step { border-left-color: var(--gray-30); color: var(--gray-60); }
.step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--green-40); transform: scaleY(0); transform-origin: top; transition: transform 240ms var(--ease-entrance); }
.field-white .step::before, .field-light .step::before { background: var(--green-60); }
.step.is-active { color: var(--white); }
.field-white .step.is-active, .field-light .step.is-active { color: var(--gray-100); }
.step.is-active::before { transform: scaleY(1); }
.step__title { font-size: 16px; line-height: 24px; font-weight: 600; display: flex; gap: var(--s-04); }
.step__title::before { content: attr(data-n); font-family: var(--mono); font-weight: 400; color: inherit; }
.step__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-standard); font-size: 14px; line-height: 20px; }
.step__desc > span { overflow: hidden; }
.step.is-active .step__desc { grid-template-rows: 1fr; }
.step.is-active .step__desc > span { padding-top: var(--s-02); }
.note { margin-top: var(--s-07); padding-left: var(--s-05); border-left: 1px solid currentColor; font-size: 14px; line-height: 20px; max-width: 30em; }
@media (max-width: 1055px) {
  .pin .col-text .lead, .pin .col-text .note { display: none; }
  .pin .step:not(.is-active) { display: none; }
  .pin .steps { margin-top: var(--s-05); }
}

/* ---------- graph legend / counters ---------- */
.counter-big { font-weight: 300; font-size: clamp(42px, 2rem + 2.4vw, 84px); line-height: 1; letter-spacing: -0.01em; margin-top: var(--s-07); }
.counter-big small { font-size: 16px; letter-spacing: 0; display: block; margin-top: var(--s-03); font-weight: 400; }

/* ---------- points scene ---------- */
.points-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-07); }
.points-stats .label { color: var(--gray-30); display: flex; align-items: center; gap: var(--s-03); }
.points-stats .num { font-weight: 300; font-size: clamp(32px, 1.6rem + 1.6vw, 60px); line-height: 1.1; margin-top: var(--s-03); font-variant-numeric: tabular-nums; }
.swatch { width: 12px; height: 12px; flex: none; }
.swatch--secured { background: var(--green-40); }
.swatch--possible { background: repeating-linear-gradient(135deg, var(--green-40) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1px var(--green-40); }
.swatch--lost { background: var(--gray-60); }
.track { position: relative; height: 64px; margin-top: var(--s-09); background: var(--gray-90); }
.track__seg { position: absolute; top: 0; bottom: 0; }
.track__seg--secured { background: var(--green-40); }
.track__seg--possible { background: repeating-linear-gradient(135deg, var(--green-40) 0 2px, transparent 2px 8px); box-shadow: inset 0 0 0 1px var(--green-40); }
.track__seg--lost { background: var(--gray-60); }
.track__mark { position: absolute; left: 85%; top: -16px; bottom: -16px; width: 2px; background: var(--white); }
.track__mark span { position: absolute; left: 8px; top: -24px; white-space: nowrap; font-size: 12px; line-height: 16px; }
.track-scale { display: flex; justify-content: space-between; margin-top: var(--s-05); color: var(--gray-50); font-family: var(--mono); font-size: 12px; }
.next { position: relative; margin-top: var(--s-09); min-height: 200px; }
.next__title { color: var(--gray-30); margin-bottom: var(--s-04); }
.next__list { position: absolute; left: 0; right: 0; top: 32px; clip-path: inset(0 100% 0 0); transition: clip-path 400ms var(--ease-standard); }
.next__list.is-active { clip-path: inset(0 0 0 0); transition-delay: 120ms; }
.next__row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-06); padding: var(--s-04) 0; border-top: 1px solid var(--gray-80); align-items: baseline; }
.next__row .pts { font-family: var(--mono); color: var(--green-40); }
.next__row .ph { color: var(--gray-40); font-size: 14px; min-width: 9em; }
.next__row--lost { color: var(--gray-40); }
.next__row--lost .pts { color: var(--gray-40); text-decoration: line-through; }
.next__row--goal { font-size: 20px; line-height: 28px; }
@media (max-width: 671px) {
  .points-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-05); }
  .next__row .ph { display: none; }
}

/* ---------- CO2 scene ---------- */
.swaps { margin-top: var(--s-07); }
.swap { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-04); padding: var(--s-04) 0; border-top: 1px solid var(--gray-30); color: var(--gray-60); transition: color 240ms var(--ease-standard); font-size: 14px; line-height: 20px; }
.swap b { font-weight: 600; display: block; color: inherit; }
.swap .delta { font-family: var(--mono); }
.swap__box { width: 16px; height: 16px; margin-top: 2px; box-shadow: inset 0 0 0 1px currentColor; position: relative; }
.swap__box::after { content: ""; position: absolute; inset: 0; background: var(--green-60); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-entrance); }
.swap.is-active { color: var(--gray-100); }
.swap.is-active .swap__box::after { transform: scaleX(1); }
.readout { margin-top: var(--s-07); display: grid; grid-template-columns: repeat(2, auto); justify-content: start; column-gap: var(--s-09); }
.readout .num { font-weight: 300; font-size: clamp(28px, 1.4rem + 1.2vw, 48px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.readout .label { color: var(--gray-70); }

/* ---------- lists in rows (audiences, pilot) ---------- */
.rows li { border-top: 1px solid var(--gray-30); padding: var(--s-05) 0 var(--s-06); display: grid; grid-template-columns: 40px 1fr; gap: var(--s-04); }
.rows li::before { content: attr(data-n); font-family: var(--mono); font-size: 14px; color: var(--green-60); padding-top: 2px; }
.rows b { font-weight: 600; display: block; }
.audience { padding-top: var(--s-06); }
.audience svg { width: 80px; height: 80px; margin-bottom: var(--s-07); }
.audience .h3 { margin-bottom: var(--s-07); font-size: 28px; line-height: 36px; font-weight: 300; }
@media (max-width: 1055px) { .audience + .audience { margin-top: var(--s-11); } }

.pilot-step { border-top: 1px solid var(--gray-100); padding-top: var(--s-05); }
.pilot-step__n { font-family: var(--mono); font-size: 14px; color: var(--green-60); }
.pilot-step .h3 { margin-top: var(--s-09); font-size: 24px; line-height: 32px; font-weight: 300; }
.pilot-step p.muted { margin-top: var(--s-05); }
@media (max-width: 1055px) { .pilot-step { margin-bottom: var(--s-09); } }

.cta { padding-block: var(--s-13); }
.cta .display { max-width: 12em; }

.facts-dark .fact { border-top-color: var(--gray-80); }
.facts-dark .fact p { color: var(--gray-30); }

/* ---------- footer ---------- */
.site-footer { background: var(--gray-100); color: var(--gray-40); padding-block: var(--s-10); font-size: 12px; line-height: 16px; }
.site-footer .grid { row-gap: var(--s-06); }
.site-footer p { max-width: 48em; }

/* ---------- reveal on enter (time-based, for plain text blocks) ---------- */
.reveal { clip-path: inset(0 0 100% 0); transform: translateY(16px); transition: clip-path 700ms var(--ease-entrance), transform 700ms var(--ease-entrance); }
.reveal.is-in { clip-path: inset(0 0 -8px 0); transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { clip-path: none; transform: none; transition: none; }
  .step, .step::before, .step__desc, .swap, .swap__box::after, .next__list { transition: none !important; }
}

/* hero legend */
.hero-legend { margin-top: var(--s-06); display: grid; gap: var(--s-03); color: var(--gray-30); }
.hero-legend b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: var(--s-03); background: var(--green-40); color: var(--gray-100); font-weight: 600; }
@media (max-width: 1055px) {
  .pin .col-text .body { display: none; }
  .pin .counter-big { margin-top: var(--s-05); font-size: 42px; }
  .pin .counter-big small { display: none; }
}
.col-text .h2 { font-size: clamp(28px, 1.4rem + 1.3vw, 46px); }
@media (max-width: 671px) {
  .threshold__label { left: auto; right: calc(15% + 12px); white-space: normal; text-align: right; width: 60%; }
}
body { overflow-x: clip; }
