:root {
    color-scheme: dark;
    --page: #031724;
    --panel: #092735;
    --ink: #f1f8fc;
    --muted: #b6c9d1;
    --line: #24505f;
    --cyan: #45d5f4;
    --radius: 1.1rem;
    background: var(--page);
    color: var(--ink);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 70% 32rem at 76% 11%, #0c3444, transparent), var(--page); }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.top { background: #03131b; border-bottom: 1px solid #16333f; }
.top nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.top a { display: inline-flex; align-items: center; font-weight: 750; text-decoration: none; }
.brand { gap: 12px; font-size: .94rem; letter-spacing: .06em; }
.brand img { display: block; object-fit: contain; }
.back { padding-block: .85rem; color: var(--muted); }
.back:hover, .footer a:hover { color: var(--cyan); }
.intro {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto;
    grid-template-areas: "photo name" "photo details";
    gap: 0 clamp(30px, 5vw, 80px);
    align-items: center;
    padding-block: clamp(32px, 5vw, 72px);
}
.name { grid-area: name; align-self: end; }
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.07; color: #fff; text-wrap: balance; }
h1 { font-weight: 850; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.65rem); letter-spacing: -.045em; margin-bottom: 1.2rem; }
.availability { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; color: var(--cyan); font-size: .93rem; font-weight: 750; }
.availability::before { content: ""; width: .52rem; height: .52rem; border-radius: 50%; background: currentColor; }
.portrait { grid-area: photo; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.portrait img { width: 100%; display: block; height: auto; aspect-ratio: 4 / 4.65; object-fit: cover; object-position: center top; }
.details { grid-area: details; align-self: start; padding-top: 1.15rem; }
.lead { max-width: 40em; line-height: 1.58; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #d4e3e9; }
.special { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; margin-top: 20px; padding: 12px 15px; border-left: 3px solid #ff5a72; background: #331f2d; border-radius: 0 8px 8px 0; }
.special strong { font-size: .75rem; line-height: 1.9; letter-spacing: .045em; text-transform: uppercase; color: #ff8c9e; }
.buttons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .75em; min-height: 46px; padding: .75rem 1.28rem; border-radius: 999px; font-weight: 750; text-decoration: none; line-height: 1.25; }
.primary { background: var(--cyan); color: #04202c; }
.primary:hover { background: #8be9ff; }
.secondary { border: 1px solid #486572; }
.secondary:hover { border-color: var(--cyan); }
.categories { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 1.3rem 0 0; list-style: none; }
.categories li { padding: .3rem .68rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; }
.section { border-top: 1px solid var(--line); padding-block: clamp(24px, 4vw, 48px); scroll-margin-block-start: 16px; }
.section-title { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: baseline; margin-bottom: 1.2rem; }
.section-title h2 { margin: 0; }
.section-title span { color: var(--muted); font-size: .92rem; }
.video video { width: 100%; height: auto; aspect-ratio: 16/9; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #020a0e; }
.video .primary { margin-top: 1rem; }
.photos { display: grid; gap: clamp(10px, 1.4vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(170px, 42%), 1fr)); }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.photos a:hover img { border-color: var(--cyan); }
.biography p { max-width: 78ch; line-height: 1.75; color: var(--muted); }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); padding-block: 26px; }
.footer a { color: var(--muted); padding-block: 5px; font-size: .9rem; text-underline-offset: .2em; }
dialog { max-width: min(90vw, 850px); max-height: 96dvh; padding: 12px; background: #051923; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
dialog::backdrop { background: rgb(0 0 0 / .85); }
dialog button { min-width: 44px; min-height: 44px; padding: 8px 16px; color: #fff; background: var(--panel); font: inherit; border: 1px solid var(--line); border-radius: 24px; cursor: pointer; }
dialog .close { display: block; margin: 0 0 8px auto; }
.enlarged { display: block; margin-inline:auto; width:auto; max-width:100%; height:auto; max-height:calc(92dvh - 132px); object-fit:contain; }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
@media (max-width: 720px) {
    .wrap { width: calc(100% - 32px); }
    .top nav { min-height: 57px; }
    .brand { font-size: .77rem; letter-spacing: .045em; gap: .5rem; }
    .brand img { width: 32px; height: 32px; }
    .back { font-size: .9rem; }
    .intro { grid-template-columns: 1fr; grid-template-areas: "name" "photo" "details"; gap: 14px; padding-block: 22px 26px; }
    .name { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
    h1 { font-size: clamp(2.35rem, 9vw, 4rem); }
    .availability { margin: 0; font-size: .8rem; }
    .portrait img { aspect-ratio: 4 / 4.5; max-height: min(460px, 55svh); }
    .details { padding-top: 0; }
    .special, .buttons { margin-top: 14px; }
    .categories { margin-top: 12px; }
}
