.biography-preview {
    min-height: 100vh;
}

.bio-frame {
    width: min(calc(100% - clamp(36px, 10vw, 144px)), 1312px);
    margin-inline: auto;
}

.biography-preview .top [aria-current="page"] {
    color: var(--accent);
}

.bio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-block: clamp(1.1rem, 3vw, 2.6rem);
    color: var(--muted);
    font-size: .825rem;
}

.bio-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 32px;
}

.bio-toolbar a:hover, .bio-back:hover {
    color: var(--accent);
}

.discography-outline-button { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); padding:.65rem .9rem; background:transparent; color:var(--text); text-decoration:none; }
.discography-outline-button:hover, .discography-outline-button:focus-visible { border-color:var(--accent); color:var(--accent); }

.bio-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    grid-template-areas: "portrait heading" "portrait copy";
    column-gap: clamp(1.8rem, 6vw, 6.25rem);
    row-gap: clamp(1.5rem, 3vw, 2.65rem);
    align-items: start;
    padding-bottom: clamp(3rem, 8vw, 7rem);
}

.bio-without-portrait {
    grid-template-columns: minmax(0, 67ch);
    grid-template-areas: "heading" "copy";
}

.bio-heading {
    grid-area: heading;
    padding-top: clamp(.35rem, 2vw, 1.75rem);
}

.bio-heading h1 {
    margin: 0;
    max-width: 8em;
    font: 700 clamp(3rem, 7.1vw, 7rem)/.88 var(--font-heading), system-ui, sans-serif;
    letter-spacing: -.075em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.bio-heading .kicker {
    margin-block-end: clamp(.6rem, 1.4vw, 1.25rem);
    text-transform: uppercase;
}

.bio-languages {
    display: flex;
    gap: .6rem;
    margin-top: clamp(1.35rem, 3vw, 2.2rem);
}

.bio-languages a {
    display: inline-grid;
    place-items: center;
    min-width: 4.25rem;
    min-height: 44px;
    padding-inline: .8rem;
    border: 1px solid var(--border);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.bio-languages a:hover, .bio-languages a[aria-current] {
    border-color: var(--accent);
}

.bio-languages a[aria-current] {
    color: var(--background);
    background: var(--accent);
}

.bio-portrait {
    grid-area: portrait;
    margin: 0;
}

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

.bio-carousel { position: relative; }
.bio-carousel .event-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; border-bottom: 3px solid var(--accent); }
.bio-carousel .event-carousel-track::-webkit-scrollbar { display: none; }
.bio-carousel .event-carousel-slide { flex: 0 0 100%; scroll-snap-align: start; }
.bio-carousel .event-carousel-arrow { position: absolute; top: 45%; display: grid; place-items: center; padding: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: #15151580; cursor: pointer; box-shadow: 0 2px 8px #0003; transition: background-color .2s ease; }
.bio-carousel .event-carousel-arrow svg { display: block; width: 22px; height: 22px; }
.bio-carousel .event-carousel-arrow:hover, .bio-carousel .event-carousel-arrow:focus-visible { background: #151515c9; }
.bio-carousel .event-carousel-prev { left: .75rem; }
.bio-carousel .event-carousel-next { right: .75rem; }
.bio-carousel .event-carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.bio-carousel .event-carousel-dots { display: flex; justify-content: center; gap: .45rem; padding: .85rem 0 .2rem; }
.bio-carousel .event-carousel-dots button { width: 8px; height: 8px; border: 0; border-radius: 50%; padding: 0; background: #777; cursor: pointer; }
.bio-carousel .event-carousel-dots button[aria-current] { background: var(--accent); }
.bio-carousel.bio-transition .event-carousel-track { opacity: 0; transition: opacity .6s ease; }
.bio-carousel .event-carousel-track { transition: opacity .6s ease; }
.bio-carousel.bio-crossfade .event-carousel-track { display: grid; overflow: hidden; touch-action: pan-y; }
.bio-carousel[data-bio-fit="cover"] .event-carousel-track { width: 100%; min-height: 0; aspect-ratio: var(--bio-ratio, auto); }
.bio-carousel[data-bio-fit="cover"] .event-carousel-slide { height: 100%; min-height: 0; overflow: hidden; }
.bio-carousel[data-bio-fit="cover"] .event-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.bio-carousel.bio-crossfade[data-bio-fit="cover"] .event-carousel-track { grid-template-rows: minmax(0, 1fr); }
.bio-carousel.bio-crossfade .event-carousel-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.bio-carousel.bio-crossfade .event-carousel-slide.is-active, .bio-carousel.bio-crossfade .event-carousel-slide.is-under { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.bio-carousel.bio-crossfade .event-carousel-slide.is-active { z-index: 2; pointer-events: auto; }
.bio-carousel.bio-crossfade .event-carousel-slide.is-under { z-index: 1; }
.bio-carousel.bio-crossfade[data-bio-effect="kenburns"] .event-carousel-slide:is(.is-active, .is-under) img { animation: bio-kenburns var(--bio-interval, 7s) linear both; transform-origin: center; }
@keyframes bio-kenburns { from { transform: scale(1); } to { transform: scale(1.035); } }

.bio-profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    gap: 1rem;
    margin: 0;
}

.bio-profiles li { width: 34px; height: 34px; }
.bio-profiles a, .bio-profiles span { display: grid; place-items: center; width: 100%; height: 100%; }
.bio-profiles span { opacity: .7; }
.bio-profiles img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter .18s ease, transform .18s ease;
}

.bio-profiles a:hover img, .bio-profiles a:focus-visible img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(97%) saturate(2516%) hue-rotate(340deg) brightness(105%);
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .bio-carousel .event-carousel-track { scroll-behavior: auto; transition: none; }
    .bio-carousel[data-bio-effect="kenburns"] .event-carousel-slide img { animation: none; }
    .bio-profiles img { transition: none; }
    .bio-profiles a:hover img, .bio-profiles a:focus-visible img { transform: none; }
}

.bio-copy {
    grid-area: copy;
    max-width: 66ch;
    padding-top: clamp(1.35rem, 2.7vw, 2.1rem);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

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

.bio-copy p:first-child {
    color: var(--text);
    font-size: 1.22em;
    line-height: 1.45;
}

.bio-copy a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: .22em;
}

@media (max-width: 700px) {
    .bio-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "heading" "portrait" "copy";
    }

    .bio-without-portrait {
        grid-template-areas: "heading" "copy";
    }

    .bio-heading h1 {
        font-size: clamp(2.65rem, 11vw, 4.4rem);
    }

    .bio-portrait {
        position: static;
    }

}
