/* Anthrascend. Darkness to Dawn.
   Archivo, Inter and JetBrains Mono: SIL OFL 1.1. See /assets/fonts/OFL.txt and NOTICE.txt. */

@font-face {
  font-family: Archivo;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b1f2a;
  --deep: #123a47;
  --teal: #0b3b36;
  --paper: #f5f5f0;
  --green: #17c295;
  --ink: #0f1a1c;
  --green-ink: #157d63;
  --chalk: #f5f5f0;
  --muted: #b7c4c8;
  --muted-ink: #3c4a4e;
  --header: 4.5rem;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 42rem;
  --wide: 76rem;
  color-scheme: dark;
  background: var(--night);
  color: var(--chalk);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-reduced] { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--night);
  color: var(--chalk);
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--green);
  color: var(--ink);
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 650;
}
.skip:focus { transform: none; }

.eyebrow, .meta, .dawn-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.tone-paper .eyebrow,
.tone-paper .meta { color: var(--green-ink); }

h1, h2, h3, .display {
  font-family: Archivo, sans-serif;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 680;
  font-weight: 680;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-wrap: balance;
  margin: 0;
}
h1, h2, h3 { text-transform: uppercase; }
.display { text-transform: none; letter-spacing: -0.01em; font-stretch: 105%; }
h1 { font-size: clamp(2.2rem, 5.6vw, 5.15rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 4.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: 0.03em; line-height: 1.05; }
p { margin: 0; }
.lede, .chapter p, .prose p { max-width: var(--measure); }
.lede { font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.45; color: var(--chalk); }
.muted { color: var(--muted); }
.tone-paper .muted,
.tone-paper { color: var(--ink); }
.tone-paper .lede { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  background: var(--green);
  color: var(--ink);
  text-decoration: none;
  font-family: Archivo, sans-serif;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 650;
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible { outline-color: var(--chalk); }
.tone-paper .btn:focus-visible { outline-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--chalk);
}
.tone-paper .btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ghost:focus-visible { outline-color: var(--green); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 55;
  height: var(--header);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(11, 31, 42, 0.92), rgba(11, 31, 42, 0));
}
html[data-tone="paper"] .site-header {
  background: linear-gradient(180deg, rgba(245, 245, 240, 0.94), rgba(245, 245, 240, 0));
  color: var(--ink);
}
.header-inner {
  width: min(100%, 96rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 1.7rem; width: auto; }
.brand .logo-light { display: none; }
html[data-tone="paper"] .site-header .logo-dark { display: none; }
html[data-tone="paper"] .site-header .logo-light { display: block; }
.nav-primary {
  display: none;
  margin-left: auto;
  gap: 1.15rem;
}
.nav-primary a {
  text-decoration: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk);
}
html[data-tone="paper"] .nav-primary a { color: var(--ink); }
.nav-primary a[aria-current="page"] { color: var(--green); }
html[data-tone="paper"] .nav-primary a[aria-current="page"] { color: var(--green-ink); }
.menu-toggle {
  margin-left: auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.8rem;
  background: transparent;
  border: 1px solid currentColor;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 1080px) {
  .nav-primary { display: flex; }
  .menu-toggle { margin-left: 0.5rem; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--night);
  color: var(--chalk);
  padding: calc(var(--header) + 1rem) var(--pad) 2rem;
  overflow: auto;
  display: none;
}
.menu[data-open="true"] { display: block; }
html.menu-open { overflow: hidden; }
.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  min-height: 2.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(245, 245, 240, 0.14);
  font-family: Archivo, sans-serif;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 640;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.menu .menu-sub a {
  font-family: Inter, sans-serif;
  font-stretch: 100%;
  font-variation-settings: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 500;
}
.menu-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green);
  align-self: center;
}

.dawn-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, #0b1f2a 0%, #123a47 38%, #0b3b36 68%, #f5f5f0 100%);
  pointer-events: none;
}
.dawn-rail span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
}
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .dawn-rail span {
    animation: dawn-fill linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes dawn-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dawn-rail span { animation: none; }
}

main { display: block; }
.chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + 1.5rem) var(--pad) clamp(2rem, 7vh, 4.5rem);
  background: var(--night);
  isolation: isolate;
}
.tone-night { background: var(--night); color: var(--chalk); }
.tone-deep { background: var(--deep); color: var(--chalk); }
.tone-teal { background: var(--teal); color: var(--chalk); }
.tone-paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.chapter-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.chapter-media picture,
.chapter-media img,
.chapter-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.chapter-media .motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}
.chapter-media .shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 31, 42, 0.28) 0%, rgba(11, 31, 42, 0.42) 32%, rgba(11, 31, 42, 0.82) 62%, rgba(11, 31, 42, 0.94) 100%);
}
.asset-note {
  position: absolute;
  z-index: 3;
  top: calc(var(--header) + 0.75rem);
  left: var(--pad);
  max-width: min(18rem, calc(100% - 8rem));
  margin: 0;
  padding: 0.4rem 0.55rem;
  background: rgba(11, 31, 42, 0.88);
  color: var(--chalk);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}
.chapter-inner { position: relative; z-index: 1; width: min(100%, var(--wide)); }
.chapter > .film-control { z-index: 3; }
.chapter-inner > * + * { margin-top: 1.1rem; }
.chapter h1, .chapter h2 { max-width: 100%; }
.ink-ring {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 36%;
  width: min(52vmin, 34rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.film-card {
  position: relative;
  width: min(100%, 56rem);
  aspect-ratio: 16 / 9;
  margin: 0 0 1.25rem;
  overflow: hidden;
  background: var(--night);
}
.film-card img,
.film-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-control {
  position: absolute;
  right: var(--pad);
  bottom: 1.25rem;
  z-index: 4;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(11, 31, 42, 0.72);
  color: var(--chalk);
  border: 1px solid rgba(245, 245, 240, 0.4);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.section {
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
}
.section-inner { width: min(100%, var(--wide)); margin: 0 auto; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 4rem; }
  .split-3 { grid-template-columns: repeat(3, 1fr); }
}
.cards, .beliefs, .logo-grid, .resource-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .cards, .beliefs { grid-template-columns: 1fr 1fr; }
  .cards.cols-3, .resource-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .cards.cols-4 { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
}
.card, .belief, .resource, .swatch, .logo-card {
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid rgba(245, 245, 240, 0.16);
  background: rgba(11, 31, 42, 0.28);
}
.tone-paper .card,
.tone-paper .belief,
.tone-paper .resource,
.tone-paper .swatch,
.tone-paper .logo-card {
  border-color: rgba(15, 26, 28, 0.14);
  background: rgba(255, 255, 255, 0.35);
}
.card h3, .belief h3, .resource h3 { margin-bottom: 0.6rem; }
.card p, .belief p, .resource p { color: var(--muted); }
.tone-paper .card p,
.tone-paper .belief p,
.tone-paper .resource p { color: var(--muted-ink); }
.card a.stretch {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--green);
  text-decoration: none;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
p > a.text-link:only-child {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.tone-paper a.stretch, .tone-paper .text-link { color: var(--green-ink); }
.text-link { color: var(--green); }

.prose { width: min(100%, 40rem); }
.prose p + p { margin-top: 1rem; }
.prose .sign { margin-top: 2rem; font-family: Archivo, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.belief-n, .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.tone-paper .belief-n { color: var(--green-ink); }

.portrait {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.portrait-wrap {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.portrait-caption {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder {
  border: 1px dashed rgba(23, 194, 149, 0.7);
  padding: 1.25rem;
  max-width: 36rem;
}
.placeholder strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 550;
  letter-spacing: 0.08em;
  color: var(--green);
}

.journal-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.journal-row {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1rem 0;
  border-top: 1px solid rgba(15, 26, 28, 0.16);
}
.tone-night .journal-row,
.tone-deep .journal-row,
.tone-teal .journal-row { border-top-color: rgba(245, 245, 240, 0.16); }
.journal-row h3 { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-variation-settings: "wdth" 100, "wght" 640; }

.site-footer {
  background: var(--night);
  color: var(--chalk);
  color-scheme: dark;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 2rem;
  position: relative;
  z-index: 9;
}
.footer-grid {
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.footer-links { display: grid; gap: 0.15rem; align-content: start; }
.footer-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
.footer-links a:hover { color: var(--green); }
.footer-base {
  width: min(100%, var(--wide));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 245, 240, 0.14);
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-base a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--chalk);
}
.brief-title { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.brief-note {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 36rem;
}

form { display: grid; gap: 1rem; max-width: 40rem; }
.field { display: grid; gap: 0.35rem; }
.field-label, legend { font-size: 0.95rem; }
.field-optional, .field-hint { color: var(--muted); font-size: 0.85rem; }
.tone-paper .field-optional, .tone-paper .field-hint { color: var(--muted-ink); }
input, select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  background: rgba(245, 245, 240, 0.06);
  border: 1px solid rgba(245, 245, 240, 0.28);
  border-radius: 0;
}
.tone-paper input,
.tone-paper select,
.tone-paper textarea {
  background: #fff;
  border-color: rgba(15, 26, 28, 0.28);
  color: var(--ink);
}
textarea { min-height: 8rem; resize: vertical; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.choice-group { display: grid; gap: 0.5rem; }
@media (min-width: 700px) { .choice-group { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.choice-box {
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  border: 1px solid rgba(245, 245, 240, 0.3);
  padding: 0.6rem;
  text-align: center;
}
.choice input:checked + .choice-box { background: var(--green); color: var(--ink); border-color: var(--green); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--green); outline-offset: 3px; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-span { grid-column: 1 / -1; }
.form-consent { font-size: 0.85rem; color: var(--muted); }
.tone-paper .form-consent { color: var(--muted-ink); }
.steps[data-enhanced="true"] .step { display: none; }
.steps[data-enhanced="true"] .step.is-current { display: grid; gap: 0.8rem; }
.step-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.swatch { min-height: 7rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.2rem; }
.swatch i { display: block; height: 2.5rem; margin-bottom: 0.6rem; }
.logo-grid { grid-template-columns: 1fr; }
@media (min-width: 800px) { .logo-grid { grid-template-columns: 1fr 1fr; } }
.logo-card a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--green);
  margin-right: 0.8rem;
}
.tone-paper .logo-card a { color: var(--green-ink); }
.logo-card img { height: 2.4rem; width: auto; margin: 0.6rem 0; background: transparent; }

.tool select { max-width: 28rem; }
.tool-output {
  margin-top: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(15, 26, 28, 0.14);
}
.tool-output strong { display: block; font-size: 1.25rem; margin-bottom: 0.4rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid rgba(245, 245, 240, 0.16); vertical-align: top; overflow-wrap: anywhere; }
.tone-paper th, .tone-paper td { border-bottom-color: rgba(15, 26, 28, 0.12); }
@media (max-width: 700px) {
  .credit-table thead { display: none; }
  .credit-table,
  .credit-table tbody,
  .credit-table tr,
  .credit-table td { display: block; width: 100%; }
  .credit-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 26, 28, 0.12);
  }
  .credit-table td { border: 0; padding: 0.2rem 0; }
  .credit-table td::before {
    content: attr(data-label);
    display: block;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-ink);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 420ms ease-out both;
  }
}
@keyframes rise {
  from { opacity: 1; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .film video { display: none; }
  .film[data-playing="true"] video { display: block; }
}

.purpose-stage .chapter-inner { width: 100%; max-width: none; }
.purpose-stage {
  justify-content: center;
  height: 100svh;
  max-height: 100svh;
  padding: calc(var(--header) + 0.4rem) clamp(0.7rem, 1.8vw, 1.5rem) 1.15rem;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(244, 184, 96, 0.16), transparent 42%),
    #071816;
  overflow: hidden;
}
.purpose-stage .chapter-inner > * + * { margin-top: 0.65rem; }
.purpose-words {
  font-size: min(18vw, calc((100vw - 2.4rem) / 5.45), calc((100svh - 14.25rem) / 2.58));
  font-stretch: 72%;
  font-variation-settings: "wdth" 72, "wght" 720;
  font-weight: 720;
  line-height: 0.84;
  letter-spacing: -0.03em;
  max-width: 100%;
}
.purpose-mask {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0.84;
}
.purpose-word { display: block; white-space: nowrap; }
.purpose-word-last { color: #17c295; }
.purpose-char { display: inline-block; }
.purpose-sweep {
  position: absolute;
  top: 10%;
  bottom: 14%;
  left: 0;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(244, 184, 96, 0.75), transparent);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}
.purpose-copy {
  max-width: 34rem;
  margin-top: 1.35rem;
  font-family: Inter, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 450;
  font-stretch: 100%;
  font-variation-settings: normal;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  color: var(--chalk);
}
@media (prefers-reduced-motion: no-preference) {
  .purpose-stage[data-play="pending"] .purpose-char {
    opacity: 0;
    transform: translateY(110%);
  }
  .purpose-stage[data-play="in"] .purpose-char {
    animation: purpose-in 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--line) * 0.74s + var(--d) * 0.042s);
  }
  .purpose-stage[data-play="in"] .purpose-sweep {
    animation: purpose-sweep 900ms ease-out 2.2s both;
  }
}
@keyframes purpose-in {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: none; }
}
@keyframes purpose-sweep {
  0% { opacity: 0; transform: translateX(-140%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(680%); }
}
@media (prefers-reduced-motion: reduce) {
  .purpose-char { opacity: 1; transform: none; animation: none; }
  .purpose-sweep { display: none; }
}

@media (max-width: 700px) {
  .chapter { justify-content: flex-end; padding-bottom: 1.35rem; }
  .purpose-stage {
    justify-content: center;
    padding: calc(var(--header) + 0.35rem) 0.7rem 1rem;
  }
  h2.purpose-words {
    font-size: min(15.2vw, calc((100vw - 1.6rem) / 5.7), calc((100svh - 16rem) / 2.6));
    font-stretch: 68%;
    font-variation-settings: "wdth" 68, "wght" 720;
    letter-spacing: -0.035em;
  }
  .chapter-inner > * + * { margin-top: 0.8rem; }
  h1, h2, h3 {
    font-stretch: 100%;
    font-variation-settings: "wdth" 100, "wght" 680;
    letter-spacing: 0.015em;
    line-height: 0.98;
  }
  h1 { font-size: clamp(1.65rem, 7.2vw, 2.4rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.6rem); }
  .story .journal-list { margin-top: 0.75rem; }
  .story .journal-row { padding: 0.6rem 0; }
  .site-header { background: rgba(11, 31, 42, 0.92); }
  html[data-tone="paper"] .site-header { background: rgba(245, 245, 240, 0.94); }
}
