/* =========================================================
   WorldModel.global -- v2.0 Site Stylesheet
   Dark navy / gold aesthetic -- faithful to live site
   © 2026 Maris J. Ensing
   ========================================================= */

:root {
  --navy-deep: #0a0f1a;
  --navy-mid: #141d2e;
  --navy-light: #1e2d47;
  --gold: #c9a962;
  --gold-light: #e4d4a8;
  --gold-glow: rgba(201, 169, 98, 0.3);
  --teal: #16a085;
  --teal-glow: rgba(22, 160, 133, 0.3);
  --coral: #e74c3c;
  --purple: #9b59b6;
  --blue: #3498db;
  --orange: #e67e22;
  --pink: #e91e63;
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.92);
  --white-subtle: rgba(255, 255, 255, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --pearl: linear-gradient(135deg, #f8f6f0 0%, #e8e4dc 25%, #f5f3ed 50%, #ebe7df 75%, #f8f6f0 100%);

  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, #a88c4a 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(201, 169, 98, 0.08) 0%, transparent 50%), linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-classic: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Atmosphere: gradient layer + orbs + particles ── */
.bg-gradient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(22, 160, 133, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(155, 89, 182, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}
.orb { position: fixed; border-radius: 50%; filter: blur(60px); opacity: 0.15; pointer-events: none; z-index: -1; }
.orb-1 { width: 500px; height: 500px; background: var(--gold); top: -100px; left: -100px; animation: orb-drift 20s infinite ease-in-out; }
.orb-2 { width: 400px; height: 400px; background: var(--teal); bottom: -100px; right: -100px; animation: orb-drift 25s infinite ease-in-out reverse; }
.orb-3 { width: 350px; height: 350px; background: var(--purple); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: orb-drift 30s infinite ease-in-out; }
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(60px, -40px); }
  66% { transform: translate(-40px, 60px); }
}
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: var(--gold);
  animation: floatUp 18s infinite ease-in-out;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
  5% { opacity: 0.6; }
  95% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* ── Navigation ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand .tm { font-size: 0.55em; vertical-align: super; color: var(--gold-light); margin-left: 2px; }
.nav-links {
  display: flex;
  gap: 1.85rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.lang-switch {
  position: relative;
  padding-left: 1.1rem;
  margin-left: 0.4rem;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.lang-switch a {
  color: var(--white-subtle);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}
.lang-switch a.active { color: var(--gold); }
.lang-switch a:hover { color: var(--gold-light); }
.lang-switch a[aria-disabled="true"] { cursor: default; opacity: 0.55; }
.lang-switch a[aria-disabled="true"]:hover { color: var(--white-subtle); }

/* On narrow screens, hide language names beyond active, show flags only as a teaser */
@media (max-width: 900px) {
  .lang-switch a:not(.active) { font-size: 0; gap: 0; }
  .lang-switch a:not(.active)::before { font-size: 0.95rem; }
}

/* Push content past fixed nav */
main, .page-hero, .hero { padding-top: 0; }
body { padding-top: 72px; }

/* ── Hero (homepage) ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
  text-align: center;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--navy-deep), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge, .hero-eyebrow {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.hero h1 sup { font-size: 0.35em; vertical-align: super; }
.hero-subtitle {
  font-family: var(--font-classic);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--white-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-tagline strong { color: var(--gold); font-weight: 600; }
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--gold-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, #0e7a6b 100%);
  color: var(--white);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px var(--teal-glow);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Page hero (interior pages) ── */
.page-hero {
  position: relative;
  padding: 7rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--navy-deep), transparent);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.page-hero h1 sup { font-size: 0.35em; vertical-align: super; }
.page-hero .page-lede {
  font-family: var(--font-classic);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--white-muted);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Sections ── */
section { padding: 5rem 0; position: relative; }
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.section-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.section-lede {
  font-family: var(--font-classic);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--white-muted);
  max-width: 60ch;
  margin-bottom: 3rem;
  line-height: 1.65;
}
.section-header-center { text-align: center; margin-bottom: 3rem; }
.section-header-center .section-lede { margin: 1.25rem auto 0; }

/* ── Stats grid (homepage) ── */
.stats { padding: 5rem 0; background: linear-gradient(180deg, transparent 0%, rgba(201, 169, 98, 0.03) 50%, transparent 100%); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 16px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.stat-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.95rem; color: var(--white); font-weight: 600; margin-bottom: 0.6rem; }
.stat-detail { font-size: 0.85rem; color: var(--white-muted); line-height: 1.55; }

/* ── Cards grid (generic) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.85rem;
  transition: all 0.4s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 25px 50px rgba(0,0,0,0.35); }
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.card p { font-size: 0.94rem; color: var(--white-muted); line-height: 1.65; }

/* ── Layer table (architecture / reference pages) ── */
.layer-table {
  border-top: 1px solid rgba(201, 169, 98, 0.3);
  border-bottom: 1px solid rgba(201, 169, 98, 0.3);
  margin-bottom: 3rem;
}
.layer-row {
  display: grid;
  grid-template-columns: auto 11rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
  transition: background 0.25s ease;
}
.layer-row:last-child { border-bottom: none; }
.layer-row:hover { background: rgba(201, 169, 98, 0.04); }
@media (max-width: 700px) {
  .layer-row { grid-template-columns: auto 1fr; }
  .layer-row .layer-code { grid-column: 1 / -1; padding-top: 0.5rem; }
}
.layer-row.priority { background: rgba(231, 76, 60, 0.06); }
.layer-row.priority:hover { background: rgba(231, 76, 60, 0.1); }
.layer-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 2.5rem;
}
.layer-code {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
}
.layer-code small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-subtle);
  font-weight: 400;
  margin-top: 0.3rem;
}
.layer-desc { font-size: 0.96rem; line-height: 1.65; color: var(--white-muted); }
.layer-row.priority .layer-num,
.layer-row.priority .layer-code { color: var(--coral); }

/* ── Policy grid (eleven cross-cutting) ── */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.policy-cell {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  transition: all 0.3s ease;
}
.policy-cell:hover { border-color: var(--gold); transform: translateY(-3px); }
.policy-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.policy-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.55rem;
  line-height: 1.2;
}
.policy-desc { font-size: 0.9rem; color: var(--white-muted); line-height: 1.6; }

/* ── Steps (closed-loop sequence) ── */
.steps { counter-reset: step; border-top: 1px solid rgba(201, 169, 98, 0.3); border-bottom: 1px solid rgba(201, 169, 98, 0.3); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 1.7rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}
.step-content h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--gold-light); margin-bottom: 0.4rem; }
.step-content p { font-size: 0.96rem; color: var(--white-muted); line-height: 1.65; }

/* ── Books section ── */
.books-section { background: linear-gradient(180deg, transparent 0%, rgba(22, 160, 133, 0.04) 50%, transparent 100%); }
.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) { .books-grid { grid-template-columns: 1fr 1fr; } }
.book-card {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 18px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.book-card.technical { border-color: rgba(22, 160, 133, 0.3); }
.book-card:hover { border-color: var(--gold); box-shadow: 0 30px 60px rgba(0,0,0,0.4); transform: translateY(-4px); }
.book-card.technical:hover { border-color: var(--teal); box-shadow: 0 30px 60px rgba(22, 160, 133, 0.18); }
.book-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}
.book-card.technical .book-badge { background: var(--teal); color: var(--white); }
.book-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--white-subtle); margin-bottom: 1rem; text-transform: uppercase; }
.book-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--white); line-height: 1.1; margin-bottom: 0.85rem; letter-spacing: -0.01em; }
.book-spec { font-family: var(--font-mono); font-size: 0.72rem; color: var(--white-subtle); margin-bottom: 1.25rem; letter-spacing: 0.06em; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.book-desc { font-family: var(--font-classic); font-size: 1.02rem; color: var(--white-muted); line-height: 1.65; margin-bottom: 1.5rem; flex-grow: 1; }
.book-toc { font-size: 0.85rem; color: var(--white-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.book-toc-label { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.6rem; text-transform: uppercase; font-weight: 600; }
.book-card .btn { align-self: flex-start; }

/* ── Pillars (entry-point grid) ── */
.pillars { background: linear-gradient(180deg, transparent 0%, rgba(155, 89, 182, 0.04) 50%, transparent 100%); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pillar {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.25rem 1.85rem;
  transition: all 0.4s ease;
}
.pillar:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.pillar-icon { font-size: 2rem; margin-bottom: 1.25rem; color: var(--gold); }
.pillar-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--white); margin-bottom: 0.85rem; line-height: 1.15; }
.pillar-desc { font-size: 0.94rem; color: var(--white-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.2s;
}
.pillar-link:hover { gap: 0.7rem; color: var(--gold-light); }

/* ── Pathways (audience CTAs / dark band) ── */
.pathways { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy-deep) 100%); }
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pathway {
  display: block;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.25rem 1.85rem;
  color: var(--white);
  text-decoration: none;
  transition: all 0.4s ease;
}
.pathway:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.pathway-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.pathway-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; margin-bottom: 0.8rem; color: var(--white); }
.pathway-desc { font-size: 0.94rem; color: var(--white-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.pathway-arrow { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }

/* ── "Is Not" panel ── */
.flow-grid {
  border-top: 1px solid rgba(201, 169, 98, 0.3);
  border-bottom: 1px solid rgba(201, 169, 98, 0.3);
}
.flow-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}
.flow-row:last-child { border-bottom: none; }
.flow-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  min-width: 2.5rem;
}
.flow-text {
  font-family: var(--font-classic);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  color: var(--white);
  font-weight: 400;
}
.flow-text strong { font-weight: 600; color: var(--gold-light); }
.flow-text em { font-style: italic; color: var(--gold); font-weight: 500; }

/* ── Defensibility band (dark band) ── */
.defensibility { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.defense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.defense-cell {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}
.defense-cell:hover { border-color: var(--gold); transform: translateY(-3px); }
.defense-num { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1rem; }
.defense-label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 0.65rem; line-height: 1.2; }
.defense-detail { font-size: 0.85rem; color: var(--white-muted); line-height: 1.55; }

/* ── Prose / long-form content ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 3rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--gold-light); margin: 2rem 0 0.85rem; }
.prose h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 2rem 0 0.85rem; font-weight: 600; }
.prose p { margin-bottom: 1.15rem; line-height: 1.75; color: var(--white-muted); }
.prose p.lede { font-family: var(--font-classic); font-size: 1.25rem; color: var(--white); line-height: 1.6; margin-bottom: 2rem; }
.prose ul, .prose ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--white-muted); }
.prose li { margin-bottom: 0.55rem; line-height: 1.7; }
.prose strong { font-weight: 600; color: var(--white); }
.prose em { font-style: italic; color: var(--gold-light); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-classic);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--white);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.2);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  color: var(--gold-light);
}
.prose a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 169, 98, 0.4); }
.prose a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ── Callout ── */
.callout {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.callout-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.85rem; font-weight: 600; }
.callout p { margin-bottom: 0.75rem; color: var(--white-muted); }
.callout p:last-child { margin-bottom: 0; }

/* ── Glossary ── */
.glossary-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  padding: 1rem 1.25rem;
  background: rgba(201, 169, 98, 0.05);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.glossary-index strong { color: var(--gold); font-weight: 600; }
.glossary-index a { color: var(--gold-light); border-bottom: none; }
.glossary-term { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.glossary-term:last-child { border-bottom: none; }
.glossary-term h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--gold-light); margin-bottom: 0.4rem; }
.glossary-term p { font-size: 0.96rem; line-height: 1.7; color: var(--white-muted); }

/* ── Closing section ── */
.closing { padding: 6rem 0 5rem; text-align: center; }
.closing-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.closing-mark em { font-style: italic; color: var(--gold); }
.closing-line { font-family: var(--font-classic); font-size: 1.2rem; color: var(--white-muted); max-width: 56ch; margin: 0 auto 2.5rem; line-height: 1.65; }

/* ── Footer ── */
footer.site-footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #060a14 100%);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--white-muted); padding: 0.3rem 0; font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75rem; }
.footer-brand sup { font-size: 0.5em; color: var(--gold-light); }
.footer-tag { font-size: 0.9rem; line-height: 1.65; color: var(--white-muted); max-width: 36ch; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--white-subtle);
}
.footer-bottom a { color: var(--white-subtle); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Utilities ── */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.sup-tm { font-size: 0.55em; vertical-align: super; color: var(--gold-light); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-inner { padding: 0.9rem 1.2rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.82rem; }
  .lang-switch { padding-left: 0.75rem; }
  .hero, .page-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
}

@media print {
  body { background: white; color: black; }
  .bg-gradient, .orb, .particles, nav.site-nav, footer.site-footer, .pathways { display: none; }
}


/* Visual Reference thumbnail cards -- shows a preview of each diagram inside its pathway button */
.pathway-thumb {
  display: block;
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #0e1626 0%, #0a0f1a 100%);
  border-radius: 8px;
  margin: 0 0 1.1rem 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 169, 98, 0.12);
}
.pathway-thumb img,
.pathway-thumb object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}
.pathway:hover .pathway-thumb img,
.pathway:hover .pathway-thumb object {
  opacity: 1;
}
