/* Reality Growth. One stylesheet for the whole site. Fonts are self-hosted in /fonts, so the page makes no request to Google. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/Newsreader-var.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/Newsreader-italic-var.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(/fonts/IBMPlexSans-var.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-normal-400.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-normal-500.woff2) format("woff2");
}

:root {
  --bg: #F4F7F4;
  --surface: #FFFFFF;
  --ink: #141A17;
  --ink-2: #4B5651;
  --ink-3: #7A857F;
  --rule: #D8E0DA;
  --rule-strong: #B9C6BD;
  --accent: #157A4F;
  --accent-ink: #0F5E3C;
  --accent-soft: #E3F0E8;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 0 rgba(20, 26, 23, 0.04), 0 8px 24px rgba(20, 26, 23, 0.06);
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1411;
    --surface: #151D18;
    --ink: #ECF1EE;
    --ink-2: #A9B5AE;
    --ink-3: #78857E;
    --rule: #263129;
    --rule-strong: #364439;
    --accent: #3FBF87;
    --accent-ink: #79DDB0;
    --accent-soft: #162820;
    --on-accent: #0E1411;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1411;
  --surface: #151D18;
  --ink: #ECF1EE;
  --ink-2: #A9B5AE;
  --ink-3: #78857E;
  --rule: #263129;
  --rule-strong: #364439;
  --accent: #3FBF87;
  --accent-ink: #79DDB0;
  --accent-soft: #162820;
  --on-accent: #0E1411;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.page { max-width: 1060px; margin: 0 auto; padding: 0 24px 72px; }

/* Masthead */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2);
}
.masthead .brand { color: var(--ink); font-weight: 500; text-decoration: none; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 20px;
}
h1 {
  font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 72;
  font-size: clamp(40px, 6.6vw, 78px); line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 0 28px; text-wrap: balance; max-width: 16ch;
}
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark svg {
  position: absolute; left: -2%; right: -2%; bottom: -0.06em; width: 104%; height: 0.32em;
  overflow: visible; pointer-events: none;
}
.mark path {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: draw 1.1s cubic-bezier(.6,.05,.3,1) 0.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
.dek {
  font-family: var(--font-display); font-variation-settings: "opsz" 24; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35; color: var(--ink); max-width: 30ch; margin: 0 0 36px; text-wrap: balance;
}
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 4px;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-ink); color: var(--on-accent); }
.cta-note { font-size: 15px; color: var(--ink-2); max-width: 34ch; margin: 0; }

/* Sections with margin labels */
.section {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 48px;
  padding: 52px 0; border-bottom: 1px solid var(--rule);
  scroll-margin-top: 16px;
}
.label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 8px;
}
.body { max-width: 640px; min-width: 0; }
.body > :first-child { margin-top: 0; }
h2 {
  font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 48;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 20px; text-wrap: balance;
}
h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
p { margin: 0 0 18px; max-width: 64ch; }
p.lede { font-size: 19px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }

@media (min-width: 860px) {
  .section { grid-template-columns: 200px minmax(0, 1fr); }
  .page { padding-left: 40px; padding-right: 40px; }
}

/* Deliverables list */
.deliverables { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.deliverables li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 24px;
  padding: 20px 0; border-top: 1px solid var(--rule);
}
.deliverables li:last-child { border-bottom: 1px solid var(--rule); }
.deliverables .when {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); padding-top: 4px;
}
.deliverables p { margin: 0; }
@media (min-width: 640px) { .deliverables li { grid-template-columns: 160px minmax(0, 1fr); } }

/* Example finding */
.finding {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px 24px 20px; margin: 28px 0 8px; box-shadow: var(--shadow); max-width: 640px;
}
.finding .meta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.finding .meta .pill { background: var(--accent-soft); color: var(--accent-ink); padding: 3px 8px; border-radius: 3px; letter-spacing: 0.06em; }
.finding dl { margin: 0; display: grid; gap: 12px; }
.finding dt { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.finding dd { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.finding dd strong { color: var(--ink); font-weight: 500; }
.caption { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; letter-spacing: 0.02em; }

/* Guarantee */
.guarantee { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 8px 0 20px; max-width: 600px; }
.guarantee p { font-family: var(--font-display); font-variation-settings: "opsz" 28; font-size: 23px; line-height: 1.35; margin: 0; text-wrap: balance; }

/* For / not for */
.fit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 720px; }
@media (min-width: 640px) { .fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit li { padding-left: 26px; position: relative; font-size: 16px; line-height: 1.5; }
.fit li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; }
.fit .yes li::before { background: var(--accent); }
.fit .no li::before { background: transparent; border: 2px solid var(--rule-strong); width: 10px; height: 10px; }
.fit h3 { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }


/* Companies list */
.companies { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; max-width: 640px; }
.companies li {
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.03em;
  padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--ink-2); background: var(--surface);
}
.story-title { margin-top: 8px; font-size: 19px; }

/* Bio */
.bio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
.portrait { width: 112px; height: 112px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); }
@media (min-width: 640px) { .bio { grid-template-columns: 135px minmax(0, 1fr); } .portrait { width: 135px; height: 135px; } }

/* Video facade */
.video { max-width: 640px; }
.video-play {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow);
}
.video-play img { display: block; width: 100%; height: auto; opacity: 0.92; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.video-play:hover .play-badge { background: var(--accent-ink); }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; max-width: 640px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-variation-settings: "opsz" 48; font-size: 34px; line-height: 1;
  color: var(--accent); font-weight: 500; padding-top: 2px;
}
.steps p { margin: 0; }

/* Contact */
.form-slot { margin: 8px 0 20px; }
.fallback { margin: 8px 0 22px; }
.fallback .btn { margin-bottom: 10px; }

/* Privacy page */
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 36px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* Footer */
.footer { padding-top: 36px; }
.colophon { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.03em; display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.colophon a { color: var(--ink-3); }
