/* ===========================================================================
   Canadian Climate Values
   Direction: a plain-spoken public notice. One typeface (JetBrains Mono),
   Canada red on black and warm white, square corners, hard rules, no
   gradients, glows or grain. The billboard images carry the colour; the page
   around them stays blunt and readable.
   =========================================================================== */

/* JetBrains Mono, self-hosted (SIL OFL, fonts/OFL-jetbrains-mono.txt): no font
   CDN call, so visitors' IPs never leave our origin. */
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2?v=14425ba9c6") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-normal.woff2?v=d0d4e81880") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-800-normal.woff2?v=237d0cbcf1") format("woff2"); }
/* Glacial Indifference (SIL OFL, fonts/OFL-glacial-indifference.txt): the
   masthead only. The face the Value(s) billboard was set in. */
@font-face { font-family: "Glacial Indifference"; font-weight: 400; font-display: swap; src: url("fonts/glacial-indifference-400.woff2?v=0b4dff4ddc") format("woff2"); }

:root {
  /* Colour. Black matches the photos' black bottoms, so images melt in. */
  --bg:       #000;
  --ink:      #f5f2ec;   /* warm white, like paper stock (19:1 on black) */
  --muted:    #b3ada3;   /* secondary text (9.6:1 on black) */
  --line:     #2e2c29;   /* rules on black */
  --red:      #d80621;   /* Canada red: fills (white on it: 5.3:1) */
  --red-text: #ff5446;   /* red for TEXT on black (6.2:1); --red itself is too dark for small type */
  --paper:    #f5f2ec;   /* fact cards */
  --paper-ink:#111;
  --yellow:   #ffde59;   /* focus rings only, echoing the billboard lettering */

  /* Type scale (mono reads large, so the body stays modest) */
  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0:  clamp(.94rem, .9rem + .2vw, 1.04rem);
  --step-1:  clamp(1.1rem, 1rem + .45vw, 1.3rem);
  --step-2:  clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.4rem + 2.3vw, 3.2rem);
  --step-4:  clamp(2.3rem, 1.5rem + 4vw, 5rem);

  --gutter: 16px;
  --measure: 64ch;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 40rem) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.7 "JetBrains Mono", ui-monospace, monospace;
  font-variant-ligatures: none;   /* no code ligatures in prose */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
p { margin: 0 0 1.1em; }
strong { font-weight: 800; color: inherit; }
cite { font-style: normal; font-weight: 700; }
q { quotes: "\201C" "\201D"; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cite-link { text-decoration: underline dotted; }

h2 {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   Hero: the billboard, unframed
   --------------------------------------------------------------------------- */
/* Full bleed at every width. Tall enough on phones for the headline to sit in
   the sky; the photo is cropped from the sides (object-fit), never squashed. */
.hero {
  position: relative;
  overflow: hidden;   /* the photo drifts down on scroll; clip what slides past */
  height: clamp(24rem, 52.5vw, 92vh);   /* 52.5vw = the photo's own 2400x1260 ratio */
  /* With the letter tool open in the hills (2026-10-30), keep its first
     question on the first screen of a short laptop (1440x900: answer was at
     884px). The photo is bottom-anchored (object-position below), so a
     shorter hero only trims SKY: the hills, and the tool's place in them,
     stay put. 22rem = what the tool needs above the fold. Never below 36vw,
     though: the masthead scales with width, and on a 1366x768 laptop the
     tool otherwise covered the foot of "Value(s)". */
  height: clamp(24rem, max(36vw, min(52.5vw, 100vh - 22rem)), 92vh);
  background: #000;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero picture { display: block; height: 100%; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* Masthead: set in Glacial Indifference, as on the billboard.
   "Canadian Climate" is a small red flag tab; "Value(s)" is big and all
   white. No drop shadow. */
.masthead {
  position: absolute;
  left: 0; right: 0; top: clamp(1.5rem, 5vw, 4.5rem);
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter);
  text-align: center;
  font-family: "Glacial Indifference", "Century Gothic", sans-serif;
  font-weight: 400;
  line-height: 1;
  will-change: transform;
}
.masthead-kicker {
  display: inline-block;
  margin-bottom: .55em;
  padding: .5em .9em .45em;
  background: var(--red);
  color: #fff;
  font-size: clamp(.85rem, .6rem + 1.2vw, 1.75rem);
  letter-spacing: .24em;
  text-transform: uppercase;
  /* the letter-spacing trails the last letter; pull the box back to centre */
  padding-right: calc(.9em - .24em);
}
.masthead-word {
  display: block;
  color: #fff;
  font-size: clamp(4.2rem, 1rem + 14vw, 14rem);
  /* Canva renders Glacial Indifference a little heavier than the web font;
     a hairline stroke in the same colour matches the billboard's weight */
  -webkit-text-stroke: .018em #fff;
}

/* ---------------------------------------------------------------------------
   Lede
   --------------------------------------------------------------------------- */
.lede {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
}
.lede h2 { font-size: var(--step-4); max-width: 14ch; }
/* red rule under the lede headline: the flag-red stripe at the top */
.lede h2::after { content: ""; display: block; width: 3.5rem; height: 6px; margin-top: 1.4rem; background: var(--red); }
.lede-body { max-width: var(--measure); }
.sub { font-size: var(--step-1); line-height: 1.6; }
@media (min-width: 64rem) {
  .lede { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
  .lede h2 { margin: 0; }
}

/* ---------------------------------------------------------------------------
   Buttons: one call to action, styled one way
   --------------------------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: .85em 1.4em;
  border: 2px solid transparent;
  font: 800 var(--step-0)/1.1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--red); }
/* JS adds an arrow that flips when the letter panel is open */
.js [data-take-action]::after { content: "\2193"; font-weight: 800; }
.btn-primary[aria-expanded="true"] { background: #fff; color: var(--red); }
.btn-primary[aria-expanded="true"]::after { content: "\2191"; }
.btn-sm { min-height: 46px; padding: .6em 1.1em; font-size: var(--step--1); }

/* ---------------------------------------------------------------------------
   Chapters: numbered sections, heading left, body right on wide screens
   --------------------------------------------------------------------------- */
.chapter {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
/* Where the page is black and where it is white, and why:
   - black under the hero photo and the lede: the photo's bottom edge is pure
     black, so the lede is what lets it melt into the page (the dusk opening);
   - white for the chapters: the long reading, dark on white, and with the
     paper fact bands it makes the body of the page red and white;
   - the red closing band is the one ask; the black footer bookends it.
   The chapters flip the colour tokens locally, so everything inside them
   (poll table, rules, red numerals) follows without its own overrides. */
.chapter {
  --ink: var(--paper-ink);
  --muted: #5a564f;      /* 7:1 on white */
  --line: #d9d3c8;
  --red-text: var(--red); /* the deeper red reads fine on white (5.3:1) */
  color: var(--ink);
  background: #fff;
  /* full-bleed background while the content keeps its 76rem column */
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
.chapter :focus-visible { outline-color: var(--paper-ink); }  /* yellow ring vanishes on white */
.chapter-num {
  display: block;
  margin-bottom: 1rem;
  color: var(--red-text);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: .12em;
}
.chapter-num::after { content: " \2014\2014\2014"; letter-spacing: 0; }
.chapter-body { max-width: var(--measure); }
.chapter-body > :last-child { margin-bottom: 0; }
@media (min-width: 64rem) {
  .chapter { display: grid; grid-template-columns: 5fr 7fr; column-gap: 4rem; align-items: start; }
  .chapter-head h2 { margin: 0; }
  .chapter-body { grid-column: 2; }
  .chapter > .action-panel { grid-column: 2; }
}

/* Polling record, set as a table: year, finding, source. (Same rhythm as the
   .ca page's seven-values list, which this replaces on the .com.) */
.polls {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
}
.polls li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: .75rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.poll-year { color: var(--red-text); font-weight: 800; grid-row: span 2; line-height: 1.6; }
.poll-find { font-size: var(--step-1); line-height: 1.4; }
.poll-find strong { color: var(--ink); }
.poll-src { color: var(--muted); font-size: var(--step--1); grid-column: 2; margin-top: .3rem; }
@media (min-width: 64rem) {
  .polls li { grid-template-columns: 6rem 1fr 18rem; align-items: baseline; column-gap: 2rem; }
  .poll-year { grid-row: auto; }
  .poll-src { grid-column: auto; margin-top: 0; }
}

/* ---------------------------------------------------------------------------
   Image breaks: full bleed, no frame
   --------------------------------------------------------------------------- */
.break { margin: 0 auto; max-width: 1600px; }
.break picture { display: block; }
.break img { display: block; width: 100%; height: auto; }
@media (min-width: 64rem) {
  /* keep a break from swallowing the whole screen; the lettering is at the top */
  .break img { max-height: 86vh; object-fit: cover; object-position: top; }
}

/* ---------------------------------------------------------------------------
   Pull-quote
   --------------------------------------------------------------------------- */
.pullquote {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem);
}
.pullquote blockquote {
  margin: 0;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 6px solid var(--red);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -.02em;
  max-width: 32ch;
}
.pullquote figcaption {
  margin-top: 1rem;
  padding-left: calc(clamp(1rem, 3vw, 2rem) + 6px);
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pullquote figcaption::before { content: "\2014 "; }

/* ---------------------------------------------------------------------------
   Factoid bands: full-width paper strips with a red top edge, like a
   newspaper data box. Facts sit in columns separated by hard rules, so they
   belong to the page instead of floating on it.
   --------------------------------------------------------------------------- */
.facts {
  display: grid;
  gap: 2.5rem var(--gutter);
  margin: 0;
  /* full bleed band, content held to the same 76rem column as the chapters */
  padding: clamp(2.5rem, 6vw, 4rem) max(var(--gutter), calc((100% - 76rem) / 2 + var(--gutter)));
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 10px solid var(--red);
}
@media (min-width: 48rem) { .facts { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
/* two bands in a row read as one strip */
.facts + .facts { border-top: 0; padding-top: 0; }
.facts--single { grid-template-columns: 1fr !important; }
/* a lone figure sits centred in the band, not against its left edge (operator 2026-10-29) */
.facts--single .fact { max-width: 46rem; width: 100%; justify-self: center; }
/* breathing room before the next black section */
.facts + .break, .facts + .chapter, .facts + .closing { margin-top: 0; }

.fact {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  border-top: 3px solid var(--paper-ink);
  scroll-margin-top: 2rem;
}
.fact:target { outline: 4px solid var(--red); outline-offset: 8px; }
.fact-num {
  margin: 0 0 .75rem;
  color: var(--red);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -.05em;
}
.fact-unit { font-size: .38em; letter-spacing: -.01em; color: var(--paper-ink); }
.fact-text { margin-bottom: 1.25rem; max-width: 52ch; }
.fact-source {
  margin-top: auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap;
  padding-top: .9rem;
  border-top: 1px solid #cfc9be;
  font-size: var(--step--1);
}
/* plain-text citation: no outbound links */
.fact-cite { flex: 1 1 14rem; font-style: normal; color: #4a4741; line-height: 1.5; }

/* Comparison bars and the target gap, drawn flat */
.fact-viz { margin: 0 0 1.25rem; font-size: var(--step--1); }
.bar-row { display: grid; grid-template-columns: 4.5rem 1fr 3.5rem; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.bar { position: relative; height: 12px; background: #e3ded4; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--red); transform-origin: left; }
.bar-fill--ref { background: var(--paper-ink); }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.gap-track { position: relative; height: 14px; background: #e3ded4; }
.gap-track > span { position: absolute; top: 0; bottom: 0; }
.gap-achieved { left: 0; width: 42%; background: var(--red); transform-origin: left; }   /* 21 on a 0–50 scale */
.gap-missing { left: 42%; width: 38%; top: 6px !important; bottom: 6px !important; background: repeating-linear-gradient(90deg, var(--paper-ink) 0 6px, transparent 6px 10px); } /* 21 -> 40 */
.gap-target { left: 80%; width: 10%; background: var(--paper-ink); }                    /* 40 -> 45 */
.gap-ticks { position: relative; height: 1.5em; margin-top: .4rem; font-weight: 700; }
.tick { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.tick--now { left: 42%; color: var(--red); }
.tick--target { left: 85%; }

/* ---------------------------------------------------------------------------
   Share control (built by site.js): one small button, options slide out
   --------------------------------------------------------------------------- */
.share { position: relative; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.share-toggle {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 36px;
  padding: .3em .8em;
  border: 2px solid var(--paper-ink);
  background: transparent;
  color: var(--paper-ink);
  font: 800 var(--step--1)/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
.share-toggle:hover, .share-toggle[aria-expanded="true"] { background: var(--paper-ink); color: var(--paper); }
.share-toggle svg { width: 1.05em; height: 1.05em; }
.share-options { display: flex; gap: .3rem; margin: 0; padding: 0; list-style: none; order: -1; }
.share-options[hidden] { display: none; }
.share-options li { opacity: 0; transform: translateX(8px); animation: share-in .22s var(--ease) forwards; }
.share-options li:nth-child(2) { animation-delay: .03s; }
.share-options li:nth-child(3) { animation-delay: .06s; }
.share-options li:nth-child(4) { animation-delay: .09s; }
.share-options li:nth-child(5) { animation-delay: .12s; }
.share-options li:nth-child(6) { animation-delay: .15s; }
@keyframes share-in { to { opacity: 1; transform: none; } }
.share-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  background: var(--paper-ink);
  color: var(--paper);
  cursor: pointer;
}
.share-btn:hover { background: var(--red); color: #fff; }
.share-btn svg { width: 17px; height: 17px; }
@media (max-width: 30rem) {
  .share { flex: 1 1 auto; }
  /* options come after the toggle in the DOM; wrap below it so focus order matches */
  .share-options { order: 0; flex-basis: 100%; flex-wrap: wrap; justify-content: flex-end; }
}
.share-note {
  position: absolute; right: 0; bottom: calc(100% + .5rem);
  padding: .45em .8em;
  background: var(--paper-ink); color: var(--paper);
  font-size: var(--step--1); font-weight: 700;
  white-space: nowrap;
}
.share-note:empty { display: none; }

/* ---------------------------------------------------------------------------
   Closing ask: a solid red band
   --------------------------------------------------------------------------- */
.closing { background: var(--red); color: #fff; }
.closing-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
}
.closing h2 { font-size: var(--step-4); }
.closing p { font-size: var(--step-1); line-height: 1.6; max-width: 46ch; }
.closing .btn-primary { background: #fff; color: var(--red); }
.closing .btn-primary:hover, .closing .btn-primary[aria-expanded="true"] { background: #000; color: #fff; }
.closing a:hover { color: #000; }
.closing :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
footer {
  padding: 2rem var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}
footer p { margin: 0 auto; max-width: 60ch; }
footer .footer-org { margin-bottom: .75rem; color: var(--ink); }
footer a { color: var(--ink); }
.js body.has-bar footer { padding-bottom: calc(var(--bar-h) + 2.5rem); }

/* ---------------------------------------------------------------------------
   Sticky "write" bar (index only; shown by site.js)
   --------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  z-index: 50;
  left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom));
  background: #000;
  border-top: 2px solid var(--red);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s var(--ease), visibility 0s .25s;
}
.action-bar.is-shown { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
.action-bar .btn { width: min(100%, 28rem); }

/* ---------------------------------------------------------------------------
   Letter tool panel (Climate Budget iframe), opened inline by take-action.js
   --------------------------------------------------------------------------- */
/* No frame (2026-10-30, after beyondfossilfuels.ca): the panel is the page's
   own black, so the intro reads as part of the page and only the form is a
   card, marked by a red bar along its top. */
.action-panel {
  margin: 1.5rem 0 .5rem;
  background: var(--bg);
  scroll-margin-top: 1rem;
}
/* Letter tool width (2026-10-28): every panel is up to 56rem, wider than the
   text columns it opens under, so the tool's form has room. Under the hero it
   spans the whole lede grid (take-action.js puts it after .lede-body); under
   the closing it grows past the 52rem text column, centred on it. On phones
   both are simply the column width. */
.lede > .action-panel { grid-column: 1 / -1; width: 100%; max-width: 56rem; margin: 0; }
.closing .action-panel {
  --panel-w: min(56rem, calc(100vw - 2 * var(--gutter)));
  width: var(--panel-w);
  max-width: none;
  margin-left: calc((100% - var(--panel-w)) / 2);
}
/* Panel intro (2026-10-28): the tool's preamble, which the form-only embed
   leaves out (template#panel-intro in index.html). Narrow screens: a closed
   "Why write?" line above the tool. From 72rem: a column left of the tool,
   open, and the panel grows past the text column (up to 90rem) so the intro
   gets real room and the tool still keeps its 820px.
   Set to read calmly (operator: "room to breathe", not a wall of text): a
   plain sans like the tool's own (the site's mono made it three times the
   form's height), generous leading and paragraph gaps, short lines; each
   point a short heading with its detail below.
   On the page's own black, not a cream paper column (operator, 2026-10-30:
   the cream sidebar made the tool read as a box pasted onto the page). The
   page's tokens, so its contrast holds: ink 19:1, muted 9.6:1, red-text 6.2:1
   on black. */
.panel-body { background: var(--bg); }
.panel-intro {
  padding: .6rem 0 1.1rem;   /* on the page's black, so flush with its text edge */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 400 1rem/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.panel-intro summary {
  cursor: pointer;
  font: 800 var(--step--1)/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-text);   /* --red itself is too dark for small type on black */
}
/* Each point: its first sentence as a short heading, the rest below it. */
.intro-point { margin-top: 1.4em; max-width: 46ch; }
.intro-point h3 { margin: 0; font-weight: 650; font-size: 1.08rem; line-height: 1.35; color: var(--ink); }
.intro-point p { margin: .35em 0 0; color: var(--muted); }
@media (min-width: 72rem) {
  .panel-body {
    display: grid;
    grid-template-columns: clamp(22rem, 34%, 30rem) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);   /* the form card stands apart, as on BFF */
    align-items: start;
  }
  .panel-intro {
    position: sticky; top: 1rem;          /* stays beside a tall form */
    padding: 1.5rem 0 3rem;   /* flush with the page's text edge: no box to pad inside */
    border-bottom: 0;
    border-right: 0;   /* black meets the form's white: no rule needed */
    font-size: 1.05rem;
    line-height: 1.75;
  }
  /* a short red rule under the heading, like the page's own headings */
  .panel-intro summary { pointer-events: none; list-style: none; }
  .panel-intro summary::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: .9rem; background: var(--red); }
  .panel-intro summary::-webkit-details-marker { display: none; }
  .intro-point { margin-top: 1.75em; }
  .intro-point h3 { font-size: 1.15rem; }
  /* Both panels break out of their text column to the same width, centred. */
  .action-panel:has(.panel-body) {
    --panel-w: min(90rem, calc(100vw - 2 * var(--gutter)));
    width: var(--panel-w);
    max-width: none;
    margin-left: calc((100% - var(--panel-w)) / 2);
  }
  .lede > .action-panel:has(.panel-body) { margin-top: 0; margin-bottom: 0; }
}
/* Open on arrival (2026-10-30): the tool sits up in the hero's black hills.
   The photo's bottom ~18% is near-black (measured on hero-sky-2400.jpg), so
   the pull-up tracks the hero's own height: 52.5vw tall, so ~9.5vw of hills,
   with a floor for the 24rem phone hero. Above the hero (z-index) so the
   photo, drifting down on scroll, slides under the tool, not over it. */
.tool-home {
  position: relative; z-index: 1;
  max-width: 76rem;
  margin: calc(-1 * clamp(4rem, 9.5vw, 11rem)) auto 0;
  padding: 0 var(--gutter);
}
.tool-home > .action-panel { margin-top: 0; margin-bottom: 0; }
/* The "pivotal moment" lede above the open tool (2026-10-30): white on
   the hero's black hills, held to the measure so it reads as a lede, not a
   banner. Kept short so the form still starts near the fold on phones. */
.tool-lede { max-width: var(--measure); margin: 0 0 1.25rem; color: #fff; }
.tool-lede h2 { font-size: var(--step-3); margin: 0 0 .6rem; }
/* Body in the same system sans as the panel's "Why write?" column: mono set
   this paragraph two lines taller on a phone and pushed the form down. */
.tool-lede p { font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0 0 .6rem; }
.tool-lede .tool-lede-ask { font-weight: 700; margin-bottom: 0; }   /* keep the wide-screen centring margin-left */
.tool-home .cta-row { margin-top: 0; justify-content: center; }
/* both are display:flex above, which would beat the hidden attribute */
.tool-home .cta-row[hidden], .panel-close[hidden] { display: none; }
.action-panel:focus { outline: none; }
.action-panel:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem 0;   /* no frame now, so it lines up with the intro's text edge */
  background: #000;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.panel-close {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 36px;
  padding: .3em .8em;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font: 800 var(--step--1)/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  cursor: pointer;
}
.panel-close:hover { background: #fff; color: #000; }
.panel-close svg { width: .9em; height: .9em; }
.action-frame {
  display: block;
  width: 1px;            /* iOS iframe width bug: width:1px + min-width:100% */
  min-width: 100%;
  border: 0;
  border-top: 6px solid var(--red);   /* the form card's red bar, as on BFF */
  background: #fff;      /* the tool renders on light */
  transition: height .3s var(--ease);
}
.action-panel.is-open { animation: panel-in .25s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------------------
   Motion: a short rise on scroll, only where supported and wanted
   --------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; translate: 0 1rem; } }
@keyframes draw { from { scale: 0 1; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .lede h2 { animation: rise .6s var(--ease) .1s both; }
  .lede-body { animation: rise .6s var(--ease) .25s both; }
  @supports (animation-timeline: view()) {
    .chapter-head, .chapter-body, .fact, .pullquote blockquote, .values li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .gap-achieved, .bar-fill { animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .share-options li { opacity: 1; transform: none; }
  .action-bar { transform: none; opacity: 0; }
  .action-bar.is-shown { opacity: 1; }
}

/* ---------------------------------------------------------------------------
   Subpage (/write/)
   --------------------------------------------------------------------------- */
.page-write .lede { display: block; max-width: 58rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
.page-write .tool-wrap { max-width: 58rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-size: var(--step--1); }
.h2-like {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2-like::after { content: ""; display: block; width: 3.5rem; height: 6px; margin-top: 1.2rem; background: var(--red); }

/* Privacy page (site-com/privacy/): plain reading text under the write-page lede. */
.page-privacy .lede h2 { font-size: var(--step-1); margin: 2.25rem 0 .5rem; max-width: none; animation: none; }
/* section heads, not the lede headline: no red rule under each */
.page-privacy .lede h2::after { content: none; }
.page-privacy .lede p { max-width: var(--measure); line-height: 1.6; }
.page-privacy .lede a { color: inherit; }
footer .footer-links { margin-top: .75rem; font-size: var(--step--1); }
