:root {
  color-scheme: dark;
  --bio-bg: #090d12;
  --bio-panel: #11161c;
  --bio-panel-soft: #0d1218;
  --bio-text: #f0ece6;
  --bio-muted: #94979c;
  --bio-gold: #ad8a58;
  --bio-line: rgba(240, 236, 230, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bio-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--bio-bg);
  color: var(--bio-text);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bio-page a { color: inherit; }

.bio-hero {
  position: relative;
  min-height: min(920px, 100svh);
  padding: calc(var(--memory-header-height) + 74px) 0 78px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #080c11;
}

.bio-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.98) 0%, rgba(8, 12, 17, 0.82) 43%, rgba(8, 12, 17, 0.1) 75%),
    linear-gradient(0deg, #090d12 0%, transparent 32%);
}

.bio-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,0.06) 25%);
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.bio-hero__portrait {
  position: absolute;
  z-index: -3;
  top: var(--memory-header-height);
  right: 0;
  width: 58%;
  height: calc(100% - var(--memory-header-height));
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.08) brightness(0.76);
  transform: scale(1.03);
  transform-origin: center;
  will-change: transform;
}

.bio-shell {
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
}

.bio-hero__content { max-width: 700px; }

.bio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--bio-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.bio-kicker::before { content: ""; width: 42px; height: 1px; background: currentColor; }

.bio-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 8vw, 116px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.bio-title span {
  display: block;
  margin-top: 12px;
  color: var(--bio-gold);
  font-size: 0.72em;
  font-style: italic;
  font-weight: 300;
}

.bio-hero__role {
  max-width: 560px;
  margin: 34px 0 0;
  color: rgba(240, 236, 230, 0.74);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.7;
}

.bio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 36px 0 0;
}

.bio-meta span {
  padding: 10px 14px;
  border: 1px solid rgba(173, 138, 88, 0.28);
  color: rgba(240, 236, 230, 0.72);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bio-back {
  position: absolute;
  top: calc(var(--memory-header-height) + 30px);
  left: max(32px, calc((100vw - 1120px) / 2));
  color: rgba(240, 236, 230, 0.58) !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease, transform 0.25s ease;
}

.bio-back:hover { color: var(--bio-text) !important; transform: translateX(-4px); }

.bio-section {
  position: relative;
  padding: 128px 0;
  border-top: 1px solid var(--bio-line);
  background: var(--bio-bg);
}

.bio-section--panel { background: var(--bio-panel-soft); }

.bio-section__grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(56px, 9vw, 130px);
}

.bio-section__index {
  position: sticky;
  top: calc(var(--memory-header-height) + 42px);
  align-self: start;
}

.bio-section__number {
  display: block;
  color: var(--bio-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.bio-section__label {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bio-line);
  color: var(--bio-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.bio-section__content h2 {
  max-width: 790px;
  margin: 0 0 42px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.bio-section__content h2 em { color: var(--bio-gold); font-weight: 300; }

.bio-section__copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
}

.bio-section__copy p {
  margin: 0;
  color: rgba(240, 236, 230, 0.66);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
}

.bio-quote {
  margin: 54px 0 0;
  padding: 28px 0 0 32px;
  border-top: 1px solid var(--bio-line);
  border-left: 1px solid var(--bio-gold);
  color: var(--bio-text);
  font-size: clamp(21px, 2.6vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}

.bio-draft-note {
  margin: 42px 0 0;
  color: rgba(148, 151, 156, 0.62);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bio-crew-links {
  padding: 82px 0 92px;
  border-top: 1px solid var(--bio-line);
  background: #070b0f;
}

.bio-crew-links__title {
  margin: 0 0 28px;
  color: var(--bio-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bio-crew-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--bio-line);
  border-bottom: 1px solid var(--bio-line);
}

.bio-crew-link {
  min-height: 116px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--bio-line);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bio-crew-link:last-child { border-right: 0; }
.bio-crew-link:hover,
.bio-crew-link[aria-current="page"] { background: rgba(173, 138, 88, 0.1); }
.bio-crew-link small { color: var(--bio-gold); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.bio-crew-link strong { font-size: 15px; font-weight: 500; }

.bio-js .bio-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.65,.3,1), transform 0.8s cubic-bezier(.2,.65,.3,1);
}

.bio-js .bio-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .bio-hero {
    min-height: 860px;
    padding-bottom: 62px;
    align-items: end;
  }
  .bio-hero::before {
    background: linear-gradient(0deg, #090d12 4%, rgba(8,12,17,.84) 48%, rgba(8,12,17,.18) 100%);
  }
  .bio-hero__portrait {
    width: 100%;
    height: 65%;
    opacity: 0.72;
    object-position: center 14%;
  }
  .bio-shell { width: min(100% - 34px, 1120px); }
  .bio-back { left: 17px; }
  .bio-hero__content { max-width: 100%; }
  .bio-title { font-size: clamp(48px, 15vw, 72px); }
  .bio-section { padding: 84px 0; }
  .bio-section__grid { grid-template-columns: 1fr; gap: 42px; }
  .bio-section__index { position: static; }
  .bio-section__label { max-width: 210px; }
  .bio-section__copy { grid-template-columns: 1fr; }
  .bio-crew-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-crew-link:nth-child(2) { border-right: 0; }
  .bio-crew-link:nth-child(-n+2) { border-bottom: 1px solid var(--bio-line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bio-js .bio-reveal { opacity: 1; transform: none; transition: none; }
}
