:root {
  --paper: #F6F1E8;
  --paperWarm: #EFE7D5;
  --paperDeep: #E8DEC6;
  --card: #FFFFFF;
  --ink: #23211C;
  --inkSoft: #5C584F;
  --inkFaint: #8A8478;
  --line: #E4DCCC;
  --lineSoft: #EDE6D7;
  --charcoal: #1A1814;
  --charcoal2: #23211C;
  --gold: #C8952E;
  --goldDk: #9A6F18;
  --green: #16893A;
  --greenDk: #0F6B2E;
  --blue: #005BBF;
  --cream: #F6F1E8;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; font-family: var(--body); }
html { overflow-x: hidden; }
body { overflow-x: hidden; overflow-y: visible; width: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--charcoal); }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
}

/* Layout containers */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

/* Section rhythm */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
@media (max-width: 900px) { .section-pad { padding: 72px 0; } .section-pad-sm { padding: 48px 0; } }
@media (max-width: 560px) { .section-pad { padding: 56px 0; } .section-pad-sm { padding: 40px 0; } }

/* Numbered eyebrow (papyrusleaf-style) */
.num-eyebrow { display: flex; align-items: center; gap: 14px; }
.num-eyebrow .num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--inkFaint); letter-spacing: 0.14em; }
.num-eyebrow .rule { flex: 0 0 44px; height: 1px; background: var(--inkFaint); opacity: 0.4; }
.num-eyebrow .label { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--inkSoft); }

/* Display type */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(48px, 6.5vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; font-weight: 600; }
h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 700; }
em, .italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; }

p { margin: 0; line-height: 1.55; text-wrap: pretty; color: var(--inkSoft); }
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--inkSoft); font-weight: 400; max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0.01em; cursor: pointer; border: 1px solid transparent; transition: transform 160ms ease, background 160ms ease, color 160ms ease, border 160ms ease; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--charcoal); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { transform: translateY(-1px); background: #fff; }
.btn-outline-cream { background: transparent; color: var(--cream); border-color: rgba(246,241,232,0.4); }
.btn-outline-cream:hover { background: rgba(246,241,232,0.08); border-color: var(--cream); }
.btn .arrow { font-size: 18px; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(246,241,232,0.86); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, background 200ms ease; }
.nav.scrolled { border-color: var(--line); background: rgba(246,241,232,0.94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .word { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--inkSoft); transition: color 160ms; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active { font-weight: 700; color: var(--ink); }
.nav-desktop-cta { display: inline-flex; }
.nav-toggle { display: none; }
@media (max-width: 780px) {
  .nav-menu { display: none; }
  .nav-desktop-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: transparent; border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
  .nav-inner { height: 68px; }
}

/* Mobile nav sheet */
.nav-sheet { display: flex; flex-direction: column; gap: 4px; padding: 8px 20px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.nav-sheet a.nav-sheet-link { display: block; padding: 14px 4px; font-family: var(--body); font-weight: 600; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--lineSoft); }
.nav-sheet a.nav-sheet-link.active { font-weight: 800; }
.nav-sheet .btn { margin-top: 16px; align-self: flex-start; }

/* Utilities */
.grid { display: grid; }
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.paper { background: var(--paper); }
.paper-warm { background: var(--paperWarm); }
.paper-deep { background: var(--paperDeep); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.charcoal { background: var(--charcoal); color: var(--cream); }
.charcoal * { color: inherit; }

/* image blocks */
.img-block { position: relative; overflow: hidden; border-radius: 20px; background: var(--paperDeep); }
.img-block img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.2,0.7,0.2,1), transform 700ms cubic-bezier(0.2,0.7,0.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* Runs (papyrusleaf-style numbered list rows) */
.run { display: grid; grid-template-columns: 96px 1fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); }
.run:last-child { border-bottom: 1px solid var(--line); }
.run .idx { font-family: var(--mono); font-size: 13px; color: var(--inkFaint); font-weight: 500; padding-top: 8px; }
.run h3 { margin-bottom: 8px; }
.run p { max-width: 62ch; font-size: 17px; }
@media (max-width: 700px) { .run { grid-template-columns: 1fr; gap: 8px; } }

/* Small chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.chip-cream { background: rgba(246,241,232,0.14); color: var(--cream); border: 1px solid rgba(246,241,232,0.24); }
.chip-ink { background: var(--paperWarm); color: var(--ink); }

/* Meta line (mono) */
.meta { font-family: var(--mono); font-size: 12px; color: var(--inkFaint); letter-spacing: 0.06em; }

/* ─── Responsive section grids ─── */
/* Grid/flex items default to min-width:auto, which lets text/flex content
   force a track wider than its container. Reset so tracks actually shrink. */
.head-grid > *, .manifesto-grid > *, .manifesto-stats > *, .problem-grid > *,
.engine-diagram-grid > *, .platform-card-grid > *, .eco-layout-grid > *,
.impact-grid > *, .impact-stats-grid > *, .cta-grid > *, .footer-grid > *,
.post-grid > * {
  min-width: 0;
}

.num-eyebrow { flex-wrap: wrap; row-gap: 8px; }

.hero-inner { padding: 160px 0 140px; }
@media (max-width: 900px) { .hero-inner { padding: 132px 0 96px; } }
@media (max-width: 560px) { .hero-inner { padding: 112px 0 72px; } }

/* Generic side-by-side section header: title + lede */
.head-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
@media (max-width: 900px) { .head-grid { grid-template-columns: 1fr; gap: 20px; align-items: start; } .head-grid > p { justify-self: start !important; } }

/* Manifesto strip */
.manifesto-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.manifesto-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 780px) { .manifesto-grid { grid-template-columns: 1fr; gap: 32px; } .manifesto-stats { justify-content: flex-start; gap: 32px; } }
@media (max-width: 480px) { .manifesto-stats { gap: 24px 32px; } }

/* Problem section */
.problem-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 88px; align-items: flex-start; }
.problem-sticky { position: sticky; top: 108px; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; gap: 48px; } .problem-sticky { position: static; } }

/* Approach rows */
.approach-row { display: grid; grid-template-columns: 90px 1fr 380px; gap: 40px; padding: 40px 0; align-items: center; }
@media (max-width: 900px) {
  .approach-row { grid-template-columns: 64px 1fr; grid-template-areas: "idx content" "photo photo"; gap: 6px 24px; }
  .approach-row > :nth-child(1) { grid-area: idx; }
  .approach-row > :nth-child(2) { grid-area: content; }
  .approach-row > :nth-child(3) { grid-area: photo; margin-top: 20px; aspect-ratio: 16/10 !important; }
}
@media (max-width: 560px) {
  .approach-row { grid-template-columns: 1fr; grid-template-areas: "idx" "content" "photo"; padding: 28px 0; }
  .approach-row > :nth-child(1) { flex-direction: row !important; align-items: center; gap: 14px !important; }
}

/* Engine diagram */
.engine-diagram-grid { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .engine-diagram-grid { grid-template-columns: 1fr; gap: 24px; } .engine-diagram-grid > :nth-child(2) { flex-direction: row; justify-content: center; } .engine-diagram-grid > :nth-child(2) .engine-flow-arrow { transform: rotate(90deg); } }
.engine-orb { width: 180px; height: 180px; }
@media (max-width: 480px) { .engine-orb { width: 148px; height: 148px; } }
.engine-downstream-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .engine-downstream-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .engine-downstream-grid { grid-template-columns: 1fr; } }

/* Platform cards */
.platform-card-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.platform-card-grid.reverse { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 860px) { .platform-card-grid, .platform-card-grid.reverse { grid-template-columns: 1fr; } }
.platform-copy { padding: 48px 48px 44px; }
.platform-screen { padding: 48px; }
@media (max-width: 860px) {
  .platform-copy { padding: 40px 32px 36px; }
  .platform-screen { padding: 36px 24px; border-left: none !important; border-right: none !important; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .platform-copy { padding: 32px 20px 30px; }
  .platform-screen { padding: 28px 16px; }
}

/* Ecosystem hub-and-spoke */
.eco-layout-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px 24px; align-items: stretch; }
@media (max-width: 900px) { .eco-layout-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .eco-wrap svg { display: none; } }
@media (max-width: 640px) { .eco-layout-grid { grid-template-columns: 1fr; gap: 24px; } }
.eco-connector { text-align: right; }
@media (max-width: 640px) { .eco-connector { text-align: left !important; justify-content: flex-start !important; } }
.eco-hub { width: 240px; height: 240px; }
@media (max-width: 640px) { .eco-hub { width: 180px; height: 180px; } .eco-hub-logo { height: 60px !important; } .eco-hub-title { font-size: 20px !important; } }
.eco-wall-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .eco-wall-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .eco-wall-grid { grid-template-columns: repeat(2, 1fr); } }

/* Impact strip */
.impact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .impact-grid { grid-template-columns: 1fr; gap: 40px; } }
.impact-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 560px) { .impact-stats-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Funnel cards */
.funnel-header-inset { left: 32px; right: 32px; }
.funnel-body { padding: 36px 40px 40px; }
@media (max-width: 560px) { .funnel-header-inset { left: 22px; right: 22px; } .funnel-body { padding: 28px 24px 30px; } }

/* CTA close */
.cta-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; align-items: center; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-grid > :first-child { grid-column: auto; } }

footer { background: var(--charcoal); color: var(--cream); }
footer a { color: rgba(246,241,232,0.7); }
footer a:hover { color: var(--cream); }

/* ─── Blog / News listing + article pages ─── */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 780px) { .post-grid { grid-template-columns: 1fr; gap: 20px; } }

.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 160ms ease, box-shadow 160ms ease; }
a.post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(30,20,10,0.28); }
.post-card-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--paperDeep); }
.post-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.article-body { max-width: 68ch; }
.article-body p { color: var(--ink); font-size: 18px; line-height: 1.7; margin: 0 0 26px; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 18px; }
.article-body h3 { font-size: clamp(20px, 2.2vw, 24px); margin: 36px 0 14px; }
.article-body ul { margin: 0 0 26px; padding-left: 22px; }
.article-body li { font-size: 18px; line-height: 1.7; color: var(--ink); margin-bottom: 10px; }
.article-body blockquote { margin: 36px 0; padding-left: 24px; border-left: 3px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--inkSoft); }
