:is(.namkha-rinpoche-page, .community-page) {
  --bio-gutter: clamp(1.375rem, 6vw, 6rem);
  --bio-width: 74rem;
  --bio-indent: clamp(1.625rem, 4.5vw, 4rem);
  --bio-measure: 51rem;
  --bio-space: clamp(3.5rem, 7vw, 6.25rem);
  --bio-gap: clamp(1.625rem, 4.5vw, 4rem);
  --bio-radius: clamp(.875rem, 1.5vw, 1.25rem);
  --bio-card-padding: clamp(2.25rem, 5vw, 4.5rem);
  --bio-rail: #d5c5aa;
  --bio-rail-active: #a66c2b;
}

.namkha-rinpoche-page .bio-frame {
  width: min(var(--bio-width), calc(100% - 2 * var(--bio-gutter)));
  box-sizing: border-box;
  margin-inline: auto;
  padding-inline-start: var(--bio-indent);
}

.bio-cover {
  background: var(--blue-deep);
  color: var(--cream);
}

.bio-cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--bio-gap);
  min-height: clamp(32rem, 68svh, 42rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem);
}

.bio-cover-copy h1 {
  margin: 0 0 1.375rem;
  color: var(--cream);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.bio-cover-copy .eyebrow {
  color: var(--gold-light);
}

.bio-cover-copy .lead {
  max-width: 34ch;
  margin: 0;
  color: var(--cream);
}

.bio-cover-vajra {
  display: block;
  width: auto;
  height: clamp(15rem, 28vw, 24rem);
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.bio-filmstrip {
  --bio-filmstrip-top: var(--header-height, 108px);
  --bio-ribbon-height: min(53.75rem, calc(100svh - var(--bio-filmstrip-top)));
  background: var(--blue-deep);
}

.bio-filmstrip-stage {
  overflow: hidden;
}

.bio-filmstrip-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.bio-filmstrip-track:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: -3px;
}

:is(.namkha-rinpoche-page, .community-page) .photo {
  min-width: 0;
  margin: 0;
}

.bio-filmstrip-card {
  flex: 0 0 clamp(20rem, calc(var(--bio-ribbon-height) * .68), 38.75rem);
}

:is(.namkha-rinpoche-page, .community-page) .photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--bio-radius);
}

.namkha-rinpoche-page .bio-filmstrip-card img {
  height: var(--bio-ribbon-height);
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 0;
}

.namkha-rinpoche-page .bio-filmstrip-card img[src*="/portrait-2014-"] {
  object-position: 50% 42%;
}

@media screen and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .bio-filmstrip.is-filmstrip-enhanced {
    height: calc(var(--bio-ribbon-height) + var(--bio-filmstrip-travel, 0px));
  }

  .is-filmstrip-enhanced .bio-filmstrip-stage {
    position: sticky;
    top: var(--bio-filmstrip-top);
    height: var(--bio-ribbon-height);
  }

  .is-filmstrip-enhanced .bio-filmstrip-track {
    width: max-content;
    overflow: visible;
    transform: translate3d(var(--bio-filmstrip-x, 0px), 0, 0);
  }
}

.bio-intro {
  padding-block: var(--bio-space);
  text-align: center;
}

.bio-index {
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin: 0 auto 1.25rem;
}

.bio-index.is-floating {
  position: fixed;
  z-index: 25;
  inset-inline: 0;
  bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.bio-index.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.bio-index-track {
  display: flex;
  justify-content: center;
  gap: .125rem;
  padding: .25rem;
  border-radius: 999px;
  background: #f9f8f5f2;
  box-shadow: 0 .25rem 1.5rem #332d2c20;
  backdrop-filter: blur(12px);
}

.bio-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: clamp(.4375rem, 1.4vw, 1rem);
  border-radius: 999px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.bio-index a:hover,
.bio-index a[aria-current] {
  color: var(--burgundy-deep);
  background: var(--beige);
}

.bio-index a:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: -2px;
}

.bio-index-short {
  display: none;
}

@media (max-width: 34rem) {
  .bio-index-track {
    flex-wrap: wrap;
  }

  .bio-index-label {
    display: none;
  }

  .bio-index-short {
    display: inline;
  }
}

.bio-story {
  --bio-rail-x: max(.6rem, calc(var(--site-edge) - clamp(.8rem, 1.6vw, 1.5rem)));
  position: relative;
  padding-block: clamp(1.25rem, 3vw, 3rem);
  background: var(--off-white);
}

.namkha-rinpoche-page .bio-story-section > .bio-frame {
  padding-inline-start: 0;
}

.bio-story .bio-panel {
  border-radius: var(--site-radius);
}

.bio-story::before,
.bio-story::after {
  position: absolute;
  z-index: 1;
  inset-block: calc(var(--bio-card-padding) + 1.5rem) 0;
  inset-inline-start: var(--bio-rail-x);
  width: 2px;
  content: '';
  pointer-events: none;
  background: var(--bio-rail);
}

.bio-story::after {
  background: var(--bio-rail-active);
  transform: scaleY(var(--bio-progress, 0));
  transform-origin: top;
}

.bio-story-section {
  --bio-marker-inset: calc(var(--bio-card-padding) + 1.5rem);
  position: relative;
  padding-block: .75rem;
}

.bio-panel {
  padding: var(--bio-card-padding);
  border-radius: clamp(1.125rem, 3vw, 2.5rem);
  background: var(--bio-panel-background, var(--paper));
}

.bio-chapter--sand {
  --bio-panel-background: var(--beige);
}

.bio-chapter--open {
  --bio-panel-background: transparent;
  --bio-marker-inset: calc(var(--bio-space) + .375rem);
  padding-block: var(--bio-space);
}

.bio-chapter--open > .bio-frame > .bio-panel {
  padding-block: 0;
}

.bio-chapter--burgundy {
  --bio-panel-background: var(--burgundy-deep);
  --bio-chapter-title: var(--cream);
  --bio-chapter-accent: var(--gold-light);
  color: var(--cream);
  margin-block: clamp(1.125rem, 3vw, 2.25rem);
}

.bio-chapter--lake {
  --bio-panel-background: transparent;
  --bio-chapter-title: var(--cream);
  --bio-chapter-accent: var(--gold-light);
  --bio-marker-inset: calc(var(--bio-space) + .375rem);
  z-index: 2;
  padding: 0;
  margin-block: var(--bio-gap);
  background: var(--blue-deep);
  color: var(--cream);
}

.bio-chapter--lake .bio-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--bio-gap);
  align-items: start;
  padding-block: var(--bio-space);
}

.bio-chapter--lake .bio-heading {
  margin: 0;
}

.namkha-rinpoche-page .bio-panorama img {
  height: clamp(18rem, 45vw, 42rem);
  border-radius: 0;
  object-fit: cover;
  object-position: center 60%;
}

.bio-story-section::before {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--bio-marker-inset);
  inset-inline-start: calc(var(--bio-rail-x) + 1px);
  translate: -50% 0;
  width: .75rem;
  height: .75rem;
  border: 2px solid var(--bio-rail-active);
  border-radius: 50%;
  background: var(--off-white);
  content: '';
  pointer-events: none;
}

.bio-story-section.is-reached::before {
  background: var(--bio-rail-active);
}

.bio-story-section.is-current::before {
  box-shadow: 0 0 0 4px #a66c2b29;
}

.bio-heading {
  margin: 0 0 clamp(1.375rem, 3vw, 2.25rem);
}

.bio-heading .eyebrow,
.bio-cover-copy .eyebrow {
  margin: 0 0 1rem;
  font-size: .8125rem;
  line-height: 1.4;
  letter-spacing: .1em;
}

.bio-heading .eyebrow {
  color: var(--bio-chapter-accent, var(--burgundy));
}

.bio-heading h2 {
  color: var(--bio-chapter-title, var(--burgundy));
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.375rem, 4.4vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.bio-article {
  display: grid;
  gap: clamp(1.625rem, 3.75vw, 3rem);
}

.bio-copy {
  max-width: var(--bio-measure);
  font-size: clamp(1rem, 1.55vw, 1.125rem);
  line-height: 1.74;
}

.bio-panel > .bio-heading,
.bio-article > .bio-copy {
  width: 100%;
  max-width: var(--bio-measure);
  margin-inline: auto;
}

.bio-continuation {
  margin-top: var(--bio-gap);
}

.bio-copy p {
  margin: 0 0 1.15em;
}

.bio-copy > :last-child {
  margin-bottom: 0;
}

.bio-copy h3 {
  color: var(--bio-chapter-title, var(--burgundy));
  max-width: 28ch;
  margin: 1.5em 0 .6em;
  font-size: clamp(1.5rem, 2.45vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.bio-copy h3:first-child {
  margin-top: 0;
}

.bio-cover-copy .lead {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -.012em;
}

.bio-copy .lead {
  color: var(--bio-chapter-title, var(--burgundy));
  font: var(--editorial-lead);
  margin-bottom: 1.1em;
}

.bio-copy .actions {
  margin-top: 1.75rem;
}

.bio-subsection {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.bio-feature {
  min-width: 0;
}

.bio-feature > .photo img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 32%;
}

.bio-feature > .bio-portrait img {
  width: min(100%, 42rem);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}

.bio-feature > .bio-thangka img {
  width: min(100%, 19rem);
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.bio-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 1.1vw, .875rem);
}

.namkha-rinpoche-page .bio-gallery img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 35%;
}

.bio-gallery--landscape {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-auto-rows: clamp(11rem, 36vw, 36rem);
}

.namkha-rinpoche-page .bio-gallery--landscape img {
  height: 100%;
  aspect-ratio: auto;
}

.bio-gallery--origins > :first-child {
  grid-column: 1 / -1;
}

.namkha-rinpoche-page .bio-gallery--origins > :first-child:nth-last-child(3) img {
  aspect-ratio: 2 / 1;
}

.namkha-rinpoche-page .bio-gallery--origins > :nth-child(n + 2) img {
  aspect-ratio: 4 / 5;
  object-position: center 26%;
}

.bio-gallery--archive,
.bio-gallery--retreat {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.625rem, 4vw, 3rem);
}

.namkha-rinpoche-page :is(.bio-gallery--archive, .bio-gallery--portraits, .bio-gallery--stupas) img {
  aspect-ratio: 3 / 4;
}

.namkha-rinpoche-page .bio-gallery--stupas img {
  object-position: center;
}

.namkha-rinpoche-page img[src*="welcome-namkha-dzong"] {
  object-position: center 45%;
}

.bio-centres {
  position: relative;
  z-index: 2;
  margin-top: var(--bio-gap);
  padding-block: var(--bio-gap);
  background: var(--beige);
}

.bio-centres h3 {
  width: min(var(--bio-width), calc(100% - 2 * var(--bio-gutter)));
  margin: 0 auto clamp(1.25rem, 3.5vw, 2.5rem);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.bio-centre-sequence .bio-sequence-stage {
  display: grid;
  width: 100%;
  margin-inline: auto;
  gap: clamp(.875rem, 2.5vw, 1.625rem);
}

.bio-centre-map {
  position: relative;
  overflow: hidden;
}

.bio-centre-map img {
  display: block;
  width: 100%;
  height: auto;
}

.bio-map-pin {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  width: .625rem;
  height: .625rem;
  translate: -50% -50%;
  border: 1.5px solid #fffaf0;
  border-radius: 50%;
  background: #a66c2b;
  box-shadow: 0 0 0 1px #a66c2b8c;
}

.bio-centre-sequence .bio-sequence-track {
  gap: 0;
}

.bio-centre-stop {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.bio-centre-stop p,
.bio-centre-stop h4 {
  margin: 0;
}

.bio-centre-stop h4 {
  color: var(--burgundy);
  font-size: clamp(1.5rem, 4.25vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.bio-centre-stop .bio-centre-year,
.bio-event-meta .location {
  margin-block: 0 .375rem;
  color: var(--burgundy);
  font-size: .9375rem;
  font-weight: 600;
}

.bio-centre-stop .bio-centre-city {
  margin-top: .625rem;
  color: var(--muted);
  font-size: 1rem;
}

.bio-sequence {
  margin-top: clamp(1.75rem, 4vw, 3.25rem);
}

.bio-centres .bio-sequence {
  width: min(var(--bio-width), calc(100% - 2 * var(--bio-gutter)));
  margin: 0 auto;
}

.bio-sequence-stage {
  position: relative;
  z-index: 2;
  background: var(--off-white);
}

.bio-sequence-track {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.bio-event {
  min-width: 0;
  color: var(--ink);
}

.bio-event-meta {
  padding-inline: var(--bio-gutter);
  margin-bottom: clamp(.875rem, 2vw, 1.375rem);
}

.bio-event-meta h3 {
  margin: 0 0 .375rem;
  color: var(--burgundy);
  font-size: clamp(1.625rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.bio-chapter--burgundy > .bio-sequence :is(.bio-event-meta h3, .bio-event-meta .location) {
  color: var(--cream);
}

.bio-chapter--burgundy > .bio-sequence {
  padding-block: 1rem;
  background: var(--burgundy-deep);
}

.bio-chapter--burgundy > .bio-sequence .bio-sequence-stage {
  background: var(--burgundy-deep);
}

.bio-centre-sequence .bio-sequence-stage {
  background: var(--bio-panel-background);
}

.bio-event-media .bio-gallery {
  gap: .5rem;
}

.bio-event-media .bio-gallery > :first-child:nth-last-child(3) {
  grid-column: 1 / -1;
}

.namkha-rinpoche-page .bio-event-media .bio-gallery > :first-child:nth-last-child(3) img {
  aspect-ratio: 2 / 1;
}

.namkha-rinpoche-page .bio-event-media > .photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
}

.namkha-rinpoche-page .bio-event-media > .bio-event-portrait img {
  width: min(100%, 46rem);
  margin-inline: auto;
  aspect-ratio: 1;
}


@media screen and (min-width: 1001px) and (min-height: 650px)
  and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bio-sequence.is-sequence-enhanced::after {
    display: block;
    height: var(--bio-sequence-travel);
    content: '';
  }

  .is-sequence-enhanced .bio-sequence-stage {
    position: sticky;
    top: var(--bio-sequence-inset);
    height: var(--bio-scene-height);
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .is-sequence-enhanced .bio-sequence-track {
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  .is-sequence-enhanced .bio-event {
    display: grid;
    flex: 0 0 100%;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 0;
  }

  .is-sequence-enhanced .bio-event-media {
    min-height: 0;
  }

  .is-sequence-enhanced .bio-event-media :is(.bio-gallery, .photo) {
    height: 100%;
    min-height: 0;
  }

  .is-sequence-enhanced .bio-event-media .bio-gallery {
    grid-template-rows: minmax(0, 1fr);
  }

  .is-sequence-enhanced .bio-event-media .bio-gallery:has(> :nth-child(3)) {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .is-sequence-enhanced .bio-event-media .bio-gallery > :first-child:nth-last-child(3) {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .namkha-rinpoche-page .is-sequence-enhanced .bio-event-media .photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .namkha-rinpoche-page .is-sequence-enhanced .bio-event-media > .bio-event-portrait img {
    object-position: 50% 28%;
  }


  .bio-centre-sequence.is-sequence-enhanced .bio-sequence-stage {
    grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
    grid-template-rows: auto minmax(0,1fr);
    align-items: center;
  }

  .bio-centre-sequence.is-sequence-enhanced .bio-map-slot {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    container-type: size;
  }

  .bio-centre-sequence.is-sequence-enhanced .bio-centre-map {
    width: min(100cqw, calc(100cqh * 640 / 464));
  }

  .is-sequence-enhanced .bio-centre-stop {
    display: flex;
    flex: 0 0 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding-inline: clamp(1rem, 3vw, 3rem);
    border: 0;
  }


  .is-sequence-enhanced .bio-map-pin {
    opacity: 0;
    scale: .5;
    transition: opacity 230ms ease-out, scale 260ms ease-out;
  }

  .is-sequence-enhanced .bio-map-pin.is-shown {
    opacity: 1;
    scale: 1;
  }

  .is-sequence-enhanced .bio-map-pin.is-current {
    scale: 1.45;
    box-shadow: 0 0 0 4px #a66c2b42;
  }

}

.bio-retreat-film {
  position: relative;
  z-index: 2;
  width: min(100%, 100rem);
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  overflow: hidden;
  background: var(--blue-deep);
}

.bio-retreat-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.bio-film-toggle {
  position: absolute;
  inset: auto .75rem .75rem auto;
  padding: .5rem .75rem;
  border: 1px solid #ffffff75;
  border-radius: 2rem;
  background: #191616dc;
  color: white;
  font: inherit;
  font-size: .875rem;
  line-height: 1.25;
  cursor: pointer;
}

.bio-film-toggle:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.bio-closing {
  padding-block: clamp(2rem, 4vw, 3rem) var(--bio-space);
}

.bio-photo-credits {
  margin-top: 2rem;
  color: var(--muted);
  font-size: .875rem;
}

.bio-photo-credits summary {
  width: fit-content;
  cursor: pointer;
}

.bio-photo-credits a {
  text-decoration: underline;
}

@media (max-width: 760px) {
  :is(.namkha-rinpoche-page, .community-page) {
    --bio-gutter: .875rem;
    --bio-indent: 1.125rem;
  }

  .bio-cover-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 1.5rem;
    min-height: 0;
  }

  .bio-cover-vajra {
    height: clamp(8rem, 28vw, 12rem);
    margin-inline: auto;
    justify-self: center;
  }

  .bio-filmstrip {
    --bio-ribbon-height: calc(100svh - var(--bio-filmstrip-top));
  }

  .bio-filmstrip-card {
    flex-basis: min(78vw, 26.25rem);
  }

  :is(.namkha-rinpoche-page, .community-page) {
    --bio-card-padding: clamp(1.125rem, 4.5vw, 2rem);
  }

  .bio-chapter--lake .bio-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .bio-story-section::before {
    width: .625rem;
    height: .625rem;
  }

  .bio-gallery--retreat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bio-gallery--retreat > :first-child {
    grid-column: 1 / -1;
  }

  .bio-gallery--retreat > :first-child img {
    aspect-ratio: 2 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-story::after {
    display: none;
  }
}

@media print {
  .namkha-rinpoche-page .bio-frame {
    width: 100%;
    padding-inline: 0;
  }

  .bio-chapter--lake,
  .bio-chapter--burgundy {
    --bio-chapter-title: var(--burgundy);
    --bio-chapter-accent: var(--burgundy);
    --bio-panel-background: white;
    color: var(--ink);
  }

  .bio-cover,
  .bio-chapter--lake,
  .bio-closing {
    background: white;
  }

  .bio-cover-inner {
    display: block;
    min-height: 0;
  }

  .bio-cover-copy :is(h1, .eyebrow, .lead) {
    color: black;
  }

  .bio-cover-vajra,
  .bio-filmstrip,
  .bio-index,
  .bio-story::before,
  .bio-story::after,
  .bio-story-section::before {
    display: none;
  }

  .bio-feature,
  .bio-gallery .photo {
    break-inside: avoid;
  }
}

/* Each group of archive photographs has its own frame and shared caption baseline. */
.bio-intro .bio-copy { margin-inline: auto; text-align: center; max-width: 50rem; }
.bio-story .bio-gallery--landscape { grid-auto-rows: auto; }
.namkha-rinpoche-page .bio-gallery--landscape img { height: clamp(11rem,32vw,26rem); }
.namkha-rinpoche-page .bio-gallery--landscape img[src*="thupten-sherab"] { object-position: center top; }
.bio-gallery--portraits {
  max-width: 53rem; margin-inline: auto; align-items: start; gap: clamp(.8rem,2.4vw,2rem);
}
.namkha-rinpoche-page .bio-gallery--portraits img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
}
.namkha-rinpoche-page .bio-gallery--portraits img[src*="dudjom-jigdral"] { object-position: 50% 10%; }
.namkha-rinpoche-page .bio-gallery--portraits img[src*="thinley-norbu"] { object-position: 50% 12%; }
.bio-gallery--masters {
  grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: clamp(.65rem,1.5vw,1.1rem);
}
.namkha-rinpoche-page .bio-gallery--masters img, .bio-photo-slot {
  width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--beige);
}
.bio-photo-slot { display: grid; place-items: center; text-align: center; color: var(--burgundy); font-size: .9rem; padding: .85rem; }
.namkha-rinpoche-page .bio-gallery--origins { grid-template-columns: 1.5fr 1fr; }
.namkha-rinpoche-page .bio-gallery--origins > :first-child { grid-column: auto; }
.namkha-rinpoche-page .bio-gallery--origins img { height: clamp(12rem,29vw,23rem); aspect-ratio: auto; }
.namkha-rinpoche-page .bio-gallery--origins .photo img[src*="namkha-young-archive"] { object-position: center top; }
.namkha-rinpoche-page .bio-gallery--archive img { height: clamp(9rem,26vw,20.75rem); aspect-ratio: auto; object-position: center 28%; }
.namkha-rinpoche-page .bio-gallery--archive img[src*="young-smiling"] { object-position: center 35%; }
.bio-gallery--masters figcaption, .bio-gallery--portraits figcaption { text-align: center; }
.bio-story .photo figcaption a { color: inherit; text-decoration-color: currentColor; text-underline-offset: .2em; }
.namkha-rinpoche-page :is(.bio-recognition,.bio-europe) .bio-panel > .bio-heading,
.namkha-rinpoche-page :is(.bio-recognition,.bio-europe) .bio-copy { max-width: 46rem; margin-inline: 0; }
.namkha-rinpoche-page .bio-article:has(.bio-feature > .bio-portrait) {
  grid-template-columns: minmax(0, 1.25fr) minmax(0,.75fr); align-items: start;
  width: 100%; margin-inline: 0;
}
.namkha-rinpoche-page .bio-feature > .bio-portrait img {
  width: 100%; height: auto; max-height: 27rem; aspect-ratio: auto; object-fit: contain; object-position: right top;
}
.namkha-rinpoche-page .bio-feature > .bio-portrait figcaption { text-align: right; }
.namkha-rinpoche-page .bio-feature > .bio-recognition-photo img {
  width: 100%; height: auto; aspect-ratio: auto; object-fit: contain;
}
.europe-first-meeting { margin-top: clamp(1.5rem,3vw,2.75rem); }
.namkha-rinpoche-page .bio-story-section:is(.bio-chapter--lake,.bio-chapter--burgundy,.bio-chapter--gatherings)::before { content: none; }
.bio-panorama a { display: block; }
.bio-retreat-teaching { margin-top: clamp(2rem,4vw,3.25rem); }
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) {
  position: relative; z-index: 2; padding-block: var(--bio-space); margin-block: var(--bio-gap);
  background: var(--visit-surface); color: var(--cream); --bio-panel-background: transparent;
  --bio-chapter-title: var(--cream); --bio-chapter-accent: var(--gold-light); --eyebrow-ink: #ffdb92;
}
.bio-chapter--gatherings { --visit-surface: var(--blue-deep); }
.bio-chapter--burgundy { --visit-surface: var(--burgundy-deep); }
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) .bio-panel {
  padding-block: 0; border-radius: 0; background: transparent;
}
.public-site.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) > .bio-frame,
.public-site.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) .bio-panel {
  padding-inline: 0;
}
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) > .bio-frame:first-child .bio-panel {
  display: block; text-align: center;
}
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) > .bio-frame:first-child .bio-heading h2 {
  max-width: 45rem; margin-inline: auto;
}
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) > .bio-frame:first-child .bio-copy {
  max-width: 46rem;
}
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) > .bio-frame:first-child .bio-copy > p:first-child {
  color: var(--cream); font: 400 clamp(1.3rem,2.05vw,1.72rem)/1.48 var(--serif); text-wrap: pretty;
}
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) > .bio-sequence,
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) .bio-sequence-stage { background: var(--visit-surface); }
.namkha-rinpoche-page :is(.bio-chapter--gatherings,.bio-chapter--burgundy) .bio-event-meta :is(h3,p) { color: var(--cream); }
.public-site .bio-chapter--gatherings .bio-copy .actions a {
  --action-surface: var(--cream); --action-text: var(--blue-deep); --action-outline: var(--cream);
}
.bio-gallery--visit-pair { grid-template-columns: 1fr 1.33fr; align-items: start; }
.namkha-rinpoche-page .bio-gallery--visit-pair img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 38%; }
.namkha-rinpoche-page .bio-gallery--visit-pair .photo:nth-child(2) img { aspect-ratio: 1.33; object-position: center; }
.bio-map-title { grid-column: 1 / -1; }
.bio-centres .bio-map-title {
  margin: 0;
  width: auto;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.14;
}
.bio-canaries {
  position: absolute; left: 1.6%; top: 11%; width: 18%;
  padding: 1%; border: 1px solid #d0bca5; background: #fff7ea;
}
.bio-canaries > span { display: block; font: 500 clamp(.58rem,1vw,.87rem)/1.2 var(--sans); color: #5a4133; text-align: center; }
.bio-inset-map { position: relative; }
.bio-inset-map img { width: 100%; height: auto; }
.bio-map-pin { width: clamp(1.45rem,2.15vw,2rem); height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.bio-map-lotus {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--burgundy);
  stroke: #fff7ea;
  stroke-width: 1.15;
  stroke-linejoin: round;
}
.is-sequence-interactive .bio-map-pin { opacity: 0; }
.is-sequence-interactive .bio-map-pin.is-shown { opacity: .83; }
.is-sequence-interactive .bio-map-pin.is-current { opacity: 1; scale: 1.28; z-index: 1; box-shadow: none; }
.bio-map-pin.is-current .bio-map-lotus { fill: var(--gold-light); stroke: var(--burgundy-deep); }
@media (prefers-reduced-motion: no-preference) {
  .bio-map-pin.is-current .bio-map-lotus { animation: bio-lotus-appear .5s ease-out; }
  @keyframes bio-lotus-appear { from { transform: scale(.72); } 65% { transform: scale(1.2); } to { transform: scale(1); } }
}
.bio-event { padding-inline: var(--site-edge); }
.bio-event .bio-event-meta { padding-inline: 0; }
.is-sequence-interactive { min-width: 0; }
.is-sequence-interactive .bio-sequence-track {
  display: flex; gap: 0; min-width: 0; width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.is-sequence-interactive .bio-sequence-track > article { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.is-sequence-enhanced .bio-sequence-track { overflow: hidden; scroll-snap-type: none; }
.bio-scene-controls:not([hidden]) {
  display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: .75rem;
  font: 500 .9rem/1.2 var(--sans);
}
.bio-scene-controls button {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--cream); color: var(--burgundy-deep); border: 0; font: 500 1.15rem/1 var(--sans); cursor: pointer;
}
.bio-scene-controls button:disabled { opacity: .43; cursor: default; }
.bio-scene-controls button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bio-centres .bio-scene-controls button { background: var(--burgundy-deep); color: var(--cream); }
.bio-sequence.is-sequence-enhanced .bio-sequence-stage { grid-template-rows: minmax(0,1fr) auto; }
.bio-centre-sequence.is-sequence-enhanced .bio-sequence-stage { grid-template-rows: auto minmax(0,1fr) auto; }
.bio-centre-sequence .bio-scene-controls { grid-column: 1/-1; }
.namkha-rinpoche-page .bio-retreat-film { border-radius: 0; }
.bio-closing {
  margin: var(--bio-space) var(--site-panel-inset) clamp(1.5rem,4vw,3rem);
  padding: clamp(2rem,5vw,4.75rem) 0; border-radius: var(--site-radius); background: var(--blue-deep);
  color: var(--cream); --bio-panel-background: transparent; --bio-chapter-title: var(--cream);
  --bio-chapter-accent: var(--gold-light);
}
.bio-final-layout {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center;
  gap: clamp(2rem,5vw,4.5rem); padding: 0;
}
.bio-final-layout .bio-heading { margin-bottom: 1.5rem; }
.namkha-rinpoche-page .bio-final-layout .photo { overflow: hidden; }
.namkha-rinpoche-page .bio-final-layout .photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 53% center;
  transform: scale(1.28);
  transform-origin: 53% 42%;
}
.public-site .bio-closing .actions { display: flex; flex-flow: row wrap; gap: .65rem; justify-content: flex-start; }
.public-site .bio-closing .actions a { flex: 0 1 auto; width: fit-content; padding-inline: 1.05rem; }
@media (max-width:760px) {
  .namkha-rinpoche-page .bio-article:has(.bio-feature > .bio-portrait), .bio-final-layout { grid-template-columns: 1fr; }
  .namkha-rinpoche-page .bio-feature > .bio-portrait { width: min(100%,20rem); }
  .namkha-rinpoche-page .bio-feature > .bio-portrait figcaption { text-align: left; }
  .namkha-rinpoche-page .bio-feature > .bio-portrait img { object-position: left top; }
  .bio-gallery--masters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bio-centres .bio-map-title { grid-column: auto; }
  .bio-event { padding-inline: var(--bio-gutter); }
  .bio-centre-sequence .bio-centre-stop { text-align: center; }
  .bio-final-layout .photo { max-width: 30rem; }
}

/* Our Community uses the biography's reading widths and chapter panels. */
.public-site.community-page .bio-frame {
  width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
  margin-inline: auto;
}

.public-site.community-page .community-cover {
  background: var(--blue-deep);
  --eyebrow-ink: #ffdb92;
}
.public-site.community-page .community-cover :is(h1, .lead) { color: var(--cream); }
.public-site.community-page .community-cover .masthead-film video { object-position: center 44%; }
.public-site.community-page .community-cover .community-film-toggle {
  color: var(--cream);
  background: var(--blue-deep);
}

.community-page .bio-intro { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.community-chapter { padding-block: clamp(3rem, 6vw, 6rem); }
.community-chapter .bio-heading,
.community-chapter .bio-copy { max-width: 46rem; margin-inline: auto; }
.community-chapter .bio-panel { background: var(--bio-panel-background, transparent); }
.community-chapter:not(.bio-chapter--sand) .bio-panel { padding: 0; }

.community-chapter--split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--bio-gap);
}
.community-chapter--split .bio-heading { margin-inline: 0; }
.community-chapter .community-archive { width: min(100%, 24rem); justify-self: center; }
.community-chapter .community-archive img { height: auto; }
.community-chapter figure figcaption {
  padding: .55rem 0 0;
  margin: 0;
  color: inherit;
  font: 400 .85rem/1.5 var(--sans);
  letter-spacing: normal;
  text-transform: none;
}
.community-chapter .bio-gallery--community-retreat {
  align-items: start;
  margin-top: var(--bio-gap);
}
.community-chapter .bio-gallery--community-retreat img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 48%;
}
.community-everyday { padding-bottom: var(--bio-space); }

.community-page .bio-chapter--gatherings {
  margin-block: var(--bio-gap);
  padding-block: var(--bio-space);
  background: var(--blue-deep);
  color: var(--cream);
  --bio-chapter-title: var(--cream);
  --eyebrow-ink: #ffdb92;
}
.community-masters-intro { text-align: center; }
.community-masters-intro h2 { max-width: none; }
.community-masters-intro .bio-copy .lead {
  font: 400 clamp(1.3rem, 2.05vw, 1.72rem)/1.48 var(--serif);
  text-wrap: pretty;
}
.community-masters-afterword { padding-top: var(--bio-gap); }
.public-site.community-page .community-masters-afterword .actions a { --action-outline: var(--cream); }
:is(.community-page, .bio-shared-visits) .bio-sequence-stage { background: transparent; }
:is(.community-page, .bio-shared-visits) .bio-sequence-track:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
:is(.community-page, .bio-shared-visits) .bio-event { padding-inline: 0; }
:is(.community-page, .bio-shared-visits) .bio-event-meta :is(h3, p) { color: var(--cream); }
:is(.community-page, .bio-shared-visits) .bio-event-media {
  height: clamp(19rem, 42vw, 31rem);
}
:is(.community-page, .bio-shared-visits) .is-sequence-enhanced .bio-event-media { height: auto; }
:is(.community-page, .bio-shared-visits) .bio-event-media .bio-gallery {
  height: 100%;
  grid-auto-rows: minmax(0, 1fr);
}
:is(.community-page, .bio-shared-visits) .bio-event-media .bio-gallery:has(> :nth-child(3)) {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}
:is(.community-page, .bio-shared-visits) .bio-event-media .bio-gallery > :first-child:nth-last-child(3) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
:is(.community-page, .bio-shared-visits) .bio-event-media .photo { height: 100%; }
:is(.community-page, .bio-shared-visits) .bio-event-media .photo img {
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
:is(.community-page, .bio-shared-visits) .bio-event-media .bio-event-portrait img { object-fit: contain; }
:is(.community-page, .bio-shared-visits) .bio-scene-controls button { width: 2.75rem; height: 2.75rem; }

@media (min-width: 761px) and (max-width: 1000px) {
  .public-site.community-page .community-cover .masthead-film { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .public-site.community-page main > .community-cover { grid-template-rows: auto auto; min-block-size: 0; }
  .public-site.community-page .community-cover .masthead-film { aspect-ratio: 4 / 3; }
  .community-chapter--split { grid-template-columns: minmax(0, 1fr); }
  .community-chapter .community-archive { width: min(80%, 21rem); }
  :is(.community-page, .bio-shared-visits) .bio-event-media { height: clamp(16rem, 78vw, 25rem); }
  :is(.community-page, .bio-shared-visits) .bio-event-media .bio-gallery:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
  :is(.community-page, .bio-shared-visits) .bio-event-media .bio-gallery:has(> :nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1.2fr 1fr;
  }
  :is(.community-page, .bio-shared-visits) .bio-event-media .bio-gallery > :first-child:nth-last-child(3) { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 600px) {
  .community-chapter .bio-gallery--community-retreat { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

.bio-scene-progress { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  .bio-centre-sequence.is-sequence-enhanced::after {
    content: "";
    display: block;
    height: var(--bio-sequence-travel);
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-sequence-stage {
    position: sticky;
    top: var(--bio-sequence-inset);
    height: var(--bio-scene-height);
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-centre-stop {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    justify-content: center;
    border: 0;
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-scene-controls button { display: none; }
  .bio-centre-sequence.is-sequence-enhanced .bio-scene-progress {
    display: block;
    width: min(62%, 17rem);
    height: 3px;
    border-radius: 3px;
    overflow: hidden;
    background: rgb(166 108 43 / 22%);
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-scene-progress i { background: var(--burgundy); }
}
@media screen and (max-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .bio-centre-sequence.is-sequence-enhanced .bio-sequence-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: .75rem;
    padding-block: .75rem;
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-map-title { margin-bottom: 0; }
  .bio-centre-sequence.is-sequence-enhanced .bio-map-slot {
    min-height: 0;
    min-width: 0;
    display: grid;
    place-items: center;
    container-type: size;
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-centre-map {
    width: min(100cqw, calc(100cqh * 640 / 464));
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-sequence-track { min-height: 0; }
  .bio-centre-sequence.is-sequence-enhanced .bio-centre-stop {
    padding: .5rem var(--bio-gutter);
    text-align: center;
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-centre-stop h4 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }
  .bio-centre-sequence.is-sequence-enhanced .bio-scene-controls { padding-top: 0; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced::after {
    content: "";
    display: block;
    height: var(--bio-sequence-travel);
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-sequence-stage {
    position: sticky;
    top: var(--bio-sequence-inset);
    height: var(--bio-scene-height);
    max-height: 48rem;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: var(--visit-surface, var(--blue-deep));
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-sequence-track {
    display: flex;
    gap: 0;
    min-height: 0;
    overflow: hidden;
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-event {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    flex: 0 0 100%;
    min-height: 0;
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-event-media {
    height: auto;
    min-height: 0;
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-event-media > *,
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-event-media .photo {
    height: 100%;
    min-height: 0;
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-event-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-scene-controls {
    gap: .85rem;
    padding: 1rem 0 .5rem;
    color: var(--gold-light);
  }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-scene-controls button { display: none; }
  .bio-sequence:not(.bio-centre-sequence).is-sequence-enhanced .bio-scene-progress {
    display: block;
    width: min(62%, 17rem);
    height: 3px;
    border-radius: 3px;
    overflow: hidden;
    background: rgb(239 195 108 / 25%);
  }
  .bio-scene-progress i {
    display: block;
    height: 100%;
    background: var(--gold-light);
    transform: scaleX(var(--sequence-progress, 0));
    transform-origin: left;
    transition: transform 180ms ease;
  }
}

@media (max-width: 760px) {
  .namkha-rinpoche-page .bio-index { display: none; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .is-filmstrip-enhanced .bio-filmstrip-track { will-change: transform; }
  .bio-story::after { transition: transform 140ms ease-out; }
}
