/* ===== Unified Interactive Documentary Biography with Scroll-Driven Animations (_bss_core) ===== */
.bsbio-root{
  --bio-bg:#f6f4ee;
  --bio-surface:#ffffff;
  --bio-surface2:#ecebe4;
  --bio-text:#1c1b1a;
  --bio-muted:#5c626e;
  --bio-line:rgba(28,27,26,.1);
  --bio-accent:#2f6bff;
  --bio-accent-soft:rgba(47,107,255,.11);
  --bio-gold:#ffedaf;
  --bio-gold-ink:#8a6b1e;
  --bio-shadow:0 10px 30px rgba(24,20,14,.07);
  --bio-fs:1.08rem;
  --bio-font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --bio-font-serif:ui-serif,"New York",Charter,"Bitstream Charter",Cambria,"Noto Serif","Times New Roman",serif;
  background:var(--bio-bg);
  color:var(--bio-text);
  font-family:var(--bio-font-sans);
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum" 1;
  padding:26px 0 64px;
  position:relative;
}
@media (prefers-color-scheme:dark){
  html:not([data-rd-theme="light"]) .bsbio-root{
    --bio-bg:#101114;
    --bio-surface:#181a20;
    --bio-surface2:#22252e;
    --bio-text:#eceef2;
    --bio-muted:#9ba3b2;
    --bio-line:rgba(255,255,255,.1);
    --bio-accent:#6ea8ff;
    --bio-accent-soft:rgba(110,168,255,.15);
    --bio-gold:#ffedaf;
    --bio-gold-ink:#ffedaf;
    --bio-shadow:0 14px 36px rgba(0,0,0,.42);
  }
}
html[data-rd-theme="dark"] .bsbio-root{
  --bio-bg:#101114;
  --bio-surface:#181a20;
  --bio-surface2:#22252e;
  --bio-text:#eceef2;
  --bio-muted:#9ba3b2;
  --bio-line:rgba(255,255,255,.1);
  --bio-accent:#6ea8ff;
  --bio-accent-soft:rgba(110,168,255,.15);
  --bio-gold:#ffedaf;
  --bio-gold-ink:#ffedaf;
  --bio-shadow:0 14px 36px rgba(0,0,0,.42);
}

.bsbio-root,.bsbio-root *{
  box-sizing:border-box;
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum" 1;
}
.bsbio-root *{font-family:inherit}
.bsbio-root [hidden]{display:none!important}
.bsbio-root svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Hide legacy biography wrapper chrome once enhanced */
.bsbio-legacy-hidden{display:none!important}

/* Top Reading Progress Bar (CSS Scroll-Driven Animation + JS fallback) */
.bsbio-prog{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:3.5px;
  z-index:1060;
  pointer-events:none;
  background:transparent;
}
.bsbio-prog-bar{
  width:100%;
  height:100%;
  background:linear-gradient(90deg,#d8b15a 0%,#ffedaf 55%,#2f6bff 100%);
  transform-origin:0 50%;
  transform:scaleX(0);
  will-change:transform;
}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    @keyframes bsbioGrowProg{
      from{transform:scaleX(0)}
      to{transform:scaleX(1)}
    }
    .bsbio-prog-bar{
      animation:bsbioGrowProg auto linear both;
      animation-timeline:scroll(root block);
    }
  }
}

.bsbio-wrap{
  max-inline-size:1120px;
  margin-inline:auto;
  padding-inline:18px;
}

/* ===== Documentary Hero with Staggered Load Entrance ===== */
.bsbio-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,300px);
  gap:28px 36px;
  align-items:center;
  padding:42px 44px;
  margin-block-end:32px;
  border-radius:26px;
  overflow:clip;
  background:
    radial-gradient(60% 80% at 86% 18%,rgba(255,237,175,.14) 0%,transparent 65%),
    radial-gradient(45% 65% at 12% 88%,rgba(47,107,255,.12) 0%,transparent 70%),
    linear-gradient(135deg,#252320 0%,#1a1917 58%,#131210 100%);
  border:1px solid rgba(255,237,175,.18);
  box-shadow:0 24px 58px rgba(18,14,10,.22),0 4px 14px rgba(18,14,10,.1);
  color:#ffffff;
}
.bsbio-hero.no-portrait{
  grid-template-columns:1fr;
}
.bsbio-hero-copy{
  min-inline-size:0;
}
.bsbio-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 13px;
  margin-block-end:16px;
  border-radius:999px;
  background:rgba(255,237,175,.13);
  border:1px solid rgba(255,237,175,.34);
  color:#ffedaf;
  font-size:.8125rem;
  font-weight:700;
  letter-spacing:.06em;
  font-variant-numeric:lining-nums tabular-nums;
}
.bsbio-eyebrow-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ffedaf;
  box-shadow:0 0 0 3px rgba(255,237,175,.22);
}
.bsbio-h1{
  margin:0 0 10px;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif;
  font-size:clamp(1.85rem,1.2rem + 2.3vw,2.9rem);
  font-weight:780;
  line-height:1.12;
  letter-spacing:-.03em;
  color:#ffffff;
  text-wrap:balance;
}
.bsbio-sub{
  margin:0 0 22px;
  font-size:clamp(1rem,.95rem + .25vw,1.15rem);
  line-height:1.5;
  color:rgba(255,255,255,.76);
  max-inline-size:52ch;
  text-wrap:pretty;
}
.bsbio-hero-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-block-end:22px;
}
.bsbio-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  font-size:.84rem;
  font-weight:600;
  font-variant-numeric:lining-nums tabular-nums;
}
.bsbio-pill strong{color:#ffedaf;font-weight:750}

.bsbio-hero-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.bsbio-seg{
  display:inline-flex;
  align-items:center;
  padding:3px;
  border-radius:11px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  gap:2px;
}
.bsbio-seg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-block-size:32px;
  min-inline-size:34px;
  padding:4px 11px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:rgba(255,255,255,.78);
  font-size:.8125rem;
  font-weight:650;
  cursor:pointer;
  transition:background-color .15s,color .15s;
}
.bsbio-seg-btn:hover{background:rgba(255,255,255,.12);color:#ffffff}
.bsbio-seg-btn.is-on{background:#ffedaf;color:#1c1b1a}
.bsbio-seg-btn:focus-visible{outline:2px solid #ffedaf;outline-offset:2px}

.bsbio-hero-media{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}
.bsbio-hero-frame{
  position:relative;
  padding:8px;
  border-radius:22px;
  background:linear-gradient(155deg,rgba(255,237,175,.28),rgba(255,255,255,.06));
  box-shadow:0 20px 44px rgba(0,0,0,.48);
  cursor:zoom-in;
  border:0;
  display:block;
  transition:transform .24s cubic-bezier(.22,1,.36,1);
}
.bsbio-hero-frame:hover{transform:translateY(-3px) scale(1.015)}
.bsbio-hero-frame:focus-visible{outline:2px solid #ffedaf;outline-offset:4px}
.bsbio-hero-frame img{
  display:block;
  width:100%;
  max-width:265px;
  max-height:330px;
  height:auto;
  object-fit:cover;
  border-radius:16px;
  background:#1b1a18;
}

/* Staggered Load Entrance Animation (respecting reduced-motion) */
@media (prefers-reduced-motion:no-preference){
  @keyframes bsbioHeroIn{
    from{opacity:0;transform:translateY(22px)}
    to{opacity:1;transform:none}
  }
  @keyframes bsbioHeroPop{
    from{opacity:0;transform:translateY(20px) scale(.95)}
    to{opacity:1;transform:none}
  }
  .bsbio-eyebrow{animation:bsbioHeroIn .55s cubic-bezier(.22,1,.36,1) .04s both}
  .bsbio-h1{animation:bsbioHeroIn .6s cubic-bezier(.22,1,.36,1) .12s both}
  .bsbio-sub{animation:bsbioHeroIn .6s cubic-bezier(.22,1,.36,1) .19s both}
  .bsbio-hero-stats{animation:bsbioHeroIn .6s cubic-bezier(.22,1,.36,1) .25s both}
  .bsbio-hero-tools{animation:bsbioHeroIn .6s cubic-bezier(.22,1,.36,1) .31s both}
  .bsbio-hero-frame{animation:bsbioHeroPop .7s cubic-bezier(.22,1,.36,1) .16s both}
}

/* ===== Sticky Mobile/Tablet Chapter Pill Rail ===== */
.bsbio-mobnav{
  display:none;
  position:sticky;
  top:0;
  z-index:50;
  margin:0 -18px 22px;
  padding:10px 18px;
  background:color-mix(in srgb,var(--bio-bg) 90%,transparent);
  -webkit-backdrop-filter:saturate(170%) blur(14px);
  backdrop-filter:saturate(170%) blur(14px);
  border-bottom:1px solid var(--bio-line);
}
.bsbio-mobnav-rail{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.bsbio-mobnav-rail::-webkit-scrollbar{display:none}
.bsbio-mobpill{
  flex:none;
  scroll-snap-align:center;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-block-size:36px;
  padding:6px 13px;
  border-radius:999px;
  border:1px solid var(--bio-line);
  background:var(--bio-surface);
  color:var(--bio-text)!important;
  font-size:.82rem;
  font-weight:650;
  text-decoration:none!important;
  white-space:nowrap;
  transition:background-color .16s,border-color .16s,color .16s;
}
.bsbio-mobpill-yr{
  color:var(--bio-gold-ink);
  font-weight:750;
  font-variant-numeric:lining-nums tabular-nums;
}
.bsbio-mobpill.is-active{
  background:var(--bio-accent);
  border-color:var(--bio-accent);
  color:#ffffff!important;
}
.bsbio-mobpill.is-active .bsbio-mobpill-yr{color:#ffedaf}

/* ===== Main 2-Column Layout: Sticky Desktop Timeline + Chapter Cards ===== */
.bsbio-layout{
  display:grid;
  grid-template-columns:265px minmax(0,1fr);
  gap:32px;
  align-items:start;
}
.bsbio-layout.no-toc{
  grid-template-columns:1fr;
}

/* Sticky Left Timeline Navigator */
.bsbio-toc{
  position:sticky;
  top:24px;
  padding:18px 16px;
  border-radius:20px;
  background:var(--bio-surface);
  border:1px solid var(--bio-line);
  box-shadow:var(--bio-shadow);
  max-block-size:calc(100dvh - 48px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.bsbio-toc-list{
  position:relative;
  list-style:none;
  margin:0;
  padding:0 0 0 18px;
}
.bsbio-toc-list::before{
  content:"";
  position:absolute;
  top:8px;
  bottom:8px;
  left:5px;
  width:2px;
  border-radius:2px;
  background:var(--bio-line);
}
.bsbio-toc-item{
  position:relative;
  margin:0 0 4px;
}
.bsbio-toc-link{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:7px 10px;
  border-radius:11px;
  color:var(--bio-muted)!important;
  text-decoration:none!important;
  font-size:.84rem;
  line-height:1.3;
  transition:background-color .16s,color .16s;
}
.bsbio-toc-link::before{
  content:"";
  position:absolute;
  left:-17px;
  top:14px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--bio-surface);
  border:2px solid var(--bio-muted);
  transition:background-color .18s,border-color .18s,transform .18s,box-shadow .18s;
}
.bsbio-toc-yr{
  font-size:.74rem;
  font-weight:750;
  letter-spacing:.03em;
  color:var(--bio-gold-ink);
  font-variant-numeric:lining-nums tabular-nums;
}
.bsbio-toc-lbl{
  font-weight:600;
  color:inherit;
}
.bsbio-toc-link:hover{
  background:var(--bio-surface2);
  color:var(--bio-text)!important;
}
.bsbio-toc-item.is-active .bsbio-toc-link{
  background:var(--bio-accent-soft);
  color:var(--bio-accent)!important;
}
.bsbio-toc-item.is-active .bsbio-toc-link::before{
  background:var(--bio-accent);
  border-color:var(--bio-accent);
  transform:scale(1.22);
  box-shadow:0 0 0 4px var(--bio-accent-soft);
}

/* ===== Chronological Chapter Cards along Glowing Timeline Spine ===== */
.bsbio-stream{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:24px;
  padding-inline-start:32px;
}
.bsbio-stream::before{
  content:"";
  position:absolute;
  top:14px;
  bottom:14px;
  left:10px;
  width:2px;
  border-radius:2px;
  background:linear-gradient(180deg,#d8b15a 0%,var(--bio-accent) 52%,rgba(128,128,128,.2) 100%);
}
.bsbio-chap{
  position:relative;
  padding:28px 32px 26px;
  border-radius:22px;
  background:var(--bio-surface);
  border:1px solid var(--bio-line);
  box-shadow:var(--bio-shadow);
  scroll-margin-top:78px;
}
.bsbio-chap::before{
  content:"";
  position:absolute;
  left:-28px;
  top:34px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--bio-bg);
  border:3px solid var(--bio-accent);
  box-shadow:0 0 0 5px var(--bio-bg);
  transition:transform .24s ease,background-color .24s ease;
}
.bsbio-chap.is-current::before{
  background:var(--bio-accent);
  transform:scale(1.18);
}

.bsbio-chap-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  margin-block-end:18px;
}
.bsbio-yr-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 12px;
  border-radius:999px;
  background:var(--bio-accent-soft);
  color:var(--bio-accent);
  font-size:.82rem;
  font-weight:750;
  letter-spacing:.02em;
  font-variant-numeric:lining-nums tabular-nums;
}
.bsbio-chap-title{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,sans-serif;
  font-size:clamp(1.22rem,1.02rem + .7vw,1.55rem);
  font-weight:750;
  line-height:1.25;
  letter-spacing:-.02em;
  color:var(--bio-text);
  text-wrap:balance;
}

.bsbio-chap-body{
  font-family:var(--bio-font-serif);
  font-size:var(--bio-fs);
  line-height:1.76;
  color:var(--bio-text);
  text-align:start;
}
.bsbio-chap-body p{
  margin:0 0 16px;
  max-inline-size:64ch;
  text-align:start;
  text-wrap:pretty;
  overflow-wrap:break-word;
  font-family:inherit!important;
}
.bsbio-chap-body p:last-child{margin-bottom:0}
.bsbio-chap-body a{
  color:var(--bio-accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Illuminated Milestone List (e.g. French bulleted chronology) */
.bsbio-milestones{
  list-style:none;
  margin:18px 0 22px;
  padding:0;
  display:grid;
  gap:12px;
}
.bsbio-ms-item{
  padding:14px 18px;
  border-radius:15px;
  background:var(--bio-surface2);
  border-inline-start:3px solid var(--bio-accent);
  font-family:var(--bio-font-serif);
  font-size:calc(var(--bio-fs) * .96);
  line-height:1.68;
  text-wrap:pretty;
}
.bsbio-callout{
  margin:20px 0 0;
  padding:16px 20px;
  border-radius:16px;
  background:color-mix(in srgb,var(--bio-gold) 18%,var(--bio-surface2));
  border-inline-start:3px solid #d4a640;
  font-style:italic;
}

/* Framed Interactive Archival Figures */
.bsbio-fig{
  margin:22px 0;
  padding:10px;
  border-radius:18px;
  background:var(--bio-surface2);
  border:1px solid var(--bio-line);
  max-inline-size:480px;
  transition:transform .24s cubic-bezier(.22,1,.36,1),box-shadow .24s ease;
}
.bsbio-fig:hover{
  transform:translateY(-2px);
  box-shadow:var(--bio-shadow);
}
.bsbio-fig-btn{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:0;
  border-radius:12px;
  overflow:clip;
  background:transparent;
  cursor:zoom-in;
}
.bsbio-fig-btn:focus-visible{outline:2px solid var(--bio-accent);outline-offset:3px}
.bsbio-fig-btn img{
  display:block;
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
  border-radius:12px;
  transition:transform .34s cubic-bezier(.22,1,.36,1);
}
.bsbio-fig-btn:hover img{transform:scale(1.03)}
.bsbio-fig-zoom{
  position:absolute;
  right:10px;
  bottom:10px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(20,20,24,.74);
  color:#ffffff;
  display:inline-grid;
  place-items:center;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  opacity:.85;
  transition:opacity .16s,transform .16s,background-color .16s;
}
.bsbio-fig-zoom svg{width:15px;height:15px}
.bsbio-fig-btn:hover .bsbio-fig-zoom{
  opacity:1;
  background:var(--bio-accent);
  transform:scale(1.08);
}
.bsbio-fig figcaption{
  margin:9px 4px 2px;
  font-family:var(--bio-font-sans);
  font-size:.84rem;
  line-height:1.45;
  color:var(--bio-muted);
  text-wrap:pretty;
}

/* ===== Native Scroll-Driven View-Timeline Reveal Animations ===== */
@media (prefers-reduced-motion:no-preference){
  @supports ((animation-timeline:view()) and (animation-range:entry)){
    @keyframes bsbioCardReveal{
      from{opacity:.18;transform:translateY(34px) scale(.985)}
      to{opacity:1;transform:none}
    }
    @keyframes bsbioFigReveal{
      from{opacity:.25;transform:translateY(22px) scale(.95)}
      to{opacity:1;transform:none}
    }
    .bsbio-chap{
      animation:bsbioCardReveal auto linear both;
      animation-timeline:view(block);
      animation-range:entry 0% entry 32%;
    }
    .bsbio-fig,
    .bsbio-ms-item{
      animation:bsbioFigReveal auto linear both;
      animation-timeline:view(block);
      animation-range:entry 0% entry 36%;
    }
  }
}
/* IntersectionObserver fallback classes (only attached when native view-timeline unsupported) */
.bsbio-io-pending{
  opacity:0;
  transform:translateY(28px) scale(.985);
}
.bsbio-io-in{
  opacity:1;
  transform:none;
  transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1);
}

/* ===== Native <dialog> Archival Image Lightbox ===== */
dialog.bsbio-lb{
  box-sizing:border-box;
  margin:auto;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  max-width:min(920px,calc(100dvw - 28px));
  max-height:calc(100dvh - 36px);
  background:#141519;
  color:#f5f6f8;
  overflow:hidden;
  box-shadow:0 26px 70px rgba(0,0,0,.6);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
}
dialog.bsbio-lb[open]{
  display:flex;
  flex-direction:column;
}
dialog.bsbio-lb:modal{
  overscroll-behavior:contain;
}
dialog.bsbio-lb::backdrop{
  overflow:hidden;
  overscroll-behavior:contain;
  background:rgba(8,9,12,.82);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.bsbio-lb-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.bsbio-lb-cap{
  margin:0;
  font-size:.9375rem;
  font-weight:650;
  line-height:1.35;
  color:#ffffff;
}
.bsbio-lb-xform{margin:0}
.bsbio-lb-x{
  width:34px;
  height:34px;
  border:0;
  border-radius:9px;
  background:rgba(255,255,255,.1);
  color:#ffffff;
  font-size:22px;
  line-height:1;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
}
.bsbio-lb-x:hover{background:rgba(255,255,255,.2)}
.bsbio-lb-x:focus-visible{outline:2px solid #ffedaf;outline-offset:2px}
.bsbio-lb-body{
  padding:14px;
  display:grid;
  place-items:center;
  overflow:auto;
}
.bsbio-lb-body img{
  display:block;
  max-width:100%;
  max-height:calc(100dvh - 130px);
  width:auto;
  height:auto;
  border-radius:10px;
}

/* ===== Responsive Tablet & Mobile ===== */
@media (max-width:1023.98px){
  .bsbio-layout{grid-template-columns:1fr;gap:0}
  .bsbio-toc{display:none}
  .bsbio-mobnav{display:block}
}
@media (max-width:820px){
  .bsbio-hero{
    grid-template-columns:1fr;
    padding:28px 24px;
    gap:22px;
  }
  .bsbio-hero-media{order:-1}
  .bsbio-hero-frame img{max-width:210px;max-height:250px}
}
@media (max-width:575.98px){
  .bsbio-root{padding:16px 0 48px}
  .bsbio-wrap{padding-inline:12px}
  .bsbio-mobnav{margin:0 -12px 18px;padding:9px 12px}
  .bsbio-hero{padding:22px 18px;border-radius:20px;margin-block-end:20px}
  .bsbio-stream{padding-inline-start:18px;gap:16px}
  .bsbio-stream::before{left:5px}
  .bsbio-chap{padding:20px 18px 18px;border-radius:18px}
  .bsbio-chap::before{left:-18px;top:24px;width:11px;height:11px;border-width:2.5px}
}
@media print{
  .bsbio-prog,.bsbio-toc,.bsbio-mobnav,.bsbio-hero-tools{display:none!important}
}
