/* =====================================================================
   AL-Majeed Research Labs — Warm Editorial system
   Palette: cream paper · warm ink · terracotta · forest · ochre
   Type: Fraunces (serif display) + Inter (sans body)
   Motion: cinematic — long-eased reveals, parallax, counters, magnetics
   ===================================================================== */

:root {
  --paper: #f6f1e6;
  --paper-2: #efe6d5;
  --paper-3: #e7dbc4;
  --ink: #1c1812;
  --ink-2: #423a2e;
  --ink-soft: #6c6354;
  --line: rgba(28, 24, 18, 0.16);
  --line-strong: rgba(28, 24, 18, 0.34);

  --terra: #c2663b;
  --terra-deep: #a44c25;
  --terra-soft: #e7c0a6;
  --forest: #2f5d4e;
  --forest-deep: #224638;
  --forest-soft: #a8c4b7;
  --ochre: #bb8a2e;
  --ochre-deep: #98701f;
  --ochre-soft: #e3cf9a;

  --accent: var(--terra);
  --accent-deep: var(--terra-deep);
  --accent-soft: var(--terra-soft);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r: 4px;
  --r-lg: 14px;
  --shadow-sm: 0 10px 30px -22px rgba(58, 41, 20, 0.55);
  --shadow: 0 30px 60px -34px rgba(58, 41, 20, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink-2);
  background-color: var(--paper);
  background-image:
    radial-gradient(60% 50% at 12% 0%, rgba(194, 102, 59, 0.08), transparent 70%),
    radial-gradient(55% 45% at 92% 8%, rgba(47, 93, 78, 0.07), transparent 72%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* tactile paper grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection {
  background: var(--terra);
  color: var(--paper);
}

/* ---------- Layout ---------------------------------------------------- */
.wrap {
  width: min(var(--maxw), 90%);
  margin: 0 auto;
}

.measure {
  max-width: 64ch;
}

.measure-narrow {
  max-width: 46ch;
}

/* ---------- Typography ------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.display-xl {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.display-lg {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.02;
}

.display-md {
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
}

.serif-italic {
  font-style: italic;
  font-weight: 400;
}

.text-accent {
  color: var(--accent-deep);
}

.lede {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose.columns {
  column-count: 2;
  column-gap: 46px;
}

.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.1em;
  line-height: 0.74;
  font-weight: 600;
  padding: 0.06em 0.12em 0 0;
  color: var(--terra-deep);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.kicker .num {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Masthead -------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--terra), var(--ochre) 55%, var(--forest));
  z-index: 80;
  pointer-events: none;
  will-change: transform;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.82);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  width: min(var(--maxw), 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1;
}

.wordmark strong {
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.wordmark span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav a:focus-visible,
.btn:focus-visible,
.filter:focus-visible,
.slider:focus-visible {
  outline: 2px solid var(--terra-deep);
  outline-offset: 3px;
}

/* ---------- Buttons --------------------------------------------------- */
.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn.solid {
  background: var(--terra);
  color: #fff7ef;
  box-shadow: 0 14px 30px -16px rgba(164, 76, 37, 0.8);
}

.btn.solid:hover {
  background: var(--terra-deep);
}

.btn.solid.forest {
  background: var(--forest);
  box-shadow: 0 14px 30px -16px rgba(34, 70, 56, 0.8);
}

.btn.solid.forest:hover {
  background: var(--forest-deep);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.outline:hover {
  border-color: var(--ink);
  background: rgba(28, 24, 18, 0.04);
}

/* ---------- Chapters / sections --------------------------------------- */
.chapter {
  position: relative;
  padding: clamp(56px, 8vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.chapter--alt {
  background: var(--paper-2);
}

.chapter-head {
  max-width: 70ch;
}

.chapter-head .display-lg {
  margin-top: 18px;
}

.chapter-head .lede {
  margin-top: 20px;
}

.section-mark {
  position: absolute;
  top: clamp(20px, 5vw, 60px);
  right: 2%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(7rem, 17vw, 15rem);
  line-height: 0.8;
  color: rgba(28, 24, 18, 0.045);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.chapter > .wrap,
.chapter-head,
.chapter .content {
  position: relative;
  z-index: 1;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Hero ------------------------------------------------------ */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

.hero-main .kicker {
  margin-bottom: 26px;
}

.hero-main .display-xl {
  max-width: 15ch;
}

.hero-main .lede {
  margin-top: 26px;
  max-width: 54ch;
}

.hero-aside {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.hero-aside .aside-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.aside-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.aside-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
}

.aside-list li .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-2px);
}

.aside-list li .ai {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* ---------- Stat row -------------------------------------------------- */
.stat-row {
  margin-top: clamp(34px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat:not(:first-child) {
  padding-left: 22px;
}

.stat .n {
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat .n.is-terra { color: var(--terra-deep); }
.stat .n.is-forest { color: var(--forest-deep); }
.stat .n.is-ochre { color: var(--ochre-deep); }

.stat .l {
  margin-top: 10px;
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Generic card + grids -------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 1.3rem;
}

.card h2 {
  font-size: 1.55rem;
}

.card p {
  margin-top: 10px;
  color: var(--ink-2);
}

.card .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform 0.45s var(--ease);
}

.card .ic svg {
  width: 24px;
  height: 24px;
}

.card:hover .ic {
  transform: translateY(-3px) rotate(-5deg);
}

/* accent mapping */
.is-terra { --accent: var(--terra); --accent-deep: var(--terra-deep); --accent-soft: var(--terra-soft); }
.is-forest { --accent: var(--forest); --accent-deep: var(--forest-deep); --accent-soft: var(--forest-soft); }
.is-ochre { --accent: var(--ochre); --accent-deep: var(--ochre-deep); --accent-soft: var(--ochre-soft); }
.semiconductor { --accent: var(--terra); --accent-deep: var(--terra-deep); --accent-soft: var(--terra-soft); }
.quantum { --accent: var(--ochre); --accent-deep: var(--ochre-deep); --accent-soft: var(--ochre-soft); }
.blockchain { --accent: var(--forest); --accent-deep: var(--forest-deep); --accent-soft: var(--forest-soft); }

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.card .meta {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card ul li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* entry (research detail) — full-height left keyline */
.entry {
  padding-left: 32px;
}

.entry::before {
  width: 4px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
}

.entry:hover::before {
  transform: scaleY(1);
}

/* ---------- Editorial index list (home research directions) ----------- */
.directions {
  margin-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.direction {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}

.direction::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.direction:hover {
  padding-left: 22px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.direction:hover::after {
  transform: scaleX(1);
}

.direction .idx {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent-deep);
  letter-spacing: 0.1em;
}

.direction .d-body h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 520;
}

.direction .d-body p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.direction .go {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.direction:hover .go {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff7ef;
  transform: rotate(-45deg);
}

.direction .go svg {
  width: 20px;
  height: 20px;
}

/* ---------- Mission / manifesto blocks -------------------------------- */
.mission {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.mission .display-md {
  font-weight: 500;
}

.mission .lede-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.22;
  color: var(--ink);
  font-weight: 460;
}

.mission .lede-quote em {
  color: var(--terra-deep);
  font-style: italic;
}

.mission .mission-copy p {
  margin-top: 18px;
  max-width: 52ch;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.figure {
  background: var(--paper);
  padding: 26px 22px;
}

.figure .n {
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
}

.figure:nth-child(1) .n { color: var(--terra-deep); }
.figure:nth-child(2) .n { color: var(--forest-deep); }
.figure:nth-child(3) .n { color: var(--ochre-deep); }
.figure:nth-child(4) .n { color: var(--ink); }

.figure .l {
  margin-top: 10px;
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.manifesto {
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
}

.manifesto .mark {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--terra);
  display: block;
  margin-bottom: 18px;
}

.manifesto blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
}

.manifesto figcaption {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Story (numbered narrative) -------------------------------- */
.story {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.story-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.story-item .idx {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 540;
  line-height: 0.9;
  color: var(--terra);
}

.story-item h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 520;
}

.story-item p {
  margin-top: 10px;
  max-width: 64ch;
  color: var(--ink-2);
}

/* ---------- Tags / pills ---------------------------------------------- */
.tag-label {
  margin-top: 44px;
}

.tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  cursor: default;
}

.tag .td {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
}

.tag.is-forest .td { background: var(--forest); }

.tag:hover {
  transform: translateY(-3px);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tag:hover .td {
  background: var(--paper);
}

/* ---------- Contrast columns ------------------------------------------ */
.contrast {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.contrast-col {
  padding: 30px;
  background: var(--paper);
}

.contrast-col.is-before {
  border-right: 1px solid var(--line);
}

.contrast-col h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contrast-col.is-before h4 { color: var(--terra-deep); }
.contrast-col.is-after { background: color-mix(in srgb, var(--forest) 7%, var(--paper)); }
.contrast-col.is-after h4 { color: var(--forest-deep); }

.contrast-col ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.contrast-col li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-2);
}

/* ---------- Outcomes -------------------------------------------------- */
.outcomes {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.outcome {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
  background: color-mix(in srgb, var(--forest) 8%, transparent);
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.outcome svg {
  width: 15px;
  height: 15px;
}

.outcome:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--forest) 16%, transparent);
}

/* ---------- Steps (program timeline) ---------------------------------- */
.steps {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: var(--line-strong);
}

.step {
  position: relative;
  text-align: left;
}

.step .dot {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--paper);
  background: var(--terra);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.step:nth-child(2) .dot { background: var(--ochre); }
.step:nth-child(3) .dot { background: var(--forest); }
.step:nth-child(4) .dot { background: var(--ink); }

.step:hover .dot {
  transform: translateY(-5px) scale(1.06);
}

.step h4 {
  font-size: 1.15rem;
}

.step p {
  margin-top: 7px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Revenue cards --------------------------------------------- */
.revenue {
  border-top: 0;
}

.revenue::before {
  background: var(--forest);
}

.revenue .card-badge {
  color: var(--forest-deep);
  background: color-mix(in srgb, var(--forest) 12%, transparent);
  border-color: color-mix(in srgb, var(--forest) 28%, transparent);
}

.revenue h3 {
  margin-top: 14px;
}

/* ---------- Revenue simulator ----------------------------------------- */
.calc {
  margin-top: 26px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.calc::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(194, 102, 59, 0.22), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(47, 93, 78, 0.22), transparent 70%);
}

.calc-head {
  position: relative;
  z-index: 1;
}

.calc-head .kicker {
  color: var(--terra-soft);
}

.calc-head .kicker .num {
  color: var(--paper);
  border-color: var(--terra);
}

.calc-head h3 {
  color: var(--paper);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-top: 14px;
}

.calc-head p {
  margin-top: 12px;
  color: rgba(246, 241, 230, 0.74);
  max-width: 58ch;
}

.calc-body {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.calc-controls {
  display: grid;
  gap: 30px;
}

.field-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.field-top .fl {
  font-size: 0.92rem;
  color: rgba(246, 241, 230, 0.7);
}

.field-top .fv {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terra) var(--fill, 50%), rgba(246, 241, 230, 0.18) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--terra);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s var(--ease);
}

.slider::-webkit-slider-thumb:hover { transform: scale(1.18); }
.slider:active::-webkit-slider-thumb { transform: scale(1.28); }

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--terra);
  cursor: pointer;
}

.range-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.74rem;
  color: rgba(246, 241, 230, 0.5);
}

.calc-out {
  text-align: center;
  padding: 30px 24px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(168, 196, 183, 0.3);
  background: rgba(47, 93, 78, 0.22);
}

.out-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-soft);
}

.out-amount {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 580;
  font-size: clamp(2.2rem, 5.6vw, 3.4rem);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.out-scale {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-soft);
}

.out-bar {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(246, 241, 230, 0.12);
  overflow: hidden;
}

.out-bar span {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest-soft), #d8e4dc);
  transition: width 0.5s var(--ease);
}

.calc-foot {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(246, 241, 230, 0.6);
}

/* ---------- Scale CTA band -------------------------------------------- */
.scale-cta {
  margin-top: 40px;
  text-align: center;
  padding: clamp(34px, 5vw, 64px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.scale-cta .display-md {
  max-width: 20ch;
  margin: 0 auto;
}

.scale-cta p {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--ink-2);
}

.scale-cta .actions {
  justify-content: center;
}

/* ---------- Filters (publications) ------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.filter {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filter:hover { transform: translateY(-2px); border-color: var(--ink); }

.filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.paper-card.is-hidden { display: none; }

.paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.year {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.paper-card h2 {
  margin-top: 16px;
  font-size: 1.3rem;
  line-height: 1.16;
}

/* ---------- Founders / values / principles ---------------------------- */
.founder .role {
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-deep);
  letter-spacing: 0.03em;
}

.founder > p {
  margin-top: 14px;
}

/* ---------- Page hero (interior pages) -------------------------------- */
.page-hero {
  padding: clamp(50px, 7vw, 96px) 0 clamp(20px, 3vw, 36px);
}

.page-hero .display-xl {
  margin-top: 22px;
  max-width: 18ch;
}

.page-hero .lede {
  margin-top: 24px;
  max-width: 60ch;
}

/* ---------- Colophon (footer) ----------------------------------------- */
.colophon {
  margin-top: 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--terra);
}

.colophon-inner {
  width: min(var(--maxw), 90%);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 0 36px;
}

.colophon .big {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  color: var(--paper);
  max-width: 18ch;
}

.colophon .big em {
  font-style: italic;
  color: var(--terra-soft);
}

.colophon-foot {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid rgba(246, 241, 230, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.colophon-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.colophon-foot a {
  text-decoration: none;
  color: rgba(246, 241, 230, 0.78);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}

.colophon-foot a:hover { color: var(--terra-soft); }

.colophon-foot .copy {
  font-size: 0.84rem;
  color: rgba(246, 241, 230, 0.5);
}

/* ---------- Leadership team (minimal, small avatar) ------------------- */
.team {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
}

.member-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--paper-3);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.avatar.monogram {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  background:
    radial-gradient(82% 82% at 50% 28%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    var(--paper-2);
}

.member:hover .avatar {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.member-id {
  min-width: 0;
}

.member-id .card-badge {
  margin-bottom: 9px;
}

.member-id h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.04;
}

.pf-role {
  margin-top: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.pf-bio {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 360;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 48ch;
}

.pf-skills {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-skill {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pf-skill:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff7ef;
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .team { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- About / vision / mission ---------------------------------- */
.about-lede {
  max-width: 68ch;
  margin-top: 24px;
}

.vm-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
}

.vm-card h3 .vm-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-deep);
}

.vm-card p {
  margin-top: 14px;
  color: var(--ink-2);
}

/* services: two columns of listed offerings */
.service-cols {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-col h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.service-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-col li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-2);
}

/* ---------- Goals (numbered editorial) -------------------------------- */
.goals {
  margin-top: 26px;
  list-style: none;
  padding: 0;
  counter-reset: goal;
  border-top: 1px solid var(--line);
}

.goals li {
  counter-increment: goal;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--ink);
  line-height: 1.3;
}

.goals li::before {
  content: counter(goal, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--terra);
  letter-spacing: 0.05em;
}

/* ---------- Contact --------------------------------------------------- */
.contact {
  text-align: center;
}

.contact .channels {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-link {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.8vw, 2.7rem);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-link:hover {
  color: var(--terra-deep);
  border-color: var(--terra);
}

.contact .note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--forest) 34%, transparent);
  background: color-mix(in srgb, var(--forest) 8%, transparent);
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact .note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
}

/* ---------- Colophon contact + credit --------------------------------- */
.colophon-contact {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
}

.colophon-contact a {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.colophon-contact a:hover {
  color: var(--terra-soft);
  border-color: var(--terra-soft);
}

.colophon-foot .copy {
  max-width: 46ch;
}

.colophon-foot .copy a {
  color: rgba(246, 241, 230, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.colophon-foot .copy a:hover {
  color: var(--terra-soft);
}

@media (max-width: 760px) {
  .leaders { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; }
  .goals li { grid-template-columns: 44px 1fr; gap: 14px; }
}

/* ---------- Motion primitives ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.95s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.draw-rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.draw-rule.is-in {
  transform: scaleX(1);
}

.parallax {
  will-change: transform;
}

.magnetic {
  transition: transform 0.2s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { margin-top: 20px; }
  .mission { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .steps::before { display: none; }
  .calc-body { grid-template-columns: 1fr; }
  .prose.columns { column-count: 1; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
  .wordmark span { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .stat:not(:first-child) { padding-left: 0; }
  .stat:first-child, .stat-row > .stat:nth-child(2) { border-top: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
  .contrast-col.is-before { border-right: 0; border-bottom: 1px solid var(--line); }
  .figure-grid { grid-template-columns: 1fr 1fr; }
  .direction { grid-template-columns: 54px 1fr; gap: 16px; }
  .direction .go { display: none; }
  .story-item { grid-template-columns: 60px 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw-rule { transform: scaleX(1); }
  .progress { display: none; }
}

/* ---------- Coming-soon manuscript (publications) --------------------- */
.manuscript {
  max-width: 840px;
  margin: 12px auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.ms-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(246, 241, 230, 0.12);
}

.ms-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(246, 241, 230, 0.78);
  letter-spacing: 0.02em;
}

.ms-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terra);
  animation: ms-pulse 1.9s var(--ease) infinite;
}

@keyframes ms-pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 102, 59, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(194, 102, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 102, 59, 0); }
}

.ms-status {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--terra-soft);
}

.ms-sheet {
  position: relative;
  background: #fffdf7;
  color: var(--ink);
  padding: clamp(28px, 5vw, 60px);
  min-height: 480px;
}

.stamp {
  position: absolute;
  top: 24px;
  right: 22px;
  transform: rotate(7deg);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terra);
  border: 2px solid var(--terra);
  border-radius: 7px;
  padding: 7px 13px;
  opacity: 0.7;
  background: color-mix(in srgb, var(--terra) 6%, transparent);
  pointer-events: none;
}

.ms-content {
  font-family: var(--serif);
  transition: opacity 0.6s var(--ease);
}

.ms-content.ms-fade {
  opacity: 0;
}

.ms-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 560;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 26ch;
}

.ms-meta {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.ms-h {
  margin: 24px 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

.ms-p {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 64ch;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 1px;
  background: var(--terra);
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ms-caption {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .ms-sheet { min-height: 430px; }
  .stamp { top: 16px; right: 14px; }
}
