:root {
  --paper: #f4f0e8;
  --paper-light: #fbfaf6;
  --sand: #e6ded2;
  --navy: #0c2940;
  --navy-2: #153d59;
  --rust: #b75133;
  --rust-dark: #8f3f29;
  --sage: #6e8a80;
  --sage-light: #afc3bc;
  --ink: #101820;
  --soft: #4f565c;
  --line: rgba(12, 41, 64, 0.2);
  --shadow: 0 24px 70px rgba(12, 41, 64, 0.09);
  --wrap: min(1180px, calc(100vw - 48px));
  --narrow: min(780px, calc(100vw - 48px));
  --header-height: 76px;
  --guide-left: 10%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(183, 81, 51, 0.08), transparent 28rem),
    var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body[data-chapter="0"] { --guide-left: 10%; }
body[data-chapter="1"] { --guide-left: 30%; }
body[data-chapter="2"] { --guide-left: 50%; }
body[data-chapter="3"] { --guide-left: 70%; }
body[data-chapter="4"] { --guide-left: 90%; }

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(183, 81, 51, 0.45);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.06;
  text-wrap: balance;
}

h1,
h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 620;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 3.7vw, 3.6rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.narrow,
.article-narrow {
  width: var(--narrow);
  margin-inline: auto;
}

.section-pad {
  padding: clamp(64px, 8vw, 112px) 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.35;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.section-intro {
  color: var(--soft);
  font-size: 1.15rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rust-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
}

.text-link:hover {
  color: var(--rust);
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header and chapter journey */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(12, 41, 64, 0.06);
}

.reading-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--rust);
}

.header-inner {
  display: flex;
  width: var(--wrap);
  min-height: var(--header-height);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand-word {
  display: inline-flex;
  align-items: flex-end;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.25em;
}

.brand-inline-i {
  width: 15px;
  height: 15px;
  margin: 0 0 -2px 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 26px);
}

.site-nav a {
  position: relative;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--rust);
}

.menu-button {
  display: none;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 750;
}

.menu-glyph {
  display: inline-block;
  width: 18px;
  height: 10px;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.chapter-rail {
  position: relative;
  display: grid;
  width: min(820px, calc(100vw - 48px));
  height: 48px;
  margin: 0 auto;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}

.chapter-line {
  position: absolute;
  top: 15px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: var(--line);
}

.chapter-guide {
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--guide-left);
  width: 24px;
  height: 28px;
  transform: translateX(-50%);
  transition: left 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter-guide-mark {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(12, 41, 64, 0.12));
}

.chapter-stop {
  position: relative;
  z-index: 3;
  padding-bottom: 8px;
  color: var(--soft);
  font-size: 0.69rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.chapter-dot {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
}

.chapter-stop.is-active {
  color: var(--navy);
}

.chapter-stop.is-active .chapter-dot {
  opacity: 0;
}

/* Shared page framing */

.page-hero {
  position: relative;
  min-height: auto;
  padding: clamp(72px, 8vw, 108px) 0;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8vw;
  bottom: -14vw;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(183, 81, 51, 0.15);
  border-radius: 50%;
}

.compact-hero {
  display: grid;
  min-height: 52svh;
  align-items: center;
}

.compact-hero h1,
.writing-hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.next-chapter {
  position: relative;
  margin: clamp(46px, 7vw, 82px) 0;
  padding: clamp(42px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.next-chapter::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(183, 81, 51, 0.2);
  border-radius: 50%;
}

.next-chapter h2 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.next-chapter > p {
  max-width: 720px;
  color: var(--soft);
  font-size: 1.1rem;
}

.next-guide {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 10px;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.next-guide-mark {
  width: 24px;
  height: 24px;
}

.next-link {
  margin-top: 14px;
}

.chapter-transition {
  padding: 0 0 clamp(54px, 7vw, 82px);
}

.chapter-transition .next-chapter {
  margin: 0;
}

.transition-paper {
  background: var(--paper);
}

.transition-paper-light {
  background: var(--paper-light);
}

.transition-sand {
  background: var(--sand);
}

.site-footer {
  display: grid;
  width: var(--wrap);
  margin-inline: auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  letter-spacing: 0.16em;
}

.footer-mark {
  width: 22px;
  height: 22px;
}

/* Problem */

.problem-hero {
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, rgba(251, 250, 246, 0.6), rgba(244, 224, 217, 0.32));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.file-scene {
  position: relative;
  min-height: 470px;
}

.file-card {
  position: absolute;
  display: flex;
  width: min(440px, 90%);
  padding: 24px;
  border: 1px solid rgba(12, 41, 64, 0.12);
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: 0 22px 42px rgba(12, 41, 64, 0.13);
  align-items: center;
  gap: 18px;
}

.file-card > span {
  display: grid;
  width: 48px;
  height: 54px;
  color: white;
  background: var(--navy);
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
}

.file-card strong,
.file-card small {
  display: block;
}

.file-card strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.file-card small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.78rem;
}

.file-one {
  top: 48px;
  left: 6%;
  transform: rotate(-3deg);
}

.file-two {
  top: 190px;
  right: 2%;
  transform: rotate(2deg);
}

.file-scene > p {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 14%;
  padding-left: 20px;
  border-left: 3px solid var(--rust);
  color: var(--soft);
}

.file-scene > p strong {
  color: var(--navy);
}

.story-section {
  background: var(--paper-light);
}

.story-steps {
  display: grid;
  margin-top: 64px;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.story-step {
  min-height: 330px;
  padding: 34px;
  background: var(--paper);
}

.story-step > span,
.principle > span,
.element-card > span:not(.spark):not(.archive),
.roadmap-pin span {
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.story-step h3 {
  margin-top: 62px;
}

.story-step p {
  color: var(--soft);
  font-size: 0.93rem;
}

.pull-quote {
  width: var(--narrow);
  margin: 90px auto 0;
  padding: 46px 0 46px 36px;
  border-left: 5px solid var(--rust);
}

.pull-quote p,
.pull-quote strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
}

.pull-quote p {
  margin-bottom: 8px;
}

.narrative-aside {
  width: min(390px, calc(100% - 48px));
  margin: 18px max(24px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2)) 0 auto;
  padding: 18px 0 0 22px;
  border-left: 1px solid var(--line);
}

.narrative-aside span,
.narrative-aside a {
  display: block;
}

.narrative-aside span {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.narrative-aside a {
  color: var(--rust-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.narrative-aside a:hover {
  color: var(--rust);
  text-decoration: underline;
}

.terrain-section {
  color: white;
  background: var(--navy);
}

.problem-page .terrain-section {
  padding-bottom: 0;
}

.terrain-section h2,
.terrain-section h3 {
  color: white;
}

.terrain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: clamp(55px, 9vw, 120px);
}

.terrain-copy p:not(.eyebrow) {
  color: #d5dfdb;
}

.question-stack {
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.question-stack p {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.question-stack .text-link,
.terrain-section .text-link {
  color: #e6a28f;
}

.chapter-transition-inline .next-chapter {
  margin: clamp(54px, 7vw, 82px) 0 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.terrain-section .next-chapter h2 {
  color: var(--navy);
}

/* MOSAIK solution */

.solution-hero {
  display: grid;
  align-items: center;
}

.solution-layout {
  display: grid;
  gap: clamp(42px, 6vw, 72px);
}

.solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  align-items: start;
  gap: clamp(48px, 8vw, 100px);
}

.wordmark-frame {
  width: 100%;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.wordmark-frame img {
  width: 100%;
}

.solution-summary .lede {
  max-width: 620px;
}

.solution-grid .hero-copy h1 {
  margin-bottom: 0;
}

.boundary-note,
.article-qualifier {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 3px solid var(--rust);
  color: var(--soft);
  font-size: 0.88rem;
}

.article-qualifier {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.identity-section {
  background: var(--paper-light);
}

.logo-decoder {
  display: grid;
  margin-top: 58px;
  padding: clamp(34px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.decoded-word {
  color: var(--navy);
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
}

.decoded-word span {
  display: inline-block;
  padding: 0 0.02em;
}

.decoded-word .os {
  color: var(--sage);
}

.decoded-word .ai {
  color: var(--rust);
}

.decoded-word .ki {
  color: var(--navy);
}

.decoded-word .ki {
  display: inline-flex;
  align-items: flex-end;
}

.decoded-i-mark {
  width: 0.28em;
  height: 0.28em;
  margin: 0 0 0.02em 0.03em;
}

.decoder-notes {
  display: grid;
  gap: 12px;
}

.decoder-notes article {
  display: grid;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 18px;
}

.decoder-notes article:last-child {
  border-bottom: 0;
}

.decoder-notes strong {
  color: var(--rust);
  font-size: 1.05rem;
}

.ki-label {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.decoder-inline-i {
  width: 16px;
  height: 16px;
}

.decoder-notes span {
  color: var(--soft);
  font-size: 0.9rem;
}

.decoder-i {
  width: 34px;
  height: 34px;
}

.replacement-grid {
  display: grid;
  margin-top: 62px;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 24px;
}

.replaceable-card,
.durable-card {
  position: relative;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 16px;
}

.replaceable-card {
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.durable-card {
  color: white;
  background: var(--navy);
}

.durable-card h3 {
  color: white;
}

.replaceable-card > span,
.durable-card > span {
  display: block;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.replaceable-card h3,
.durable-card h3 {
  margin-top: 22px;
}

.replaceable-card ul,
.durable-card ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.replaceable-card li,
.durable-card li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.durable-card li {
  border-color: rgba(255, 255, 255, 0.16);
}

.replacement-arrow {
  display: grid;
  color: var(--soft);
  place-items: center;
  align-content: center;
}

.replacement-arrow span {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.replacement-arrow strong {
  color: var(--rust);
  font-size: 2rem;
}

.thesis-card {
  margin-top: 82px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
  text-align: center;
}

.thesis-card p,
.thesis-card strong,
.thesis-card span {
  display: block;
}

.related-essay {
  display: grid;
  margin-top: 34px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sand);
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 22px;
}

.related-essay-i {
  width: 42px;
  height: 42px;
}

.related-essay h3 {
  margin-bottom: 16px;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
}

.thesis-card p {
  margin-bottom: 6px;
  color: var(--soft);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.thesis-card strong {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.7vw, 3.2rem);
  line-height: 1.15;
}

.thesis-card span {
  margin-top: 24px;
  color: var(--rust-dark);
  font-weight: 750;
}

.belief-section {
  padding-bottom: 48px;
  background: var(--sand);
}

.belief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}

.belief-copy p:not(.eyebrow) {
  color: var(--soft);
  font-size: 1.12rem;
}

.belief-quote {
  padding: clamp(36px, 6vw, 64px);
  border-radius: 16px;
  color: white;
  background: var(--navy);
}

.belief-i {
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
}

.belief-quote blockquote {
  color: white;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.18;
}

.belief-quote .text-link {
  color: #e6a28f;
}

/* How it works */

.element-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.element-card {
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-light);
}

.element-card.core {
  color: white;
  background: var(--navy);
}

.element-card.core h2,
.element-card.core p {
  color: white;
}

.element-card h2 {
  margin: 52px 0 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.42rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.element-card p {
  color: var(--soft);
  font-size: 0.9rem;
}

.element-symbol {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  object-fit: contain;
}

.spark,
.archive {
  display: grid;
  color: var(--rust);
  font-size: 2.6rem;
  place-items: center;
}

.bridge-section {
  background: var(--paper-light);
}

.bridge-heading {
  max-width: 880px;
}

.bridge-figure {
  margin: 54px 0 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bridge-figure img {
  width: 100%;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bridge-card {
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.bridge-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: var(--rust);
  font-size: 0.72rem;
  font-weight: 850;
  place-items: center;
}

.bridge-card h3 {
  margin-top: 34px;
}

.bridge-card p {
  color: var(--soft);
  font-size: 0.9rem;
}

.process-map-section {
  padding-bottom: 48px;
  background: var(--paper-light);
}

.map-heading {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 60px;
  align-items: end;
}

.map-heading p:last-child {
  color: var(--soft);
  font-size: 0.93rem;
}

.process-map {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.process-map > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.process-map figcaption {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.82rem;
}

.optional-reading {
  width: min(430px, 100%);
  margin: 28px 0 0 auto;
  padding: 18px 0 0 22px;
  border-left: 1px solid var(--line);
}

.optional-reading span,
.optional-reading a {
  display: block;
}

.optional-reading span {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.optional-reading a {
  color: var(--rust-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.optional-reading a:hover {
  color: var(--rust);
  text-decoration: underline;
}

.map-open-button {
  position: absolute;
  right: 18px;
  bottom: 64px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(12, 41, 64, 0.22);
}

.map-open-button:hover {
  background: var(--rust-dark);
}

.principles-grid {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.principle {
  min-height: 270px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-light);
}

.principle h3 {
  margin-top: 45px;
}

.principle p {
  color: var(--soft);
}

.map-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

.map-dialog::backdrop {
  background: rgba(12, 41, 64, 0.78);
}

.map-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 64px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
  align-items: center;
  justify-content: space-between;
}

.map-dialog-header button {
  padding: 9px 16px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.map-scroll {
  width: 100%;
  height: calc(100dvh - 64px);
  padding: 22px;
  overflow: auto;
}

.map-scroll img {
  width: max(100%, 1500px);
  max-width: none;
  height: auto;
}

/* Roadmap */

.roadmap-hero {
  background: linear-gradient(180deg, rgba(175, 195, 188, 0.2), transparent);
}

.roadmap-path {
  position: relative;
}

.roadmap-section {
  padding-bottom: 48px;
}

.roadmap-path::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 80px;
  left: 40px;
  width: 2px;
  background: linear-gradient(var(--rust), var(--sage));
}

.roadmap-node {
  position: relative;
  display: grid;
  padding-bottom: 84px;
  grid-template-columns: 82px 1fr;
  gap: 28px;
}

.roadmap-node:last-child {
  padding-bottom: 0;
}

.roadmap-pin {
  position: relative;
  z-index: 2;
  display: grid;
  width: 62px;
  height: 62px;
  border: 2px solid var(--rust);
  border-radius: 50% 50% 50% 10%;
  background: var(--paper-light);
  box-shadow: 0 12px 30px rgba(12, 41, 64, 0.1);
  place-items: center;
  transform: rotate(-45deg);
}

.roadmap-pin span {
  transform: rotate(45deg);
}

.roadmap-content {
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.roadmap-content h2 {
  max-width: 850px;
  margin: 22px 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.status {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--sand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.verified {
  color: white;
  background: var(--sage);
}

.status.development {
  color: white;
  background: var(--navy);
}

.status.planned {
  color: white;
  background: var(--rust);
}

.roadmap-why {
  max-width: 800px;
  color: var(--soft);
  font-size: 1.08rem;
}

.roadmap-content dl {
  display: grid;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.roadmap-content dl > div {
  padding: 24px 22px 0 0;
}

.roadmap-content dt {
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.roadmap-content dd {
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.evidence-note {
  max-width: 920px;
  margin: -12px 0 30px;
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.orchestration-plane {
  display: grid;
  margin: 34px 0 10px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
}

.orchestration-plane > div {
  display: flex;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  flex-direction: column;
  justify-content: center;
}

.orchestration-plane > b {
  display: grid;
  color: var(--rust);
  place-items: center;
}

.orchestration-plane span,
.orchestration-plane strong {
  display: block;
}

.orchestration-plane span {
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orchestration-plane strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.4;
}

.orchestration-plane .ludwig-node {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
}

.orchestration-plane .ludwig-node span {
  color: #e6a28f;
}

.orchestration-plane .ludwig-node strong {
  color: white;
}

.evidence-row {
  display: grid;
  margin: 34px 0;
  padding: 28px;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px 18px;
}

.evidence-row strong {
  color: #e6a28f;
  font-size: 1.7rem;
}

.evidence-row span {
  font-size: 0.78rem;
  line-height: 1.35;
}

/* About */

.about-hero {
  display: grid;
  align-items: center;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.65fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.profile-card {
  padding: clamp(34px, 6vw, 56px);
  border-radius: 18px;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.profile-i {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.profile-card > strong,
.profile-card > span {
  display: block;
}

.profile-link {
  display: inline-flex;
  margin-top: 20px;
  align-items: center;
  gap: 7px;
  color: #e6a28f;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-link:hover {
  color: white;
}

.profile-card > strong {
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.profile-card > span {
  margin-top: 4px;
  color: var(--sage-light);
  font-size: 0.88rem;
}

.profile-card dl {
  margin: 34px 0 0;
}

.profile-card dl > div {
  display: grid;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  grid-template-columns: 100px 1fr;
  gap: 16px;
}

.profile-card dt {
  color: var(--sage-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card dd {
  font-size: 0.82rem;
}

.connections-section {
  background: var(--paper-light);
}

.connections-grid {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.connection-card {
  min-height: 310px;
  padding: clamp(32px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.connection-card > span,
.case-meta span,
.experience-signals span,
.essay-topic {
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.connection-card h3 {
  margin-top: 50px;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 500;
}

.connection-card p {
  color: var(--soft);
}

.case-grid {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card {
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.case-meta {
  display: flex;
  margin-bottom: 54px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.case-meta strong {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.case-card h3 {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
}

.case-card p {
  color: var(--soft);
}

.experience-signals {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.experience-signals article {
  padding: 28px;
  background: var(--paper);
}

.accomplishment-note {
  margin-top: 24px;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.experience-signals strong {
  display: block;
  margin: 20px 0 10px;
  color: var(--navy);
}

.experience-signals p {
  color: var(--soft);
  font-size: 0.84rem;
}

.origin-section {
  background: var(--sand);
}

.origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: clamp(55px, 9vw, 120px);
}

.origin-copy p:not(.eyebrow) {
  color: var(--soft);
  font-size: 1.08rem;
}

.origin-result {
  display: grid;
  padding: clamp(30px, 4vw, 44px);
  border-radius: 16px;
  color: white;
  background: var(--navy);
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px 20px;
}

.origin-result strong {
  color: #e6a28f;
  font-family: Georgia, serif;
  font-size: 2.5rem;
}

.origin-result span {
  color: #d5dfdb;
  font-size: 0.84rem;
}

.origin-result p {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  grid-column: 1 / -1;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.3;
}

.writing-preview {
  padding-bottom: 48px;
  background: var(--paper-light);
}

.writing-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(50px, 8vw, 100px);
}

.writing-preview-grid p:last-child {
  color: var(--soft);
}

.preview-links {
  display: grid;
}

.preview-links a {
  display: grid;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.preview-links a:first-child {
  border-top: 1px solid var(--line);
}

.preview-links strong {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.preview-links span {
  margin-top: 5px;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 750;
}

/* Writing library and articles */

.writing-hero {
  display: grid;
  min-height: 54svh;
  align-items: center;
  background: linear-gradient(180deg, rgba(183, 81, 51, 0.07), transparent);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.essay-card {
  min-height: 390px;
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
}

.essay-card.featured {
  color: white;
  background: var(--navy);
  grid-row: span 2;
}

.essay-card.featured h2,
.essay-card.featured p {
  color: white;
}

.essay-card h2 {
  margin-top: 70px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.essay-card p {
  color: var(--soft);
}

.essay-card .text-link {
  margin-top: 30px;
}

.essay-card.featured .text-link {
  color: #e6a28f;
}

.article-hero {
  padding: clamp(76px, 9vw, 126px) 0 70px;
  background: linear-gradient(180deg, rgba(175, 195, 188, 0.18), transparent);
}

.article-hero h1 {
  font-size: clamp(3rem, 6vw, 5.3rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.article-meta {
  display: flex;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  justify-content: space-between;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.article-body {
  padding: 74px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  line-height: 1.82;
}

.article-body h2 {
  margin-top: 76px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.article-body p,
.article-body li {
  color: #30383e;
}

.article-body .opening {
  color: var(--navy);
  font-size: 1.25em;
}

.article-body blockquote {
  margin: 52px 0;
  padding: 32px 0 32px 32px;
  border-left: 4px solid var(--rust);
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.article-body code {
  padding: 0.12em 0.32em;
  border-radius: 4px;
  color: var(--navy);
  background: var(--sand);
  font-size: 0.85em;
}

.article-body li {
  margin-bottom: 12px;
}

.question-list {
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.question-list li {
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.question-list li::before {
  content: "?";
  display: inline-block;
  width: 30px;
  margin-left: -30px;
  color: var(--rust);
}

.article-emphasis,
.article-close {
  margin: 52px 0;
  color: var(--navy) !important;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.4;
}

.series-nav {
  display: grid;
  margin-bottom: 70px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.series-nav a {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.essay-series section {
  padding-top: 30px;
}

/* Responsive */

@media (max-width: 1040px) {
  :root {
    --wrap: min(920px, calc(100vw - 40px));
    --narrow: min(720px, calc(100vw - 40px));
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.71rem;
  }

  .story-steps,
  .element-grid,
  .bridge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid,
  .logo-decoder,
  .framework-strip {
    grid-template-columns: 1fr;
  }

  .wordmark-frame {
    max-width: none;
  }

  .element-card {
    min-height: 280px;
  }

  .roadmap-content dl {
    grid-template-columns: 1fr;
  }

  .roadmap-content dl > div {
    padding-right: 0;
  }

  .evidence-row {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --wrap: calc(100vw - 32px);
    --narrow: calc(100vw - 32px);
    --header-height: 64px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.7rem, 11vw, 4.4rem);
  }

  .header-inner {
    position: relative;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-light);
    box-shadow: var(--shadow);
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
    font-size: 0.82rem;
  }

  .site-nav a[aria-current="page"]::after {
    right: auto;
    bottom: 6px;
    left: 12px;
    width: 28px;
  }

  .chapter-rail {
    width: calc(100vw - 20px);
    height: 46px;
  }

  .chapter-stop {
    font-size: 0.61rem;
  }

  .hero-grid,
  .terrain-grid,
  .belief-grid,
  .about-hero-grid,
  .origin-grid,
  .writing-preview-grid,
  .map-heading {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding: 78px 0 90px;
  }

  .problem-hero {
    min-height: calc(100svh - 110px);
  }

  .file-scene {
    min-height: 430px;
  }

  .terrain-grid,
  .belief-grid,
  .about-hero-grid,
  .origin-grid {
    gap: 48px;
  }

  .replacement-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid .hero-copy {
    grid-row: 1;
  }

  .replacement-arrow {
    min-height: 62px;
  }

  .replacement-arrow span {
    writing-mode: initial;
  }

  .replacement-arrow strong {
    transform: rotate(90deg);
  }

  .map-open-button {
    right: 12px;
    bottom: 58px;
  }

  .process-map > img {
    min-height: 330px;
    object-fit: cover;
    object-position: left center;
    filter: saturate(0.88);
  }

  .process-map::after {
    content: "Full detail opens in a scrollable viewer";
    position: absolute;
    top: 16px;
    right: 16px;
    max-width: 150px;
    padding: 9px 11px;
    border-radius: 8px;
    color: white;
    background: rgba(12, 41, 64, 0.88);
    font-size: 0.67rem;
    line-height: 1.3;
  }

  .case-grid,
  .connections-grid,
  .principles-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .experience-signals {
    grid-template-columns: 1fr;
  }

  .orchestration-plane {
    grid-template-columns: 1fr;
  }

  .orchestration-plane > b {
    min-height: 26px;
    transform: rotate(90deg);
  }

  .essay-card.featured {
    grid-row: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 560px) {
  :root {
    --wrap: calc(100vw - 24px);
    --narrow: calc(100vw - 24px);
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }

  .brand-word {
    letter-spacing: 0.16em;
  }

  .chapter-stop span:last-child {
    display: none;
  }

  .chapter-dot {
    width: 9px;
    height: 9px;
  }

  .chapter-guide {
    top: 2px;
  }

  .problem-hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 24px;
  }

  .file-scene {
    min-height: 360px;
  }

  .file-card {
    width: 96%;
    padding: 16px;
  }

  .file-one {
    top: 34px;
    left: 1%;
  }

  .file-two {
    top: 148px;
    right: 1%;
  }

  .file-scene > p {
    bottom: 0;
    left: 2%;
  }

  .story-steps,
  .element-grid,
  .bridge-grid {
    grid-template-columns: 1fr;
  }

  .story-step {
    min-height: 250px;
  }

  .story-step h3 {
    margin-top: 36px;
  }

  .pull-quote {
    padding-left: 24px;
  }

  .question-stack,
  .belief-quote,
  .thesis-card,
  .profile-card,
  .origin-result {
    padding: 30px 24px;
  }

  .logo-decoder {
    padding: 34px 20px;
    gap: 38px;
  }

  .narrative-aside {
    width: calc(100% - 24px);
    margin-right: 12px;
  }

  .decoded-word {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .decoder-notes article {
    grid-template-columns: 48px 1fr;
  }

  .replaceable-card,
  .durable-card,
  .principle,
  .element-card,
  .connection-card,
  .case-card,
  .essay-card {
    padding: 28px 24px;
  }

  .map-heading {
    gap: 18px;
  }

  .process-map > img {
    min-height: 300px;
  }

  .map-open-button {
    right: 50%;
    bottom: 60px;
    width: calc(100% - 34px);
    transform: translateX(50%);
  }

  .map-scroll {
    padding: 12px;
  }

  .map-scroll img {
    width: 1300px;
  }

  .framework-strip {
    padding: 24px;
    gap: 34px;
  }

  .bridge-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .roadmap-path::before {
    left: 25px;
  }

  .roadmap-node {
    padding-bottom: 58px;
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .roadmap-pin {
    width: 50px;
    height: 50px;
  }

  .roadmap-content {
    padding: 28px 22px;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .evidence-row {
    padding: 20px;
  }

  .profile-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .case-meta {
    margin-bottom: 38px;
  }

  .origin-result {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .origin-result span {
    margin-bottom: 14px;
  }

  .article-hero {
    padding-top: 78px;
  }

  .back-link {
    margin-bottom: 46px;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .article-body {
    padding-top: 50px;
  }

  .article-body blockquote {
    padding-left: 22px;
  }

  .series-nav {
    grid-template-columns: 1fr;
  }

  .next-chapter {
    padding: 38px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .next-chapter,
  .map-open-button {
    display: none;
  }

  body {
    background: white;
  }
}
