/* The Good Ground landing page.
   Colours, type and spacing come from tokens.css (the brand's file, unchanged).
   Mobile first: the base rules are for a phone; wider screens add to them.
   Nothing here hides content unless main.js has added the "motion" class, so the
   page reads in full with scripts off or with "reduce motion" switched on. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: var(--text-body);
  font-size: 17px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.defs {
  position: absolute;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Links and focus ---------------------------------------------------------- */

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* On green a pasture link and its ring would vanish, so both take the text colour. */
.section-brand a,
.site-footer a {
  color: var(--on-brand);
}

.section-brand a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--on-brand);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -80px;
  z-index: 30;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: var(--space-3);
}

/* Header and logo ---------------------------------------------------------
   Logo rules: 120px wide at the smallest, clear space of a quarter of the
   mark's height on every side, never recoloured. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.logo {
  display: inline-block;
  padding: var(--space-3);
  margin: 0 calc(-1 * var(--space-3));
  border-radius: var(--radius-sm);
}

.logo img {
  width: auto;
  height: 24px;
}

.site-nav {
  display: none;
  gap: var(--space-5);
  margin-left: auto;
  font: var(--text-small);
  font-weight: 600;
}

.site-nav a {
  padding: var(--space-2) 0;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
}

/* The ground line under the header. With main.js it fills as you read down. */
.progress {
  height: 1px;
  background: var(--line);
}

.progress-line {
  display: none;
  height: 3px;
  margin-top: -1px;
  background: var(--brand-fill);
  transform-origin: left center;
  transform: scaleX(var(--scroll, 0));
}

.motion .progress-line {
  display: block;
}

/* Type ---------------------------------------------------------------------- */

h1,
h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

h2,
.page-title {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

/* A smaller heading inside a page (the brand's h3 size), where the page's own title is the h1. */
h2.h3 {
  max-width: none;
  margin-bottom: var(--space-3);
}

h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
}

p {
  margin: 0 0 var(--space-4);
}

strong {
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  font: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--loam);
}

.lede {
  font: var(--text-lede);
  font-size: 19px;
  color: var(--text-muted);
  max-width: 36em;
}

.prose {
  max-width: 38em;
}

/* The sentence that opens each story. */
.opening {
  max-width: 24em;
  margin-bottom: var(--space-6);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
  color: var(--text);
}

.sub {
  margin-top: var(--space-7);
}

.aside {
  max-width: 38em;
  margin: var(--space-6) 0 0;
  color: var(--text-muted);
}

/* Sections ----------------------------------------------------------------- */

.section {
  padding: var(--space-8) 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-brand {
  background: var(--brand-fill);
  color: var(--on-brand);
}

.section-brand h2,
.section-brand .lede {
  color: var(--on-brand);
}

/* Harvest is only text at 24px and up on pasture, so small labels here are cream. */
.section-brand .eyebrow {
  color: var(--on-brand);
}

/* Buttons: square-ish corners, never pills. -------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: var(--text-body-strong);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button-primary {
  background: var(--brand-fill);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--bush);
}

.button-primary:active {
  transform: translateY(1px);
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--text);
}

.button-quiet:hover {
  border-color: var(--brand);
  background: var(--surface-2);
}

/* The cream button, for green grounds: the email address in "Get in touch". */
.section-brand .button-light {
  min-height: 56px;
  background: var(--on-brand);
  color: var(--brand-fill);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  font-size: 15px;
  text-align: center;
  overflow-wrap: anywhere;
}

.section-brand .button-light:hover {
  background: var(--surface-2);
}

.button-small {
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  font-size: 15px;
  white-space: nowrap;
}

.section .button {
  margin-top: var(--space-3);
}

/* Pictures: one way of drawing, used everywhere ----------------------------
   Flat brand colours with a thin ink outline. Every colour is a token. */

.ink {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ns,
.ink text {
  stroke: none;
}

.no-fill {
  fill: none;
}

.thin {
  stroke-width: 1.5;
}

.dash {
  stroke-dasharray: 1 9;
  stroke-width: 3;
}

.f-cream { fill: var(--cream); }
.f-surface2 { fill: var(--surface-2); }
.f-surface3 { fill: var(--surface-3); }
.f-pasture { fill: var(--pasture); }
.f-bush { fill: var(--bush); }
.f-lichen { fill: var(--lichen); }
.f-harvest { fill: var(--harvest); }
.f-loam { fill: var(--loam); }
.f-rust { fill: var(--rust); }

.coin-mark {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.t-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  fill: var(--ink);
}

.t-rust {
  fill: var(--accent);
}

.t-label {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--loam);
}

.t-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  fill: var(--ink);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 65px);
  overflow: hidden;
}

.hero-words {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

.hero-title {
  margin-bottom: var(--space-5);
  font-size: clamp(56px, 15vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.paths {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* The picture takes whatever is left of the first screen under the words, so the whole
   of it shows without scrolling. It is never cropped top or bottom: on a narrow screen
   its sides run off the edges, and on a wide one more of the neighbourhood shows. */
.hero-scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 170px;
  max-height: min(34vw, 460px);
  margin-top: auto;
}

.hero-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  max-width: none;
  height: 100%;
  overflow: visible;
  transform: translateX(-50%);
}

/* The strata band, once, full width. */
.strata {
  width: 100%;
  height: 28px;
  flex: none;
}

/* The story of a dollar ------------------------------------------------------ */

.journey {
  padding: 0;
}

.journey-stage {
  padding: var(--space-8) 0;
}

.journey-grid {
  display: flex;
  flex-direction: column;
}

.journey-words {
  display: contents;
}

.journey-words .eyebrow { order: 1; }
.journey-words h2 { order: 2; }
.journey-picture { order: 3; }
.captions { order: 4; }

.journey-picture {
  position: relative;
  margin: var(--space-4) 0 var(--space-5);
}

.journey-art {
  width: 100%;
  height: auto;
}

.ground {
  stroke: var(--line-strong);
}

.trail {
  stroke-width: 3;
  stroke-dasharray: 1 9;
}

.trail-away {
  stroke: var(--loam);
}

.trail-home {
  stroke: var(--pasture);
}

.club-window,
.away,
.trail-away,
.coin-away {
  transition: fill 240ms ease, opacity 240ms ease;
}

.tag {
  position: absolute;
  padding: 2px var(--space-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: var(--text-label);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.tag-shop { left: 0; top: 86%; }
.tag-club { right: 0; top: 86%; }
.tag-away { left: 66%; top: 32%; }

.caption h3 {
  margin-bottom: var(--space-2);
}

.caption p {
  max-width: 30em;
  color: var(--text-muted);
}

.caption-2 h3 {
  color: var(--brand);
}

/* When main.js is following the scroll (tall enough screens only): the picture
   holds still while you scroll through the two journeys. */
.journey.scrub {
  height: 320vh;
}

.journey.scrub .journey-stage {
  position: sticky;
  top: 65px;
  display: flex;
  align-items: center;
  height: calc(100svh - 65px);
  padding: var(--space-5) 0;
}

.journey.scrub .captions {
  display: grid;
}

.journey.scrub .caption {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 240ms ease;
}

.journey.scrub[data-phase="1"] .caption-1,
.journey.scrub[data-phase="2"] .caption-2 {
  opacity: 1;
}

.journey.scrub .trail {
  stroke-linecap: butt;
}

.journey.scrub[data-phase="2"] .away,
.journey.scrub[data-phase="2"] .trail-away {
  opacity: 0.3;
}

.journey.lit .club-window {
  fill: var(--harvest);
}

/* The 72% ------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  gap: var(--space-7);
}

.statement {
  max-width: 22em;
  margin: 0 0 var(--space-5);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.35;
}

.stat-about {
  display: block;
}

.stat-number {
  display: block;
  margin-bottom: var(--space-3);
  font: var(--text-stat);
  font-size: clamp(72px, 16vw, 128px);
  letter-spacing: -0.02em;
  color: var(--highlight);
}

.meter {
  display: flex;
  height: 12px;
  max-width: 540px;
  border-radius: var(--radius-sm);
  background: var(--bush);
  overflow: hidden;
}

.meter-fill {
  width: 72%;
  background: var(--highlight);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.meter-key {
  display: flex;
  justify-content: space-between;
  max-width: 540px;
  margin: var(--space-2) 0 0;
  font: var(--text-small);
}

.turn {
  max-width: 16em;
  margin: 0 0 var(--space-5);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Why it does more: the argument under the big line. */
.turn-why {
  max-width: 26em;
  margin: 0;
  font: var(--text-lede);
}

/* Three stories ------------------------------------------------------------- */

.doors {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.door {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.door:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}

.door-art {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-strong);
}

.door-who {
  font: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--loam);
}

.door-line {
  margin: var(--space-2) 0 var(--space-5);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
}

.door-go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font: var(--text-body-strong);
  color: var(--brand);
}

.door-go .icon {
  transition: transform 160ms ease;
}

.door:hover .door-go .icon {
  transform: translateX(4px);
}

/* A story: business, club, partner ------------------------------------------ */

.two-col {
  max-width: none;
}

.two-col p {
  max-width: 34em;
}

/* What a business and a club could do together. The message is "do what suits you";
   the pictures are examples of that, so they sit smaller, under the message. */
.fit {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-strong);
}

.fit-title {
  max-width: 18ch;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.fit-words {
  max-width: 30em;
  font: var(--text-lede);
  font-size: 19px;
  color: var(--text-muted);
}

.examples-label {
  margin: var(--space-6) 0 var(--space-4);
}

.scenes {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.scene-art {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.scene .scene-what {
  margin: 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  font: var(--text-body-strong);
}


/* The TV in the clubrooms uses the brand's Night field theme. */
.tv {
  fill: var(--surface);
}

.tv-slide-2 {
  opacity: 0;
}

/* The loop gives each business eight seconds, as the brand's TV loop spec says. */
@media (prefers-reduced-motion: no-preference) {
  .tv-slide-1 { animation: tv-first 16s infinite; }
  .tv-slide-2 { animation: tv-second 16s infinite; }
}

@keyframes tv-first {
  0%, 48.5% { opacity: 1; }
  50%, 98.5% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes tv-second {
  0%, 48.5% { opacity: 0; }
  50%, 98.5% { opacity: 1; }
  100% { opacity: 0; }
}

.t-on-dark { fill: var(--text); }
.t-on-dark-muted { fill: var(--text-muted); }
.t-highlight { fill: var(--highlight); }

/* How it works for a business, and the badge for its window ---------------------- */

.deal {
  display: grid;
  gap: var(--space-7);
  margin-top: var(--space-8);
}

.facts {
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.facts li {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 1px solid var(--line);
}

.window {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

.window-art {
  width: 100%;
  height: auto;
}

.window figcaption {
  padding: var(--space-4) var(--space-5) var(--space-5);
  font: var(--text-small);
  color: var(--text-muted);
}

/* The Backed badge from the design system: a pasture pill with the reverse mark. */
.badge-pill {
  fill: var(--brand-fill);
}

.t-badge {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--on-brand);
}

.handle {
  stroke: var(--harvest);
  stroke-width: 3;
}

/* The club's story: Tuesday night -------------------------------------------
   This panel uses the brand's Night field theme, so its colours come from the
   dark set in tokens.css. */

.night {
  padding: var(--space-8) 0;
  background: var(--surface);
  color: var(--text);
}

.night .eyebrow,
.night-when {
  color: var(--highlight);
}

.night-grid {
  display: grid;
  gap: var(--space-6);
}

.night-when {
  margin: var(--space-6) 0 var(--space-2);
  font: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.night .opening {
  margin-bottom: 0;
}

.night-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  stroke: var(--surface);
}

.posts {
  stroke: var(--brand);
  stroke-width: 3;
}

.frame {
  stroke: var(--text-subtle);
  stroke-width: 3;
}

.f-night-wall { fill: var(--surface-3); }
.f-night-sky { fill: var(--surface); }
.f-night-board { fill: var(--surface-2); }
.f-night-table { fill: var(--loam); }
.f-night-laptop { fill: var(--surface-2); }
.f-pasture-lift { fill: var(--brand); }

.f-lamp {
  fill: var(--highlight);
  opacity: 0.16;
}

.on-dark {
  stroke: var(--text-subtle);
}

/* The ground line, with the leaf resting on it. */
.ground-rule {
  position: relative;
  height: 40px;
  margin: var(--space-6) 0 var(--space-7);
  border-bottom: 1px solid var(--line-strong);
}

.ground-leaf {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 40px;
  height: 40px;
}

.split {
  display: grid;
  gap: var(--space-7);
}

.ticks,
.promises,
.points {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.ticks .icon {
  margin-top: 2px;
  color: var(--brand);
}

.promises li {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.promises strong,
.points strong,
.steps strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
}

.signoff {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.proof {
  margin: 0;
  padding: var(--space-5);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

.proof-page {
  max-width: 380px;
  margin: 0 auto;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.proof-label {
  margin: 0 0 var(--space-3);
  font: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--loam);
}

.proof-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.proof-what {
  margin: var(--space-3) 0;
  font: var(--text-ref);
  color: var(--text-muted);
}

.proof-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}

/* Drawn buttons inside the picture: they show what the club sees, they do nothing. */
.mock-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: var(--text-body-strong);
  font-size: 15px;
}

.mock-primary {
  border-color: var(--brand-fill);
  background: var(--brand-fill);
  color: var(--on-brand);
}

/* Where the money goes -------------------------------------------------------- */

.money-title {
  max-width: 18ch;
}

.accent {
  color: var(--accent);
  white-space: nowrap;
}

.money-grid {
  display: grid;
  gap: var(--space-6);
}

.split-chart {
  margin: 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.chart-title {
  margin-bottom: var(--space-3);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font: var(--text-small);
  color: var(--text-muted);
}

.chart-key li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.swatch {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 2px;
}

.swatch-club { background: var(--pasture); }
.swatch-us { background: var(--harvest); }
.swatch-second { background: var(--rust); }
.swatch-round { border-radius: 50%; }

.chart-row + .chart-row {
  margin-top: var(--space-5);
}

.chart-label {
  margin: 0 0 var(--space-2);
  font: var(--text-small);
  font-weight: 600;
}

/* One whole, split in two. A 2px gap in the surface colour separates the parts. */
.bar {
  display: flex;
  gap: 2px;
  height: 28px;
}

.seg {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: var(--space-2);
  border-radius: var(--radius-sm);
  font: var(--text-small);
  font-weight: 600;
}

.seg-club {
  background: var(--pasture);
  color: var(--on-brand);
}

.seg-us {
  background: var(--harvest);
  color: var(--ink);
}

/* A row with nothing in it for the club: an empty outline the same length. */
.seg-none {
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
}

.w122 { flex: 122 0 0; }
.w100 { flex: 100 0 0; }
.w22 { flex: 22 0 0; }

.money-words p {
  max-width: 30em;
}

.money-words .money-lede {
  max-width: 20em;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
}

.buys-title {
  margin-top: var(--space-8);
}

.buys strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.25;
}

.money-notes {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.money-notes p {
  max-width: 34em;
  margin: 0;
}

/* How it works ---------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  gap: var(--space-6);
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}

/* The ground line the steps stand on: a hairline, and the brand line drawn over it. */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}

.steps::after {
  background: var(--brand-fill);
  transform-origin: center top;
  transform: scaleY(var(--draw, 1));
}

.steps li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.steps p {
  margin: 0;
  padding-top: var(--space-1);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--brand);
}

.steps-wrap {
  position: relative;
}

.steps-leaf {
  display: none;
}

/* Partners and investors ------------------------------------------------------- */

.partners-grid {
  display: grid;
  gap: var(--space-7);
}

.points {
  gap: var(--space-5);
  max-width: 38em;
  margin-bottom: var(--space-5);
}

.network {
  margin: 0;
}

.network-art {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.link-second {
  stroke: var(--pasture);
  stroke-width: 3;
}

.network .chart-key {
  flex-direction: column;
  margin: var(--space-4) 0 0;
}

/* The way on from a reader's page ------------------------------------------------ */

.more {
  padding: var(--space-7) 0;
}

.more-links {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.more-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font: var(--text-body-strong);
}

.text-link {
  margin-left: var(--space-4);
}

/* Get in touch ------------------------------------------------------------------ */

.closing {
  padding: var(--space-9) 0;
}

.closing-ground {
  position: relative;
  height: 60px;
  margin: calc(-1 * var(--space-5)) 0 var(--space-6);
}

/* The ground line on green: the cream hairline at 40%, with the leaf resting on it. */
.closing-ground::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--on-brand);
  opacity: 0.4;
}

.closing-leaf {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 60px;
  height: 60px;
}

.closing-title {
  max-width: 14ch;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact {
  margin: var(--space-6) 0 0;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  padding: var(--space-6) 0;
  background: var(--bush);
  font: var(--text-small);
  color: var(--on-brand);
}

.footer-row {
  display: grid;
  gap: var(--space-4);
}

.site-footer img {
  width: auto;
  height: 28px;
}

.site-footer p {
  margin: 0;
}

/* Motion: only when main.js is running ----------------------------------------
   Calm, as the design system asks: 160 to 240ms fades and short rises. */

.motion .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.motion li.reveal:nth-child(2).is-in { transition-delay: 60ms; }
.motion li.reveal:nth-child(3).is-in { transition-delay: 120ms; }
.motion li.reveal:nth-child(4).is-in { transition-delay: 180ms; }
.motion li.reveal:nth-child(5).is-in { transition-delay: 240ms; }

.motion .hero-far {
  transform: translateY(calc(var(--hero, 0) * 28px));
}

.motion .hero-mid {
  transform: translateY(calc(var(--hero, 0) * 12px));
}

/* Wider screens -------------------------------------------------------------- */

@media (min-width: 23em) {
  .logo img {
    height: 30px;
  }

  .section-brand .button-light {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    font-size: 18px;
  }

  .button-small {
    padding: var(--space-2) var(--space-4);
  }
}

@media (min-width: 40em) {
  body {
    font-size: 18px;
  }

  .wrap {
    padding: 0 var(--space-6);
  }

  .logo img {
    height: 36px;
  }

  h2,
  .page-title {
    font-size: 48px;
    line-height: 1.05;
  }

  .lede {
    font-size: 21px;
  }

  .opening {
    font-size: 30px;
    line-height: 1.25;
  }

  .section,
  .night {
    padding: var(--space-9) 0;
  }

  .hero-words {
    padding-top: var(--space-7);
    padding-bottom: var(--space-5);
  }

  .paths {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .strata {
    height: 40px;
  }

  .tag {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .doors {
    grid-template-columns: repeat(3, 1fr);
  }

  .scenes {
    grid-template-columns: repeat(2, 1fr);
  }

  .fit-title {
    font-size: 40px;
    line-height: 1.1;
  }

  .fit-words {
    font-size: 21px;
  }

  .two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .ticks,
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }

  .statement {
    font-size: 26px;
  }

  .turn {
    font-size: 40px;
  }

  .footer-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-6);
  }

  .footer-row p {
    text-align: right;
  }

  .more-links {
    grid-template-columns: repeat(2, max-content);
    gap: var(--space-3) var(--space-8);
  }
}

@media (min-width: 64em) {
  .site-nav {
    display: flex;
  }

  .site-nav + .button {
    margin-left: var(--space-5);
  }

  h2,
  .page-title {
    font-size: 56px;
  }

  /* The story of a dollar: words on the left, the picture on the right. */
  .journey-grid {
    display: grid;
    grid-template-columns: 5fr 8fr;
    gap: var(--space-7);
    align-items: center;
  }

  .journey-words {
    display: block;
  }

  .journey-words h2 {
    font-size: 48px;
  }

  .journey-picture {
    margin: 0;
  }

  .tag-shop { left: 4%; }
  .tag-club { right: 2%; }
  .tag-away { left: 69%; }

  .captions {
    margin-top: var(--space-6);
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-9);
  }

  .turn {
    font-size: 48px;
  }

  .scenes {
    grid-template-columns: repeat(4, 1fr);
  }

  .deal {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-9);
  }

  .night-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
  }

  .ticks {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }

  .ticks li {
    flex-direction: column;
  }

  .signoff {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-9);
  }

  .money-words .money-lede {
    font-size: 30px;
    line-height: 1.25;
  }

  .money-notes {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .money-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--space-8);
  }

  /* How it works: five steps along the ground line. */
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-5);
  }

  .steps::before,
  .steps::after {
    left: 0;
    right: 0;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps::after {
    transform-origin: left center;
    transform: scaleX(var(--draw, 1));
  }

  .steps li {
    display: block;
  }

  .steps p {
    padding-top: var(--space-4);
  }

  /* Where the line ends, something has grown. */
  .steps-leaf {
    display: block;
    position: absolute;
    right: 0;
    top: -12px;
    width: 40px;
    height: 40px;
  }

  .partners-grid {
    grid-template-columns: 6fr 5fr;
    align-items: center;
    gap: var(--space-8);
  }
}
