/* Suppress the browser's rectangular touch highlight across the site. */
* {
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'Gros Ventre';
    src: url('/fonts/Gros Ventre Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_24pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_24pt-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_24pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_24pt-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gros Ventre';
    src: url('/fonts/Gros Ventre Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gros Ventre';
    src: url('/fonts/Gros Ventre Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gros Ventre';
    src: url('/fonts/Gros Ventre Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gros Ventre';
    src: url('/fonts/Gros Ventre Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    background: #91BFFF;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #91BFFF;
}

#scene {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

#error {
    position: fixed;
    inset: auto 24px 24px;
    margin: 0;
    color: #dce5f2;
    font: 14px/1.5 system-ui, sans-serif;
}

[hidden] {
    display: none !important;
}

#scene.is-figure-hovered { cursor: pointer; }
.comment-popup {
    width: min(766px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    overflow: auto;
    background: transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.comment-popup::backdrop {
    background: rgb(20 25 43 / 45%);
}
.comment-popup__layout { position: relative; padding-top: 58px; padding-right: 58px; }
.comment-popup__card {
    position: relative;
    max-height: 60dvh;
    border-radius: 48px;
    overflow: hidden;
    isolation: isolate;
}
.comment-popup__card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid #fff;
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
}
.comment-popup__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgb(255 255 255 / 5%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Only the glass and its decoration have a cutout. The model and text
       remain unmasked, with the original scene visible inside the circle. */
    --preview-cutout: radial-gradient(
        ellipse var(--preview-rx, 100px) var(--preview-ry, 100px)
        at var(--preview-x, -1000px) var(--preview-y, -1000px),
        transparent calc(100% - 1px), #000 100%
    );
    mask-image: var(--preview-cutout);
    -webkit-mask-image: var(--preview-cutout);
}
.comment-popup__decoration { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.comment-popup__decoration img { position: absolute; max-width: none; }
.comment-popup__glow { left: -299px; top: -79px; }
.comment-popup__surface { left: 50%; top: 0; transform: translateX(-50%); }
.comment-popup__corner-glow { left: -76.6px; top: -65.6px; }
.comment-popup__corner-middle { left: -24px; top: -13px; }
.comment-popup__corner-front { left: -24px; top: -13px; }
.comment-popup__scroll {
    position: relative;
    max-height: 60dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 255 255 / 40%) transparent;
}
.comment-popup__content { min-height: 260px; padding: 50px 69px 40px; }
.comment-popup__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-right: 190px;
    color: rgb(255 255 255 / 80%);
    font-size: 18px;
    line-height: 1.3;
}
.comment-popup__meta time { font-size: 16px; white-space: nowrap; }
.comment-popup h2 {
    margin: 12px 185px 16px 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.comment-popup__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 180px; }
.comment-popup__tags span {
    padding: 8px 12px;
    border-radius: 22px;
    background: rgb(170 255 239 / 20%);
    font-size: 16px;
    line-height: 1;
}
.comment-popup__tags span:nth-child(2) { background: rgb(255 231 170 / 20%); }
.comment-popup__tags span:nth-child(3) { background: rgb(255 170 184 / 20%); }
.comment-popup__text {
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.23;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.comment-popup__text p { margin: 0 0 12px; }
.comment-popup__text p:last-child { margin-bottom: 0; }
.comment-popup__text-line { display: block; white-space: pre; overflow-wrap: normal; }
.comment-popup__figure {
    position: absolute;
    right: 30px;
    top: 26px;
    width: 200px;
    height: 200px;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 50%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}
.comment-popup__figure.is-dragging { cursor: grabbing; }
.comment-popup__figure canvas { display: block; position: static; width: 100%; height: 100%; }
.comment-popup__close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 12px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgb(255 255 255 / 5%);
    color: #fff;
    cursor: pointer;
}
.comment-popup :focus-visible { outline: 2px solid #fff1cb; outline-offset: -4px; }
.comment-compose { width: min(708px, calc(100vw - 32px)); }
.comment-compose .comment-popup__layout { padding: 0; }
.comment-compose .comment-popup__card { height: 497px; max-height: none; }
.comment-compose .comment-popup__background { mask-image: none; -webkit-mask-image: none; }
.comment-compose .comment-popup__scroll { max-height: none; overflow: visible; }
.comment-compose__glow { left: -254px; top: -79px; }
.comment-compose__corner-glow { left: -76.6px; top: -65.6px; }
.comment-compose__corner-middle, .comment-compose__corner-front { left: -24px; top: -13px; }
.comment-compose__form { display: grid; grid-template-columns: minmax(0, 395px) 200px; gap: 12px; padding: 26px 30px 28px 69px; }
.comment-compose__fields { min-width: 0; padding-top: 26px; }
.comment-compose .comment-popup__meta { padding: 0; margin: 0 0 20px; justify-content: space-between; gap: 12px; }
.comment-compose .comment-popup__meta small { font-size: 14px; white-space: nowrap; }
.comment-compose input, .comment-compose textarea {
    display: block; box-sizing: border-box; width: 100%; border: 0; border-radius: 20px;
    padding: 20px 36px; background: rgb(255 255 255 / 30%); color: #000e27;
    font: inherit; font-size: 18px; line-height: 1.5;
}
.comment-compose input { height: 61px; margin-bottom: 12px; }
.comment-compose textarea { height: 210px; padding-top: 24px; resize: none; }
.comment-compose input::placeholder, .comment-compose textarea::placeholder { color: #495a75; opacity: 1; }
.comment-compose input:focus, .comment-compose textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / 90%);
}
.comment-compose .comment-popup__figure:focus,
.comment-compose .comment-popup__figure:focus-visible { outline: none; box-shadow: none; }
.comment-compose__notice { font-size: 14px; line-height: 1.4; margin: 14px 0 0; }
.comment-compose__selector { height: 442px; position: relative; border-radius: 100px; border: 1px solid #fff; box-sizing: border-box; overflow: hidden; }
.comment-compose .comment-popup__figure { position: absolute; inset: 12px 10px auto; margin: 0; width: calc(100% - 20px); height: auto; aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; }
.comment-compose__catalog { position: absolute; inset: auto 0 0; height: 241px; border-radius: 100px; overflow: hidden; background: rgb(255 255 255 / 22%); }
.comment-compose__options { position: absolute; inset: 0; box-sizing: border-box; padding: 40px 8px; overflow-y: auto; overflow-x: hidden; background: transparent; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.comment-compose__options::-webkit-scrollbar { display: none; }
.comment-compose__options button { display: block; position: relative; width: 100%; padding: 8px 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.comment-compose__thumbnail { display: block; width: min(174px, calc(100% - 8px)); aspect-ratio: 1; margin: auto; pointer-events: none; }
.comment-compose__catalog-canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; }
.comment-compose__scrollbar { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; fill: none; pointer-events: none; }
.comment-compose__scrollbar path { vector-effect: non-scaling-stroke; pointer-events: stroke; touch-action: none; cursor: grab; }
.comment-compose__scroll-track { stroke: rgb(255 255 255 / 25%); stroke-width: 2px; }
.comment-compose__scroll-thumb { stroke: #fff; stroke-width: 2px; stroke-linecap: round; }
.comment-compose__scrollbar:active path { cursor: grabbing; }
.comment-compose .comment-compose__scrollbar:focus-visible { outline: none; }
.comment-compose__scrollbar:focus-visible .comment-compose__scroll-thumb { stroke: #fff1cb; stroke-width: 2px; }
.comment-compose__actions { position: relative; height: 100px; margin-top: 4px; border-radius: 48px; overflow: hidden; isolation: isolate; }
.comment-compose__action-surface { position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(var(--action-scale-x, 1), var(--action-scale-y, 1)); transform-origin: center top; z-index: -1; pointer-events: none; }
.comment-compose__actions button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: opacity 160ms ease; }
.comment-compose__actions .comment-compose__discard { --label-x: 26%; clip-path: polygon(0 0, 51.84% 0, 47.88% 100%, 0 100%); }
.comment-compose__actions .comment-compose__publish { --label-x: 74.8%; clip-path: polygon(52.54% 0, 100% 0, 100% 100%, 48.59% 100%); }
.comment-compose__actions button > img { position: absolute; left: var(--label-x); top: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; transition: filter 180ms ease, opacity 180ms ease; }
.comment-compose__actions button > span { position: absolute; left: var(--label-x); top: 50%; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; transition: transform 100ms ease; }
.comment-compose__actions button::before, .comment-compose__actions button::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 160ms ease; }
.comment-compose__actions button::before { background: radial-gradient(110px circle at var(--cursor-x, var(--label-x)) var(--cursor-y, 50%), rgb(255 255 255 / 24%), transparent 100%), rgb(255 255 255 / 6%); }
.comment-compose__actions button::after { background: rgb(255 255 255 / 16%); }
@media (hover: hover) and (pointer: fine) {
    .comment-compose__actions button:enabled:hover::before { opacity: 1; }
    .comment-compose__actions button:enabled:hover > img { filter: brightness(1.2); }
}
.comment-compose__actions button:enabled:active::after { opacity: 1; transition-duration: 60ms; }
.comment-compose__actions button:enabled:active > span { transform: translate(-50%, calc(-50% + 1px)); }
.comment-compose .comment-compose__actions button:focus-visible { outline: none; }
.comment-compose__actions button:focus-visible::after { opacity: 1; }
.comment-compose__actions button:focus-visible > span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.comment-compose__actions button:disabled { opacity: .5; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
    .comment-compose__actions button, .comment-compose__actions button::before, .comment-compose__actions button::after,
    .comment-compose__actions button > img, .comment-compose__actions button > span { transition: none; }
}
@media (max-width: 740px) {
    .comment-compose .comment-popup__card { height: auto; border-radius: 32px; }
    .comment-compose__form { grid-template-columns: minmax(0, 1fr) 150px; padding: 24px; gap: 16px; }
    .comment-compose__selector { height: 420px; }
    .comment-compose__fields { padding-top: 0; }
    .comment-compose .comment-popup__meta { flex-wrap: wrap; margin: 0 0 16px; }
    .comment-compose input, .comment-compose textarea { padding: 16px; font-size: 16px; }
    .comment-compose textarea { height: 260px; }
    .comment-compose__actions { overflow: hidden; border-radius: 48px; }
    .comment-compose__actions button { font-size: 15px; }
}
@media (max-width: 480px) {
    .comment-compose__form { display: flex; flex-direction: column; padding: 24px; }
    .comment-compose__selector { width: min(200px, 100%); height: 442px; margin: 0 auto; border-radius: 100px; }
    .comment-compose textarea { height: 210px; }
    .comment-compose__actions { height: 80px; }
}
.comment-launchers {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.comment-launchers:focus-within {
    clip-path: none;
    width: auto;
    height: auto;
    max-height: 80dvh;
    overflow: auto;
    padding: 16px;
    border-radius: 16px;
    background: #35436a;
}
@media (max-width: 680px) {
    .comment-popup__layout { padding-right: 0; padding-top: 66px; }
    .comment-popup__card { border-radius: 32px; }
    .comment-popup__content { padding: 32px 24px; }
    .comment-popup__meta { padding-right: 0; font-size: 16px; }
    .comment-popup h2 { margin-right: 0; }
    .comment-popup__tags { padding-right: 0; }
    .comment-popup__figure { position: relative; inset: auto; margin: 24px auto 0; width: 200px; height: 200px; }
    .comment-popup__content { display: contents; }
    .comment-popup__meta, .comment-popup h2, .comment-popup__tags { margin: 20px 24px 0; }
    .comment-popup__meta { margin-top: 32px; }
    .comment-popup__text { margin: 24px; font-size: 16px; line-height: 1.4; }
    .comment-popup__scroll { display: flex; flex-direction: column; }
    .comment-popup__figure { order: 1; }
    .comment-popup__text { order: 2; }
    .comment-popup__text { margin-bottom: 32px; }
    .comment-popup__figure { flex-shrink: 0; }
}


.background-title {
    color: #fff;
    pointer-events: none;
    position: fixed;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    font-family: 'Gros Ventre', sans-serif;
    font-weight: 600;
    font-size: 190px;
    line-height: 208px;
    white-space: nowrap;

    z-index: 0;
}

.frontground-title {
    pointer-events: none;
    position: fixed;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);

    font-family: 'Gros Ventre', sans-serif;
    font-weight: 600;
    font-size: 190px;
    line-height: 208px;
    white-space: nowrap;

    z-index: 8;

    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 1 L7 7 L1 7 Z' fill='white'/%3E%3C/svg%3E");

    background-size: 8px 8px;
    background-repeat: repeat;

    /* паттерн становится заливкой букв */
    -webkit-background-clip: text;
    background-clip: text;
}

.intro-stage {
    position: fixed;
    z-index: 9;
    top: 50%;
    left: 50%;
    width: 1920px;
    height: 1080px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.intro-stage__visuals {
    position: absolute;
    top: 185px;
    left: -282px;
    width: 1355.853px;
    height: 1029.09px;
    overflow: visible;
    pointer-events: none;
}

.intro-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1419.13px;
    height: 499.347px;
    max-width: none;
    transform: translate(-50%, -50%) rotate(30.59deg);
}

.intro-glow { position: absolute; display: block; max-width: none; }
/* SVG bounds include 40px of blur padding (160px for Rectangle 23).
   Positions use the 1080px reference canvas center. */
.intro-glow--19 { top: 569.45px; left: 603px; width: 212px; height: 110px; }
.intro-glow--23 { top: 449.45px; left: 482px; width: 835px; height: 383px; }
.intro-glow--20 { top: 573.45px; left: 735px; width: 206px; height: 114px; }
.intro-glow--25 { top: 575.45px; left: 876px; width: 302px; height: 101px; }
.intro-glow--26 { top: 605.45px; left: 1063px; width: 171px; height: 101px; }
.intro-glow--21 { top: 597.45px; left: 894px; width: 174px; height: 111px; }
.intro-glow--22 { top: 570.45px; left: 1089px; width: 156px; height: 105px; }
.intro-glow--24 { top: 607.45px; left: 599px; width: 354px; height: 104px; }

@media (min-width: 701px) {
    .intro-glow { transform: translateY(-30px); }
}

.intro-card {
    position: absolute;
    top: 746px;
    left: 325px;
    width: 619px;
    height: 106px;
    padding: 12px 24px;
    border: 1px solid rgb(255 255 255 / 62%);
    border-radius: 32px;
    color: #fff;
    background: rgb(255 255 255 / 13%);
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 1;
    will-change: opacity;
    pointer-events: auto;
}

.intro-card__mobile-glows, .intro-card__mobile-break { display: none; }

.intro-card__content { position: relative; width: 571px; height: 82px; }
.intro-card__corner { position: absolute; display: block; width: 32px; height: 32px; }
.intro-card__corner--start { top: 0; left: 0; transform: rotate(-90deg) scaleY(-1); }
.intro-card__corner--end { top: 50px; left: 539px; }

.intro-card__text {
    position: absolute;
    top: 9px;
    left: 19px;
    width: 542px;
    margin: 0;
    color: #fff;
    font: 600 20px/1.53 'Inter', sans-serif;
}

.term-tip { position: relative; display: inline; }
.term-tip__trigger {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    color: #6287ff;
    background: transparent;
    font: inherit;
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: help;
}

.term-tip__trigger:hover { color: #86a3ff; }
.term-tip__trigger:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.term-tip__trigger:active { color: #466ef2; }

.term-tip__popup {
    position: absolute;
    z-index: 4;
    bottom: calc(100% + 14px);
    left: 50%;
    width: 300px;
    padding: 12px 14px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 16px;
    color: #fff;
    background: rgb(15 24 51 / 88%);
    box-shadow: none;
    font: 500 14px/1.45 'Inter', sans-serif;
    font-style: normal;
    text-align: left;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 600ms cubic-bezier(0.85, 0, 0.15, 1), transform 600ms cubic-bezier(0.85, 0, 0.15, 1), visibility 0s 600ms;
    pointer-events: none;
}

.term-tip__popup::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 1px solid rgb(255 255 255 / 24%);
    border-bottom: 1px solid rgb(255 255 255 / 24%);
    background: rgb(15 24 51 / 88%);
    content: '';
    transform: translate(-50%, -6px) rotate(45deg);
}

.term-tip.is-open .term-tip__popup {
    transition-delay: 0s;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* Figma: 12 columns × 78px, 11 gutters × 12px = 1068px. */
.profile-stage {
    --layout-width: 55.625vw;
    position: fixed;
    z-index: 10;
    inset: 0;
    opacity: 0;
    will-change: opacity;
    pointer-events: none;
}
.profile-photo-slot {
    position: absolute;
    z-index: 2;
    left: calc(50% + 6px);
    top: max(48%, calc(28% + 172px));
    width: calc(var(--layout-width) / 2 - 6px);
    height: min(30%, calc(82% - max(48%, calc(28% + 172px)) - 16px));
    pointer-events: none;
}

.profile-cover-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(16px, 1.5vw, 28px);
    border: 0;
    border-radius: 0;
    appearance: none;
    background: rgb(24 39 76 / 25%);
    color: #f1f5ff;
    font: 600 clamp(16px, 1.1vw, 22px)/1.4 'Inter', sans-serif;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    cursor: default;
    transition: opacity 600ms cubic-bezier(0.85, 0, 0.15, 1);
}

.profile-cover-caption { min-width: 0; overflow-wrap: break-word; white-space: pre-wrap; }

.profile-stage, .intro-stage, .background-title, .frontground-title {
    filter: opacity(var(--cover-content-opacity, 1));
}

/* Keep the textured stage and menu while the character opens the view. */
body.cover-mode-active .profile-stage,
body.cover-mode-active .intro-stage,
body.cover-mode-active .background-title,
body.cover-mode-active .frontground-title {
    pointer-events: none !important;
}
body.cover-mode-active { overflow: hidden; overscroll-behavior: none; }
body.cover-mode-active * { animation-play-state: paused !important; }
body.cover-mode-active .site-header,
body.cover-mode-active .site-header * { animation-play-state: running !important; }
/* Preserve the original stacking until the publication is fully visible. */
body.cover-mode-active #scene { pointer-events: none; }
body.cover-hands-foreground #scene { z-index: 21; }
body.cover-mode-active .texture-foreground { z-index: 22; }
.publication-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}
.publication-backdrop::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 87.916667%;
    height: 123.888889%;
    transform: translate(-50%, -50%);
    background: url('/images/publication/reading-field.svg') center / 100% 100% no-repeat;
}
.publication-edge {
    position: absolute;
    top: -8.564815%;
    width: 19.270833%;
    height: 116.064815%;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.publication-edge--left { left: 1.25%; background-image: url('/images/publication/edge-left.svg'); transform: scaleX(-1); }
.publication-edge--right { right: 1.25%; background-image: url('/images/publication/edge-right.svg'); }
.cover-mode-controls {
    position: fixed;
    z-index: 19;
    inset: 0;
}
.publication-reveal {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: opacity;
}
.publication-scroll {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: max(136px, 19.259259vh) 0 max(112px, calc(env(safe-area-inset-bottom) + 88px));
    box-sizing: border-box;
    scrollbar-width: none;
}
.publication-scroll::-webkit-scrollbar { display: none; }
.publication-tools {
    position: fixed;
    inset: 0;
    z-index: 23;
    pointer-events: none;
}
.publication-scrollbar {
    position: absolute;
    left: 81.197917%;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 80vh;
    height: 80dvh;
    border-radius: 40px;
    background: #cdd7ec;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
}
.publication-scrollbar[aria-disabled="true"] { cursor: default; }
.publication-scrollbar:focus-visible { outline: 2px solid #314a7d; outline-offset: 4px; }
.publication-scrollbar__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    min-height: 50px;
    border-radius: 40px;
    background: #7c91bc;
    will-change: transform;
}
.publication-toc {
    position: absolute;
    left: 86.197917%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
}
.publication-toc-item { position: relative; }
.publication-toc__trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 49px;
    height: var(--toc-row-height, 15px);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.publication-toc__line {
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 10px;
    background: #7c91bc;
    transition: background-color 200ms ease;
}
.publication-toc__trigger:is([aria-current="location"], :hover, :focus-visible) .publication-toc__line { background: #314a7d; }
.publication-toc__trigger:focus-visible { outline: 2px solid #314a7d; outline-offset: 3px; }
.publication-toc-item .term-tip__popup {
    bottom: auto;
    top: 50%;
    left: auto;
    right: calc(100% + 14px);
    width: min(300px, 65vw);
    box-sizing: border-box;
    transform: translate(-6px, -50%);
    overflow-wrap: anywhere;
}
.publication-toc-item .term-tip__popup::after {
    top: 50%;
    left: auto;
    right: -6px;
    transform: translateY(-50%) rotate(-45deg);
}
.publication-toc-item:is(:hover, :focus-within) .term-tip__popup {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    transform: translate(0, -50%);
}
@media (max-width: 700px) {
    .publication-scrollbar { left: auto; right: 52px; width: 10px; }
    .publication-scrollbar__thumb { width: 10px; }
    .publication-toc { left: auto; right: 12px; }
    .publication-toc__trigger { width: 28px; }
    .publication-toc__line { width: 28px; }
}
.cover-mode-controls[hidden] { display: none; }
.cover-mode-controls > button {
    z-index: 1;
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 22px;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 24px;
    background: rgb(240 247 255 / 90%);
    color: #4565db;
    font: inherit;
    cursor: pointer;
}
.cover-mode-controls button:focus-visible { outline: 2px solid #4565db; outline-offset: 4px; }
.cover-publication {
    width: 60%;
    margin: 0 auto;
    color: #000e27;
    color-scheme: light;
    text-align: left;
    font: 500 clamp(12px, 1.09375vw, 21px)/1.5 'Inter', sans-serif;
    overflow-wrap: anywhere;
}
.cover-publication:focus { outline: none; }
.cover-publication > :first-child { margin-top: 0; }
.cover-publication > :last-child { margin-bottom: 0; }
.cover-publication :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 24px;
}
.cover-publication :is(h1, h2) { font-size: clamp(16.5px, 1.40625vw, 27px); }
.cover-publication :is(h3, h4, h5, h6) { font-size: 1.1em; }
.cover-publication :is(p, ul, ol, blockquote, pre, table) { margin-block: 0 24px; }
.cover-publication img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-block: 1.5em;
}
.cover-publication a { color: inherit; text-underline-offset: 0.2em; }
.cover-publication blockquote { border-left: 2px solid #91a9cc; padding-left: 1.25em; margin-left: 0; }
.cover-publication pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.cover-publication table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cover-publication :is(th, td) { border: 1px solid rgb(0 14 39 / 25%); padding: 0.5em 0.75em; text-align: left; }
@media (max-width: 700px) {
    .cover-publication { width: auto; margin-left: 8%; margin-right: 80px; }
    .publication-backdrop::before { width: 100%; }
    .publication-scroll { padding-top: 136px; }
}
.profile-photo-slot[data-ready="true"] .profile-cover-hover { pointer-events: auto; }
.profile-photo-slot[data-ready="true"] .profile-cover-hover:not(:disabled) { cursor: pointer; }
.profile-photo-slot[data-ready="true"] .profile-cover-hover:active:not(:disabled) { background: rgb(24 39 76 / 45%); opacity: 1; }
.profile-cover-hover:disabled { cursor: default; }
.profile-photo-slot:not([data-ready="true"]) .profile-cover-hover {
    opacity: 0;
    visibility: hidden;
    transition: none;
    pointer-events: none;
}
.profile-photo-slot[data-ready="true"] .profile-cover-hover:is(:hover, :focus-visible, .is-open) { opacity: 1; }
.profile-cover-hover:focus-visible { outline: 2px solid #f1f5ff; outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
    .profile-cover-hover { transition: none; }
}

.profile-stage__backdrops {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

.profile-stage__backdrop {
    position: absolute;
    background: url('/images/ui/Union.svg') center / contain no-repeat;
    filter: blur(12px);
}

.profile-stage__backdrop--left,
.profile-stage__backdrop--right {
    top: 12%;
    width: calc(var(--layout-width) * .75);
    height: 73%;
    transform: none;
}
.profile-stage__backdrop--left { left: calc(50% - var(--layout-width) / 2 - var(--layout-width) * .125); }
.profile-stage__backdrop--right { left: calc(50% - var(--layout-width) * .125); will-change: opacity; }
.profile-stage__aside { font-size: inherit; white-space: nowrap; }
.profile-stage__copy--left .profile-stage__title { width: 134px; margin-left: 80px; }
.profile-stage__copy--right .profile-stage__title { width: 156px; margin-inline: auto; }
.profile-contact.liquid-glass:last-child { width: 194px; margin-left: 78px; }
.profile-skill:nth-child(1) .profile-skill__pill { width: 146px; box-shadow: none; }
.profile-skill:nth-child(2) .profile-skill__pill { width: 111px; }
.profile-skill:nth-child(3) .profile-skill__pill { width: 157px; }

.profile-stage__copy {
    position: absolute;
    z-index: 3;
    color: #6287ff;
    font-family: 'Inter', sans-serif;
}

.profile-stage__copy--left {
    top: 28%;
    left: calc(50% - var(--layout-width) / 2 + (var(--layout-width) + 12px) / 12 + 80px);
    width: calc((var(--layout-width) + 12px) * 5 / 12 - 12px);
}

.profile-stage__copy--right {
    top: 28%;
    left: calc(50% + 6px);
    width: calc(var(--layout-width) / 2 - 6px);
}

.profile-stage__title {
    margin: 0;
    color: #6287FF;
    height: 52px;
    font: 600 48px/56px 'Gros Ventre', sans-serif;
    text-align: center;
    letter-spacing: -0.05em;
}

.profile-stage__intro,
.profile-stage__invite {
    position: absolute;
    top: 71px;
    left: 0;
    width: 278px;
    margin: 0;
    color: #6287ff;
    font: 500 14px/21px 'Inter', sans-serif;
}

.profile-stage__invite {
    top: 146px;
    left: 75px;
    width: 197px;
    font-style: italic;
    font-weight: 500;
}

.profile-stage__contacts {
    position: absolute;
    top: 228px;
    left: 0;
    width: 272px;
    height: 103px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin: 0;
}

.profile-contact.liquid-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    width: 233px;
    height: 44px;
    padding: 10px 24px 10px 20px;
    border: 0;
    outline: 1px solid rgb(255 255 255 / 44%);
    outline-offset: -1px;
    border-radius: 18px;
    color: #6287ff;
    background: rgb(255 255 255 / 40%);
    box-shadow: none;
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    backdrop-filter: blur(16px) saturate(1.08);
    font: 600 16px/16px 'Inter', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
    pointer-events: auto;
    cursor: pointer;
}

.profile-contact[aria-busy="true"] { cursor: progress; }
.profile-contact__email {
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}

.copy-notice.term-tip__popup {
    position: fixed;
    z-index: 50;
    top: auto;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 32px);
    text-align: center;
    transform: translate(-50%, 6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
    pointer-events: none;
}
.copy-notice.term-tip__popup::after { display: none; }
.copy-notice.term-tip__popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
    .copy-notice.term-tip__popup { transition: none; }
}

.profile-contact img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    object-fit: contain;
}

.profile-contact.is-loading img { visibility: hidden; }

.profile-contact:hover {
    border-color: rgb(255 255 255 / 70%);
    background: rgb(255 255 255 / 21%);
    box-shadow: none;
    transform: translateY(-1px);
}

.profile-contact:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.profile-contact:active {
    transform: translateY(1px) scale(.99);
}

.profile-contact.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.profile-contact.is-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgb(255 255 255 / 35%);
    border-top-color: #6287ff;
    border-radius: 50%;
    content: '';
    animation: profile-contact-spin .7s linear infinite;
}

.profile-contact[aria-disabled="true"],
.profile-contact.is-disabled {
    opacity: .42;
    filter: saturate(.35);
    pointer-events: none;
}

@keyframes profile-contact-spin {
    to { transform: rotate(360deg); }
}

.profile-skills {
    position: absolute;
    top: 88px;
    left: 0;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
}

.profile-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.profile-skill__pill.liquid-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 14px 20px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-top-color: rgb(255 255 255 / 90%);
    border-bottom-color: rgb(255 255 255 / 25%);
    outline: none;
    border-radius: 18px;
    color: #6287ff;
    background:
        radial-gradient(ellipse at var(--glass-x, 25%) var(--glass-y, 0%), rgb(255 255 255 / 65%), transparent 72%),
        linear-gradient(155deg, rgb(255 255 255 / 28%), rgb(208 229 255 / 12%) 55%, rgb(255 255 255 / 32%));
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px) saturate(1.45) brightness(1.08);
    backdrop-filter: blur(12px) saturate(1.45) brightness(1.08);
    font: 600 16px/16px 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
}

.profile-skill__pill.liquid-glass {
    margin: 0;
    appearance: none;
    pointer-events: auto;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease, backdrop-filter 180ms ease;
}
.profile-skill__pill.liquid-glass::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 15%, rgb(255 255 255 / 45%) 48%, transparent 75%);
    content: '';
    pointer-events: none;
    opacity: 0;
    transform: translateX(-35%);
    transition: opacity 200ms ease, transform 300ms ease;
}
.profile-skill__pill.liquid-glass::after {
    position: absolute;
    bottom: 4px;
    left: 30%;
    right: 30%;
    height: 2px;
    border-radius: 2px;
    background: #6287ff;
    content: '';
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}
.profile-skill__pill.liquid-glass:hover:not(:disabled) {
    color: #355bbf;
    border-color: rgb(255 255 255 / 95%);
    transform: translateY(-2px);
}
.profile-skill__pill.liquid-glass:hover:not(:disabled)::before { opacity: .65; transform: translateX(20%); }
.profile-skill__pill.liquid-glass[aria-pressed="true"] {
    color: #274fb9;
    background:
        radial-gradient(ellipse at var(--glass-x, 25%) var(--glass-y, 0%), rgb(255 255 255 / 80%), transparent 75%),
        linear-gradient(155deg, rgb(255 255 255 / 55%), rgb(148 183 255 / 35%) 65%, rgb(255 255 255 / 45%));
    border-color: rgb(255 255 255 / 95%);
    cursor: default;
}
.profile-skill__pill.liquid-glass[aria-pressed="true"]::after { opacity: 1; transform: scaleX(1); }
.profile-skill__pill.liquid-glass:active:not(:disabled) {
    transform: translateY(1px) scale(.97);
    -webkit-backdrop-filter: blur(8px) saturate(1.65);
    backdrop-filter: blur(8px) saturate(1.65);
}
.profile-skill__pill.liquid-glass:focus-visible { outline: 3px solid #193dad; outline-offset: 3px; }
.profile-skill__pill.liquid-glass:disabled { opacity: .45; cursor: not-allowed; }
.profile-skills[aria-busy="true"] .profile-skill__pill.liquid-glass { cursor: progress; }
.profile-skills[aria-busy="true"] .profile-skill__pill.liquid-glass[aria-pressed="true"] { opacity: 1; }

.profile-skill__sparkles {
    color: #6287ff;
    font: 500 14px/14.39px 'Inter', sans-serif;
    letter-spacing: 4px;
    max-width: 146px;
    text-align: center;
    overflow-wrap: anywhere;
    line-height: 1.5;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .profile-skill__pill.liquid-glass,
    .profile-skill__pill.liquid-glass::before,
    .profile-skill__pill.liquid-glass::after { transition: none; }
    .profile-skill__pill.liquid-glass:hover:not(:disabled),
    .profile-skill__pill.liquid-glass:active:not(:disabled) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .profile-skill__pill.liquid-glass { background: #ebf4ff; }
    .profile-skill__pill.liquid-glass[aria-pressed="true"] { background: #d8e7ff; }
    .profile-skill__pill.liquid-glass::before { display: none; }
}

.profile-gallery {
    position: absolute;
    bottom: 3%;
    left: calc(50% - var(--layout-width) / 2);
    right: 0;
    height: 15%;
    opacity: 0;
    will-change: opacity;
}

.profile-gallery__set {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    opacity: 0;
    will-change: opacity;
}

.profile-gallery__set > figure {
    display: block;
    flex: 0 0 clamp(140px, 15vw, 280px);
    margin: 0;
    height: calc(100% - 14px);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 38%);
    box-shadow: none;
}

.profile-gallery__set img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms cubic-bezier(0.85, 0, 0.15, 1); }
.profile-gallery__set img.is-loaded { opacity: 1; }
.profile-gallery__set figcaption { padding: 8px; font: 14px/1.4 sans-serif; }
.profile-gallery__set:focus-visible { outline: 2px solid #6287ff; outline-offset: 2px; }




#scene {
    position: fixed;
    touch-action: none;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    z-index: 1;
}

.site-header__refraction {
    position: fixed;
    z-index: 23;
    top: 3px;
    left: 50%;
    width: 630px;
    height: 101px;
    transform: translateX(-50%);
    pointer-events: none;
}

.site-header.liquid-glass {
    position: fixed;
    z-index: 24;
    top: 22px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    max-width: calc(100vw - 24px);
    height: 64px;
    padding: 10px 10px 10px 32px;
    transform: translateX(-50%);
    border: 2px solid rgb(255 255 255 / 8%);
    border-radius: 24px;
    color: #fff;
    background: rgb(255 255 255 / 10%);
    box-shadow: none;
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
}


.site-header__nav {
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
}

.header-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #fff;
    font: 500 16px/1 'Inter', sans-serif;
    text-decoration: none;
    transition: color 160ms ease, opacity 600ms cubic-bezier(0.85, 0, 0.15, 1), transform 120ms ease;
}

.header-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 600ms cubic-bezier(0.85, 0, 0.15, 1), transform 160ms ease;
}

.header-link:hover { color: #fff; }
.header-link:hover::after { opacity: 0.65; transform: scaleX(1); }
.header-link:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgb(255 255 255 / 82%);
    outline-offset: 4px;
}
.header-link:active { transform: translateY(1px); opacity: 0.7; }
.header-link:active::after, .header-link[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.header-link.is-loading { color: transparent; pointer-events: none; }
.header-link.is-loading::before {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border: 2px solid rgb(255 255 255 / 35%);
    border-top-color: #fff;
    border-radius: 50%;
    content: '';
    animation: header-spin 700ms linear infinite;
}
.header-link[aria-disabled="true"] { opacity: 0.38; pointer-events: none; }

.site-header__divider {
    flex: 0 0 2px;
    width: 2px;
    height: 24px;
    background: rgb(255 255 255 / 8%);
}

.site-header__actions { display: flex; align-items: center; gap: 4px; }

.header-action {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 18px;
    color: #6287ff;
    background: #fff;
    font: 600 16px/1 'Inter', sans-serif;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, opacity 600ms cubic-bezier(0.85, 0, 0.15, 1), transform 120ms ease;
}

.header-action--cv { gap: 8px; padding: 10px 20px 10px 24px; white-space: nowrap; }
.header-action--icon { width: 44px; padding: 10px; }
.header-action > img { flex: 0 0 24px; display: block; }
.header-action:hover:not(:disabled) {
    color: #456ff8;
    background: #f1f5ff;
    box-shadow: none;
}
.header-action:focus-visible { outline: 3px solid #193dad; outline-offset: 3px; }
.header-action:active:not(:disabled), .header-action[aria-expanded="true"]:not(:disabled) {
    color: #fff;
    background: #6287ff;
    box-shadow: none;
    transform: translateY(1px) scale(0.98);
}
.header-action:active:not(:disabled) img, .header-action.is-active img { filter: brightness(0) invert(1); }
.header-action:disabled, .header-action[aria-disabled="true"] {
    color: #a6aec4;
    background: #e8ebf2;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.56;
}
.header-action.is-loading { color: transparent; pointer-events: none; }
.header-action.is-loading > img { opacity: 0; }
.header-action__spinner { display: none; }
.header-action.is-loading .header-action__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgb(98 135 255 / 28%);
    border-top-color: #6287ff;
    border-radius: 50%;
    animation: header-spin 700ms linear infinite;
}

@keyframes header-spin { to { transform: rotate(360deg); } }

.cv-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 8px 8px;
    border: 2px solid rgb(255 255 255 / 45%);
    border-radius: 24px;
    color: #193d78;
    background: rgb(235 244 255 / 94%);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
    backdrop-filter: blur(24px) saturate(1.08);
    font: 500 15px/1.4 'Inter', sans-serif;
    text-align: left;
    cursor: default;
    animation: cv-menu-appear 160ms ease-out;
}
.cv-menu__title { margin: 0 12px 10px; font: 600 13px/1.4 'Inter', sans-serif; color: #4568a0; }
.cv-menu__status { margin: 0 12px 10px; font-size: 13px; }
.cv-menu__status:empty { display: none; }
.cv-menu__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cv-menu__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.cv-menu__hint { font-size: 11px; font-weight: 500; opacity: .72; }
.cv-menu__item[href]:hover { color: #314fae; background: #fff; }
.cv-menu__item[href]:active { color: #fff; background: #6287ff; transform: scale(.98); }
.cv-menu__item:focus-visible, .cv-menu__retry:focus-visible { outline: 3px solid #193dad; outline-offset: -2px; }
.cv-menu__item[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.cv-menu[aria-busy="true"], .cv-menu[aria-busy="true"] .cv-menu__item { cursor: progress; }
.header-action.is-loading { cursor: progress; pointer-events: auto; }
.cv-menu__retry {
    margin: 8px 0 0;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 16px;
    padding: 12px;
    color: #456ff8;
    background: #fff;
    font: inherit;
    cursor: pointer;
}
.cv-menu__retry:hover { background: #dfe9ff; }
.cv-menu__retry:active { color: #fff; background: #6287ff; }
@keyframes cv-menu-appear {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
    .site-header.liquid-glass { gap: 12px; padding-left: 16px; }
    .site-header__nav { gap: 16px; padding-inline: 4px; }
    .header-link { font-size: 14px; }
    .header-action--cv { padding-inline: 14px; font-size: 14px; }
}
@media (max-width: 520px) {
    .site-header.liquid-glass { top: 12px; height: auto; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 12px 12px; }
    .site-header__nav { justify-content: space-between; width: 100%; gap: 12px; }
    .site-header__divider { display: none; }
    .site-header__actions { justify-content: flex-end; width: 100%; }
    .header-action--cv { flex: 1; }
    .cv-menu { width: 100%; max-height: calc(100dvh - 142px); }
}
@media (prefers-reduced-motion: reduce) {
    .cv-menu { animation: none; }
    .cv-menu__item { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
    .cv-menu { background: #ebf4ff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .header-link,
    .header-link::after,
    .header-action { transition: none; }
}

/* The design uses diffuse blue lights, not cast or inset shadows. */
.profile-stage__contacts,
.profile-skills { isolation: isolate; }
.profile-stage__contacts::before,
.profile-stage__contacts::after,
.profile-skills::before {
    position: absolute;
    z-index: -1;
    content: '';
    background: #6287ff;
    filter: blur(40px);
    pointer-events: none;
}
.profile-stage__contacts::before { top: 6px; left: 11px; width: 198px; height: 33px; }
.profile-stage__contacts::after { top: 64px; left: 89px; width: 170px; height: 33px; }
.profile-skills::before { top: 15px; left: 10%; width: 80%; height: 32px; }

.texture-foreground {
    position: fixed;
    inset: 0;
    z-index: 18;
    background: url('/images/ui/frontground.png') center / cover no-repeat;
    opacity: .65;
    pointer-events: none;
    user-select: none;
}


/* Static background: no WebGL draw calls or animation. */
#texture-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgb(145 191 255 / 82%), rgb(145 191 255 / 56%)),
        url('/images/ui/background_1.webp') center / cover;
}

/* Mobile portfolio: four independently framed scenes. */
.mobile-scene-navigation { display: none; }
@media (max-width: 700px) {
    body::after { content: ""; position: fixed; inset: 0; z-index: 24; pointer-events: none;
        background: url('/images/mobile-screen-frost.png') center / cover; opacity: .16; }
    .background-title, .frontground-title {
        left: 12px; width: calc(100% - 24px); top: 39%; transform: translateY(-50%);
        font-size: min(27vw, 115px); letter-spacing: -.055em; line-height: 1.08; white-space: normal;
    }
    .frontground-title {
        /* 60% more triangles per area; keep each triangle at 3 × 3px. */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6.32455532' height='6.32455532' viewBox='0 0 6.32455532 6.32455532'%3E%3Cpath d='M2 .5 L3.5 3.5 L.5 3.5 Z' fill='white'/%3E%3C/svg%3E");
        background-size: 6.32455532px 6.32455532px;
    }
    .background-title > span, .frontground-title > span { display: block; }
    .background-title > span:first-child, .frontground-title > span:first-child { text-align: left; }
    .background-title > span:last-child, .frontground-title > span:last-child { text-align: right; }
    .intro-stage { width: 100%; height: 100dvh; touch-action: none; }
    .intro-stage__visuals { display: none; }
    .intro-card {
        z-index: 1;
        top: min(626px, calc(100% - 138px));
        bottom: auto;
        left: 50%;
        width: min(352px, calc(100% - 24px));
        height: 114px;
        padding: 16px;
        border: 0;
        border-radius: 26px;
        background: rgb(255 255 255 / 13%);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / 62%);
        transform: translateX(-50%);
        overflow: visible;
        box-sizing: border-box;
    }
    .intro-card__content { width: 100%; height: 82px; padding: 0; isolation: isolate; }
    /* These layers sit behind the glass, matching the Figma layer order. */
    .intro-card__mobile-glows {
        display: block;
        position: absolute;
        z-index: 0;
        top: min(642px, calc(100% - 122px));
        left: 50%;
        width: min(320px, calc(100% - 56px));
        height: 92px;
        transform: translateX(-50%);
        pointer-events: none;
    }
    /* Preserve the SVGs' embedded blur and full viewBox margins. */
    .intro-mobile-glow { position: absolute; display: block; max-width: none; }
    .intro-mobile-glow--23 { left: calc(-1.25% - 160px); top: -160px; }
    .intro-mobile-glow--19 { left: calc(4.6875% - 40px); top: -37px; }
    .intro-mobile-glow--27 { left: calc(71.5625% - 40px); top: -37px; }
    .intro-mobile-glow--20 { left: calc(35% - 50px); top: -37px; }
    .intro-mobile-glow--25 { left: calc(57.1875% - 40px); top: -10px; }
    .intro-mobile-glow--26 { left: calc(69.0625% - 40px); top: 18px; }
    .intro-mobile-glow--21 { left: calc(48.75% - 50px); top: 10px; }
    .intro-mobile-glow--22 { left: calc(43.4375% - 50px); top: -10px; }
    .intro-mobile-glow--24 { left: calc(12.1875% - 40px); top: 15px; }
    .intro-mobile-glow--28 { left: calc(8.4375% - 40px); top: -12px; }
    .intro-card__mobile-break { display: initial; }
    .intro-card__text {
        position: absolute;
        top: 50%;
        left: 19px;
        width: calc(100% - 19px);
        margin: 0;
        transform: translateY(-50%);
        text-align: center;
        font: 600 16px/1.53 'Inter', sans-serif;
        color: #fff;
    }
    .intro-card__corner { width: 32px; height: 32px; }
    .intro-card__corner--start { top: -4px; left: 0; }
    .intro-card__corner--end { top: 54px; left: auto; right: -1px; bottom: auto; }
    .intro-card .term-tip { position: static; }
    .intro-card .term-tip__popup { width: min(300px, 100%); box-sizing: border-box; }
    .profile-stage { --layout-width: calc(100vw - 24px);
        --profile-unit: clamp(.85px, min(.2564vw, .12858dvh), 1.3333px);
        --profile-media-unit: calc(var(--profile-unit) * .875);
        --profile-right-center: 45.65vw;
        --profile-copy-top: 30.6dvh; touch-action: pan-x; }
    /* Match the reference's viewport positions independently of the 3D camera. */
    .profile-stage__copy--left { left: calc(55.65vw - 147 * var(--profile-unit)); right: auto; top: var(--profile-copy-top);
        width: calc(278 * var(--profile-unit)); height: calc(80dvh - var(--profile-copy-top)); transform: none;
        padding: 0; max-height: none; box-sizing: border-box;
        overflow: visible; touch-action: pan-y;
        background: none; border: 0; backdrop-filter: none; }
    .profile-stage__copy--left::-webkit-scrollbar { display: none; }
    .profile-stage__backdrops { display: block; }
    body[data-mobile-panel="right"] .profile-stage__copy--left { visibility: hidden; }
    .profile-stage__copy .profile-stage__title { position: static; width: auto;
        height: calc(52 * var(--profile-unit)); margin: 0 0 calc(19 * var(--profile-unit));
        text-align: center; font-size: calc(48 * var(--profile-unit)); line-height: calc(56 * var(--profile-unit)); }
    .profile-stage__copy--left .profile-stage__title {
        position: absolute; top: 0; left: calc(80 * var(--profile-unit));
        width: calc(134 * var(--profile-unit)); margin: 0; }
    .profile-stage__intro, .profile-stage__invite { position: absolute; left: 0;
        top: calc(39.6dvh - var(--profile-copy-top)); width: 100%;
        margin: 0; font-size: calc(14 * var(--profile-unit));
        line-height: calc(21 * var(--profile-unit)); }
    .profile-stage__aside { font-size: inherit; white-space: nowrap; }
    .profile-stage__invite { width: calc(197 * var(--profile-unit));
        top: calc(49.3dvh - var(--profile-copy-top)); left: calc(75 * var(--profile-unit)); }
    .profile-stage__contacts { position: absolute; top: calc(59.8dvh - var(--profile-copy-top)); left: 0;
        width: calc(272 * var(--profile-unit)); height: auto;
        gap: max(8px, calc(7.6dvh - 44 * var(--profile-unit))); }
    .profile-contact.liquid-glass, .profile-contact.liquid-glass:last-child {
        width: calc(233 * var(--profile-unit)); height: calc(44 * var(--profile-unit)); margin: 0;
        padding: calc(10 * var(--profile-unit)) calc(24 * var(--profile-unit)) calc(10 * var(--profile-unit)) calc(20 * var(--profile-unit));
        gap: calc(8 * var(--profile-unit)); font-size: calc(16 * var(--profile-unit));
        line-height: calc(16 * var(--profile-unit)); border-radius: calc(18 * var(--profile-unit)); box-sizing: border-box; }
    .profile-contact.liquid-glass:last-child { width: calc(194 * var(--profile-unit)); margin-left: calc(78 * var(--profile-unit)); }
    .profile-contact img { width: calc(24 * var(--profile-unit)); height: calc(24 * var(--profile-unit)); }
    .profile-photo-slot { left: 12px; top: 34%; width: calc(100% - 24px); height: 28dvh; }
    .profile-gallery { left: 12px; right: 12px; bottom: max(24px, env(safe-area-inset-bottom)); height: 14dvh; }
    .profile-gallery__set { overflow-x: auto; touch-action: pan-x; overscroll-behavior-x: contain; gap: 10px; }
    .profile-gallery__set > figure { flex-basis: 120px; border-radius: 12px; }
    body[data-mobile-panel="left"] .profile-photo-slot, body[data-mobile-panel="left"] .profile-gallery { visibility: hidden; }
    .site-header.liquid-glass { top: 12px; max-width: calc(100vw - 24px); }
    .site-header__refraction { max-width: 100vw; }
    .cover-publication { width: auto; margin: 0 28px 0 12px; font-size: 17px; line-height: 1.6; }
    .cover-publication :is(h1, h2) { font-size: 26px; line-height: 1.25; }
    .publication-scroll { padding-top: 150px; padding-bottom: 110px; }
    .publication-scrollbar { right: 10px; width: 6px; height: 65dvh; }
    .publication-scrollbar__thumb { width: 6px; }
    .publication-toc { right: 24px; }
    .publication-toc__trigger, .publication-toc__line { width: 18px; }
    .comment-popup { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
    .comment-popup__layout { padding: 44px 0 0; }
    .comment-popup__card { border-radius: 24px; max-height: calc(100dvh - 88px); }
    .comment-popup__close { width: 44px; height: 44px; padding: 10px; }
    .comment-popup__scroll { max-height: calc(100dvh - 88px); }
    .comment-popup__content { padding: 24px 20px; }
    .comment-popup__meta, .comment-popup__tags { padding-right: 0; }
    .comment-popup h2 { margin: 12px 0; font-size: 24px; }
    .comment-popup__text { font-size: 17px; }
    .comment-popup__text-line { white-space: pre-wrap; overflow-wrap: anywhere; }
    .comment-popup__figure { position: relative; top: auto; right: auto; width: 140px; height: 140px; margin: 16px auto; }
    .comment-compose { height: min(640px, calc(100dvh - 24px)); overflow: hidden; }
    .comment-compose .comment-popup__layout { display: flex; flex-direction: column; height: 100%; }
    .comment-compose .comment-popup__card { flex: 1; min-height: 0; height: auto; max-height: none; }
    .comment-compose .comment-popup__scroll { height: 100%; max-height: none; overflow: hidden; }
    .comment-compose__form { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; padding: 24px 20px 16px; gap: 16px; }
    .comment-compose__fields { display: contents; }
    .comment-compose .comment-popup__meta { order: 0; flex-direction: column; align-items: center; gap: 8px; margin: 0; font-size: 16px; text-align: center; }
    .comment-compose input, .comment-compose textarea { padding: 12px 16px; font-size: 16px; }
    .comment-compose input { order: 2; flex-shrink: 0; height: 48px; margin: 0; }
    .comment-compose textarea { order: 3; flex: 1; min-height: 0; height: auto; }
    .comment-compose__notice { order: 4; flex-shrink: 0; margin: 0; }
    .comment-compose__notice:empty { display: none; }
    .comment-compose__selector {
        --figure-size: min(119px, 20dvh, calc((100vw - 86px) / 2));
        order: 1; flex-shrink: 0; width: 100%;
        max-width: 100%; height: calc(var(--figure-size) + 16px); margin: 0 auto;
    }
    .comment-compose .comment-popup__figure { inset: 7px auto auto calc(25% - var(--figure-size) / 2); width: var(--figure-size); height: var(--figure-size); }
    .comment-compose__catalog { inset: 0 0 0 auto; width: 50%; height: 100%; }
    .comment-compose__options { display: flex; align-items: flex-start; padding: 4px; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; scroll-snap-type: x mandatory; }
    .comment-compose__options button { flex: 0 0 100%; min-width: 0; padding: 3px 0; scroll-snap-align: center; }
    .comment-compose__thumbnail { width: var(--figure-size); }
    .comment-compose__actions { flex-shrink: 0; height: 64px; }
    .comment-compose__actions::after {
        content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
        border-radius: inherit;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 708 100' preserveAspectRatio='none'%3E%3Cpath d='M338 99H65C29.65 99 1 77.06 1 50S29.65 1 65 1H364L338 99ZM643 1C678.35 1 707 22.94 707 50S678.35 99 643 99H348L374 1H643Z' fill='none' stroke='white' stroke-opacity='.9' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    }
    .comment-compose__actions button > img { transform: translate(-50%, -50%) scale(.9); }
    .term-tip__popup { max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
}
@media (max-width: 700px) and (max-height: 650px) {
    .intro-card { top: auto; bottom: 24px; }
    .intro-card__mobile-glows { top: auto; bottom: 30px; }
}
@media (min-width: 521px) and (max-width: 700px) {
    .site-header.liquid-glass { top: 12px; height: auto; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 12px 12px; width: calc(100% - 24px); }
    .site-header__nav { justify-content: space-between; width: 100%; gap: 12px; }
    .site-header__divider { display: none; }
    .site-header__actions { justify-content: flex-end; width: 100%; }
    .header-action--cv { flex: 1; }
}

@media (max-width: 700px) {
    .comment-animation-preview { display: none !important; }
    body::after { opacity: .07; }
}

/* Restore the desktop glass and palm fields, scaled for the mobile scenes. */
@media (max-width: 700px) {
    .profile-stage__backdrop--left, .profile-stage__backdrop--right {
        top: 29%; left: 12px; width: calc(100% - 24px); height: 65%;
        background-size: 100% 100%; filter: blur(8px);
    }
    .profile-stage__backdrop--left {
        top: calc(var(--profile-copy-top) - 160 * var(--profile-unit));
        left: calc(55.65vw - 294 * var(--profile-unit));
        width: calc(588 * var(--profile-unit)); height: calc(695 * var(--profile-unit));
        filter: blur(calc(12 * var(--profile-unit)));
    }
    body[data-mobile-panel="left"] .profile-stage__backdrop--right,
    body[data-mobile-panel="right"] .profile-stage__backdrop--left { display: none; }
    .profile-stage__backdrop--right {
        display: none;
        top: calc(var(--profile-copy-top) - 160 * var(--profile-unit));
        left: calc(var(--profile-right-center) - 294 * var(--profile-unit));
        width: calc(588 * var(--profile-unit)); height: calc(695 * var(--profile-unit));
        filter: blur(calc(12 * var(--profile-unit)));
    }
    .profile-stage__copy--right { display: block; left: 0; right: 0; top: var(--profile-copy-top); width: auto; }
    body[data-mobile-panel="left"] .profile-stage__copy--right { visibility: hidden; }
    .profile-stage__copy--right .profile-stage__title {
        width: calc(156 * var(--profile-unit)); margin: 0;
        margin-left: calc(var(--profile-right-center) - 78 * var(--profile-unit)); text-align: center;
    }
    .profile-skills { position: absolute; top: calc(39.8dvh - var(--profile-copy-top));
        left: 50%; transform: translateX(-50%);
        display: flex; width: min(calc(422 * var(--profile-media-unit)), calc(100vw - 24px));
        height: auto; gap: calc(4 * var(--profile-media-unit)); }
    .profile-skill { flex: 146; min-width: 0; gap: calc(8 * var(--profile-media-unit)); }
    .profile-skill:nth-child(2) { flex: 111; }
    .profile-skill:nth-child(3) { flex: 157; }
    .profile-skill:nth-child(n) .profile-skill__pill {
        width: 100%; height: calc(44 * var(--profile-unit)); min-height: 0;
        box-sizing: border-box;
        padding: 0 4px; border-radius: calc(18 * var(--profile-media-unit));
        font-size: clamp(11px, 3.6vw, calc(16 * var(--profile-media-unit)));
        line-height: calc(16 * var(--profile-media-unit));
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass {
        color: #6287ff;
        border: 1px solid rgb(255 255 255 / 90%);
        border-radius: calc(18 * var(--profile-media-unit));
        background: rgb(255 255 255 / 40%);
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        opacity: 1;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"] {
        background: rgb(255 255 255 / 40%);
        box-shadow: inset 0 -12px 16px -8px #6287ff;
    }
    .profile-skill__pill.liquid-glass[aria-pressed="true"]::after { opacity: 0; }
    .profile-skill__sparkles {
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 5px;
        max-width: 100%;
    }
    .profile-photo-slot {
        top: 51.6dvh;
        left: clamp(12px, calc(var(--profile-right-center) - 264 * var(--profile-media-unit)), calc(100vw - 24px));
        width: min(calc(528 * var(--profile-media-unit)), calc(100vw - 24px));
        height: min(32.6dvh, calc((100vw - 24px) * .55));
    }
    /* Keep the resting preview above the palm; WebGL handles moving sheets. */
    .profile-photo-slot::before {
        position: absolute; inset: 0; content: ''; pointer-events: none;
        background: var(--mobile-cover-image) center / cover no-repeat;
        opacity: 0; transition: opacity 160ms ease;
    }
    .profile-photo-slot[data-ready="true"]::before { opacity: 1; }
    .profile-gallery { display: none; }
}

@media (max-width: 700px) {
    /* The canvas already renders the same paper texture as desktop. */
    body::after { content: none; }
}

/* Mobile project reader: a horizontal hand above a soft portrait reading field. */
@media (max-width: 700px) {
    body.cover-mode-active .profile-stage { visibility: hidden !important; }
    body.cover-mode-active #scene {
        transform: translate3d(0, calc(-32svh * var(--reader-hand-away, 0)), 0);
        will-change: transform;
    }
    .publication-backdrop {
        height: 100lvh; bottom: auto;
        isolation: isolate;
        transform: translateZ(0);
    }
    .publication-backdrop::after {
        content: ''; position: absolute; inset: 0 0 auto; height: 36svh;
        background: #91bfff url('/images/ui/background_1.webp') center top / cover;
        -webkit-mask-image: linear-gradient(#000 50%, transparent);
        mask-image: linear-gradient(#000 50%, transparent);
        opacity: calc(1 - var(--reader-hand-away, 0)); will-change: opacity;
    }
    body.cover-mode-active :is(.site-header, .site-header__refraction) {
        opacity: var(--cover-content-opacity, 1); pointer-events: none;
    }
    body.cover-hands-foreground :is(.site-header, .site-header__refraction) { visibility: hidden; }
    .publication-backdrop::before {
        width: calc(100svh + 160px); height: calc(100vw + 160px);
        transform: translate(-50%, -50%) rotate(90deg);
        filter: blur(20px);
        -webkit-mask-image: radial-gradient(ellipse, #000 55%, transparent 80%);
        mask-image: radial-gradient(ellipse, #000 55%, transparent 80%);
    }
    .publication-edge {
        top: 50%; left: 50%; right: auto;
        width: 24svh; height: calc(100vw + 48px); filter: blur(14px);
    }
    .publication-edge--left { transform: translate(-50%, -50%) translateY(-48svh) rotate(90deg); }
    .publication-edge--right { transform: translate(-50%, -50%) translateY(48svh) rotate(90deg); }
    body.cover-mode-active .texture-foreground {
        opacity: .38;
        -webkit-mask-image: linear-gradient(#000, rgb(0 0 0 / 45%) 28%, rgb(0 0 0 / 18%) 65%, #000);
        mask-image: linear-gradient(#000, rgb(0 0 0 / 45%) 28%, rgb(0 0 0 / 18%) 65%, #000);
    }
    .publication-scroll {
        padding: max(26svh, 124px) 0 max(76px, calc(env(safe-area-inset-bottom) + 64px));
        scroll-padding-top: 12px;
    }
    .cover-publication {
        width: calc(100% - 24px); margin: 0 12px;
        font-size: clamp(16px, 4.4vw, 28px); line-height: 1.55;
        word-break: normal; overflow-wrap: break-word;
    }
    .cover-publication :is(h1, h2) { font-size: 1.35em; line-height: 1.25; }
    .cover-publication :is(p, ul, ol, blockquote, pre, table) { margin-block: 0 1em; }
    .cover-publication :is(ul, ol) { padding-inline-start: 1.25em; }
    .publication-scrollbar { right: 3px; top: 28svh; width: 3px; height: calc(72svh - 88px); transform: translateZ(0); }
    .publication-scrollbar__thumb { width: 3px; }
    .publication-toc { right: 12px; top: 44svh; transform: translateZ(0); }
    .publication-toc__trigger { height: 14px; }
    .cover-mode-controls > button {
        bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100% - 24px);
        padding: 12px 22px;
    }
}

/* Mobile comment reader, Figma 461:16. Keep the composer and desktop separate. */
@media (max-width: 700px) {
    .comment-popup:not(.comment-compose) {
        width: min(384px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        overflow: hidden;
        overscroll-behavior: contain;
    }
    .comment-popup:not(.comment-compose) .comment-popup__layout { padding: 0 0 58px; }
    .comment-popup:not(.comment-compose) .comment-popup__card {
        height: auto;
        max-height: calc(100dvh - 82px);
        border-radius: 48px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__card::after {
        content: none;
    }
    .comment-popup:not(.comment-compose) .comment-popup__outline {
        position: absolute; inset: 0; z-index: 2;
        display: block; width: 100%; height: 100%;
        overflow: visible; pointer-events: none;
    }
    .comment-popup:not(.comment-compose) .comment-popup__background {
        mask-image: none;
        -webkit-mask-image: none;
        clip-path: var(--mobile-comment-clip);
    }
    .comment-popup:not(.comment-compose) .comment-popup__glow {
        content: url('/images/comments/mobile/glow.svg');
        left: -302px; top: -81px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__corner-glow {
        content: url('/images/comments/mobile/corner-glow.svg');
        left: -76.6px; top: -65.6px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__corner-middle {
        content: url('/images/comments/mobile/corner-middle.svg');
        left: -24px; top: -9px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__corner-front {
        content: url('/images/comments/mobile/corner-front.svg');
        left: -24px; top: -9px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__scroll {
        display: block;
        height: auto; max-height: calc(100dvh - 82px);
        scrollbar-width: none;
    }
    .comment-popup:not(.comment-compose) .comment-popup__scroll::-webkit-scrollbar { display: none; }
    .comment-popup:not(.comment-compose) .comment-popup__content {
        display: block;
        min-height: 0;
        box-sizing: border-box;
        padding: 50px 36px 40px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__meta {
        margin: 0; padding: 0;
        font-size: 14px; line-height: 1.3;
    }
    .comment-popup:not(.comment-compose) .comment-popup__meta time { font-size: 12px; }
    .comment-popup:not(.comment-compose) h2 {
        margin: 8px 0 16px;
        font-size: 18px; line-height: 1.2;
    }
    .comment-popup:not(.comment-compose) .comment-popup__tags {
        display: flex; flex-wrap: wrap;
        width: calc(100% - 88px);
        margin: 0; padding: 0; gap: 8px;
    }
    .comment-popup:not(.comment-compose) .comment-popup__tags span {
        flex: 0 0 auto;
        max-width: 100%; box-sizing: border-box;
        padding: 5px 8px; font-size: 12px;
        white-space: normal; overflow-wrap: anywhere;
    }
    .comment-popup:not(.comment-compose) .comment-popup__text {
        margin: 24px 0 0;
        font-size: 14px; line-height: 150%;
        white-space: normal;
    }
    .comment-popup:not(.comment-compose) .comment-popup__text p { margin: 0; }
    .comment-popup:not(.comment-compose) .comment-popup__text-line { display: inline; white-space: pre-wrap; overflow-wrap: anywhere; }
    .comment-popup:not(.comment-compose) .comment-popup__figure {
        position: absolute; top: 0; right: -13px;
        width: 130px; height: 130px;
        margin: 0; border: 0;
    }
    .comment-popup:not(.comment-compose) .comment-popup__close {
        top: auto; right: auto; bottom: 0; left: 50%;
        transform: translateX(-50%);
        width: 46px; height: 46px; padding: 4px;
        box-sizing: border-box;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .comment-popup:not(.comment-compose) .comment-popup__close img {
        content: url('/images/comments/mobile/close.svg');
        width: 36px; height: 36px;
    }
}

/* Native camera route is isolated from the desktop presentation. */
.mobile-slide-route { display: none; }
@media (max-width: 700px) {
    html.mobile-route-active, html.mobile-route-active body {
        height: auto; min-height: 100%; overflow-x: clip; overflow-y: visible;
        overscroll-behavior-y: none;
    }
    html.mobile-route-active .mobile-slide-route { display: block; position: relative; }
    html.mobile-route-active #scene {
        position: sticky; top: 0; width: 100%; height: 100dvh;
        touch-action: none; display: block;
    }
    html.mobile-route-active .site-header {
        top: max(12px, env(safe-area-inset-top));
    }
}




/* Mobile category lighting: one white title field and three blue tag fields. */
@media (max-width: 700px) {
    .profile-stage__copy--right { isolation: isolate; }
    .profile-stage__copy--right::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: calc(-72 * var(--profile-unit));
        left: calc(var(--profile-right-center) - 124 * var(--profile-unit));
        width: calc(248 * var(--profile-unit));
        height: calc(248 * var(--profile-unit));
        background: #fff;
        filter: blur(calc(60 * var(--profile-unit)));
        pointer-events: none;
    }
    .profile-skills { isolation: isolate; }
    .profile-skills::before { content: none; }
    .profile-skill::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: calc(15 * var(--profile-media-unit));
        width: calc(126 * var(--profile-media-unit));
        height: calc(32 * var(--profile-media-unit));
        background: #6287ff;
        filter: blur(calc(40 * var(--profile-media-unit)));
        pointer-events: none;
    }
    .profile-skill:nth-child(1)::before {
        left: calc(50% - 201 * var(--profile-media-unit));
    }
    .profile-skill:nth-child(2)::before {
        left: calc(50% - 68 * var(--profile-media-unit));
    }
    .profile-skill:nth-child(3)::before {
        left: calc(50% + 63 * var(--profile-media-unit));
        width: calc(140 * var(--profile-media-unit));
    }
}

@media (max-width: 700px) {
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"] {
        position: relative;
        border-color: transparent;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"]::after {
        content: '';
        position: absolute;
        inset: 0;
        height: auto;
        padding: 1.5px;
        border-radius: inherit;
        background: linear-gradient(to bottom, #fff 0%, #fff 15%, #6287ff 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        opacity: 1;
        transform: none;
        pointer-events: none;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass:disabled {
        color: rgb(98 135 255 / 45%);
        background: rgb(255 255 255 / 20%);
        border-color: rgb(255 255 255 / 35%);
        box-shadow: none;
        cursor: not-allowed;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass:disabled::before,
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass:disabled::after {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"]:not(:disabled) {
        border-top-color: #fff;
        border-bottom-color: #6287ff;
        border-left-color: transparent;
        border-right-color: transparent;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"]:not(:disabled)::after {
        inset: -1px;
        background: linear-gradient(to bottom, #fff 0%, #fff 12%, #6287ff 85%, #6287ff 100%);
    }
}

/* On mobile, show the project preview before its category controls. */
@media (max-width: 700px) {
    .profile-stage__copy--right::before { content: none; }
    .profile-photo-slot { top: 39.8dvh; }
    .profile-skills {
        top: calc(39.8dvh + min(32.6dvh, (100vw - 24px) * .55) + 20px - var(--profile-copy-top));
    }
}

/* Desktop shares category appearance; its controls remain above the preview. */
@media (min-width: 701px) {
    .profile-skills { --profile-media-unit: 1px; }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass {
        color: #6287ff;
        border: 1px solid rgb(255 255 255 / 90%);
        border-radius: 18px;
        background: rgb(255 255 255 / 40%);
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        opacity: 1;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"] {
        background: rgb(255 255 255 / 40%);
        box-shadow: inset 0 -12px 16px -8px #6287ff;
    }
    .profile-skill__pill.liquid-glass[aria-pressed="true"]::after { opacity: 0; }
    .profile-skill__sparkles {
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 5px;
        max-width: 100%;
    }
    .profile-skills { isolation: isolate; }
    .profile-skills::before { content: none; }
    .profile-skill::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: calc(15 * var(--profile-media-unit));
        width: calc(126 * var(--profile-media-unit));
        height: calc(32 * var(--profile-media-unit));
        background: #6287ff;
        filter: blur(calc(40 * var(--profile-media-unit)));
        pointer-events: none;
    }
    .profile-skill:nth-child(1)::before {
        left: calc(50% - 201 * var(--profile-media-unit));
    }
    .profile-skill:nth-child(2)::before {
        left: calc(50% - 68 * var(--profile-media-unit));
    }
    .profile-skill:nth-child(3)::before {
        left: calc(50% + 63 * var(--profile-media-unit));
        width: calc(140 * var(--profile-media-unit));
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"] {
        position: relative;
        border-color: transparent;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"]::after {
        content: '';
        position: absolute;
        inset: 0;
        height: auto;
        padding: 1.5px;
        border-radius: inherit;
        background: linear-gradient(to bottom, #fff 0%, #fff 15%, #6287ff 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        opacity: 1;
        transform: none;
        pointer-events: none;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass:disabled {
        color: rgb(98 135 255 / 45%);
        background: rgb(255 255 255 / 20%);
        border-color: rgb(255 255 255 / 35%);
        box-shadow: none;
        cursor: not-allowed;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass:disabled::before,
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass:disabled::after {
        opacity: 0;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"]:not(:disabled) {
        border-top-color: #fff;
        border-bottom-color: #6287ff;
        border-left-color: transparent;
        border-right-color: transparent;
    }
    .profile-skill:nth-child(n) .profile-skill__pill.liquid-glass[aria-pressed="true"]:not(:disabled)::after {
        inset: -1px;
        background: linear-gradient(to bottom, #fff 0%, #fff 12%, #6287ff 85%, #6287ff 100%);
    }
}
