/* ==========================================================================
   CodeLangs AI — Executive Founder Monograph & Architecture Chronicle
   Bespoke luxury layout, architectural pipeline stepper & slim timeline rail.
   Strict Content Security Policy (zero inline styles). Complete theme adaptation.
   ========================================================================== */

.founder-page {
  --founder-accent: var(--dashboard-accent, var(--color-primary));
  --founder-accent-deep: var(--dashboard-accent-deep, var(--color-primary-dark));
  --founder-accent-soft: var(--dashboard-accent-soft, var(--color-primary-soft));
  --founder-ink: var(--dashboard-heading, var(--color-heading));
  --founder-text: var(--dashboard-text, var(--color-text));
  --founder-muted: var(--dashboard-muted, var(--color-muted));
  --founder-surface: var(--dashboard-surface, var(--color-surface));
  --founder-border: var(--dashboard-border, var(--color-border));
  --founder-soft: color-mix(in srgb, var(--founder-accent) 7%, var(--founder-surface));
  --founder-glow: color-mix(in srgb, var(--founder-accent) 22%, transparent);
  --founder-glow-soft: color-mix(in srgb, var(--founder-accent) 9%, transparent);
  --founder-card-bg: color-mix(in srgb, var(--founder-surface) 97%, var(--founder-accent));
  color: var(--founder-text);
  padding-bottom: 6rem;
}

.founder-page__crumbs {
  padding-block: 1rem 0.5rem;
}

/* Ensure sticky navbar and TOC */
:is(.public-nav, .topbar, .account-navbar) {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

@supports (overflow: clip) {
  body:has([data-founder-page]):not(.modal-open) {
    overflow-x: clip;
  }
}

.founder-page :is(a, button, summary):focus-visible {
  outline: 3px solid var(--founder-accent);
  outline-offset: 4px;
}

.founder-profile,
.founder-prose :is(h2, h3)[id],
.founder-prose[id],
.founder-gallery [id] {
  scroll-margin-top: 7rem;
}

.founder-profile + .founder-profile {
  margin-top: 5rem;
}

/* Fixed Reading Progress Bar */
.founder-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
  width: 100%;
  height: 3.5px;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--founder-accent);
  pointer-events: none;
}

.founder-progress::-webkit-progress-bar {
  background: transparent;
}

.founder-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--founder-accent), #38bdf8);
  box-shadow: 0 0 12px var(--founder-glow);
}

.founder-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--founder-accent), #38bdf8);
}

/* Eyebrow Component */
.founder-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--founder-accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-eyebrow::before {
  content: "";
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* Multi-profile Switcher */
.founder-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: min(100% - 3rem, 76rem);
  margin: 0 auto 1.5rem;
}

.founder-switcher__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.4rem 1.15rem 0.4rem 0.55rem;
  border: 1px solid var(--founder-border);
  border-radius: 999px;
  background: var(--founder-surface);
  color: var(--founder-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.founder-switcher__chip:hover {
  transform: translateY(-1px);
  border-color: var(--founder-accent);
  box-shadow: 0 4px 14px var(--founder-glow);
}

.founder-switcher__chip img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================================================
   1. SPLIT-CANVAS EXECUTIVE MONOGRAPH HERO (.founder-monograph)
   ========================================================================== */

.founder-monograph {
  position: relative;
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(1000px circle at 85% 15%, rgba(91, 77, 232, 0.35), transparent 60%),
              radial-gradient(800px circle at 15% 90%, rgba(14, 165, 164, 0.18), transparent 55%),
              linear-gradient(155deg, #090d16 0%, #111827 50%, #171b30 100%);
  color: #e2e8f0;
  box-shadow: 0 28px 70px -15px rgba(9, 13, 22, 0.75), var(--shadow-md);
  overflow: hidden;
}

.founder-monograph::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--founder-accent) 40%, #38bdf8 75%, transparent 95%);
  opacity: 0.95;
}

.founder-monograph__shell {
  padding: clamp(2.4rem, 4.5vw, 4rem) clamp(1.8rem, 4.5vw, 3.8rem) 2.2rem;
}

.founder-monograph__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.founder-monograph__left {
  min-width: 0;
}

.founder-monograph__prestige {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.founder-monograph__kicker {
  color: #c7d2fe;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.founder-monograph__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.founder-monograph__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: monograph-pulse 2.2s infinite;
}

@keyframes monograph-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.founder-monograph__name {
  max-width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-wrap: nowrap;
}

.founder-monograph__headline {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  color: #38bdf8;
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.founder-monograph__summary {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  color: #cbd5e1;
  font-size: 1.16rem;
  line-height: 1.75;
  text-wrap: pretty;
}

/* Minimalist Credential Pills */
.founder-monograph__credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 48rem;
  margin-top: 1.85rem;
}

.founder-cred-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.founder-cred-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.founder-cred-badge__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.founder-cred-badge__text {
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
  color: #f1f5f9;
}

/* Action Deck */
.founder-monograph__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.founder-page :is(.founder-monograph__actions, .founder-cta, .founder-empty) .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  min-height: 48px;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}

.founder-btn-primary {
  border: 1px solid var(--founder-accent);
  background: linear-gradient(135deg, var(--founder-accent), var(--founder-accent-deep));
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(91, 77, 232, 0.5);
}

.founder-btn-primary:hover {
  transform: translateY(-1.5px);
  background: var(--founder-accent-deep);
  box-shadow: 0 8px 26px rgba(91, 77, 232, 0.65);
}

.founder-btn-framework {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8 !important;
  font-weight: 700;
}

.founder-btn-framework:hover {
  transform: translateY(-1.5px);
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
}

.founder-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0 !important;
}

.founder-btn-ghost:hover {
  transform: translateY(-1.5px);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}

/* Right Column: Frameless Silhouette Portrait */
.founder-monograph__right {
  min-width: 0;
}

/* ==========================================================================
   MULTI-LAYERED EXECUTIVE BLUEPRINT PORTRAIT (.founder-portrait-deck)
   ========================================================================== */

.founder-portrait-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22.5rem;
  margin-inline: auto;
}

/* Ambient Luminous Backlight */
.founder-portrait-deck__ambient {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, rgba(56, 189, 248, 0.42) 0%, rgba(99, 102, 241, 0.28) 48%, transparent 72%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
}

/* 3D Blueprint Offset Layer */
.founder-portrait-deck__blueprint {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  aspect-ratio: 9 / 14.5;
  border-radius: 28px;
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.75));
  background-image:
    radial-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.75));
  background-size: 14px 14px, 100% 100%;
  transform: translate(10px, 10px);
  pointer-events: none;
  z-index: 2;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.founder-portrait-deck:hover .founder-portrait-deck__blueprint {
  transform: translate(14px, 14px);
  border-color: rgba(56, 189, 248, 0.6);
}

/* Card Frame */
.founder-portrait-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.6), rgba(99, 102, 241, 0.35), rgba(255, 255, 255, 0.18));
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(56, 189, 248, 0.22);
  z-index: 3;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 380ms ease;
}

.founder-portrait-deck:hover .founder-portrait-card {
  transform: translateY(-5px);
  box-shadow: 0 35px 80px -18px rgba(0, 0, 0, 0.9), 0 0 50px -8px rgba(56, 189, 248, 0.35);
}

/* Architectural Precision Reticles (viewfinder corners) */
.founder-portrait-card__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 6;
  border-color: #38bdf8;
  border-style: solid;
  opacity: 0.85;
  transition: opacity 300ms ease, filter 300ms ease;
}

.founder-portrait-card__corner--tl {
  top: -6px;
  left: -6px;
  border-width: 2.5px 0 0 2.5px;
  border-top-left-radius: 6px;
}

.founder-portrait-card__corner--tr {
  top: -6px;
  right: -6px;
  border-width: 2.5px 2.5px 0 0;
  border-top-right-radius: 6px;
}

.founder-portrait-card__corner--bl {
  bottom: -6px;
  left: -6px;
  border-width: 0 0 2.5px 2.5px;
  border-bottom-left-radius: 6px;
}

.founder-portrait-card__corner--br {
  bottom: -6px;
  right: -6px;
  border-width: 0 2.5px 2.5px 0;
  border-bottom-right-radius: 6px;
}

.founder-portrait-deck:hover .founder-portrait-card__corner {
  opacity: 1;
  filter: drop-shadow(0 0 4px #38bdf8);
}

/* Photo Trigger & View Container - Pure, 100% Unobscured */
.founder-portrait-card__trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 21px;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 9 / 14.5;
  cursor: zoom-in;
  text-align: left;
}

/* High-Fidelity, Bright & Clear Image */
.founder-portrait-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.03) brightness(1.05);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.founder-portrait-card__trigger:hover .founder-portrait-card__img {
  transform: scale(1.03);
  filter: contrast(1.05) brightness(1.08);
}

/* Subtle Corner Zoom Icon */
.founder-portrait-card__expand {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: transform 300ms ease, background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.founder-portrait-card__expand svg {
  width: 1.05rem;
  height: 1.05rem;
}

.founder-portrait-card__trigger:hover .founder-portrait-card__expand {
  transform: scale(1.12);
  background: rgba(56, 189, 248, 0.9);
  border-color: #38bdf8;
  color: #090d16;
}

/* Clean Pedestal Caption Below Photo (Founder Name & Branding) */
.founder-portrait-caption {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.founder-portrait-caption__beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: portrait-beacon 2s infinite;
}

@keyframes portrait-beacon {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.founder-portrait-caption__name {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.founder-portrait-caption__sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

.founder-portrait-caption__brand {
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.founder-portrait-card__expand svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Monogram fallback for profiles with no photo */
.founder-hero__monogram {
  display: grid;
  place-items: center;
  border-radius: 23px;
  background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.35), rgba(15, 23, 42, 0.95));
  color: #c7d2fe;
  font-size: 5.5rem;
  font-weight: 850;
  aspect-ratio: 3.75 / 5;
  width: 100%;
}

/* ==========================================================================
   2. ARCHITECTURAL SYSTEM PIPELINE STRIP (.founder-pipeline)
   ========================================================================== */

.founder-pipeline {
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.founder-pipeline__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.founder-pipeline__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.founder-pipeline__spark {
  color: #38bdf8;
}

.founder-pipeline__track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  font-size: 0.82rem;
}

.founder-pipeline__step {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-weight: 600;
}

.founder-pipeline__step--active {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 750;
}

.founder-pipeline__arrow {
  color: #64748b;
  font-weight: 700;
}

/* ==========================================================================
   3. ASYMMETRIC BODY: SLIM TIMELINE RAIL + MAGAZINE CHRONICLE
   ========================================================================== */

.founder-body {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.8rem);
  padding-top: 3.8rem;
}

.founder-body--no-toc {
  grid-template-columns: minmax(0, 1fr);
}

/* Left: Sleek Minimalist Sticky Timeline Rail */
.founder-toc {
  position: sticky;
  top: 6rem;
  min-width: 0;
  border: 1px solid var(--founder-border);
  border-radius: var(--radius-md);
  background: var(--founder-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.founder-toc__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--founder-border);
  background: var(--founder-card-bg);
}

.founder-toc__avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--founder-surface);
}

.founder-toc__meta strong {
  display: block;
  color: var(--founder-ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
}

.founder-toc__meta span {
  display: block;
  margin-top: 0.15rem;
  color: var(--founder-muted);
  font-size: 0.76rem;
}

.founder-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.founder-toc__summary::-webkit-details-marker {
  display: none;
}

.founder-toc__title {
  color: var(--founder-muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-toc__chevron {
  color: var(--founder-accent);
  font-size: 1.35rem;
  transition: transform var(--ease);
}

.founder-toc__details[open] .founder-toc__chevron {
  transform: rotate(180deg);
}

.founder-toc__nav {
  max-height: calc(100svh - 19rem);
  min-height: 8rem;
  overflow-y: auto;
  padding: 0.4rem 0.65rem 0.85rem;
  scrollbar-gutter: stable;
}

.founder-toc__list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-toc__link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-height: 38px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  color: var(--founder-muted);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.35;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.founder-toc__index {
  flex: 0 0 1.25rem;
  color: var(--founder-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.founder-toc__label {
  min-width: 0;
  flex: 1 1 auto;
}

.founder-toc__item--h3 .founder-toc__link {
  padding-left: 1.35rem;
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--founder-muted) 85%, transparent);
}

.founder-toc__item--h3 .founder-toc__index {
  flex: 0 0 0.85rem;
  font-size: 0.95rem;
}

.founder-toc__link:hover {
  background: var(--founder-soft);
  color: var(--founder-ink);
}

.founder-toc__link[aria-current="true"] {
  border-left-color: var(--founder-accent);
  background: color-mix(in srgb, var(--founder-accent) 11%, var(--founder-surface));
  color: var(--founder-accent);
  font-weight: 750;
}

.founder-toc__link[aria-current="true"] .founder-toc__index {
  color: var(--founder-accent);
}

.founder-toc__badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--founder-accent) 16%, var(--founder-surface));
  color: var(--founder-accent);
}

.founder-toc__back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--founder-border);
  color: var(--founder-muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.founder-toc__back:hover {
  background: var(--founder-soft);
  color: var(--founder-accent);
}

/* ==========================================================================
   Main Magazine Chronicle
   ========================================================================== */

.founder-main {
  display: grid;
  gap: 3.2rem;
  min-width: 0;
}

.founder-story {
  border: 1px solid var(--founder-border);
  border-radius: var(--radius-lg);
  background: var(--founder-surface);
  box-shadow: var(--shadow-sm);
  overflow: clip;
}

.founder-story__header {
  padding: clamp(1.8rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--founder-border);
  background: radial-gradient(circle at 90% 10%, var(--founder-glow-soft), transparent 45%), var(--founder-card-bg);
}

.founder-story__header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.founder-story__read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--founder-border);
  background: var(--founder-surface);
  color: var(--founder-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.founder-story__title {
  margin: 0;
  color: var(--founder-ink);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.founder-story__lead {
  margin: 0.75rem 0 0;
  color: var(--founder-muted);
  font-size: 1.14rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Magazine Prose */
.founder-prose {
  max-width: 72ch;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.8rem);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--founder-text);
  counter-reset: founder-section;
}

.founder-prose > p:first-of-type {
  font-size: 1.25rem;
  font-weight: 550;
  line-height: 1.8;
  color: var(--founder-ink);
}

.founder-prose p {
  margin-block: 1.25rem;
  text-wrap: pretty;
}

.founder-prose strong {
  color: var(--founder-ink);
  font-weight: 750;
}

/* Chapter Headings (H2) */
.founder-prose h2 {
  margin-top: 3.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--founder-border);
  color: var(--founder-ink);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
  transition: background var(--ease), padding var(--ease), border-color var(--ease);
}

.founder-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.founder-prose h2::before {
  counter-increment: founder-section;
  content: "MILESTONE " counter(founder-section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.65rem;
  color: var(--founder-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.founder-prose h2::after {
  display: none;
}

/* Sub-headings (H3) */
.founder-prose h3 {
  margin-top: 2.3rem;
  padding-left: 1.15rem;
  border-left: 4px solid var(--founder-accent);
  color: var(--founder-ink);
  font-size: 1.32rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: background var(--ease), padding var(--ease), border-color var(--ease);
}

/* ==========================================================================
   ANCHOR TARGET SPOTLIGHT (:target)
   Visually spotlights #dattatray-sabne-practical-learning when navigated to.
   ========================================================================== */

.founder-prose :is(h2, h3):target {
  scroll-margin-top: 7rem;
  position: relative;
  padding: 1.35rem 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--founder-accent) 14%, var(--founder-surface)), var(--founder-surface));
  border: 1.5px solid color-mix(in srgb, var(--founder-accent) 45%, var(--founder-border));
  border-left: 6px solid var(--founder-accent) !important;
  box-shadow: 0 10px 35px -8px var(--founder-glow);
  animation: founder-spotlight 2.4s ease-out 1;
}

@keyframes founder-spotlight {
  0% {
    background: color-mix(in srgb, var(--founder-accent) 28%, var(--founder-surface));
    box-shadow: 0 0 0 0 var(--founder-glow);
  }
  50% {
    background: color-mix(in srgb, var(--founder-accent) 18%, var(--founder-surface));
    box-shadow: 0 0 0 14px transparent;
  }
  100% {
    background: linear-gradient(135deg, color-mix(in srgb, var(--founder-accent) 14%, var(--founder-surface)), var(--founder-surface));
    box-shadow: 0 10px 35px -8px var(--founder-glow);
  }
}

/* Custom Checklist Cards for Unordered Lists */
.founder-prose ul {
  list-style: none;
  padding-left: 0;
  margin-block: 1.35rem 1.65rem;
  display: grid;
  gap: 0.75rem;
}

.founder-prose ul > li {
  position: relative;
  padding-left: 2rem;
  margin-block: 0;
  line-height: 1.7;
}

.founder-prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.65em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--founder-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--founder-accent) 20%, transparent);
}

.founder-prose ol {
  padding-left: 1.65rem;
  margin-block: 1.35rem 1.65rem;
  display: grid;
  gap: 0.75rem;
}

.founder-prose ol > li {
  line-height: 1.7;
}

/* Horizontal Rule Divider */
.founder-prose hr {
  margin-block: 3.2rem;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--founder-border) 20%, var(--founder-border) 80%, transparent);
}

/* Editorial Blockquotes */
.founder-prose blockquote {
  position: relative;
  margin-block: 2.2rem;
  padding: 1.65rem 2rem 1.65rem 2.2rem;
  border-left: 4.5px solid var(--founder-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: color-mix(in srgb, var(--founder-accent) 6.5%, var(--founder-surface));
  font-size: 1.18rem;
  font-weight: 550;
  line-height: 1.8;
  color: var(--founder-ink);
}

/* ==========================================================================
   4. CORPORATE EVIDENCE GALLERY (.founder-gallery)
   ========================================================================== */

.founder-gallery {
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border: 1px solid var(--founder-border);
  border-radius: var(--radius-lg);
  background: var(--founder-surface);
  box-shadow: var(--shadow-sm);
}

.founder-gallery__intro {
  margin-bottom: 1.8rem;
}

.founder-gallery__title {
  margin: 0.45rem 0 0.35rem;
  color: var(--founder-ink);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.founder-gallery__desc {
  margin: 0;
  color: var(--founder-muted);
  font-size: 0.96rem;
}

.founder-gallery .media-gallery__trigger {
  border-radius: 16px;
}

/* ==========================================================================
   5. CLOSING MASTERCLASS STAGE (.founder-cta)
   ========================================================================== */

.founder-cta {
  padding: clamp(2.2rem, 4.5vw, 3.8rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 90% 10%, rgba(91, 77, 232, 0.45), transparent 58%),
              linear-gradient(145deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
  color: #cbd5e1;
  box-shadow: 0 28px 70px -15px rgba(9, 13, 22, 0.8);
  position: relative;
  overflow: hidden;
}

.founder-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--founder-accent), transparent);
}

.founder-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.founder-cta__eyebrow {
  color: #c7d2fe !important;
}

.founder-cta__eyebrow::before {
  background: #c7d2fe !important;
}

.founder-cta__title {
  margin: 0.85rem 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.founder-cta__desc {
  margin: 0;
  max-width: 44rem;
  font-size: 1.1rem;
  line-height: 1.72;
  color: #94a3b8;
}

.founder-cta__features {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.founder-cta__feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 650;
}

.founder-cta__feature-check {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 800;
}

.founder-cta__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.founder-btn-cta {
  width: 100% !important;
  min-height: 54px !important;
  padding: 0.95rem 2rem !important;
  font-size: 1.08rem !important;
  box-shadow: 0 6px 24px rgba(91, 77, 232, 0.5) !important;
}

.founder-cta__caption {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Empty Profile Fallback */
.founder-empty {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(100% - 3rem, 48rem);
  margin: 1.5rem auto;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--founder-border);
  border-radius: var(--radius-lg);
  background: var(--founder-surface);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.founder-empty h1 {
  color: var(--founder-ink);
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.founder-empty p {
  color: var(--founder-muted);
  margin: 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */

@media (max-width: 1023px) {
  .founder-monograph__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .founder-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.85rem;
    padding-top: 2.2rem;
  }
  .founder-toc {
    position: static;
  }
  .founder-toc__header,
  .founder-toc__back {
    display: none;
  }
  .founder-toc__nav {
    max-height: 22rem;
  }
  .founder-cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .founder-cta__side {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .founder-monograph__credentials {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .founder-page {
    padding-bottom: 3rem;
  }
  .founder-monograph,
  .founder-switcher,
  .founder-empty {
    width: calc(100% - 1.5rem);
  }
  .founder-monograph__shell {
    padding: 1.5rem 1.25rem 1.5rem;
    border-radius: 24px;
  }
  .founder-monograph__name {
    font-size: clamp(1.4rem, 6.4vw, 2.2rem);
    white-space: nowrap;
    text-wrap: nowrap;
  }
  .founder-monograph__headline {
    font-size: 1.15rem;
  }
  .founder-monograph__summary {
    font-size: 1.05rem;
  }
  .founder-monograph__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .founder-monograph__actions .btn {
    width: 100%;
  }
  .founder-portrait-deck {
    max-width: 22rem;
  }
  .founder-portrait-deck__blueprint {
    transform: translate(6px, 6px);
  }
  .founder-portrait-card__trigger,
  .founder-hero__monogram {
    max-width: 21rem;
    aspect-ratio: 9 / 14.5;
  }
  .founder-portrait-caption {
    font-size: 0.74rem;
    padding: 0.38rem 0.85rem;
  }
  .founder-pipeline__track {
    display: none;
  }
  .founder-story,
  .founder-gallery,
  .founder-cta {
    border-radius: 20px;
  }
  .founder-story__header {
    padding: 1.5rem 1.25rem;
  }
  .founder-story__read-time {
    display: none;
  }
  .founder-prose {
    padding: 1.5rem 1.25rem;
    font-size: 1.08rem;
    line-height: 1.84;
  }
  .founder-prose blockquote {
    padding: 1.25rem 1.25rem 1.25rem 1.65rem;
    font-size: 1.06rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .founder-page,
  .founder-page *,
  .founder-page *::before,
  .founder-page *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto;
  }
  .founder-portrait-card,
  .founder-portrait-card__trigger,
  .founder-portrait-deck__blueprint,
  .founder-portrait-card__trigger:hover,
  .founder-portrait-deck:hover .founder-portrait-card,
  .founder-portrait-deck:hover .founder-portrait-deck__blueprint {
    transform: none !important;
  }
  html:has([data-founder-page]) {
    scroll-behavior: auto;
  }
}

/* Print */
@media print {
  .founder-progress,
  .founder-toc,
  .founder-monograph__actions,
  .founder-cta,
  .founder-switcher {
    display: none;
  }
  .founder-monograph,
  .founder-story,
  .founder-gallery {
    box-shadow: none;
    color: #000000 !important;
    background: #ffffff !important;
  }
}
