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

:root {
  --ink:       #1c1814;
  --paper:     #f0ebe0;
  --brick:     #7c3522;
  --steel:     #3e4550;
  --muted:     #8b8179;
  --rule:      #cac4b5;
  --card:      #e6e0d3;
  --warm-dark: #221c16;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 52px;
  overflow-x: hidden;
}

/* ─── Grain ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ─── Labels ─── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 12px;
  display: block;
}

/* ─── Lang toggle ─── */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  z-index: 200;
}
.lang-toggle a { color: var(--ink); text-decoration: none; font-weight: 700; transition: color .15s; }
.lang-toggle a:hover { color: var(--brick); }
.lang-toggle .sep { color: var(--rule); }
.lang-active { color: var(--muted); font-weight: 400; }

/* ─── Header ─── */
header {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 24px;
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1.5px;
}
.wordmark span { color: var(--brick); font-style: italic; }
.tagline {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.9;
  text-align: right;
}

/* ─── Section rules ─── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 60px 0;
}
.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-rule-mark {
  font-size: 8px;
  color: var(--brick);
  opacity: 0.45;
  line-height: 1;
}

/* ─── Hero ─── */
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  max-width: 750px;
  margin-bottom: 48px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.failure-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 48px;
  align-items: stretch;
}
.failure-divider { background: var(--rule); }

.failure-col {
  display: flex;
  flex-direction: column;
}
.failure-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}
.failure-col h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.failure-col > p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
}
.answer-block {
  margin-top: auto;
  border-left: 2px solid var(--brick);
  padding: 16px 20px;
  background: var(--card);
}
.answer-block .section-label { margin-bottom: 8px; }
.answer-block p {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
}

/* ─── Platform definition ─── */
.platform-def {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.platform-def blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--steel);
  font-style: italic;
  padding: 0 32px;
  position: relative;
}
.platform-def blockquote::before {
  content: '"';
  position: absolute;
  left: 2px;
  top: -14px;
  font-size: 60px;
  line-height: 1;
  color: var(--brick);
  opacity: 0.18;
  font-style: normal;
}

/* ─── Roadmap overview ─── */
.roadmap-overview > h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.2;
}
.roadmap-track {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
}
.pill-connector {
  height: 1px;
  background: var(--rule);
  margin-top: 16px;
}
.pill-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 5px;
}
.pill-when {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.stage-pill h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 6px;
}
.stage-pill p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  max-width: 200px;
}

/* ─── Stage blocks ─── */
.stage-block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stage-bg-num {
  position: absolute;
  top: -12px;
  right: -28px;
  font-family: 'DM Serif Display', serif;
  font-size: 220px;
  line-height: 0.85;
  color: var(--rule);
  pointer-events: none;
  user-select: none;
  letter-spacing: -12px;
  z-index: -1;
  opacity: 0.55;
}
.stage-header {
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.stage-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.stage-title {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  margin-bottom: 10px;
}
.stage-subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.65;
}

/* ─── Feature pairs ─── */
.feature-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
  align-items: start;
}
.feature-left h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.feature-left p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ─── University block ─── */
.uni-block {
  background: var(--card);
  padding: 28px 32px;
  margin-bottom: 44px;
}
.uni-block h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.uni-block p {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ─── Signal tags ─── */
.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.signal-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 5px 10px;
}

/* ─── Scenario cards ─── */
.scenario-card {
  background: var(--card);
  border-left: 2px solid var(--brick);
  padding: 24px 28px;
  box-shadow: 4px 4px 0 var(--rule);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scenario-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rule);
}
.scenario-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  display: block;
  margin-bottom: 10px;
  opacity: 0.65;
}
.scenario-route {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.scenario-route span { color: var(--brick); }
.scenario-card p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ─── Listing strategy ─── */
.listing-strategy {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  padding: 28px 32px;
  margin-top: 4px;
}
.listing-strategy-arrow {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--brick);
  opacity: 0.4;
  line-height: 1;
}
.strat-phase h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 8px;
}
.strat-phase p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ─── Geographic scope ─── */
.scope-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 28px;
  align-items: start;
  border-top: 2px solid var(--ink);
  padding: 40px 0;
  margin-bottom: 20px;
}
.scope-track .listing-strategy-arrow {
  margin-top: 4px;
  align-self: start;
}

/* ─── Pro grid ─── */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.pro-card {
  background: var(--card);
  border-top: 2px solid var(--ink);
  padding: 14px 16px;
}
.pro-card h4 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
}
.pro-card p {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ─── Small 2-col cards ─── */
.two-col-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.small-card {
  background: var(--card);
  padding: 24px;
  border-top: 1px solid var(--rule);
}
.small-card h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  font-weight: normal;
  margin-bottom: 8px;
  line-height: 1.2;
}
.small-card p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ─── Revenue ─── */
.revenue > h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 36px;
}
.revenue-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.revenue-lanes--4 {
  grid-template-columns: repeat(2, 1fr);
}
.revenue-lane {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lane-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}
.lane-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.revenue-lane h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.revenue-lane p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ─── Moat ─── */
.moat {
  background: var(--warm-dark);
  color: #f0ebe0;
  padding: 44px 48px;
}
.moat .section-label { color: #7c3522; }
.moat h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #f0ebe0;
}
.moat p {
  font-size: 14px;
  color: #9c958d;
  font-weight: 300;
  line-height: 1.8;
  max-width: 640px;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}
footer > p {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
}
.footer-wordmark span { color: var(--brick); font-style: italic; }

/* ─── Print ─── */
@media print {
  body { padding: 32px; }
  .lang-toggle { display: none; }
  body::after { display: none; }
  .stage-bg-num { display: none; }
}
