/* Beloved Ecosystem — Hero only (parchment + ink + ox-blood, from the BECOME one-pager design) */

:root {
  --burgundy: #6B0F1A;
  --burgundy-dark: #4A0000;
  --white: #ffffff;
  --parchment: #f3efe6;
  --parchment-deep: #e8e2d4;
  --paper: #faf8f3;
  --ink: #1c1914;
  --ink-soft: #3d3830;
  --hairline: rgba(28, 25, 20, 0.12);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-logo: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 4px;
}
.skip-link:focus {
  top: 0.5rem;
}

/* Hero page layout */
.hero-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem 2rem;
}

.hero-container {
  width: 100%;
  max-width: min(92vw, 1600px);
  margin: 0 auto;
}

.wordmark {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.wordmark a {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.hero-content {
  display: block;
}

/* Hero text */
.hero-text h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

@media (max-width: 959px) {
  .wordmark {
    margin-bottom: 2.5rem;
  }

  .wordmark a {
    font-size: 1.45rem;
  }

  .hero-text h1 {
    font-size: clamp(2.25rem, 10vw, 4rem);
  }
}

/* Top bar: wordmark left, account buttons right */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.account-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}
.account-nav[hidden] { display: none; }

.account-name {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-right: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.7rem 1.15rem;
  border-radius: 3px;
  border: 1px solid var(--burgundy);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-solid { background: var(--burgundy); color: var(--white); }
.btn-solid:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); }
.btn-outline { background: transparent; color: var(--burgundy); }
.btn-outline:hover { background: rgba(107,15,26,0.07); }
.btn:focus-visible, .google-btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* Join / Log in page */
.auth-page {
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem 3rem;
  max-width: calc(min(92vw, 1600px) + 2rem);
  margin: 0 auto;
}
.auth-wordmark { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.auth-panel {
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
}
.auth-panel h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.auth-sub {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 auto 2rem;
  max-width: 26rem;
}
.auth-sub a, .auth-switch a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }

.auth-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(28,25,20,0.06);
}
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 3px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.google-btn:hover { background: #f7f8f8; }
.google-btn:disabled { opacity: 0.55; cursor: default; }
.google-btn[hidden] { display: none; }
.auth-status { margin: 0; font-size: 0.92rem; color: #5f6368; }
.auth-status:not(:empty) { margin-top: 0.9rem; }
.google-btn[hidden] + .auth-status { margin-top: 0; color: #1f1f1f; }
.auth-switch { margin-top: 1.5rem; font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 600px) {
  .btn { font-size: 0.82rem; padding: 0.6rem 0.9rem; }
  .account-nav { gap: 0.45rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Site header navigation (OpenAI-style: small text menu, panel of large links) */
.site-header {
  position: relative;
  align-items: flex-start;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.site-header .wordmark { margin-bottom: 0; }
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 2.4rem;
}
.site-header .account-nav { min-height: 2.4rem; }
.nav-trigger {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.nav-trigger:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 50;
  background: var(--parchment);
  padding: 2rem 0 2.75rem;
  border-bottom: 1px solid var(--hairline);
  animation: mega-in 0.22s var(--ease);
}
.mega-panel[hidden] { display: none; }
.site-header.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(243, 239, 230, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.mega-label {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  opacity: 0.8;
}
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.mega-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
a.mega-link:hover { color: var(--burgundy); }
a.mega-link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.mega-link.is-soon { color: rgba(28, 25, 20, 0.38); cursor: default; }
.mega-link small {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
  .site-header { flex-wrap: wrap; margin-bottom: 2.5rem; }
  .primary-nav { gap: 1.25rem; }
}
@media (max-width: 600px) {
  .site-header .account-nav { width: 100%; justify-content: flex-start; order: 3; }
  .primary-nav { order: 2; }
}

/* Manifesto page */
.doc-page .hero-container { max-width: min(92vw, 1600px); }
.manifesto { max-width: 44rem; margin: 0 auto; padding-bottom: 5rem; }
.manifesto-eyebrow { margin: 0 0 1rem; font-size: 0.95rem; color: var(--burgundy); letter-spacing: 0.04em; }
.manifesto h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.manifesto .manifesto-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.manifesto .manifesto-lede { font-size: 1.2rem; line-height: 1.6; margin: 0 0 2.5rem; }
.manifesto hr { border: 0; border-top: 1px solid var(--hairline); margin: 0 0 2.75rem; }
.manifesto h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin: 2.75rem 0 0.9rem;
}
.manifesto p { font-size: 1.1rem; line-height: 1.7; color: var(--ink); margin: 0 0 1.1rem; }
.site-header > .wordmark, .site-header > .primary-nav, .site-header > .account-nav { position: relative; z-index: 51; }

/* Company link sits left, after the wordmark (Chinedu 2026-09-25) */
.primary-nav { margin-left: clamp(2rem, 18vw, 16rem); margin-right: auto; }
.site-header .account-nav { margin-left: auto; }

/* Home page sections reached from the Company menu */
.home-section { scroll-margin-top: 2rem; }
.about {
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  max-width: 64rem;
}
.about h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.about .accent { color: var(--burgundy); }
.about p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46rem; margin: 0; }
.about p a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.about p a:hover { color: var(--burgundy-dark); }
#manifesto {
  margin-left: 0;
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
}
@media (max-width: 600px) {
  .primary-nav { margin-left: auto; margin-right: 0; }
}

/* About Us is now the hero; "First-ever ..." moved to the section below (Chinedu 2026-09-25) */
.hero-text .accent { color: var(--burgundy); }
.hero-sub {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}
.hero-sub a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-sub a:hover { color: var(--burgundy-dark); }
.about h2 { margin-bottom: 0; }

/* Our Technology: BECOME section below the "First-ever ..." line (Chinedu 2026-09-25) */
.technology {
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  max-width: 64rem;
}
.technology h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.technology .technology-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.technology p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46rem; margin: 0; }
.technology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.technology-item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--burgundy);
}
.technology-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.technology-item p { font-size: 1.05rem; line-height: 1.65; }
.technology-item:target h3 { color: var(--burgundy); }
/* BECOME items stacked in one column (Chinedu 2026-09-25) */
.technology-grid { grid-template-columns: 1fr; max-width: 46rem; }
/* BECOME section early-access button (Chinedu 2026-09-26) */
.technology .technology-cta { margin-top: clamp(2rem, 4vw, 3rem); }

/* Our Founder: plain nav link + section before the Manifesto (Chinedu 2026-09-25) */
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.nav-link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.founder {
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  max-width: 64rem;
}
.founder h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.founder-body {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 46rem);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.founder-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.founder-text p { font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 1.1rem; }
.founder-text .founder-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--burgundy);
  margin: 2rem 0 0;
}
@media (max-width: 700px) {
  .founder-body { grid-template-columns: 1fr; }
  .founder-photo { max-width: 14rem; }
}

/* Join the Beloved Ecosystem: home section + /apply/ and /partner/ landing pages (Chinedu 2026-09-25) */
.join-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 1.25rem;
}
.join-paths {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 46rem;
}
.join-path { padding-top: 1.5rem; border-top: 2px solid var(--burgundy); }
.join-path.subscribe { scroll-margin-top: 7rem; }
.join-path p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); margin: 0 0 1.25rem; }
.join-path strong { color: var(--ink); font-weight: 600; }
.join-btn { display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; }

.landing { max-width: 46rem; padding-bottom: 5rem; }
.landing h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.landing-lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.landing-form { display: grid; gap: 1.25rem; padding-top: 2rem; border-top: 1px solid var(--hairline); }
.landing-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; font-size: 0.95rem; font-weight: 500; color: var(--ink); border: 0; padding: 0; margin: 0; }
.field-hint { font-weight: 400; color: var(--ink-soft); opacity: 0.8; font-size: 0.85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: #fbf9f4;
  border: 1px solid rgba(28, 25, 20, 0.22);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  box-sizing: border-box;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.checks legend { margin-bottom: 0.5rem; padding: 0; }
.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; font-size: 1rem; }
.check input { accent-color: var(--burgundy); width: 1.05rem; height: 1.05rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.landing-form .join-btn { justify-self: start; margin-top: 0.5rem; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; color: var(--ink-soft); }
.form-status.is-error { color: var(--burgundy); }
.form-done { padding-top: 2rem; border-top: 2px solid var(--burgundy); }
.form-done h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.form-done p { font-size: 1.1rem; line-height: 1.6; color: var(--ink-soft); }
.form-done a { color: var(--burgundy); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.about .join-title { font-size: 0.95rem; line-height: 1.4; color: var(--burgundy); margin: 0 0 1.25rem; max-width: none; }
.about.join h2 { margin-bottom: 0; }
.field-row { align-items: end; }

/* BECOME living agent network (Chinedu 2026-09-25, inspired by recursive graph-reasoning visuals) */
.agent-network-figure {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #2a241c 0%, var(--ink) 62%, #120f0b 100%);
  box-shadow: 0 30px 60px -30px rgba(28, 25, 20, 0.55);
}
.agent-network {
  display: block;
  width: 100%;
  height: clamp(20rem, 52vw, 34rem);
  cursor: crosshair;
}

/* Globe panel aligned to the BECOME text column (Chinedu 2026-09-25) */
.agent-network-figure { max-width: 46rem; }
.agent-network { height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 560px) { .agent-network { aspect-ratio: 1 / 1; } }

/* Ox-blood logo, sticky header, wordmark collapses to the BΞ mark on scroll (Chinedu 2026-09-25) */
.wordmark a, .site-header .wordmark a { color: var(--burgundy); position: relative; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--parchment);
  box-shadow: 0 0 0 100vmax var(--parchment);
  clip-path: inset(0 -100vmax -1px);
  padding: 0.9rem 0;
  transition: padding 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  left: -100vmax; right: -100vmax; bottom: 0;
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled { padding: 0.6rem 0; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .wordmark a { display: grid; align-items: center; }
.wm-full, .wm-mark { grid-area: 1 / 1; transition: opacity 0.3s var(--ease), transform 0.35s var(--ease); }
.wm-full { transform-origin: left center; }
.wm-mark { width: 3.1rem; height: auto; opacity: 0; transform: scale(0.85); transform-origin: left center; pointer-events: none; }
.site-header.is-scrolled .wm-full { opacity: 0; transform: scale(0.7); pointer-events: none; }
.site-header.is-scrolled .wm-mark { opacity: 1; transform: none; }
.home-section { scroll-margin-top: 6rem; }
@media (max-width: 959px) { .wm-mark { width: 2.6rem; } }
@media (prefers-reduced-motion: reduce) { .site-header, .wm-full, .wm-mark { transition: none; } }
.site-header.is-scrolled .wm-full { position: absolute; left: 0; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) {
  .site-header.is-scrolled { flex-wrap: nowrap; align-items: center; margin-bottom: 2.5rem; }
  .site-header.is-scrolled .primary-nav { margin-left: auto; margin-right: 0; gap: 1rem; min-height: 0; }
  .site-header.is-scrolled .nav-trigger, .site-header.is-scrolled .nav-link { font-size: 0.9rem; }
  .site-header.is-scrolled .account-nav { display: none; }
}
.site-header .wordmark a { min-width: 5.35em; } /* keep the nav from shifting when the wordmark collapses */
@media (max-width: 600px) {
  .site-header .wordmark a { min-width: 0; }
  .site-header.is-scrolled .primary-nav a { white-space: nowrap; }
}

/* Less space above the header */
main.hero-page { padding-top: 0.5rem; }

/* Ox-blood footer (Anthropic-style) */
.site-footer {
  background: var(--burgundy);
  color: var(--parchment);
  padding: clamp(3rem, 6vw, 5rem) 1rem 2rem;
}
.footer-inner {
  max-width: min(92vw, 1600px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 3fr;
  gap: 3rem 2rem;
}
.footer-wordmark {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--parchment);
}
.footer-social { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; gap: 1rem; }
.footer-social a { display: inline-flex; color: var(--parchment); opacity: 0.85; transition: opacity 0.2s var(--ease); }
.footer-social a:hover { opacity: 1; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 2rem; }
.footer-heading { margin: 0 0 1rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(243, 239, 230, 0.6); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.95rem; color: var(--parchment); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.footer-col a:hover { border-bottom-color: var(--parchment); }
.site-footer a:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
.footer-legal { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(243, 239, 230, 0.2); font-size: 0.85rem; color: rgba(243, 239, 230, 0.7); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-social a { align-items: center; height: 22px; }

/* Nav fix: the full-bleed band no longer clips the dropdown panels (Chinedu 2026-09-25) */
.site-header { box-shadow: none; clip-path: none; }
.site-header::before {
  top: 0;
  z-index: -1;
  background: var(--parchment);
  border-bottom: 1px solid transparent;
  opacity: 1;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled::before { border-bottom-color: var(--hairline); }
.site-header > .wordmark, .site-header > .primary-nav, .site-header > .account-nav { position: relative; z-index: 45; }
html, body { overflow-x: clip; }

/* News index + article pages (Chinedu 2026-09-25) */
.nav-link.is-current { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.news-index, .news-article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 7rem); }
.news-index { max-width: 50rem; }
.news-index h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 2rem; color: var(--ink); }
.news-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); }
.news-table th { text-align: left; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding: 0 1.5rem 0.9rem 0; border-bottom: 1px solid var(--hairline); }
.news-table td { vertical-align: top; padding: 1.05rem 1.5rem 1.05rem 0; border-bottom: 1px solid var(--hairline); font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.news-table td:first-child, .news-table th:first-child { width: 9rem; white-space: nowrap; }
.news-table td:nth-child(2), .news-table th:nth-child(2) { width: 10rem; }
.news-table td:last-child { padding-right: 0; }
.news-table td a { color: var(--ink); text-decoration: none; }
.news-table td a:hover { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .news-table thead { display: none; }
  .news-table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); }
  .news-table td { border: 0; padding: 0; width: auto !important; font-size: 0.85rem; }
  .news-table td:last-child { grid-column: 1 / -1; margin-top: 0.35rem; font-size: 1.02rem; }
}
.news-article { max-width: 44rem; }
.news-meta { font-family: var(--font-sans); font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 1.25rem; }
.news-meta a { color: var(--burgundy); text-decoration: none; }
.news-meta a:hover { text-decoration: underline; }
.news-article h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 1.5rem; color: var(--ink); }
.news-lede { font-family: var(--font-sans); font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.6; color: var(--ink); margin: 0 0 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--hairline); }
.news-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; margin: 2.75rem 0 0.9rem; color: var(--ink); }
.news-body p { font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); margin: 0 0 1.15rem; }
.news-body p.news-ref { padding-left: 1rem; border-left: 2px solid var(--burgundy); }
.news-body a, .news-back a { color: var(--burgundy); text-underline-offset: 3px; }
.news-back { font-family: var(--font-sans); margin-top: 3rem; }
.news-back a { text-decoration: none; }
.news-back a:hover { text-decoration: underline; }
.news-index, .news-article { padding-top: clamp(0.5rem, 2vw, 1.5rem); }


/* Open menu stands apart from the dimmed page (OpenAI-style), and narrow windows get
   a single menu button with a full-screen menu (Anthropic-style). Chinedu 2026-09-25 */
.site-header::before { z-index: 41; }
.mega-panel { top: 100%; padding-top: 2.25rem; animation: mega-in 0.22s var(--ease); }
.mega-panel::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -100vmax; right: -100vmax;
  z-index: -1;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 18px 40px -18px rgba(28, 25, 20, 0.28);
}
.site-header.menu-open::after {
  background: rgba(28, 25, 20, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.site-header.menu-open::before { border-bottom-color: transparent; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 45;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}
.menu-toggle:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.mt-bar { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle[aria-expanded="true"] .mt-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mt-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .mt-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 58;
  background: var(--parchment);
  border-top: 1px solid var(--hairline);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: mega-in 0.22s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mm-inner { max-width: min(92vw, 1600px); margin: 0 auto; padding: 1.5rem 0 3rem; }
.mm-section { display: grid; gap: 0.35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--hairline); }
.mm-label { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--ink-soft); opacity: 0.8; }
.mm-link { font-family: var(--font-sans); font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.mm-link:hover, .mm-link:focus-visible { color: var(--burgundy); }
.mm-account { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-top: 1.75rem; }
.mm-account .btn { font-size: 0.95rem; padding: 0.75rem 1.2rem; }
html.mm-lock, html.mm-lock body { overflow: hidden; }
/* Full-screen mobile menu top row: logo left, X to close right. Chinedu 2026-09-26 */
.mobile-menu { border-top: 0; z-index: 70; } /* above the sticky header, so its own X is always on top */
.mm-top {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  max-width: min(92vw, 1600px); margin: 0 auto;
  padding: 0.9rem 0;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
}
.mm-home { display: inline-flex; color: var(--burgundy); }
.mm-mark { width: 2.4rem; height: 1.6rem; }
.mm-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.mm-close:hover { color: var(--burgundy); }
.mm-close:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.mm-inner { padding-top: 0.5rem; }

@media (max-width: 1119px) { /* hamburger before Log in / Create account can wrap (Chinedu 2026-09-26) */
  .site-header, .site-header.is-scrolled { flex-wrap: nowrap; align-items: center; }
  .site-header .primary-nav, .site-header .account-nav { display: none !important; }
  .menu-toggle { display: inline-flex; }
  .site-header .mega-panel { display: none !important; }
}

/* Narrow footer: logo and social icons move to the bottom, above the copyright */
@media (max-width: 760px) {
  .footer-brand { order: 2; padding-top: 0.5rem; }
  .footer-legal { order: 3; }
  .footer-social { margin-top: 1.25rem; }
}

/* Header band reaches the top edge, so the open menu's dimmed backdrop no longer shows a strip above it (Chinedu 2026-09-26) */
.site-header::before { top: -100vh; }

/* Cookie consent banner, shown to visitors in Europe/UK only (Chinedu 2026-09-26) */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 34rem; margin-left: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem; background: var(--parchment); color: var(--ink);
  border: 1px solid var(--hairline); box-shadow: 0 12px 32px -12px rgba(28, 25, 20, 0.35);
  font-family: var(--font-sans); font-size: 0.92rem; line-height: 1.5;
}
.consent-banner p { margin: 0; flex: 1 1 14rem; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent-banner .btn { padding: 0.45rem 1rem; font-size: 0.88rem; }
.field select { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: #fbf9f4; border: 1px solid rgba(28, 25, 20, 0.22); border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%; box-sizing: border-box; }
.field select:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.landing-lede a { color: var(--burgundy); }
.field-row { align-items: end; }

/* Privacy policy (Termly content, restyled) */
.policy { max-width: 46rem; padding: clamp(1rem, 3vw, 2rem) 0 5rem; font-size: 1rem; line-height: 1.65; color: var(--ink); }
.policy h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.policy h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 2.5rem 0 0.75rem; scroll-margin-top: 6rem; }
.policy h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; scroll-margin-top: 6rem; }
.policy [id] { scroll-margin-top: 6rem; }
.policy h1, .policy h2 { font-weight: 400 !important; }
.policy a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.policy ul { list-style-type: square; padding-left: 1.4rem; margin: 0.5rem 0 1rem; }
.policy ul ul { list-style-type: circle; }
.policy li { margin: 0.3rem 0; }
.policy li::marker { color: var(--burgundy); }
.policy table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; display: block; overflow-x: auto; }
.policy th, .policy td { border: 1px solid var(--hairline, rgba(28,25,20,.18)); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.policy th { font-weight: 600; background: rgba(28,25,20,.04); }
.policy [hidden] { display: none; }

/* Email subscribe (home, under Partner with us) */
.subscribe-form { display: grid; gap: 0.45rem; padding: 0; border: 0; max-width: 30rem; }
.subscribe-label { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.subscribe-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1 1 14rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fbf9f4; border: 1px solid rgba(28, 25, 20, 0.22); border-radius: 2px;
  padding: 0.7rem 0.8rem; box-sizing: border-box; min-width: 0;
}
.subscribe-form input[type="email"]:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.subscribe-form .btn[disabled] { opacity: 0.6; cursor: default; }
.join-path .subscribe-note { font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); margin: 0.75rem 0 0; }
.subscribe-note a { color: inherit; }
.join-path .subscribe-status { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--ink-soft); min-height: 1.2em; }
.join-path .subscribe-status.is-error { color: var(--burgundy); }

/* Our Process: TRL ladder between BECOME and Our Founder (Chinedu 2026-09-27) */
.process {
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  max-width: 64rem;
}
.process-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.process h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 52rem;
}
.process-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 50rem;
  margin: 0;
}
.process-intro .process-hl { color: var(--burgundy); }
.process-ladder {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  border-top: 2px solid var(--burgundy);
}
.process-level {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.process-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 0.9;
  color: var(--ink);
}
.process-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0.2rem 0 0.5rem;
}
.process-body p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 40rem; }
.process-tag {
  justify-self: end;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .process-level { grid-template-columns: 3rem minmax(0, 1fr); }
  .process-tag { grid-column: 2; justify-self: start; margin-top: 0; }
}

/* Founder photo caption: name, title, LinkedIn (Chinedu 2026-09-27) */
.founder-card { margin: 0; }
.founder-caption { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1rem; }
.founder-name { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.founder-role { font-size: 0.95rem; color: var(--ink-soft); }
.founder-linkedin { display: inline-flex; align-self: flex-start; margin-top: 0.6rem; color: var(--burgundy); transition: color 0.2s var(--ease); }
.founder-linkedin:hover { color: var(--burgundy-dark); }
.founder-linkedin:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
@media (max-width: 700px) { .founder-card { max-width: 14rem; } }

/* Our first startup: FeMoco Labs, below Our Process (Chinedu 2026-09-27) */
.startup {
  margin-top: clamp(5rem, 12vw, 10rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
  max-width: 64rem;
}
.startup h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.startup-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.startup-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.5rem, 3.4vw, 2.25rem) clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.1rem, 2.4vw, 1.5rem);
  background: #0a0908;
  border: 1px solid #2a2420;
  border-radius: 16px;
  box-shadow: 0 24px 48px -30px rgba(10, 9, 8, 0.7);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #f5efe6;
  text-decoration: none;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.startup-brand svg { width: clamp(56px, 6vw, 72px); height: auto; flex: none; }
.startup-brand:hover { border-color: #c4654a; transform: translateY(-1px); }
.startup-brand:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.startup-text h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.startup-text p { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 36rem; }
.startup-hl { color: var(--burgundy); font-weight: 600; }
.startup-figure { margin: 0; }
.startup-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(28, 25, 20, 0.45);
}
@media (max-width: 820px) {
  .startup-body { grid-template-columns: 1fr; }
  .startup-figure { max-width: 30rem; }
}

/* Homepage manifesto teaser + standalone manifesto page (Chinedu 2026-10-01) */
.manifesto-teaser { max-width: 44rem; margin: 0 auto; padding-bottom: 5rem; }
.manifesto-teaser p { font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 1.1rem; }
.manifesto-teaser .manifesto-teaser-sub { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.3; color: var(--ink); }
.manifesto-page .manifesto { padding-top: clamp(2rem, 5vw, 4rem); }
.manifesto-teaser h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 clamp(1.5rem, 3vw, 2rem); }
